Multiple db contexts in retryable transaction

Type of issue
Missing information
Description
Suppose my database has different schema's and I have seperate DbContext's for those schemas.
Given the retry policy / execution strategy is configured per DB context, how should I
Execute a "resilient transaction" that spans multiple Db Contexts?
Also given people have standardised on using polly for resiliency - can it be mentioned why polly isn't used here? Or is there a way to use polly for this use case instead that could be linked to for those that adopt Polly for resiliency already?  Polly is such a big part of the resiliency story in dotnet that I feel it should atleast be mentioned.
Also, should there be some guidance around not putting "side effects" in the delegate that is "retried". I think anything in this method should be idempotent right?
Page URL
https://learn.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency
Content source URL
https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/miscellaneous/connection-resiliency.md
Document Version Independent Id
29002343-fa42-2f49-3362-53592039b26d
Article author
@AndriySvyryd

Execute a "resilient transaction" that spans multiple Db Contexts?

Unless they share the same connection object it would need to be a distributed transaction. It's possible to implement via a TransactionScope, but few providers support it and it's generally not recommended.

can it be mentioned why polly isn't used here?

IExecutionStrategy was introduced in before polly became widely used
We prefer to avoid additional dependencies when possible
You can create an IExecutionStrategy adapter for a polly ResiliencePipeline

Note #30552 which tracks EF and Polly integration. I do believe it may make sense to do something here, possibly as an additional package (Microsoft.EntityFrameworkCore.Polly?).

but few providers support it and it's generally not recommended.

Most ado.net providers do support TransactionScope for local transactions as far as I am aware. For example SqlServer, MySql, Postgres to name just the first few I checked. If there is a list somewhere showing which ones don't that would be useful to know.
Let's treat the guidance on Distributed transactions as seperate because I agree these are generally not recommended.
However TransactionScope only attempted to upgrade to a distributed transaction when you attempt to use  transaction spanning multiple different data stores. I'd argue that this isn't the only use case for TransactionScope and that it's actually very beneficial to use it for local transaction against a single data source. Consider the following common pattern - the transactional outbox pattern. In this pattern you often have to update some records using EFCore as one subsystem, and say, MassTransit participating in the same transaction as another subsystem - as it wants to write to an outbox table. Because both subsystems support Transaction Scope, its very easy to wrap them in a transaction scope, and because both subsystems are writing to the same data store, there is no distributed transaction that comes into play, and the code is also more solid because we didn't have to modify any of our repository code to manually hook up the mass transit transaction with the dbcontext database transaction.
So my thoughts are: the narrative that most providers don't support Transaction Scope and that in general its not recommended should be refined to: Most providers support TransactionScope for local transactions / i.e transactions spanning a single connection string or data store; but its not recommended to use them in situations where you will be spanning potentially multiple data stores giving rise toa  distributed transaction, because in general eventual consistency patterns are favoured over distributed transactions due to better scalability etc.

@dazinator I'd recommend not conflating things. EF's retrying strategy can be used with multiple contexts without TransactionScope; you need to ensure to use the same connection and transaction by all contexts, but this is the case regardless of whether you use TransactionScope or not (otherwise you get a distributed transaction).
Of course, if you want to use Polly rather than EF's retrying strategy, that's totally fine - but as far as I'm aware there's nothing related to "multiple db context" which favors one over the other. Similarly, if you want to use TransactionScope you may do that, but that's again orthogonal.

@roji
Thanks. I think I was just attempting to dispute the idea that TransactionScope isn't widely supported. I was also trying to make a point that it makes more sense to handle transaction resiliency at a transaction level in dotnet using polly, than it does to use something dbcontext specific. Just looking at what is going on it here, EF does not provide a transaction - the underlying data store does. Therefore having a sensible polly resilience policy per data store provider for its transactions would be the logical scope I'd want to address this at - and I'd want EF core to honour that,> don't thing EF should  own this key abstraction as its resilience transactions are needed in dotnet with the data store whether you use EF core or now. For example if I was using ado.net directly with azure sql I'd want resilience. So for me it makes sense to create polly resilience policies at that level and then EF core can just benefit from them rather than enforce its own abstractions into the situation around resilience.
The short of it is I'd love to see like, Polly resilience library for Azure sql in general, and then be able to plug that in to EF dbcontext, or Ado.Net or Dapper etc.

Re TransactionScope specifically, It's true that it's supported by most provider (IIRC Microsoft.Data.Sqlite is the notable exception). However, the API doesn't support asynchronous I/O (for commit/rollback), for example.

I hadn't considered that. I wonder if async support can be added!

think the short of it is I'd love to see, Polly resilience policies available, per data store (azure sql, postgres etc) and then be able to use EF as a participant in a resilient transaction, rather than EF owning the resilience, and thus also the need to initiate the transaction within that.

As far as I know, there's nothing stopping you from doing that today. There's no nice integration with Polly (that's what https://github.com/dotnet/efcore/issues/30552 tracks), but you're definitely free to do all the things you want - EF, dapper, raw ADO.NET) - within a single retriable code block that's managed by Polly. Give it a try.

I wonder if async support can be added!

See https://github.com/dotnet/runtime/issues/1420. This is a pretty complex thing to do, requiring also changes in database drivers implementing the System.Transactions interfaces. It most likely won't be done any time soon.
I'll go ahead and close this as I don't think there's anything actionable here that isn't already tracked elsewhere.

@roji Thanks much appreciated


Add a a general Toggle and Cycle commands for keybinding

Hi,
Toggling configs is usefull, and having a general solution is great for users and for extension developpers as well.
The feature is just a cycle command that get in the "args" property an array of n settings objects.
The settings objects have to have the same schema, and activating the cycle command apply the the settings defined in the next object of the array until it reach the last member and cycle back to the first member.
The second feature is just a toggle command the is exactly the same than cycle, just the special case of an array of 2 settings objects excatly (and will complain if it's not exactly 2 members). It's just syntax sugar.

It would looks like this:
// # keybindings.json
[
    {
        "key": "ctrl+i",
        "command": "toggle"
        "when": "editorTextFocus"
        "args": {
                "id": "Zen", // id must be unique
                "values": [
                        // Must have 2 settings objects with the same schema
                        {
                                "workbench.statusBar.visible": true,
                                "workbench.activityBar.visible": true,
                                "workbench.editor.showTabs": false,
                                "editor.minimap.enabled": true,
                        },
                        {
                                "workbench.statusBar.visible": false,
                                "workbench.activityBar.visible": false,
                                "workbench.editor.showTabs": true,
                                "editor.minimap.enabled": false,
                        }
                ]
        },
    },
    {
        "key": "ctrl+shift+i",
        "command": "cycle"
        "when": "editorTextFocus"
        "args": {
                "id": "Theme and Font", // id must be unique
                "values": [
                        // As many settings objects as desired, with the same schema
                        {
                                "workbench.colorTheme": "Default Light+",
                                "editor.fontFamily": "Consolas, monospace",
                        },
                        {
                                "workbench.colorTheme": "Default Dark+",
                                "editor.fontFamily": "'Cascadia Code', monospace",
                        },
                        {
                                "workbench.colorTheme": "Default High Contrast",
                                "editor.fontFamily": "'Fira Code', monospace",
                        }
                ]
        },
    }
]

The reason for the unique id is to make the implementation easier, even if it could be generated, the advantage of letting the user set it, it that it can be used as a the name of the command to be display in the Command Palette: Toggle <"id"> and Cycle <"id">.
So with the current example, we would have "Toggle Zen" and "Cycle Theme and Font" in the Command Palette.

After reading the article Toggle any setting in VS Code using keyboard shortcut arguments by @rebornix and looking at his extension Toggle (marketplace, repo) I find it very usefull to have a toggle command for keybinding.
(I use it to toggle editor.inlayHints.enabled between on and off with the keybinding I like, which effectively solve #163201, #149019 and #154962)
One issue with the Toggle extension is that it appears closed source on the marketplace because the url to the repo is missing from the package.json file. Beside that it seems simple and super effective.
There is also another extension mentioned in the article called Settings Cycler (marketplace, repo) from @hoovercj. I didn't try it but it seems more general than Toggle by taking into account the user settings and workspace settings and detecting workspace settings collisions.
It seems like a neat feature for vscode and would be great if it's built in.
Have a nice day.

I do not think this can be a core feature as it is a sugar coating on top which can be done by extensions.

A lot of things can be done by extensions, the difference when it's built-in is that it's maintained by the vscode team and won't break after an update. Also, it's less extensions the end user have to install and managed.
Both extensions that effectively fulfill the toggle and cycle commands where not updated in 6 and 2 years, which shows some stability since it's still working, but also they also do have open issues from 2018.
Those extensions were developed by Microsoft members, so it should be good.
As I explained, those commands being built-in would help a lot other extensions, I gave examples.
I see those commands (which in reality is only one command and one special case where N=2) as core.
They are general enough that they should be built-in and extension developers should be able to depends on it in my opinion.

CC @isidorn

This issue should still be open. I ended up in this thread because I couldn't find toggle keybindings for Rust Analyzer in VSCode settings. The ability to toggle settings with keybindings is such an obvious feature I'm rather surprised that VSCode can't do this out of the millions of things it can. Assignable keybindings and an activity bar settings toggle feature would do the trick.

@sandy081
Hi, can this issue be reopen in the meantime please ?

I do not think this can be a core feature as it is a sugar coating on top which can be done by extensions.

Strong disagree. Basic features like this should not be reliant on an external extension. Having a lot of small extensions doing very basic stuff (or worse different extensions doing similar, but not the same stuff) doesn't lead to an integral ergonomic 'VSCode' way of doing things. IMO this harms usability and in the end the VSCode product.
To illustrate why this is a bad idea:
What about ditching the File>Open functionality from core? You can use one of the many existing extensions that implement local storage IO-provider functionality for opening files...


Feature Request: File Upload from Uint8List with filename

Thank you for the great package!
Could you consider adding a feature to upload files directly from Uint8List, specifying the filename?!
This would significantly enhance file integration in Flutter web apps.
Thank you!

Yeah, makes sense.
will handle that.


Adding Enhancement Effect to navbar on scrolling

Is your feature request related to a problem? Please describe.
Its seems navbar looks odd when scrolling as white colors dominates there.
Describe the solution you'd like.
I would to like to enhance the UI of navbar on scrolling so that it looks good and its visibility gets improved
Describe alternatives you've considered.

Add any other context or screenshots about the feature request here.

@agamjotsingh18 Sir can I work on this issue ? if yes please assign it to me .

Too simple issue


aria2c doesn't support writing remote content to stdout

I've implemented aria2c support in #904. However, I finally realized that aria2c doesn't support writing remote content to stdout (https://github.com/aria2/aria2/issues/190).
I confirmed that basically this must be not a problem for ruby-build since it doesn't rely on http get without filename (the only usage of http get is specifying its destination filename). It'd be better to be fixed though.

Thanks for catching this. Like my comment in https://github.com/rbenv/ruby-build/pull/904#issuecomment-221599563, I don't like that every tweak to aria2c support needs to touch all tests. Is there a way we can circumvent this? Maybe go back to stubbing curl instead, and aria2c as uninstalled on the system, and then have just 1 tests that stubs aria2c as supported and tests its invocation?

It sounds nicer than current test impl..... I'll try to do it later.

I've prepared test helper to remove aria2c from $PATH. Now we can use curl stub during test as same as before. I've prepared dedicated test case for aria2c and it'd be sufficient to check if aria2c is working.
@mislav could you review the changes again?

Thanks for doing all the work and being patient!


Batman Arkham Asylum Shader Model 3 Error

Describe the bug

Starting the game with remix cause Shader Model 3 Error.
Main Branch remix-0.1.1
RTX 3080
531.61.0
Game version 1.1 from Epic Games

To Reproduce
Steps to reproduce the behavior:

Start the game from epic launcher with remix installed

Expected behavior
Game should start with Remix
Screenshots

NvRemixBridge.log
d3d9.log
ShippingPC-BmGame_d3d9.log

its 9.0c
wont work probably

Try to move bridge.conf to .trex folder and in bridge.conf set client.shaderVersion to 3.0 and remove #

Splash screen appears (the small window with Batman), intro's audio starts for about 1 second and then the game crash stopped working with a white rectangle at the top left corner of the screen

Try to move bridge.conf to .trex folder and in bridge.conf set client.shaderVersion to 3.0 and remove #

Splash screen appears (the small window with Batman), intro's audio starts for about 1 second and then the game crash stopped working with a white rectangle at the top left corner of the screen

Can you share with (exe name)_d3d9.log

NvRemixBridge.log
ShippingPC-BmGame_d3d9.log
d3d9.log

use dkvx fork, games from 2009.

use dkvx fork, games from 2009.

Can you elaborate a bit more / how to do this?

use dkvx fork, games from 2009.

Can you elaborate a bit more / how to do this?

I think is this one:
https://github.com/doitsujin/dxvk

use dkvx fork, games from 2009.

Can you elaborate a bit more / how to do this?

I think is this one: https://github.com/doitsujin/dxvk

this, https://github.com/NVIDIAGameWorks/dxvk-remix

Its literally the same thing

then you'll see the log file in the trex file if you use the other because it says its not dxvk supported

then you'll see the log file in the trex file if you use the other because it says its not dxvk supported
You are loading the bridge

The bridge isnt DXVK
Which is true

Shader-based games are not in scope for Remix, as it's a difficult technical problem to solve. We therefore have no plans to support them for now. (There is extremely limited support for vertex shaders in some games, but it's focused on specific use cases that we can currently support.)


MrGadget NetworkManager populate spawnable prefabs button suggestions

posting so it doesn't get lost.
Few suggestions:

Do the OrderBy on the identities list before doing the AddRange, so that any that were added to NM.spawnable manually first are kept in place
Add a Clear button so users can wipe the list and rescan to rebuild the list fully sorted if they know that won't break them
make sure you're not adding Player Prefab to spawnables, since Mirror adds that automatically elsewhere.

For no. 1 above, I'm thinking of the case where player character prefabs are intentionally put in the first few slots and referenced by index in char selection, so they can't be sorted down into the middle of the list without breaking things

as for OrderBy: this goes both ways:

some users may prefer the original prefabs to stay unordered, followed by ordered
otherwise may prefer the whole list to be ordered

I think it's more likely that people want everything to be ordered, since the Populate button is meant to add Everything.

https://github.com/MirrorNetworking/Mirror/pull/3915


Changes due to new getburninfo structure

With the upcoming hardfork Fort Canning Spring the data format of the getburninfo-API has changed. The corresponding evaluation must be adapted.

Fix will be done in the loading procedure to have correct data for all evaluations


Material category nav

https://github.com/etchteam/recycling-locator/assets/5038459/afb6aec2-dfa1-4c7c-881c-feffc1d16f52

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Query Breakdown - Unifi-Poller Network Sites - InfluxDB

I have installed grafana and using influxdb to monitor my unifi network.
The issue I have is, one of the graphs within the template that I have downloaded has no data. I have tried to look at it and see why but I cannot figure out what it is trying to extract. Below is the query.
The panel is trying to show Data Transfer by Category.
SELECT non_negative_derivative(sum(“rx_bytes”), 1s) AS “Bytes Rx”, non_negative_derivative(sum(“tx_bytes”), 1s) AS “Bytes Tx” FROM “sitedpi” WHERE (“site_name” =~ /^$site$/) AND $timeFilter GROUP BY time($__interval), “category”
Looking at the query I think that the issue is the table name “sitedpi”. If I run the command SHOW MEASUREMENTS; I do not see a table called “sitedpi”, but I have no clue what table to put in its place to get data to be presented to the graph.
Below is the results of the SHOW MEASUREMENTS;
Show Measurements;
name: measurements
name
clients
subsystems
uap
uap_radios
uap_vaps
usg
usg_networks
usg_wan_ports
usw
usw_ports
Any help would be much appreciated
Thanks
Lawrence

@davidnewhall It is enabled.

You also need to enable it in the unpoller config file.

You must also enable DPI collection in the unpoller config file. This data consumes a massive amount of space, so it's opt-in only.

@davidnewhall
Thanks a million for the great support.
It worked.
Lawrence


Fixes wantlist processing

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-2 of 2 (0.0%)  changed or added relevant lines in 2 files are covered.
18 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 32.252%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

background/refreshwantlists.go
0
1
0.0%

background/sales.go
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

background/refreshwantlists.go
18
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
1074

Relevant Lines:
3330

💛  - Coveralls


Specify the Calling Convention for Fixed-Length Vectors

Previously, there was no mention of fixed-length vectors in the psABI, however fortunately, GCC and Clang are implemented same ABI rule for fixed-length vectors, so this PR is document the de factor behavior for that.

Fixed-length vector are treat as aggregates.
The aligment requirement is equivalent to the alignment requirement of its elemental type.

cc. @palmer-dabbelt @JeffreyALaw @preames @topperc @rofirrim @lhtin

Fixed-length vector are treat as aggregates.

This proposal is great and avoids complicating the passing of fixed-length vectors. But the problem is that it doesn't take advantage of vector registers. Are there any more details about this issue?

GCC and Clang are implemented same ABI rule for fixed-length vectors

Also I tried, GCC currently passes through reference even if the vector size is less than 2*XLEN, which is not according to this proposal. Here is the example: https://godbolt.org/z/3ooovcz7c

Also I tried, GCC currently passes through reference even if the vector size is less than 2*XLEN, which is not according to this proposal. Here is the example: https://godbolt.org/z/3ooovcz7c

That's bug, try to drop v from the -march and you will see different way to pass the arguments

This proposal is great and avoids complicating the passing of fixed-length vectors. But the problem is that it doesn't take advantage of vector registers. Are there any more details about this issue?

We need separated calling convention for that case, because not every system has v, and here is the working draft for that one:
https://github.com/riscv-non-isa/riscv-elf-psabi-doc/tree/fixed-length-vector-cc


[zh] sync install-binary.md

Added zh text to this file:
i18n/zh/docusaurus-plugin-content-docs/current/installation/install-binary.md

/kind documentation
cc @Poor12

/lgtm

Hi @RainbowMango, could we move this forward after ten more day passed.


How to sort file with different extension (e.g.heex )  ?

Hi @laytan
Thanks a lot for this plugin. It's the missing piece.
We have a lot of files with filename.html.heex extension. And we want to sort tailwind classes in them.
Is it possible with the help of neovim and this plugin ?
Our lazy-nvim is setup is as following:
return {
	"laytan/tailwind-sorter.nvim",
	dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-lua/plenary.nvim" },
	build = "cd formatter && npm i && npm run build",
	config = function()
		require("tailwind-sorter").setup({
			on_save_enabled = true, -- If `true`, automatically enables on save sorting.
			on_save_pattern = { "*.heex", "*.html", "*.js", "*.jsx", "*.tsx", "*.twig", "*.hbs", "*.php" }, -- The file patterns to watch and sort.
			node_path = "node",
		})
	end,
}

We even tried running TailwindSort command from the ex mode but it doesn't work either.
The command is available but it doesn't format the file and doesn't sort the classes.
If we change the filetype to html by set ft=html then it works fine. But that would break few other things for us.
If possible, how to run it on files with heex extension or eelixir as filetype ?

I was able to make it work with null-ls and hence closing this issue.

Hey, even though you closed this, I added support for elixir and heex in #10 and your snippet of config would work with this version.


DOC: Small README tidying

Reading through this again, and noticed a few things we could make a bit clearer.

Replace ’ character with ' character (this accounts for most of the line changes in this PR)

Split up the paragraph describing searching for a node to "break" around the figure, which IMO reads a bit clearer:

Before
After

In the barplots section:

"this is the same information as we showed when coloring the tree by feature metadata earlier" -> "this is the same information we saw when coloring the tree's nodes by Level 2 earlier"
"We know from the barplot that this tip is only present in one right palm sample, and the Sample Presence Information summary by body-site for this tip confirms this." --> "We know from the barplot that this tip is only present in right palm sample(s), and the Sample Presence Information summary by body-site for this tip confirms this: this particular tip is only present in one right palm sample."

The following artifacts were built for this PR: empire-biplot.qzv, empire.qzv, empress-tree.qzv, just-fm.qzv, plain.qzv

Thanks @fedarko


Fix : View Retention in Users Tab After Navigation and Logout

Proposed Changes

Fixes #9484
Retains the selected view (list/card) in the Users tab when navigating away and revisiting, and also after user logout and login.

https://github.com/user-attachments/assets/87c341b0-6942-497c-9de4-a6eabdc4d627
@ohcnetwork/care-fe-code-reviewers
Merge Checklist

[ ] Add specs that demonstrate bug / test a new feature.
[ ] Update product documentation.
[ ] Ensure that UI text is kept in I18n files.
[ ] Prep screenshot or demo video for changelog entry, and attach it to issue.
[ ] Request for Peer Reviews
[ ] Completion of QA

Summary by CodeRabbit
Release Notes

New Features

Introduced a new View component for dynamic view rendering.
Added a custom hook useView for managing view state with local storage persistence.

Improvements

Enhanced ManageUsers, BoardView, and ListView components to utilize the new view management system, allowing for more flexible tab and view handling.
Updated routing logic in ResourceRoutes and ShiftingRoutes to streamline view handling.

Bug Fixes

Improved loading state management during data fetching for user lists.

I'd recommend creating a util. function that handles the logic to create an abstraction between the storage, since we have similar use cases in other places.

Also, let's not have a dedicated route defined for it.

I'd recommend creating a util. function that handles the logic to create an abstraction between the storage, since we have similar use cases in other places.

Oh true, resources and shifting if I recall.

(And appointments page in DO Branch)

Also, let's not have a dedicated route defined for it.

For Users i have done.

Hey @rithviknishad , @Jacobjeevan can you once check the implementation. Is this correct?

@Mahendar0701 The view preferences should be cleared upon user logout. Currently, there is an issue where User A's preferences are retained and applied to User B, which is not the intended behavior.

@Mahendar0701 The view preferences should be cleared upon user logout. Currently, there is an issue where User A's preferences are retained and applied to User B, which is not the intended behavior.

Ok i will do required changes

@Mahendar0701 The view preferences should be cleared upon user logout. Currently, there is an issue where User A's preferences are retained and applied to User B, which is not the intended behavior.

@nihal467, when we clear the view preferences upon logout, we won’t be able to retrieve the saved preferences if the user logs in again, as we are not storing preferences in the database.

Should I store the view preferences in localStorage according to the user to avoid conflicts between different users?

no, just clear the cache whenever the session changes.
see similar usage:
https://github.com/ohcnetwork/care_fe/blob/develop/src/components/Auth/Login.tsx#L102

Hey @rithviknishad can you once checkout the implementation?? useView.ts and view.tsx files??

@Mahendar0701 The view preferences should be cleared upon user logout. Currently, there is an issue where User A's preferences are retained and applied to User B, which is not the intended behavior.

@nihal467 can you once check. I have done the changes

LGTM

no longer relevant in new architecture as most of the relevant things are removed


Move Frequency Genesis Config to Runtime

Description
Move Frequency Genesis Config to Runtime
Subtask of Parent Issue
https://github.com/frequency-chain/frequency/issues/2142

https://github.com/frequency-chain/frequency/pull/2155
Genesis is now fetched from the spec file in resources.


remove Scrutinizer

Issue #19
Changelog

removed Scrutinizer configuration
removed Scrutinizer badge

Thanks for contributing during #hacktoberfest! Even though someone else took care of this issue, this still counts. You can check your progress here: https://hacktoberfest.digitalocean.com


ADDED : Flutter & Dart - The Complete Guide [2020 Edition]

Hey, have I done anything wrong? Why is the PR closed?


Mothur

Mothur
In screen.seqs, how to determine maxambig, maxlength, minlength

maxambig should always be zero. For max and min length you need to know
something about the distribution of lengths for good sequences in your
region. I still strongly plea with people to use V4 and the values on the
SOP but if you aren’t using V4 you can use
https://mothur.org/blog/2016/Customization-for-your-region/ to find the
right region and then process the Silva reference alignment to get the
right numbers. Maybe give 5 extra nucleotides on both ends
Pat
On Mon, Sep 12, 2022 at 05:40 Blueiris12 @.***> wrote:

Mothur
In screen.seqs, how to determine maxambig, maxlength, minlength
—
Reply to this email directly, view it on GitHub
https://github.com/mothur/mothur.github.io/issues/93, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJUUBGTFXITCAE7U72OX5DV54CCBANCNFSM6AAAAAAQKKVH2I
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[MINOR][DOCS] Fix Spark hive example.

What changes were proposed in this pull request?
Documentation has an error, https://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html#hive-tables.
The example:
scala> val dataDir = "/tmp/parquet_data"
dataDir: String = /tmp/parquet_data

scala> spark.range(10).write.parquet(dataDir)

scala> sql(s"CREATE EXTERNAL TABLE hive_ints(key int) STORED AS PARQUET LOCATION '$dataDir'")
res6: org.apache.spark.sql.DataFrame = []

scala> sql("SELECT * FROM hive_ints").show()

+----+
| key|
+----+
|null|
|null|
|null|
|null|
|null|
|null|
|null|
|null|
|null|
|null|
+----+

Range does not emit key, but id instead.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/10853/
Test PASSed.

Test build #105600 has started for PR 24657 at commit 6253e16.

LGTM

Test build #105600 has finished for PR 24657 at commit 6253e16.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/105600/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/10854/
Test PASSed.

Test build #105602 has started for PR 24657 at commit 6253e16.

Test build #105602 has finished for PR 24657 at commit 6253e16.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/105602/
Test PASSed.

cc @HyukjinKwon

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/10864/
Test PASSed.

Test build #105612 has started for PR 24657 at commit 5e6ed81.

Test build #105612 has finished for PR 24657 at commit 5e6ed81.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/105612/
Test PASSed.

Merged to master, branch-2.4, and branch-2.3.


(Build) Fail on dev branch.

This issue is created automatically by CI.
Linux Build State: success
Windows Build State: failure
Commit: c120d604dfd87b69087412f42e35cfa722c3aad9
Commit Branch: dev
Commit Author: innerviewer

Auto-closing as build in this branch is successful now. Commit: 128424f0d930822465b9441ca21ee0a91260f918


allow setting workflowType

by default it's the simple name but in some advanced use case, ppl want to set the value differently (e.g. DSL workflow)

https://github.com/indeedeng/iwf-java-sdk/pull/70


Added backwards compatibility for Laravel 5.8, 6 & 7.

Closes #24
Downgraded requirement to PHP 7.2 minimum.

@GhazanfarMir Hey, have you had chance to look at this pull? Thanks!

@GhazanfarMir Legend, thanks!

@GhazanfarMir Would you be able to manually update packagist? Doesn't seem to want to auto update by the looks. Thanks!

I did update manually earlier, not sure why packagist isnt updating stable
version.
On Mon, 6 Apr 2020, 16:44 Matthew Williams<EMAIL_ADDRESS>wrote:

@GhazanfarMir https://github.com/GhazanfarMir Would you be able to
manually update packagist? Doesn't seem to want to auto update by the
looks. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GhazanfarMir/laravel-companies-house/pull/33#issuecomment-609873865,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADXJALLWBQ45RNDB2RPZ3TRLH2GJANCNFSM4L3Y2ZWA
.

Ok this is now sorted.
Please update package.
On Mon, 6 Apr 2020, 17:49 Ghazanfar. Mir<EMAIL_ADDRESS>wrote:

I did update manually earlier, not sure why packagist isnt updating stable
version.
On Mon, 6 Apr 2020, 16:44 Matthew Williams<EMAIL_ADDRESS>wrote:

@GhazanfarMir https://github.com/GhazanfarMir Would you be able to
manually update packagist? Doesn't seem to want to auto update by the
looks. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GhazanfarMir/laravel-companies-house/pull/33#issuecomment-609873865,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADXJALLWBQ45RNDB2RPZ3TRLH2GJANCNFSM4L3Y2ZWA
.


install and use in WSL or Windows 10?

Hi. I am new to coding in 2020 and would like to use prima-page-viewer to see .xml files, in order to view .xml results I have obtained using OCR-D.
I have OCR-D running on my Windows 10 laptop, utilizing WSL2 and the Ubuntu 18.04 app from the Windows Store.
Would someone be able to guide me how to use prima-page-viewer to view my .xml files in this set-up? I tried downloading the repo and also PageViewer 1.4.07 into my ubuntu root a couple of times (and, if I remember correctly, I followed some brief instructions in a README like running a make and/or .sh file). I also added Java 11 to Ubuntu after some failures. After that, when I tried to open the file, I got
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(Unknown Source)
        at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
        at org.eclipse.swt.widgets.Display.create(Unknown Source)
        at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.primaresearch.page.viewer.PageViewer.main(PageViewer.java:63)

Someone on the OCR-D/Lobby in gitter said, "I don't think you can use the Gtk/SWT bridge from the WSL layer, because AFAIK that's non-X11. You have to install Java in Windows itself and run the .cmd script natively."
After looking around how to do this, I'm not sure how.
I would be very grateful if someone could please guide me (if indeed it's possible) to either:

set page-viewer up in WSL/Ubuntu given my set-up, if perhaps it is, after all, possible.
or
set it up in Windows 10. (Then I believe, hopefully, I can just open the same .xml file on the Windows side.)

PS If on the Windows 10 side, I think I can handle installing Java, as far as that goes. :)

Hi again,

2. set it up in Windows 10. (Then I believe, hopefully, I can just open the same .xml file on the Windows side.)

if you downloaded the release archive (zip file), there's a Windows subdirectory which contains Start Page Viewer.bat. You just need to double-click that from explorer. You can then click the Open button and navigate to your PAGE-XML file. (It will also require you to navigate to the matching image file after that, because PageViewer expects relative path names in PAGE-XML's /Page/@imageFilename to be relative to the PAGE-XML file, whereas OCR-D uses another convention, where the METS file is always the point of reference.)
If you are on a Windows command line, you can also call that .bat file with the files to open as arguments, see Open example.bat.
(And yes, you will need to install Java 8 or higher natively on Windows.)

Super-helpful, @bertsky , once again! I have it working.

Hey hi @SB2020-eye & @bertsky! Fancy meeting you here... 🤗 Hi, too, to @chris1010010 & Apostolos! (Christian, let Apostolos know I have been giving you good folks a rest from my relentless mentoring inquiries to give him space to cope with Salford’s collegial political demands he mentioned a few years back. But the “game’s afoot” and I will be getting in touch with you both soon.)
Per this thread to @SB2020-eye I will chime in as a Windows-based researcher that the best full featured and well supported XML IDE/editor is OxygenXML (https://www.oxygenxml.com) which has a dramatically cheap educator/researcher discount price that is a true bargain. I bit the bullet years ago for the SMP license and it’s annual renewal is dirt cheap. It supports many OS platforms including a native Windows version. I depend on it to generate the evolving schema for the MAGAZINEgts format.


[Compatibility]: Re-publish old 1.19.2 mod version for compatibility

Is your feature request related to a problem?
As many servers running the mod still have the old (1.0.0) version installed, I suggest re-uploading it to CurseForge for the sake of compatibility.
Solution(s)
No response
Describe alternatives you've considered
No response
Mod Version
2.0.0
Mod Loader Version
1.19.2 - 0.14.10
Mod Loader
Fabric
Additional context
No response

There was never an old 1.19.2 version to begin with, the version before this was 1.19.1. Can you try the old 1.19.1 version on 1.19.2? If it works, I'll mark it for 1.19.2

You're right, it was indeed the 1.19.1 version we've been using in our pack. CurseForge detected the new 1.19.2 version as an update and then didn't show the other versions. It actually works for 1.19.2 tho.
I feel really dumb now. -_-

Oh great. I'll update that old version to work with 1.19.2 :)


Remove the low entropy serial number check

I believe this check does more harm than good.
A fully compliant CA which generates a random serial number from exactly 64 bits of entropy will produce a serial number less than 8 bytes long 1 in 256 times.  That means that for every million certs issued, this check will cause about 4,000 false positives.
To avoid the false positives, the CA might be induced to do something silly like ensure the first byte of the serial number always has at least one bit set, which reduces the entropy to less than 64 bits.  GoDaddy did this: https://groups.google.com/d/msg/mozilla.dev.security.policy/S2KNbJSJ-hs/VArvVlv0BgAJ
The only sensible way to detect low entropy is to run an analysis across a large corpus of certificates.  If you try to detect it on a cert-by-cert basis you should at least have a much smaller minimum length than 8 so there's a lower false positive rate than 1/256.

This issue has been open for a while without any objections surfacing. Three people beyond @agwa have indicated some positive support with a :heart: reactji (surely the most formal of democratic signalling mechanisms) so I opened a PR to remove the lint: https://github.com/zmap/zlint/pull/292


Eslint Does not Recognise setPropTypes

I am using lint configs from airbnb. Therefore lint is complaining about propTypes even though I had set with the setPropTypes (recompose). Is there a workaround for this?

I dont think this is somehow matters here. Some tool comlplain :-) imo its tool issue.

There is a related issue in eslint-react-plugin.


Unexpected install.xdt generated after conversion from nuget

I have packages.config which includes

And the project has package specific content file FodyWeavers.xml with some custom content.
After Paket runs convert-from-nuget command something unexpected happens: FodyWeavers.xml is reset to its empty state (as after the package fresh install) and the real content is moved to FodyWeavers.xml.install.xdt
It feels like Paket is trying to tell me something, but because install.xdt / uninstall.xdt are not documented I could not find how to get back to the workable state other than by pulling my content from install.xdt back to FodyWeavers.xml. It is not a big deal but it looks like Paket is doing some (unfinished?) counter-productive thing during convert-from-nuget.
Could anybody shed some light on it?
Thank you!
Konstantin

Appeared it happens again and again on each Paket install for each project in solution which uses Fody package! It gets annoying very fast. Any way to stop Paket from doing it?

Yes, put content: none on the Fody line in the dependencies file. I've noticed this too though - it's also present on the Microsoft Service Bus nuget package.

@isaacabraham your advice worked like a charm! Thanks a lot!


disk image naming

Right now imags/zvols are named "zroot/iohyve/$name/$name-0.img"
Including the name twice seems redundant. With zvol the default one can argue it's no longer an image and hence dropping the img suffix would make sense.
I suggest the zvols be renamed to "zroot/iohyve/$name/diskN" where N starts with 0 as it would provide a cleaner look

This is a fantastic idea that shouldn't take very long to implement. Thanks! :+1:

Implemented as of v0.5.6.


Issue dependencies ui kind of broken

Gitea version (or commit ref): cc9fa06
Git version: 2.18.0
Operating system: Debian
Database:

[X] MySQL

Can you reproduce the bug at https://try.gitea.io:

[x] Yes: https://try.gitea.io/Aragur/Issue-Dependency_Issue/issues

Description
In the dependencies list it only lists the last 8 issues relative to that one. For example issue #12 can only see issues #11 to #3. Also manual mention (for example of #1) doesn’t work.
Thanks to @Morlinest we already know more details:
Current work around is to search the exact issue name to add another.
Direct mention of the issue id is not working (but this should a thing).
Screenshots
Try to select #1 on issue #12

Ping @kolaente

This is something which should be fixed directly in the issue search, as I'm only using that (via the api). The results are the same as when you search on {projecturl}/issues.

I'd rather have the search return issues by their index instead of frankensteining this into the dependencies.

Just noticed that direct mention of the issue id is still not working as of 7d973edf65c664ea4bdb0efe455f03c486727fa2.

@stevegt could you give a quick example of what you mean. Preferably with a try.gitea.io link?
It might be best to open another issue since this one is closed.

@zeripath A 'try' link won't help -- go to any issue you can edit and enter an issue number into the 'dependencies' field, either with or without a leading '#'.  You'll see that you get an error response of 'Dependent issue does not exist.'
This issue was recently closed by stale bot due to lack of activity, not because it's been addressed.  There has been no merge referencing it.  Re-opening would be the normal thing to do, rather than fragment the conversation.

For me is happening something similar, but it seems to be a cache problem, because if I create a sequence of issues, only old ones once shown are listed on new issues to be included as dependency. Also, it seems to show only the first page of opened issues (typing '#' would help).
A workaround: change browser or clear cache history.

@nascimentolwtn i think is is caused by service worker and caching the result

I think the dependency drop down is only showing the first page of issues. Changing the ISSUE_PAGING_NUM in app.ini to a larger number showed more issues in the drop down (and on the issues page of course). The drop down should not be affected by "pages", should be all issues, filtered as you type.

Tested on version 1.11.6 :

Searching the title of an issue that is not in the choices shown in the drop-down menu works.
Searching the linked reference (mike/compiler#1234) does not return results.

@samaust sorry, we dont support v1.11.6 & you should upgrade for security reasons

@6543 The fact that @samaust is running an old version is orthogonal to this issue -- the bug still exists in 1.14.0+dev-874-ge8ad6c1ff.  See previous messages.

I installed from snap yesterday and ran into this same issue.
gitea 1.16.5
Not sure if bugbounties are welcome but I'd tip $50 in BTC for this to be fixed.

The relevant template is
https://github.com/go-gitea/gitea/blob/73382d2132f8f242245d83f66c92761e0b477b91/templates/repo/issue/view_content/sidebar.tmpl#L517-L534
The associated JavaScript
https://github.com/go-gitea/gitea/blob/73382d2132f8f242245d83f66c92761e0b477b91/web_src/js/features/repo-issue.js#L89-L123
A few questions come to my mind:

Why is the JavaScript using .data() here? (see https://docs.gitea.io/en-us/guidelines-frontend/#html-attributes-and-dataset )
I can see AJAX requests like /issues/search?q=some&priority_repo_id=2&type=all&_=1654452403354 Where is the associated router? (formerly using /api/v1/repos/issues/search. Changed in https://github.com/go-gitea/gitea/commit/783a02188970ba5800514f7c64f6a818f65c04a1#diff-d39a63ccfd5f0fe703f74ce48a3624ba59a856317b0d236d7eae87dfcf6c1c20 ) The one below?
Searching for something in the title or body (whole words) work. We want to reference the issue ID here, though.

https://github.com/go-gitea/gitea/blob/7b089c465d9f851454be91ca209ab26782648a45/routers/web/repo/search.go#L19-L58

I got an explanation on routers in the chat.
The router in
https://github.com/go-gitea/gitea/blob/d9b50e4fd126e60fe0735bafbcb12d0e8f6dd0c2/routers/web/web.go#L320
passes the request to SearchIssues:
https://github.com/go-gitea/gitea/blob/744e45218579fe2fd130b91d9fb95ec4becd314d/routers/web/repo/issue.go#L2144-L2317
That makes
https://github.com/go-gitea/gitea/blob/744e45218579fe2fd130b91d9fb95ec4becd314d/modules/indexer/issues/indexer.go#L385-L401
the code that searches the issues.
Therefore, this issue is likely not of kind/ui.

I can answer some of your questions.

Why is the JavaScript using .data() here? (see https://docs.gitea.io/en-us/guidelines-frontend/#html-attributes-and-dataset )

There are a lot of legacy frontend code. The rule for using attr instead of data was suggested by sliverwind a few month ago and I wrote it into the guideline. For me, I am doing my best to make sure ever line of JS I touched follows the guideline.

https://github.com/go-gitea/gitea/pull/17597

I can see AJAX requests like .. Where is the associated router?

The easiest way is just to run the code, and watch the output log. You will see the called router function in logs (I added this feature in 1.17, to make develop & debug more easily)

https://github.com/go-gitea/gitea/pull/17308

Searching for something in the title or body (whole words) work. We want to reference the issue ID here, though.

Yup, it's better to make the Issue Index can be searched (indeed, the number of the issue is called index interally, not id)

Partial matching of words is possible but might be expensive.
bleve: https://github.com/blevesearch/bleve/issues/321#issuecomment-171345533

I propose> create a popup template that based on usage has preset filters. (e.g. only issues/pulls of repo X)
and let issues search via keyword or number have it live updated...
... multiselect would be nice
... filter for closed and open
use that:

for adding issues/pulls in project board view to add to the project
adding dependencys

mockup:

I propose> create a popup template that based on usage has preset filters. (e.g. only issues/pulls of repo X)
and let issues search via keyword or number have it live updated... ... multiselect would be nice ... filter for closed and open
use that:

for adding issues/pulls in project board view to add to the project
adding dependencys

mockup:

I propose> create a popup template that based on usage has preset filters. (e.g. only issues/pulls of repo X)
and let issues search via keyword or number have it live updated... ... multiselect would be nice ... filter for closed and open
use that:

for adding issues/pulls in project board view to add to the project
adding dependencys

mockup:

I strongly believe that this is an altogether different feature request.
Please make this a different issue. The issue at hand is already complex and does not require any additional complexity.

What is required here as a solution, is search by

issue index
any non db based indexer: fuzziness properly configured and using the proper queries
for db only indexer: proper like query construct


additionalModels issue

Please take the time to search the repository, if your question has already been asked or answered.

v3.0.0

What kind of issue is this?

[x] Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests or
steps to reproduce get fixed faster. Here’s an example: https://gist.github.com/swankjesse/6608b4713ad80988cdc9

here is my model
    data class ErrorResponse(
        val errorCode: Int,
        val message: String,
        var xRequestId: String? = null
    )

in my swagger-ui

What happened to xRequestId property?
Please do consider starring this repository if you do like this project and find it useful.

I have a similar issue.

Note: I tried to explicitly tell to springfox that it is a response model.
Only difference is commissionRewardsId which in one model is not required and in another, it is required!
Here is my class definiition in kotlin.
data class CheckoutRecordBody(
    val commissionRewardsId: Long,
    val rewardedUuid: String,
    val referentUuid: String,
    val referralCode: String,
    val richTrade: Long,
    val referentOrderDirection: OrderDirection,
    val share: BigDecimal,
    val createDate: Date,
    val checkoutState: CheckoutState,
    val transferRef: String?,
    val updateDate: Date
)

Probably there is an issue with Id keyword in model properties


Missing packages/namespace

Thanks for sharing your algorithm.
Apparently, various functions are missing the reference to the package via "::" (e.g. dplyr, terra) so one has to load libraries in R. Also pipe operator "%" is missing (fix with usethis::use_pipe()).
Looking forward to test the algorithm on my data.
Best wishes
Alex

Hello Alex,
basically you make sure that tidyverse, terra, sf, data.table and crayon packages are installed.
Have just added
check_PACKS()
to TREETOPS
It checks the whether the required packages are installed, if any of them is missing, it will install it/them.
You have to import tidyverse because of the pipe operator:
require(tidyverse) or library(tidyverse)
The rest can be ignored, since they are ::-ed in the TREETOPS package.
In the short manual (README.md) that was also added today, all packages are imported to show the user that TREETOPS depends on them.
Hope it helps.
Cheers and best,
Gergo

Thanks for the feedback. If I run the package without library(terra) etc. function are currently not found. The packages are installed, though.
If you use usethis::use_pipe in package development one will not need to import tidyverse or magrittr.

Hey Alex,
many thanks for recommending usethis::use_pipe()!
I have not known it.
After ::-ing every function in TREETOPS, you do not have to import any packages for using TREETOPS::.
Example in README.md was also accordingly updated.
Give it a try, note that TREETOPS::get_TREETOPS() is slow, but it will show the height increment it is processing.
Have fun,
Gergo


odd behavior (via Python API)

Here's the script I ran:
import z80

m = z80.Z80Machine()

image = b'\x00\xdd\x21\xf5\x04\x00'
m.set_memory_block(0, image)

for i in range(5):
    print('-' * 35)
    print(f"m.pc = {m.pc:04X}")

    (instr_asm, instr_nbytes) = m._disasm(image[m.pc: m.pc+4])
    addr_of_next_instr = m.pc + instr_nbytes
    instr_byte_string = ' '.join(
        f"{byte:02X}"
        for byte in image[m.pc: addr_of_next_instr]
    )
    print(f"instr is next {instr_nbytes} bytes (so following instr starts at {addr_of_next_instr:04X})")
    print(f"{instr_byte_string:12} = {instr_asm}")
    print('')

    m.ticks_to_stop = 1
    m.run()

And here's the output I got:
-----------------------------------
m.pc = 0000
instr is next 1 bytes (so following instr starts at 0001)
00           = nop

-----------------------------------
m.pc = 0001
instr is next 4 bytes (so following instr starts at 0005)
DD 21 F5 04  = ld Pix, W0x04f5

-----------------------------------
m.pc = 0002
instr is next 3 bytes (so following instr starts at 0005)
21 F5 04     = ld Phl, W0x04f5

-----------------------------------
m.pc = 0005
instr is next 1 bytes (so following instr starts at 0006)
00           = nop

-----------------------------------
m.pc = 0006
instr is next 1 bytes (so following instr starts at 0007)
             = nop

So:
(1) At the line DD 21 F5 04  = ld Pix, W0x04f5, I would have expected the disasm string to be ld ix, 0x04f5. Instead, the format characters P and W are included along with their expansions. Looking at the code in on_format_char, I can't even figure out how this is possible.
(2) Given that the instruction at address 1 is 4 bytes long, I would have expected the next value of m.pc to be 5. Instead, it's only 2. (But the one after that is 5, so the machine isn't just stepping through the image one byte at a time.)
(3) Am I mis-using the Python API? I couldn't find any documentation.
(I fetched the z80 code today, so it's presumably up-to-date.)

Hi @jmdyck, sorry for the delay. To answer your questions:
(1) The disassembling function you call is an internal one (note the leading underscore). c28c9687 has intentionally overridden on_format_char() to prepend the format character to help the disassembler (_disasm.py) figure the types of operands. The disassembler itself is still in development, but should be capable enough for what your script does. The just-submitted 96c8ced exposes the _Z80InstrBuilder class, which we can use for that and which is supposed to become part of the public z80 interface:
import z80

m = z80.Z80Machine()
b = z80._Z80InstrBuilder()

image = b'\x00\xdd\x21\xf5\x04\x00'
m.set_memory_block(0, image)

# for i in range(5):
while m.pc < len(image):
    print('-' * 35)
    print(f"m.pc = {m.pc:04X}")

    # (instr_asm, instr_nbytes) = m._disasm(image[m.pc: m.pc+4])
    instr = b.build_instr(m.pc, image[m.pc:m.pc+4])
    instr_asm = str(instr)
    instr_nbytes = instr.size

    addr_of_next_instr = m.pc + instr_nbytes
    instr_byte_string = ' '.join(
        f"{byte:02X}"
        for byte in image[m.pc: addr_of_next_instr]
    )
    print(f"instr is next {instr_nbytes} bytes (so following instr starts at {addr_of_next_instr:04X})")
    print(f"{instr_byte_string:12} = {instr_asm}")
    print('')

    m.ticks_to_stop = 1
    m.run()

(2) This is as expected. Every time the emulator runs into an IX/IY prefix, the instruction decoder changes its internal state respectively so it knows next time there's going be a prefixed instruction and then the emulator returns control. So the prefix bytes are treated very much like separate instructions. This is necessary, because otherwise the emulator would just never return control once it's given an image completely filled with prefix bytes. So if you want to step by full instructions, the instruction-running loop should be something like the following (requires 5e921cf):
    while True:
        m.ticks_to_stop = 1
        m.run()

        # Only stop at the end of a full instruction.
        if m.index_rp_kind is z80.HL:
            break

(3) No documentation for the disasm and actually any APIs yet, sorry. So far the focus was on figuring out the right interfaces, and this is still in progress, so I guess just asking is the way to go for now. (And I aim to respond sooner.)


Pendual: Finish the majority of the events

In this commit I have pushed my current changes to IIDX 22 Pendual. I've completed every event other than Qpronicle Chord as I have ran out of steam on this mix for now. I will return and try to 100% this game sooner than later though. For now i'll leave it at this.
I have made the events all Frontend modifiable so that's good enough for now. I've thrown in a ton of #TODO statements to show my current progress.

Having looked over at the changes, everything looks fine to me, honestly confused why there hasn't been further review...


voidEvents need to fire before next input frames

I made a minimal (ish) test case yesterday to illustrate the problem (without javascript) in case it's useful. Thought I'd attach it here in case anyone found it useful.
  {-# LANGUAGE RecursiveDo #-}

  import Reflex.Dom
  import Reflex.Host.Class

  import Control.Monad
  import Control.Monad.IO.Class
  import Data.Monoid

  run :: MonadWidget t m => m ()
  run = el "div" $ do
    clicked <- button "Go"

    (e, ref) <- newEventWithTriggerRef
    performEvent_ $ ffor clicked $ \_ -> do
      forM_ [1..10] $ \i -> do
        runFrameWithTriggerRef ref i

    rec
      e' <- performEvent $ ffor (attach prevB e) $ \(prev, i) -> liftIO $ do
        putStrLn $ ("Processing: " <> show (prev, i))
        return i

      performEvent_ $ ffor e' $ liftIO . print
      prevB <- hold (0 :: Int) e'

    return ()

  main = mainWidget $ run

Could this be related: https://github.com/ryantrinkle/reflex-dom/issues/29 ?

@Saulzar @benmos I've adopted this solution in the latest version of reflex-dom.  It's also been dramatically reworked in general, and the basic functionality underlying voidEvents has been replaced with PerformEvent, which is now in reflex rather than reflex-dom.  I hope this helps!


Migrate from groovy to kotlin script for gradle build files

After testing kotlin script I am not convinced by it, a lot of false errors and very very slow compilation.


How do I get it to work?

My PS4 controller isn't detected on MacOS with the latest version of the mod.

Did you tried with the advanced mode ?

Yeah, it's spotty. I closed and relaunched MC and my controller configuration was gone and it no longer works.

I'm using the PS4 DualShock.
It worked fine for a bit, then just stopped working/

It might be something with the controller profile, I suppose you saved your profile last time ?
The mod will try to load the last saved profile, but if it fails it defaults to keyboard controls
Try remaking and saving your controller profile, and tell me if it works

I can’t remake the profile because it doesn’t detect the controller anymore.

On Oct 22, 2023, at 3:41 PM, getItemFromBlock @.***> wrote:
It might be something with the controller profile, I suppose you saved your profile last time ?
The mod will try to load the last saved profile, but if it fails it defaults to keyboard controls
Try remaking and saving your controller profile, and tell me if it works
—
Reply to this email directly, view it on GitHub https://github.com/getItemFromBlock/Create-Tweaked-Controllers/issues/6#issuecomment-1774181444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZWE3VPWICES5FWYCZI3T6DYAVZFDAVCNFSM6AAAAAA6KNUWB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGE4DCNBUGQ.
You are receiving this because you authored the thread.

I will also check some stuff with the mod on mac (I managed to have access to one for the week)

Also, a gamepad controller tester app and Hardware IO tools from Xcode show the controller works

If the controller is no longer detected, try with the controllable mod if it works

Thx for checking things out on the far too overpriced side of the computer spectrum
(but the deals are great if you're a college student)

It's not detected by controllable either. I just updated MacOS so lets see if that works.

Alright, It might be an issue outside of the mod then, but I will still do the checks on my side

Thx, ps4 support was as unhelpful as can be (they let basically anyone be a playstation "Expert" ig)

Figured it out. Basically, DualShock controllers require you to connect via Bluetooth, then plug into USB, then unplug, and if you don't follow that exact sequence, GLFW doesn't see it.

Interesting and good to know
At least you managed to make it work
I will still perform the tests on Mac to make sure everything works as excepted

Figured it out! For some reason GLFW doesn't detect controllers on MacOS Sonoma UNLESS they are using the default profile. Idk what code is doing that but there you go.

You mean when not using the advanced mode ?

No, I mean just always, it's not detected on a custom profile.


Future of this addon

As mentioned by @bcardarella in this comment, it sounds like the original maintainers have placed this project into maintainence mode.
He mentioned that DockYard will be exploring other options with ember-concurrency, though I still feel that a convenience library like this is pretty valuable. Digging into the addon code, it seems like ember-concurrency could be utilized in this library to get rid of some of the !isDestroyed calls.
I am willing to take ownership of this library (along with others if they're interested) if DockYard no longer wants to actively maintain it.

@blimmer I'm happy to add you on if you want to take a crack at replacing the guts with ember-concurrency. I'd only ask that you respect semver and our styleguides as well as keep the library under our org.

I can't commit to anything for a few weeks, but I'm definitely interested in taking a crack at this. I'll change the issue title in case someone else has time before me.


Gen new data doc

Hi @roberto-martinmartin and @ChengshuLi ,
I created some instructions for converting any matterport scan to iGibson format, let me know how does it look. Thanks!

@ChengshuLi Gentle ping. I tested a bit more, it should be stable to merge.


Question regarding specialization constants

First of all, I'm not sure if this is the appropriate place to ask this question, if not just let me know where to go.
I'm trying to understand the most appropriate usage of specialization constants and I'm unsure of the "best" practice when it comes to setting them. From my understanding there's two main ways to override specialization constants: one is by setting/freezing them with a tool like the optimizer and the other is an api that actually supports them (like vulkan).
So my main question is this: what are the pros/cons of setting specialization constants in one of these vs. the other. From my understanding one of the goals of vulkan/spir-v is to make optimizations something that can be done offline so drivers have less to do and you don't have to worry about bad driver optimizations as much. I would assume that any driver/api that allows setting specialization constants effectively has to re-compile the shader each time which could require a full optimization pass. So would it be correct to assume that it's "best" to set them up-front with a tool so that the optimizer can be run without relying on various driver implementations? Or are there reasons this is best left up to the driver, whether it be in terms of optimizations or compilation speeds or something.

I guess I didn't word that quite correct.
Imagine I have a system in place where I have the optimizer packed in the run-time executable and I have whatever shader caching mechanisms in place to prevent optimizing the same specialization constant twice. Also imagine I do what offline optimizations I can, leaving specialization constants alone.
What I really want to know is what are the pros/cons of running the optimizer right before creating a pipeline to freeze out specialization constants compared to using Vulkan's (or any other language's) built-in functionality.
I've personally had to deal with less than ideal driver optimizers before (to be fair, with glsl) so I would assume running the spir-v optimizer at run-time is the safest way to guarantee a "good" shader after constants are frozen. Am I mistaken in this or are there scenarios where leaving this to the driver would produce a better shader or potentially do this faster?

You might get a more of a discussion in https://forums.khronos.org/forumdisplay.php/114-Vulkan, but I'm not sure.


Disable drag animation.

How to disable drag animation? On the original version everything is going nicely into places and here everything is just random. So I would like to turn of that animation.

ahhh..can someone plz write some code for this dude.


test: update GOLANGCI_VERSION

Description
Type of change:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Required Checklist:

[x] I have signed the MongoDB CLA
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added any necessary documentation (if appropriate)
[x] I have run make fmt and formatted my code

Further comments

@gssbzn did you mean to tag someone on this for review?

oops kind of forgot about htis


allow use of S3 single part uploads

I had encountered a use case, where I needed to upload many different files into S3 and wanted to use smart_open. The files were a large set of small and some sporadic large files.
Writing all the files to my S3 bucket proved slow, since smart_open is meant for large file and does thus use multipart upload. This resulted in significant overhead.
I am a huge fan of the smart_open interface and ease of use, and though about how such a use case could be supported in smart_open.
I fixed my issue, by introducing an optional parameter hinting at the size of the input stream (often this is known) and then added the possibility for the S3 writer to use direct upload if better suited.
This PR is far from done (no handling of what happens if the input stream proves larger than claimed) and I just wanted to propose and start a discussion on such a feature. Further, there are many different ways on how smart_open could be guided to use direct upload. Maybe this is not even wanted...
Therefore, thanks for having a look at this and let's start a discussion and I am happy to adjust my implementation :)

Hi, sorry it has taken me so long to get around to this.
I think the motivation behind your PR is good. Single-part uploads make sense under some conditions.
I think the execution of the idea could be a little better. First, we should leave it up to the user to decide how small is too small for a multipart upload, instead of hardcoding a threshold ourselves. So the call to smart_open would look like this instead:
with open(..., 'w', transport_params={'multipart_upload': True}) as fout:
    ...

On the implementation side, I see you've gone with conditionals inside the existing class. This is a bit too difficult to maintain, as it complicates the code unnecessarily.
I suggest you implement a separate class to take care of single-part uploading. This can be entirely separate to the existing class. This class would be extremely simple, because you'd be loading the whole single part into memory, and wouldn't need much of the logic of the existing class.
The above approach would hit two birds with one stone:

Keep the existing, multi-part class as-is.
Satisfy your use case.

Let me know if you're up to it.

Hi, thanks for looking at the PR.
I will redesign the whole approach and use a separate class as you proposed, no problem. The current way was the simplest solution for solving the use case we had and I was not sure if you would agree to have the feature. Therefore I just wanted to get your feedback and guidance first :)
I would then have the multipart_upload transport parameter default to true and if set to false use the single-part upload class.
I am up for this and hope to have the updated PR ready soon.

Rebased and addressed your comments @mpenkov.

Thank you for the effort @adrpar . I'm merging this.


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

git-username]/it-cert-automation-practice

@googlebot I signed it!


fix(CardContentVerticalSmall): remove unused control

Description
This PR removed the metadata details property from cardContentArgs and cardContentArgsTypes and also shouldCollapse control has been removed from the CardContent variant components because this control is already included in the parent component (CardContent) and since all other variants are extending it, there is no need for a duplicate control.
References
LUI-818
Testing:

Navigate to the CardContentVerticalSmall component in Storybook.
Verify that the delete control is not present in the component's story.
Also make sure shouldCollapse property is working as expected in each variant of the CardContent component.

I'm still seeing the Details section under Metadata in the stroy.

I'm still seeing the Details section under Metadata in the stroy.

It looks like it broke after latest commit.

Sanity Tests Execution Failed.

Sanity Tests Execution Passed.

:tada: This PR is included in version @lightningjs/ui-components-v2.2.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Increase email max length to 254

JIRA link (if applicable)
N/A
Change description
According to RFC http://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690 email addresses can be up to 254 characters long. There's no justification for the current 64 characters limit.
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Codecov Report

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

@@           Coverage Diff            @@
##             master     #19   +/-   ##
========================================
  Coverage      92.3%   92.3%
  Complexity      103     103
========================================
  Files            24      24
  Lines           260     260
  Branches         19      19
========================================
  Hits            240     240
  Misses           16      16
  Partials          4       4

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 79c9cf5...e9f638b. Read the comment docs.

@vlaurin any reason a simple fix like this hasn't landed?


added pubsub client to libraries

Describe at a high level the solution you're providing
Added the PubSubClient to the libraries.json and libraries.properties files.
Is this related to an open issue?
https://github.com/Call-for-Code/ClusterDuck-Protocol/issues/304
Additional context
Add any other technical detail or considerations here.

ok thanks for letting me know! changed to PubSubClient.


This should be a supplier. It creates a brand new actor system and loads all the akka plugins

https://github.com/matsluni/aws-spi-akka-http/blob/bd5213533b60aeedc3acc20362f322bcd5cbe777/src/main/scala/com/github/matsluni/akkahttpspi/AkkaHttpClient.scala#L144

Passing the already existing actor system (which ends up in the actorSystem above is illustrated in the readme.

@ennru Thanks for your reply. I agree, that this is covered in the readme.
Also, maybe a good time to think about #7 again.

Yes, you can use your system and alpakka will use it using that client.
This line needs to be a supplier and not a value
implicit val as = actorSystem.getOrElse(ActorSystem("aws-akka-http"))

should be
implicit val as = actorSystem.getOrElse(() => ActorSystem("aws-akka-http"))

Otherwise, if you have any akka plugins such as persistence in your code, it will start initializing DB connections for that aws-akka-http system
[service] [2020-12-18 04:53:08,645] INFO  [aws-akka-http-akka.actor.default-dispatcher-6] [akka.event.slf4j.Slf4jLogger] [] - Slf4jLogger started
[service] [2020-12-18 04:53:08,724] INFO  [aws-akka-http-akka.actor.default-dispatcher-6] [akka.persistence.Persistence] [Persistence(akka://aws-akka-http)] - Auto-starting journal plugin `jdbc-journal`
[service] [2020-12-18 04:53:08,733] INFO  [aws-akka-http-akka.actor.default-dispatcher-6] [akka.persistence.Persistence] [Persistence(akka://aws-akka-http)] - Auto-starting snapshot store `jdbc-snapshot-store`
[service] [2020-12-18 04:53:08,827] INFO  [aws-akka-http-akka.actor.default-dispatcher-6] [akka.actor.ActorSystemImpl] [akka.actor.ActorSystemImpl(aws-akka-http)] - Creating an akka persistence JDBC database instance...
[service] [2020-12-18 04:53:08,828] INFO  [aws-akka-http-akka.persistence.dispatchers.default-plugin-dispatcher-9] [com.zaxxer.hikari.HikariDataSource] [] - slick.db - Starting...
[service] [2020-12-18 04:53:08,831] INFO  [aws-akka-http-akka.persistence.dispatchers.default-plugin-dispatcher-9] [com.zaxxer.hikari.HikariDataSource] [] - slick.db - Start completed.
[service] [2020-12-18 04:53:08,837] INFO  [aws-akka-http-akka.persistence.dispatchers.default-plugin-dispatcher-8] [com.zaxxer.hikari.HikariDataSource] [] - slick.db - Starting...
[service] [2020-12-18 04:53:08,839] INFO  [aws-akka-http-akka.actor.default-dispatcher-6] [akka.actor.ActorSystemImpl] [akka.actor.ActorSystemImpl(aws-akka-http)] - Creating an akka persistence JDBC database instance...
[service] [2020-12-18 04:53:08,846] INFO  [aws-akka-http-akka.persistence.dispatchers.default-plugin-dispatcher-8] [com.zaxxer.hikari.HikariDataSource] [] - slick.db - Start completed.

It's insane

getOrElse is call-by-name, so it doesn't require a supplier function:
Some(42).getOrElse(sys.error("this doesn't happen"))
Something else must be going on.

I don't explicitly use this elsewhere except for sqs client config
        @Provides
	@Singleton
	public SqsAsyncClient getSqsAsyncClient(ActorSystem system, AwsConfig awsConfig){

		SqsAsyncClientBuilder builder = SqsAsyncClient.builder().region(awsConfig.region);

		builder = awsConfig.sqsEndpointOverride.map(builder::endpointOverride).orElse(builder);

		builder.httpClient(
		  AkkaHttpClient.builder().withActorSystem(system).build()
		);

		SqsAsyncClient sqsClient = builder.build();

		system.registerOnTermination(sqsClient::close);

		return sqsClient;
	}

Kinesis client does not do any configs of http client and uses
public Flow<PutRecordsRequestEntry, PutRecordsResultEntry, NotUsed> getKinesisPutFlow() {
        return akka.stream.alpakka.kinesis.javadsl.KinesisFlow.create(kinesisStreamName, KinesisFlowSettings.create(), awsClient);
    }

The only other places i use it is here
val awsClient:software.amazon.awssdk.services.kinesis.KinesisAsyncClient = _

akka.stream.alpakka.kinesis.javadsl.KinesisFlow.create(kinesisStreamName, KinesisFlowSettings.create(), awsClient);

and here
@Provides
	@Singleton
	public SqsAsyncClient getSqsAsyncClient(ActorSystem system, AwsConfig awsConfig){

		SqsAsyncClientBuilder builder = SqsAsyncClient.builder().region(awsConfig.region);

		builder =
		  awsConfig.sqsEndpointOverride.map(builder::endpointOverride).orElse(builder)
			.httpClient(
		  		AkkaHttpClient.builder().withActorSystem(system).build()
			);

		SqsAsyncClient sqsClient = builder.build();

		system.registerOnTermination(sqsClient::close);

		return sqsClient;
	}

looks like i have to explicitly override kinesis http client or else it picks up the default implementation from the classpath which ends up being akka http client with the default actor system... that should probably be in bold letters as a warning to others


Topic brainstorm

Comment below with topics that you would like to see included in this set of intermediate/advanced R tutorials for genomic data analysis. You don't need to know the topic, because someone else might be able to write the tutorial. Also, a topic can be anything in R that can be used for genomic data analysis, e.g. an R package.
We'll then create separate GitHub issues for each topic that will get assigned to someone.

Here are a few R packages that I think deserve a genomic-focused tutorial.

Shiny for interactive visualization in genomics
data.table for efficiently manipulating large datasets
ggplot2 for visualizing genomic data
R Markdown for generating self-contained reports

These are tools used in our project. But I am not sure what is biological story? RNA (mRNA or lncRNA)? ChIP-seq (Broad or narrow?) ? Whole Genome Analysis? Or cover all these issues?

Does there exist a dataset with all these data (for example, trying to combine all these information)?

Feel free to continue posting ideas of topics that should be converted into genomics-focused tutorials.
Once you're interested in developing a tutorial on one of the suggested ideas (or one of your own), create a new issue here. I'll be posting contribution guidelines shortly.

Check out the contributing guidelines here:
https://github.com/hackseq/2017_project_5/blob/master/contributing.md

Here are some additional ideas:

purrr for functional programming
sva for batch effect correction (despite being on Bioconductor, the vignette isn't that good)
Any number of unsupervised or supervised machine learning or clustering packages
Gene set enrichment analysis (despite there being multiple package for this, I always have a hard time to find a simple tutorial on how to do this)
feather for fast data frame reading and writing

@brunogrande if sva and/or supervised learning, then choosing the dataset is picky. GSEA, I prefer using clusterProfiler.


Turn off Dark mode?

How to turn off dark mode for the sound cleod? It seems to be default for macOS catalina?

@nurrizkyimani I recommend NightOwl for now: https://twitter.com/DrakeTheDrizz/status/1267937531892555779


Flash CC 2015: publish changes registration point of a sprite

It looks like publish from Flash CC 2015 change registration point of a sprite:

This makes influence on getBounds method and makes the process of aligning a bit unclear.
I understand that I may use a workaround and change a position of the "central point" (don't know how it should be called):

But it would be great if after publish I get CreateJS code as much closed to the original in the Flash CC as I can.

Is this documented somewhere? I want to read up about this, since I can't figure out why or how this works this way...


feat: more changes

Changes requested by @anthonyvprakash

[ ] "GET STARTED" uppercase to capitalize "Get Started" (hard)
[ ] Community images smaller (GitHub and Discord)
[x] atPlatform and atSign image (footer) to change to dark mode version when changing to dark mode
[ ] atPlatform text on /docs/ to have image (or font color change)
[x] Smaller lead font size
[x] Footer to be more below
[x] Ssh! No ports tutorial

@anthonyvprakash
1 and 4. are hard to solve because these pieces of text are actually written from the markdown then GoHugo does work on them to put them on the page. So it isn't a simple change the text and replace it with an image.
The atPlatform image is in our temporary landing page, however, since that is not written in markdown.
2 I am just struggling to make it look nice, I personally think it already looks nice (because it changes nicely based on window size and on mobile)


Use git lfs to store Masonry screenshots

Also restores caching for Rust code in merge queues and in new PRs, which was lost when we migrated to merge queues.

Yeah. GitHub doesn't know how to handle the transition into lfs properly.
Right, I'll merge this into #233 and then land that, I think. Thanks for the approval.


Update to use control NET

haven't implemented this in my CLI yet. If I run into trouble, try it there first to prototype.

Ready to start this after upgrading to 0.4.0. Also have the models ready.

[ ] Implement depth and or canny edge detection (just add in to pipeline with no added UI)
[ ] Nice working on short clip, add UI to choose model
[ ] Hook up to preview process


Design System > Components > Datatable> Action Button on Left Side> Mouse hover edit is hide.

Describe the bug
Check below all component in small & large mouse hover popup is hide.

Datatable> Action Button on Left Side / Action Button on Left Side/ List View/ Without Pagination> Mouse hover edit is hide.
Pages > Small Mobile view popup is hide.
Tenant List > Small Mobile view popup is hide.
User Table > Small Mobile view popup is hide.
User Permission >Small Mobile view popup is hide.

Steps to reproduce bug
1.Go to 'https://dev-react.raaghu.ai/' & https://dev-react.raaghu.ai/
2. Navigate to 'Design System > Components > Datatable> Action Button on Left Side'
Actual result-
Check below all component in small & large mouse hover popup is hide.

Datatable> Action Button on Left Side / Action Button on Left Side/ List View/ Without Pagination> Mouse hover edit is hide.
Pages > Small Mobile view popup is hide.
Tenant List > Small Mobile view popup is hide.
User Table > Small Mobile view popup is hide.
User Permission >Small Mobile view popup is hide.

Screenshots
Stage

dev

Expected result-
Mouse hover popup should be display proper.
Desktop (please complete the following information):
-OS: [Windows 10 Enterprise]
-Browser [ edge]
-Version [ 125.0.2535.92]

Assigning to Rahul for CSS changes

already resolved


Help with install?

Hey there! We have a treadmill with a bad control surface and this setup would revive and improve it! I am having some trouble getting things to load (mostly due to my limited knowledge!)
I have a BBB with the stock linux installed on the eMMC. I have the latest version of npm installed. I have downloaded and moved the tread-station folder to the root of the BBB. I cd into the nodejs folder and run node ./tread-station.js and run into syntax errors. 1st error is- use of const in strict mode.
I reran using -harmony and then get unexpected reserved word.
So that is where I figured I was not doing something right!
Is there a guide for dummies that would help me get this going?
Thanks again!

Hi Davrizio,  Sorry for the delay. I didnt notice I had an Issue pending. I am updating my treadmill with the latest code and dependency updates at the moment as well. I get frustrated each time I do because Linux developers keep changing locations of key files! I have found the latest BBB image to be very good though, some things changed but the PWM setup is much easier. Try downloading a new BBB image first, I used the debian IOT one since I no longer use the LCD on the BBB (it kind of sucked after getting used to iPhone/android displays).
After install you need to first enable the PWM pin C8_13:
echo 1 > /sys/class/pwm/pwmchip6/export
Then you can node ./tread-station.js . This should have worked for you before so I am guessing its an old node version. I am using my latest code with latest BBB and doing the same thing. FYI  You can run in any folder, and you dont have to run as root (on latest BBB because they fixed IO permissions).
Once the node service starts, if it detects the PWM chip and pin, it will run in "real" mode and your treadmill should work if you wired it right. If it doesnt detect the PWM pin (if you didnt do the echo 1 thing above) then it will still start but in Simulation mode. The user interface and everything will work but no motion will happen even though it says it is.
To get the interface up, go into the ui folder and do:
npm install
npm run build
npm serve
You should be able to connect though I am not sure how well that last "npm serve" command will work. Will it only listen on local or remote? What port? I will find out shortly.

The nodejs on the latest BBB is 6.4 and it doesnt support "serve" which requires async-wait stuff. You can either update the nodejs to 8 or later, or use the apache config file. I got apache working no problem.
I just noticed the web interface is trying to connect to localhost which if access the site not on the BBB then it will timeout. So for now use http:///?host= to override it and tomorrow I will update to use the same hostname as the user interface.
Here is some notes on my latest fresh install of Treadstation on BBB:
Enable/Disable some DT overlays:

vim /boot/uEnv.txt
uncomment to enable cape_universal
** enable_uboot_cape_universal=1
*** This populates the /sys/class/pwm/pwmchipX and enabled the P8_13 pinmux for pwm mode
uncomment the lines for:   (optional, doesnt affect operation)
** disable_uboot_overlay_video=1
** disable_uboot_overlay_audio=1
** disable_uboot_overlay_wireless=1

Set hostname

vim /etc/hostname
update hostname to desired such as "treadmill"

Export PWM pin for usage: (this enables P8_13 pin)

echo 1 > /sys/class/pwm/pwmchip6/export

@Davrizio Any update/progress from your side?

Hey Colin! First off, thanks so much for your help! We’ve been away on vacation the past couple of weeks, didn’t even see you had replied! I’ll get to trying it out this week, I’ll let you know how it goes!

On Jul 16, 2018, at 12:33 PM, Colin MacKenzie<EMAIL_ADDRESS>wrote:
@Davrizio https://github.com/Davrizio Any update/progress from your side?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/flyingeinstein/tread-station/issues/2#issuecomment-405307353, or mute the thread https://github.com/notifications/unsubscribe-auth/AimtYqxoICmcd6bO58HfUFeIwvPik7OKks5uHMBcgaJpZM4UqFiJ.

Colin:
I've been lurking for a while. I attempted to get this going a year+ ago and gave up. I could drive the PWM after fixing the syntax errors, but I didn't have the foggiest how to get the UI to work.
I noticed you'd been active, and with fall approaching, I thought I'd give it a try again. I'm happy to say that, with the instructions above, I'm able to drive the motor from the UI. Wow, your new UI is beautiful.
But where I'm stumped is the inclination. I see references to controlling the inclination throughout the code. And I think the two leftmost scales on the UI are the inclination. But I haven't the foggiest idea which pins and mode you're using on the BBB, and how they're configured. I found references to 8.13, which is the speed pwm. The controller has 3 wires: yellow/orange/violet for down/up/sensor.
BTW, I started with bone-debian-9.5-iot-armhf-2018-08-30-4gb.img and didn't do anything with capes or with the DTS that you've included. Just:
echo 1 > /sys/class/pwm/pwmchip6/export
config-pin 8.13 pwm
I configured the UI with apache and modified your example to use dist:
sudo cat ~/tread-station/conf/web-ui.site | sed 's/client/dist/' > /etc/apache2/sites-available/tread-station.conf
I also modified it to use 8080, which was the Apache default.
Your comments say that you changed the UI to use localhost, but I can't get it to work without specifying the host, a.la 192.168.xx.xx:8080/?host=192.168.xx.xx
This is a problem, because I can get it to run from a PC, but none of my tablets will connect.
I can post better instructions if Davrizio is still looking for help.

Hi el-Slob, I am glad you got it working (mostly). I am not sure why the automatic host isnt working for you. The treadmill will look for host= parameter and if not, then it will take the host from window.location.hostname. This code is in file ui/client/js/treadmill.js, around lines 25-31. I believe you have apache configured on the same BBB as the treadmill nodejs control script so this should work.
Yes, my last run through installing this I didnt have to do anything but export and config-pin. You shouldnt have to do config-pin anymore. My last commit to the sys.pwm driver in nodejs/drivers/output/pwm/sys.class.pwm.js should automatically set the PWM mux pin properly. It also says I didnt get it to do the export yet but that is my plan...no messing around with DT at all for the user.
If you are interested in developing you might want to explore around the nodejs/drivers directory. All the features and hardware control implementation is in files there. On startup, all files in that directory are scanned and probed. Each driver file on probe() call can check for hardware, configure it, then put itself on a "bus" so to speak. It's loosely based on DriverTree since I thought that was such a great idea...though I an mad as hell how unstable DT has been. Drivers can have dependencies that load first, which also they can reference directly, or drivers can publish/subscribe on a "bus" which uses the "Postman" library. Drivers can even communicate to the UI controls and vice-versa across the Postman bus as I wrote a remote-link across web sockets.
I'll be honest I dont use the incline on the treadmill. I find it gives me shin splints if I am inclined at all. I added the wires and gave it a brief attempt but I didnt get it working. It didnt work even manually toggling the pin so I think it was a wiring issue, not a code one. I believe the include UI works with the simulator so it should be fairly simple to create a new output driver that subscribes to the control panel's status message and outputs to a pin (any pin you choose). See the ControlPanel driver code around nodejs/drivers/user/experience/controlpanel.js, line 288. A simple driver example is the screensaver (backlight) control driver at nodejs/drivers/user/experience/screensaver.js.
I feel your frustration at your first attempt. My treadmill BBB keeps dying (SD card failure/lost, lightning, you name it) and every time I needed to rebuild The devs changed DT paths for PWM. Arrg! I'd have to spend hours getting things back up, and often DT overlay compiling. I tried to support all the DT changes going on so the code would recognize PWM being in 3 or 4 different places. Things really changed the last time but I think, ...I hope, it is stable from here on out. I was surprised that after hours digging as usual it was like "oh, everything is already enabled I just need this new config-pin app." lol

I solved my "host" problem. Checked the status of bonjour:
systemctl status avahi-daemon
And it's running on tread-station.local
These urls work:
http://tread-station.local:8080
http://tread-station.local:8080/?host=tread-station.local
FWIW, when I don't specify the host, it tries to connect to localhost, but fails.
I tried a bunch of combinations, and none work.
xx.xx.xx.xx/?host=localhost
xx.xx.xx.xx/?host=<IP_ADDRESS>
xx.xx.xx.xx/?host=tread-station
Thanks for the pointers. I need to do some experiments with inclination...

Keep in mind that connecting to localhost means connecting to the computer that the browser is running on. The UI makes a web-socket connection initiated from browser javascript as client. So to use localhost you would need to be running the browser on the BBB. Without host= it should be using the host from the address bar (window.location.host) and if not there must be something in code overriding it. I wish I could run the code right now but my treadmill is buried under stuff from renovating the house but a month ago I was using it and it seemed to work.


fix: handle arrays in deeply nested objects

Currently we do not handle arrays that are nested in objects when doing
a "deep" operation. For example DeepPartial is currently giving:
type x = DeepPartial<{
    x: [{
        y: number
    }]
}>;
/*
x = {
    x?: Partial<Array<{ y: number }>>
}
*/

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[xh] HuggingFace AI Client

Description
This PR enables the ability to use different client or models for AI functions.
To do that, this PR does

create a generic "ai_client" interface. So each AI client like open ai client, hugging face client can inherit and being used in llm_pipeline_wizard class
Add AI configuration to set up required key and token.

How Has This Been Tested?
Test existing AI APIs:
Generate pipeline with description:
python mage_ai/ai/generator_cmds.py generate-pipeline-with-description "Load my data from MySQL, filter row that block_id > 10 and export to postgres db."
Generate pipeline with description:
python mage_ai/ai/generator_cmds.py generate-block-with-description "transform all records by times 100."
Generate block documentation:
python mage_ai/ai/generator_cmds.py generate-block-documentation documentation documentation_standard_pipeline_test_1 polished_fire
Generate-pipeline-documentation:
python mage_ai/ai/generator_cmds.py generate-pipeline-documentation documentation documentation_test_1 --print-block-doc
Generate-comment-for-block:
python mage_ai/ai/generator_cmds.py generate-comment-for-block code_file
Checklist

[X] The PR is tagged with proper labels (bug, enhancement, feature, documentation)
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] documentation: Will create different PR for documentation and instruction on how to add a new AI client.

cc:
@wangxiaoyou1993

Could you fix the tests first?

Could you resolve the conflict?

Can you test the AI models with the Mage UI?

Thank you for the review @wangxiaoyou1993 ! I tested with Mage UI and attached the screenshot in the description. Overall the hugging face AI capability works as expected.
One issue I notice is it sometimes failed to generate documentation for block. I can look into it in the next step. PTAL.


Gluon adding new parameters to learn -error

I am trying to replicate this pytorch's class, what am i doing wrong here ? (Tried to follow same convention as Dense class in gluon)
@zhreshold help please.

#the input here is 3, (same error)

Ablation Studies:

Without  passing p in hybrid_forward gave this error, so followed the "Dense" layer source code

Solved


NetworkRigidBody does not check clientAuthority on the server

Describe the bug
The clientAuthority variable is checked on the client to see if it should sync data to the server. The server does not do this checks.
This allows an attacker to bypass this check and modify data when he should not have the ability to.
Expected behavior
The server checks the clientAuthority variable in its command methods.

Nice find.


linkt-transport.top

Can you kindly please block this site engaging in phishing activities?
The website in question is linkt-transport.top, and it is targeting a legitimate website/business linkt.com.au.
I have reported the site to the web host & domain registrar, the site may be offline by the time you see this, I'm unable to archive the webpage for your convenience as it will only show you the phishing website if you are accessing it from a mobile device otherwise it redirects you to the legitimate business website.
I've also flagged this domain with a number of security vendors as evident on VirusTotal

Thank you again @gyCfjSnO this is added in commit c2ee8bc9.
Closing.


MacDevelopment.md has a format error

Describe the issue
Trying to build UTM. Line breaks are missing in setting up the dependencies on Step 2.
Steps could possibly be formatted as command lines.
Dependencies
  Building Dependencies (Advanced)
    2. Install the following build prerequisites brew install bison pkg-config gettext glib-utils libgpg-error nasm meson pip3 install six
       pyparsing Make sure to add bison to your $PATH environment variable! export
       PATH=/usr/local/opt/bison/bin:/opt/homebrew/opt/bison/bin:$PATH

Should be:
2. Install the following build prerequisites:
      $ brew install bison pkg-config gettext glib-utils libgpg-error nasm meson
      $ pip3 install six pyparsing
   Make sure to add bison to your $PATH environment variable!
      $ export PATH=/usr/local/opt/bison/bin:/opt/homebrew/opt/bison/bin:$PATH

Configuration

UTM Version: 4.1.0
macOS Version: 12.6.1
Mac Chip (Intel, M1, ...): Intel

Crash log
n/a
Debug log
n/a
Upload VM
n/a

The commands are formatted as single line inline code. Looks good to me. Or what did you mean?

...not what I see in Chrome when I go to that page.
Screen shot below:

I made a fix for it and added the ability to directly copy the commands with the copy button.
Check PR #4613


Incomplete HorizontalPodAutoscaler documentation

In the section https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2/#HorizontalPodAutoscalerSpec
the values these two variables can take are never mentioned.
behavior.scaleDown.policies.type (string), required

type is used to specify the scaling policy.

and
behavior.scaleUp.policies.type (string), required

type is used to specify the scaling policy.

From other websites I see that there's at least Pods and Percent, but they should be directly mentioned in the documentation.

/retitle Incomplete HorizontalPodAutoscaler documentation
/sig autoscaling
/language en

/triage accepted
Help is welcome; if you can find out what to explain, eg from reading the source code, or by using web search, [then anyone reading this should] please feel free to open a pull request.

The mentioned reference page for "HorizontalPodAutoscaler" is automatically generated. The page is generated from the upstream source code kubernetes/kubernetes.
As the page is generated from the upstream source code, any fixes would need to be addressed there. For those interested in contributing to resolve this issue, please refer to the upstream contribution guidelines outlined at: https://kubernetes.io/docs/contribute/generate-ref-docs/contribute-upstream