Unable to download by member_id

Prerequisites

[x] Did you read FAQ section in readme.md?
[x] Did you test with the latest releases or commit ?
[x] Did you search for existing issues in Issues?

Description
Not sure what might be causing the issues but I am unable to download by member ID. I tried to download by image ID and it worked just fine.
Input: 1
Member ids: 16916292
Start Page (default=1):
End Page (default= 0, 0 for no limit):
Include Pixiv Sketch [y/n]? n
Member IDs: ['16916292']
Reading C:\Users\thomas\Documents\pixivutil20201130\config.ini ...
Configuration loaded.
Processing Member Id: 16916292
Page
Member Url: https://www.pixiv.net/ajax/user/16916292/illustmanga/tag?tag=R-18&offset=0&limit=48
Using OAuth to retrieve member info for: 16916292
Member Name  : Grandia元
Member Avatar: https://i.pximg.net/user-profile/img/2016/01/18/12/59/02/10400412_5a962397abbbf0687fd2ab596e2a8bbe.jpg
Member Token : [deleted]
Member Background : https://i.pximg.net/c/1920x960_80_a2_g5/background/img/2020/10/26/03/30/29/16916292_1c986c8e832637eda62e323d1a9d1d1b.jpg
Processing images from 1 to 167 of 167
No image found for: 16916292
Member_id: 16916292 completed: no images were found.

Steps to Reproduce

Open PixivUtil2.exe
Select option 1. Download by member_id
Enter member_id
fail to download

Expected behavior: Download images under member ID
Actual behavior: Grabs profile, nothing downloads
Versions
v20201130

To update I changed the viewing restriction settings for the pixiv account to show explicit content and I was able to download only the nsfw images while I have the r18mode = True. After I changed the r18mode = False it was able to download all of the sfw images. Not sure if this is a bug or if I need to change this setting anytime I want to download sfw or nsfw.

To update I changed the viewing restriction settings for the pixiv account to show explicit content and I was able to download only the nsfw images while I have the r18mode = True. After I changed the r18mode = False it was able to download all of the sfw images. Not sure if this is a bug or if I need to change this setting anytime I want to download sfw or nsfw.

please check the readme.md.
Q6. The app doesn't download all the images! (I want to download SFW images too).
    - Pixiv only allow to search up to 1000 pages if you don't have Pixiv
      Premium.
    - Check your pixiv website settings (refer to https://goo.gl/gQi09v),
      then delete the cookie value in config.ini and retry.
    - Check the value of r18mode in config.ini. Setting it to True will only
      download R-18 images.

please check the readme.md.
Q6. The app doesn't download all the images! (I want to download SFW images too).
    - Pixiv only allow to search up to 1000 pages if you don't have Pixiv
      Premium.
    - Check your pixiv website settings (refer to https://goo.gl/gQi09v),
      then delete the cookie value in config.ini and retry.
    - Check the value of r18mode in config.ini. Setting it to True will only
      download R-18 images.


[3.x] Update Meta hand tracking version

https://developer.oculus.com/blog/presence-platforms-hand-tracking-api-gets-an-upgrade/

Bugsquad edit: 3.x version of https://github.com/godotengine/godot/pull/60638.

Thanks!

Cherry-picked for 3.4.5.


Add Dockerfile

Add simple Dockerfile to use as a Linux container.

Just my namespace on dockerhub, that contains the image. I can remove it if needed.

Please do remove this. I think having a docker file is good enough, people
with the need to run the CLI that way would just use it.

Reverted the readme.

Thank you! 👌


Mailer failure doesn't show a reasonable error message

Love this project, thanks so much!  This may be out of scope of Addict; I'm adding it as an issue to help others who run into it.
Walking through the readme setup guide, I encountered an error when attempting to create an account on the /register route.
Error:
[error] #PID<0.976.0> running Workshop.Endpoint terminated
Server: localhost:4000 (http)
Request: POST /register
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in IO.chardata_to_string/1
        (elixir) lib/io.ex:346: IO.chardata_to_string(nil)
        (elixir) lib/path.ex:467: Path.join/2
        (elixir) lib/path.ex:449: Path.join/1
        lib/client.ex:44: Mailgun.Client.send_without_attachments/2
        lib/addict/mailers/mailgun.ex:11: Addict.Mailers.Mailgun.send_email/4
        lib/addict/interactors/register.ex:26: Addict.Interactors.Register.do_register/2
        lib/addict/controller.ex:16: Addict.AddictController.register/2
        lib/addict/controller.ex:1: Addict.AddictController.action/2
        lib/addict/controller.ex:1: Addict.AddictController.phoenix_controller_pipeline/2
        (workshop) lib/phoenix/router.ex:261: Workshop.Router.dispatch/2
        (workshop) web/router.ex:1: Workshop.Router.do_call/2
        (workshop) lib/workshop/endpoint.ex:1: Workshop.Endpoint.phoenix_pipeline/1
        (workshop) lib/plug/debugger.ex:93: Workshop.Endpoint."call (overridable 3)"/2
        (workshop) lib/phoenix/endpoint/render_errors.ex:34: Workshop.Endpoint.call/2
        (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
        (cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4

Steps to reproduce:

Sign up for a mailgun account
Do not active mailgun account (do not click the email verification link)
Visit /register/ endpoint and create an account.  Server throws a 500.

Thanks @StephenGrider! I'll make sure to have that addressed too 😄

@StephenGrider  Did you manage to get rid of the error?
Cheers.

@kevin-DL it seems what was missing was activating the mailgun account. Did you verify your e-mail address?

@trenpixster : yes i have, in my case i have looked into it and it seems like it's not retrieving the configuration information. I will check my config.exs to see if  i might have made a typo.

That was it, some of my environment variables were not set properly.
Cheers.

It works properly on my local machine but not on heroku.
Any ideas?

I'm having this exact issue. I'm using the the sandbox API that Mailgun creates when you sign up as my DNS haven't yet been verified.
@kevin-DL what environment variables were missing in your case?

I've tried it on a real, verified, active domain associated to a verified Mailgun account, but it keeps on failing exactly like in the issue description.

I'm having the exact same problem. I've added mailgun through heroku and copied the API-url from the active sandbox domain into addict during installation.

In my case for my local env i was missing the env variable for the mailgun key  was not set properly so returned nil when accessed

It however does not work properly on heroku @Devalo  for some reason. It was working at some point today but after an update it stopped working

In my case it fails with Addict 0.2.4 and Mailgun client 0.1.2.
I've tried with the same Mailgun credentials in the example app that comes with Addict, and I get this error instead:
➔ mix phoenix.server
[info] Running ExampleApp.Endpoint with Cowboy using http on port 4000
[info] POST /register
[debug] Processing by Addict.AddictController.register/2
  Parameters: %{"email" =><EMAIL_ADDRESS>"name" => "Jaime", "password" => "[FILTERED]"}
  Pipelines: [:addict_routes]
[debug] INSERT INTO "users" ("inserted_at", "updated_at", "email", "encrypted_password", "name") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [{{2016, 5, 23}, {20, 8, 11, 0}}, {{2016, 5, 23}, {20, 8, 11, 0}}<EMAIL_ADDRESS>"$pbkdf2-sha512$100000$l8htaZWlZXlhPWuocUhlwA$QgMIHTOWP5ebC8ojmP.ZZovmbPFI0xKHPz90hy4PEu1cHUuJ/BV52T7CoOEUKuA6ZGsfDcHa5AufU5H4/ZTqbA", "Jaime"] OK query=147.7ms queue=21.6ms
[debug] Unable to send e-mail to<EMAIL_ADDRESS>:error
[debug] status: bad_fetch
[%{message: "Email: Unable to send e-mail (bad_fetch)"}]
[debug] reason:
[debug] no_scheme
[info] Sent 400 in 599ms

Really weird, everyone :| Can you try running mix deps.clean --all an try again?

It works now! Thanks :)

Did not work for me. I will re-try my heroku install from scratch and see how it goes

a mix deps.clean --all helped for me, not sure why though

Yeah, same issue, and mix deps.clean --all worked! Thank you! 😄

Used mix deps.clean --all
Verified recipient emails were verified

Received error:
[debug] Unable to send e-mail to<EMAIL_ADDRESS>[debug] status: bad_fetch
[debug] reason:
[debug] no_scheme

In case this happens to anybody else, the issue was my mailgun_domain in config :addict
it was mailgun_domain: sandboxXXXX.mailgun.org
had to change it to mailgun_domain: https://api.mailgun.net/v3/sandboxXXXX.mailgun.org

In case this happens to anybody else, the issue was my mailgun_domain in config :addict
it was mailgun_domain: sandboxXXXX.mailgun.org
had to change it to mailgun_domain: https://api.mailgun.net/v3/sandboxXXXX.mailgun.org

This sent me in the right direction.
The updated link was in the API section of my Sending domains in any of the pre-built programs.
In my case, they added a /messages to the end fo the domain...


Numpad 3D shortcuts only work with numlock on

Godot version
3.4.beta4
System information
Windows 10 Lenovo IdeaPad Flex, keyboard is logitech
Issue description
Keyboard shortcuts for 3D like numpad 5 to switch orthogonal do not work unless numlock is on.
Steps to reproduce

Turn numlock off
press 5 on the numpad
turn numlock on
press 5 on the numpad

Minimal reproduction project
No response

If you create an _input(event) function and print(event) inside, do you get anything printed when you press numpad keys with numlock disabled in the Output panel?
I wonder if Godot can even "see" the key presses here.

Yes, the event gets printed out.

I guess this can be fixed by assigning a second shortcut by default once https://github.com/godotengine/godot/pull/51273 is merged.

I am quite confident this is 100% expected and correct. The shortcuts are for Keypad numbers.
The whole point of numlock is that is switches between two different functionalities of the numpad. See below from this site.

In Godot, make a script with func _input(event): print(event.as_text) and with numlock on it will print numbers (KP_8, etc), and with numlock off, it will print home, pageup, end, UNKOWN, etc (for 7, 9, 1, and 5 respectively).

Indeed, that's expected behavior. We could handle both events for the 3D shortcuts but I don't see much point doing so, as it may conflict with existing shortcuts, or prevent users from using those keys for their own shortcuts.

We could handle both events for the 3D shortcuts but I don't see much point doing so, as it may conflict with existing shortcuts, or prevent users from using those keys for their own shortcuts.

If https://github.com/godotengine/godot/pull/51273 is merged, we can support this out of the box while allowing users to customize both shortcuts.

For future reference, I can't reproduce this issue on master on Linux (using the fr-oss keyboard layout). So this appears to have been resolved indirectly somehow.


Use next link from group membership request

loadUsers() only gets the first 100 groups a user belongs to rather than
using the odata.nextLink in the response to get the full list of groups.
Fix this by checking if the response contains an odata.nextLink and then
build the URL appropriately for the configured API version.
For V1 odata.nextLink contains a skip token which we extract. More
information here: https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/api/users-operations#get-a-users-manager--
For V2 odata.nextLink can be used directly as the URL for the request
as specified here: https://docs.microsoft.com/en-us/graph/paging
fix #14222

Can one of the admins verify this patch?

@ppartarr I have a concern that if the organization has thousands of groups, then the loadUserGroups() will cost a lot of time.  whether we can let the user choose to search all groups or not?

@zhoufenqin loadUserGroups() doesn't retrieve all the AD groups but simply the groups that the user is a member of. Arbitrarily omitting groups from loadUserGroups() isn't how the azure-spring-boot library should behave as it will break applications depending on group membership information. This decision shouldn't be left to the user. See bug https://github.com/Azure/azure-sdk-for-java/issues/14222 for more information
Aside: if an organisation assigns their AD users to thousands of groups they probably aren't using group nesting correctly. Nevertheless, from my experience, it isn't uncommon for users to be a part of hundreds of groups.

/azp run java - spring - ci

/azp run java - spring - ci

@chenrujun can you have a look at the failing tests please? It says that the TodoListController requires 2 parameters but this is clearly not the case from the changes in my pr: failing TodoListController line & UserGroup constructor

Hi, @ppartarr .
Please rebase to latest master branch to solve this problem.

/azp run java - spring - ci

@chenrujun all tests are passing, are you okay to merge this branch in?


Remove name requirement at cmd level

Some files like index don't need to be written out and named at the cmd line
Adds check after all functions have been applied whether the filename is valid before printing adding more security than before given the way names are generated

this seems like a good thing. two things though:

i like to avoid adding additional dependencies if possible. we replace the valid-filename package by just pulling the source into a helper. it's like ~20 lines of code total:

https://github.com/sindresorhus/valid-filename/blob/master/index.js
https://github.com/sindresorhus/filename-reserved-regex/blob/master/index.js

is there an error message reported for commands that do require names? not a big deal but if there's some easy thing we can do to keep error reporting consistent that would be nice. this might be a slightly larger thing to think about though (e.g. parsing the args section of the command)


Filter correction

This is connected to dojot/dojot#573

Clossing this pull request because of this solution exists in the pull request: Query Optimization.


UX improvement: Better example for base URL in wizard

The example
Please specify the base URL of the production server (f.e. github.com).
should be
Please specify the base URL of the production server (f.e. https://github.com).
For me giving a base without the protocol failed, since the server does a redirect (that seems not to be followd by synco).
$ synco receive ts-xxxxxxx xxxxxxxxxxxxx-yyyyyyyyyyyyyyy
 INFO  Please specify the base URL of the production server (f.e. github.com).
Base URL: www.acme.com
 WARNING  We could not find the file www.acme.com/ts-xxxxxxx/meta.json.enc. Please supply a new base URL.

Base URL: https://www.acme.com
 SUCCESS  Found correct base URL at https://www.acme.com.

@kdambekalns hey,
could you please run synco again with "--debug" on the client side and post the logs here? There is functionality included which should automatically try with and without https:// and http:// etc prefixes - see here https://github.com/sandstorm/synco/blob/main/pkg/receive/cmd/receive-cmd.go#L140-L160
Seems this does not work properly - so I'd love to fix this for your particular case :)
We currently do not follow redirects, in order to find the best-matching URL: https://github.com/sandstorm/synco/blob/17f6ac439f11db1d7be260513f83fa09d24933c5/pkg/receive/receive-session.go#L50-L53 But maybe this should be changed...
All the best,
Sebastian

weirdo. OK. If it happens again, please re-open :)


Snake Ladder Game with JS

I want to add this game on the website. It would be my first time contributing in open source. I am under GSSoC'23

I would be making the snake ladder game through JS and try my level best to make it creative

Project already present


Swagger expand add invalid authorizationUrl key in securityDefinitions

Problem statement
When using swagger expand on a Swagger document with a OAuth2 flow: application security definition, expand adds an invalid empty string key authorizationUrl to the security definition.
The authorizationUrl key is only valid when used with flow: implicit or accessCode, not with application.
Swagger specification
swagger: "2.0"
securityDefinitions:
  OAuth2:
    type: oauth2
    flow: application
    tokenUrl: https://example.com/oauth/token

Steps to reproduce

Run swagger expand test.yaml
The output contains an empty string key authorizationUrl in the key

swagger: "2.0"
paths: null
securityDefinitions:
  OAuth2:
    type: oauth2
    flow: application
    authorizationUrl: ""
    tokenUrl: https://example.com/oauth/token

Environment
swagger version:
version: v0.26.0
commit: 640fa2f19f215cda0b815a4bb9a26aae2bd477d2

go version:
go version go1.15.3 darwin/amd64
OS:  Mac OSX 10.14.5

It seems that behaviour reproduced in the v0.26.1.
@fredbi
Steps:
# enter docker container with go-swagger:v0.26.1
docker run --rm --name sw -it -v $(pwd):/src --entrypoint /bin/ash quay.io/goswagger/swagger:v0.26.1

# see original file
/go # cat /src/sw3.yml
swagger: "2.0"
securityDefinitions:
  OAuth2:
    type: oauth2
    flow: application
    tokenUrl: https://example.com/oauth/token

# go-swagger result
/go # swagger expand --format yaml /src/sw3.yml
swagger: "2.0"
paths: null
securityDefinitions:
  OAuth2:
    type: oauth2
    flow: application
    authorizationUrl: ""
    tokenUrl: https://example.com/oauth/token

@elipavlov it was fixed with v0.20.3 of the go-openapi/spec which includes fredbi's fix https://github.com/go-openapi/spec/blob/v0.20.3/security_scheme.go#L128
The go-swagger version 0.26.1 which you mentioned still uses v0.20.2 of the go-openapi/spec, but the current master branch already depends on the newer v0.20.3 so I would assume that this issue here will be fixed as part of the next release.

@jokaio thanks for the explanation.
Sorry for the false alert.


Install NGSpice And Klayout Using Conda

LiTeX-Hub has ngspice and klayout that seem to be up to date.
The dependencies.sh script installs these from the source. The installation would be greatly sped up if these packages were also installed using conda. Perhaps this could be kept as an option in case the latest versions are required for testing. By default, the conda versions can be installed to make local environment setup faster.

I think the installation time is offset by the customizability of installation from source, which might be desirable for developers working in local envs

We started work on adding klayout to conda-forge.  It is really close to being complete.
Check out the following PR with the klayout Conda recipe in-progress:
https://github.com/conda-forge/staged-recipes/pull/22419

ngspice is already available from the conda-forge channel.


Fix general pipeline failures

Run pre-commit hook
Update license year

Integration test failure:

Failed due to time out/limit. Passed in Gitlab pipeline


Fix :Form Submission Triggering on Empty Required Fields

Fixes#16
The solution adds manual validation to the login process by checking if both the email and password fields are filled before sending a request to the server. If either field is empty, it shows an alert message and prevents the submission, ensuring that the user provides the required information before proceeding.

Sure ...!!!

Thank you for suggesting
Looking for merging request!!

Thanks for your contribution @ADeshmukh80 . If you would like to contribute more just create an issue and start contributing or work on an existing issue

Yes...Sure!!!


Proposal: Remove tools and extensions that only support EF Core 2.

Too remove stale/obsolete extensions and tools, thus making the list more valuable.

2.1 support ends on August 21, 2021
We should keep 2.1 compatible tools till then.

Fair enough


Updated packaeg one line description to something more interesting

Work for this issue will begin begin on branch work-liquid-labs/cloudsite/42.


Not Updating Blockchain on Windows 10 After Update

Not Updating Blockchain on Windows 10 After Update
I Downloaded the update and ran the install into a subfolder
of C:\Program Files (x86)\HTMLCOIN
called it C:\Program Files (x86)\HTMLCOIN2\NEW VERSION
Because I was not sure how to backup old wallet and did not want to override it.
When I launch wallet coins are there but block is
stuck at 106004 blocks.
Stuck at syncing headers 99.3%
Shows 14 connections
But, No green in progress bar.
Can someone help me to update correctly?
Machine specs:

OS: Windows 10 Home 64-bit
CPU: Intel Core i5 4440
Cores	4

Seems like I am having a similar issue. I checked my Windows Updates logs and don't show any recent updates other than Jan 9th. I was running fine just up until a couple of days ago when I had to reboot my cable modem while my mining cli was running.

I have the same issue after installing HTMLCOIN CORE Version v<IP_ADDRESS>-beta (32-Bit).

The clients should switch to the longer chain, I'm wondering if blocks adhering to an incorrect difficulty adjust is upsetting things somehow, I've overseen hard forks before and this usually is not an issue but then HTML is a hybrid coin.
Either, run the client again with -reindex in the shortcut as shown in the image below, or go to your data directory, %appdata%/HTMLCOIN and delete everything except your wallet.dat then start the client again.
https://i.imgur.com/RN7GblY.png

Nice the -reindex thing worked for me. thank you!


documentation for environments

Typo: "Upgrade Stragegy: "

It would be nice if this could be stored in the environments nix config and auto-generated, probably using styx (cc @blaggacao)


File facet is missing on file JSON metadata

I'm requesting children for root folder of the OneDrive and file facet are missing for file entries:
GET https://api.onedrive.com/v1.0/drive/items/'root folder id'/children?top=1000&select=id,name,size,parentReference,createdDateTime,cTag,eTag,lastModifiedDateTime,webUrl,file,folder,children

Authorization: bearer EwB4...

OneDrive response:
Via: 1.1 CH3301____PAP186 (wls-colorado)
Content-Type: application/json; odata.metadata=minimal; odata.streaming=true
Server: Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
X-WLSPROXY: CH3301____PAP186
Strict-Transport-Security: max-age=31536000; includeSubDomains
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-MSNSERVER: DM2304____PAP215
OData-Version: 4.0
X-AsmVersion: UNKNOWN; <IP_ADDRESS>
P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
Date: Wed, 27 May 2015 12:30:17 GMT

{
<EMAIL_ADDRESS>"https://api.onedrive.com/v1.0/$metadata#drives('me')/items('B7050531266D1E3%21101')/children(id,name,size,parentReference,createdDateTime,cTag,eTag,lastModifiedDateTime,webUrl,file,folder,children)",
  "value": [{
    "id": "B7050531266D1E3!1005",
    "name": "test",
    "size": 10,
    "parentReference": {
      "driveId": "b7050531266d1e3",
      "id": "B7050531266D1E3!101",
      "path": "/drive/root:"
    },
    "createdDateTime": "2015-05-27T11:59:07.877Z",
    "cTag": "adDpCNzA1MDUzMTI2NkQxRTMhMTAwNS42MzU2ODMyNDc5OTM0MDAwMDA",
    "eTag": "aQjcwNTA1MzEyNjZEMUUzITEwMDUuMA",
    "lastModifiedDateTime": "2015-05-27T11:59:59.34Z",
    "webUrl": "https://onedrive.live.com/redir?resid=B7050531266D1E3!1005",
    "folder": {
      "childCount": 1
    }
  }, {
    "id": "B7050531266D1E3!995",
    "name": "untitled folder",
    "size": 5098602,
    "parentReference": {
      "driveId": "b7050531266d1e3",
      "id": "B7050531266D1E3!101",
      "path": "/drive/root:"
    },
    "createdDateTime": "2015-05-27T08:43:16.11Z",
    "cTag": "adDpCNzA1MDUzMTI2NkQxRTMhOTk1LjYzNTY4MzEzMjgyNjk3MDAwMA",
    "eTag": "aQjcwNTA1MzEyNjZEMUUzITk5NS4w",
    "lastModifiedDateTime": "2015-05-27T08:48:02.697Z",
    "webUrl": "https://onedrive.live.com/redir?resid=B7050531266D1E3!995",
    "folder": {
      "childCount": 7
    }
  }, {
    "id": "B7050531266D1E3!920",
    "name": "1Notebook2",
    "size": 7421,
    "parentReference": {
      "driveId": "b7050531266d1e3",
      "id": "B7050531266D1E3!101",
      "path": "/drive/root:"
    },
    "createdDateTime": "2015-03-11T09:30:35.593Z",
    "eTag": "aQjcwNTA1MzEyNjZEMUUzITkyMC4w",
    "lastModifiedDateTime": "2015-03-11T09:31:14.143Z",
    "webUrl": "https://onedrive.live.com/redir?resid=B7050531266D1E3!920"
  }, {
    "id": "B7050531266D1E3!605",
    "name": "Notebook1",
    "size": 26575,
    "parentReference": {
      "driveId": "b7050531266d1e3",
      "id": "B7050531266D1E3!101",
      "path": "/drive/root:"
    },
    "createdDateTime": "2014-11-04T16:51:06.573Z",
    "eTag": "aQjcwNTA1MzEyNjZEMUUzITYwNS4w",
    "lastModifiedDateTime": "2014-11-04T16:52:21.193Z",
    "webUrl": "https://onedrive.live.com/redir?resid=B7050531266D1E3!605"
  }]
}

File facet are missing for both Notebook1 and 1Notebook2. File facet is also missing if I request file metadata directly, not via children list.
This doesn't look correct to me as the documentation states that File facet should always be included with file items. Also requests with other accounts work as expected.

Just FYI, this situation crashes sample android application.

Hi @igokoro, based on the name I'm guessing they're OneNote notebooks but I want to confirm.

@ificator, I can confirm - these are OneNote files.

The lack of a file facet on OneNote notebooks is expected. They are neither files nor folders (or they're both, depending on your point of view). We're working on adding a facet for notebooks so they can be detected properly.

@igokoro thanks for the report of the crash on the Android app! I'll patch that right up

@peternied, you are welcome!
@rgregg, could you please elaborate if there are any other item types except OneNote notebooks that require special treatment? Also it would be nice to document this behavior somewhere, I guess.

Notebooks are the only item type right now that won't have either a file or folder facet, but you should expect in the future that additional items may appear without one of those facets.
My guidance would be to use the facets to detect what an item is. If you're looking for a photo/image, then use the presence/absence of the photo or image facet to decide what something is. If you're looking for a folder, use the presence/absence of the folder facet, etc. This way you'll always find what you're looking for, and can ignore items that you aren't.


How to set the Task Scheduler to repeat indefinitely?

After referring to samples "https://github.com/dahall/TaskScheduler/wiki" and the api documentation for RepetitionPattern class "https://dahall.github.io/TaskScheduler/html/T_Microsoft_Win32_TaskScheduler_RepetitionPattern.htm". I'm not able to find how to set the repetitive duration to run "indefinitely". Is it possible to create a task scheduler with the repetition duration is indefinitely?
I have also tried assigning TimeSpan.MaxValue to trigger.Repetition.Duration, but it seems not possible with the application end up throwing exception.

Set Duration to TimeSpan.Zero.


gRPC call fails with GaiaApp is not ready; please wait for first block

Summary of Bug

When we try creating client using this command:
$ hermes create client --host-chain cifer --reference-chain cosmoshub-4
We get this error:
ERROR foreign client error: error raised while creating client for chain cifer: failed sending message to dst chain : gRPC call query_account failed with status: status: Unknown, message: "codespace sdk code 26: invalid height: GaiaApp is not ready; please wait for first block", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }
Then we try creating client using this command:
$ hermes create client --host-chain cosmoshub-4 --reference-chain cifer
We get this error:
ERROR foreign client error: error raised while creating client for chain cifer: failed when building client state: gRPC call query_staking_params failed with status: status: Unknown, message: "codespace sdk code 26: invalid height: GaiaApp is not ready; please wait for first block", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }
Version
hermes version 1.8.2, ibc-rs version 1.0.0
Steps to Reproduce

To check if there are any error on Hermes, we create client, connection and channel for osmosis-cosmoshub and it success. So we suspect the error may be because of Cifer chain config or some setup we are missing.

Our config for Cifer chain:

[[chains]]
type = "CosmosSdk"
id = "cifer"
rpc_addr = "https://cif_node.cifer.ai:443"
grpc_addr = "http://<IP_ADDRESS>:9090"
rpc_timeout = "10s"
trusted_node = false
account_prefix = "cosmos"
key_name = "key-cifer"
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 100000
max_gas = 990000
gas_multiplier = 1.5
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
query_packets_chunk_size = 50
clock_drift = "5s"
max_block_time = "30s"
client_refresh_rate = "1/3"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false

[chains.event_source]
mode = "push"
url = "ws://<IP_ADDRESS>:26658"
batch_delay = "500ms"
[chains.trust_threshold]
numerator = 2
denominator = 3

[chains.gas_price]
price = 0.025
denom = "uatom"

[chains.packet_filter]
policy = "allow"
list = [
    [
    "transfer",
    "channel-0",
],
    [
    "transfer",
    "channel-0",
],
]

[chains.packet_filter.min_fees]

[chains.dynamic_gas_price]
enabled = true
multiplier = 1.5
max = 0.6

[chains.address_type]
derivation = "cosmos"

We perform Hermes health check
$ hermes health-check

Then we get these warning for Cifer chain:
2024-03-22T12:37:26.849920Z  WARN ThreadId(12) health_check{chain=cifer}: health check failed for chain 'cifer'
2024-03-22T12:37:26.849994Z  WARN ThreadId(12) health_check{chain=cifer}: reason: gRPC call `get_syncing` failed with status: status: Unknown, message: "codespace sdk code 26: invalid height: GaiaApp is not ready; please wait for first block", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }
2024-03-22T12:37:26.850010Z  WARN ThreadId(12) health_check{chain=cifer}: some Hermes features may not work in this mode!
2024-03-22T12:37:26.852822Z  WARN ThreadId(01) health_check{chain=cifer}: chain is not healthy

We check if our grpc works with this command:
$ grpcurl -plaintext <IP_ADDRESS>:9090 list

and it show result:
cosmos.auth.v1beta1.Query
cosmos.authz.v1beta1.Query
cosmos.autocli.v1.Query
cosmos.bank.v1beta1.Query
cosmos.base.node.v1beta1.Service
cosmos.base.reflection.v1beta1.ReflectionService
cosmos.base.reflection.v2alpha1.ReflectionService
cosmos.base.tendermint.v1beta1.Service
cosmos.consensus.v1.Query
cosmos.distribution.v1beta1.Query
cosmos.evidence.v1beta1.Query
cosmos.feegrant.v1beta1.Query
cosmos.gov.v1.Query
cosmos.gov.v1beta1.Query
cosmos.mint.v1beta1.Query
cosmos.params.v1beta1.Query
cosmos.reflection.v1.ReflectionService
cosmos.slashing.v1beta1.Query
cosmos.staking.v1beta1.Query
cosmos.tx.v1beta1.Service
cosmos.upgrade.v1beta1.Query
gaia.globalfee.v1beta1.Query
grpc.reflection.v1alpha.ServerReflection
ibc.applications.interchain_accounts.host.v1.Query
ibc.applications.transfer.v1.Query
ibc.core.channel.v1.Query
ibc.core.client.v1.Query
ibc.core.connection.v1.Query
interchain_security.ccv.provider.v1.Query
packetforward.v1.Query
testpb.Query

To check if wallets have funds, we use this command:

$ hermes keys balance --chain cosmoshub-4
Output: balance for key key-cosmos: 24583 uatom
$ hermes keys balance --chain osmosis-1
Output: balance for key key-osmosis: 284037 uosmo
For Cifer chain, it shows error
$ hermes keys balance --chain cifer
Output: ERROR there was a problem querying the balance: gRPC call query_balance failed with status: status: Unknown, message: "codespace sdk code 26: invalid height: GaiaApp is not ready; please wait for first block", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }
But if checking this wallet address on explorer, it will show its balance:
https://www.mintscan.io/cosmos/address/cosmos18a2m0xnpr5hkal4alx5ja534vvl3ckk6g4xgmx/

When we setup grpc we use Gaia, setup port in app.toml

Acceptance Criteria
In this case, please provide troubleshoot instruction to fix this error.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

As the error said "invalid height", we check our block status and it's already running as you can see it here:
https://cif_node.cifer.ai/status
{
"latest_block_hash":"1EEB7E3F7E5F347600D99FD4773D98830042006166720FEEFE320ADE5476658E",
"latest_app_hash":"B1B1C4F4E81B12959C35F64C515894D37718D7BD3A5A2AEFA3A7D4160D4C3833",
"latest_block_height":"501838",
"latest_block_time":"2024-03-25T15:25:11.526751523Z",
"earliest_block_hash":"5FE07CD7F5819B9BDDADA9CC2AE15235FE12322C1698A15F63DC10AC3363BDCB",
"earliest_app_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"earliest_block_height":"1",
"earliest_block_time":"2024-03-19T15:51:14.610398132Z",
"catching_up":false
},

So what can cause the error "invalid height" when our blockchain already has block height.

This error is raised by the SDK when the last block height in the store is zero, so it seems like there is something going wrong with the store. I don't believe Hermes can do anything about that since this error is not dependent on the queried height.

Thank you for your advice. I have reach Cosmos SDK support for this issue and they said they are not sure how this is an sdk bug as the state machine is working as expected. Seems like something may be wrong with the hermes configuration.
This time we try something else, by changing our chain config in Cifer App, run our chain on local, and test it using localhost address:
rpc_addr = "http://<IP_ADDRESS>:26657"
grpc_addr = "http://<IP_ADDRESS>:9090"
websocket : "ws://<IP_ADDRESS>:26657/websocket"
And there's no previous error, but get this error instead:
ERROR foreign client error: error raised while creating client for chain cifer-1: failed sending message to dst chain : gRPC call query_account failed with status: status: Unknown, message: "codespace sdk code 35: internal logic error: hrp does not match bech32 prefix: expected 'cosmos' got 'cife'", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "x-cosmos-block-height": "10328"} }
Our registered human-readable parts for usage in Bech32 encoding is "cife" for Cifer mainnet as you can see it here:
https://github.com/satoshilabs/slips/blob/master/slip-0173.md

Seems like Hermes is using the correct prefix then, but the app is expecting cosmos. What happens if you change the account_prefix in the Hermes config to something random, or to cosmos?

At first we set hermes config as:
account_prefix = "cife"
Then we try changing it to:
account_prefix = "cosmos"
It still show the same error as above.

Not sure what else Hermes can do, if the error is the same with both configs, to me that would point to an issue on the app side. I am not trying to pass the buck here, but I am not sure how to help more.
Is Cifer a standard Cosmos SDK app? Which version of the SDK are you using?

Yes Cifer is a standard Cosmos SDK app, using Cosmos SDK v0.45.4

This time we switch between host chain and reference chain:
$ hermes create client --host-chain cosmoshub-4 --reference-chain cifer-1
and it works.

Then we create connection:
$ hermes create channel --order unordered --a-chain cosmoshub-4 --b-chain cifer-1 --a-port transfer --b-port transfer --new-client-connection
We get this error:
ERROR ThreadId(20) foreign_client.create{client=cosmoshub-4->cifer-1:07-tendermint-0}:send_messages_and_wait_commit{chain=cifer-1 tracking_id=create client}:send_tx_with_account_sequence_retry{chain=cifer-1 account.sequence=0}:estimate_gas: failed to simulate tx. propagating error to caller: gRPC call send_tx_simulate failed with status: status: Unknown, message: "spendable balance 0uatom is smaller than 24751uatom: insufficient funds: insufficient funds [cosmos/cosmos-sdk@v0.50.1/x/auth/ante/fee.go:137] With gas wanted: '18446744073709551615' and gas used: '13476' ", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "x-cosmos-block-height": "2330"} }
We check account for key-cifer
$ hermes keys list --chain cifer-1
And we get this address
- key-cifer (cife18a2m0xnpr5hkal4alx5ja534vvl3ckk6t4gm9f)
So we suspect that the previous error:
expected 'cosmos' got 'cife'
Maybe Hermes is looking for the address of "cosmosxxxx..." account, but it found "cifexxxxxx..." account instead.

We delete the old key and create new key, and send some ATOM to the new "cosmos18a2m0xnpr5hkal4alx5ja534vvl3ckk6g4xgmx" account and we try create connection again.
This time we get this error:
ERROR error raised while creating client for chain cifer-1: failed sending message to dst chain : gRPC call query_account failed with status: status: NotFound, message: "account cosmos18a2m0xnpr5hkal4alx5ja534vvl3ckk6g4xgmx not found", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "x-cosmos-block-height": "12131"} }
As we search for this error, it means there is no balance in this wallet.
Which account cosmos18a2m0xnpr5hkal4alx5ja534vvl3ckk6g4xgmx already has ATOM as you can see it here:
https://www.mintscan.io/cosmos/address/cosmos18a2m0xnpr5hkal4alx5ja534vvl3ckk6g4xgmx/
Then we use this command to check balance for key-cifer:
$ hermes keys balance --chain cifer-1
And it turn out there is no balance:
SUCCESS balance for key key-cifer: 0 uatom
So we're not sure if

Wallet for Cifer key has to be the wallet on Cifer chain, which now support only CIF token so it can not read ATOM token.
Should we change account_prefix to ucif, create wallet "cifexxxxx...", add some CIF to wallet and try again.

Problems fixed by stop Gaia which running in the background, and fix prefix on Cifer chain.


extrakey doesn't work when I change mode dynamically

In my Angular6 project,My codeMirror options are as follows:
 this.CodeMirrorEditor = CodeMirror.fromTextArea(dom, {
      lineNumbers: true,
      cursorHeight: 1,
      mode: type === 'sql' ? { name: "text/x-pgsql" } : { name: "text/javascript", json: true },
      theme: 'dracula',
      styleActiveLine: true, // 当前行背景高亮
      scrollbarStyle: 'overlay',
      autofocus: true,
      extraKeys: {
        "F11": (cm) => {
          cm.setOption("fullScreen", !cm.getOption("fullScreen"));
        },
        "Esc": (cm) => {
          if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
        },
        "Ctrl-/": 'toggleComment',
      },
    })

I change the mode dynamically,but the extrakey 'Ctrl-/' only worked at the first model
I want  the extrakey 'Ctrl-/' to work at the mode of both

Works fine for me (when I load the sql mode into demo/sublime.html and switch to it, commenting with ctrl-/ still works)

Thanks for your helping!
I have resolved the issue by replace the { name: "text/javascript", json: true } with { name: "text/javascript" }
And How can I  achive  Multi-line comment by extraKeys ??

JSON doesn't have comments, so that mode intentionally doesn't have comment metadata.

And How can I achive Multi-line comment by extraKeys ??

See the manual for a list of methods added by that addon. You can call those from a key handler function.

Ok, Thanks for helping me.


Typo in tutorial for custom derivative rules

Description
In the tutorial pages for custom derivatives rule in this section, the second example looks like this:
from jax import custom_vjp

@custom_vjp
def f(x, y):
  return jnp.sin(x) * y

def f_fwd(x, y):
  return f(x, y), (jnp.cos(x), jnp.sin(x), y)

def f_bwd(res, g):
  cos_x, sin_x, y = res
  return (cos_x * g * y, -sin_x * g)

f.defvjp(f_fwd, f_bwd)

I think there is an unwanted negation on the second return value of f_bwd. That is, I think it should read return (cos_x * g * y, sin_x * g). The function f is only differentiated with respect to the first variable in the code that follows, so it doesn't affect the tutorial text.
What jax/jaxlib version are you using?
No response
Which accelerator(s) are you using?
No response
Additional system info
No response
NVIDIA GPU info
No response

Thanks for noticing this, and explaining so clearly!
I think this may have been intentional originally, meant to add some difference between the custom_vjp rule and the standard derivative for this function (otherwise, why make a custom_vjp at all?). But it's confusing, and I agree we should just remove the negation.
Want to send a PR removing it?


feat: specify running cycles for load testing

Codecov Report

Merging #49 (9db862c) into main (b80730d) will increase coverage by 0.36%.
The diff coverage is 82.85%.

@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   56.25%   56.61%   +0.36%
==========================================
  Files          29       30       +1
  Lines        3264     3301      +37
==========================================
+ Hits         1836     1869      +33
- Misses       1290     1295       +5
+ Partials      138      137       -1

Flag
Coverage Δ

unittests
56.61% <82.85%> (+0.36%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

internal/boomer/boomer.go
53.42% <0.00%> (-2.29%)
:arrow_down:

cli/hrp/cmd/boom.go
37.83% <25.00%> (-1.56%)
:arrow_down:

internal/boomer/runner.go
80.00% <100.00%> (+3.07%)
:arrow_up:

internal/boomer/ulimit_windows.go
0.00% <0.00%> (ø)

plugin.go
68.81% <0.00%> (+4.30%)
:arrow_up:

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 b80730d...9db862c. Read the comment docs.


Button matrix hidden buttons

Update button matrix to really hide buttons with LV_BTNM_CTRL_HIDDEN control parameter.

I think the current behavior is intentional. It allows you to put space between buttons by using an invisible one.

It could be interesting to have something like LV_BTNM_CTRL_SPACE instead.
In facts I need to change the text of a button at runtime, RECORD or PLAY, and without changing the whole map it is not possible. I tried this way to have two buttons defined, one hidden and one visible at a time.

It causes problem BTW. I need to change get_button_from_point this way to get the real id:
    for(i = 0; i < ext->btn_cnt; i++) {
        if (!button_is_hidden(ext->ctrl_bits[i])) {
            lv_area_copy(&btn_area, &ext->button_areas[i]);
            btn_area.x1 += btnm_cords.x1;
            btn_area.y1 += btnm_cords.y1;
            btn_area.x2 += btnm_cords.x1;
            btn_area.y2 += btnm_cords.y1;
            if(lv_area_is_point_on(&btn_area, p) != false) {
                break;
            }
        }
    }

I need to change the text of a button at runtime

Why doesn't it work if you just change the string with RECORD to PLAY?
const char *btnm_map[] = { "btn1", "btn2", "btn3", "RECORD", "" };
lv_btnm_set_map(btnm, btnm_map);
/* ... later */
btnm_map[3] = "PLAY";
lv_btnm_set_map(btnm, btnm_map);

Why doesn't it work if you just change the string with RECORD to PLAY?

Because at first, I thought it was not optimal to set the whole map again.
After studying the internals of the button matrix, I see that every time one modify the maps, buttons or controls, all is reprocessed.
So, it is possible to implement simply what I propose, LV_BTNM_CTRL_HIDDEN to hide button and LV_BTNM_CTRL_SPACE to insert space between buttons.
Not really needed for my goal but maybe useful for others.

The button matrix really reprocessed everything on lv_btnm_set_map but I think it's not a problem because it happens very rarely and the reprocessing doesn't take too much time.
Hiding buttons - as you suggest - also would require some reprocessing because the size of the other buttons in line would change.

Hiding buttons - as you suggest - also would require some reprocessing because the size of the other buttons in line would change.

Yes. And now that I know the difference between const char* and const char* const I will revert my changes .
If there is nothing to add, I will close this PR soon.
Thanks @embeddedt and @kisvegabor for your comments.

@patricklaf
I think we can close this PR.
Thank you for the idea anyway!


Amplify new console output created duplicates (Amplify v.10.0.0)

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v14.19.3
Amplify CLI Version
10.0.0
What operating system are you using?
Windows 10
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
i didn't made any manual changes on cloud resources.
Amplify Categories
auth, custom, storage, function, api, hosting
Amplify Commands
publish, push
Describe the bug
Hello,
With Amplify Cli V10 there was a new Logging introduced, which should improve the logging experience on amplify push/publish.
It should look like these:

Unfortunately the new logging produces a lot of identical logs in my project.
i use windows 10 and git bash.
With the new logging, there are so many logs written, that i can't scroll up to the beginning after it's finished.
It produces identical logs like these on mass.

For me this is currently a showstopper and I had to downgrade the amplify cli.
Kind Regards
Stefan
Expected behavior
The Amplify cli shouldn't produced unecassary duplicate logs.
Reproduction steps

Amplify env checkout
Amplify push --yes

GraphQL schema(s)
No response
Project Identifier
No response
Log output
No response
Additional information
No response

Hello @StefanVolkmer-WW, thank you for reaching out. The issue appears when a terminal is utilizing a non-rewriteable buffer for output. Could you try using powershell or cmd terminal and let us know if this mitigates the issues.
Output from powershell in windows 11.

output for CMD.

marking this as bug for improvements.

Hello @ykethan ,
Unfortunately the same problem occurs in cmd and also in powershell.
I attached here two screenshots at the end of this post.
What i recognized. If i use VSCode and select "cmd" oder "powershell" as terminal... then while the deployement
the terminal kind changes from e.g. "powershell" to "node".
After the deployment is finished, it switched back to "powershell".
Before i press enter:

While deployment:

After having no success in vscode (not with "CMD", not with "Powershell"),
i tried to use the "CMD" and the "Powershell" Terminal as Standalone Versions.
Here i used the standalone CMD Terminal

Here i used the standalone Powershell Terminal

I'm using Windows 10.
Is it possible that the deployment use this "node" terminal, and this doesn't have a rewriteable buffer?
Which Node Version did you use? i use Node 14. But i can't upgrade and teest, because my project is not yet compatible with higher versions.
Hope we find a solution for this problem.
Kind Regards
Stefan

Hey @StefanVolkmer-WW, thank you for the information. I was using Node v16 and did try switching to Node v14 and testing this my amplify project but did not run into the duplication issue.
For quick check could you please check the powershell properties by right clicking the powershell window and you should see any output an follows in windows 10.

on the command history do you see a buffer configured? if the buffer is configured, could you try setting this to a higher value(may need to close and reopen window for changes to propagate) and test the output?

Hi @ykethan
i tried it with a higher Buffer Size. At first with 500. Then with 999 (which is the maximum i can set)
The rest of the settings is the same as on your computer.

But unfortunately still duplicate logs

I set up a new small amplify project with just two lambdas.
is this the log how it should look like?

Here i doesn't see duplicate logs, but nervertheless it's confusing me.
Because the Lambda amplifylogtest6cb11af7 was changed. But the log says that a lambdafunction below amplifylogtesta3cfe9e2 was updated?! I'm confused.

Hey @StefanVolkmer-WW, Thank you for the information. In order to dive deeper into the issue, could you provide me the following information.

The Project identifier by running amplify diagnose --send-report in the effected project.
Is amplify installed locally as a dependency of the affected project?
Is there an .npmrc or similar package manager config file with any project-specific settings (i.e. script-shell)
Is amplify being executed through an npm script (e.g. npm run deploy executes amplify push -y)

Hey @StefanVolkmer-WW, following up on this issue. Please do let us know if you require any assistance.

Hey @ykethan
Extrem sorry for the late response.

Project Identifier:<PHONE_NUMBER>65544b7ad90dcfbd943f8a
Amplify was installed globally via: "npm install -g @aws-amplify/cli"
No i doesn't have .npmrc or any other package manager config files in my project.
Amplify Command is always executed directly in the power shell.

If the Project Identifier Informations are not enough helpfully, i could try to duplicate my repository... without all our business logic code... just with the IaC Stuff and provide it to you.
would be some effort, but i do my best to support your analysis.
Kind Regards
Stefan
P.S. My Stack/Project is quite bigger as the common amplify projects. Is this maybe a relevant factor?

Hey @StefanVolkmer-WW , thank you for the information. On diving deeper and testing the Amplify application in various scenarios I was able to reproduce the issue. Following are the steps utilized.
Utilized powershell terminal in replicating the issue.

amplify init
amplify add auth
enabled oauth sign in with facebook, google and apple
amplify add api
enabled auth type as user pool
amplify add storage
selected s3 storage
amplify push

observed the following behaviour

Note: the issue appears only when i am not using the powershell window in a full screenmode and does not effect the application functionality.
Marking this as a bug for further investigation and improvements.
On further testing observed the following when using a powershell in vscode as a terminal

Steps to replicate:

amplify init
replaced my cli.json

{
  "features": {
    "graphqltransformer": {
      "addmissingownerfields": true,
      "improvepluralization": false,
      "validatetypenamereservedwords": true,
      "useexperimentalpipelinedtransformer": true,
      "enableiterativegsiupdates": true,
      "secondarykeyasgsi": true,
      "skipoverridemutationinputtypes": true,
      "transformerversion": 2,
      "suppressschemamigrationprompt": true,
      "showfieldauthnotification": false,
      "securityEnhancementNotification": false
    },
    "frontend-ios": {
      "enablexcodeintegration": true
    },
    "auth": {
      "enablecaseinsensitivity": true,
      "useinclusiveterminology": true,
      "breakcirculardependency": true,
      "forcealiasattributes": false,
      "useenabledmfas": true
    },
    "codegen": {
      "useappsyncmodelgenplugin": true,
      "usedocsgeneratorplugin": true,
      "usetypesgeneratorplugin": true,
      "cleangeneratedmodelsdirectory": true,
      "retaincasestyle": true,
      "addtimestampfields": true,
      "handlelistnullabilitytransparently": true,
      "emitauthprovider": true,
      "generateindexrules": true,
      "enabledartnullsafety": true
    },
    "appsync": {
      "generategraphqlpermissions": true
    },
    "latestregionsupport": {
      "pinpoint": 1,
      "translate": 1,
      "transcribe": 1,
      "rekognition": 1,
      "textract": 1,
      "comprehend": 1
    },
    "project": {
      "overrides": true
    }
  },
  "debug": {
    "shareProjectConfig": true
  }
}

amplify add api
amplify add function
select Lambda trigger
amplify push


Hash function raises unexpected json error

Easy to fix. The hash function at the end of utils calls json.dumps, which does not handle datetime values.
Pull request coming.
import eyecite
small = '25 Texas L.Rev. 199'
cit = eyecite.get_citations(small)
hash(cit[0])

Thank you, this is an alarming bug... It seems that our test_factories.journal_citation() function does not mock citations with a realistic all_editions field (which should have datetime stuff), so this was not caught in our tests. That seems like a problem in and of itself, but, separately, the utils.hash_sha256() function does need to handle non-serializable types... Thanks for the PR.

the change is really simple, add default=str to the json.dumps call in utils.hash_sha256().
Making a pull request is harder than I thought, because of lint checks and all that. Working on it slowly.


 I can get .json file correctly using a GPU by command:
python ./tools/test.py ./configs/bases/swin.py ./work_dirs/swin_ali/latest.pth --format-only --options  "jsonfile_prefix=result.json"
I don't know what went wrong.

Could you provide more information, like the config and the sample of the .JSON file.

Could you provide more information, like the config and the sample of the .JSON file.

The whole file is like this [object object]

https://github.com/open-mmlab/mmdetection/blob/bde7b4b7eea9dd6ee91a486c6996b2d68662366d/tools/dist_test.sh
Seems dist_test.py cannot add python arguments directly in the command line. The --fomat-only and --options "jsonfile_prefix=./results_4_" are not passed to program.

This part needs to be improved. Thanks for your report.

By the way, this problem occurs when I use the computing cluster. The output .pkl file is only partial, and the output .JSON file is all [object, object].My environment configuration is:
mmdet 2.22
mmcv  1.4.6
cuda 11.1
pytorch 1.9.0
There is no problem running on a single GPU personal computer, only in the computing cluster

Could you provide more information, like the config and the sample of the .JSON file.

here is .json file

A new issue created, and I'll close this one


Add mingw support to //absl/random

@prashant-applied FYI this is merged

and thank you very much @derekmauro !


Fixes operation name extraction when validation fails

For named queries, the operation name extraction was treating the object as a string and thus ending up with '[object Object]' instead of the proper name.
This adds the missing test case and resolves that. Also adds a file to the apollo-server versioned test runs that was missed earlier.
Fixes: https://github.com/newrelic/newrelic-node-apollo-server-plugin/issues/33

👀


Unable to open '175929186'

I left the codespace last ight and when I re-open, it says "disconnected from codespace and unable to connect to the server".
Version: 1.91.1
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Embedder: codespaces

Likely due to https://status.dev.azure.com/_event/524064579. Please let us know if you're still unable to reconnect.


feat: #[component] now handles impl Trait by converting to generic type params, fix #2274

Fix #2274 (for real)
Currently the Idents generated are just in the form __ImplTrait0, __ImplTrait1, etc. Maybe could base it off of the argument names, to improve error messages if there are bugs.
Book needs to be updated to remove this line:
https://github.com/leptos-rs/book/blob/35c380ffc8f7d2e50ef21db97943138b3dba2728/src/view/03_components.md?plain=1#L233

Looks great -- Thanks very much!


Updating README with right installation syntax

If we talk about README corrections, the build instructions are also incorrect: cd zdns/zdns (there is no “zdns“ subdirectory anymore)

Agreed - looks like we missed those spots when we made the changes. If @luca-regne wants to fix that as well, awesome, otherwise I'll open another PR to correct it shortly.


Handle binding for action box and search

See #166

Thanks for PR, I'll reviews this

I think it's ok.

Thanks for quick response.


Radio and Checkboxes?

Only going to add checkboxes after refactoring a little.

Only going to add checkboxes after refactoring a little.


Merge V0.4.1 back to master

For this PR I suggest to merge with a merge commit

@erikbosch Plain merge seems we have disabled

Rebase or try the squash?

@SebastianSchildt  - I assume it is some form of branch protection. We can rebase or squash, th only drawback is that it not will be as visible that the release branch has been "merged" back compared to if we would have a real merge commit.


FCFB-29 Response speed not working with the json

http://<IP_ADDRESS>:1212/arceus/play?playId=227
When pulling in the json with R, the last two items in the list are just null and don't easily go into a data frame
They are offensive_response_speed and defensive_response_speed. This error is because they are null/have no value. You probably have a plan for this going forward but I expect to possibly cause an issue with other JSONs as well (game stats, etc)

The next update will have response speeds as well as average response time for each user


chore: reduce using any in tests

The proposed changes make the type conversion explicit and clearer to the reader. It's mostly about improving readability and following best practices for TypeScript.
Feel free to decline this PR if it's too insignificant :)

Thank you for the PR
I'll close this, because even though is nice to not use as any there are situations where it doesn't really make a difference, such as this.


create GitHub Actions that run populations script

first pass regular expression to find the URLs to GitHub repos: (https://github.com/)\w+(/)\w+

Will develop independently initially here: https://github.com/JustinGOSSES/repo_link_extractor


Fix variable 'bt' is not declared

Compiled table saving fails as it tries to execute bt:save. Compiled binding table is named as bt_or_err.

lgtm

LGTM


Add device parameter to Linear subclasses and Embedding

Useful when one wants to initialize the layers on the meta device without using the init_on_empty helper in the transformers package.

+1
it will make  nn.utils.skip_init() work

@shadeMe  I opened this https://discuss.pytorch.org/t/what-does-nn-utils-skip-init-really-do/192370
because I am still having an issue with nn.utils.skip_init() applied on Linear4bit
did you manage to make it work ?


Update _s3_file_query to check if an object exists explicitly.

In  our current setup, the _is_file_or_dir check relies on _s3_file_query, which requires list permissions. When we pass no_sign_request, we want to be able to download public files without credentials. However, we're not able to use this functionality because we do not have list permissions to the bucket.
This change introduces a first check to see if an object exists using load (which just calls head_object so should have very little overhead and does not require list permissions). If that does not work, we do our normal call to see if it is a dir.
Downside:
1 extra network call in the case of a directory.
Bonuses:

Update no_sign_request test to include scenario that failed before this fix.
We used get which downloads the file where we should have used load. Fixed this instance.
Some other tests were failing because our test bucket had not been cleaned up. I changed these tests to properly use the rig.test_dir folder so state on the bucket shouldn't exist. Also removed cleanup performed by _download_with_threads in the test since it should be handled by the rig now.

Closes #169

Thanks @jayqi should be good now!


FC070 false positive due to indentation spaces

The following creates a FC070 violation
%w(
  amazon
  centos
  debian
  fedora
  redhat
  scientific
  oracle
  ubuntu
).each do |os|
  supports os
end

It appears that the rule is being triggered by the spaces for indentation
[1] pry(#<FoodCritic::RuleDsl>)> metadata_platforms
=> ["  amazon", "  centos", "  debian", "  fedora", "  oracle", "  redhat", "  scientific", "  ubuntu"]
[2] pry(#<FoodCritic::RuleDsl>)> metadata_platforms[0]
=> "  amazon"
[3] pry(#<FoodCritic::RuleDsl>)> bad_chars[0]
=> " "
[4] pry(#<FoodCritic::RuleDsl>)> metadata_platforms[0].scan(bad_chars[0])
=> [" ", " "]
[5] pry(#<FoodCritic::RuleDsl>)>

I confirmed with a spec. We should probably just nuke the spaces in the parsing

Fixed in master

Thanks for the quick fix!


Update role-based-access-control-manage-access-powershell.md "ObjectI…

…d" instead of "ObjId"
"New-AzureRmRoleAssignment -ObjId" should be "New-AzureRmRoleAssignment -ObjectId"
"Remove-AzureRmRoleAssignment -ObjId" should be "Remove-AzureRmRoleAssignment -ObjectId"

Hi @mbsnl, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@mbsnl - thanks very much for your contribution!
@msStevenPo, @kgremban - can one of you review when you have a minute and let us know if it's OK to merge? THanks!

@BryanLa  - Ok to merge.
@mbsnl - Thanks for the edit!


rWrapper does not propogate environmental variables

Describe the bug
When using a non-library that uses R, such as inline-r in Haskell, R_LIBS_SITE and R_LIBS_USER to not get changed in the program, leading to wrong libraries and wrong PATH R versions being used.
To Reproduce
Steps to reproduce the behavior:
Install inline-r and rWrapper with some packages.
Try using HaskellR with the rWrapper libraries.
Expected behavior
Correct R path and libraries used.

This bug should not be stale.


How to setup the path for the examples?

PATH_BIDS = Path(file).absolute().parent / "data"  # works for pytest, but won't work sphinx build
PATH_BIDS = Path(os.path.dirname(os.path.abspath("file"))).absolute() / "data"  # works for sphinx build, but not pytest

https://github.com/sphinx-gallery/sphinx-gallery/issues/1168#event-10116887278


Feature request: Add TCP support in the Syslog appender

Syslog appender allows us to add servers where AEM will send the logs to, but settings are host name, port, suffix patterns and loggers.
Since Syslog allows both TCP and UDP connections, it would be great if we could choose either TCP or UDP connections.
Thank you.

Thanks for your reply.
Unfortunately I'm not aware of any other appender that could be useful in this case.
What we're doing is creating Sling loggers that write whatever we need into a specific file and then (R)Syslog gathers an sends them to the desired destination.

Hi again,
after sharing your reply with some colleagues, I've got some feedback from them:

you are allowed to use LGPL licenced software "inside" of other software that is licenced otherwise (even commercial).

So,

if you extend/repackage a LGPL library this "derivate" needs to be also LGPL licenced (and include the LGPL licence text)

if you then include this derivate into another library/package this "composite" does NOT need to be LGPL licenced but could also be commercial or MIT or something else

Or you could write to the maintainer of that other package and ask them to consider re-licensing it with a more commercially permissive license.  This is a small community project, and the last thing we have time for is a licensing headache.

Appreciate the feedback @adriaaah, but I think the risk of even getting close to an LGPL library is too great.


Non english characters in collection names not reading/writing correctly

Describe the bug
Existing collections with non english characters may be read incorrectly
Creating a new collection with a non english character may write incorrectly
e.g Using the name: Привет

Fixed in 1.2.3


data-bind: checkbox not working when used in foreach binding

Hi,
I'm using toggle buttons to enable search by 'tags'. A tag is simply a string. In my case these represent music genres i.e. 'Rock', 'Jazz', 'Blues'. I want to provide a list of buttons (topCategoriesList) that users can switch on/off by pressing it to include the tag in the search.
My markup looks like

Unfortunately chosenCategories (model) never get the values
This is the toggle button itself.

     <input type="checkbox" value="$data" />

This is the initialisation of my model
var chosenCategories = ko.observableArray([]);

Where filterScreen is the method that checks for the observable 'chosenCategories' but nothing gets captured. I'd expect the list of strings (buttons pressed on). Any idea?

Hello,
You should use data-bind="value: $data" instead of value=$data in order to make checkboxes work.
Please, see https://jsfiddle.net/faulknercs/yrcgd8s5/ for working example.

Hi there, thank you very much for sharing your working example.
After trying many things I realised your working example (knockout 3.0.0) was not using the same libraries I'm using in my local project (knockout 3.3.0).
https://jsfiddle.net/fieder/r2syym59/1/  is exactly the same example you sent me but with knockout 3.3.0 - you will notice it does not work.
Having said that, I'm happy to downgrade to knockout 3.0.0 in order to make this work. I've done it already so I'm running locally knockout 3.0.0. I'm also running bootstrap 3.2.0 like your working example (I was running 3.3.5 which also works but just to make sure I've downgraded bootstrap too to have same env).
Unfortunately my code does not work yet. This is it in case you spot something I couldn't so far :(

                            <input type="checkbox" data-bind="value: $data" />

                        <input type="checkbox" data-bind='checked: eventListPage().showAllCategories, click'
                               onclick="havefun.hideTopList(this)"/>
                        MORE

                            <input type="checkbox" data-bind="value: $data" />

                        <input type="checkbox" data-bind='checked: eventListPage().showAllCategories'
                               onclick="havefun.hideTopList(this)"/>
                        LESS

I thought this could be useful to describe the behaviour I see
https://www.youtube.com/watch?v=DIxECRkUQHA
Please let me know what you think. I've spent a lot of time on it and I'm running out of options...
Cheers!

Hello,

Hello,
At first I checked your jsfiddle with Knockout 3.3.0. It is not working because Knockout is added after Knockstarp. Here is correct variant https://jsfiddle.net/faulknercs/r2syym59/2/
Then I checked html code. checkbox binding should be used with bootstrap buttons, it means, that data-toggle="buttons" attribute should be at same element as data-bind="checkbox: chosenCategories". It should throw exception, if there is no data-toggle="buttons", I don't know, why there is no exception in console in your video :)
I have created new jsfiddle example based on your html code: http://jsfiddle.net/faulknercs/9caassvs/
It is unstyled, but I think, it is not important.
Hope, it will help you.
Best regards,
Artem

Fantastic. I got it all working now. Thank you very much. You can close this ticket - lesson learnt. I'll share the site with you when we release in few days so you can see all great work you've done in action :+1:
Cheers.


OSPP 2021: python puppet itchat

Please make sure to check the following boxes creating your pull request, thank you very much!

[x] Add Blog Header, including title, author, image, categories, tags, etc.
For example:
---
title: Your Great Blog Title
author: your_github_id
categories: project
tags:
  - python
  - padlocal
image: /assets/2021/02-your-blog-slug/teaser.jpg
---

One line bio

Your blog post content Your blog post content
Your blog post content Your blog post content
Your blog post content Your blog post content

It will be easier to start drafting your post by using a existing post file as your template, for example, this one

[x] Keep all filenames lowercase, and use - to connect words instead of space. e.g. 2017-10-06-wechat-pc-impactor.md instead of 2017-10-06-WeChat PC Impactor.md

[x] Embed video/pdf from YouTube/Bilibili/local (if there's any) by using {% include iframe.html src="URL_or_PATH" %}. (Learn more about how to embed file/url in the post by reading this blog post

[x] Save photo to local before publishing, to a folder named by ${MONTH}-${YOUR_BLOG_SLUG}/ under /assets/2021/ directory.

[x] Select a beautiful and meaningful teaser image for your blog

[x] Create your contributor profile (if you are a first time contributor)
For excample:

jekyll/_contributors/lijiarui.md

---
name: Jiarui LI (李佳芮)
site: https://lijiarui.github.io
bio: 句子互动创始人 & CEO，微软人工智能最具价值专家 (AI MVP)
avatar: /jekyll/assets/contributors/lijiarui/avatar.png
email<EMAIL_ADDRESS>twitter: https://weibo.com/u/2175505900
---

Here is the example file:

lijiarui.md: https://github.com/wechaty/wechaty.js.org/blob/master/jekyll/_contributors/lijiarui.md
It will shown like this on wechaty website: https://wechaty.js.org/contributors/lijiarui/

To learn more about the contribute guideline, visit: https://wechaty.js.org/docs/contributor-program/

Thanks for the blog! Please change as request:

I found you delete assets/contributors/lyleshaw/avatar.png but didn't add webp image for this PR, which will cause your profile to miss your avatar, please add this image.
As OSPP Guide required , you should change jekyll/_posts/2021-07-13-summer-wechaty-itchat-puppet.md to jekyll/_posts/2021-07-13-ospp-plan-your-fileaname

Done～

@lyleshaw Good job!
Please invite your mentor to review this PR and approve this PR, then I will merge this~

Thank you very much for your contribution!
You are welcome to join Wechaty Contributor Program
1. Join Wechaty Organization

You've invited lyleshaw to Wechaty! They'll be receiving an email shortly. They can also visit https://github.com/wechaty to accept the invitation.

I have invited you to join our Wechaty GitHub Organization, please accept it by following the above message.
2. Update Your Wechaty Contributor Profile

Please open Contributor Hall of Fame and add yourself to the end of the list, so that other contributors will know you better!
Please add yourself to our Website Contributors by creating a PR and refer to this PR link as well.

3. Join The Contributor Only WeChat Room
We also have a WeChat room for contributors only which can discuss Wechaty at a deeper level, you are welcome to join and if you are interested.
Please add my wechat: ruirui_0914 and send me this pr link. I will invite you into Wechaty Contributor Room
Link to https://github.com/wechaty/PMC/issues/16
Cheers!


Last Checks

I went wild and requested all the remaining checks

15237-15282
15283-15350
15363-15426
15499-15565
15569-15694

:+1:


modern-nju-thesis:0.3.1

I am submitting

[ ] a new package
[x] an update for a package

Description: excluding the images directory in typst.toml will cause the images directory in the template directory to be excluded as well, resulting in initialization failures. So I changed one of the images directories to imgs.

Ah, that's unfortunate and also hard/impossible to catch with local testing.

Yes, it's hard to notice i guess.


Using custom namespace and metricName

Allowing create the autoscaling policy with custom metrics

@claydanford Please, can you check this change, where we are allowing custom metrics if exists instead of the predefined one

Looks good. Not sure who can merge or approve the workflow. I am no longer with NMG.

@vinothchandrasekarNM please review and merge


Don't overwrite layout when setting home.keyboard.

Right now if I want to set home.keyboard (to swap Caps Lock and Escape, for example) I have to specify the keyboard layout even though it's already set up correctly in the OS-level config:
# This works.
home.keyboard = {
  layout = "gb";
  options = [ "caps:swapescape" ];
};
# This overwrites the layout.
home.keyboard.options = [ "caps:swapescape" ];

This is basically because the layout defaults to "us" and unconditionally adds the layout parameter to the setxkbmap call (so you can't just set the layout to an empty string.
Would it be possible to have the layout default to doing nothing rather than defaulting to "us"? Maybe it could default to null then only add the parameter if it's non-null?

BTW if you do decide this is something you want to do, my suggested patch would be this:
diff --git i/modules/home-environment.nix w/modules/home-environment.nix
index 7f51cd8..20952b0 100644
--- i/modules/home-environment.nix
+++ w/modules/home-environment.nix
@@ -55,22 +55,13 @@ let
   keyboardSubModule = types.submodule {
     options = {
       layout = mkOption {
-        type = types.str;
-        default = "us";
+        type = types.nullOr types.str;
+        default = null;
         description = ''
           Keyboard layout.
         '';
       };

-      model = mkOption {
-        type = types.str;
-        default = "pc104";
-        example = "presario";
-        description = ''
-          Keyboard model.
-        '';
-      };
-
       options = mkOption {
         type = types.listOf types.str;
         default = [];
@@ -81,8 +72,8 @@ let
       };

       variant = mkOption {
-        type = types.str;
-        default = "";
+        type = types.nullOr types.str;
+        default = null;
         example = "colemak";
         description = ''
           X keyboard variant.
diff --git i/modules/xsession.nix w/modules/xsession.nix
index b055815..b1fe4fb 100644
--- i/modules/xsession.nix
+++ w/modules/xsession.nix
@@ -107,8 +107,12 @@ in
               let
                 args = concatStringsSep " " (
                   [
-                    "-layout '${config.home.keyboard.layout}'"
-                    "-variant '${config.home.keyboard.variant}'"
+                    (if config.home.keyboard.layout != null
+                     then "-layout '${config.home.keyboard.layout}'"
+                     else "")
+                    (if config.home.keyboard.variant != null
+                     then "-variant '${config.home.keyboard.variant}'"
+                     else "")
                   ] ++
                   (map (v: "-option '${v}'") config.home.keyboard.options)
                 );

Thanks for the report, I think this should be fixed now. Like in your patch, the layout and variant options are now optional.

Thank you, @rycee!


python3.pkgs.langchain-openai: 0.3.6 -> 0.3.15

python3.pkgs.langchain-core: 0.3.12 -> 0.3.15
python3.pkgs.langchain-openai: 0.3.6 -> 0.3.15

This fixes the failing tests on master.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This turns out to be the wrong fix, see #352974
PR #345326 tried to treat everything coming from the langchain and langgraph monorepos aas all having the same version number, but the langchain and langgraph releases don't work like that.
Fixing in #353002


[rubrix.log] Deprecate 'metadata' argument

Our server dataset model has a metadata field that we do not use in the client or the UI. It is exposed in the rubrix.log method which does not make sense, we will deprecate it for now.

Not sure if this issue is really a bug. For me, has more sense as a maintenance or client API refactoring action, since does not solve any broken functionality. Just avoid exposing fields that we're not showing yet.
However, the HTTP API consumers could retrieve the info sent in metadata.


Update build guide for TizenRT 1.1

Previous guide is out of date.
Updated guide works with TizenRT 1.1.
JerryScript-DCO-1.0-Signed-off-by: Sanggyu Lee<EMAIL_ADDRESS>

LGTM


horizontal rules too faint

any of the markdown horizontal rules
(three underlines, three asterisks or three dashes)
are very faint.
i've tried various things to make them more visible, but combinations
don't seem to work

So at the moment its like this: https://jsfiddle.net/uboo3rwn/
and you want it like this https://jsfiddle.net/uboo3rwn/1/ ?
Fiddle about with the hex value until you find something you like, then just find and replace
Change the line in /static/css/bootstrap.min.css
hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
to
hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #d8d6d6}
clear browser cache etc

If you wanna change the others then #eee is your enemy

Example of current:
http://www.anthive.com/project/worms/
notice three lines at the top, so faint as to be barely visible...
I would hate to have to edit the css each time I upgraded the theme to get a bolder line.  Would some kind of partial work instead?

Site doesn't load for me :(
I think it's the #eee thing though, perhaps someone can make a pull request to make it a little bit darker

Update a99cad2 addresses this. Let me know if there are still any issues after updating :)

site was offline for a bit, not sure why, but worked after i reloaded it.
anyways, horizontal rules now are more visible.  than you again George.  :)


Does locust support DB connection?

I'm new to locust, I've been using jmeter for API and DB (using JDBC) load tests. However it seems locust just support API load test (by using HttpLocust module).
Is there any way for me to connect directly into a DB (say postgresql for example) and run my tests against that db? without using an API (ODBC)

Yes, you can write a custom client class that uses whatever protocol you want:
http://docs.locust.io/en/latest/testing-other-systems.html

I have modified my code based on this introduction, But the aggregate report keeps showing 0, and there are no charts from result

You can check out some more examples here: https://github.com/SvenskaSpel/locust-plugins/tree/c405417065e2f129d4f181519513785763ca50bb/locust_plugins/users

@MochiXu hi, tell me, did you manage to connect to the database?

There's now an example User class for Postgres: https://github.com/locustio/locust/blob/master/locust/contrib/postgres.py
Here's a locustfile that shows how to use it: https://github.com/locustio/locust/blob/master/examples/postgres/locustfile.py

@cyberw Can you find out what the error is here, the connection to the Mssql database is not being made?  I just hid the user data for now

@cyberw and how to import locust.contrib.postgres ?


post > title doesn't wrap in mobile view

Hi all, I am trying to figure out why the title doesn't wrap in mobile view on my personal site. I don't know if it's the way minima should work or how I have done it on my side. I am a newbie so go easy on me.
Images as below, look at how the title behaves and where the nav bar stops. I expect it to be responsive (no scroll bars), is there a minimum width or something?

It doesn't wrap, as there's currently no hypens or wrap rules on post titles. This is an edge case we don't handle yet (a long hashtag as a title).
If you want to fix it, you'll need to add those properties on post titles:
 word-wrap: break-word;
 overflow-wrap: break-word;
 -webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;

Thanks @DirtyF , looks like there is a PR now, should this be closed now or will I be notified when it is released?

Issue willl be automatically closed when PR gets merged and you'll be notified.


Fix erratic test in conditions spec

Condition.pluck(:description) can't guarantee the order, so I've seen
this test failing randomly.

@miq-bot add-label api, test, bug
@miq-bot assign @abellotti

🎶 nice fix !!

:+1:

Thwarted by another erratic test. Perfect :wink:

@imtayadeway @abellotti This PR is built on top of https://github.com/ManageIQ/manageiq/pull/11558, which is NEITHER euwe/yes nor euwe/no.  We need to address that one before this one can be backported.

Good point, didn't realize this bug here was on a master feature.  I'll remove euwe/yes.


Need to round off the percent in function 1 to 2 places of decimal

Hi @helingogo ,
I used your function to create visualization for-profit percentages of the stock!! Kudos on your work. I had a suggestion, could you please round off the percent to 2 places of decimal so that it looks neat.

Hi affrin, I am still having issue of the poetry in my computer and do not have time to go to find a mac to do additional test after the change. Shall we leave this to M3?

Somebody ask here about the label formatting issue. I think this would help: axis rounding decimals.


torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with signal SIGABRT

This error occurred in the training code

The problem is that the version of torch is not correct and should be fixed after upgrading to 1.13.1


Post-install messages  word wrap could be tuned

Shouldn't be too hard to write a helper that uses COLUMNS to avoid something like:

(or locate the long outputs and shorten/split them so they're nice on a "standard" 80 column display.)


Inference time?

Hi, and thank you for making this code available.
Is this code suitable for real time use?
What fps am I likely to get with 1 gtx 1080 gpu?
Thanks!

Have you gotten the result？


Pull back the new version man. bot logic is straight up broken.

Which API Provider are you using?
Anthropic
Which Model are you using?
vertex, normal anthropic, 4o, all bad bad bad
What happened?
crazy haphazard removal of giant swaths of code, bugs with VSCode and the diff tools, continuous repeating of trying to delete 90% of project files, worked in Python, JavaScript, Node, and TypeScript. Everything I've worked on for the last 24 hours has been absolutely fucked.
Please be aware that things are very, very bad. Congratulations for an aggressive move forward. I love everything that you've done with the project, and I understand that this was a big change. But it's a step in the right direction. The accuracy has completely fallen off. I don't know what controls it, but you gotta know as well as I do at this point, man, this is very, very bad. No one should use it, straight up.
I don't need to give you all these cases and things like 'cause it's, if you give me a place to upload to, I can send you my contacts from the past 12 hours and show you everything I've been through.  Absolute nightmare. I'm glad to share it with you. 100% code, everything that's in there. Absolutely. You can have it, but if you've been using it, you know what I'm talking about.
Steps to reproduce

use
the
product

Relevant API REQUEST output
If you give me a place to upload, man, I'll sanitize my keys and you can take a look at everything that I've done. I'm telling you. But you know, you know at this point, I'm sure you have another version coming out like real soon. But damn.

Additional context
No response

I agree with this. Since the update, claudeDev has been in a loop and fixes the issues but has created a bug in the process. When it tries to fix the new bug, it creates the same code it created that was modified.
It has been horrible, I understand saving cutting the API call but it feels like it is lacking some context.

CLI access isn't working as noted in another thread as well.

@sid-newby @hungle816 sorry to hear you guys had bad experiences. There's a lot of users that are on the other end of the spectrum and are having much better results with the new update, so it's hard for me to know exactly what to "fix" without getting more details about your specific use case. Testing big changes with ClaudeDev/Cline is hard because people use the extension in so many different ways/projects/stacks/custom prompts, so please bear with me while I improve the system/tool prompts to work better for you.
Feel free to DM me on discord (saoudrizwan) with your task export if you don't want to share it here.

Tested and it seems like it's related to MacOS 15.0.1 everything seems broken w/ CLINE / ClaudDev - with any version. At least no terminal access for sure. On my MacOS 14.7 everything works fine.

I echo @scottmraz comment about 15.0.1. ClaudeDev is not reading the terminal

@scottmraz @hungle816 Okay let's take make this issue dedicated to the macos 15.0.1 terminal issues.
@sid-newby Can you pls reach out to me on discord so we can figure out what exactly went wrong with your tasks? It helps knowing what your prompt was, what the model tried to do, where he went wrong, etc.

I had the same negative experience since I upgraded to 2.0.
I would suggest to check the impact of going from batch to streaming. I personally find the new streaming animation feature a bit distracting anyway, and I hope it will be allowed in future versions to be toggled off.
However, it seems that streaming can have a negative impact on reasing quality too:

Limited Planning: Streaming limits the model's ability to plan the full response, which can affect the logical flow and coherence.

Reduced Accuracy: Without the opportunity to internally verify and correct reasoning steps before output, the model may produce errors that it cannot rectify in subsequent tokens.

Interruption of Thought Process: Streaming can disrupt the model's internal chain-of-thought, leading to incomplete or fragmented reasoning.

In the meantime, I found the best help in #491
Solution: got to Extensions->Cline-> right click -> Install Specific Version -> 1.9.7

@jiriklic there is no difference in the model's response whether it's streamed or not, so it wouldnt affect planning or accuracy or thought process, it still does all that before editing files.
Can you please share the bad experience you had? The prompt you used, what cline did wrong, etc. Any details would be useful in helping me adjust the system/tool prompt to work better for wider use cases. It's hard for me to test every possible way people use the extension, and Ive heard a lot of users are having good experiences with the new update so I wouldnt know what to fix without more insight into what went wrong for you. Any help here is appreciated.

Can you please share the bad experience you had? The prompt you used, what Cline did wrong, etc. Any details would be useful in helping me adjust the system/tool prompt to work better for wider use cases. It's hard for me to test every possible way people use the extension, and Ive heard a lot of users are having good experiences with the new update so I wouldnt know what to fix without more insight into what went wrong for you. Any help here is appreciated.

@saoudrizwan - sure, no problem. My current prompt and workflow with Cline1.9.7 is as follows:
When I encounter an error in my code build (Python, C++ compiled binaries, build with Meson and cibuildwheel), I use the following prompt template:
Meson build failed with the following error:

` ` `
<I copy and paste the error from the terminal.>
` ` `

Please read the @/build/meson-logs/meson-log.txt and fix the issue. Keep all the comments.

Cline then asks me to read all the other relevant files it needs to solve the problem and finally asks me for permission to make the edits as necessary. I read/check each diff, save it if I think its is the right solution, and run the code. If everything works, I make Git commit and push the changes to the repository. BTW, I absolutely love this workflow. It increases my productivity by 5x-10x  as conservative estimate.
I use mainly Anthropic API with Claude 3.5 Sonnet.
When I upgraded to Cline 2.x, the response looked the same on the first impression. But the solution would create new errors, and when I prompted those in the same chat, the edit would just revert everything back to the state of the file as it was in the first place. I checked this with Git diff, so I am quite certain about this part. Therefore, the model would just get stuck in the infinite loop, making the same edit back and forth.
Why do I think that the new version of Cline and the streaming are the cause of this issue rather than the Claude 3.5 model itself:
After I downgraded back to Cline 1.9.7, everything started to work again as I am used to. All the edits since that point have been constructive and working solutions.
I hope it will help you in narrowing down the issue.
Please let me also use this opportunity to thank you for your great work. Cline 1.9.7 is an absolutely amazing development tool, and in combination with the Continue plugin, it beats by a mile any other tool on the market. 👍
One last question: could you please make the new streaming feature optional in the Cline settings? That could smooth down the onboarding process of this new feature while not jeopardising workflow of your current users.

and when I prompted those in the same chat, the edit would just revert everything back to the state of the file as it was in the first place.

Gotchya, so the model is trying to edit the file with the same contents it tried to use before. This is in a nutshell Claude being dumb and not something that I could fix on the extension's part. Now why you're seeing different behavior in 1.9.7 seems totally subjective and could just be the luck of the draw. It would help if you updated to v2.0 and tried to ask Cline to do your task again and see if possibly rewording the prompt or course correcting more often through the task helps in getting the desired result.
If you can create a reproducible instance where a given task is able to be accomplished in v1.9.7 and cannot be accomplished in v2.0, then please let me know/open a new ticket with your task exports–that could help me move things in the right direction.
Closing this ticket since there isn't anything I can fix here, other than improving the system/tool prompt to cover wider use cases which is already something I'm actively working on.


fix(package):  readd --copy-files (scripts.build)

Issues

Fixes https://github.com/webpack-contrib/file-loader/issues/208

Already done thx 😛


Unable to use FFCV + Lightning in a DDP setting

Bug description
Hi,
As a long time PL user, I'd like to thank you for this awesome library.
I have an issue when using FFCV + PL in a DDP setting.
On a single GPU, I can read the data from the saved .beton file just fine with lightning. However, I do have to specify ToDevice(torch.device('cuda:0'), non_blocking=True) explicitly inside the datamodule as omitting this gets stuck indefinitely due to https://github.com/libffcv/ffcv/issues/350
Without FFCV, I was relying on PL to place the data on the corresponding devices (under DDP) and it works perfectly.
I am using Hydra config to define my transformations, so explicitly placing transformations inside Datamodule is not something I'd like to do.
What changes should I make in-order to accommodate DDP + PL + Hydra ?
Thank you.
What version are you seeing the problem on?
v2.0
How to reproduce the bug
No response
Error messages and logs
# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info
No response
cc @justusschock @awaelchli

@as3895 Can you provide a code example?
If by datamodule you mean your implementation in train_dataloader(), you can access the device via torch.device("cuda", self.trainer.local_rank) or self.trainer.strategy.root_device if you don't want to hardcode it.

Hi @awaelchli,
Any luck in reproducing this?

Hi @as3895
I took the CIFAR FFCV example and converted it to Lightning for you:
from typing import List
import numpy as np

import torch
import torch.nn as nn
from torch.nn import CrossEntropyLoss, Conv2d, BatchNorm2d
import torchvision

from ffcv.fields import IntField, RGBImageField
from ffcv.fields.decoders import IntDecoder, SimpleRGBImageDecoder
from ffcv.loader import Loader, OrderOption
from ffcv.pipeline.operation import Operation
from ffcv.transforms import (
    RandomHorizontalFlip,
    Cutout,
    RandomTranslate,
    Convert,
    ToDevice,
    ToTensor,
    ToTorchImage,
)
from ffcv.transforms.common import Squeeze
from lightning.pytorch import LightningModule, Trainer

CIFAR_MEAN = [125.307, 122.961, 113.8575]
CIFAR_STD = [51.5865, 50.847, 51.255]

# Model (from KakaoBrain: https://github.com/wbaek/torchskeleton)
class Mul(nn.Module):
    def __init__(self, weight):
        super(Mul, self).__init__()
        self.weight = weight

    def forward(self, x):
        return x * self.weight

class Flatten(nn.Module):
    def forward(self, x):
        return x.view(x.size(0), -1)

class Residual(nn.Module):
    def __init__(self, module):
        super(Residual, self).__init__()
        self.module = module

    def forward(self, x):
        return x + self.module(x)

def conv_bn(channels_in, channels_out, kernel_size=3, stride=1, padding=1, groups=1):
    return nn.Sequential(
        nn.Conv2d(
            channels_in,
            channels_out,
            kernel_size=kernel_size,
            stride=stride,
            padding=padding,
            groups=groups,
            bias=False,
        ),
        nn.BatchNorm2d(channels_out),
        nn.ReLU(inplace=True),
    )

class Model(LightningModule):
    def __init__(self):
        super().__init__()
        num_class = 10
        model = nn.Sequential(
            conv_bn(3, 64, kernel_size=3, stride=1, padding=1),
            conv_bn(64, 128, kernel_size=5, stride=2, padding=2),
            Residual(nn.Sequential(conv_bn(128, 128), conv_bn(128, 128))),
            conv_bn(128, 256, kernel_size=3, stride=1, padding=1),
            nn.MaxPool2d(2),
            Residual(nn.Sequential(conv_bn(256, 256), conv_bn(256, 256))),
            conv_bn(256, 128, kernel_size=3, stride=1, padding=0),
            nn.AdaptiveMaxPool2d((1, 1)),
            Flatten(),
            nn.Linear(128, num_class, bias=False),
            Mul(0.2),
        )
        self.model = model.to(memory_format=torch.channels_last)
        self.loss_fn = CrossEntropyLoss(label_smoothing=0.1)

    def training_step(self, batch):
        ims, labs = batch
        out = self.model(ims)
        loss = self.loss_fn(out, labs)
        return loss

    def configure_optimizers(self):
        return torch.optim.SGD(
            self.model.parameters(), lr=0.5, momentum=0.9, weight_decay=5e-4
        )

    def train_dataloader(self):
        label_pipeline: List[Operation] = [
            IntDecoder(),
            ToTensor(),
            ToDevice(self.device),
            Squeeze(),
        ]
        image_pipeline: List[Operation] = [SimpleRGBImageDecoder()]
        image_pipeline.extend(
            [
                RandomHorizontalFlip(),
                RandomTranslate(padding=2, fill=tuple(map(int, CIFAR_MEAN))),
                Cutout(4, tuple(map(int, CIFAR_MEAN))),
            ]
        )
        image_pipeline.extend(
            [
                ToTensor(),
                ToDevice(self.device, non_blocking=True),
                ToTorchImage(),
                Convert(torch.float16),
                torchvision.transforms.Normalize(CIFAR_MEAN, CIFAR_STD),
            ]
        )

        return Loader(
            "/tmp/cifar_train.beton",
            batch_size=512,
            num_workers=8,
            order=OrderOption.RANDOM,
            drop_last=True,
            pipelines={"image": image_pipeline, "label": label_pipeline},
        )

    def val_dataloader(self):
        label_pipeline: List[Operation] = [
            IntDecoder(),
            ToTensor(),
            ToDevice(self.device),
            Squeeze(),
        ]
        image_pipeline: List[Operation] = [SimpleRGBImageDecoder()]
        image_pipeline.extend(
            [
                ToTensor(),
                ToDevice(self.device, non_blocking=True),
                ToTorchImage(),
                Convert(torch.float16),
                torchvision.transforms.Normalize(CIFAR_MEAN, CIFAR_STD),
            ]
        )

        return Loader(
            "/tmp/cifar_test.beton",
            batch_size=512,
            num_workers=8,
            order=OrderOption.SEQUENTIAL,
            drop_last=False,
            pipelines={"image": image_pipeline, "label": label_pipeline},
        )

def main():
    model = Model()
    trainer = Trainer(max_epochs=24, devices=2, precision="16-mixed")
    trainer.fit(model)
    # TODO: testing

if __name__ == "__main__":
    main()

This should show you very clearly how to use FFCV with Lightning. Note the usage of ToDevice(self.device, non_blocking=True) where I reference self.device. You can also reference the trainer's device from the datamodule, see my previous https://github.com/Lightning-AI/pytorch-lightning/issues/19409#issuecomment-1927028018. The example above also demonstrates that it's working in multi-GPU with the correct device.
Regarding how to do it with Hydra, I can't really help you here. You need to follow the documentation for Hydra to learn how to instantiate the objects. I assume that if you configure it correctly, you can let Hydra just instantiate your DataModule or LightningModule directly with the args you want.

Thanks a lot!