[UPDATE] 0.30.0

Includes the formatted XML by Iutye (Thank's btw.)

Odd - It seems to be failing with error; "mv: cannot stat '/app/lbry-app/lbry': No such file or directory"
@iuyte - Would you mind taking a look? See if there is something I may have missed or fessed up?...

Update runtime to 18.08

Seems to work


Need help on sidekiq with rails config file from aws official.

@dineshPallapa,
Please point out which specific config file you're having trouble with, and what you believe the issues are. We're happy to take a look. Thanks!

https://gist.github.com/MaxDBN/b80d6e5fac7f1a05f2727474ff172ea6

Thanks @dineshPallapa. Issues on this documentation repo are meant to be about examples that we've posted on this repo. Unfortunately the AWS documentation team can't provide support beyond that.
I recommend that you ask the question on the AWS Elastic Beanstalk forum or contact AWS support.


Error failed to start daemon

I'm using genymotion for free and run nexus 5 virtual device.
Then i turn on the adb for adndorid sdk and exp path command line.
I just follow the instructions.
but i' getting this error:

Couldn't start project on Android: could not install smartsocket listener: cannot bind to <IP_ADDRESS>:5037: Normalmente só é permitido uma utilização de cada endereço de socket (protocolo/endere��o de rede/porta). (10048)
could not read ok from ADB Server

failed to start daemon *
error: cannot connect to daemon

and

Couldn't start project on Android: Error running adb: ** daemon still not running
error: cannot connect to daemon: cannot connect to <IP_ADDRESS>:5037: Nenhuma ligação pôde ser feita porque o computador de destino
as recusou ativamente. (10061)

i just create a new project empty view in expo xde installed genymotion and android sdk and follow the instructions.
Thanks in advance
Carlos Vieira

hello! please create issues on the main expo repository: https://github.com/expo/expo/issues
as for the solution, please see the docs for setting up genymotion: https://docs.expo.io/versions/v17.0.0/guides/genymotion.html


Add wiki paragraphs as input and filter out numbers before training

@lmartinet  Could you please review and merge if all is fine?

@lmartinet I have modified the PR according to you comments. Please review. Thanks!


update ember-cli to 3.14

drop jQuery use in tests (keep it for now for tests in 3.8)
now we target chrome for tests; class code is readable again

We can ignore the babel-plugin-debug-macros warnings, they're spurious from ember-resolver and fixed in https://github.com/ember-cli/ember-resolver/pull/475

warnings are also more actionable now https://github.com/ember-cli/babel-plugin-debug-macros/pull/81


correcting the download URL

refs #9

Hello, I cherry picked the commit from #9 and it is now available on main.
Thanks for your PR, but I'll close it :)
Have a nice day!


test PR with Github API

Please pull this in!

Docs Build status updates of commit 372d822:
:clock10: Pending: waiting for processors (7 builds ahead of you)
:warning: Docs Build is busy, currently there are 7 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 372d822:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

sdp-test/index.md
:bulb:Suggestion

Details

sdp-test/index.md

[Suggestion] Missing attribute: author. Add the current author's GitHub ID.
[Suggestion] Missing attribute: ms.author. Add the current author's Microsoft alias.
[Suggestion] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Suggestion] Missing attribute: title. Add a title string to show in search engine results.
[Suggestion] Missing attribute: ms.topic. Add a valid value to indicate the article type.
[Suggestion] Missing attribute: ms.date. A freshness date is required for this content set. Add a date in format MM/DD/YYYY.

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


Update Bigtable driver from 0.9.7 to 1.0.0

The latest client adds a number of performance improvements which would be relevant for benchmarking.
This should be a straight-forward change, as the client is backwards-compatible with 0.9.7 in terms of APIs, so it should be a drop-in replacement.
/cc: @sduskis, @igorbernstein2, @garye

Yes and thanks for closing the loop, @busbey!


Different accuracy & cannot evaluation

Hi
i ran the finetuned  base model in 10.1 version for Korean and, i got the 15% cer about my validation set in trainning
also i ran the new repo and got the 10% cer
why different result?
i checked the hyper parameters
and i couldn't find any different
can i know changed that parameters?
about 10.1 version and new repo

What command/data are you using? 0.10.1 is very similar to the current master, so it’s surprising if you get different results...


Failed to download content, too many users have downloaded

It seems we are reaching the limit of downloads that we can do from Google Drive.

It's affecting all the files in our Google Drive, including older versions and releases.

Hi, I am trying to use ./carla/Update.sh now and it seems like the links are not downloadable now. What is the alternative way to build carla then?

Seems like the contents are reachable with
git lfs clone https://bitbucket.org/carla-simulator/carla-content Unreal/CarlaUE4/Content/Carla

If that is the case, is it better to only use git lfs inside Update.sh instead of downloading from google drive?


Error: vue scroll-active "#anchor" Element was not found. Make sure it is set in the DOM.

I'm having this issue and I'm not able to make vue-scrollactive to work here on my project. After some research I read that, somehow, the component is "acting" before the DOM is loaded, so, that's why it can't find the element with the anchor id.
If someone have a solution for this, please help me! Thank you all!

When you click a scrollactive item it will always query the DOM for the element in the anchor hash, so it doesn't matter if the component is initialized before or after that element is loaded, but when you click the anchor the element must be in the DOM.
Maybe you're rendering the section when clicking the item? That won't work properly and you'll have to find a way around that like delaying the click event so that the section can be loaded.
Let me know if you found a solution or give me more details so we can figure it out.


[Modal] Broken server-side modal example (possibly component & test)

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
Following the docs for a server-side modal or running the linked sandbox results in a blank page when JS is disabled in the current versions of Firefox, Edge, Chrome, and Safari

Expected behavior 🤔

The initial response should include the HTML for the modal
The page should look the same as when JavaScript is enabled

Steps to reproduce 🕹
Steps:

Disable javascript in your browser
Visit https://mvjvg1.csb.app/
observe the blank page
observe the initial html response is

Context 🔦
No response
Your environment 🌎

`npx @mui/envinfo`
  System:
    OS: macOS 12.3
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: Not Found
    npm: 8.5.2 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Browsers:
    Chrome: 99.0.4844.74
    Edge: 99.0.1150.39
    Firefox: 98.0.1
    Safari: 15.4
  npmPackages:
    @emotion/react: ^11.8.1 => 11.8.2
    @emotion/styled: ^11.8.1 => 11.8.1
    @mui/base:  5.0.0-alpha.71
    @mui/icons-material: ^5.5.0 => 5.5.0
    @mui/material: ^5.5.0 => 5.5.0
    @mui/private-theming:  5.4.4
    @mui/styled-engine:  5.4.4
    @mui/system:  5.5.0
    @mui/types:  7.1.2
    @mui/utils:  5.4.4
    @types/react: ^17.0.24 => 17.0.40
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    styled-components: 5.3.3 => 5.3.3
    typescript: ^4.5.5 => 4.6.2

I see a test for this was added as part of https://github.com/mui/material-ui/pull/16850

My apologies, I think this was all user error and assumptions/misunderstanding.
Closing this as I can now SSR the modal locally. Also, after looking at the other CodeSandbox examples, I believe they're just not set up for SSR but the example does work if the other SSR steps are followed.


Add Python lint check for calls to unittest.main.

Also add missing unittest.main() calls.

R: @chamikaramj


seal: Fix and improve error reporting

This started out as a small PR that should only fix the problem of ext_instantiate and ext_call reporting CalleeTrapped for every error despite its docs saying that it should trap on most errors. However, after looking at the current state of error reporting I decided to to some improvement as I was touching these parts anyways.
We have no proper errors for the most common errors instead of just using DispatchError::Other which have its message stripped when displayed on polkadot js or block explorers.
In addition to that ext_call no longer allows calling plain accounts. Allowing this predates ext_transfer. Having ext_call silently not calling any code when calling plain accounts does not seem useful and rather dangerous.
ext_tranfer now can return codes again. Removing those was based on the misconception that call and instantiate would trap on transfer errors which they never did.
cc @Robbepop

bot merge


Unable to check/uncheck Treeview element (uia, win64)

I'm not able to check/uncheck Treeview elements (uia,  64 bit, py2.7).
look at the attached picture.

I can get a tree element:
element23 =  lower.child_window(title="element23", control_type="TreeItem")
and I expend it easily
element23.expand()
But the following commands do not work
element23.toggle() – WindowSpecification class has no 'toggle' method
element23.click() – WindowSpecification class has no 'click' method
element23.click_input() – clicks on “23” but doesn’t uncheck
element23.double_click_input()   clicks on “23” but doesn’t uncheck

Hi @alexgoryachev, you can find a couple of examples how to work with TreeView in our unit tests. For instance, you may take a look at test_tv_item_select.

Hi Alex. Which patterns are available for this element in Inspect.exe? Can you screenshot all the properties in Inspect.exe for this element?

Sure.
 As in the unit test mentioned above, obtain the middle point of the item's rectangle and adjust to the left until you hit the check box. Notice the usage of absolute coordinates.

It  works, but is it the right way ?
element23.click_input()
x, y = win32api.GetCursorPos()
pywinauto.mouse.click(button='left', coords=(x - 50, y))

Alex, I thought to go with the code from the unitest (did you look into it?) :
Get item's rectangle middle point
Adjust the left
Use item.click_input, but the adjusted coordinates marked as absolute.
Sorry, I'm not at my PC right now. Maybe I'll come up later with a complete example

I'll check the unitest example tomorrow  at CA time. Thank you so much.

@alexgoryachev, I meant something like this:
            itm = ctrl.get_item((0, 3, 2)) # get the item from the TreeView control

            itm.ensure_visible()
            coords = itm.rectangle().mid_point()
            coords.x -= 50
            itm.click_input(coords=coords, absolute=True)

Notice that we can use get_item method of TreeView wrapper and specify a path to the item as a tuple of numbers or strings
        * **path** a path to the item to return. This can be one of
          the following:

          * A string separated by \\ characters. The first character must
            be \\. This string is split on the \\ characters and each of
            these is used to find the specific child at each level. The
            \\ represents the root item - so you don't need to specify the
            root itself.
          * A list/tuple of strings - The first item should be the root
            element.
          * A list/tuple of integers - The first item the index which root
            to select. Indexing always starts from zero: get_item((0, 2, 3))

I have a Treeview view but when I get the element and try to get the coordinates from the rectangle(), I get an error -
AttributeError: '_treeview_element' object has no attribute 'rectangle'
From Swapy, I do see the Rectangle property

In Inspect,

How Do I check/uncheck the checkbox in a Treeview?

Hi @madhavankumar this is a mismatch between Inspect,exe and "win32" backend you use. You have 2 choices:

Continue using "win32" backend and call .click(where="check") along with .is_cheched() for _treeview_element object. click can be replaced by click_input if you want real mouse cursor manipulation.

Switch to Application(backend="uia") and re-write the whole script (because the hierarchy is usually different for these 2 backends).

P.S. Please open new issue next time if the old issue was closed. The problem may look similar, but the root cause is not.

@vasily-v-ryabov - I will open a new issue next time. Apologies for that. I wanted to avoid duplication. I use win32 backend. I used .click_input(where="check") worked like a charm. Thank you very much!


Collect services whose tags contain the environment string

In Azure clouds other than AzurePublicCloud, not all the services are supported.
This proposal is to only collect the services whose tags contain the environment string.
E.g., the storage service's tags can be Tags:     []string{"AzurePublicCloud", "AzureUSGovernmentCloud", "AzureChinaCloud", "AzureGermanCloud", "Storage"},, which means all these clouds support the storage service.
In this way, when OSBA is installed in the the sovereign cloud or Azure Stack Cloud (not supported yet), only a few supported services are listed in the catalog.

@krancour and @jeremyrickard , could you please review the proposals #367 and #251?

I'd like if there were a way for us to determine what services are available in a given cloud without needing to maintain that information ourselves. If, for instance, there were an API call we could make to determine service availability in a given cloud, that would be great. Know of any such thing? We can ask the azure-sdk-for-go team.

That is a good idea. Maybe these APIs can help:

https://docs.microsoft.com/en-us/rest/api/resources/providers/list#provider
https://github.com/Azure/azure-sdk-for-go/blob/master/services/resources/mgmt/2018-02-01/resources/providers.go

Still having some questions:

Not sure whether the APIs work in Azure Stack.
Only the registered providers should be added the service into the catalog.

Overall, it's worth a try. I can have a test in the sovereign cloud or Azure Stack Cloud. I'm glad to submit a PR in future.

@krancour
Revisiting this proposal. As you mentioned in #250, I'm going to validate region/location differently for each environment.
Before that, do you prefer using an API to determine service availability in a given cloud? I still prefer maintaining the information by ourselves using the tags. Because it's not easy to check whether the hard-coded service api-version is available via an API.
How do you think?


fix: read $KUBECONFIG from env if it exists

Hello,
I manage several clusters using kubie which sets the $KUBECONFIG environment variable, following the Kubernetes way.
Thus, I never have a ~/.kube/config on my computer, which makes the command panic:
kubectl browse-pvc -n communications signal-cli-rest-api-config
panic: stat /home/bcourtel/.kube/config: no such file or directory

goroutine 1 [running]:
main.getClientSetFromKubeconfig()
        /home/runner/work/kubectl-browse-pvc/kubectl-browse-pvc/util.go:91 +0x145
main.getCommand(0xc00049c2c0)
        /home/runner/work/kubectl-browse-pvc/kubectl-browse-pvc/main.go:64 +0x94
github.com/urfave/cli/v2.(*Command).Run(0xc000422dc0, 0xc00049c2c0, {0xc0001ae000, 0x4, 0x4})
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 +0x9eb
github.com/urfave/cli/v2.(*App).RunContext(0xc0001c0780, {0x192d390?, 0xc00019e010}, {0xc0001ae000, 0x4, 0x4})
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 +0x616
github.com/urfave/cli/v2.(*App).Run(...)
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
main.main()
        /home/runner/work/kubectl-browse-pvc/kubectl-browse-pvc/main.go:51 +0x2dc

This PR reads the $KUBECONFIG environment variable and use it to locate the kubeconfig file if it is set.
Let me know if you're OK with this change!

Thank you! I'll give it a test tonight.

Looks good thank you for the contribution!


Portfolio: setup and mobile version skeleton - PR

Created HTML structure inclusive of two sections, that is nav and headline
Added Font Awesome Icons as the social icon links
Added hover effect on the social icons
Completed CSS to closely match figma design

Thank you the optional changes have been noted and adopted as well

Please advise on the additional changes @Bondok6

Fixed the linter error @Bondok6


Fix dyn container

I'm not sure why this is different than before but this matches dyn_view and no longer panics

The issue is that there’s no self.child_id = new_child_id in update

The issue is that there’s no self.child_id = new_child_id in update

🤦


Consider adding all constant strings in the VM into the symbol table

Consider adding all constant strings in the VM into the symbol table.
As part of this exercise add some metrics to determine performance
of the symbol table so that we can determine the performance
impact of adding these strings.

Stale.


Skip not functioning properly?

    var response = await _serviceLayer
        .Request("Items")
        .Select("ItemCode,ItemName,Mainsupplier,SupplierCatalogNo")
        .Skip(numberToSkip)
        .WithPageSize(2500)
        .GetAsync<IEnumerable<Item>>();

Here's my code- Not sure what the deal is here, could be an issue on my side, but when I use the skip method, everything past my page size gets truncated. For example, if numberToSkip here was equal to 2499, I would only recieve one object, and if numberToSkip was 2500+, I would recieve nothing.
For the time being I'm using this workaround:
    var response = await _serviceLayer
        .Request("Items")
        .Select("ItemCode,ItemName,Mainsupplier,SupplierCatalogNo")
        .Skip(numberToSkip)
        .WithPageSize(numberToSkip + 2500)   // 2500 here is my desired page size
        .GetAsync<IEnumerable<Item>>();

To just resize the page incrementally based on the number of objects to be skipped.
Thanks for your time, love this library

Hi, @grantsanders. I'm not sure I understand your problem. How many Items do you have in total in your database? If your skip number is greater than the total number of records, it's normal for the request to return an empty result, since you're skipping more than what you have in the table.
In your code I also didn't understand why you are adding numberToSkip + 2500 in the WithPageSize() method.
Keep in mind:
WithPageSize: maximum number of records to be returned per request
Skip: first n records to be excluded from the result
I did a test in my database, where I only have 54 items in total, and here's the result:
int numberToSkip = 50;

var items = await serviceLayer
    .Request("Items")
    .Select("ItemCode,ItemName,Mainsupplier,SupplierCatalogNo")
    .Skip(numberToSkip)
    .WithPageSize(2500)
    .GetAsync();

// Only 4 items returned, as expected

Also, if you are doing this to get all items from your database, you can do this more easily with the GetAllAsync() method.

Thanks for the quick reply!
In this particular case, the database contains over 80,000 records. I guess I expected B1S to function similarly to how requests do directly in the service layer- if you make a call in postman, for example, and specify that you want 2500 records, but also specify that you want to skip 2500 records, you would receive records 2501-5000 in the database.
I guess my use case is peculiar though- I'm being tasked with essentially making a wrapper for the service layer, and I'm trying to mimic its behavior as much as I can. The GetAllAsync method would work in this case, but our client specifically requested for us to batch the data.

I believe so- My thinking was that the WithPageSize method would set the Prefer header on the request, is that the case? If so then the requests (or at least, as far as I'm aware) were identical. Not sure how B1SLayer handles that under the hood?
Let me show an example response in postman:
https://app.screencast.com/oMOusComNmkmx
This is a call to my API, where the Items controller is hitting this method:
    [EnableQuery]
    [HttpGet(Name = "GetItems")]
    public async Task<IEnumerable<Item>> Get(ODataQueryOptions options)
    {

        int numberToSkip = options.Skip?.Value ?? 0;

        var itemTotal = await _serviceLayer
            .Request("Items")
            .GetCountAsync();

        var response = await _serviceLayer
            .Request("Items")
            .Select("ItemCode,ItemName,Mainsupplier,SupplierCatalogNo")
            .Skip(numberToSkip)
            .WithPageSize(2500)
            .GetAsync<IEnumerable<Item>>();

        return response;
    }

Here is a call directly to the service layter, you can see the header I'm sending for page size here.
https://app.screencast.com/sXxQiqH1Jv2fH
The call directly to the service layer returns 2500 items, starting from position 2499 as determined by the skip header. My api call, however, returns 1.
It seems like WithPageSize is specifying the amount of results to return, and then skip is applied afterwards, while in the service layer these operations happen in reverse- the starting position is determined by the skip value and then the maxpageresults applies afterwards.
Is this intended behavior of the MaxPageResults method?

The WithPageSize() method applies the B1S-PageSize header value to the request, as you can see in my image in the previous comment, which is mentioned in the Service Layer user manual. I'm guessing that B1SLayer should be using odata.maxpagesize like you instead of B1S-PageSize.
I see that you're using OData v4 (b1s/v2 in the URL instead of b1s/v1), which I think it could be related to this odd behaviour with the B1S-PageSize header parameter. Can you test using your current code using OData v3 (b1s/v1)?
Anyway, the code bellow should fix the issue for now:
var response = await _serviceLayer
    .Request("Items")
    .Select("ItemCode,ItemName,Mainsupplier,SupplierCatalogNo")
    .Skip(numberToSkip)
    .WithHeader("Prefer", "odata.maxpagesize=2500")
    .GetAsync<IEnumerable<Item>>();

The plot thickens- when I use that header, I get the same result as when I just use WithPageSize. Is it possible that B1Slayer is truncating the extra results? Currently I'm sticking to my hacky method from earlier where I'm adding to the variable I use for the WithPageSize method for every call

This is very odd, @grantsanders. I don't believe it's possible for B1SLayer to be truncating the results since it simply does a deserialization with the given request response.
Can you use Fiddler Classic like I showed previously to compare the requests from B1SLayer and Postman? Fiddler is a tool that captures HTTP requests being made locally and logs them, so it's very useful for this kind of scenario.
If in Postman and B1SLayer the request parameters are the same (query string and headers), the resulting request and its response captured in Fiddler should also be the same.

Having trouble configuring fiddler with my VPN- Will get back to this later tonight when I have more time

Well, I've found the solution- It was definitely my mistake:
In my API controller, I was passing the Skip property from the request URL into a variable (numToSkip) to be used by B1SLayer. What I did not realize was that by passing the Skip property in the URL, with the name Skip, it actually executes that OData filter on the entire request- so the skip filter was passing correctly through to B1SLayer, and returning the correct data- but then I was actually truncating it myself by skipping through THOSE results.
I've fixed the issue by just renaming the query variable from "skip" in the request to "skipTo". Works flawlessly now.
Thanks again for your prompt replies! Appreciate you and this library.

Thanks for the clarification, @grantsanders. I thought this could be an issue with the B1S-PageSize header parameter, but I guess it works fine then and I don't need to change it.


Add notebook with example code for LLMMetadataExtractor

We added LLMMetadataExtractor in https://github.com/deepset-ai/haystack-experimental/pull/125 and recently updated it in https://github.com/deepset-ai/haystack-experimental/pull/147
What's still missing is a notebook showing how to use it, which we need to link in the experiment catalogue in the repo's readme file. Currently it says coming soon.
Maybe something related to https://colab.research.google.com/github/deepset-ai/haystack-cookbook/blob/main/notebooks/metadata_enrichment.ipynb ?

Here is an example yaml that could help you all get started.
It extracts the company name from text versions of Slide decks.
I had to change the file format to .txt even though it is yaml since GH doesn't support yaml files.
haystack-metadata-extraction-example.txt


Update http4s-blaze-server, http4s-circe, ... to 0.21.33

Updates

org.http4s:http4s-blaze-server
org.http4s:http4s-circe
org.http4s:http4s-dsl

from 0.21.4 to 0.21.33.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Applied Scalafix Migrations

org.http4s:http4s-.*:0.21.5 (created no change)

dependency:v0_21@org.http4s:http4s-scalafix:0.21.5
Documentation: https://github.com/http4s/http4s/releases/tag/v0.21.5

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: library-update, early-semver-minor, semver-spec-patch, scalafix-migrations, commit-count:1

Superseded by #131.


Support for running rtfscan from command line

Is it possible to add support to run the rtfscan function from the command line?

RTF Scan is a feature of Zotero application and other Zotero plugins with a flexible citation style. This sounds like a big job to add to zotcli.


Codecov

What does this PR (Pull Request) do?
Adds code-coverage output to Go unit tests, also outputs junit XML

[x] This PR is not related to any Issue

Which Traffic Control components are affected by this PR?
None
What is the best way to verify this PR?
Build and run the unit test service from tools/golang/docker-compose.yml, make sure it outputs what you want.
The following criteria are ALL met by this PR

[x] This PR includes tests OR I have explained why tests are unnecessary
[x] This PR includes documentation OR I have explained why documentation is unnecessary
[x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Thanks, still want a review from @lbathina to make sure it fits her original use case.

Just saw. Will review it later tonight or tomorrow morning.

looks good to me.

can we have the coverage post somewhere for review?

I can paste it into the #dev channel on the ATC slack, or put it somewhere on the wiki.

would like to get this merged so we can replace the duplicated unit tests in the repo. @ocket8888 whats blocking this besides the merge conflict? A committer?

There were still some issues running it with Docker, so I've fixed those now. Posted the results of running it against master at the time of this writing in the #general channel of the ATC slack. Should've gone in #dev, but I didn't think of that until looking at the comments here again. Whoops.

:shipit:


Determining the principal directions

Hi,
I am working on a stress analysis using SOLID185 elements and I am trying to determine the local coordinate system in which the principal stresses are. From looking at some other issues posted here before (https://github.com/pyansys/pymapdl/issues/283 and https://github.com/pyansys/pymapdl/issues/28), it seems that I will have to use the element Euler angles, which are stored in the binary file. I don't know how to access them though and I wonder if there is a method for it in mapdl.result, since Euler angles are displayed in the list of available results as shown below.

My understanding is that the euler angles will allow me to determine the coordinate system in which the principal stresses are. However, once I know this local coordinate system, how do I determine on which axis is each principal stress?
Additionally, I wonder if the approach can be applied to both nodal and element stresses ?
Thank you for the help !

Hello,
Thanks for posting your question here and sorry for the delay in getting back to you regarding this (been in the midst of traveling for family).

Euler angles are stored for each element and can be accessed with:
>>> from ansys.mapdl import reader
>>> from ansys.mapdl.reader import examples
>>> rst = examples.download_pontoon()
>>> enum, edata, enode = rst.element_solution_data(0, 'EUL')
>>> edata[0][:-1].reshape(enode[0].size, 3)
array([[90., 90.,  0.],
       [90., 90.,  0.],
       [90., 90.,  0.],
       [90., 90.,  0.]], dtype=float32)

Ansys stores the euler angles using the 3-1-2 sequence.  There's a great discussion regarding this here:
https://simutechgroup.com/rotation-convention-in-ansys/
By default, ansys-mapdl-reader already converts these angles to the global coordinate system with the following:
import numpy as np
from sympy import Matrix, symbols
c1, c2, c3, s1, s2, s3 = symbols('c1 c2 c3 s1 s2 s3')
s_xx, s_xy, s_yy, s_xz, s_yz, s_zz = symbols('s_xx s_xy s_yy s_xz s_yz s_zz')

tensor = np.matrix([[s_xx, s_xy, s_xz],
                    [s_xy, s_yy, s_yz],
                    [s_xz, s_yz, s_zz]])

R = Matrix([[c1*c3 - s1*s2*s3, s1*c3 + c1*s2*s3, -s3*c2],
            [-s1*c2, c1*c2, s2],
            [c1*s3 + s1*s2*c3, s1*s3 - c1*c3*s2, c2*c3]])

ans = R.T*tensor*R

print('XX', ans[0, 0])
print('YY', ans[1, 1])
print('ZZ', ans[2, 2])

print('XY', ans[0, 1])
print('YZ', ans[1, 2])
print('XZ', ans[0, 2])

This will get you your element nodal stresses, that is, one value for each node for each element. which is what element_stress does when in_element_coord_sys=False (default).  To get nodal averaged results, results from adjacent elements are averaged together as in nodal_displacement or any nodal result in ansys-mapdl-reader.
Please let me know if you have any additional questions.

Side note: transferring this to ansys-mapdl-reader since this is result reader specific.


Update index.js

Just fixed a spelling mistake. awiting--->awaiting

@lindsayjohnston thank you very much!
Wondering if you want to take up another small issue for example: #35


Add more data structures: Set and Map

As @MaisaMilena  suggested, I'm opening this issue to let you guys know what I plan to work on.
I'll be working on generic versions of

[ ] Set
[ ] Map

based on sized balanced binary trees, following Stephen Adams'  "Implementing Sets Efficiently in a Functional Language" / "Efficient Sets - A Balancing Act". This implementation will be similar to what you can find in Haskell's containers package

I've finished implementing the main functionalities for Set so I'll be testing it now


Error when using error reporters - AttributeError: 'generator' object has no attribute 'load'

I'm trying to set up Sentry as an error reporter for django-q. I have installed django-q-sentry v0.1.1, and I'm using django-q v0.8.1. When I try to run my Django project (i.e. runserver), I get the following error:
Unhandled exception in thread started by <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x112841ac8>
Traceback (most recent call last):
  File "/Users/jordan/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/172.4343.24/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_monkey.py", line 589, in __call__
    return self.original_func(*self.args, **self.kwargs)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
    six.reraise(*_exception)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django/apps/config.py", line 116, in create
    mod = import_module(mod_path)
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django_q/apps.py", line 3, in <module>
    from django_q.conf import Conf
  File "/Users/jordan/Development/my_project/venv/lib/python3.5/site-packages/django_q/conf.py", line 220, in <module>
    'djangoq.errorreporters', name).load()
AttributeError: 'generator' object has no attribute 'load'

My django-q configuration is:
Q_CLUSTER = {
    'name': 'DjangoORM',
    'workers': 4,
    'retry': 120,
    'queue_limit': 50,
    'bulk': 10,
    'orm': 'default',
    'save_limit': 1000,
    'catch_up': False,
    'timeout': 180,
    'error_reporter': {
        'sentry': {
            'dsn'<EMAIL_ADDRESS> # My actual Sentry DSN is here.
        },
    },
}

This error is coming from https://github.com/Koed00/django-q/blob/v0.8.1/django_q/conf.py#L212, specifically the following code:
reporters = []
# iterate through the configured error reporters,
# and instantiate an ErrorReporter using the provided config
for name, conf in error_conf.items():
    Reporter = pkg_resources.iter_entry_points(
            'djangoq.errorreporters', name).load()
    e = Reporter(**conf)
    reporters.append(e)

I'm not very familiar with pkg_resources.iter_entry_points but from what I can see online, it seems like it's being used incorrectly here. Resources like https://docs.pylonsproject.org/projects/pylons-webframework/en/latest/advanced_pylons/entry_points_and_plugins.html and https://www.programcreek.com/python/example/2010/pkg_resources.iter_entry_points do not use the result of pkg_resources.iter_entry_points directly, but rather they iterate over the result, like so:
available_methods = []
for entry_point in pkg_resources.iter_entry_points(group='authkit.method', name=None):
    available_methods.append(entry_point.load())

I did some debugging and when using pkg_resources.iter_entry_points like django-q currently does, the value returned is indeed a generator, and this causes the AttributeError: 'generator' object has no attribute 'load' when django-q tries to call load() on this generator. When I change this block of code so that I am instead iterating over the value returned by pkg_resources.iter_entry_points like the example above, the entry_point is now an EntryPoint class, which seems to be what you'd actually want to call load() on.

Well, looks like you've done all the heavy lifting to figure out the problem, thanks! This is also the first time I've worked with pkg_resources.iter_entry_points and seems like it is being used incorrectly as is. Proposed a fix in #278, have a look and see what you think.

@jordanmkoncz curious, everything working ok after the fix?

@danielwelch I've just been waiting for a new version of django-q to be published to PyPI and was going to do some more testing then.
@Koed00 any chance you can do this soon?


Bug: PicFrame stops rotating pictures. No log entries

On my Raspberry Pi 4, I have PicFrame set to continually rotate pictures. After a variable interval, PicFrame stops rotating pictures, but leaves the final picture displayed.
I can't seem to find a root cause, nor have I figured out how to work around the issue.
Restarting PicFrame seems to temporarily resolve the issue.
Tried so far:

I have set PicFrame Debug mode all the way down to INFO, and not seeing anything unusual.
Validated "vcgencmd get_throttled" shows no issues
Validated "tvservice -s" and "tvservice -n" look correct
Reviewed all logs in /var/log
Edit: I've tried setting PicFrame logging to mode "DEBUG", and I still see no entries that look related to the issue. Notably, after the picture freezes, I continue to see a regular series of "Updating cache" messages (issued every 2 seconds).

The only things that seem odd:
In /var/log/kern.log, occasional messages like this:
./kern.log.1:Dec 10 23:06:12 MasterTV kernel: [   28.305253] broken atomic modeset userspace detected, disabling atomic
./kern.log.1:Dec 10 23:07:34 MasterTV kernel: [   98.050260] broken atomic modeset userspace detected, disabling atomic
./kern.log.1:Dec 10 23:29:33 MasterTV kernel: [   25.765626] broken atomic modeset userspace detected, disabling atomic
./kern.log.1:Dec 10 23:30:14 MasterTV kernel: [   54.466768] broken atomic modeset userspace detected, disabling atomic
./kern.log.1:Dec 10 23:32:52 MasterTV kernel: [  212.056889] broken atomic modeset userspace detected, disabling atomic

While the pictures are frozen, it looks like picframe is still running:
pi@MasterTV:/var/log $ ps -Af | grep pic
root       713     1  0 Dec10 ?        00:00:00 /usr/bin/xinit /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
root       718   713  2 Dec10 ?        00:10:50 /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
pi        1880   658  0 07:43 pts/0    00:00:00 grep --color=auto pic

And:
pi@MasterTV:/var/log $ tail daemon.log
Dec 11 15:19:28 MasterTV xinit[3328]: INFO:simple_server.InterfaceHttp:{'brightness': 1.0, 'clock_is_on': False, 'date_from': -2147360400.0, 'date_to':<PHONE_NUMBER>.0, 'display_is_on': True, 'fade_time': 1.0, 'location_filter': '', 'matting_images': 0.4, 'paused': False, 'shuffle': True, 'subdirectory': '', 'tags_filter': '', 'time_delay': 10.0}

I'm having difficulties troubleshooting further (or building a workaround). One workaround I have considered is detecting the last time the screen was re-written, and issuing a picframe restart if it is longer than expected. However, I have yet to find a timer I can work off of (and I don't want to kill my SD card by writing it all to disk).
Any suggestions on further troubleshooting steps or on building a work-around?

@nyarrow
What do you mean with continually rotate pictures? Cycling through your pictures?
What OS are you using. Bullseye or Buster? Can you dump picframe -v (libs version picframe is using).
Did you upgrade to the latest release? Please upgrade pip before upgrading picframe.
Does the freeze occur on the same image?
Can you start picframe from command line in DEBUG mode. So you don't have to save the log file. If you start picframe via systemctl, disable restart on failure and check log file with journalctl (jurnalctl is using log rotation, so you shouldn't fill your SD card with the log file).
Updating cache runs in a second thread. So those messages seems to be fine. But I'm wandering what might block the main thread.

Ok - looks like this is related to https://github.com/helgeerbe/picframe/issues/296. I have another picFrame instance running on a different Pi over the same photos. it is running on a different version of picFrame that doesn't seem to have this issue. As such, it looks like this issue was introduced in the 2022.12.04 release...
This one does not fail on the same bad EXIF data:
INFO:start.py:starting ['/home/pi/.local/bin/picframe', '-v']
picframe version:  2022.06.03

Checking required packages......
PIL :  9.3.0
exifread :  3.0.0
pi3d :  2.49
yaml :  6.0
paho.mqtt :  1.6.1
iptcinfo3 :  2.1.4
numpy :  1.16.2
ninepatch : installed, but no version info

Checking optional packages......
pyheif : Not found!

Hi @nyarrow Thanks for finding that. Answer is yes and no. No, because it is an exif error and not a xmp error.
Yes, because I removed exifread lib and use Pillow to extract the exif tags. Pillow seems to be more sensitive and I might have to make the tag reading more fault tolerant.
Is there a chance to get the image, or is it to private?

I've attached one of the files I found.

I'm working on a shell script to find files with bad EXIF data - I seem to have a non-trivial number of them, and they are a pain to find in the mix of 4k other photos.

I've attached one of the files I found (zipped to assure it gets across intact)
BadEXIF.zip
I'm playing around with a shell script to identify files with bad EXIF data - I seem to have an annoyingly-large quantity of them. I'll share if I get it working.

I'm playing around with a shell script to identify files with bad EXIF data

In case you're unaware, EXIFTOOL is a swiss-army knife of EXIF goodness, and has the ability to batch-identify (and potentially repair) bad EXIF data... I don't have the command line syntax handy, but it should be easy to find online.
Here's one hit from the EXIFTOOL forums, though many others exist...

I missed those options in EXIFTOOL...
Thank you!

Thanks for sharing the image. Fix was quite easy. If an exif tag number is not in the dictionary to look up for the tag name, the number itself is used as tag name.
Should be fixed with release 2022.12.13

Testing...
sudo pip install git+https://github.com/helgeerbe/picframe.git

I'm going to call this a success - picframe has not stopped once since I sent the above message.
Thank you helgeerbe!


Bugfix/primitives types dillema

fixes #17

rename *sfinae.hpp to *meta.hpp
change contents from types.hpp to primitives.hpp
made types.hpp the single include for primitives.hpp and meta.hpp

wrong base branch


Adding CodeClimate checks

CodeClimate got some nice analysis features, I want to test and see if can help us improve indeed.
https://codeclimate.com/github/kool-dev/kool
Issues brought up: https://codeclimate.com/github/kool-dev/kool/issues

[ ] Let's go over and take note which issues we are willing to fix.

[ ] Let's add the badge to our README for maintainability.

Current badge:


Top level README mostly about React rather than SES

https://github.com/Agoric/SES-beta/blob/master/README.md

The file was not supposed to be commited.


[Bug] shell syntax colors the "-bar" part of "foo-bar" as an attribute

Reproducible in vscode.dev or in VS Code Desktop?

[X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[ ] Not reproducible in the monaco editor playground

Monaco Editor Playground Code
Use language=shell and this content:
foo-bar --baz gorp

Actual Behavior

Expected Behavior

Additional Context
The relevant regexp is here: https://github.com/microsoft/monaco-editor/blob/main/src/basic-languages/shell/shell.ts#L162
Perhaps the regexp, instead of /-+\w+/ should have a whitespace positive lookbehind? e.g. (?<=\s)-+\w+. I realize that this runs into problems with Safari and old IE... I am not familiar with the internals of monaco-editor, but perhaps there are already runtime guards in place that could be used here.
Or maybe something like [/(\s)(-+[\w-]+/, ["white","attribute.name"]]... but here my knowledge of monaco-editor source is too shallow at the moment to say with any certainty.
fwiw, vscode's markdown preview does not syntax color anything...

Thanks for reporting this! We're more than happy to accept a PR for this!


Prettier added

Formatted the code make it readable easily.

Description:
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #(issue_no):
Replace issue_no with the issue number which is fixed in this PR
Have you read the Contributing Guidelines on Pull Requests?

[X] Yes
[ ] No

Type of change:
Please delete options that are not relevant.

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

Checklist:

[X] My code follows the style guidelines(Clean Code) of this project
[X] I have performed a self-review of my own code
[ ] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

Screenshots:

Make the PR to the prettier branch instead of master . If things don't break we'll merge it.

I have updated the base branch please merge and check for the breaks and let me know if there is any kind of issue present in the PR.

Sure we will go through it.


can't navigate to R.Layout.activity_main_ceylon

Given the example CeylonMainActivity() in Android Studio, I can't click-navigate to R.Layout.activity_main_ceylon or any of the other static members of R.Layout.

I believe this is a duplicate of https://github.com/ceylon/ceylon-ide-intellij/issues/251

Well #251 is about wanting to be sent to the XML. This issue is that I don't even get taken to the Java. But, sure, I guess fixing #251 is the solution to this.

I suppose we could propose two navigation targets like we do for native declarations: one that navigates to the Java decl, the other to the XML file.
I'll fix the Java part in this issue, and leave the XML part in #251.

@bjansen that would be perfect.

Thanks!


Add flag for generating ygot setters.

Use case is intf.SetDescription(s) instead of intf.Description = ygot.String(s), it also permits writing interfaces based on these setters' signatures.
I made this a flag since there could be conflicts. Also made this true by default. This might break some users but if we don't make it default now it will be harder to justify later on as more people depend on ygnmi.
Alternatively we can make it always true but since this is a new flag in ygot some folks might already be depending on it not being there, so breaking them just because of this doesn't seem like a good idea.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1560

Relevant Lines:
1763

💛  - Coveralls

I think I'd rather this be always be true. This just add a method so it isn't a backwards incompatible change. I'd like to see more concrete use cases first as this rather expensive in terms generated code.

I think I'd rather this be always be true. This just add a method so it isn't a backwards incompatible change. I'd like to see more concrete use cases first as this rather expensive in terms generated code.

So this could be a backwards-incompatible change if there is any leaf named "set-leaf" in addition to "leaf". Although this is unlikely and ygnmi is still relatively new, any usage with previous ygot-compatible YANG files might hit an issue. I guess I would be OK with this being true all the time. Do you see a clear downside to providing an option for users?
@dan-lepage do you have any thoughts on how useful this flag will be in Ondatra tests?

@dan-lepage do you have any thoughts on how useful this flag will be in Ondatra tests?

Yes, I think we'd use this a lot. It's certainly a little cleaner and more readable to use intf.SetDescription("foo") instead of intf.Description = ygot.string("foo") and it means we can write timer.SetRestartTime(10) instead of having to remember whether it takes a uint8 or a uint16, but most importantly it would let us write helpers that don't depend on a specific generated ygot library.
For example in attrs.go we have a function that takes a *github.com/openconfig/ondatra/telemetry.Interface and modifies it, and in some code I'm working on to port tests to ygnmi I had to duplicate that function entirely just to do the same thing for a *github.com/openconfig/ondatra/gnmi/oc.Interface (the functions are literally identical except for the package name before the word Interface). This would be much simpler if we could define an interface with the parts we care about and then use the helper with any ygot-generated library that provides those helpers.

On the question of expensiveness, this change is as expensive as the ygot getters. Here is a comparison between generating vs. not generating based on ygot's exampleoc (which contains network-instance):
No Setter: 244730 LoC
        Command being timed: "go build -a"
        User time (seconds): 114.74
        System time (seconds): 10.41
        Percent of CPU this job got: 348%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:35.95
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 3574892
        Average resident set size (kbytes): 0

Setter: 269188 LoC
        Command being timed: "go build -a"
        User time (seconds): 118.51
        System time (seconds): 10.11
        Percent of CPU this job got: 359%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:35.78
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 3655512
        Average resident set size (kbytes): 0

So both time and memory-wise the increase is less than 5%. There is indeed more LoC in the generated file but I think this is less of a problem.

Another possible advantage to building helpers that don't rely on a specific yang-generated tree is that I think it might be possible to vastly speed up compile times for small projects by compiling an OC tree with just the subset of OC that you actually use.

sgtm, i think this should be always true in that case.


[Question] Accounts capped at 30?

I've got in the vicinity of 300 accounts, it'd be great to be able to use them all so that I can get much faster scan times, but it seems like accounts is maxed at 30 and threads at 3, is that a hardware limitation of my machine?
Thanks!

Ignore this - needed to hard restart everything.


Allow to populate primary key in MERGE ... ON CREATE SET clause (esp. gen_random_uuid() for UUID)

kuzu> CREATE NODE TABLE V(id UUID, name STRING, PRIMARY KEY(id));
-----------------------------------
| result                          |
-----------------------------------
| Node table: V has been created. |
-----------------------------------
(1 tuple)
(1 column)
kuzu> MERGE (:V {name: "foo"});
Error: Binder exception: Create node  expects primary key id as input.
kuzu> MERGE (v:V {name: "foo"}) ON CREATE set v.id = gen_random_uuid();
Error: Binder exception: Create node v expects primary key id as input.

Shouldn't the last one work?

Just noticed this occurs with every primary key type, not just UUID:
kuzu> CREATE NODE TABLE V2(id STRING, name STRING, PRIMARY KEY(id));
kuzu> MERGE (:V2 {name: "foo"});
Error: Binder exception: Create node  expects primary key id as input.
kuzu> MERGE (v:V2 {name: "foo"}) ON CREATE set v.id = "fooid";
Error: Binder exception: Create node v expects primary key id as input.

I think especially gen_random_uuid() with UUID would be useful to be used in MERGE ... ON CREATE SET.

This is a good point, and I think it's a fair observation. We should look into this in more detail and understand what it takes to implement this. Am just putting this on the table for @benjaminwinger and @andyfengHKU for their reference.

Created #3238 as a feature request from this.


cache:prune-stale-tags Not Functioning on Redis Cluster

Laravel Version
10.38.2
PHP Version
8.2.16 (Docker, php-fpm)
Database Driver & Version
PhpRedis and Redis 7.0.7 on AWS ElastiCache (Redis Cluster)
Description
The php artisan cache:prune-stale-tags command does not function on a Redis Cluster. I have verified that this command works with Redis. However, when executed on a Redis cluster, no memory is freed, as illustrated in the chart below.

(The command was executed every hour. The areas that have decreased are those that I have manually addressed.)
I suspect there may be issues with both Laravel and possibly PhpRedis.
I addressed this by implementing the following measures in the code:

RedisStore::currentTags() and PhpRedisConnection::scan()

Modified to execute the SCAN command on each node in the Redis Cluster.

RedisTagSet::flushStaleEntries()

Modified to remove stale entries without using pipeline().

I was unable to successfully integrate this into the framework code. I hope this issue can be resolved.
<?php

namespace App\Console\Commands;

use Illuminate\Cache\CacheManager;
use Illuminate\Cache\Console\PruneStaleTagsCommand;
use Illuminate\Cache\RedisStore;
use Illuminate\Cache\RedisTagSet;
use Illuminate\Console\Command;
use Illuminate\Redis\Connections\PhpRedisClusterConnection;
use Illuminate\Redis\Connections\PhpRedisConnection;
use Illuminate\Redis\Connections\PredisConnection;
use Illuminate\Support\Carbon;
use Illuminate\Support\LazyCollection;
use Illuminate\Support\Str;
use Redis;
use RedisCluster;

class PruneStaleTags extends PruneStaleTagsCommand
{
    public function handle(CacheManager $cache)
    {
        $cache = $cache->store($this->argument('store'));

        $store = $cache->getStore();
        if (! $store instanceof RedisStore) {
            $this->error('Pruning cache tags is only necessary when using Redis.');

            return Command::FAILURE;
        }

        // If the Redis connection is a cluster, call the modified version of the method.
        $this->info('Stale cache tags are pruning...');
        if ($store->connection() instanceof PhpRedisClusterConnection) {
            $this->flushStaleTagsForRedisCluster($store);
            $this->info('Stale cache tags for cluster pruned successfully.');
        } else {
            $cache->flushStaleTags();
            $this->info('Stale cache tags pruned successfully.');
        }

        return Command::SUCCESS;
    }

    // Modified from RedisStore::flushStaleTags()
    private function flushStaleTagsForRedisCluster(RedisStore $store): void
    {
        $count = 0;
        foreach ($this->currentTagsForRedisCluster($store)->chunk(1000) as $tags) {
            $count += $this->flushStaleEntriesWithOutPipeline($store->tags($tags->all())->getTags(), $store);
        }
        $this->info("{$count} tags were pruned.");
    }

    // Modified from RedisStore::currentTags()
    private function currentTagsForRedisCluster(RedisStore $store, int $chunkSize = 1000): LazyCollection
    {
        $connection = $store->connection();

        $connectionPrefix = match (true) {
            $connection instanceof PhpRedisConnection => $connection->_prefix(''),
            $connection instanceof PredisConnection => $connection->getOptions()->prefix ?: '',
            default => '',
        };

        $prefix = $connectionPrefix.$store->getPrefix();

        // Set Redis options just in case. *This might not be necessary.
        // https://github.com/phpredis/phpredis/issues/2074
        $redis = $connection->client();
        $redis->setOption(Redis::OPT_SCAN, Redis::SCAN_RETRY);
        $redis->setOption(RedisCluster::OPT_SLAVE_FAILOVER, RedisCluster::FAILOVER_ERROR);

        return LazyCollection::make(function () use ($redis, $chunkSize, $prefix) {
            // Modified to loop through the master nodes of the Redis cluster.
            foreach ($redis->_masters() as $master) {
                $cursor = $defaultCursorValue = '0';
                $count = 0;

                do {
                    [$cursor, $tagsChunk] = $this->scanForCluster(
                        $redis,
                        $master,
                        $cursor,
                        ['match' => $prefix.'tag:*:entries', 'count' => $chunkSize]);

                    if (! is_array($tagsChunk)) {
                        break;
                    }

                    $count += count($tagsChunk);
                    $tagsChunk = array_unique($tagsChunk);

                    if (empty($tagsChunk)) {
                        continue;
                    }

                    foreach ($tagsChunk as $tag) {
                        yield $tag;
                    }
                } while (((string) $cursor) !== $defaultCursorValue);

                $this->info("{$master[0]}:{$master[1]} : {$count} keys were scanned.");
            }
        })->map(fn (string $tagKey) => Str::match('/^'.preg_quote($prefix, '/').'tag:(.*):entries$/', $tagKey));
    }

    // Modified from PhpRedisConnection::scan()
    private function scanForCluster(RedisCluster $redis, array $node, $cursor, array $options = []): mixed
    {
        // Execute scan on the node.
        $result = $redis->scan(
            $cursor,
            $node,
            $options['match'] ?? '*',
            $options['count'] ?? 10
        );

        if ($result === false) {
            $result = [];
        }

        return $cursor === 0 && empty($result) ? false : [$cursor, $result];
    }

    // Modified from RedisTagSet::flushStaleEntries()
    public function flushStaleEntriesWithOutPipeline(RedisTagSet $tags, RedisStore $store): int
    {
        // Remove the stale entries without using pipeline(), as PhpRedisClusterConnection does not support pipeline().
        $conn = $store->connection();
        $count = 0;
        foreach ($tags->getNames() as $name) {
            $tagKey = $tags->tagId($name);
            $count += $conn->zremrangebyscore($store->getPrefix().$tagKey, 0, Carbon::now()->getTimestamp());
        }

        return $count;
    }
}

Steps To Reproduce

Use a cache with an expiration time on a Redis Cluster.
After the caches have expired, run php artisan cache:prune-stale-tags.

Please see https://laravel.com/docs/10.x/upgrade#redis-cache-tags

Usage of Cache::tags() is only recommended for applications using Memcached. If you are using Redis as your application's cache driver, you should consider moving to Memcached or using an alternative solution.

OMG. I got it. But I have confirmed that I checked the page before selecting Laravel 10 and the Cache server.
https://web.archive.org/web/20230428092634/https://laravel.com/docs/10.x/upgrade#redis-cache-tags
Did the Laravel maintainer change the supported driver in a minor update? Changes like this should only be made in a major update...

Even the whole section about "Cache Tags" is gone in the Laravel 10 documentation...

https://laravel.com/docs/10.x/cache#cache-tags
https://web.archive.org/web/20230429220921/https://laravel.com/docs/10.x/cache#cache-tags


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/115211

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/116794

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/119050

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/119078

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/121593

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/122007


Spike: Istio 1.5 - Helm deprecation and IstioD

See research doc.

Closing in favor of:

Istio 1.5.x original helm chart: https://github.com/rancher/rancher/issues/25098#issue-554887872
1.6 Operator chart: https://github.com/rancher/rancher/issues/26786
1.5->1.6 helm to helm migration: https://github.com/rancher/rancher/issues/24976


Add sessions management in settings.py

For safety reasons, sessions should be terminated after a short timeout (in this pull request, 5 minutes) or when the browser is closed. Is it safe to do this, or there are unexpected side effects?

Hi,
Did you test it ? It looks like it's not working.

Hi,
yes I've tried it on a clean browser. Once modified settings.py I've done a stop/start of services with your scripts.


fakenews + gambling + porn without Unified hosts

hallo,
thx for great list, but can i req fakenews + gambling + porn without Unified hosts only?

Hi @alsyundawy thank you for your question, that's an interesting idea.
I don't feel there's much demand for this mix, since the benefits of ad and malware blocking are undeniable.  However this repository includes full source code and you could tweak updateHostsFile.py to suit your needs.
If you choose to do so, and make this feature driven by runtime flags, I would certainly entertain a pull request for this. 😄

how to grep gambling + porn only?

Cangkeman @@alsyundawy this capability is coming, hopefully pretty soon!

wow thx, cant wait

yes but https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts merger with Unified hosts but
i just need fakenews-gambling-porn without Unified hosts , reason is in. my country gov illegal to access fakenews-gambling-porn bloked using dns but ads allowed

any update?

Hi @alsyundawy it's coming. I hope to get this realized within the next 30-days.

cant wait hehehe

Oh, that's actually interesting. As for the gambling games, they're getting even more popular nowadays, and it's not even surprising because games like https://parimatch.in/en/page/online-eagles-gold are thrilling, and the experience just can't be described, I think all the people who tried gambling at least once will understand me.

Hi @alsyundawy it's coming. I hope to get this realized within the next 30-days.

hi , any update ?

any update @StevenBlack @ScriptTiger ?

Still working on it @alsyundawy.

cant wait 💕💕💕💕💕💕

@alsyundawy, I'm also still working on overhauling Hosts-BL, with one of the new things allowing removal/filtering out of entries based on a given hosts file. So, in your case, you would be able to just do the base+gambling+porn list and filter the base. The current Hosts-BL is super basic and just written for speed, since I generate 11 different formats for each of the 16 flavors of the hosts file, so 176 different conversions, for my downloadable pre-generated blacklists. Hosts-BL will definitely be able to do the job faster than running a Python script, but having the ability to generate the desired hosts file from scratch locally yourself directly from the start using the updateHostsFile.py will also have plenty of benefits, as well, depending on your workflow and security requirements.
P.S. @StevenBlack, there's a shill four comments up promoting gambling who needs to be removed/blocked/reported.

Closing because this is done.


gotrue-supabase: 2.35.0 -> 2.40.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/supabase/gotrue/releases.
meta.description for gotrue-supabase is: A JWT based API for managing users and issuing JWT tokens
meta.homepage for gotrue-supabase is: https://github.com/supabase/gotrue
meta.changelog for gotrue-supabase is: https://github.com/supabase/gotrue/releases/tag/v2.40.1
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.40.1 with grep in /nix/store/ivpwnmbra62mf8mcs9jwy6l4w2p7k65s-gotrue-2.40.1
found 2.40.1 in filename of file in /nix/store/ivpwnmbra62mf8mcs9jwy6l4w2p7k65s-gotrue-2.40.1

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
gotrue-supabase

Instructions to test this update (click to expand)

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

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ivpwnmbra62mf8mcs9jwy6l4w2p7k65s-gotrue-2.40.1
ls -la /nix/store/ivpwnmbra62mf8mcs9jwy6l4w2p7k65s-gotrue-2.40.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gotrue-supabase

Maintainer pings
cc @urandom2 for testing.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/795

there has been a few pieces of feedback given about the usage of both discourse threads, and I think they could use some clarification on how they are supposed to be used.
that said, more than happy to follow this policy.


[YT] subscriptions do not work

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dlc version 2020.10.31
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--cookies', 'cookies.txt', 'https://www.youtube.com/feed/subscriptions']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-2
[debug] Git HEAD: 228385340
[debug] Python version 3.8.6 (CPython) - Linux-5.7.0-3-amd64-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:subscriptions] Youtube Subscriptions: Downloading webpage
[download] Downloading playlist: Youtube Subscriptions
ERROR: Unable to extract ytInitialData; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; see  https://github.com/blackjack4494/yt-dlc  on how to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/debian/Resources/GitHub/anonymous/yt-dlc/youtube_dlc/YoutubeDL.py", line 858, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/debian/Resources/GitHub/anonymous/yt-dlc/youtube_dlc/YoutubeDL.py", line 1018, in process_ie_result
    entries = list(itertools.islice(
  File "/home/debian/Resources/GitHub/anonymous/yt-dlc/youtube_dlc/extractor/youtube.py", line 341, in _entries
    data_json = self._parse_json(self._search_regex(self._INITIAL_DATA_RE, page, 'ytInitialData'), None)
  File "/home/debian/Resources/GitHub/anonymous/yt-dlc/youtube_dlc/extractor/common.py", line 1010, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dlc.utils.RegexNotFoundError: Unable to extract ytInitialData; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; see  https://github.com/blackjack4494/yt-dlc  on how to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.

Description

Subscriptions for YouTube have been broken for a long time, be nice to get them fixed.

:ytsubs works. only the URL is broken

It is working for me. Are you sure your cookies are valid?

Apparently I used the wrong cookie file due to confusion on my part with Firefox Containers (you get two sets of cookies for containers).


A MACOS version?

I am a user of Xperia and MacBook, when I want to flash my phone, I have to use flashtool. But I think newFlasher is better for me because I used to flash my phone on Windows computer, I think a Mac version newFlasher can be good.

Did you tried to compile byself newflasher with macos toolchain?

@munjeni I tried to do that... but I failed because of both my pathetic skill with C and the lack of documentation on IOKit. I'm thinking about... why not use libusb?

Hi, you can use libusb, but situation is the same - needs for backporting initialisation & traansfer functions. Here is my old work based on libusb https://pastebin.com/QKDDRNrc , hope it help you

If you need try MACOS 64 bit build I have done some linusb implementation on this commit https://github.com/newflasher/newflasher/commit/ed10305602e49b779f86cd067c24e967b43ca492 , can't tell you if it will work, it actualy compile, if it actualy work it will need some small additions - modifications.

@RedL0tus any newfls? I have done v22 version which might work on Macos, please test and let me know.

@munjeni Hi, I just tried v22.
If I compile newflasher with the bundled libexpat/libz/libusb static library, it will crash.
(lldb) target create "newflasher.x86_64-apple-darwin11"
Current executable set to '/Users/kay/Documents/github/newflasher/newflasher.x86_64-apple-darwin11' (x86_64).
(lldb) r
Process 18818 launched: '/Users/kay/Documents/github/newflasher/newflasher.x86_64-apple-darwin11' (x86_64)
--------------------------------------------------------
            newflasher.x86_64-apple-darwin11 v22 by Munjeni @ 2017/2019
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 132219117 MB
  Total space on current drive = 183164297 MB
  Free space on drive          = 136685529 MB
Process 18818 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x00007fff319219ff CoreFoundation`CFRetain.cold.1 + 14
CoreFoundation`CFRetain.cold.1:
->  0x7fff319219ff <+14>: ud2

CoreFoundation`__CFGenericTypeID.cold.1:
    0x7fff31921a01 <+0>:  leaq   0x1e9ea4(%rip), %rax      ; "Attempting to address object pointer with invalid tag"
    0x7fff31921a08 <+7>:  movq   %rax, 0x5785bdc1(%rip)    ; gCRAnnotations + 8
    0x7fff31921a0f <+14>: ud2
Target 0: (newflasher.x86_64-apple-darwin11) stopped.

Then I tried to compile it with my own libraries, it will not crash but still cannot function correctly:
--------------------------------------------------------
            newflasher v22 by Munjeni @ 2017/2019
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 133176689 MB
  Total space on current drive = 183164297 MB
  Free space on drive          = 137643100 MB

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that!
y
 - Writing log to tadump.log
 - Writing trim area dump to 01.t
.
 - Error writing command powerdown!

--------------------------------------------------------
            newflasher v22 by Munjeni @ 2017/2019
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 133180116 MB
  Total space on current drive = 183164297 MB
  Free space on drive          = 137646527 MB

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that!
n
 - Error writing command getvar:max-download-size!
 - Error writing command powerdown!

I thought it may be some weird permission issue so I tried to run the binary with sudo, but it still shows the same result.

Hi, thanks, try to remove those two lines (479 and 480):
int32_t OSAtomicDecrement32Barrier(volatile int32_t *__theValue) { return 0; }
int32_t OSAtomicIncrement32Barrier(volatile int32_t *__theValue) { return 0; }
I'm hardcoded it since my compiler do not have those two functions.

If not work I will try install mac on my pc in next few days

Seems EP for thasfet out is wrong https://github.com/newflasher/newflasher/blob/master/newflasher.c#L895 , can you connect phone in flash mode and give me all informations you find about usb device, vid, pid, ep, ...etc? Other than that seems vid and pid is succesfully found.

Try put 0x02 to https://github.com/newflasher/newflasher/blob/master/newflasher.c#L895 and let me know

@munjeni

Hi, thanks, try to remove those two lines (479 and 480):
int32_t OSAtomicDecrement32Barrier(volatile int32_t *__theValue) { return 0; }
int32_t OSAtomicIncrement32Barrier(volatile int32_t *__theValue) { return 0; }
I'm hardcoded it since my compiler do not have those two functions.

The problem still exists after removing these two lines.

If not work I will try install mac on my pc in next few days.
Edit:
Seems I can't install mac without mac? I don't owning mac :(

It is possible, but it requires some effort and some devices do not have drive under macOS. macOS have lots of cursed designs, actually right now I'm thinking it may be not worthy to support macOS, because Apple is constantly breaking compatibility and there are not so many macOS-only users. Maybe just wait for someone who has the interest and the skill to port it if we cannot figure out how to fix it.

Seems endpoint OUT is wrong https://github.com/newflasher/newflasher/blob/master/newflasher.c#L895 , can you connect phone in flash mode and give me all informations you find about usb device, vid, pid, endpoint, ...etc? Other than that seems vid and pid is succesfully found. I'm unsure now about endpoint IN and OUT, even I'm searching google without luck getting how you can list that info on mac, if you allready know it would be of good help

| +-o Android@01300000  <class AppleUSBDevice, id 0x10000ca4d, registered, matched, active, busy 0 (1 ms), retain 14>
  |     {
  |       "sessionID" =<PHONE_NUMBER>3685
  |       "idProduct" = 45067
  |       "iManufacturer" = 1
  |       "bDeviceClass" = 0
  |       "bMaxPacketSize0" = 64
  |       "bcdDevice" = 1028
  |       "iProduct" = 2
  |       "iSerialNumber" = 0
  |       "bNumConfigurations" = 1
  |       "Bus Power Available" = 250
  |       "USB Address" = 7
  |       "Built-In" = No
  |       "locationID" = 19922944
  |       "bDeviceSubClass" = 0
  |       "bcdUSB" = 512
  |       "USB Product Name" = "Android"
  |       "PortNum" = 3
  |       "non-removable" = "no"
  |       "AppleUSBAlternateServiceRegistryID" =<PHONE_NUMBER>
  |       "bDeviceProtocol" = 0
  |       "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
  |       "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerStat$
  |       "kUSBCurrentConfiguration" = 1
  |       "Device Speed" = 2
  |       "USB Vendor Name" = "Sony"
  |       "idVendor" = 4046
  |       "IOGeneralInterest" = "IOCommand is not serializable"
  |       "IOClassNameOverride" = "IOUSBDevice"
  |     }

USB:

    USB 3.0 Bus:

      Host Controller Driver: AppleUSBXHCIFL1100
      PCI Device ID: 0x1100
      PCI Revision ID: 0x0010
      PCI Vendor ID: 0x1b73

        Android:

          Product ID: 0xb00b
          Vendor ID: 0x0fce  (Sony Ericsson Mobile Communications AB)
          Version: 4.04
          Speed: Up to 480 Mb/s
          Manufacturer: Sony
          Location ID: 0x01300000 / 7
          Current Available (mA): 500
          Current Required (mA): 500
          Extra Operating Current (mA): 0

(I'm using a CalDigit TS3+)

Try put 0x02 to https://github.com/newflasher/newflasher/blob/master/newflasher.c#L895 and let me know if not work try https://vovkos.github.io/doxyrest/samples/libusb/enum_libusb_request_type.html 0x00 and 0x03

I have just tried 0x00, 0x02, 0x03 and the problem persists.

Thanks! I realy have no idea right now, reading this https://vovkos.github.io/doxyrest/samples/libusb/enum_libusb_request_type.html might it be instead e.g. 0x01 something like (0x01 << 5) , you can try if you get more free time.

@RedL0tus I'm made something now hope its work now, let me know please when you get more free time. Compile with your own libusb.

@munjeni Sorry for the late reply, I just tried the newest code with my phone:
--------------------------------------------------------
            newflasher v24 by Munjeni @ 2017/2019
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 131670245 MB
  Total space on current drive = 183164297 MB
  Free space on drive          = 137447379 MB

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that!
n
bulk transfer (out): LIBUSB_ERROR_TIMEOUT
 - Error writing command getvar:max-download-size!
bulk transfer (out): LIBUSB_ERROR_TIMEOUT
 - Error writing command powerdown!

I also tried with sudo but got the same result.

No prob, I like in any time! First of all many thanks! I'm done much more work, https://github.com/newflasher/newflasher/commit/e1df0bcdcd5bf20b1d29145dddd8721d9ce33be6 , can this work now?

@munjeni
--------------------------------------------------------
            newflasher v24 by Munjeni @ 2017/2019
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 131857542 MB
  Total space on current drive = 183164297 MB
  Free space on drive          = 137110482 MB

Device properties:
        bus number: 1
         port path: 3 (from root hub)
             speed: 480 Mbit/s (USB HighSpeed)

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 0
           VID:PID: 0xFCE:0xB00B
         bcdDevice: 0x404
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0xFF 0x42 0x3
       endpoint[0].address: 0x81
           max packet size: 0x200
          polling interval: 0x0
       endpoint[1].address: 0x01
           max packet size: 0x200
          polling interval: 0x0

Claiming interface 0...

Reading string descriptors:
   String (0x01): "Sony"
   String (0x02): "Android"

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that!
n
bulk transfer (out): LIBUSB_ERROR_NOT_FOUND
 - Error writing command getvar:max-download-size!
bulk transfer (out): LIBUSB_ERROR_NOT_FOUND
 - Error writing command powerdown!

Hmmmmmmm...

Thanks! I don't have idea right now but I'm in contact with libusb guys https://github.com/newflasher/newflasher/commit/fde5c13d7a90beaecaaa1a13081204833c5fb647 hope we address isue. On google search seems a lot of thar LIBUSB_ERROR_NOT_FOUND results

I will try to install mac https://isoriver.com/how-to-install-mac-os-on-windows-pc-using-virtual-machine/

@RedL0tus I'm succed installing mac, I'm fixed some isues related to ep_in and ep_out, but still unable to get bulk transfer working on vmware, getting some kernel error, my hope it is related to vmware, can you try now when you get free time?

@RedL0tus got it!!! \0/ If you going to test please do not flash .ta. files, partition , boot delivery, bootloader ...etc, you can try for the start with cache partition, if flashing cache suced try to flash system, do not try flash anything else since I unsure now if bulk transfer will work on larger chunks, if booth cache and system flash sucesfully the rest might work. Do in mind this is alpha support for macos, it might work, it might crash, need to be tested

@munjeni
That's great! I just tried with cache.sin and it seems to be successfully flashed, but I got another LIBUSB_ERROR_TIMEOUT when newflasher trying to put my phone out of flash mode.
Device is put now out of flash mode.
Sent command: Sync
bulk transfer (in): LIBUSB_ERROR_TIMEOUT
 - Error reply: null!
Error, no sync response!

Right now this phone is no longer used as my main device and I'm willing to help more on testing.

I'm tested on trim area dump and it suced too, bufer exceeds 0x200 bytes, so seems everything is ok. About sync response bug, it was reported some years ago, see https://github.com/newflasher/newflasher/commit/616aca11cbdd8e8947d60ff3d2e2372bfdb67e17 I'm temporary enabled it but seems not all phones giving reply :( Right now that error can be ignored since sync is sucesfully writed and thats important, the rest after sync is a less important but I will reopen isue hope we solve that soon. You can fully flash test now? Try first with system , two - three times if need, than try slowly the rest, the last flash bootdelivery and ta files, I'm believing everything is right.

What is your mac version? I'm testing right now on 10.14

@munjeni

I'm tested on trim area dump and it suced too, bufer exceeds 0x200 bytes, so seems everything is ok. About sync response bug, it was reported some years ago, see 616aca1 I'm temporary enabled it but seems not all phones giving reply :( Right now that error can be ignored since sync is sucesfully writed and thats important, the rest after sync is a less important but I will reopen isue hope we solve that soon. You can fully flash test now? Try first with system , two - three times if need, than try slowly the rest, the last flash bootdelivery and ta files, I'm believing everything is right.

I'm downloading the system.sin file from my NAS, I'll start test them soon.

What is your mac version? I'm testing right now on 10.14

I'm running macOS 10.15.5 on a MacBook Pro 13 2019.

Ok, many thanks! It might be that sync not fail all the time? I will test it more soon.

Just tested, for me sync is ok
Device is put now in flash mode.
No .sin files in partition dir...
You must extract partition.zip into 'partition' folder if you want flash partition image!
On 2018 and UP models you must move partition sin files to 'partition' folder if you need flash partition images!
Processing .sin files...
Created ouput folder flash_session
Processing appslog_X-FLASH-ALL-8F02.sin

Extracting from appslog_X-FLASH-ALL-8F02.sin
Extracting signature appslog.cms
Uploading signature ./flash_session/appslog.cms
signature:00000533
OKAY.
Extracting sparse chunk appslog.000
Uploading sparse chunk ./flash_session/appslog.000
download:000003c2
OKAY.
erase:appslog
OKAY.
flash:appslog
OKAY.
End of appslog_X-FLASH-ALL-8F02.sin

Processing .ta files...
No .ta files in current dir.
Processing boot delivery...
boot_delivery.xml not exist in boot folder or no boot folder.
Set slot 'b' active.
Device is put now out of flash mode.
Sent command: Sync
Sent command: reboot.
Done.
Releasing interface 0.
Closing device.
macoss-Mac:newflasher macos$

@RedL0tus I'm believing Sync isue is caused by not waiting at least some secconds for sync to finish, I'm modified sync command now, can you try now?

I have flashed whole firmware, all seems right, no sync isue, no isues at all, need somebody confirm.

@munjeni

I have flashed whole firmware with v29 version (latest), all seems right, no sync isue, no isues at all, need somebody confirm.

I tried to flash the system.sin and it works flawlessly. I did not met the sync issue this time, I think it could be a firmware-related bug as my phone is a XZ1C.

Many thanks for your testing time, since thing is confirmed I'm closing two tickets, two things seems fixed, if you notice any isue please reopen, I think thats it, there will be no more sync isues.

Thank you for your work!
On Jul 12, 2020, 12:03 -0700, munjeni<EMAIL_ADDRESS>wrote:

Many thanks for your testing time, since thing is confirmed I'm closing two tickets, two things seems fixed, if you notice any isue please reopen, I think thats it, there will be no more sync isues.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

hi, I tried to use newflasher on my Mac to flash my xperia 1 iii, but something seems went wrong, nothing flashed into my phone, and the phone stayed in flash mode until I reboot manually.
p.s. libusb had upgrade to version 1.0.24
--------------------------------------------------------
            newflasher v51 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 34546642 MB
  Total space on current drive = 122086923 MB
  Free space on drive          = 34546642 MB

Device properties:
        bus number: 20
         port path: 4 (from root hub)
             speed: 5000 Mbit/s (USB SuperSpeed)

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 0
           VID:PID: 0xFCE:0xB00B
         bcdDevice: 0x100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0xFF 0x42 0x3
       endpoint[0].address: 0x81
           max packet size: 0x400
          polling interval: 0x0
       endpoint[1].address: 0x01
           max packet size: 0x400
          polling interval: 0x0

Set configuration: succed.

Claiming interface 0: succed.

Reading string descriptors:
   String (0x01): "Google"
   String (0x02): "Android"

Reboot mode at the end of flashing:
  typa 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
a

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
n
bulk transfer (out): LIBUSB_ERROR_TIMEOUT
 - Error writing command getvar:slot-count, ignore this error!
bulk transfer (out): LIBUSB_ERROR_TIMEOUT
 - Error writing command getvar:Battery!
bulk transfer (out): LIBUSB_ERROR_TIMEOUT
 - Error writing command continue!
Releasing interface 0.
Closing device.
Saving session...completed.

Hi, on Darwin you need to install libusb-1.0 otherwise it not going to work, don't ask why I don't know


Determine whether a svg is selected.

Hi, is there a way to determine whether a svg is selected? Just like the selected Attribute?

For the currently available version I think this still holds: https://github.com/svgdotjs/svg.select.js/issues/26


Implement OpenSearch for /leden

Chrome can tabsearch any website that implements OpenSearch, this is fancy, so implement that.
Uhh maybe find out whether that works on suburls :0

See Inter-Actief/amelie-private#162


Add test for content-length

So I have added this test for content length and it succeeds without any code modifications. @afn Can you try if this works for you in latest version of the gem?


add project libcompose for docker org

I found that libcompose is't in  docker org  which is an experimental go library providing Compose-like functionality in docker community. So I suggest than add it to docker org.
Thanks!
Signed-off-by: yuexiao-wang<EMAIL_ADDRESS>

Thank you for contributing to openstack/stackalytics!
openstack/stackalytics uses Gerrit for code review.
If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started
Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.


feat: use VirtualHosted addressing style as default for s3-compatible object storage.

Fixes #10851
Motivation
Due to the long-term plan to deprecate Path-style requests in S3, some new S3 protocol-compatible object storage services generally either support both virtual-hosts and Path-style types（minio), or only support virtual-hosts. However, in Minio's default logic, if it's not an AWS, Google cloud or  aliyun domain, it will default to using the Path-style protocol.
In Argo Workflows, we should explicitly specify to use virtual-hosts as defult addressing style for new S3 protocol-compatible object storage service.
Modifications

workflow/artifacts/s3/s3.go
update e2e scripts to make sure minio in virtual-hosts style deployed on k3s.

minio run in virtual-hosts style.
update coredns config for minio.

Verification

github unit test for minio

Hi, this MR is already 8 months, is there any issues that prevents this changes to be mainlined ?
Thank you.
bcc: @hustclf @Joibel

@zerosign please feel free to take over this PR by creating one of your own and addressing my comments. The comments are what are blocking me approving it. Assuming you reuse @hustclf's code in any way please attribute them with a Co-authored-by line. The easiest way to do that is to keep the commit as is and put your own on top of it.

I think it would be preferred if this was a configurable system option rather than an enforced change, defaulting to the old behaviour.
Sorry for late reply, and thanks for @Joibel 's advice,  It is better to offer an configurable option.

There are many code modifications to make the e2e test pass. (For example, the configuration of coredns has been updated so that minio can work in virtualhost mode). And there is also a lack of necessary documentation.
Feel free to continue working here :).  @zerosign


Release v1.2.17

logging: Disable quoting of values - makes request/response dumps readable
chore: remove deprecated lib io/ioutil
fix: version tests
SDA-8789 | feat: add oidc config id to message
SDA-8777 | feat: check if there are clusters using operator roles prefix
SDA-8790 | fix: use parameter installer role arn when passed
Fix version validation error handling
SDA-8804,8805 | fix: better behavior for listing operator roles
SDA-8775: Align label and taints validation between create and edit
SDA-8786 | feat: add bucket policy to allow public read
SDA-8808 | feat: add aws account ID to filter unmanaged OIDC configs
SDA-8805 | fix: better messages when listing operator roles for specific version
fix: small issue when customer sets up oidc provider with issuer url '/' at the end
SDA-6239 | fix: Add message to helper --delete param on init cmd
feat: add output json/yaml to create oidc config
chore: add initial github action to checking commit message format
docs: update contribution guide with commit hygiene
SDA-7708 | fix: remove --tags param from example for usage
Warn about version flag in combination with HCP managed policies
fix: trims trailing slash in ocm api when checking env
SDA-8861 | feat: add --etcd-encryption-kms-arn to cluster build command when in use
SDA-8882 | fix: add more validations before terminating run for upgrade roles
fix: upgrade account roles - support hosted CP managed policies
SDA-8897 | fix: shared operator roles with managed policies
SDA-8900 | feat: only allow aws auto mode when choosing and output flag enabled
SDA-8892|fix:Ask for drain period before scheduling the update
SDA-8905 | feat:Implement delete upgrade command for hypershift
SDA-8880 | Fix: implement list upgrades for Hypershift
SDA-8880 | Fix: correctly check if an upgrade is already scheduled

/lgtm


[charts/portal]:APIVersion for ingress-resources of Portal

Description of the change
API version change from v1beta1 to v1 for ingress-resources of Portal. networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress

Allows to use latest API version supported in K8s cluster.
Benefits

Avoids warning while installing the helm charts.

Drawbacks

Applicable issues

fixes #

Additional information
Checklist

[X] Chart version bumped in Chart.yaml according to semver.
[X] Title of the PR starts with chart name (e.g. [charts/gateway])

Please check backwards compatibilty with our current support matrix - networking/v1 may not be present in some of the versions we evaluate against. This also needs to be compatible with the version of Nginx that's used.

@Gazza7205 Our claim for K8s support for  Portal 5.0.2 would be 1.19+  and the "networking.k8s.io/v1" is supported from 1.19 (https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class) and the expectation is that  Nginx-ingress-controller should support the K8s 1.19+ version.

Please check backwards compatibilty with our current support matrix - networking/v1 may not be present in some of the versions we evaluate against. This also needs to be compatible with the version of Nginx that's used.

@Gazza7205 Our claim for K8s support for Portal 5.0.2 would be 1.19+ and the "networking.k8s.io/v1" is supported from 1.19 (https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class) and the expectation is that Nginx-ingress-controller should support the K8s 1.19+ version.

I understand, that still introduces a breaking change for anyone on less than 1.19. We can account for both using semverCompare.

Please check backwards compatibilty with our current support matrix - networking/v1 may not be present in some of the versions we evaluate against. This also needs to be compatible with the version of Nginx that's used.

@Gazza7205 Our claim for K8s support for Portal 5.0.2 would be 1.19+ and the "networking.k8s.io/v1" is supported from 1.19 (https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class) and the expectation is that Nginx-ingress-controller should support the K8s 1.19+ version.

I understand, that still introduces a breaking change for anyone on less than 1.19. We can account for both using semverCompare.

@Gazza7205 changes updated to support backward compatibility

@ksaladi - looks good to me, has this been tested?

@Gazza7205 Tested.
Details:-

Rancher k8s version 1.17 and 1.20
Also verified ingress-resources with the ingress-controller that are coming from our charts in Azure K8s.


BD-938:Compliance Issues in opensync-vendor-rdk-rpi

Reason for change: Updated missed header change.
Test Procedure: Jenkin build should pass after License header changes for RDK for listed repos
Risks: None

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Mallikarjuna Masina seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Change looks okay to me.


doc: Add/Update docs in help center

Add documentation for 'Who can create and manage user groups'
Fixes: #14298

In issue #14298 Steve mentioned that the docs for settings like who can access email addresses are not present but actually they are present in Users & bots section of docs and similarly other docs are present in different sections.
So have added/updated only those docs which I find missing.

@timabbott can you review this

Merged as the series ending with 3e78b3cdc337bb01ad93d3e38e5bafb0958985d5, after several changes:

Cleanup of wording.
Adding Related articles sections linking to the new articles.
Fixed the naming of the articles to be consistent with similar articles.

I encourage you to read the merged versions and learn the style for /help/ work from those.
Thanks @SiddharthVarshney!