Let me publish to npm?

Do you mind if I publish the binary to npm? Unless you have some auto-update magic going on that I'm not aware of, it would make getting updates easier (I'd be happy to keep the module updated). I did this with cloc (coincidentally a similar name) and it's been handy to be able to simply install it globally using the same package manager that I'm used to. I think it would help adoption as well.
Let me know what you think.

Note, if you like the idea, you can feel free to publish it yourself :+1: I just want to get it up there. I don't really care how.

Hey Kent, feel free to publish it on npm :+1:

Almost got it. I think for this first version I'll only be able to distribute the Mac version... I'm not sure how to have multiple binaries that are platform dependant and the docs don't mention anything...

@kentcdodds each release I've been throwing up a binary on a VPS I've got. Usually I do 64bit OS X, Linux, and Windows builds. There have some pretty major improvements since 0.8.2. Once @cburgdorf puts out a new release I'll rebuild all three binaries and throw them up there. Feel free to grab them!
The binaries are located at: http://wod.twentyfives.net/bin/clog/

Is there any way I can subscribe to new versions so I know when to update the npm module?

At present, the best way would be to "watch" this repo for new releases. But admittedly that comes with some extra noise because you'd get updates on everything that happens to this repo.
I don't see why we couldn't set up some sort of RSS type feed for new releases and news? (cc @cburgdorf  @PascalPrecht )

I think GitHub already provides such a feature. How's that related to npm?
On Aug 7, 2015 2:51 PM, "Kevin K."<EMAIL_ADDRESS>wrote:

At present, the best way would be to "watch" this repo for new releases.
But admittedly that comes with some extra noise because you'd get updates
on everything that happens to this repo.
I don't see why we couldn't set up some sort of RSS type feed for new
releases and news? (cc @cburgdorf https://github.com/cburgdorf
@PascalPrecht https://github.com/PascalPrecht )
—
Reply to this email directly or view it on GitHub
https://github.com/clog-tool/clog/issues/71#issuecomment-128692148.

Oh really? I'll look into that.
Alrighty, npm-clog is a thing (can you believe clog was taken 😿).
~/Developer/clog (master)
👾  $ npm install -g npm-clog
/usr/local/bin/clog -> /usr/local/lib/node_modules/npm-clog/lib/clog
<EMAIL_ADDRESS>/usr/local/lib/node_modules/npm-clog
~/Developer/clog (master)
👾  $ clog --help
clog v0.7.0
a conventional changelog for the rest of us

USAGE:
	clog [FLAGS] [OPTIONS]

FLAGS:
        --from-latest-tag    use latest tag as start (instead of --from)
    -h, --help               Prints help information
        --major              Increment major version by one (Sets minor and patch to 0)
        --minor              Increment minor version by one (Sets patch to 0)
        --patch              Increment patch version by one
    -v, --version            Prints version information

OPTIONS:
        --from <from>                    e.g. 12a8546
    -o, --outfile <outfile>              Where to write the changelog (Defaults to 'changelog.md')
    -r, --repository <repository>        e.g. https://github.com/thoughtram/clog
        --link-style <style>             The style of repository link to generate, defaults to github [values: Github, Gitlab, Stash]
        --subtitle <subtitle>            e.g. crazy-release-title
        --to <to>                        e.g. 8057684 (Defaults to HEAD when omitted)
        --setversion <ver>               e.g. 1.0.1
~/Developer/clog (master)
👾  $ which clog
/usr/local/bin/clog

And of course, the changelog is clogged :-) https://github.com/kentcdodds/npm-clog/blob/master/CHANGELOG.md

haha, super cool :+1:

@kentcdodds thanks kent! Hey can we maybe at least publish it as clog-cli ?

Good idea! I'll deprecate the other one and republish!
FYI, using blogtrottr to subscribe to the rss feed

Thanks Kent! :heart:

:hand: high five!
~/Developer/clog (master)
⛄  $ npm publish
+<EMAIL_ADDRESS>~/Developer/clog (master)
⛄  $ npm deprecate npm-clog 'Name changed to clog-cli'
~/Developer/clog (master)
⛄  $ npm install npm-clog
npm WARN deprecated<EMAIL_ADDRESS>Name changed to clog-cli
<EMAIL_ADDRESS>node_modules/npm-clog
~/Developer/clog (master)
⛄  $ ..
~/Developer
⛄  $ npm uninstall -g npm-clog
unbuild<EMAIL_ADDRESS>~/Developer
⛄  $ npm install -g clog-cli
/usr/local/bin/clog -> /usr/local/lib/node_modules/clog-cli/lib/clog
<EMAIL_ADDRESS>/usr/local/lib/node_modules/clog-cli
~/Developer
⛄  $ clog --help
clog v0.7.0
a conventional changelog for the rest of us

USAGE:
	clog [FLAGS] [OPTIONS]

FLAGS:
        --from-latest-tag    use latest tag as start (instead of --from)
    -h, --help               Prints help information
        --major              Increment major version by one (Sets minor and patch to 0)
        --minor              Increment minor version by one (Sets patch to 0)
        --patch              Increment patch version by one
    -v, --version            Prints version information

OPTIONS:
        --from <from>                    e.g. 12a8546
    -o, --outfile <outfile>              Where to write the changelog (Defaults to 'changelog.md')
    -r, --repository <repository>        e.g. https://github.com/thoughtram/clog
        --link-style <style>             The style of repository link to generate, defaults to github [values: Github, Gitlab, Stash]
        --subtitle <subtitle>            e.g. crazy-release-title
        --to <to>                        e.g. 8057684 (Defaults to HEAD when omitted)
        --setversion <ver>               e.g. 1.0.1

Going to wait a few hours before tweeting this so the west coast can wake up and smell the clog :-)

Feel free to share it! We do work on a nice website and make an official 1.0 announcement in a couple of day tho :)


Turn anatole theme into a hugo module

This PR turns the theme into a hugo module.
With gitand go installed, making use of the anatole theme is now as easy as:
hugo new site my_site
cd mysite
echo 'theme = "github.com/lxndrblz/anatole"' >> config.toml
hugo server

Copying/cloning the theme in the themes folder is still possible of course.
If desired, I can extend the Quickstart section in README.md, explaining how to make use of the theme as module.

@deining Thanks for the PR.
Would you mind adding a brief explanation to the QuickStart section of the Readme?

Would you mind adding a brief explanation to the QuickStart section of the Readme?

I just added a commit that adds documentation on how to use the theme as module.
Please let me know if you like it. I proposed using modules as recommended approach, but I'm certainly biased here.

@deining Thanks so much for your PR. Everything works as expected and it is good to have an alternative approach in addition to the current way of adding the theme.

Glad to hear that.

Personally, I am a bit torn, whether we should add the new way really as Route 1 in the readme, as most users might not have go installed but simply rely on the executable for creating and building the site. Therefore, I would probably flip route 1 and 2 as this still seems to be the prevalent approach in the community. What do you think?

I intentionally put the hugo approach in first place. Having worked with modules for a while now, I think they are superior to git submodules. Admittedly, the difference is not that big, handling themes the traditional way is certainly a reasonable approach. You may read this blog post, I fully agree with what is stated there. Also, I see that hugo maintainers clearly go for the module approach (see Ananke theme, DocuApi theme, ...). Please also note that official hugo docs dropped section on Installing and using themes in favour of a section on  Hugo modules. And yes, your are certainly right, route 2 is currently the prevalent approach in the community.  If you decide to flip route 1 and route 2, we will do that. Let me know what you flip route 1 and route 2 and if so, if you want me to do it or do it by yourself. In any case, in go.mod, we should set minimum go version to 1.12 (it's 1.17 right now).
Thanks for reviewing and accepting my PR (with whatever route order, it's up to you).

@deining Thanks for the links. After reading through and reviewing them, I agree that the go based approach should be the preferred way forward.

@deining Thanks for the links. After reading through and reviewing them, I agree that the go based approach should be the preferred way forward.

Great!
I set the minimum version in both go.mod files to 1.12. Any further issues that should be adressed? From my point of view, my PR is ready for merging now.


[Docs] Document best practices in WIki

Some things to cover:
Rx:

Naming conventions for Rx streams (discussion in #82).
When to use LiveData vs. Rx streams.
When to subscribe vs. transform streams.

Let's track other ideas here.
Misc:

google-java-format for code formatting.
Reference to architecture docs (#87).
Emphasize key arch. tenets:

No business logic in views (Fragments, Activities)
No references from ViewModel to View, one ViewModel for each view plus shared ones.
Inject deps, don't new

GitHub:

PR workflow, assignees, approvers, etc.
Always tag issue numbers in PRs
Issues: naming convention, labels, Alpha milestone, etc.
Stacked PRs - how to do this with forks? (Q: do forked repos keep PR history after being deleted?)
Use your real email in commits if possible

@scolsen FYI

I've added https://github.com/google/ground-android/wiki/RxJava-Best-Practices as a start!
Since the wiki is more or less open we'll have to request reviews explicitly...I'll look into seeing whether there's a setup we can use that instead incorporates reviews into the wiki submission/editing process.

Great work! Hope you don't mind a added some more content:
https://github.com/google/ground-android/wiki/RxJava-Best-Practices


npm static error

There seems to be a problem with npm start with static not working. If this is a Statinamic issue, please recreate the issue on it's repository or refer this one.
throw new Error("webpack build failed with errors");

@MoOx any ideas?

I know exactly what this is. Currently the boilerplate contains eslint-loader but no eslint config.
So 2 solutions:

http://moox.io/statinamic/docs/advanced/good-practises/#linting
or grab some pieces at least this https://github.com/MoOx/eslint-config-i-am-meticulous/blob/master/index.js#L6-L16

{
  "eslintConfig": {
    "parser": "babel-eslint",

    "ecmaFeatures": {
      "modules": true,
      "experimentalObjectRestSpread": true,
    },
    "env": {
      "node": true,
      "browser": true,
      "es6": true,
    },
  }
}

Renaming the issue according to this.
I will create a minimal eslint preset and explain why this is useful even if you don't link (at least it check the syntax).

https://github.com/MoOx/statinamic/issues/72

I see, will fix soon!


Is nextra bundling external remark plugins into the client bundle?

I have a theme.config.js that looks like this (I'm using nextra-theme-docs@2.0.1):
import { remarkCodeHike } from "@code-hike/mdx"
import theme from "shiki/themes/nord.json"

export default {
  logo: My Nextra Documentation,
  project: {
    link: "https://github.com/shuding/nextra",
  },
  remarkPlugins: [[remarkCodeHike, { theme }]],
}

And I get this error Module not found: Can't resolve 'fs', which usually happens when someone tries to bundle @code-hike/mdx with a web target.
Is that the case here?

you are wrong, remarkPlugins should be set inside next.config.js not inside theme.config.js


Use clean-css instead of CSSO

merged in https://github.com/bem/bem-tools/commit/e684940e4fa46da139039922dd97e0bbb18bdb15


Create WSGI packages for RPM and Deb based distributions

Since we already have "cgi" packages ready for installation, I am going to add "wsgi" at some point.

Any update on this one?

This is also done.


Hi Alexandra,

can you give a short explanation or example what you are meaning?

Sure :)
The implementation of the rtp node-type still uses the old/legacy C-API:
https://github.com/VILLASframework/node/blob/master/lib/nodes/rtp.cpp
And example for an already to C++ ported node-type is the exec node-type:
https://github.com/VILLASframework/node/blob/master/lib/nodes/exec.cpp
In the new C++ API, every node-type is a sub-class of villas::node::Node.


[Test] screenshot

JaCoCo Code Coverage 76.92% :white_check_mark:

Class
Covered
Meta
Status

  Generated by :no_entry_sign: Danger


Support for Beta layout of the site

In account settings, the layout of the site can be changed from classic to beta. Beta seems to have some great enhancements, but it seems that the FAExtender download button doesn't work on it. I'd love it if that got fixed.
PS: Thanks so much for the recent fix for the new version of Firefox!

FAE traditionally does not support the FA beta site due to manually having to inject itself into the page. Beta can change at any time and would require a lot of upkeep. Pull requests are welcome, however.


Updating fabric.js to the latest version

The fabric included is a really old version (one of the first few releases) and has since then been actively updated. Should look into updating to see if it offers new functionality / performance enhancement because the rendering currently seems quite slow.

put at the same time as #120 accidentally


[BUG]Build Failure in Microsoft.Azure.Management.Consumption.Tests

Describe the bug
Missing or incomplete types
Exception or Stack Trace
ScenarioTests\BudgetTests.cs(39,38): error CS1929: 'IBudgetsOperations' does not contain a definition for 'CreateOrUpdate' and the best extension method overload 'PolicyDefinitionsOperationsExtensions.
CreateOrUpdate(IPolicyDefinitionsOperations, string, PolicyDefinition)' requires a receiver of type 'IPolicyDefinitionsOperations' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.C
onsumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\MarketplaceTests.cs(31,40): error CS1929: 'IMarketplacesOperations' does not contain a definition for 'List' and the best extension method overload 'BudgetsOperationsExtensions.List(IBudg
etsOperations, string)' requires a receiver of type 'IBudgetsOperations' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Consumption.Te
sts.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(30,30): error CS1929: 'IUsageDetailsOperations' does not contain a definition for 'List' and the best extension method overload 'ProvidersOperationsExtensions.L
ist(IProvidersOperations, int?)' requires a receiver of type 'IProvidersOperations' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Con
sumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(60,17): error CS1929: 'IBudgetsOperations' does not contain a definition for 'Delete' and the best extension method overload 'PolicyDefinitionsOperationsExtensions.Delete(I
PolicyDefinitionsOperations, string)' requires a receiver of type 'IPolicyDefinitionsOperations' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.M
anagement.Consumption.Tests.csproj]
ScenarioTests\MarketplaceTests.cs(50,75): error CS1061: 'IMarketplacesOperations' does not contain a definition for 'ListByBillingPeriod' and no accessible extension method 'ListByBillingPeriod' accept
ing a first argument of type 'IMarketplacesOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.
Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(73,30): error CS1929: 'IBudgetsOperations' does not contain a definition for 'Get' and the best extension method overload 'PriceSheetOperationsExtensions.Get(IPriceSheetOpe
rations, string, string, int?)' requires a receiver of type 'IPriceSheetOperations' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Con
sumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(51,65): error CS7036: There is no argument given that corresponds to the required formal parameter 'scope' of 'UsageDetailsOperationsExtensions.List(IUsageDetai
lsOperations, string, string, string, string, int?, string)' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\MarketplaceTests.cs(69,75): error CS1061: 'IMarketplacesOperations' does not contain a definition for 'ListByBillingPeriodNext' and no accessible extension method 'ListByBillingPeriodNext
' accepting a first argument of type 'IMarketplacesOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Man
agement.Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(70,65): error CS1061: 'IUsageDetailsOperations' does not contain a definition for 'ListByBillingPeriod' and no accessible extension method 'ListByBillingPeriod'
 accepting a first argument of type 'IUsageDetailsOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Mana
gement.Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(88,31): error CS1929: 'IBudgetsOperations' does not contain a definition for 'List' and the best extension method overload 'ForecastsOperationsExtensions.List(IForecastsOpe
rations, ODataQuery<Forecast>)' requires a receiver of type 'IForecastsOperations' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Cons
umption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(86,65): error CS7036: There is no argument given that corresponds to the required formal parameter 'scope' of 'UsageDetailsOperationsExtensions.List(IUsageDetai
lsOperations, string, string, string, string, int?, string)' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(116,68): error CS1061: 'IBudgetsOperations' does not contain a definition for 'CreateOrUpdateByResourceGroupName' and no accessible extension method 'CreateOrUpdateByResour
ceGroupName' accepting a first argument of type 'IBudgetsOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azu
re.Management.Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(137,47): error CS1061: 'IBudgetsOperations' does not contain a definition for 'DeleteByResourceGroupName' and no accessible extension method 'DeleteByResourceGroupName' acc
epting a first argument of type 'IBudgetsOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Co
nsumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(150,60): error CS1061: 'IBudgetsOperations' does not contain a definition for 'GetByResourceGroupName' and no accessible extension method 'GetByResourceGroupName' accepting
 a first argument of type 'IBudgetsOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumpt
ion\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\BudgetTests.cs(165,61): error CS1061: 'IBudgetsOperations' does not contain a definition for 'ListByResourceGroupName' and no accessible extension method 'ListByResourceGroupName' accepti
ng a first argument of type 'IBudgetsOperations' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consum
ption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(108,65): error CS7036: There is no argument given that corresponds to the required formal parameter 'scope' of 'UsageDetailsOperationsExtensions.List(IUsageDeta
ilsOperations, string, string, string, string, int?, string)' [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(132,33): error CS1061: 'UsageDetail' does not contain a definition for 'InstanceId' and no accessible extension method 'InstanceId' accepting a first argument o
f type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.
Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(133,33): error CS1061: 'UsageDetail' does not contain a definition for 'InstanceName' and no accessible extension method 'InstanceName' accepting a first argume
nt of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Az
ure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(134,33): error CS1061: 'UsageDetail' does not contain a definition for 'InstanceLocation' and no accessible extension method 'InstanceLocation' accepting a firs
t argument of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Micr
osoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(137,33): error CS1061: 'UsageDetail' does not contain a definition for 'BillingPeriodId' and no accessible extension method 'BillingPeriodId' accepting a first
argument of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Micros
oft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(138,33): error CS1061: 'UsageDetail' does not contain a definition for 'Currency' and no accessible extension method 'Currency' accepting a first argument of ty
pe 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Mana
gement.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(139,30): error CS1061: 'UsageDetail' does not contain a definition for 'UsageStart' and no accessible extension method 'UsageStart' accepting a first argument o
f type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.
Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(139,54): error CS1061: 'UsageDetail' does not contain a definition for 'UsageEnd' and no accessible extension method 'UsageEnd' accepting a first argument of ty
pe 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Mana
gement.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(141,33): error CS1061: 'UsageDetail' does not contain a definition for 'IsEstimated' and no accessible extension method 'IsEstimated' accepting a first argument
 of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azur
e.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(142,30): error CS1061: 'UsageDetail' does not contain a definition for 'PretaxCost' and no accessible extension method 'PretaxCost' accepting a first argument o
f type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.
Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(147,82): error CS1061: 'UsageDetail' does not contain a definition for 'BillingPeriodId' and no accessible extension method 'BillingPeriodId' accepting a first
argument of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Micros
oft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(151,37): error CS1061: 'UsageDetail' does not contain a definition for 'BillingPeriodId' and no accessible extension method 'BillingPeriodId' accepting a first
argument of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Micros
oft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(156,34): error CS1061: 'UsageDetail' does not contain a definition for 'UsageStart' and no accessible extension method 'UsageStart' accepting a first argument o
f type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.
Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(157,34): error CS1061: 'UsageDetail' does not contain a definition for 'UsageEnd' and no accessible extension method 'UsageEnd' accepting a first argument of ty
pe 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Azure.Mana
gement.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(165,50): error CS1061: 'MeterDetailsResponse' does not contain a definition for 'Unit' and no accessible extension method 'Unit' accepting a first argument of t
ype 'MeterDetailsResponse' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.
Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(175,34): error CS1061: 'UsageDetail' does not contain a definition for 'AdditionalProperties' and no accessible extension method 'AdditionalProperties' acceptin
g a first argument of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\te
sts\Microsoft.Azure.Management.Consumption.Tests.csproj]
ScenarioTests\SubscriptionUsagesTests.cs(180,49): error CS1061: 'UsageDetail' does not contain a definition for 'InstanceName' and no accessible extension method 'InstanceName' accepting a first argume
nt of type 'UsageDetail' could be found (are you missing a using directive or an assembly reference?) [C:\Git\azure-sdk-for-net\sdk\consumption\Microsoft.Azure.Management.Consumption\tests\Microsoft.Az
ure.Management.Consumption.Tests.csproj]

To Reproduce
Remove <ExcludeFromBuild>true</ExcludeFromBuild> and
<ExcludeFromTest>true</ExcludeFromTest> from Microsoft.Azure.Management.Consumption.Tests
Attempt build using msbuild build.proj /t:Runtests /p:Scope=consumption -v:m
Expected behavior
Build Fails

Build was failing before repo restructure.

Given the age of this issue and the deprecation of most of the track one libraries, closing this as stale.  If the build is still failing, please file a new issue.


Fixed Refunds in Total Sales Calculation

Questions
Answers

Description?
Fixed Refunds in Total Sales Calculation

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?
Fixes https://github.com/PrestaShop/PrestaShop/issues/16770

How to test?
Cf https://github.com/PrestaShop/PrestaShop/issues/16770#issuecomment-564550504 from @khouloudbelguith

@PrestaShop/prestashop-core-developers Ready to review !
Pass on PHPStan which is red because the fix on develop is here : PrestaShop/PrestaShop#20951

Hello @Progi1984 ,
Could you resolve the issues on the branch in order to test it?
Thank you

@ngodefroy Which issues ?

@ngodefroy Which issues ?

It says merging is blocked:
PHP tests / PHPStan (latest) (pull_request) Failing after 1m — PHPStan (latest)

@ngodefroy It's normal :

@PrestaShop/prestashop-core-developers Ready to review !
Pass on PHPStan which is red because the fix on develop is here : PrestaShop/PrestaShop#20951

Hello @Progi1984
What I tested:
Made orders
Added refund
check the result in dashboard and sales statistics.
The result in dashboard seem correct:

compared to before:

However, I could not see the impact on sales part:

As before:
Hello @Progi1984
What I tested:
Made orders
Added refund
check the result in dashboard and sales statistics.
The result in dashboard seem correct:

compared to before:

However, I could not see the impact on sales part:
As before:
Hello @Progi1984
What I tested:
Made orders
Added refund
check the result in dashboard and sales statistics.
The result in dashboard seem correct:

compared to before:

However, I could not see the impact on sales part:
As before:
Thank you

Hi @Progi1984 i update all statsxxx modules with the good column, can i copy past your code for refund ?

@okom3pom I wait for @PrestaShop/product-team for spécifications

Ok i wait also :)
For me it's logic to deduct the refunds

@Progi1984 I answered in the issue, let me know if you have other questions

@marionf Thanks.
@PrestaShop/qa-team It seems that the fix is good on this PR. I need to fix it on statssales


How to set temperature and language parameters for OpenAI.Audio Audio Translation Request()?

Hi! I am testing the whisper model and when I request audio transcription, I want to add temperature and language parameters. I can add temperature but it is set to integer and it has to float as far as I know from this doc; API reference page, I want to set it low like 0.1f to avoid hallucinations.
As for the language, I want to set it to English to improve accuracy but I couldn't find it in the parameters of the request function.
How can this issue be resolved?
Thanks in advance.

Please review the docs in the main readme.
You can add temperature and language when you create the request for the audio transcription.
for example:
var api = new OpenAIClient();
var request = new AudioTranscriptionRequest(audioClip, temperature: 0.1f, language: "en");
var result = await api.AudioEndpoint.CreateTranscriptionAsync(request);
Debug.Log(result);

Yes, I tried that but I get errors like this;
When I write this line: var request = new AudioTranscriptionRequest(audioClip, temperature: 0.1f, language: "en");, get this error; "The best overload for 'AudioTranslationRequest' does not have a parameter named 'language'".
Then when I write the line like this; request = new AudioTranslationRequest(audioClip, temperature: 0.1f);, get this erors;
"Argument 1: cannot convert from 'UnityEngine.AudioClip' to 'string'" this for the audioClip,
and this for the temperature; " Argument 2: cannot convert from 'float' to 'int?'"
Btw I use Unity 2021.3.29f1

Ah I see what you mean. The type should be a float? not int?

Thank you for solving this issue. I updated and tried it but I am having issues with nullable float(float?). When I request transcription like this;
float? temperatureValue = 0.1f;
public async void TranscriptAudio(){
      AudioTranscriptionRequest transcriptionRequest = new AudioTranscriptionRequest(
          audioPath,
          model: "whisper-1",
          responseFormat: AudioResponseFormat.Json,
          temperature: temperatureValue,
          language: "en"
      );

      result = await api.AudioEndpoint.CreateTranscriptionAsync(transcriptionRequest);
      canvas.UpdateTranscriptedText(result);
}

I get this error;
[Body]
{
  "error": {
    "message": "1 validation error for Request\nbody -> temperature\n  value is not a valid float (type=type_error.float)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}
[Errors]
HTTP/1.1 400 Bad Request

Even tho I when I write like this  temperature: (float?)0.1f, or this  temperature: 0.1f, I get the same error.
How can I solve this?

you shouldn't need to cast it to (float?)

Some feedback on your code snippet:

be sure to always wrap any async call from a MonoBehaviour in a try/catch
I updated the example to use an audio clip, since the asset will already be loaded into memory and much easier to use
I added a transcription callback for you to make it easier to signal the canvas to update its text, although tbh you should just have a direct serialized reference to the text component and use that instead.

using OpenAI;
using OpenAI.Audio;
using System;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour
{
    [SerializeField]
    private float temperature = 0.1f;

    private OpenAIClient api;

    private void Awake()
    {
        api = new OpenAIClient();
    }

    public async void TranscriptAudioAsync(AudioClip clip, Action<string> transcriptionCallback = null)
    {
        try
        {
            AudioTranscriptionRequest transcriptionRequest = new AudioTranscriptionRequest(
                clip,
                responseFormat: AudioResponseFormat.Json,
            temperature: temperature,
            language: "en");

            var result = await api.AudioEndpoint.CreateTranscriptionAsync(transcriptionRequest);
            transcriptionCallback?.Invoke(result);
            // canvas.UpdateTranscriptedText(result);
        }
        catch (Exception e)
        {
            Debug.LogError(e);
        }
    }
}

Thank you very much for your advice, I will try to implement them. There is a lot I don't know since I'm new to this field.
I tried as you wrote, but unfortunately, I'm still getting the same error. Whether I write it as a float or as a nullable float, I'm still encountering the same error. However, I didn't get this error when I wrote 'null'.


Intero falls over for silly project structure.

I have two packages I'm working on, and have them as subfolders of a project that acts as the playground, exercise area for both.
E.g.
Playground
|-- PkgA
'-- PkgB

Playground simply includes src, PkgA/src and PkgB/src. However both packages sport their own stack.yaml. Editing a file in either Pkg, results in intero trying to start a session for that package. In this case PkgB depends on PkgA and intero topples over with ghci trying, but failing to locate PkgA, when editing a file in PkgB.

If they use eachother, why do you have two separate stack.yaml files?

I've also encountered this situation.  One case where it occurs is if you have a submodule which contains a stack.yaml.  The resolution doesn't seem clear, though.  One option is to instead default to the outermost stack.yaml, but this is inconsistent with the normal CLI behavior.  Perhaps the circumstance where there are multiple stack.yaml files in parent directories should be pointed out to the user, and they can select?

As @mgsloan it also happens if you have submodules that happen to have stack.yaml files.
My current solution is to look for all **/stack.yaml and rename them to stack.yaml.bck.
That is a bit annoying but works for now.

We could provide a M-x intero-root or M-x intero-stack-yaml command which presents a choice of the detected .yaml files. When running any stack command, it will pass --stack-yaml (or w/e it was) to the executable, or set it as an environment variable in local buffers. Then some message could say "Use M-x intero-root to pick which one."

If we can inhibit intero from trying to start a second session, that would solve all my issues.
E.g. "You already have an intero session running for a project higher up in the hierarchy, however, the file you are editing belongs to project with a separate stack.yaml. Do you want to start a separate intero session? Y/N"

I guess the simples would be: if an intero session is already running in a higher up in the fs hierarchy, do not start a new intero session. If one want's a separate session C-u M-x intero-repl?

I would like something like the intero-root that @chrisdone suggests, or even a intero-stack-yaml-blacklist.
I frequently have the problem that my project has a top level stack.yaml and several submodules that also have stack.yaml, and Intero tries to use the submodule stack.yamls when I edit submodule files. What I want is for Intero to only use the top level stack.yaml. My usual work around is to delete the submodule stack.yaml files and try to remember not to commit those deletions, but this is an annoying workaround because it produces a lot of git status noise.
Suggestion: change the title of this issue to something more descriptive, e.g. "Intero doesn't work well for projects with multiple stack.yaml files".


Remove the codecov badge, we're not using codecov anymore

Refs #1542

I think it would be better to replace the coverage badge with another one related to GitHub action instead of simply remove it.

I don't think that's easily possible without e.g. committing the resulting coverage to the repository.
Something like https://pypi.org/project/coverage-badge/ or https://shields.io/category/coverage could probably be used to generate the badge, but we'd need to store the percentage somewhere.

We have htmlcov in artifacts don't we already store the coverage percentage anywhere with GitHub Actions?

I'm going to give this a try: https://dev.to/thejaredwilcurt/coverage-badge-with-github-actions-finally-59fa

Never mind. I don't have access to the repo settings. Do you @matthiask?

We have htmlcov in artifacts don't we already store the coverage percentage anywhere with GitHub Actions?

Nope, the change uploads the report as an artifact, but I don't think the percentage isn't stored. I suppose we could use the failure threshold in the badge.

Welp I messed that up. I intended for it to be a suggestion not an actual commit.

Never mind. I don't have access to the repo settings. Do you @matthiask?

No. I think that's roadies-only territory.

I've been thinking about this for a bit. What purpose does showing the coverage in a badge serve? I don't think it's very useful. Code coverage is at best an approximation of the quality of a testsuite. It tests that the code doesn't crash right away, but that's basically all it proves. Correctness isn't required. So, it may be useful when writing new tests but I don't think it's a badge of honor to be worn proudly. I think we don't lose anything when we get rid of it.

I don't feel strongly one way or the other here. I'm content to remove it. Before we do though, here's a benefit of the coverage badge that you didn't explicitly mention. Having the coverage percentage listed on the README, along with a passing tests badge increases the project's trustworthiness for being well maintained. That can improve a developer's confidence that this project is something that can be integrated and will make them more likely to use it.

I agree with @tim-schilling and I approved the change.

Re showing that the project is well maintained: Yes, that's a good point. I more often look at the timeline of recent commits and the CI jobs list to determine this, but the coverage may be telling.


Same consequences

https://github.com/yang-song/score_sde/blob/0aef9f6421138be001e8766d1506d0eae76586c8/models/ddpm.py#L70
The consequences below are the same if this evaluate to True or False. Is that correct?

Thanks for catching this! Will upload a fixed version soon.

The issue has been fixed


Allow to set custom annotations on pod level

Hi @djablonski-moia. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@googlebot I signed it!

@djablonski-moia: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

lint_cni
4ee6f26882398f76f798446249ef99677dacb515
link
/test lint_cni

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

The lint_cni test failed because the new parameter must be defined in values.yaml and values_gke.yaml, as I commented above. This is not optional.

Thanks for the feedback @rlenglet!
I adopted the PR according to your requested changes. Please let me know if there are other improvements to be made.

/retest

PR for docs created: https://github.com/istio/istio.io/pull/5257

/cherry-pick release-1.4

@rlenglet: new pull request created: #215

In response to this:

/cherry-pick release-1.4

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


IntelliJ plugin tooling

First, a few things...

[ ] Is your feature request related to a problem?
[x] Will this feature just help you or is it something everyone needs?
[ ] Have you tried to implement or draft this feature?
[ ] Is your feature a breaking change?

😄 Describe the solution you'd like
Create an inventory preview right in the IntelliJ IDE

CARALHO


My files are in root, It does not work at all for me.

Can you share your settings and directory structure?


Unnecessary Encoding of percent sign

If I'm already encoding the URL with % signs, I dont know why the system reecondes the % with %25
I need to "preencode" because google play only admits preencoded referrer tag
For example:
https://play.google.com/store/apps/details?id=com.twitter&referrer=utm_source%3Dtwitter%26utm_medium%3Dsocialmedia%26utm_campaign%3Dtwittercampaign
The first part of the URL
https://play.google.com/store/apps/details?id=com.twitter&referrer=
Has to be not encoded
But from that point:
utm_source%3Dtwitter%26utm_medium%3Dsocialmedia%26utm_campaign%3Dtwittercampaign
Has to be preencoded
The output of yourls:
https://play.google.com/store/apps/details?id=com.twitter&referrer=utm_source%253Dtwitter%2526utm_medium%253Dsocialmedia%2526utm_campaign%253Dtwittercampaign
It double encodes the % simbols with %25 unnecessarily.

Ref: #1303

I'm trying https://github.com/adigitalife/yourls-fix-long-url to solve this
Lets see if I resolve it

Impossible. I've tried that plugin and it does not work neither. This functionality looks broken

Closing: 2691 and associated PR will supersede


Use normal Logger rather than AsyncLogger for pinot-admin's console log

I tried some pinot-admin subcommands and noticed that it sometimes exited before the error messages were displayed.
I think it misleads users and makes difficult for them to understand what's happened.
# With AsyncLogger
~/repos/incubator-pinot/pinot-distribution/target/apache-pinot-incubating-0.2.0-SNAPSHOT-bin/apache-pinot-incubating-0.2.0-SNAPSHOT-bin$ JAVA_OPTS="-Dpinot.admin.system.exit=true" bin/pinot-admin.sh GenerateData
~/repos/incubator-pinot/pinot-distribution/target/apache-pinot-incubating-0.2.0-SNAPSHOT-bin/apache-pinot-incubating-0.2.0-SNAPSHOT-bin$ echo $?
1

# With Logger
~/repos/incubator-pinot/pinot-distribution/target/apache-pinot-incubating-0.2.0-SNAPSHOT-bin/apache-pinot-incubating-0.2.0-SNAPSHOT-bin$ JAVA_OPTS="-Dpinot.admin.system.exit=true" bin/pinot-admin.sh GenerateData
08:01:52.904 PinotAdministrator - Error: Option "-numFiles" is required
~/repos/incubator-pinot/pinot-distribution/target/apache-pinot-incubating-0.2.0-SNAPSHOT-bin/apache-pinot-incubating-0.2.0-SNAPSHOT-bin$ echo $?
1

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5b97d06). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #4756   +/-   ##
=========================================
  Coverage          ?   37.94%
=========================================
  Files             ?     1209
  Lines             ?    64933
  Branches          ?     9456
=========================================
  Hits              ?    24642
  Misses            ?    38032
  Partials          ?     2259

Continue to review full report at Codecov.

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

Done in #5126


RFM - HexChat

https://chocolatey.org/packages/hexchat

I would like to become a maintainer. I submitted a request on Chocolatey.
Thanks,

If Jay cannot, I'll take it.

@JayPowerUser we are still waiting on you to tell us your username.

Chocolatey username JayPoweruser. Thanks,

Looks like the latest version was approved a month ago (after the last comment on this issue), as such I'm closing this now.


(10) feat: add custom network settings screen

Acceptance Criteria

feat(wip): add CustomNetworkSettingsScreen
feat: add warning message container
feat: add feedback modals based on network settings status

https://github.com/HathorNetwork/hathor-wallet-mobile/assets/5992210/8f1e09d4-394b-46aa-87d4-9ee75e6c54c8
Security Checklist

[ ] Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

There is a new video to illustrate the change.

Rebased to resolve conflicts.


Can't pip install mediapipe-model-maker

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
macos sonoma
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
python 3.10
MediaPipe version
No response
Bazel version
No response
Solution
mediapipe-model-maker
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
pip failes due to conflit
Describe the expected behaviour
for it to work...
Standalone code/steps you may have used to try to get what you need
1) tried https://github.com/tensorflow/tensorflow/issues/61719 - no good
2) tried python 3.8 - 3.11 all faid

Other info / Complete Logs
ERROR: Cannot install mediapipe-model-maker==<IP_ADDRESS>, mediapipe-model-maker==<IP_ADDRESS> and mediapipe-model-maker==<IP_ADDRESS> because these package versions have conflicting dependencies.

The conflict is caused by:
    mediapipe-model-maker <IP_ADDRESS> depends on mediapipe==<IP_ADDRESS>
    mediapipe-model-maker <IP_ADDRESS> depends on mediapipe==<IP_ADDRESS>
    mediapipe-model-maker <IP_ADDRESS> depends on mediapipe==<IP_ADDRESS>

Hi @tomershukhman,
Unfortunately, you won't be able to install the latest version of MediaPipe model maker (<IP_ADDRESS>) because tensorflow-text stopped supporting Windows, Aarch64, and Apple Macs since version 2.11 (refer to https://github.com/tensorflow/text/issues/1140 and https://github.com/tensorflow/text#a-note-about-different-operating-system-packages).
To install the latest version, you can try building the tensorflow-text package from their Github if you are using Windows. If you are not using the text_classifier task in Model Maker (which requires tensorflow-text), you can attempt to install it using pip with the "--no-deps" parameter. You would need to install each requirement independently, excluding tensorflow-text. Note that this is a workaround suggested by a user here: https://github.com/tensorflow/text/issues/1206.
Alternatively, you can consider using Windows Subsystem for Linux (WSL) or the Colab cloud environment to install these packages in a Linux environment.
Thank you!!

Hi @tomershukhman,
Unfortunately, you won't be able to install the latest version of MediaPipe model maker (<IP_ADDRESS>) because tensorflow-text stopped supporting Windows, Aarch64, and Apple Macs since version 2.11 (refer to https://github.com/tensorflow/text/issues/1140 and https://github.com/tensorflow/text#a-note-about-different-operating-system-packages).
To install the latest version, you can try building the tensorflow-text package from their Github if you are using Apple macOS. If you are not using the text_classifier task in Model Maker (which requires tensorflow-text), you can attempt to install it using pip with the "--no-deps" parameter. You would need to install each requirement independently, excluding tensorflow-text. Note that this is a workaround suggested by a user here: https://github.com/tensorflow/text/issues/1206.
Alternatively, you can consider using Colab cloud environment to install these packages in a Linux environment.
Thank you!!

Only way I was able to make it work, it was through using python 3.9.16, with this command : pip install "pyyaml>6.0.0" "keras<3.0.0" "tensorflow<2.16" "tf-models-official<2.16" mediapipe-model-maker --no-deps
The list of packages featured in my pip freeze is :
  click to expand
absl-py==1.4.0
array-record==0.4.1
astunparse==1.6.3
attrs==24.2.0
bleach==6.1.0
cachetools==5.5.0
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
contourpy==1.3.0
cycler==0.12.1
Cython==3.0.11
distlib==0.3.6
dm-tree==0.1.8
etils==1.5.2
flatbuffers==24.3.25
fonttools==4.53.1
fsspec==2024.9.0
gast==0.6.0
gin-config==0.5.0
google-api-core==2.19.2
google-api-python-client==2.144.0
google-auth==2.34.0
google-auth-httplib2==0.2.0
google-pasta==0.2.0
googleapis-common-protos==1.65.0
grpcio==1.66.1
h5py==3.11.0
httplib2==0.22.0
idna==3.8
immutabledict==4.2.0
importlib_metadata==8.4.0
importlib_resources==6.4.4
jax==0.4.30
jaxlib==0.4.30
joblib==1.4.2
kaggle==1.6.17
keras==2.15.0
kiwisolver==1.4.7
libclang==18.1.1
lxml==5.3.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.2
mdurl==0.1.2
mediapipe==0.10.15
mediapipe-model-maker==<IP_ADDRESS>
ml-dtypes==0.4.0
namex==0.0.8
numpy==1.26.4
oauth2client==4.1.3
opencv-contrib-python==<IP_ADDRESS>
opencv-python==<IP_ADDRESS>
opencv-python-headless==<IP_ADDRESS>
opt-einsum==3.3.0
optree==0.12.1
packaging==24.1
pandas==2.2.2
pillow==10.4.0
portalocker==2.10.1
promise==2.3
proto-plus==1.24.0
protobuf==4.25.4
psutil==6.0.0
py-cpuinfo==9.0.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycocotools==2.0.8
pycparser==2.22
Pygments==2.18.0
pyparsing==3.1.4
python-dateutil==2.9.0.post0
python-slugify==8.0.4
pytz==2024.1
PyYAML==6.0.2
regex==2024.7.24
requests==2.32.3
rich==13.8.0
rsa==4.9
sacrebleu==2.4.3
scikit-learn==1.5.1
scipy==1.13.1
sentencepiece==0.2.0
seqeval==1.2.2
six==1.16.0
sounddevice==0.5.0
tabulate==0.9.0
tensorboard==2.17.1
tensorboard-data-server==0.7.2
tensorflow==2.15.1
tensorflow-addons==0.23.0
tensorflow-datasets==4.9.3
tensorflow-hub==0.16.1
tensorflow-io-gcs-filesystem==0.37.1
tensorflow-metadata==1.13.1
tensorflow-model-optimization==0.8.0
tensorflow-text==2.17.0
termcolor==2.4.0
text-unidecode==1.3
tf-models-official==2.15.0
tf-slim==1.1.0
tf_keras==2.17.0
threadpoolctl==3.5.0
toml==0.10.2
tqdm==4.66.5
typeguard==2.13.3
typing_extensions==4.12.2
tzdata==2024.1
uritemplate==4.1.1
urllib3==2.2.2
virtualenv==20.19.0
webencodings==0.5.1
Werkzeug==3.0.4
wrapt==1.16.0
zipp==3.20.1

Only way I was able to make it work, it was through using python 3.9.16, with this command : pip install "pyyaml>6.0.0" "keras<3.0.0" "tensorflow<2.16" "tf-models-official<2.16" mediapipe-model-maker --no-deps The list of packages featured in my pip freeze is :
click to expand

This worked for me. Thank you so much @olimagsax


Weed Crop Image Classification

Pull Request for DL-Simplified 💡
Issue Title :

Info about the related issue (Aim of the project) : The aim of this project is used to distinguish and detect weed and crops
Name: Aryan Kashyap
GitHub ID: Aryan863
Email ID<EMAIL_ADDRESS>Idenitfy yourself: (Mention in which program you are contributing in. Eg. For a JWOC 2022 participant it's, JWOC Participant) SWOC 24

Closes: Weed Crop Image Classification #249
Describe the add-ons or changes you've made 📃
Created some models for detecting weed and crops with bounding labels
Type of change ☑
What sort of change have you made:

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

How Has This Been Tested? ⚙
Describe how it has been tested
All the models are working and my code does not produce any errors.
Describe how have you verified the changes made
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[ ] I have added things that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

The project folder name should be same as the issue name with no underscore.
@Aryan863

@abhisheks008 . i have updated folder name as directed


[BUG] Google login is broken (Similar to #926)

Describe the bug
Clicking Google login does nothing except the button animation of being clicked
Product Flavor

[x] Managed (https://rxresu.me)
[ ] Self Hosted

To Reproduce

Go to 'rxresu.me and click on login'
Click on 'Google login'
See "login" button being clicked
Nothing happens

Expected behavior

Go to 'rxresu.me and click on login'
Click on 'Google login'
Be logged in and presented with resume selection page

Screenshots

Desktop (please complete the following information):

OS:

 fedora 36

Browser

 firefox 102.0

Additional context

This renders the app completely broken as without having access to the app I cannot USE the app.

The same goes for me in Linux Mint. Firefox as well as Brave.

The login is working now.

not for me, still not working at this current time.

If you're using ad blocker try disabling that.

Same here, doesn't work on Firefox nor Chrome on Windows, no adblocker enabled, tried on incognito windows too. Doesn't work on Android Firefox either.

This is due to me having migrated to the new Google Identity Services API.
Apparently, in predictable Google fashion, they are discontinuing the Sign-In API (https://developers.google.com/identity/sign-in/web) that has worked well for so long, thus also breaking a lot of the plugins built around it. So I went ahead and implemented the new API (https://developers.google.com/identity/gsi/web) but it seems to be causing more problems than intended.
The problem is, I have tried replicating the same on my laptop (on all 3 major browsers) and I didn't have any issues. Will keep trying to recreate the issue or getting some sort of logs which can help me pinpoint where things are going wrong.

Works on Chrome when logged into the browser itself with my Google account.

Fixed in v3.6.0

This is still not working,
Firefox and Firefox nightly, Android

It looks like you're using an older version (looking at the Google button). Could you please verify whether you are indeed on v3.6.0?


Selfhosted Emails with Sendgrid

Describe the bug
E-Mails are not getting sent on self-hosted version with sendgrid
To Reproduce
I am reproducing this when I try to reset my password
Screenshots
This is the docker log from the mail container
Connecting to aspmx.l.google.com [xxxx:xxxx:xxxx:c07::1b]:25 ... failed: Cannot assign requested address H=aspmx.l.google.com [xxxx:xxxx:xxxx:c07::1b] Cannot assign requested address
Additional context
This is my docker-compose.yaml
version: "3.3"
services:
  mail:
    image: bytemark/smtp
    restart: always
    environment:
      MAILER_EMAIL<EMAIL_ADDRESS>      SMTP_HOST_ADDR: smtp.sendgrid.net
      SMTP_HOST_PORT: 587
      SMTP_HOST_SSL_ENABLED: 1
      SMTP_USER_NAME: apikey
      SMTP_USER_PWD: SENDGRID_API_PASSWORD

  plausible_db:
    image: postgres:12
    restart: always
    volumes:
      - db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=postgres

  plausible_events_db:
    image: yandex/clickhouse-server:<IP_ADDRESS>
    restart: always
    volumes:
      - event-data:/var/lib/clickhouse
      - ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
      - ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
    ulimits:
      nofile:
        soft: 262144
        hard: 262144

  plausible:
    image: plausible/analytics:latest
    restart: always
    command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"
    depends_on:
      - plausible_db
      - plausible_events_db
      - mail
    ports:
      - <IP_ADDRESS>:8000:8000
    env_file:
      - plausible-conf.env

volumes:
  db-data:
    driver: local
  event-data:
    driver: local
  geoip:
    driver: local

Unless there is a lack of information in this issue, it seems to me that this issue has nothing to do here as it is not the official Plausible repository, this repository is a simple implementation of a Dockerfile with instructions for deploying Plausible on Dokku.

Unless there is a lack of information in this issue, it seems to me that this issue has nothing to do here as it is not the official Plausible repository, this repository is a simple implementation of a Dockerfile with instructions for deploying Plausible on Dokku.

Sorry, did not recognize it, I will delete it


Upgrade ruby/setup-ruby v1.170.0 -> v1.172.0

This PR contains the following updates:

Package
Type
Update
Change

ruby/setup-ruby
action
minor
v1.170.0 -> v1.172.0

Release Notes

ruby/setup-ruby (ruby/setup-ruby)
v1.172.0: Add jruby-<IP_ADDRESS>,jruby-<IP_ADDRESS>
Compare Source
v1.171.0: Add support for macos-14 GitHub runners
Compare Source
What's Changed

Update url to supported by @LaStrada in https://github.com/ruby/setup-ruby/pull/569
Add support for macos-14 GitHub runners by @ntkme in https://github.com/ruby/setup-ruby/pull/567

New Contributors

@LaStrada made their first contribution in https://github.com/ruby/setup-ruby/pull/569
@ntkme made their first contribution in https://github.com/ruby/setup-ruby/pull/567

Full Changelog: https://github.com/ruby/setup-ruby/compare/v1.170.0...v1.171.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade ruby/setup-ruby v1.170.0 -> v1.172.0


debouncing

WIP. This debounces messages (so you're not constantly distracted by syntax errors while you're mid-word), and the plan is to also debounce imports (so if you type import x from 'some-package-name' you don't end up fetching so and some- and some-pac etc from unpkg.
The goal is the same as #130, but bundling still happens immediately, which is nicer UX.

Implemented the second half by adding an artificial delay to uncached imports. If you start typing
import * as THREE from 'thr'

then by the time 250ms have elapsed, you'll have added the ee, and the initial request will be aborted.


Front-End: proxy calls should be usable for Whisper (-> abstraction)

Compare with #118 and #120

Will add a move function to gamesFactory

API abstraction Implemented in https://github.com/ise-ethereum/web3-shh-dropin-for-proxy


ImageAlpha - No Such File or Directory

Hi,
I found another thread on this which I believe you fixed, but I'm trying to run it form /bin/sh and I'm getting...
Running ImageAlpha...
find: /var/folders/19/bbnc6b751llf_s9j2j09j_400000gp/T//imageoptim-cli/png: No such file or directory
Any ideas? Is it a bug or something I can fix, I was hoping to get applescript to launch it once triggered by hazel to automatically optimise screenshots...

Hi Jamie,
I experienced this issue today.  I did an echo on $TMPDIR and saw that in my shell it ends with a /.  Line 26 in bin/imageOptimBashLib is the culprit.

Thanks @allbitsnbytes :+1:

This should be fixed in<EMAIL_ADDRESS>


The "tqdm==4.47.0" was detected by the Checkmarx's Software Composition Analysis (SCA) tool as "Partial Copyleft".

This issue was resolved with the PR #20.


Add --search-dir DIR option

This is helpful to deal with situations in which the tests don't reside in the same directory as the generated source file.
We can say
-- This is tests/Main.hs
{-# OPTIONS_GHC -F -pgmF tasty-discover -optF --search-dir=../testlib #-}

and collect the tests from a library, for instance.
Another way to achieve this would be to place the generated  file in the library instead, but further constraints prevent this in my use case, which is combining tasty-discover with gazelle_haskell_modules.

+1 this would be helpful for me as well.

In the end, I went with #18 for the needs of my project, but I still offer this PR if others find it useful.

Thanks for the PR!
Sorry for the delay.


Beautify ignite new command

Currently:

It's not bad, but I'd love to continue to make it shine

This article has some nice notes, although we mostly already have most of these principles: https://blog.developer.atlassian.com/10-design-principles-for-delightful-clis/

Enquirer, which is what gluegun uses for prompts, has a lot of nice customization options: https://github.com/enquirer/enquirer

I like the output in this command:
https://twitter.com/samselikoff/status/1566842918941360128

I also really liked the gatsby-cli, it had a lot of style: https://www.gatsbyjs.com/docs/reference/gatsby-cli/

Gant Ideas:

Create an emoji loading bar, where a fuse lights towards a stick of dynamite, that explodes when it is done
Add --party as a flag to add rainbows
Add --america as a flag to add america
Add --nyan to use nyan cat as a loading bar
Add --rocket to use a rocket ship as a loading bar
Show loading messages based on holidays or day of the week

Closed by https://github.com/infinitered/ignite/pull/2119


[camera] Switch to internal method channels

Switches the new mobile camera implementation packages to internal method channels.
Also updates CODEOWNERS for the new mobile implementation paths, which I forgot during federation.
Part of https://github.com/flutter/flutter/issues/94224
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[x] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

This will be easier to review if you filter commits; the first commit just directly copies the relevant files from the platform interface package with no changes, so if you omit that from the range you can see the actual diffs relative to the current shared implementation.


Make sure that our implementation of genesis is compatible with the paper

We are planning to implement Praos+Genesis in a slightly different way than the paper suggests (#219)
We need to verify that if there are independent implementations of genesis (in particular, the Rust one), that these are compatible. If not, we need to document the changes.

Note: probably even not implementing genesis at all would still be compatible with the rest of the system, as far as consensus goes. It merely affects the node's own safety. This seems to suggest that indeed our version of genesis should be compatible with the paper. We should work out the details though.

We are probably not the ones actually implementing the details here. /cc @JaredCorduan .


Create button missing for PVC creation form view screen.

Describe the bug
There is no create/cancel button for PVC creation (form view) under the storage section.
Navigation
Go to Dashboard master-head --> Under Storage section --> Click persistentVolumeClaims --> Click Create

@mantis-toboggan-md Did this somehow accidentally get created cause of something we added for workloads?

There is no actual form for PVC or plans to do for now.

@khushboo-rancher you shouldn't see the form to create a PVC anymore

Verified on master-head - 0390ff5
There is no option to create PVC via form, only create from YAML is available and working fine.


Expose different status codes depending on scanning results

Description
Currently KICS when scanning only reports exit status code 0 when the scan has occurred successfully. This exit status code is linked with the current program execution and not the reporting of results/vulnerabilities.
We should give status code depending on whether results were found or not, and even depending on the severity of results found.
Also, we should output specific status code for when KICS doesn't run successfully (queries didn't load, program aborted earlier, etc.)
First, the a list of status code should be presented, before implementing them.

Reopened as draft in #2726

@kaplanlior @markmishaevcx @nunoocx @ruigomescx
We should discuss here the requirements for this feature.


Add custom properties and measurements to trackDependency() in IAppInsights interface

Hi,
We are using trackDependency() in IAppInsights interface and would like to set custom properties and measurements in the call, but the interface doesn't seem to allow it. Do you know what is the way to accomplish this with IAppInsights?
Thanks

@mizeljko - which SDK version are you using?

We are using applicationinsights-js 1.0.20

hey @mizeljko thanks for pointing this out. Latest typings package should fix this
npm i<EMAIL_ADDRESS>--save-dev


fix: improve workarounds for default shell of popups

I’m not sure if this will resolve the hanging issue reported in https://github.com/loichyan/tmux-toggle-popup/pull/15#issuecomment-2424160328, but since we do not reattach to the working session at all, it may improve the situation.
To elaborate further, instead of changing the user's default-shell, we put the entire open script in a temporary env variable and call ./really-open.sh to execute these commands. This approach only requires the user's default shell to support the exec command, which I believe most shells do.

wow, thank you again. sorry for being a headache. i will give this more battle testing but it seems good at the first glance. i really appreciate your time.


Change enable or disable widget in runtime

Enable or disable button based on the checkbox value

Can you explain with more information ?


remove select.rs bindings

https://github.com/utkarshkukreti/select.rs
Example: In web-client request for https://github.com/search?l=&q=user%3Afoundpatterns&type=Issues , <h3> has # of issues.  Display that.

https://www.google.com/search?q=rust+web+scraping&oq=rust+web+scraping&aqs=chrome..69i57.3934j0j9&sourceid=chrome&ie=UTF-8
https://codeburst.io/web-scraping-in-rust-881b534a60f7
https://github.com/programble/scraper/blob/6549302459ee62ae38a56426a1cebc619c2ed212/src/selector.rs
https://github.com/utkarshkukreti/select.rs/issues/34
https://www.reddit.com/r/rust/comments/7ok8p3/web_scraping_with_rust/
https://gkbrk.com/wiki/rust_web_scraping/
https://github.com/tafia/quick-xml
https://www.reddit.com/r/rust/comments/6ln2ze/choose_your_xml_library_in_rust/
https://github.com/RazrFalcon/choose-your-xml-rs
https://gitlab.com/lumi/minidom-rs/tree/master
https://github.com/shepmaster/sxd-xpath
https://github.com/shepmaster/sxd-document
https://github.com/serde-rs/json
https://github.com/kyren/rlua/blob/master/Cargo.toml
https://crates.io/crates/quickxml_to_serde

Isnt this done already?
https://github.com/foundpatterns/torchbear/blob/master/src/bindings/select.rs

in favor of https://github.com/foundpatterns/torchbear/issues/268


Can unpaired datasets be used for training？

Can unpaired datasets be used for training？

Hi, what kind of unpaired datasets? At present, our training always needs paired images or at least they can be synthetically generated.


Improve flake eval time, allow haskell.nix build customizations.

Also add more hydraJobs, and a profiled nix develop env (nix develop .#profiled),
and use flake for release.nix and default.nix definition

I tested this in bitte-cells, it appears to keep it's promise. Please merge at earliest convenience.

bors r+

bors r+


Create count_sort.c

name: PR
about: Pull Request
title: ''
labels: ''
assignees: dextel2

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change

[ ] 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)
[ ] This change requires a documentation update

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have checked my code and corrected any misspellings

create count_sort.c


文本提取器优化

Description of the new feature / enhancement
文本提取器在转换中文时，对于偏旁为彳、亻的汉字识别不太好，通常情况下会把整个汉字分开，例如估，会转换成亻和古两个字，可以在后续算法优化中提升对这种情况的优化。
Scenario when this would be used?
文本提取器
Supporting information
No response

When the text extractor converts Chinese, it is not very good at recognizing Chinese characters whose radicals are 彳 and 任. Usually, the entire Chinese character will be separated. For example, it will be converted into two characters, 任 and 古, which can be improved in subsequent algorithm optimization. Optimization for this situation.

This issue is with the underlying OCR Engine and fixing it is beyond the scope of this project. For more accurate OCR results use the Windows 11 Snipping Tool.


change SignIn page name to Login based on design page name

In the design for the user's login page, the login name was chosen, but when creating the pages in the solution, the SignIn name was used.
The name of this page must be changed to login

This issue should be closed because the business of the page has been changed.


Improve Ability To Create Other IGs

The exporter currently supports just an SHR IG -- with many aspects of that hard-coded in.  3rd parties may wish to create their own IGs using SHR as a base, in which they would want to define their own index page and only include those SHR profiles/extensions/terminologies referenced by their profiles.  This would require modularizing the export more than it currently is.

OBE


Changing language

I have a multilingual Identity server
how can I change culture in run time ?
if I set culture in configuration time so ti wont change in run time
I think it should be change by current culture

Sorry this issue is not for this branch


Research creating expiring credentials using sts.assume_role()

The initial reason for creating this tool was that I wanted to be able to create long-lived (never expiring) tokens for the kinds of use-cases described in this post: https://simonwillison.net/2021/Nov/3/s3-credentials/
Expiring credentials are fantastic for all sorts of other use-cases. It would be great if this tool could optionally create those instead of creating long-lived credentials.
This would mean the tool didn't have to create users at all (when used in that mode) - it could create a role and then create temporary access credentials for that role using sts.assume_role(): https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sts.html#STS.Client.assume_role

Here's the boto3 signature for that method:
response = client.assume_role(
    # Required
    RoleArn='string',
    # Required
    RoleSessionName='string',
    # All others are optional
    PolicyArns=[
        {
            'arn': 'string'
        },
    ],
    # This is a string of JSON for an inline policy
    Policy='string',
    DurationSeconds=123,
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    TransitiveTagKeys=[
        'string',
    ],
    ExternalId='string',
    SerialNumber='string',
    TokenCode='string',
    SourceIdentity='string'
)

I think I just need to care about RoleArn and RoleSessionName (because they are required) and then use Policy and DurationSeconds - I don't think I need any of the other options for my purposes.

It looks like 'RoleSessionName` is mainly useful because it shows up in CloudTrail audit logs.
RoleArn is the toughest one. Normally the expectation is that you would be using this API to assume an existing, defined role - but I actually would be happy just sending in an inline JSON policy document.
But RoleArn is required.
I ran this code against my own account to see what roles are available:
import boto3
iam = boto3.client("iam")
roles = iam.list_roles()['Roles']
for role in roles:
    print(role["Path"], "\n\t", role["RoleName"], role.get("Description"), "\n")

Here's my output:
/service-role/
	 apprunner This role gives App Runner permission to access ECR

/
	 aws-elasticbeanstalk-ec2-role None

/
	 aws-elasticbeanstalk-service-role None

/aws-service-role/elasticfilesystem.amazonaws.com/
	 AWSServiceRoleForAmazonElasticFileSystem None

/aws-service-role/apprunner.amazonaws.com/
	 AWSServiceRoleForAppRunner None

/aws-service-role/autoscaling.amazonaws.com/
	 AWSServiceRoleForAutoScaling Default Service-Linked Role enables access to AWS Services and Resources used or managed by Auto Scaling

/aws-service-role/lightsail.amazonaws.com/
	 AWSServiceRoleForLightsail None

/aws-service-role/rds.amazonaws.com/
	 AWSServiceRoleForRDS Allows Amazon RDS to manage AWS resources on your behalf

/aws-service-role/support.amazonaws.com/
	 AWSServiceRoleForSupport Enables resource access for AWS to provide billing, administrative and support services

/aws-service-role/trustedadvisor.amazonaws.com/
	 AWSServiceRoleForTrustedAdvisor Access for the AWS Trusted Advisor Service to help reduce cost, increase performance, and improve security of your AWS environment.

/
	 datasette-proof-of-concept-HelloWorldFunctionRole-8MIDNIV5ECA6

/
	 helloworld-dev None

/
	 zappa-helloworl-dev-ZappaLambdaExecutionRole None

So my account currently has 13 roles, some of which look like defaults and some from when I was playing around with things like Zappa on Lambda.

I think I need to create new roles the first time the user attempts to use these functions.
I'd like them to mostly share the structure of the roles in policies.py - but without the bucket limitation. I can add the bucket limitation in the inline policy JSON I pass to sts.assume_role().

Or maybe not? The code in policies.py creates an inline role with specific access to a specific bucket. I really like that. Could I come up with some kind of parent role that's basically just an obvious name with no rules attached to it at all?

Here are the docs for iam.create_role(): https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iam.html#IAM.ServiceResource.create_role
role = iam.create_role(
    Path='string',
    RoleName='string',
    AssumeRolePolicyDocument='string',
    Description='string',
    MaxSessionDuration=123,
    PermissionsBoundary='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)

Required fields are RoleName and AssumeRolePolicyDocument. I like the idea of setting a good Description too.

I ran this instead:
roles = iam.list_roles()['Roles']
for role in roles:
    print(json.dumps(role, indent=4, default=str))

And for every single one of my roles the AssumeRolePolicyDocument looked something like this:
{
    "Path": "/aws-service-role/lightsail.amazonaws.com/",
    "RoleName": "AWSServiceRoleForLightsail",
    "RoleId": "AROAWXFXAIOZG5ACQ5NZ5",
    "Arn": "arn:aws:iam::462092780466:role/aws-service-role/lightsail.amazonaws.com/AWSServiceRoleForLightsail",
    "CreateDate": "2021-01-15 21:41:48+00:00",
    "AssumeRolePolicyDocument": {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Principal": {
                    "Service": "lightsail.amazonaws.com"
                },
                "Action": "sts:AssumeRole"
            }
        ]
    },
    "MaxSessionDuration": 3600
}

They ALL used "Action": "sts:AssumeRole" against a principal defined as a "Service": "...amazonaws.com" - not a single example of a role that didn't do that.

Seeking relevant examples using GitHub code search. All of these so far are using "Action": "sts:AssumeRole":

https://github.com/bstriner/aws-sagemaker-remote/blob/6ce59c2e413b0dd6a53a54d8b860c93d16234720/aws_sagemaker_remote/processing/iam.py#L26
https://github.com/lol-fi/finddiscount/blob/9901650c235f52d0809a755d1fb32e5c92236b82/python/example_code/iam/create_role.py#L47
https://github.com/ubergeek42/lambda-letsencrypt/blob/01e81577dabc984b18512233ddae37755d4e2acb/installer/iam.py#L37

Reading the official documentation on roles now: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html

Trying a new approach: I'm using the AWS UI to create my first role, then I'll inspect it and see what it looks like.
The initial screen doesn't seem to support my use-case very well:

It looks like the option I want is "Another AWS Account", even though I'm actually looking to create temporary credentials within the SAME account:

Since Account ID is required I copied it from the menu at the top of the page. I managed to create a role:

This had the S3 thing attached - I then manually dropped that policy so now I have a role with no policies at all.
Let's see if I can assume it and use it to access a bucket.

Just doing this gave me back credentials that don't appear to be able to do anything at all:
sts.assume_role(RoleArn = "arn:aws:iam::462092780466:role/s3-full-access", RoleSessionName="SimonRole")

Aha! Turns out you need to pass the --session-token argument too, just the first two isn't enough. And the Transmit UI doesn't have a way to set that so testing in Transmit doesn't work.
Also, there seems to be some caching somewhere such that adding new policies to e.g. the role itself in the console doesn't take effect for quite a few seconds.

Maybe this is the policy document I need?
https://github.com/aws-srinjoy/servicenow-dish-iam-uplift/blob/d52871f179170c3028758a24ce8639d6620e9d3d/service-control-policies/scp/scp/integration_tests/tests/assume_role_policy_doc.jsonq
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::{AccountId}:root"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}

Success! I manually created a role using these settings:

Then I ran the following code:
import boto3
sts = boto3.client("sts")
bucket = "simonw-test-bucket-is-this-public"
sts.assume_role(
    RoleArn = "arn:aws:iam::462092780466:role/s3-credentials.s3-full-access",
    RoleSessionName="s3-credentials.simonw-test-bucket-is-this-public",
    Policy=json.dumps({
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": ["s3:ListBucket"],
                "Resource": ["arn:aws:s3:::{}".format(bucket)],
            },
            {
                "Effect": "Allow",
                "Action": "s3:*Object*",
                "Resource": ["arn:aws:s3:::{}/*".format(bucket)],
            },
            {
                "Effect": "Allow",
                "Action": ["iam:GetUser"],
                "Resource": ["*"]
            },
        ],
    })
)

This gave me credentials which I then successfully used to list the contents of that bucket, but which failed with a permission error when I tried to list the contents of a different bucket.

The policy I attached to it has this ARN: arn:aws:iam::aws:policy/AmazonS3FullAccess

Here's what that role looks like if I access it using iam.get_role(RoleName="s3-credentials.s3-full-access"):
{
    "Path": "/",
    "RoleName": "s3-credentials.s3-full-access",
    "RoleId": "AROAWXFXAIOZK2Y3HBQZP",
    "Arn": "arn:aws:iam::462092780466:role/s3-credentials.s3-full-access",
    "CreateDate": "2021-11-10 01:08:03+00:00",
    "AssumeRolePolicyDocument": {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::462092780466:root"
                },
                "Action": "sts:AssumeRole",
                "Condition": {}
            }
        ]
    },
    "Description": "Role used by the s3-credentials tool to create time-limited credentials that are restricted to specific buckets.",
    "MaxSessionDuration": 3600,
    "RoleLastUsed": {}
}

OK, research is complete. Next step is to design and implement the feature.


New app: Literature clock

This app displays the time using a quote from a piece of literature. It is based on work and idea by Jaap Meijers and Jene Voldsen.
It includes a toggle setting to hide any nsfw quotes (ie: quotes containing profanities).
If several quotes exist for the given time, one will be chosen at random. If it is currently a time for which there are no quotes or no sfw quotes (if setting is turned on), then will search backwards one minute until a quote is found.

I have read the CLA Document and I hereby sign the CLA


Adding Dart

For https://github.com/pascaldekloe/colfer/issues/71

Added Dart module, with tests
** MinInt64 as uint64 is wired directly because of the overflow to negative, because that's the only branch that would have needed counting bytes. I added another test with MinInt64+1 to prove that the rest works as expected.
** I didn't add EOF as it's in the Go code, mainly because using the library is very similar in these two cases. Dart error handling is through try-catch with errors and exceptions. By default, errors are used for programmatic errors, exceptions for user input errors, so it's not totally idiomatic, looks a little hacky. But in the end catching RangeError instead of a defined EOF exception are very similar to me, tested it as well
updated Readme
** updated footnote characters, because in theory it's possible to have multiple of them in any field. I took the rest from here: https://en.wikipedia.org/wiki/Note_(typography)

what's missing:

benchmark
I did my best, and I'm pretty sure that it's working as-is, but a review from a more experienced Dart dev would be good

Again, if you are out of energy and/or time, then I can take over from here. Feel free to call enough. I know how much work this is. 😅 You are the only one thus far who managed to deliver something useable.

It's okay, I'll do these fixes. I'll leave benchmarking to someone else (or much later).

I fixed the ones you mentioned, please check if everything is fine.

The error classification is a bit flat now.
StateError seems appropriate when marshalling integers and or numbers out of their respective bit-range.
https://api.dart.dev/stable/2.13.1/dart-core/StateError-class.html
RangeError now may indicate buffer overflows & underflows or even ColferMax breaches.

"An Error object represents a program failure that the programmer should have avoided."
— https://api.dart.dev/stable/2.13.1/dart-core/Error-class.html

Reading a corrupt or incomplete serial is not a programmer mistake. FormatException has a nice index pointer so we can state where the error resides.
https://api.dart.dev/stable/2.13.1/dart-core/FormatException-class.html

For error classification:
I know about RangeError, I stated it on the top, that it may be inappropriate, but it looked way much easier to leave it like that, instead of checking ~60 places when unmarshalling anything. Feel free to change it.
StateError seems fine, I'll apply that.
I'll add RangeError for ColferSizeMax and ColferListMax. It's unlikely to happen while unmarshalling, because the same thing should have been run on the other side, so it won't interfere with reading incomplete buffer indeed.

I'll add RangeError for ColferSizeMax and ColferListMax. It's unlikely to happen while unmarshalling, because the same thing should have been run on the other side, so it won't interfere with reading incomplete buffer indeed.

Unlikely and shouldn't yes. Can't rely on that though. The format guarantees robustness.

"Marshalling and unmarshalling comes with built-in size protection to ensure predictable memory consumption. The format prevents memory bombs by design."
— README.md

In other words, even if someone tries to manually craft something beyond ColferSizeMax, we should catch that and not allocate the size provides by some serial.

Ok, I think I'm done with it. Feel free to ping me if you think something is missing, and really important in this phase.

Will gladly take over from here. Could you give me write access to your repository? Then I can add addition comments for you to see as well.

For my current project (in dart/flutter) I found out that sublist can be replaced by skip and take. I made a small benchmark on them with https://pub.dev/packages/benchmark, and found out, that skip is ~170x faster than sublist, take is ~16x faster than sublist. Just to let you know, feel free to change my implementation.

Is there still work to be done that can be assisted with in any way? Support for dart would make Colfer immediately viable for Flutter which would be extremely useful.

Hi @NickTheDev, Sorry about the late response. Yah, the branche from @vendelin8 could definitely use an extra pair of eyes. My review stranded a bit due to professional assigments. Will be back on open-source development soon. ™

@NickTheDev I did what I could, feel free to check, correct, extend, etc. I don't use it any more, but can help if you need it.

@pascaldekloe I would be happy to review and possible get the benchmarks soon.

I thought you were offering assist @NickTheDev. So it was just encouragement then...

No I'd be happy to assist, I just wanted to ask in what capacity the assistance would be most helpful.

Excellent. 🙂 When can you start @NickTheDev? Feel free to contact me directly on<EMAIL_ADDRESS>

I'll shoot you an email @pascaldekloe.

diff --git a/dart/gen_test.dart b/dart/gen_test.dart
index 1fe05a5..96bc7bd 100644
--- a/dart/gen_test.dart
+++ b/dart/gen_test.dart
@@ -103,14 +103,16 @@ void main() {
   var cases = newGoldenCases();

   group('Identity', () {
+    var cases2 = newGoldenCases();
     for (int i = 0; i < cases.length; i++) {
-      for (int j = 0; j < cases.length; j++) {
+      for (int j = 0; j < cases2.length; j++) {
         var a = cases[i];
-        var b = cases[j];
-        if (i == j && a.hashCode != b.hashCode) {
-          fail('inconsistent hash on object $a');
-        } else if (i != j && a.hashCode == b.hashCode) {
-          fail('hash collision on object $a & $b');
+        var b = cases2[j];
+        if ((i == j) != (a.hashCode == b.hashCode)) {
+          print('inconsistent hash on object index $i and $j');
+        }
+        if ((i == j) != (a == b)) {
+          print('inconsistent equality on object $a and $b, index $i and $j');
         }
       }
     }

I think the json could be fixed implementing fromJson and toJson as of this: https://stackoverflow.com/a/62197836/6155997
But generally no worries. Thanks for trying it anyway. Maybe someday it will happen by somebody :D


State page

I am having issue with my state page.  Under the customer i enter some new code
homeassistant:
Name of the location where Home Assistant is running
name: Dev UnifiedTASS Home
Location required to calculate the time the sun rises and sets
latitude: 53.4179
longitude: -113.5785
Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
metric for Metric, imperial for Imperial
unit_system: metric
Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Edmonton
customize:
# Add an entry for each entity that you want to overwrite.
switch.MBD_Fan:
friendly_name: Master Bedroom Fan
icon: mdi:fan
switch.MBD_Light:
friendly_name: Master Bedroom Light
icon: mdi:ceiling-light
switch.MBD_TableLight:
friendly_name: Master BD Table Light
icon: mdi:lamp
I had test the script it is valid but when i stop and start the homeassistant and load the page there is no change.  Please help i am struggling with this issue from last 3 days
thanks
AA

You need frontend: in your config for the, um, frontend.


Compatibility Risk from current manifest.json

Due to the new versioning schema of FoundryVTT, Chat Images shows as a compatibility risk:

Fixed with release 2.5.6


added minimized digit sum file

please tag me hacktoberfest-accepted
I have added a codechef contest programm in c++ folder

This repository is only for the solutions of problems present on Leetcode. Please read the NOTE FOR CONTRIBUTORS.md file, create issues and get your code assigned. Then I'll accept the code :)


Conversion of TIFF stack to binary raw file for dvc executable

Once loaded the TIFF in GUI, one needs to create the raw file for the DVC command to operate on.

closed by #103


[Feature Request] Preserve contents of "Check Number" field when future scheduled transactions come due

Check number field not preserved when scheduled transactions come due

System Settings (Required)

ToolKit Version: 2.15.1
Operating System (Mac/Windows/Etc): MacOS
Browser (Chrome/Firefox/Safari): Chrome
Browser Version: 77.0.3865.90
Other Extensions:

Export of Toolkit Settings (Bottom Left of Settings Page)

Settings Export
[{"key":"AccountsDisplayDensity","value":"0"},{"key":"AccountsEmphasizedOutflows","value":false},{"key":"AccountsStripedRows","value":true},{"key":"AutoDistributeSplits","value":false},{"key":"AutomaticallyMarkAsCleared","value":false},{"key":"BetterScrollbars","value":"0"},{"key":"BudgetCategoryFeatures","value":true},{"key":"BudgetProgressBars","value":"goals"},{"key":"BudgetQuickSwitch","value":true},{"key":"BudgetSpendingGoal","value":false},{"key":"BulkManagePayees","value":false},{"key":"CalendarFirstDay","value":"0"},{"key":"CategoryActivityCopy","value":false},{"key":"CategoryActivityPopupWidth","value":"0"},{"key":"ChangeEnterBehavior","value":true},{"key":"CheckCreditBalances","value":true},{"key":"CheckNumbers","value":true},{"key":"ClearSelection","value":false},{"key":"CollapseSideMenu","value":false},{"key":"ColourBlindMode","value":false},{"key":"CompactIncomeVsExpense","value":false},{"key":"CreditCardEmoji","value":true},{"key":"CurrentMonthIndicator","value":true},{"key":"CustomFlagNames","value":false},{"key":"DaysOfBuffering","value":true},{"key":"DaysOfBufferingHistoryLookup","value":"0"},{"key":"DeselectTransactionsOnSave","value":false},{"key":"DisableToolkit","value":false},{"key":"DisplayTargetGoalAmount","value":"1"},{"key":"DisplayTotalMonthlyGoals","value":true},{"key":"DisplayUpcomingAmount","value":true},{"key":"EasyTransactionApproval","value":false},{"key":"EditAccountButton","value":"0"},{"key":"EnlargeCategoriesDropdown","value":true},{"key":"EnterToMove","value":false},{"key":"FilterCategories","value":true},{"key":"GoalIndicator","value":true},{"key":"GoalWarningColor","value":true},{"key":"GoogleFontsSelector","value":"0"},{"key":"HideAccountBalancesType","value":"0"},{"key":"HideAgeOfMoney","value":false},{"key":"HideHelp","value":false},{"key":"HideReferralBanner","value":true},{"key":"HideTotalAvailable","value":false},{"key":"HighlightNegatives","value":false},{"key":"ImportNotification","value":"1"},{"key":"IncomeFromLastMonth","value":"0"},{"key":"IncomeVsExpenseHoverHighlight","value":true},{"key":"LargerClickableIcons","value":false},{"key":"LinkToInflows","value":false},{"key":"MonthlyNotesPopupWidth","value":"0"},{"key":"NavDisplayDensity","value":"0"},{"key":"POSStyleCurrencyEntryMode","value":false},{"key":"Pacing","value":"0"},{"key":"PrintingImprovements","value":true},{"key":"PrivacyMode","value":"0"},{"key":"QuickBudgetWarning","value":false},{"key":"ReconciledTextColor","value":"0"},{"key":"RemovePositiveHighlight","value":false},{"key":"RemoveZeroCategories","value":false},{"key":"ResizeInspector","value":false},{"key":"ResizeSidebar","value":false},{"key":"RightClickToEdit","value":true},{"key":"RowHeight","value":"0"},{"key":"RowsHeight","value":"0"},{"key":"RunningBalance","value":"1"},{"key":"SeamlessBudgetHeader","value":false},{"key":"SetMultipleFlags","value":false},{"key":"ShowCategoryBalance","value":true},{"key":"SpareChange","value":false},{"key":"SplitTransactionAutoAdjust","value":false},{"key":"SquareNegativeMode","value":false},{"key":"StealingFromFuture","value":true},{"key":"SwapClearedFlagged","value":false},{"key":"TargetBalanceWarning","value":true},{"key":"ToBeBudgetedWarning","value":false},{"key":"ToggleMasterCategories","value":false},{"key":"ToggleSplits","value":false},{"key":"ToggleTransactionFilters","value":"1"},{"key":"ToolkitReports","value":true},{"key":"TransactionGridFeatures","value":true},{"key":"ViewZeroAsEmpty","value":false},{"key":"l10n","value":"0"}]

Steps to Reproduce the Behavior

 Enter a value in the "Check number" field when recording a "scheduled" (in the future) transaction
That value disappears when that scheduled transaction is entered in the register, and is not maintained when that future transaction becomes "present" or "past"

Expected Behavior
When I enter a value in the "Check Number" field for transactions dated today or in the past, that value is correct preserved in the dated in the future, that value should be preserved in the register, both in the scheduled transaction and then after the transaction moves to "the past."
Actual Behavior
When I enter a value in the "Check Number" field for transactions dated today or in the past, that value is correct preserved in the register.  However, when I enter a value in the "Check Number" field for a future (scheduled) transaction, that value is not preserved, and thus does not carry into the register when the transaction "comes due" or "is approved" on its actual due date.  (Maybe preserving this value is not possible; but, it would be nice to preserve it since the field is available.)

Because YNAB doesn't honor the check number, I recommend using the memo field until the transaction is entered in the register and then moving it to the check number field.

Unfortunately, this isn't really something we're going to be able to do with the extension. Scheduled transactions are handled natively by YNAB and the check number isn't really supported. Using @dbaldon's suggestion is going to be your best bet. Sorry about that!