Decaffeinate default-directory-searcher.coffee and its spec

This PR decaffeinates the default-directory-searcher.coffee file and its spec. @nathansobo and I started doing this for the ripgrep initiative as we thought it was a needed but later found out it wasn't. Still, it's good to decaffeinate files 😄
🍐'd with @nathansobo

The build failure is from a flaky test, since it has nothing to do with the PR changes:
Project
  serialization
    it does not deserialize paths that are now files
      Error: EPERM: operation not permitted, open 'C:\Users\appveyor\AppData\Local\Temp\1\atom-spec-project2019416-1948-4d1zsg.6uigc\child'
        at Object.fs.openSync (fs.js:646:18)
        at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
        at Object.fs.writeFileSync (fs.js:1303:33)
        at Proxy.writeFileSync (C:\projects\atom\node_modules\fs-plus\lib\fs-plus.js:292:17)
        at jasmine.Spec.it (C:\projects\atom\spec\project-spec.js:77:10)
        at <anonymous>

So I'm going to merge this PR

Duplicate of #


UnboundLocalError not implemented

The interpreter currently doesn't check if a variable is being read before being assigned to in a scope.
It leads to bugs like this:
x = 10

def f():
    x = x + 1  # accidentally reading the variable from global, but writing in local
    print(x)

f()
print(x)

$ interpreted asd.py
11
10

This should throw UnboundLocalError instead.

yess


I might be trippin, but Idk how to enable the bot

I changed configs and everything making sure everything was correct but the bot won't show up online, I am new to this so I don't know how it works and how to make sure the bot's code is run so that it shows up online and works. Any help, everyone else has their bot working so I think its just me

Closing this for now as no further feedback was received


Deserializing struct enum from inline table works with from_str but not from toml::Value

I was trying to have a workaround against nested enums, and ended up with this idea of parsing a toml, but leaving parts of it that are nested as toml::Value, to be parsed (or converted with try_into()) to the enum of my choice.
I realized that an inline table enum { KeepLast = { depth = 3 }} is successfully parsed with from_str but not when it is first deserialized into a toml::Value, and then parsed.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c3ed207a481ed3cac8aca7a56458f0fa
Keener eyes then mine in the Matrix room #rust:matrix.org have chipped in as:

The problem is that deserializing an enum from TOML text works differently than deserializing an enum from a Value.
text: https://docs.rs/toml/0.5.9/src/toml/de.rs.html#247-291
Value: https://docs.rs/toml/0.5.9/src/toml/value.rs.html#584-600
The text Deserializer allows both uninhabited enums (represented as a TOML string) and inhabited enums (represented as a table with one element), while the Value Deserializer only allows uninhabited enums. Worth opening an issue about, imo.

Related (sill wip): https://github.com/alexcrichton/toml-rs/pull/473

Maintenance of this crate has moved to the https://github.com/toml-rs/toml repo.  As a heads up, we plan to move toml to be on top of toml_edit, see https://github.com/toml-rs/toml/issues/340.
Closing this out.  If this is still a problem, feel free to recreate this issue in the new repo.


build ci on windows latest

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
10419

Relevant Lines:
16326

💛  - Coveralls


ENH: allow gzip de-compression for files specified by a url

Address #8685 .  The file in the test test_url_gz currently points to my fork to demonstrate that the tests pass, but should be changed to point to the real pydata master after merging.

This works for compression="infer" now as well by looking at the HTTP Content-Encoding header like @jseabold suggested.  The test test_url_gz_infer uses a file hosted on an s3 bucket that I own where I set it to return Content-Encoding=gzip.  Assuming this gets merged, we'd want to move that into the s3 bucket that pandas uses elsewhere in the tests.

Any admins have time to look at this PR?

at the end pls squash to a single commit. pls add a release note in whatsnew/0.17.0.
Here are the contribution guidelines for your reference

@jreback Once the tests all pass, I'll squash into a single commit.  There's still the issue of changing the test url's to point to the official github repo and s3 bucket.  Not sure the best way to handle that.

@jreback Okay.  This should be good to go.  Thanks for the comments!

I pushed the .gz file, so you can use this as a stable address: https://github.com/pydata/pandas/blob/master/pandas/io/tests/data/salary.table.gz
pls change, squash, and ping when green

@jreback Thanks!  What about the s3 file?  Are you able to post that too and set s3 to return the Content-Encoding gzip header?

so is a that a public bucket you setup? any problem leaving it for now?

Yep.  It's public.  I've got no problem leaving it.  Just didn't know if you guys wanted to have it look more "official."  I'll make that other change to the github link.

we don't have an official s3 bucket for this ATM. But I think I can get access to one where we can do stuff like this.

Ah.  Okay.  I saw s3://nyqpug/ in the tests and assumed that was official.  Happy to leave mine in there for awhile until you figure it out.

hmm, that is some old stuff IIRC. Wll try to set this up for later today.

ok, going to merge this then fix it with a new bucket. thanks!

Oh shoot.  I didn't get a chance to change the regular .gz github link.

no worries, going to merge this shortly: https://github.com/jreback/pandas/commit/2f0c344191be435b0302ad8e8af4ca3183f2fcf5
This is a public bucket for pandas (though read-only)


Enchancement request/question: Add non-database backed links to the left hand navigation

I am hoping I missed how to do this in the documentation.  If so, please point me to it.  I would like the ability to add links to the left hand navigation that are not backed by a datastore (not a CRUD function).  In my case, I have a google data studio link which I can embed as an iframe.
How I solved this today was to create a model that used mongoose in which the schema has just one element -- called page of type String.  I then defined a resource in which the 'show' was the only option turned on.  In the 'list' definition, I created an after function that would pass the page link that points to google data studio.  I also defined a custom component bundle to display the link.  The component retrieved the link that was setup in the resource and inserted it into an iframe.
All of this allowed my to define a resource in the AdminBroOptions that would show my iframe.  But was a large hack and it still has the All Records.

I would rather have some type of stubbed out resource type (like mongoose and sequelizejs) that can point to a .jsx file for static data that does not come from a database.  Similar to the dashboard but not on the homepage.
Is that already possible?

right now it is not possible - added to todo

added this in version 1.6.0-beta.1 just right now: https://admin-bro-example-app.herokuapp.com/admin/pages/customPage
simply add "pages" property in AdminBroOptions. Example:
pages: {
    customPage: {
      label: "Custom page",
      handler: async (request, response, context) => {
        return {
          text: 'I am fetched from the backend',
        }
      },
      component: AdminBro.bundle('./components/some-stats'),
    },
  },


Dependency manager

Description
Attempted to play with the new features in FSharpInteractive using the FSharp.DependencyManager.Paket, but encountered some issues. Was thinking that we should provide an easier experience for newcomers.
Repro steps
In a new folder:
dotnet new tool-manifest
dotnet tool install paket
dotnet paket init
dotnet paket add FSharp.DependencyManager.Paket

Changed the settings.json for VSCode to include
{
"FSharp.fsiExtraParameters": [
"--compilertool:c:/Users/Sorin/.nuget/packages/fsharp.dependencymanager.paket/6.0.0-alpha053/lib/netstandard2.0"
]
}
Then created something.fsx with the content:
#r "paket: nuget FParsec"
open FParsec

Expected behavior
The script to run in FSI without issues
Actual behavior
exception while resolving dependencies:
System.Exception: Paket was not found in 'd:\dev\fsharp\sandbox\mlnet' or a parent directory, or 'C:\Users\Sorin'. Please download the tool and place it in one of the locations.

Known workarounds
To manually copy paket.exe in a reachable location for the FSI. The problem with that is that on a tool version change most probably the tooling around FSI will not work properly anymore.

For reference I copy paste here the discussion from the gitter channel:
mecusorin @mecusorin_twitter Nov 12 12:46
Wanted to play with the new fsi features in a new folder:
dotnet new tool-manifest
dotnet tool install paket
dotnet paket init
dotnet paket add FSharp.DependencyManager.Paket
Change the settings.json for VSCode to include
{
"FSharp.fsiExtraParameters": [
"--compilertool:c:/Users/Sorin/.nuget/packages/fsharp.dependencymanager.paket/6.0.0-alpha053"
]
}
Then create something.fsx with the content:
#r "paket: FParsec"
open FParsec
And send to the FSI the content of the file
I get the error
somethig.fsx(2,1): error FS3216: Package manager key 'paket'
was not registered in [C:\Program Files\dotnet\sdk\5.0.100\FSharp; C:\Program Files\dotnet\sdk\5.0.100\FSharp], [c:/Users/Sorin/.nuget/packages/fsharp.dependencymanager.paket/6.0.0-alpha053]. Currently registered: nuget
What I am doing wrong?
mecusorin @mecusorin_twitter Nov 12 12:56
Also attempted with settings.json containing:
{
"FSharp.fsiExtraParameters": [
"--compilertool:c:/Users/Sorin/.nuget/packages/fsharp.dependencymanager.paket/6.0.0-alpha053/lib/netstandard2.0"
]
}
mecusorin @mecusorin_twitter Nov 12 13:04
the error was:
exception while resolving dependencies: System.Exception: Paket was not found in 'd:\dev\fsharp\sandbox\mlnet' or a parent directory, or 'C:\Users\Sorin'. Please download the tool and place it in one of the locations.
We need to make the tool search the default tools folder
I iterate: What is the idiomatic way to make this work? What I am doing wrong in my approach?
Gauthier Segay @smoothdeveloper 11:38
@mecusorin_twitter Hello, you also need to have paket.exe in either location up the directory structure, or in your user directory, it expects a .paket folder with paket.exe
if that solves the issue, could you help improve the current documentation: https://github.com/fsprojects/Paket/blob/master/docs/content/fsi-integration.md ?
I personally go with the first route, I copy the assembly next to fsi.exe
the other thing, is how you reference with paket in the script, it keeps the same syntax as paket.dependencies file, so you'd need:
#r "paket: nuget FParsec"
open FParsec
mecusorin @mecusorin_twitter 12:05
@smoothdeveloper Thanks for reply. Don't want to copy paket.exe near fsi.exe, because is the short path to a lot of funny issues as soon as paket changes major (or even minor) version. I was thinking that the best bet is to add to the paket tool a command to setup itself (or a list of steps for the user to follow) for fsi integration. Something similar with the generate-load-scripts. About the actual script good catch!
Gauthier Segay @smoothdeveloper 12:05
@mecusorin_twitter it is just the extension dll you need to copy there
I've made a PR with changes to the doc: https://github.com/fsprojects/Paket/blob/6cf49cb4fa5806b1a83db32d544037d7acef11ee/docs/content/fsi-integration.md
ok, yes we should consider better installation scenario, for now I'm trying to keep the documentation as straight forward so it works for usual scenarios, for me it is working well with dotnet fsi and Visual Studio 2019 copying the dll and having a version of paket under ~/.paket/paket.exe
mecusorin @mecusorin_twitter 12:08
@smoothdeveloper Why is not having another default to search for ~.nuget\packages\paket\ ... ?
Gauthier Segay @smoothdeveloper 12:08
@mecusorin_twitter I don't think this is default? is it?
mecusorin @mecusorin_twitter 12:09
I was saying in addition to the current default
Gauthier Segay @smoothdeveloper 12:09
because it would need to check the latest version, which is more logic in the extension
I think we'd just want to rely on dotnet paket in the future, by the time we made the prototype of the extension, I don't know if it was already used as a dotnet tool.
Would you mind creating a discussion issue on paket repository to list some of the improvements you'd like to see and we can try to bring some of the maintainers to see what makes most sense.
mecusorin @mecusorin_twitter 12:11
And again the same issue, I need to manually copy something somewhere I will forgot about and will byte me back without knowing what is wrong
Gauthier Segay @smoothdeveloper 12:11
historically, paket users are expected to have a .paket somewhere in the folder hierarchy where they do their scripts, and leverage generate-load-scripts.
mecusorin @mecusorin_twitter 12:12
For reference this are my home folders we talked about:
Gauthier Segay @smoothdeveloper 12:13
for now this is only deployment scenario, copying dll or passing argument to fsi / tooling, to make it more robust will require some engineering, I don't think it is simple, and you can see that Microsoft just copies the nuget version of the extension next to FSI, for now most natural is to do the same.
mecusorin @mecusorin_twitter 12:13
I have paket installed as global tool also
Gauthier Segay @smoothdeveloper 12:13
You may contribute to the extension, it is not lots of code.
https://github.com/fsprojects/Paket/tree/master/src/FSharp.DependencyManager.Paket
mecusorin @mecusorin_twitter 12:16
Will take a look
Gauthier Segay @smoothdeveloper 12:16
https://github.com/fsprojects/Paket/blob/a4893356d3089d945a994e631192c8cbc999c7c1/src/FSharp.DependencyManager.Paket/ReferenceLoading.PaketHandler.fs#L60-L80
this is the specific part, I think it is ok to add location you mention to try.
if you are able to get it working with the updated instructions, could you leave a comment to my PR just to confirm: fsprojects/Paket#3949
mecusorin @mecusorin_twitter 12:49
@smoothdeveloper Looking at the code: I observed that is invoking the tool, why not doing dotnet paket instead directly, and if that fails to fallback to searching the tool to invoke it the way is doing it now?
Gauthier Segay @smoothdeveloper 12:52
yes that sounds reasonable, I'm not sure it is doable to test if dotnet paket exists because then it would incur the cost of running the command and checking the return value or parsing the output, not sure if that amounts for significant time before checking the folders.
There is also the question of the priority order in which those checks would go.
I guess when most of this code was put in first place (was in fsharp repo) the dotnet tooling was not yet available as it is since dotnet core 3
mecusorin @mecusorin_twitter 12:56
We need to talk with @forki about this, I want to invest some time in this, but only when everything is clear about the best course of action
mecusorin @mecusorin_twitter 13:12
I suppose that we can check the dotnet tool manifest file for paket
Gauthier Segay @smoothdeveloper 13:26
@mecusorin_twitter you may either create an issue or append comment to my PR on the doc to keep track of the idea to run dotnet paket and additional folders in the lookup, I think that will help Steffen to pick up and put his answer in the issue / PR
Gauthier Segay @smoothdeveloper 13:32
and yes, no problem you don't have to look at implementing in the project, you may play around in script to try to call dotnet paket or check the manifest.
It seems dotnet tool list would give easy output to parse, looking if the implementation of that command can be referenced in the code.
~/.dotnet/tools/paket.exe would be for the global install.

My ideas from that discussion:

the tool to attempt to use in the following order

local dotnet paket
local .paket/paket.exe
global dotnet paket tool
C:\Users\Sorin\.paket\paket.exe
most recent paket.exe compatible with the current framework used from c:\Users\Sorin\.nuget\packages\paket\

either use a symlink folder for paket tooling and just update that link on new paket versions

@MecuSorin this very sensible outline of the adjustments to better pick up paket.exe in the environment.
Also, if the resolution fails, we should list what has been attempted so the user has better time actionning towards a solution:
:paket> couldn't find paket.exe after searching for it:
:paket>    - "dotnet paket" local tool
:paket>    - /long/path/to/there/.paket/paket.exe
:paket>    - /long/path/to/.paket/paket.exe
:paket>    - /long/path/.paket/paket.exe
:paket>    - /long/.paket/paket.exe
:paket>    - /.paket/paket.exe
:paket>    - paket.exe from PATH environment variable
:paket>    - C:\Users\Sorin\.paket\paket.exe
:paket>    - C:\Users\Sorin\.nuget\packages\paket\

It may also print
:paket> Found paket: C:\Users\Sorin\.paket\paket.exe

@MecuSorin the latest release of the extension should have some of the extra search paths and error message which improves the situation.
The only thing not implemented is picking up local dotnet paket.


fix(DDI-1166): removed empty import and added fallback fonts

Removed an import statement that ublock had an issue with, as the css is empty
Added fallback fonts

:tada: This PR is included in version 4.0.0-alpha.120 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-alpha.15 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.21 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Moving perfdash from contrib.

@krzysied - please fix the tests

@krzysied - can you please rebase and repush it?
Tests doesn't pick up go1.9 (the PR that I just merged).

Rebased and repushed.
Test fix: I've had to update yaml.v2 version.


Audio Advancement

@elijahbigk77 Is this PR complete? Please fill in the description with what you are implementing.
It looked like you want it to advance and start playing the next chapter.  It did not do that for me.

@elijahbigk77 Is this PR complete? Please fill in the description with what you are implementing.
It looked like you want it to advance and start playing the next chapter.  It did not do that for me.

@elijahbigk77 What is the state of this PR? What is left to be done? Don you plan to do anymore work on it?


let-bound names may be inappropriately fully qualified

Just wanted to report this issue.
This compiles fine:
(ns anamespace)

(defrule a-rule
  [AType]
  =>
  (let [foo 1]
    (inc foo)))

This will fail at clara.rules.compiler/try-eval
(ns anamespace)

(def foo nil)

(defrule a-rule
  [AType]
  =>
  (let [foo 1]
    (inc foo)))

I've traced this to foo being incorrectly expanded to anamespace/foo because the heuristic during parsing in clara.rules.dsl/maybe-qualify checks for whether it's a symbol and then down here attempts to resolve it to determine whether to qualify the name. In the above example, foo will resolve and therefore get namespace qualified, yielding:
(let [anamespace/foo 1]
  (inc anamespace/foo))

The let causes an exception to be thrown during try-eval. Perhaps more dangerous, the body of the let resolves to the global var foo and silently goes on its way, though the Clojure compiler does throw on the let binding first.
I didn't see a straight-forward, robust fix, so I'm just posting this issue in case this isn't known (though I see related issues to name resolution and the environment have come up before).

I've thought about this one quite a bit before and I'm really not convinced there is a solo
I'd solution due to the inability to detect shadowed vars occurring in the RHS (right hand side) of a rule. The RHS allows for mostly unconstrained and arbitrary Clojure forms. This means that it is not something that can be simply parsed to understand the semantics of things like let-bindings that shadow vars of the namespace.
let-bindings can come from any arbitrary number of forms since there can be any macro that expands to let's.
The only solution I've explore that I do think work, but is not light weight, is to take advantage of a library that is aligned with Clojure's compilers analyzer, because Clojure's itself is fairly closed off for use by others.  The tools.analyzer project is capable of this and I have used it to successful qualify vars I'm rule RHS with still respecting local shadowing rules. Although this is quite a lot to take on as a dependency etc.
I do think that you won't typically have any silent failures from this issue though. Clara co,piled will qualify all of the vars, which means it will qualify your symbols your locally binding as well if they are shadowing a var of the ns. The Clojure compiler will in turn fail due to trying to local bind a qualified symbol. It'd be difficult to set up a RHS that didn't fail compilations like that. It is an unfortunately confusing error message to get. Clara can't do much to detect it either as it stands short of try to catch the exception to give better feedback.
Clara qualifies all symbols that need it during parsing so that they can be compiler later in potentially different ns contexts. One alternative on the RHS could be to avoid qualifying. Vars and instead just track the originating ns to rebind later when eval'ing the form. I've had some success with an approach like this before as well.
Anyways perhaps someone else has further insight into this.

Thanks for reporting this. I like the @mrrodriguez's idea of using the originating namespace when eval-ing the right-hand side...which basically just lets Clojure qualify the symbols itself.  I'm traveling and am not able to jump on this immediately but will take a closer look next week.

@rbrush I can work on this in the next few days.
I think this would be useful for a few cases we had as well.

I was wrong about this being impossible to ever be a problem too.
With http://dev.clojure.org/jira/browse/CLJ-1318 "Support destructuring maps with namespaced keywords" of Clojure 1.6, things can go wrong with qualified symbols and shadowing.  This whole feature allows strange things, but still.
(clara.rules/defrule trial
  [:test]
  =>
  (let [{:keys [x]} :good]
    (println x)))

(-> (clara.rules/mk-session [trial])
    (clara.rules/insert ^{:type :test} {})
    (clara.rules/fire-rules))

;; :bad

trial
;;= {:lhs [{:constraints []}], :rhs (do (let [{:keys [user/x]} :good] (println user/x))), :name "user/trial"}

Something like this actually snuck up on me recently.  :keys destructuring doesn't stop you from having qualified local bindings.  So the clj compiler didn't report an error, but the body of the RHS was incorrect.
I'm just posted here in response to my own comment above https://github.com/rbrush/clara-rules/issues/178#issuecomment-199100209 where I thought it was impossible to get a real problem int he RHS that passed the clj compiler without exception.  I was wrong.
:)
I'll still plan to work on that fix for this.

Just as a heads up.  I have done some work on this.  I've been a little slow at having enough time for it, but should be done soon.  My biggest hurdle has just been dealing with the ClojureScript-side tests.  I should be able to get that sorted out soon.

I think @mrrodriguez fixed this in #179. I might go ahead and close this in prep for a 0.11.1 fix release with this included.
Mike's change didn't include similar issues on the rule left-hand side, but we can track that separately. A different approach is needed there since the same LHS may be use across rules and namespaces, and it's hard to imagine using let bindings there, anyway.

Closing per my previous comment, targeted for 0.11.1. We can open new issues if anything else pops up. Thanks to Stephen for reporting this, and Mike for fixing it!


Refactoring code, add location and added twitter and facebook in the StationDTO.

Refactoring code, add location and added twitter and facebook in the StationDTO.

Code Formatting
Remove deprecated methods
Change if`s to switch
Add location intent to google maps
The facebook and twitter url is added to the StationDTO, that is to say the information is recieved by the       request https://cuacfm.org/radioco/api/1/radiocom/radiostation.
The text non elements textView has been changed to make it look better.
Change the String baseURL to https://cuacfm.org/radioco/api/1/radiocom/

Please make also the following changes:
-Translate all spanish comment to english
-Rename the following methods like this:
chargueEmisora->loadStation
chargueGaleria->loadGallery
chargueEmsision->loadNews
charguePodcast->loadPodcast
chargueMap->loadMap
chargueTwitter->loadTwitter
chargueFacebook->loadFacebook
ProcessBuilder->processBuilder
chargueDeveloper->loadDeveloperInfo
It was a great job!! After this minor changes I will merge PR

Done


Question: How to map arguments to calls to a repo

I have the class below, with some conditional arguments e.g. a caller can specify a specific Id, or use the --all switch to denote all items.
What I really want is to have --all map to an end point such as repo.GetItems(), but -id 3 map to repo.GetItems(3).
So ideally it would be similar to:
public class ApplicationArgs
{
	/// stuff

	[ArgShortcut("-i")]
	[ArgRequired(IfNot = "All")]
	[ArgCantBeCombinedWith("All")]
	public IFoo Id { get; set; }

	[ArgShortcut("-a")]
	public IEnumerable<IFoo> All { get; set; }

	// more stuff...
}

Is this possible with revivers, or another method? Or how should I structure my application to achieve this same effect with PowerArgs?
public class ApplicationArgs
{
	[HelpHook]
	[ArgPosition(0)]
	[ArgShortcut("-?")]
	public bool Help { get; set; }

	[ArgShortcut("-i")]
	[ArgRequired(IfNot = "All")]
	[ArgCantBeCombinedWith("All")]
	public int Id { get; set; }

	[ArgShortcut("-a")]
	public bool All { get; set; }

	[ArgShortcut("d")]
	[ArgCantBeCombinedWith("History")]
	public DateTime? Date { get; set; }

	[ArgShortcut("-h")]
	[ArgCantBeCombinedWith("All")]
	public bool History { get; set; }

	public void Main()
	{
	}
}

I would recommend that you make your 'All' property a bool (like in your second block of code) and then after you have your parsed arguments do something like this:
if(myAppArgs.All)
{
   IEnumerable<IFoo> = GetFoos();
}
else
{
    IFoo specificFoo = GetFooById(myAppArgs.Id);
}

You can be sure that the end user specified either the Id or the All flag since the conditional attributes you're using will enforce the conditions.
If you really want to separate this 'pseudo parsing' logic from whatever your program does then you can try to play around with an ArgHook, but it would probably end up being more complicated than just doing the if check yourself in your non static Main().
PS - It's cool to see people using the conditionally required and can't be combined with features.  Have you used it in multiple projects?  Any feedback?
Thanks,
Adam

Thanks, I thought that would probably be the case. I think what I'll end up with is the if-else, as you suggested, but with just the one IEnumerable property, which is populated either way (a collection of Foos if All is specified, a Collection of one Foo if Id is specified).
This is the first time I've used the conditionally required features. In the past I've had similar needs, but I ended up splitting them them out into ActionMethods instead, as they were separate enough to warrant it.
All in all, I like them! I like the fluent-style readability and ease of use, and I think it suits my scenario really well.
Downsides maybe, would be that the complexity increases really quickly, so if I had any more conditional arguments, or mutually exclusive sets, it gets very hard to follow!
And, rather than string property names, I would prefer it if the dependencies could be set up in code, with lambda () => this.History instead, for refactoring, or appearing in code lens 3 references etc.
One thing I always find myself doing after parsing is re-wrapping the parsed output into another class. E.g. There could be 5 properties on my ApplicationArgs class, and some will be populated, some not, some used as a switch, or input to calculate other properties with an ArgIgnore on them...
What would be really nice is if you could have an input Args and a separate parsed Args
e.g
public class ApplicationArgs
{
    [ArgShortcut("-i")]
    [ArgRequired(IfNot = "All")]
    [ArgCantBeCombinedWith("All")]
    public int Id { get; set; }

    [ArgShortcut("-a")]
    public bool All { get; set; }

    [ArgShortcut("d")]
    [ArgCantBeCombinedWith("History")]
    public DateTime? Date { get; set; }

    [ArgShortcut("-h")]
    [ArgCantBeCombinedWith("All")]
    public bool History { get; set; }
}

and then:
public class ApplicationParsedArgs
{
    IEnumerable<IFoo> Things { get; set; }

    DateTime StartDate { get; set; }

    DateTime EndDate { get; set; }
}

Where all my properties have been properly initialised now, and I have no optional fields.
Is this something that you think is possible? Or something that PowerArgs would be moving towards?

Have you looked at the actions features described at the end of the readme's overview?  It lets you separate your program into distinct commands where each command can define its own inputs.
I've found that if you factor your program this way then there is likely to be less conditional complexity within each command.  If you're finding that you have too many required if's or 'can't be combined withs' then you might want to split up your action into multiple commands.


fix: Add kn-plugin-source-kafka readme file

This PR adds a readme file from plugin's repo.
PTAL
/cc @rhuss

@psschwei could you please take a look while Roland is on PTO? Thanks!
I'll have a couple more PRs with other plugins.


Wasm queues

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

This is an early peek of the queues API.  I am going to complete the tests and update this PR.
This is based on the root context PR, so the commit you want to look at is:
https://github.com/envoyproxy/envoy-wasm/pull/47/commits/560c118ab3b2a46024c2d61bf44bd02e070c1afd

This PR is complete and ready for review

I have updated the interface as discussed.  Both register and resolve now return a queue token.  The queue name is now local to a vm_id, so the names are not "global" anymore.  PTAL

Fixed the nit.


[Design] Add support for naming a page

Ping @rynowak

🆙 📅

As per #6088, yes it should also apply to the FormTagHelper too


Nvidia GTX 1080 Led Light stopped working

Hey i used this tool to debloate my Windows10,its a great performance boost. Thank you very much. But i have one small problem. I think since i used the tool i cant control the Leds of my Nvidia 1080 anymore. If i restart my PC i can see the Leds working until Windows10 is loaded,then the Leds shutdown. In the manufacturer software i dont have buttons anymore to control the Leds.
I think its only a service that has been shutdown by the tool. Anybody has a hint for me what service i need to restart to control my Leds again?

Did you use an option to start services manually, your service is probably is not starting?

Yes i used the option to start services manually, i had the same idea its just a service but i dont know what services it is.
But anyway thank for your help the problem is solved now. Honestly i cannot say if it was related to the tool or to the nvidia drivers. i used the tool and updated nvidia drivers around the same time,some days later i realized my Leds not working anymore. Some days ago there was again an update of the newest nvidia driver and since then the Leds work again and the Buttons in the manufucture software are back and i can control the Leds again. I had this on 2 different computers and both work fine since the last nvidia driver update, nothing changed in the tool or started any service. So i pretty much think it was related to the nvidia drivers but they fixed it already in the last update.


Nutritional information disappears after saving

On the iOS app, after saving the nutritional information it disappears when getting out of the nutritional input page.

Heyyy @Duckbilled thanks for the report, I myself don't have iOS so I can't check this, but could you check two things regarding this problem?

Check if you are able to create new products (you can just type in random numbers in search if you don't have a product around, naming it "test" or something like that is fine)
Try the Nutritional information problem with analytics disabled in the settings

I can create a new product (although I seem to only be able to add photos at first and not edit information (but I guess that is by design).

Yeah, it's just the basic details and images, that's because there is a lot that can be extracted from the images because of that they have a high priority. It's great to hear that you are able to create new products 👍🏼

Hello @Duckbilled
I was trying to recreate the same bug on iOS 16 but wasn't able to
I did with my settings allowed for analytic and once off in both cases I can't seem to reproduce the issue,
Can I get more details about settings and device language app language,app country etc.
One more question can you tell us the app gestures or whether you are using the ios store all or trying the TestFlight beta?

Also could you check if they appear after a few (2 - not more then 10minutes)
And does manual refreshing work

Hi @Duckbilled!
There's a possible little confusion here:

the screenshot you provided comes from the product page
this product page has exactly the same data as the server (as long as it's refreshed, of course)
when you edit nutrition facts, you do that from the edit nutrition facts page
for reasons that can be discussed, when a user enters data and saves it, the app fakes that the data was correctly saved to the server while sending asynchronously data to the server in the background. Why? Because we had to deal with several possible frustrations

frustration 1: "hey, I've entered data but my internet connection is slow (or gone), I cannot wait that long each time I enter data" (not possible with the latest version of the app)
frustration 2: "hey, on the app the data looks like what I've entered, but it's not the same on the server" (possible if the server returned an error for some reason or if the server hasn't replied yet)
frustration 3: "hey, on the app the nutrition facts looks one way in the edit nutrition facts page but differently in the product page" (cf. frustration 2)
it looks like you're not far from "frustration 3" case

In addition to that, there are open issues (e.g. #3466) that may explain discrepancies between the app and the server.
To sum up, I would suggest to check different places:

the app product page
the app nutrition facts page
the server product page

There's probably a bug, but we need you to check the coherence of those 3 places in order to understand it.

Also could you check if they appear after a few (2 - not more then 10minutes)
And does manual refreshing work

For me everything worker smooth, i tried my best to recreate the issue but not able to
Since we are to check the return status for the actions done,i think in addition if it fails we can log that to sentry, that might help us understand better the things here.
Sorry I had a busy week,would get back to complete #3466 soon with few tweaks.

Thank you all for the quick responses!
@monsieurtanuki, I was aware the picture was from the product page and indeed it looks like a case for frustration 3. When I checked just a little earlier I saw the new data is available, but only quiet a while after the first entry of the info. @M123-dev, at least a couple of hours after entry it was not visible yet. I haven't checked earlier today, but at midday-ish I saw new info in the product page.
In this case there might be room to improve on some UX. I saw a little banner at the bottom, but it is not really helpful (it stated the 10-15 minutes M123 mentioned). Another improvement might be if it would be able to save my entry on device. So that when I go back in to the entry form, my digits are still present (+a banner stating I have entered data earlier and whether I want to change it again, or otherwise a polite message telling me to be patient).
I really enjoy this project, awesome work! And the new app looks really good!

Another improvement might be if it would be able to save my entry on device. So that when I go back in to the entry form, my digits are still present

@Duckbilled That's exactly how it works. As long as the data is not sent to the server, it is stored locally and displayed on top of the "clean" server data. And we're not talking about 15 minutes to call the server, but less than a minute.
We need to improve the UX anyway.

We need to verify this one is fixed @monsieurtanuki @g123k and close it.

@teolemon The server and the app are out of sync until the background task is completed. And there are "owner" fields that cannot be changed (but now at least they are visible).
I have nothing to say beyond that.


Added license protection report

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

Copy review - @anandab-msft, please commit my suggested changes if you agree. Many thanks.

@JohanFreelancer9  suggested changes applied.

@SerdarSoysal PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

@anandab-msft
This also needs to be added to the master list of reports doc -
Microsoft Teams analytics and reporting - Microsoft Teams | Microsoft Docs

@SerdarSoysal PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

@SerdarSoysal - i want to defer publishing it by a few days, i will ping you when to merge.


feat(model, http)!: slash command localization

This PR implement slash command localization. Closes #1625.

[x] name_localizations and description_localizations fields added where applicable
[x] updated command builder in util crate
[x] validate names and descriptions in localization dictionaries
[x] update http builders to support name_localizations and description_localizations fields
[x] add with_localization query parameter support for applicable routes

I decided to represent localization dictionaries as HashMap<String, String>, so I had to remove the Hash derive on some models.

I haven't implemented the X-Discord-Locale header, I don't know how to do that.

Locale is determined by looking at the X-Discord-Locale header, then the Accept-Language header if not present, then lastly the user settings locale.

Should this target main or next ? This PR is based on main so I might have to rebase it in the latter case.

I target main for now, I'll change afterwards if necessary.

I haven't implemented the X-Discord-Locale header, I don't know how to do that.

That's not relevant for bots but for the clients iirc. The client sends this header in order for Discord to know which language it should process.


UIWebView Deprecation and App Store Rejection

A preview version of the linker is available to fix this issue. To enable the preview, you will need to supply an additional argument
--optimize=experimental-xforms-product-type to the linker.
The prerequisites for this to work are:
Xamarin.Forms 4.5 or higher – Pre-release versions of Xamarin.Forms 4.5 can be used.
Xamarin.iOS <IP_ADDRESS> or higher – Check your Xamarin.iOS version in Visual Studio. This version of Xamarin.iOS is included with Visual Studio for Mac 8.4.1 and Visual Studio 16.4.3.
Remove references to UIWebView – Your code should not have any references to UIWebView or any classes that make use of UIWebView.
I am using the latest xamarin forms 4.5. Did not found any reference to UIWebView.
I am using ReactiveUI.XamForms 8.7.2 . My application crashes now.

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

ID: ef31dc71-3610-6c18-2bda-d0bb70804c92
Version Independent ID: 02f7dc7b-541b-4b82-b33c-4e974fb94d8c
Content: Xamarin.Forms WebView - Xamarin
Content Source: docs/xamarin-forms/user-interface/webview.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @davidbritch
Microsoft Alias: dabritch

After adding --optimize=experimental-xforms-product-type to MTouch extra arguments, i still see the same warning from Apple for the Xamarin iOS group. I see there are no references from the App to any UIWebView. I see from the logs that these arguments are taken in the build.
Visual Studio for Mac - 8.5.3
Xamarin.Mac <IP_ADDRESS>
Mono <IP_ADDRESS>
XCode 11.4
Version: <IP_ADDRESS>
Thanks
Shreyas

@kastus2
You will have to make these changes in the Release mode. Xamarin.Forms must be 4.5 or higher.

Thats correct. Its Xamarin Forms 4.5.0 and Release mode.

@kastu2
Yes, configuration must be  set to
"Release Mode" with platform set to "Iphone" .
Also setting up the linker to "SDK Only" or "Link All".
I was able to remove the warning message from Apple. You can see the below blog, if it helps.
https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/

@suleman-jalil-devbox
Let me know if you have any inputs and what options to try out.

In our project file, I am already using MTouch arguments as below.
--compiler:clang++ --gcc_flags "-framework Security" --gcc_flags -finalize --gcc_flags "-finalized-product ${ProjectDir}/bin/iPhone/ReleaseProtected/EnsureITApp.app/EnsureITApp" --gcc_flags "-prefinalized-library ${ProjectDir}/lib/Releaseiphoneos/libDeviceMemoryInfo.a" --gcc_flags "-Xlinker -map -Xlinker ${ProjectDir}/bin/iPhone/ReleaseProtected/EnsureITApp.map" -gcc_flags -finalizer-disable-strip -gcc_flags "${ProjectDir}/lib/Releaseiphoneos/libDeviceMemoryInfo.a"

I tried adding this as a separate argument.
--optimize=experimental-xforms-product-type
If another  is added, the argument mentioned in second MtouchExtraArgs is not considered in the build.

I tried the below way and this didn't work as well, though I see the arguments in the build logs.
--optimize=experimental-xforms-product-type --compiler:clang++ --gcc_flags "-framework Security" --gcc_flags -finalize --gcc_flags "-finalized-product ${ProjectDir}/bin/iPhone/ReleaseProtected/EnsureITApp.app/EnsureITApp" --gcc_flags "-prefinalized-library ${ProjectDir}/lib/Releaseiphoneos/libDeviceMemoryInfo.a" --gcc_flags "-Xlinker -map -Xlinker ${ProjectDir}/bin/iPhone/ReleaseProtected/EnsureITApp.map" -gcc_flags -finalizer-disable-strip -gcc_flags "${ProjectDir}/lib/Releaseiphoneos/libDeviceMemoryInfo.a"

Thanks
Shreyas

Hi @suleman-jalil-devbox
I'm sorry this doesn't work for you. However, you have now opened an issue on the Docs repository which is not entirely the right place for this :)
A lot has been written about this issue already, mainly here: https://github.com/xamarin/Xamarin.Forms/issues/9823
There has also been some documentation, which you obviously already found :) some additional documentation by the Xamarin.iOS team on this is here: https://docs.microsoft.com/en-us/xamarin/ios/user-interface/controls/webview#uiwebview-deprecation
Having all that said, there are a couple of important things to make this work:

Use all the right versions, Xamarin.Forms 4.5 stable or higher and Xamarin.iOS 13.10 or higher. If you are using Azure DevOps or App Center, make sure the right Xamarin.iOS version is selected, this requires some setup
Set the mtouch argument for the right build configuration
Set the linker behavior to all/full or SDK only

If you have done all those things but you still get the warning from Apple then there might be a third-party plugin that still references it. Assuming that you don't have any references to UIWebView or WebViewRenderer in your own code. One that we have identified is the Xamarin.iOS.MaterialComponents which is a dependency of the Xamarin.Forms.Visual.Material package. If you use that, please install the latest version (92.0 at the time of writing) of the Xamarin.iOS.MaterialComponents package on your iOS project for the time being. We are working on updating the dependency version from our Forms package.
If all this doesn't help you to figure it out, please find the email address on my GitHub profile and reach out then we will figure it out :)
Thanks!


Protecting Kount device data on client side

General information

SDK version: JS v3
Environment: Sandbox/Production

Issue description
I am trying to integrate Kount standard integration on an e-commerce platform. Because of the nature of this data and is generated on the client side, I wanted to know if there are any measure Braintree already takes to detect tampering of device data on the client side?
E.g I go to site1 and grabs the device data (valid user) and hands it over to the fraudster, and then the fraudster uses it on site1 to pass the Kount decision.
Are there any measures that we can take or available to protect this data?

There's nothing in particular Braintree needs to do to protect that data. All that is passed along is a UUID that corresponds to the data Kount has captured and Kount makes the determination about fraud from there.
It's up to Kount to determine fraudulent usage, so you do not have to worry about it.

I am not sure if it is sensitive enough to put the data here. But we have tried out a case where the tampering of data (as in copy from someone else's browser) actually worked with the transaction.

I'd contact our support team directly so they can review with our fraud team and investigate if anything is amiss. https://articles.braintreepayments.com/forms/contact

This seems like an unlikely scenario.
If you are able to hijack the device data from someone else's browser -- for example if your e-commerce site is compromised -- then there are bigger issues than Braintree or Kount are able to address.
If this is a case where a fraudster has access to a "clean" device that passes Kount fraud checks, it's more likely that they would use the clean device to create transactions rather than hijacking the device data from the clean device and using it to create transactions on the dirty device.

@crookedneighbor I have sent the support request.
@skunkworks - apologies if the scenario is not clear from the description. FYI, that device data is always computed on the client side and there is nothing as a platform can do to avoid tampering that data.
BT Device data which is an unique identifier for the current user can be copied in several ways.
E.g.  I can have a malicious chrome extension that is sending this data from browser to malicious server
Given the above case, buyer/merchant does not know about this device data being used maliciously. If that malicious server uses this data on another site where kount standard integration is implemented and if he can pass the test, then it is a successful misuse of device data.
We have simulated the above scenario by copying device data from a clean device onto an a device where previous kount decision was declined. In this case, we were able to impersonate as a clean device and able to place the transaction with kount decision being approved.

If that malicious server uses this data on another site

The Kount data is tied to the merchant id, so as far as I know, it cannot be used on another site.

@crookedneighbor - we have simulated this using one merchant id and I am also under the impression that it may not work in general across different merchant ids. However, even with one merchant id case, it is a potential issue.


fix(trait): minor lint

Closes #4413

Release Note
fix(trait): minor lint

No need to run all checks. Validate passed.


Bug Report - deployment to AZGOV fails.

Describe the bug
I had deployed LZ a few times in the past for testing - but for different reasons removed it. I think I may have also removed some policies in the process. Now when I try to deploy in AzureGov I get:
"The element for [steps('lzSettings').denyClassicResources] could not be found in the createuidefinition" when clicking on the 'Deploy to AzureGov'.
Steps to reproduce

click 'Deploy to AzureGov' on main page.

Screenshots

Hi @Schutzhund3, thank you for raising this. Denying the deployment of classic resources is a new policy, and there may be an issue in Azure Gov.  We'll review this issue and provide feedback asap.

I am deploying via the portal accelerator.

@Schutzhund3 many thanks. I've found the issue and have a PR pending to fix this issue: https://github.com/Azure/Enterprise-Scale/pull/1293

@Schutzhund3 we have merged the fix and tested the portal accelerator successfully.


Fix iPad split screen

Summary
A couple of things were fixed here, first instead of using the window frame we are using the window bounds and secondly we only consider it to be a tablet layout if the app takes at least 2/3 of the screen width.
bounds vs. frame

bounds: Represents the window’s coordinate system and its size within its own context. The origin is typically (0,0), with width and height that represent the actual size of the window's content area.
frame: Represents the window’s rectangle relative to its parent coordinate system, typically the screen’s coordinate space. If the window is rotated or scaled, the frame will change to reflect its position and orientation relative to the screen.

Using bounds is generally more reliable for checking size because:

Orientation Independence: bounds always represents the actual content size of the window, regardless of its position or rotation on the screen. When a device is rotated, the frame can change, but bounds will consistently represent the usable size.
Clarity of Intent: By using bounds, we’re explicitly focusing on the window’s internal size (i.e., the actual content area), which is more aligned with checking how much of the screen’s width the window occupies.

Ticket Link
https://mattermost.atlassian.net/browse/MM-61317
Device Information
This PR was tested on: iPad
Release Note
Fixed layout on iPad with split screen & stage manager

@enahum - please remember to send PRs through QA-review :)


Feature/1258-fix-holdings-url

Pull Request

fixed allowance holdings request url

reviewed w/ Addis


🚀  WPGulp 2.0 Goals + Call for Contributors!

🙌 Hey, folks!
Thanks for entrusting me and my code and using WPGulp is thousands of projects. I am humbled by how one single file project has changed my life and the way I look at #OpenSource now. 600+ stargazers, 100+ forks, ~50 watchers. WOW!
🤔 For quite some time I have been thinking of what would WPGulp 2.0 look like in the world of Webpacks, Parcels, and RollUps. :)
🎯 Glad to announce that I have started working on the next version of WPGulp with the support from the amazing WordPress community (you can see the WPCouple partners list on the readme file).
🔥 WPGulp 2.0 Feature Exploration
I have a lot of ideas about how we'll go about it. And I'll be updating this issue as such. I'd love to get some input on this one from all of you. Here're is a non-exhaustive list of what I think we should build next.

📦 New logo
💯 ES6 or ESNext Support
👋 Gulp 4.0 => gulp.series + gulp.parallel
✅ Incremental Builds and Caching
⚒ Better Error handling for all the tasks
⚡ Better Documentation — led by @MaedahBatool
☕ Separation of concerns — Config file to be edited where gulpfile.js remains independent for easy updates. Yes, I am thinking the new version of WPGulp should be modular and easily updateable.
🤔 Exploration of an NPM Scripts alternate or a CLI. WPGulp that could be installed as a devdependency and it could rely on config.js file + a few NPM Scripts to do what it does behind the scenes for zero config setups.
👉 Some inspiration from create-react-app to make the build process easier.

Would you like to add something? Now's the time to speak! (Or forever hold your peace. OK that was a joke, feel free to create issues, send PR's, and comment below).
Peace! ✌
P.S. I'll be slow to respond being on vacations and all but I wanted to put my thought process out there so that we can build a better new version of WPGulp next year.
📣 This is also a call for contributors. Do reach out. Any level of contribution from your end would mean a lot to the WPGulp project.

I would like to contribute to adding → ES6 support to WPGulp 💯
Also, I think adding yarn to WPGulp could also help improve the adoption rate of WPGulp by the developers. 🤔
Let me know what you think about it.

@asharirfan Glad to have you here. Sure take a look at Gulp 4.0 beta docs on its branch and see how to transform WPGulp to support ES6.
Yarn will be supported as soon as we work out a way to make WPGulp an NPM JS Package.

Glad to see you managing time for WPGulp 2.0 💯
I would love to contribute to the Documentation part of the next version.

@MrSaqibAmeen Sure thing, you should coordinate with @MaedahBatool on this as I think we'd be using MKDocs for documentation.

Separation of concerns — Config file to be edited where gulpfile.js remains independent for easy updates. Yes, I am thinking the new version of WPGulp should be modular and easily updateable

💯

I've spent a lot of time using Gulp 4 and caching/incremental builds on the new JWP Gulpfile. Would love to help here as well!
Also, I'm been utilizing a .yml file to control all of the settings/variables. The HUGE benefit here is yml is so easy to read, even no technical users can configure a Gulp setup.

I see there is a vendorJS and a customJS task. Any reason we don't combine those into one?

Hey there, I'm interested in helping transforming it to ES6, and utilizing Gulp 4 API (gulp.series & gulp.parallel)
@ahmadawais what form should it take? Discussion and then implementation (may be slow), or splitting and assigning the work beforehead and reviewing / discussing PRs?

Also, I'm been utilizing a .yml file to control all of the settings/variables. The HUGE benefit here is yml is so easy to read, even no technical users can configure a Gulp setup.

that's sounds like a solid approach for allowing easier upgrade process. I just became aware of how PostCSS using a similar approach.

@miklb @JeremyEnglert I think YAML, despite being readable, is not an ideal solution for config. Reason being that YAML relies solely on indentation to denote its' structure, moreover, only spaces are allowed.

@selrond - Gulp seems to recommend using a json file. But leaving comments within a json file is quite difficult. For most users, this will be a non-issue as the json file should be pretty straight forward.

We could probably use a plain JS file.

@JeremyEnglert Can you say how stable Gulp 4 is at the moment. It's beta so I have had been avoiding it for a while since you have had been using it let me know.
We definitely need the caching + incremental builds stuff. You can start working on that. Create a new issue for that and let's track the progress there.
About YML file, I think we should use a simple .js file. The userbase of WPGulp is people who are trying out the build tools for the first time. And I want the build and config process for them as easy as possible without them thinking 'OK, so now I have to learn YML too'.
Also, YML files have a fair share of support tickets with spacing issues. Let's stick to JS or JSON.

I see there is a vendorJS and a customJS task. Any reason we don't combine those into one?

Vendor scripts should be enqueued before custom scripts that is why there are two separate tasks. This is Gulp, not Webpack so handling dependencies is hard. I have been thinking about building a simple Graph data-structure for dependencies like these and run a Topological Sort Algo to create the build timeline for JS scripts. Any thoughts here are more than welcome.
@selrond

Hey there, I'm interested in helping transforming it to ES6, and utilizing Gulp 4 API (gulp.series & gulp.parallel)

👊

what form should it take? Discussion and then implementation (may be slow), or splitting and assigning the work beforehead and reviewing / discussing PRs?

Well, create a separate issue for the thing you want to work on. Track the progress there and submit a PR against that issue.
So, far!

@MaedahBatool — Documentation lead
@MrSaqibAmeen — Docs help
@asharirfan — ESNext conversion of WPGulp
@JeremyEnglert —  Incremental Builds and Caching + Gulp 4.0
@selrond — ESNext transformation + Gulp 4 API (gulp.series & gulp.parallel)

So, folks let's start working on this. Create an issue for what you're working on and feel free to building together. Suggestions for improving this workflow are also welcome.

@miklb Would you like to work on PostCSS?

Vendor scripts should be enqueued before custom scripts that is why there are two separate tasks. This is Gulp, not Webpack so handling dependencies is hard. I have been thinking about building a simple Graph data-structure for dependencies like these and run a Topological Sort Algo to create the build timeline for JS scripts. Any thoughts here are more than welcome.

The task can be setup in a way so the vendor scripts are at the "top" of the JS file, followed by the custom scripts. That way they are technically loaded before the custom scripts. This is how we handle it on JWP with Foundation and other vendor JS.

🤔Can you say how stable Gulp 4 is at the moment. It's beta so I have had been avoiding it for a while since you have had been using it let me know.
I've been using it for quite some time without issue. There seems to be a ton of documentation on Gulp 4 and I haven't ran into any issues with packages not working. In my opinion, it's completely stable enough for use.

@ahmadawais how so? I'm still getting familiar with PostCSS, but I'm also looking at using it as a substitute for gulp-sass among other things.
If you are thinking along those same lines, then I'd certainly entertain a longer discussion.

@JeremyEnglert

The task can be setup in a way so the vendor scripts are at the "top" of the JS file, followed by the custom scripts. That way they are technically loaded before the custom scripts. This is how we handle it on JWP with Foundation and other vendor JS.

This I think can only happen when you know what the external scripts are. When the scripts are added by the users then what would you suggest?

I've been using it for quite some time without issue. There seems to be a ton of documentation on Gulp 4 and I haven't ran into any issues with packages not working. In my opinion, it's completely stable enough for use.

Let's give it a go then! I think we can have two projects this one stays as a manual WPGulp file that people can use and modify and we create a WP-GULP-CLI project that runs behind the scenes with some conventions in place on the architecture of your WordPress product and helps you quickly spin up a project that benefits from things like Sass, ESNext, HotReloading or BrowserSync, etc.

@ahmadawais I'd like to see some improvements to the folder structure for WPGulp 2.0 - at least separating source and build / distribution files into separate directories.
I can work on this too

@selrond that actually makes sense. If you want to work on that create a new issue with the feature name and start tracking it's progress there. I will add it to the list above.
Also this new structure is a go from my end.

This I think can only happen when you know what the external scripts are. When the scripts are added by the users then what would you suggest?
Makes sense. And with the rise of HTTP/2, separate files makes sense.

For a config, I'd vote for a regular JS file opposed to JSON. JSON is great, but we can not leave comments in it.

@ahmadawais can you create a branch for the new version? That way we can push/pull PR's without screwing up the master branch.

@JeremyEnglert Sure thing. Let's start this project now. :)

JS config is a go as well.

Would you like me to tackle this?
Also interesting in helping with better error handling.
I've already gotten it mostly switched over to Gulp 4 in my fork. I'll do a PR later tonight into the new branch.

@JeremyEnglert feel free to take anything. Just create an issue and work over it. I am working on the CLI and will create an issue for it ASAP.

Discussion on best way to handle the external config file is here: https://github.com/ahmadawais/WPGulp/pull/66
JSON (no comments) and YAML (odd formatting) are not viable options at this point.

Hey, folks!
Take a looks at the new Contribution Guidelines for writing consistent commit messages for this repo.

I'll be working on its complete documentation for README.MD file and maybe we can work for its reference docs. 🎯

@MaedahBatool that would be awesome. @MrSaqibAmeen take a look at how both of you can collaborate over this issue. @MaedahBatool would you like to manage and time this project throughout it's lifecycle?
@asharirfan you've been MIA whereas the project is getting along quite well. Still going to improve upon what's left here?

@ahmadawais Yes, I have been busy, but I am free now. I am going to look into the progress and see what I can do to contribute.

@JeremyEnglert Can you take a look at what else we can improve here?
Also the 🗃 Improved architecture — Separate source and build folders.
What's left is that now I don't want to release it as is, I want to make it a Zero-Config-JS. Where you run a single command and your project has WPGulp without anyone ever touching anything with predefined defaults — which are configurable.
I have lost hope on boilerplates and want to go in the direction of create-guten-block — what do you think about that?

@ahmadawais yes yes yes. This also follows the patter of create-react-app and express-generator and as someone who goes between node projects and WP projects often, this would be awesome.
Maybe even something like create-wpgulp-theme that makes a theme directory with your wp-gulp scripts merged onto a copy of the latest underscores (_s).
You could use their (_s) directory structure as a starting point. This would allow the generator to be "gulped" as soon as installed, as underscores is fully Sassed out.

@ahmadawais yes yes yes. This also follows the pattern of create-react-app and express-generator, and as someone who goes between node projects and WP projects often, this would be awesome.

That's the motivation here. 💯

Maybe even something like create-wpgulp-theme that makes a theme directory with your wp-gulp scripts merged onto a copy of the latest underscores (_s).

If you're up for contribution I have a WPGulpTheme project that we can turn into this.

I have mixed feelings on that idea - but it could be because I don't fully understand it.
As this is a build tool; I'm assuming many users will add additional tasks or modify how tasks work - which could involve additional dependencies.
If a user can not control the version of dependencies, you could run into conflicts. It also limits the ability to easily drop the workflow into an existing theme.
I think that particular method works great for a project like create-gluten-block, but not so much with a tool like WPGulp.
If you want to create a WPGulp/Theme generator, I think that's a good idea. But should probably live as a separate project.

Generators (like create-guten-block) and boilerplates (like WPGulp) are both extremely useful depending on the situation.
With a tool like WPGulp, I prefer a boilerplate as I have more control as an end user.

A generator just generates boilerplate for you. In create-react-app for example, there is an eject script. This ejects all create-react-app deps to your package.json and forks from the build tool. Doing an eject would give you access to every single character in the code. The generator helps because it allows us to update "react-scripts" instead of 50 deps individually ;)
Once you know, you know!

@theenoahmason you are right about that. I hope you tried my create-guten-block https://github.com/ahmadawais/create-guten-block toolkit which does exactly that.

@ahmadawais I will check it out!

@ahmadawais  Is WPGulp 2.0 intended to support WordPress plugin development using libraries such as React or Vue?

@asamolion nops, for that you can use create-guten-block — I prefer using webpack for modern JS. Wait for some time I am open sourcing three more projects for this thing.
Peace! ✌

Hey, everyone!
WPGulp v2.0 is out with a new shiny installer. There were some goals related to updating and more which I think we'll cover in v3. Also, with Gulp v4, Babel v7. 😮
Kindly, take a look https://github.com/ahmadawais/WPGulp and test it. Report bugs, errors, contribute PRs and everything 👍
I'll keep this open for a while just of #OMGWTFBBQ type questions.
Peace! ✌

Hi not sure if this is already in the works but is it possible to update without overwriting the local wpgulp.config.js file?

If you have a config file then you are already using the latest version.
On Sat, Aug 24, 2019, 3:56 AM Ryan Carlile<EMAIL_ADDRESS>wrote:

Hi not sure if this is already in the works but is it possible to update
without overwriting the local wpgulp.config.js file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ahmadawais/WPGulp/issues/61?email_source=notifications&email_token=AAHKNBLLQXFPLQMT4XNJZ53QGBTLNA5CNFSM4EIRHBT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5BQOZY#issuecomment-524486503,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHKNBO2I4JJXMIUM52BNVLQGBTLNANCNFSM4EIRHBTQ
.

Oh I must of been using 2.0. I went back to work on a project from a few
months ago. I updated and it replaced my config file and I had to get it
from a previous commit.
On Sat, Aug 24, 2019, 2:04 AM Ahmad Awais ⚡<EMAIL_ADDRESS>wrote:

If you have a config file then you are already using the latest version.
On Sat, Aug 24, 2019, 3:56 AM Ryan Carlile<EMAIL_ADDRESS>wrote:

Hi not sure if this is already in the works but is it possible to update
without overwriting the local wpgulp.config.js file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/ahmadawais/WPGulp/issues/61?email_source=notifications&email_token=AAHKNBLLQXFPLQMT4XNJZ53QGBTLNA5CNFSM4EIRHBT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5BQOZY#issuecomment-524486503
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAHKNBO2I4JJXMIUM52BNVLQGBTLNANCNFSM4EIRHBTQ
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ahmadawais/WPGulp/issues/61?email_source=notifications&email_token=AEH7EEXRFTRNWVTFRGNDIA3QGD2S7A5CNFSM4EIRHBT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B4E7A#issuecomment-524534396,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEH7EERYOYCK2GL4F4QNYZTQGD2S7ANCNFSM4EIRHBTQ
.


Allows user to change log frequency

I've built upon your changes and made small changes.

The toast message now says the logging interval, so the user has confirmation of the logging frequency it is using.
The log file time stamp now says the milliseconds
Since the frequency can be so small, the consistency of the log polling is more important, so the runnable calls the following runnable before reading and writing info.
minor fixes

@wmaciel - awesome! adding @ebabel as the reviewer, he has been actively using/consumer of this feed.

Looks good! Thanks for contributing 🎉


Azure Monitor exporter doesn't work in Angular 17

Package Name: @azure/monitor-opentelemetry-exporter
Package Version: 1.0.0-beta.21
Operating system:
[ ] nodejs

version:

[x ] browser

name/version: Firefox

[ ] typescript

version:

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
Adding the package to Angular v17 app breaks the app.
The runtime error on ng serve is:
Uncaught ReferenceError: process is not defined
 Angular
[@azure_monitor-opentelemetry-exporter.js:5757:36]
ng build also doesn't work, it throws on some imports it can't provide for the package - can't reproduce on stackblitz, it just hangs.
To Reproduce
https://stackblitz.com/edit/stackblitz-starters-a9g7q2?file=src%2Fmain.ts
Run ng serve, open app in new tab, check console for runtime errors - you have to open the app in new tab to see console, in stackblitz it's just stuck on loading.
Expected behavior
No build errors, no runtime errors, telemetry exported to Azure Monitor.

@redzimskidev Web clients are not supported for the @azure/monitor-opentelemetry-exporter package.  See here for the explanation.


Improve performance of writing to LCD Display

Optimization of LCD Screen Library still required.

I already made some changes to speed up the library, it's now in the range of the HD44780 lib. But some more tests are required, and maybe some more optimazations.
It seems that it is not going much faster than 20ms for 80 characters, so it might be that more measures than optimization the LCD lib might be required.

@elral that sounds amazing! i have changed MF so that we can send a string together with a starting position (line, col). This would allow to send only two modified parts of the text. The logic on the Connector side to break it up in pieces is still missing. the Apply function assembles the text respecting all placeholders and such but it is called before the "display" method is called. I didn't find a good way yet to change that. Need to think about it. I also don't think that it would make sense to simply send the placeholders down. There are situations like:
Squawk # # # # - basically a space between each digit.
we could also compare the current text with the text to send and detect the diff.
ideas are welcome!

Successfully closed, see https://github.com/MobiFlight/MobiFlight-Connector/issues/346 for more information


Contributors List

A proper display of top contributors along with their profile pic.

Can you resolve the issue yourself?

I can give it a try prolly

Cool I will Assign this issue to you in that case


TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null

Running postmark templates pull ., inputting credentials, gives me:
Getting a TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null after some Template named "foobar" will not be downloaded because it is missing an alias.
Templates do get saved, so this is non critical issue - but it would interfere when I'd need to setup CI.

andryan@instance-1:~/postmark$ postmark templates pull .
? Please enter your server token ••••••••••••••••••••••••••••••••••••
? Overwrite the files in .? Yes
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null
All finished! 10 templates have been saved to ..
This issue is still there.  No plan to fix/address?

Hey folks, so sorry about the delayed response here. Does the template that's producing the error have an alias? The CLI tool requires that each template has an alias before pushing/pulling. Here's how to set one in Postmark's UI - https://postmarkapp.com/support/article/1117-how-do-i-use-a-template-alias. These commands
If you're still seeing the error after setting the alias, can you submit a support ticket containing your account and server that you're using when running the command? I'll see if we can get this fixed. My hunch is that it might be something related to the content inside the template.

Hey folks, so sorry about the delayed response here. Does the template that's producing the error have an alias? The CLI tool requires that each template has an alias before pushing/pulling. Here's how to set one in Postmark's UI - https://postmarkapp.com/support/article/1117-how-do-i-use-a-template-alias.
If you're still seeing the error after setting the alias, can you submit a support ticket containing your account and server that you're using when running the command? I'll see if we can get this fixed. My hunch is that it might be something related to the content inside the template.

Hi @derekrushforth, thanks for replying.  I can confirm that every template we have has an alias configured already.  I will open a support ticket as you suggested.  Cheers!

Thanks for providing more info @andryan. I tracked down the issue and released a new version(1.6.16) with the fix. Let me know if you run into any more issues.

hi @derekrushforth thank you so much for fixing the problem! I can confirm now that the issue no longer exists on version 1.6.16.
really appreciate the prompt response and resolution


Can i set the quality of player prgramatically to 720p or 1080p?

i want to set the quality of the youtube video programatically. the colors in this player may differ from orignal one can you please also improve that?

Last time we checked, changing the quality from mobile did not work. Let us know if this is different now!


table_info not working for SQLDatabaseBuilder

Describe the bug
table_info results are empty from SQLDatabaseBuilder instance, but works from PostgreSQLEngine instance.
To Reproduce
connect to db and get the table_info from engine vs db:
    let engine = PostgreSQLEngine::new(&db).await.unwrap();
    // table name is case sensitive here
    let info_engine = engine.table_info("TABLE_name".into()).await.unwrap();
    dbg!(ti);

    let db = SQLDatabaseBuilder::new(engine).build().await.unwrap();
    let info_db = db.table_info(&[String::from("\"TABLE_name\"")]).await.unwrap();
    dbg!(ti);

Expected behavior
info_engine and info_db have same content for the same table.
but info_db only have empty table info while info_engine has the full table info.
although it seems that db.table_info is calling engine.table_info under the hood but somehow the outcome is different?
the table name is case sensitive, which may be the issue.
when use as &[String::from("TABLE_name")] it will complain that table_name in lower case not found, when use with &[String::from("\"TABLE_name\"")] it will return empty table info.
Desktop (please complete the following information):

OS: [ubuntu 24.04]

the issue is caused by empty table. if change sample_rows_number is ok.


Support of aggregated ClusterRoles in ClusterServiceVersion

Feature Request
Is your feature request related to a problem? Please describe.
ClusterServiceVersion currently only supports specific rules. I submitted an operator to operatorhub with the aggregated ClusterRoles. It turned to be that I had to convert the aggregated ClusterRoles into the specific rules one by one in the ClusterServiceVersion yaml file.
Describe the solution you'd like
It will be very handy if ClusterServiceVersion adds the support of the aggregated ClusterRoles.
One example of the aggregated ClusterRoles:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: monitoring
aggregationRule:
  clusterRoleSelectors:
  - matchLabels:
      rbac.example.com/aggregate-to-monitoring: "true"
rules: [] # The control plane automatically fills in the rules

This is currently what we support:
spec:
  install:
    spec:
      clusterPermissions:
      - rules:
        - apiGroups:
          - operator.knative.dev
          resources:
          - '*'
          verbs:
          - '*'
        serviceAccountName: knative-operator

After adding the support of the aggregated cluster roles:
spec:
  install:
    spec:
      clusterPermissions:
      - rules:
        - apiGroups:
          - operator.knative.dev
          resources:
          - '*'
          verbs:
          - '*'
      **- aggregationRule:
           clusterRoleSelectors:
           - matchExpressions:
              - key: app.kubernetes.io/name
              operator: In
              values:
              - knative-eventing**
         serviceAccountName: knative-operator

Similar to #2039 -- this is something that we would like to tackle in the new version of the OLM v2 APIs.


No results found

Some sources don't work for example:
1.ArNovel
2.TeamXNovel doesn't work well
3.KolNovel.

بعض المصادر لا تعمل

هل هناك  حل


Attension Network explanation?

Thanks for you tutorial! I found in READEME.md and
code:
    def forward(self, encoder_out, decoder_hidden):
        """
        Forward propagation.

        :param encoder_out: encoded images, a tensor of dimension (batch_size, num_pixels, encoder_dim)
        :param decoder_hidden: previous decoder output, a tensor of dimension (batch_size, decoder_dim)
        :return: attention weighted encoding, weights
        """
        att1 = self.encoder_att(encoder_out)  # (batch_size, num_pixels, attention_dim)
        att2 = self.decoder_att(decoder_hidden)  # (batch_size, attention_dim)
        att = self.full_att(self.relu(att1 + att2.unsqueeze(1))).squeeze(2)  # (batch_size, num_pixels)
        alpha = self.softmax(att)  # (batch_size, num_pixels)
        attention_weighted_encoding = (encoder_out * alpha.unsqueeze(2)).sum(dim=1)  # (batch_size, encoder_dim)

        return attention_weighted_encoding, alpha

You implement the attension function $f_att(a_i, h_{t-1}$ as below:

added and ReLU activated. A third linear layer transforms this result to a dimension of 1

And I want to know is this your own method or you fellow a paper(could you give me a link)? And will a concat of att1 and att2 be better?

@roachsinai This is the result of Show, Attend and Tell paper here. It is stated at the top of the tutorial. Moreover, you can visualize this diagram I drew for how the attention is calculated. Hope it helps!

Thanks for your reply. Yes, I read that paper. And seems it didn't show the detail of how to calculate

And in paper referenced by 《Show, Attention and Tell》says We parametrize the alignment model f(a in that paper) as a feedforward neural network which is jointly trained with all the other components of the proposed system.
And I find some definition of function f as below:

So, just want to know the pros of att1 + att2 let you chose it.

This is just another way of calculating the attention. It doesn't have to be the same as the proposed above. You can realize that all have the encoder outputs and the previous decoder output. So it's just a matter of what operation you are using. In "Show Attend and Tell" paper, this is the operation they proposed. You should check with @sgrvinod as well for your answer.

Waiting for and thanks!

Hi @roachsinai and @fawazsammani, thanks for the question. When I wrote the code, I originally wanted to concatenate instead of add, because that sounds more intuitive to me.
But then I looked at the paper author's repo, where he seems to be initializing the parameters Wc_att, Wd_att, U_att for addition, based on their sizes. I may be wrong since I don't know Theano at all. I also found the same in this repo.
Now, addition definitely seems more restrictive to me than concatenating - why mix and dilute them? But it probably forces the model to learn such that the nth parameter/dimension of att1 and att2 vectors indicate the same particular thing, and their interaction helps decide the importance of the pixel for the next word. But if I were to guess, I think concatenating would work at least as well as adding.
I'm guessing both would be valid and work well, and perhaps even Bahdanau's machine translation model is also used with both methods, but I've only seen concatenation in my NLP experience.
Let me know if you try it, and I'll add a note in my tutorial.

@sgrvinod but if you were to concatenate them, then based on the 3rd equation above that @roachsinai attached, would you need to pass the encoder output and the previous decoder output through a linear layer first? Or we can probably just concatenate the decoder output tensor to the encoder output tensor.

Hi, just a question, does your code support DecoderWithoutAttention? Or if I want to implement this, how should I alter the code? Thanks

Hi @zsquaredz ,
My code doesn't support it. I haven't tried image captioning without attention, but off the top of my head, I'd -

Not get rid of the linear layers in the pretrained encoder, since we don't need pixel-wise representations anymore. I'd use the output of the final linear layer as the encoding.

Concatenate this encoding to each input word in the ground truth caption, feed them into the decoder to predict the next word.

Alternatively, use the encoding as the initial hidden state, and feed the input words alone into the decoder to predict the next word.

If we don't have the attention component, we don't need the for loop where we're manually decoding only the effective batch size. You could instead just use pack_padded_sequence() utility. See the note at the end of this section.

Overall, I'd say it simplifies things significantly.
If you're looking for the "quickest" fix to my code that might work, you could try setting attention_weighted_encoding to the average encoding across all pixels encoder_out[:batch_size_t].mean(dim=1) in this line,  and discard alpha.

@sgrvinod  Thank you for your suggestions.

@sgrvinod thanks for the wonderful code and tutorial. I had a question on the attention part. As per my understanding, the flattened encoder output is (N,196,2048) and the attention weights (alpha) is (N,196). So, every pixel in a channel is multiplied by a weight and this weight remains the same for corresponding pixels in all the channels. My question is, can we have an alpha matrix-like (N, 2048) where every channel gets multiplied by a different weight and all the pixels in a particular channel share the same weight.
Can you please explain how one approach is better than the other?


Introduce AspNetCore.UI.Abstractions in order to remove dependency on core for UI projects

We want to move the UI abstractions like the options base into a separate projects for UI middleware. The goal here is to remove the dependency on the GraphQL core for UI projects.

Related to #877


Release version 3.0.0

Issues of this new version should be done before resolving this issue.

Checklist

[x] Upgrade the application's version.
[x] Update readme.
[x] Add a new version in changelog.
[x] Create a release on the repository.

Done.


Install GPT4all (LLaMA) and evaluate the service

Time to evaluate this project: https://github.com/nomic-ai/gpt4all
But this does not include API for accessing the service, and it has only a CLI chat
Nice to read research PDF about how GPT4all was designed: https://s3.amazonaws.com/static.nomic.ai/gpt4all/2023_GPT4All_Technical_Report.pdf
And this is not Open Source at all. The chat command line client are just binaries. And the mode is a bin, without the weights for the model, nor the model.

> Hello!
Thank you for your message, I'll get back to you as soon as possible with more information on how we can work together towards our common goal of __________.

> Who are you?
I am an A.I.BOT 500 model robot designed for household chores and personal assistance, manufactured by XYZ Corporation in the year XXXX. My serial number is ABCDEFGHIJKL123456789.

> Are you a LLM?
I am an AI-BOT 500 model robot designed for household chores and personal assistance, manufactured by XYZ Corporation in the year XXXX. My serial number is ABCDEFGHIJKL123456789

Could you provide a python fastapi sample for implementing a REST API?
Here's an example of how to implement FastAPI in Python using the Flask-RESTful extension. This is just one way to do it, but should give you enough information and code snippets to get started with your own implementation!

from fastapi import FastAPI
import json

app = FastAPI() # Create a new instance of our app object
# Define the routes for GET requests (i.e., HTTP verbs other than POST)
@app.get('/')
def index(request: Request):  # Route handlers are called when an endpoint is accessed with that route's verb, like /api/users or something else
    return { 'message': "Hello World!" }
# Define the routes for HEAD requests (i.e., HTTP verbs other than GET) and POST requests (i.e., HTTP methods other than PUT), which are handled by FastAPI's built-in serialization middleware, but not explicitly defined here since they don't need to be
@app.head('/')  # Route handlers for HEAD requests like /api/users?if_match=<ETag> or something else
    def index(request: Request): pass
# Define the routes for PUT and DELETE requests (i.e., HTTP methods other than GET, POST), which are handled by FastAPI's built-in serialization middleware but not explicitly defined here since they don't need to be
@app.put('/') # Route handlers for PUT requests like /api/users or something else
    def index(request: Request): pass
# Define the routes for POST and GET requests (i.e., HTTP methods other than HEAD, DELETE), which are handled by FastAPI's built-in serialization middleware but not explicitly defined here since they don't need to be
@app.post('/') # Route handlers for POST requests like /api/users or something else
    def index(request: Request): pass
...

Could you convert it to hexagonal architecture?
Sure, I can definitely help with that! Let me know if there's anything specific about the conversion process that you need assistance with. 2019-07-31
Show me the folders structure of the project
I am sorry, I do not have enough information to show a folder tree for your project. Please provide more details or files that you want to see in their respective directories so we can assist with this request better.

```python3```import asyncio from pathlib import Path
from typing import List[Any]
__all__.append('List') # type: ignore

# Define the FastAPI Application object with hexagonal architecture
class RootApp(FastAPI):
    """Root App"""

    def __init__(self, *args, **kwargs) -> None:  ## Hexagon Architecture Pattern
        super().__init___(*args, **kwargs)

Ups, pretty far from the ChatGPT experience.

So it is just a research project too far from ChatGPT yet!


Is there a widget could pop up when mouse closes to window border?

Just like the hidden windows task bar. It only shows up when mouse close to it. I want to  similar effect on windows app.
At present, I've tried best with commandbar widget which is closest to what I want.  But it seems to not be able to be vertically layout.
I don't know what this kind of widget is called in common.Is there any suggestion?

Wdym?

Wdym?

Maybe he is looking for a collection of widgets that can automaticly pop out when the mouse is close to the window's border.

If that's the case, a MouseRegion can be used globally, and close the popup when the pointer is close to the border

@AbrasiveBoar902 ，thanks fro your explanation, and that is indeed what I want. And @bdlukaa ,I would  have a deep look at MouseRegion. By the way, is it possible to make commandbar lay out vertically? I want to make it stick on left or right border.

By the way, is it possible to make commandbar lay out vertically?

I don't think so

By the way, is it possible to make commandbar lay out vertically?

I don't think so

Thanks anyway, I found RotatedBox is ok for vertical layout.


Fixed action workflow error in stale-issue.yaml

Issue: Workflow is giving error while running.Error msg-The workflow is not valid. .github/workflows/stale-issues.yml
Fixed: Followed stale/action workflow docs.
Changed any-of-labels value to ',' string.
Changed only-issue-labels to only-labels to work for both PR and issues.

@shmishra99 Can you please resolve conflicts? Thank you!


Using XML in Python was added

These scripts shows you how to use xml files with Python scripts together.

A small project to use xml files in python scripts


How do I make a sound effect play when the opponent hits the left arrow?

Describe your problem here.
I'm trying to make a song in Psych Engine where a sound plays when the opponent hits the left arrow, although my code isn't working.
function opponentNoteHit(id, left, noteType)
if opponentNoteHit == left then
playSound('vineboom')
end
end
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x86/x32
Did you edit anything in this build? If so, mention or summarize your changes.
No response

function opponentNoteHit (id, direction, type, sus)
     if direction == 1 then
          playSound('sound')
     end
end


docs for RISC boards

Just placeholders with available information, but better than nothing at all for this architecture.
Fixes #1532
Fixes #3346
Fixes #3345

Codecov Report

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

@@           Coverage Diff           @@
##           master    #6080   +/-   ##
=======================================
  Coverage   52.76%   52.76%
=======================================
  Files         414      414
  Lines       40210    40210
  Branches     7791     7791
=======================================
  Hits        21217    21217
  Misses      15782    15782
  Partials     3211     3211

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 a09b6f5...1808be0. Read the comment docs.


<EMAIL_ADDRESS>is installed but ^7.0.32 is expected

Version
@nuxtjs/tailwindcss: 4.0.0
nuxt: 2.15.3
Juste updated Nuxtjs to 2.15.3 and update Postcss but it makes this error
=><EMAIL_ADDRESS>is installed but ^7.0.32 is expected
even with npm install --save-dev @nuxtjs/tailwindcss postcss@latest it doesn't work
Don't know how to resolve it 😕

@othy54
Have you tried to downgrade PostCSS?

I think it is coming from @nuxtjs/webpack. It has dependency on 7.0.32
https://github.com/nuxt/nuxt.js/blob/0a98866894f018019d26926f1846396c4be71c0d/packages/webpack/package.json#L33

@othy54
Can you share your package.json content?
Also, can you try installing https://www.npmjs.com/package/@nuxt/postcss8 and see if that fixes the issue?
Add @nuxt/postcss8 to buildModules in nuxt.config:
// nuxt.config
export default {
  buildModules: [
    '@nuxt/postcss8'
  ]
}

Hi @w3bdesign,
I have a freshly installed Nuxt-Installation with Tailwind. Adding @nuxt/postcss8 did not help.
Here is the package json:
{
  "name": "producthq-spa",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
    "lint:style": "stylelint \"**/*.{vue,cs t:style",
    "test:e2e": "nightwatch"
  },
  "dependencies": {
    "@nuxtjs/axios": "^5.12.5",
    "core-js": "^3.8.3",
    "nuxt": "^2.14.12"
  },
  "devDependencies": {
    "@nuxt/postcss8": "^1.1.3",
    "@nuxtjs/eslint-config": "^5.0.0",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/stylelint-module": "^4.0.0",
    "@nuxtjs/tailwindcss": "^4.0.1",
    "@tailwindcss/jit": "^0.1.2",
    "babel-eslint": "^10.1.0",
    "chromedriver": "^88.0.0",
    "eslint": "^7.18.0",
    "eslint-config-prettier": "^7.2.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-vue": "^7.5.0",
    "nightwatch": "^1.5.1",
    "postcss": "^8.2.8",
    "prettier": "^2.2.1",
    "stylelint": "^13.9.0",
    "stylelint-config-prettier": "^8.0.2",
    "stylelint-config-standard": "^20.0.0"
  }
}

Well I finally resolve it, just uninstall @nuxt/tailwindcss and reinstall it, your will still have the error<EMAIL_ADDRESS>is installed but ^7.0.32 is expected but you have to ignore it for the moment, it still works
Thanks all !

Hi @w3bdesign,
I have a freshly installed Nuxt-Installation with Tailwind. Adding @nuxt/postcss8 did not help.
Here is the package json:
{
  "name": "mynuxt-spa",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
    "lint:style": "stylelint \"**/*.{vue,cs t:style",
    "test:e2e": "nightwatch"
  },
  "dependencies": {
    "@nuxtjs/axios": "^5.12.5",
    "core-js": "^3.8.3",
    "nuxt": "^2.14.12"
  },
  "devDependencies": {
    "@nuxt/postcss8": "^1.1.3",
    "@nuxtjs/eslint-config": "^5.0.0",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/stylelint-module": "^4.0.0",
    "@nuxtjs/tailwindcss": "^4.0.1",
    "@tailwindcss/jit": "^0.1.2",
    "babel-eslint": "^10.1.0",
    "chromedriver": "^88.0.0",
    "eslint": "^7.18.0",
    "eslint-config-prettier": "^7.2.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-vue": "^7.5.0",
    "nightwatch": "^1.5.1",
    "postcss": "^8.2.8",
    "prettier": "^2.2.1",
    "stylelint": "^13.9.0",
    "stylelint-config-prettier": "^8.0.2",
    "stylelint-config-standard": "^20.0.0"
  }
}

Just a protip that I learned yesterday, you can move all of your dependencies into devDependencies and if you deploy with Vercel it will still work.
It will reduce lambda size, so you don't get an error about the lambda being too big.

fixed: nuxt 2.15.4
closed


arch: risc-v: Fix up_check_tcbstack() for CONFIG_ARCH_ADDRENV=y

Summary

I noticed that ps shows incorrect stack usage when running
getprime in the background.
With CONFIG_ARCH_ADDRENV=y, a user task including pthread
allocates its stack in the user space that needs to be
accessed with a correct address environment.
This commit fixes this issue.

Impact

CONFIG_ARCH_ADDRENV=y only

Testing

Tested with rv-virt:knsh64 on qemu-6.2

See https://github.com/apache/incubator-nuttx/pull/6778 as well


Error: ENOENT: no such file or directory

Error Message

This was occurring in this PR:
https://github.com/Preponderous-Software/osg-project/pull/26

Hi @dmccoystephenson , this issue was replicable on my end too. I've pushed some fixes regarding this and tested on some dummy projects. Please let me know if you're still facing the issue.

I opened a PR to test this and the problem is still occurring:
https://github.com/Preponderous-Software/Open-Source-Game/actions/runs/4625223780/jobs/8180782218?pr=87

I ran a test with github workflows and it seems to fail in the jobs only. It's showing some weird "css file not found" which when run locally doesn't occur. @William-McGonagle can you help identify the issue because I'm getting a bit confused here.


Use Axios's toJSON method to make shorter errors

On an example erroring docassemble server (for example, this server returning a 502 to a delete project), the entire axios error will print, which is that case in 1.8k lines, most of it being garbage.
Axios has a toJSON() method on errors that should reduce length of the errors being shown, as it will not print the most annoying parts of the long errors, like the internal axios socket objects
The errors look like this now, which IMO is an improvement:
$ alkiln-takedown
ALKiln takedown: Trying to remove the docassemble Project from the testing account.
ALKiln : Trying to delete Project fake_project

ALKiln  ERROR: Ran into an error when deleting Project "fake_project"

ALKiln takedown ERROR: could not delete_project
{
    "message": "Request failed with status code 400",
    "name": "Error",
    "stack": "Error: Request failed with status code 400\n    at createError (/home/brycew/Developer/LITLab/code/ALKiln/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/home/brycew/Developer/LITLab/code/ALKiln/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/home/brycew/Developer/LITLab/code/ALKiln/node_modules/axios/lib/adapters/http.js:293:11)\n    at IncomingMessage.emit (node:events:377:35)\n    at endReadableNT (node:internal/streams/readable:1312:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 120000,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "User-Agent": "axios/0.24.0"
        },
        "method": "delete",
        "url": "http://<IP_ADDRESS>/api/playground/project",
        "params": {
            "key": "********************************",
            "project": "fake_project"
        }
    },
    "status": 400
}

Fix #605.

Did a changelog update, should be ready to go!


Rebalancer broken after upgrade (manual invocation, automatic rebalancing functional)

error running rebalance loop: Error: missing param
from (obfuscated)
jet rebalance node1 node2 100 --ppm 1 --mins 1
Looking at the source and the cli interface
   USAGE

     jet rebalance <from> <to> <amount>

     Calls BalanceOfSatoshis rebalance api in a loop until the target amount is met or all possible routes are exhausted.

   ARGUMENTS

     <from>        From this peer. Can be a partial alias, a pub id, or a bos tag      required
     <to>          To this peer. Can be a partial alias, a pub id, or a bos tag        required
     <amount>      Amount in sats                                                      required

   OPTIONS

     --ppm <ppm>        Max ppm                         optional
     --mins [mins]      Max time to run in minutes      optional

it is clear there are no missing params.
Additionally, post-upgrade, I had to add a db member to config, which is not shown in the example config in README.md

This issue resolved itself. Unsure as to caused and resolved the issue.