Shuffling the data between epochs

I see that the Dataloaders have the shuffle parameter set to False and this is done because the way data loading is handled currently only allows sequential data reads. However, training the algorithm every epoch on data points in the same order is generally a bad practice. Is there another reason for that besides the convenience in terms of data loading and do you expect an increase in accuracy if the algorithm allowed for shuffling during training?

Thanks for the explanation, everything you said is correct. Since the files with the ESM embeddings for all proteins are so large, we cannot load them all at once during model training, but have to load them successively. I am not changing the order of these larger files (which could also be implemented), just within these larger protein chunks. Since these are large chunks of the total dataset, I don't expect there to be much difference from completely shuffling the dataset, but of course I don't know for sure. Maybe it helps a little bit to implement more data shuffling.


#6 Replace System methods with objects

Resolves #6

@fedorpashin I couldn't find any assignee for this task. This is either because there are no contributors with role REV available or because the project does not have enough funds.
Please, make sure there is at least one available contributor with the required role and the project can afford to pay them.


Request: Steps to deploy to Heroku

Hello,
Tarlepp, you're doing a wonderful job by posting this boiler plate code. I was able to deploy the backend part to Heroku properly. But I'm not sure how the frontend can be properly deployed on Heroku. I'm relatively new to Gulp. If you can help with some steps to deploy to Heroku, that will be great.
Warm Regards!

@anupsarode Did you get Heroku deplo working? If yes, could you provide PR that contains detailed information about that?

Any updates?

@anupsarode ^up

Hello,
I got it up and running on Heroku. Following are the steps.

In the sails project, install forever module

$ sudo npm install forever --save

Create a Procfile in the projects root folder with following copy in it

web: ./node_modules/.bin/forever app.js

Create an App in Heroku Dashboard and Login to Heroku in Terminal

$ heroku login

Clone the repo to the local machine

$ heroku git:clone -a
$ cd

Deploy the changes from local machine to Heroku

$ git add .
$ git commit -am "Initial Commit"
$ git push heroku master

Test

$ heroku open

@anupsarode thanks for the info, closing this now.


[ZT] WARP with legacy VPN

PCX-8160
PCX-6408

Page that needs review: https://ranbel-warp-with-vpn.cloudflare-docs-7ou.pages.dev/cloudflare-one/connections/connect-devices/warp/deployment/vpn/


need support for East-Asian languages

Here's an example: http://codepen.io/Diablohu/pen/ORKejx

http://codepen.io/yowainwright/pen/wzVgMp 🤓 🙌
Worked on that yesterday - It was updated 2 versions ago.
Please let me know if it could be improved. ~Thanks

Haven't noticed that update. I just forked and tested the Pen listed on the project home page. Thanks anyway and keep the great work on!


Shift+Enter inserts newlines instead of line-breaks?

I noticed a strange behavior in my local testing. Using the Shift+Enter combination inserts a new line instead of a line-break (
) element. This differs from the line-break tool which does correctly insert the
.
Am I missing something? Is this a configuration option?

Hi @shawnlehner - can you confirm a couple of details for me?

Which version of CT are you using?
Are you pressing shift-enter in a text or preformatted text block (e.g
 vs
 tag).
Does this behaviour occur for you when you use the online demo?

I can't replicate this in my local sandbox or on the online demo but if you can then my guess is if that perhaps for a given OS and/or browser I'm not registering the shift key being held down. If so can you provide me with OS/Browser details so I can attempt to replicate?
Thanks in advance.

Ah I wasn't saving so on inspecting the element in edit mode the BRs are there. Will take a look at this now.

Quick experiment and I think the cause is that the shift+enter key isn't triggering a modify event against the text element so when you save it returns an out of date version of the content. Thanks for the spot. Will push out a fix in the next release tomorrow.

Great. Thank you very much for the help!
Amazing editor by the way!


chat-server implementation requires a review

Some sockets aren't being disconnected, it seems. This results in phantom connections to chat.

The whole client-side chatbox needs a rework.

The chat-server is old, and has undergone very little maintenance since it's initial development. It might be time to have another look.


Various fixes

Here's some quick stuff I did to get everything working.

Enforce tabs on the project level
Clean up some syntax
Fix a button sender issue
Fix some compile errors/warnings

This does not include the submodule changes I had to do in Puissant to get everything working.

There's so much stuff in here that has to change one way or another.  Thanks for taking the first steps.
:boat:

Definitely. Like I mentioned above, that Puissant submodules update was required before I could build anything.

Welp, I've managed to temporarily fix the godawful mess that is the submodules.  It should be all good using the stock instructions with a clean clone.


feat(nft-tags): add nft-tags

https://github.com/Magickbase/ckb-explorer-public-issues/issues/647
https://ckb-explorer-frontend-in-magickbase-repo-git-d27caf-magickbase.vercel.app/nft-collections
Because of using the component MultiFilterButton defined in https://github.com/Magickbase/ckb-explorer-frontend/pull/378, so this branch is based on it.

Any update on the conversations above?

Any update on the conversations above?

solved

1、In the screenshot, the three tags cannot filter data. Are they not needed in the NFT Collection? At the same time, I see that there is an RGB++ compatible tag on the page, but there is no option for filtering.  cc @Sven-TBD

2、When there is no data, paging needs to be handled.

3、After adding Tags to NFT Collection, the original Created Time and Creator styles became abnormal.

4、The font color in the label can be modified by referring to xudt.

3、After adding Tags to NFT Collection, the original Created Time and Creator styles became abnormal.

This problem still exists. @Daryl-L

Because there are filter icons for both Tags and Type on NFT Collection, the positions are kept consistent. Now I find that the Tags label is a little too high.

3、After adding Tags to NFT Collection, the original Created Time and Creator styles became abnormal.

This problem still exists. @Daryl-L

Because there are filter icons for both Tags and Type on NFT Collection, the positions are kept consistent. Now I find that the Tags label is a little too high.

There is no enough place to display the Create Time in one line when you reduce the width.

3、After adding Tags to NFT Collection, the original Created Time and Creator styles became abnormal.

This problem still exists. @Daryl-L

Because there are filter icons for both Tags and Type on NFT Collection, the positions are kept consistent. Now I find that the Tags label is a little too high.

There is no enough place to display the Create Time in one line when you reduce the width.

In the browser with 100% resolution, the styles of Created Time and Creator are abnormal. Can you try to shorten the distance between Type and 24hr Transactions to make the last two items display normally?

https://ckb-explorer-frontend-in-magickbase-repo-rn19usuc5-magickbase.vercel.app/nft-collections

Why does this PC style look like a mobile version?  @Daryl-L

3、After adding Tags to NFT Collection, the original Created Time and Creator styles became abnormal.

This problem still exists. @Daryl-L

Because there are filter icons for both Tags and Type on NFT Collection, the positions are kept consistent. Now I find that the Tags label is a little too high.

There is no enough place to display the Create Time in one line when you reduce the width.

In the browser with 100% resolution, the styles of `Created Time` and `Creator` are abnormal. Can you try to shorten the distance between `Type` and `24hr Transactions` to make the last two items display normally?

This problem still exists, please confirm again.

Visit Preview

Maybe the preview link has been updated

Visit Preview

Maybe the preview link has been updated

Yes, this section has been updated in the new preveiw.

https://ckb-explorer-frontend-in-magickbase-repo-2v4r0h8do-magickbase.vercel.app/nft-collections?tags=out-of-length-range

1、When there is no data, the prompt text needs to be displayed in the center.

2、Duplicate tags are not supported on the NFT Api.

Magickbase/ckb-explorer-public-issues#647

base on https://vs0cjf.axshare.com/?id=tibwdv&p=_647___nft_tag_prd&g=1

@zmcNotafraid Could we adjust the max limit in the defination out-of-length-range to like 30 characters so that it could be more practical? cc @Keith-CY

Sure, the convention(https://talk.nervos.org/t/xudt-information-convention-rfc/8030/2) mentioned before has expired, so we can define our own rules.


About Loading the Pre-trained weights to finetune the down-stream tasks:

Hi, I was having doubts about whether I have correctly loaded the pre-trained weights to the model when I was trying to finetune the down-stream tasks. For example, when I was trying the task of pocket property prediction, how should I use the pre-trained weights (i.e. how to set the weight path in my training script)? Should I set the $weight_path to be the path to provided pocket_pre_220816.pt ? After I do so, the printed training log is as follows:

Does this mean I have loaded the pre-trained weights correctly? According to the uni-core source code and the 2022-09-05 05:03:10 | INFO | unicore.trainer | No existing checkpoint found /home/ubuntu/Uni-Mol/pretrain_models/pocket_pre_220816.pt log,  I fear that nothing was loaded.

A follow-up question: If I wanted to fix the parameter of the pre-trained model and just update the weights of the classification heads, what is the simplest way to do so other than changing the uni-core source code?

This WARNING is usual since the output heads for pretraining and finetune are different. The weights of the other parts can be loaded as expected.

This WARNING is usual since the output heads for pretraining and finetune are different. The weights of the other parts can be loaded as expected.

sorry for miss that.
you can set p.requires_grad = False to the parameters that you don't want to optimize
ref: https://github.com/facebookresearch/fairseq/blob/c0c326cbf8c517a6f6d2e63747567a7f3b33a2b6/fairseq/modules/transformer_sentence_encoder.py#L184-L196

Thank you for your answer. Have a good day!

Hi, I was having doubts about whether I have correctly loaded the pre-trained weights to the model when I was trying to finetune the down-stream tasks. For example, when I was trying the task of pocket property prediction, how should I use the pre-trained weights (i.e. how to set the weight path in my training script)? Should I set the $weight_path to be the path to provided pocket_pre_220816.pt ? After I do so, the printed training log is as follows:

Does this mean I have loaded the pre-trained weights correctly? According to the uni-core source code and the 2022-09-05 05:03:10 | INFO | unicore.trainer | No existing checkpoint found /home/ubuntu/Uni-Mol/pretrain_models/pocket_pre_220816.pt log, I fear that nothing was loaded.

Hello, I'm a freshman, but I'm particularly interested in this project. I don't know how to build training scripts, could you please share your traning scripts available?


How to add Complex Mods?

How can I add a complex mod from a JSON file on my Desktop? (OS X)
I can't figure this out...

Looked in the docs
Look in here on Github.
Could not find anything in the app.
I tried to add a button on a web page to load the JSON file from a Github Gist, it still would not work. Unsupported URL

@F1LT3R Take a look at this project. https://github.com/pqrs-org/KE-complex_modifications If your json is correctly formatted, you can use the method suggested there for "Local testing"

Thanks @ktaragorn I will check this out.

This worked perfectly, thanks @ktaragorn !


Add GTC 2021 talk on GPU Computing

Adds a link to Stephen Jones' talk from GTC 2021 on "How GPU Computing Works". Is a bit more basic compared to his GTC 2022 talk on CUDA programming and should be a good addition for "Essentials"

Thanks a lot!


Interested in supporting NSOutlineView?

I can provide support similar to NSOutlineViewDiffableDataSource
I found this a few method through reverse engineering, in the case of don't need to implement the delegate method to NSTableView provide the data. I'm guessing this is probably reserved for the NSTableViewDiffableDataSource
@objc
protocol NSTableViewInternalDataSource: NSTableViewDataSource {
    @objc(_tableView:viewForTableColumn:row:)
    func _tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?
    @objc(_tableView:rowViewForRow:)
    func _tableView(_ tableView: NSTableView, rowViewForRow row: Int) -> NSTableRowView?
    @objc(_tableView:isGroupRow:)
    func _tableView(_ tableView: NSTableView, isGroupRow row: Int) -> Bool
}

But when I asked through TSI support if it had the same reservation for NSOutlineView, I got a negative response, which means that we may need to go through a delegate proxy to forward the.

Thanks! I'm already expose the mentioned methods (see Extensions/NSTableView/NSTableViewDiffableDataSource+).

So do you have plans to support NSOutlineView?

I might support it in the future. I already have some working code on my Mac for a diffable outline datasource, but it's far from finished and not my mine focus.
My current priority is to improve NSItemContentConfiguration and NSListContentConfiguration.
I also have already wrote advanced iOS diffable collection and table datasources that adds all the same handlers and methods like my Mac counterparts. I'm unsure if I should include them in this repository or create a separate on.

Ok, I understand. I hope you can incorporate more UIKit design into AppKit. I'm very interested in it


Error while running console commands

When I attempt to run console based commands, I get the included error. I have been googling about to see if anyone has experienced something similar but cant seem to find a solution. I have checked my settings and everything appears in order and running normal routes works perfectly.
I am a little stumped as to how to bug test this further.
If I comment out: 'ZF\OAuth2', from application config, the error vanishes.
Any ideas?
Much appreciated.
PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in trunk/vendor/bshaffer/oauth2-server-php/src/OAuth2/Storage/Pdo.php:53
Stack trace:
#0 /Applications/MAMP/htdocs/workspaces/trade/trunk/vendor/bshaffer/oauth2-server-php/src/OAuth2/Storage/Pdo.php(53): PDO->__construct('mysql:dbname=on...', 'root', 'root', Array)
#1 /Applications/MAMP/htdocs/workspaces/trade/trunk/vendor/zfcampus/zf-oauth2/src/Adapter/PdoAdapter.php(89): OAuth2\Storage\Pdo->__construct(Array, Array)
#2 /Applications/MAMP/htdocs/workspaces/trade/trunk/vendor/zfcampus/zf-oauth2/src/Factory/PdoAdapterFactory.php(45): ZF\OAuth2\Adapter\PdoAdapter->__construct(Array, Array)
#3 [internal function]: ZF\OAuth2\Factory\PdoAdapterFactory->createService(Object(Zend\ServiceManager\ServiceManager), 'zfoauth2adapter...', 'ZF\OAuth2\Adapt...')
#4 /Applications/MAMP/htdocs/workspaces/trade/trunk/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceM in /Applications/MAMP/htdocs/workspaces/trade/trunk/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 930
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /Applications/MAMP/htdocs/workspaces/trade/trunk/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 930

This should be fixed with the 1.1.2 release of zf-oauth2. You can update using composer update zfcampus/zf-oauth2; if it does not update, try composer require zfcampus/zf-oauth2:^1.1.2.


[SPARK-44770][WEBUI] Add a displayOrder variable to WebUITab to specify the order in which tabs appear

What changes were proposed in this pull request?
Add a displayOrder variable to WebUITab to specify the order in which tabs appear. Currently, the tabs are ordered by when they get attached, which isn't always desired. The default is MIN_VALUE, meaning if it's not specified, it will appear in the order added before any tabs with a non-default displayOrder.
Why are the changes needed?
These changes allow control over the order which tabs appear in the UI. Currently, the tabs are ordered by when they get attached, but this doesn't always match the desired order. For example, we would like to have the SQL Tab appear before the Connect tab; however, based on the code flow, the Connect tab will be attached first and with the current logic, that tab would also appear first.
Does this PR introduce any user-facing change?
Yes, minor user-facing change affecting the order in which tabs appear in the Spark UI
How was this patch tested?
Manually tested
Before:

After:

thanks, merged to master

Late LGTM.
@jasonli-db I think we need this in branch-3.5 as well, since Spark 3.5 is not released yet.


The behavior of KinematicBody2D is not consistent

Operating system or device - Godot version:
godot 2.1.3
Issue description:

it's a very simple update method that make a body move on the ground and when it hit a wall, it will move in the opposite direction. It works sometimes.  But sometimes it will not  bounce back when hit a wall, it will just stop by the wall.
func _fixed_process(delta):
vel.y += 2000 * delta
var motion = move(vel * delta)
if is_colliding():
var normal = get_collision_normal()
if normal.x != 0:
vel.x = -vel.x
else:
vel.y = 0
motion = normal.slide(motion)
move(motion)
Steps to reproduce:
Link to minimal example project:

Where are the last 2 lines? (no indentation makes hard to see)
How big are your walls? (2000 units/second could be high speed and get weird effects against small colliders)
If you can provide a project, it could help to test better.

fast moving body pass through an obstacle is another issue.
This is just a very common example.

Uploading issue.zip…
2 issues in this simple demo:
1 the body will not bounce back, but it would bounce back if make the size of the shape a little smaller
2 the cat outside the screen should not move into the screen.

I can not upload a zip file currently, I will try it again later.

issue.zip

it seems this issue happens only when the size of the rectangle shape is set to some values.

@alexzheng I think you found a new effect of an old bug, it seems that move keeps old data in the same frame, is already fixed but on 2.1.3 needs to be toggled on in project settings>physics2d>motion_fix_enabled.
To avoid things like this is why I have suggested #9137

yes, this fix my issue, thanks for your reply.
It seems the move api is still not ready for production yet, it has some other issues as I reported.

This is likely fixed in 3.0 already, the move() API was reworked as move_and_slide() and should be more efficient.

Manually closing because of #9866.


chore(cyclonedx): Change the location and visibility of the test data

This is a fixup for 970c638eb969b075ce8c9415f1b8c8a3a8e3bb53.
@fviernau This PR addresses your last comments on https://github.com/oss-review-toolkit/ort/pull/9471 that I could not answer because of the auto merge.

@fviernau This PR addresses your last comments on #9471 that I could not answer because of the auto merge.

Didn't @fviernau still explicitly approve (without this change) due to this comment of mine?

@fviernau This PR addresses your last comments on #9471 that I could not answer because of the auto merge.

Didn't @fviernau still explicitly approve (without this change) due to this comment of mine?

Ah true, I missed it. I will just put the renaming then.

No needed (see comments).


Added more sheilds

Increase the visibility and quick readablity of people reading through github quickly trying to find a library

:+1:


Disaster Recovery Drill

Two scenarios:

[ ] Restore TEST using pgbackrest to another instance of Postgres/Crunchy on a different namespace.
[ ] Restore the pvc that contains the db and redeploy the database on a different namespace.
Note: requires submitting an MySC ticket and likely will have a cost associated to it.

https://docs.developer.gov.bc.ca/netapp-backup-restore/


kRPCConnect error

Hey, thanks for the package! I started experimenting with it, but unfortunately, I hit an error right into the first command of my program!
When running kRPCConnect("test") I get the following error:
ERROR: MethodError: no method matching read(::TCPSocket, ::Type{UInt8}, ::Int64)
Closest candidates are:
  read(::Base.LibuvStream, ::Type{UInt8}) at stream.jl:751
  read(::IO, ::Type{UInt8}) at io.jl:182
  read(::AbstractString, ::Any...) at io.jl:295
  ...
Stacktrace:
 [1] RecvRawProto(::TCPSocket) at /home/gstavrinos/.julia/packages/kRPC/N4650/src/raw.jl:26
 [2] connect_or_error(::TCPSocket, ::kRPC.krpc.schema.ConnectionRequest) at /home/gstavrinos/.julia/packages/kRPC/N4650/src/connection.jl:11
 [3] kRPCConnect(::String, ::String, ::Int64, ::Int64) at /home/gstavrinos/.julia/packages/kRPC/N4650/src/connection.jl:47
 [4] kRPCConnect(::String) at /home/gstavrinos/.julia/packages/kRPC/N4650/src/connection.jl:40
 [5] top-level scope at none:0

Any ideas?
Thanks,
George

Ah, this is due to a newer version of Julia than the one I originally was working on. I'll get a fix in soon, thanks!
I should warn you that this package isn't really in good shape for external use; as long as you can get through the setup process it should be fine, but please let me know if you run into problems.

Should be fixed in #031d88d.

Thanks for the quick fix! I will check it out later today and report back if I face any other problem! Cheers!


readme: building requires utf8 locale

See also https://github.com/crate/crate-jdbc/issues/272

@nslater maybe we should also make the download location of the jar files more prominent in the readme. looks like the user did know realize that he could download the jars and therefore tried to build from source. what do you think?


Python 2.7 deprecation

In 6 months from now boto3 will finally drop support for Python 2.7:

Boto3 will no longer support Python 2.7 starting July 15, 2021. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.6 or later. More information can be found here: https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/

Python 2.7 reached EOL already several months ago, what are moto's plans on the topic?

As long as boto3 is still supporting it, I think it makes sense for us to do so as well.
After July, I am potentially open to dropping support, but don't have strong feelings one way or the other.

Python 2.x is now no longer supported as of Moto 2.2.x.


Drag drop anywhere within grid

All libraries I've come across (gridstack, gridly, gridster) do not allow a widget to be dropped with some vertical spacing - it always snaps upwards to the nearest widget. Seeking some help here with customising gridstack to allow this behaviour.

Set the float option to true:
$(container).gridstack({
    float: true
})

so easy, thanks!


Inspire reporting from Norway 2024

Country fiche from Norway 2024

Dear @larsingea,
thank you for your contribution.
I have corrected some typos and added a link to CF 2024 in the readme file.
I will merge the PR.


Use dedicated copr for packit builds

Builds will show up under https://copr.fedorainfracloud.org/coprs/g/meta/time/

Codecov Report

Merging #148 (ad1a630) into main (e95c6e5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage   56.36%   56.36%
=======================================
  Files          71       71
  Lines        6611     6611
=======================================
  Hits         3726     3726
  Misses       2502     2502
  Partials      383      383

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 e95c6e5...ad1a630. Read the comment docs.

Build failures are due to a new dependency that's not currently packaged, adding it in https://bugzilla.redhat.com/show_bug.cgi?id=2077297

Looks like that was added in https://github.com/facebook/time/commit/0794f061785b045b9ba30fc94035ace8a268c52c

@abulimov needs to fix the dependencies first ;)

Fixed the project config in copr as requested.

CI is passing and this should be good to merge now.


dockplugin: refactor to avoid return functions

This PR changes the handlers for dockplugin to not return functions when that's not needed.

LGTM.
I like the fact that removing the extra return, also reduced the indentation for a whole bunch of code making it more readable :+1:

+1 for the simplification


Multiple feature additions

add workflow link to comment (#14)
Add header and footer to the comment
quite mode. dont comment if there are no changes (#11)

This pr has become absolute mess in attempt to get things working ☠
Will raise a new one after after some cleanup

Closing in prefrence to #60


Unable to set var.instance_refresh to null

Description
I would like to conditionally enable the instance_refresh capability when importing this module into my own.
Versions

Module version: 7.4.1
Terraform version: 1.7.1

Reproduction Code
I'm attempting to do this via the  input
locals = {
  refresh = false
  default_instance_refresh = {
    strategy = "Rolling"
    preferences = {
      min_healthy_percentage = 100
      max_healthy_percentage = 110
    }
  }
}

inputs = {
  instance_refresh = local.refresh ? local.default_instance_refresh : null
}

However, this throws an error since this module performs an unchecked length(var.instance_refresh) here: https://github.com/terraform-aws-modules/terraform-aws-autoscaling/blob/master/main.tf#L415
Note that I cannot pass {} instead of null because terraform will throw an expected type mismatch.
Additional Comments
I posed the question to terraform folks and they had some suggestions for how this may be fixed: https://discuss.hashicorp.com/t/conditionally-pass-complex-object/66171

null is not valid, set an empy map {}

An empty map cannot be used here because it produces a type mismatch with local.default_instance_refresh
Inconsistent conditional result types; The true and false result expressions must have consistent types.
The 'true' value includes object attribute "preferences", which is absent in the 'false' value.

I've been able to get this working by simply adding nullable = false to the variable definition here: https://github.com/terraform-aws-modules/terraform-aws-autoscaling/blob/master/variables.tf#L202-L206
Although this seems to require bumping the minimum version this module supports from 1.0 to 1.1: https://developer.hashicorp.com/terraform/language/values/variables#disallowing-null-input-values

if you want to follow this wrapping approach, you have to work around the limitations of Terraform. Since you have not provided a full reproduction, I'll do my best
locals {
  refresh = true

  instance_refresh = { for k, v in {
    strategy = "Rolling"
    preferences = {
      min_healthy_percentage = 100
      max_healthy_percentage = 110
    }
    } : k => v if local.refresh
  }
}

# I don't know what this is, but its not valid on its own like this
inputs = {
  instance_refresh = local.default_instance_refresh
}

Thank you for this example! This does appear to satisfy my usage :slightly_smiling_face:

closing for now


[Q] Python API runs, filter by tags

Hello,
I'm using the python API to download the data associated with my runs (using wandb.Api().runs(...), so that I can make my own custom plots.  The examples I've found have covered how to filter based on config values, but I found nothing explaining how to filter based on tag values (or if it is even possible), like it is possible in the dashboard UI.  For the time being, I will proceed by downloading all the data associated with all the tags, and applying a filter locally, but that seems like a wasteful usage of bandwidth, both mine and wandb's.
Is there currently a way to apply a filter based on tag values?  If there is not, I will reopen this as a feature request.
Thank you!

runs = api.runs("username/project", filters={"tags": {"$in": ["best"]}})

Seems like I was just not familiar enough with the MongoDB query language;  thank you!

You bet!  Yeah, we can do a better job documenting examples and have plans to make a more intuitive python helper to construct filters.

That would be much appreciated

For future reference:
https://www.mongodb.com/docs/manual/reference/operator/query-comparison/


Vehicle Location unavaiable.

After upgrading to HA 2022.7.1 I am no longer getting a location for my 2016 XTrek. All other sensors & function works as expected.
Here is the only log entry I located.
Logger: homeassistant.components.device_tracker
Source: helpers/entity.py:459
Integration: Device tracker (documentation, issues)
First occurred: July 9, 2023 at 9:13:56 AM (4 occurrences)
Last logged: 6:23:49 AM
Error adding entities for domain device_tracker with platform subaru
Error while setting up subaru platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 504, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 680, in _async_add_entity
f"{device_name} {entity.suggested_object_id}"
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in suggested_object_id
if self.class.name.fget is Entity.name.fget and self.platform:  # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'fget'

Are you using the latest version?
https://github.com/G-Two/homeassistant-subaru/releases/tag/v0.7.9
A fix for this issue was just released that may fix your problem.
https://github.com/G-Two/homeassistant-subaru/issues/90


Formatting / spelling / grammar nit in tabs API proposal

https://github.com/microsoft/vscode/blob/947a99acad4f68f751cb364a6fd23200a8fb4002/src/vscode-dts/vscode.proposed.tabs.d.ts#L83
Indentation is wrong.
"occurred".
Grammar could be improved.
/assign @lramos15

Ouch, I'm getting roasted. I guess this is why they call it proposed. Thanks for pointing it out :)


How to get Fuzzilli to ignore certain crash signatures?

Some types of crashes are controlled ones which are generally not useful.
Does Fuzzilli have a mechanism to ignore certain types of crashes?

Hi! No, there is no mechanism for this and it would probably be quite fiddly to implement and somewhat dangerous to have. How can Fuzzilli be sure that a RELEASE_ASSERT you are triggering isn't the symptom of a bug that can also be triggered in other ways? Fuzzilli should include stderr output as comment in the repro file for each crash. With that, you should be able to just grep through the failure messages etc. and do some quick initial filtering based on that.

Thanks for the quick answer! Will close this...


ja: Make docs/concepts/services-networking/connect-applications-service.md follow v1.18 of the original text

This is a Feature Request

What would you like to be added
Update docs/concepts/services-networking/connect-applications-service.md to follow v1.18 of the original (English) text.
Why is this needed
content/ja/docs/concepts/services-networking/connect-applications-service.md is outdated.
Comments
/language ja
/good-first-issue
File to update
https://github.com/kubernetes/website/blob/dev-1.18-ja.1/content/ja/docs/concepts/services-networking/connect-applications-service.md
Original
https://github.com/kubernetes/website/blob/fb6364d/content/en/docs/concepts/services-networking/connect-applications-service.md
diff between translated and v1.18
https://gist.github.com/b2d9e03b1350df94b997dbf54260957b
Note
Currently, we use dev-1.18-ja.1 branch. Please open a PR targeting the branch.
ref
https://kubernetes.io/ja/docs/contribute/localization/
If you have a question, feel free to ask us at slack.k8s.io #kubernetes-docs-ja channel.

/assign

/close


CORS policy: No 'Access-Control-Allow-Origin' within localhost and "http://<IP_ADDRESS>:3000"

Running in some internal issue.  I've added a table with points. I made a website with mapbox GL and followed the directions in the README. The website is running on localhost.
Looks like I am running into a CORS issue and need help to solve.

Looks like the table is loading but when it fetched the "pbf" files is unreachable.
I'll appreciate the help.
Thanks

Try the same using firefox with this extension -- https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/

Well, that's strange because martin sets Access-Control-Allow-Origin: * by default.
Could you please provide a repo or step-by-step instructions for me to reproduce this issue?

@rrlara Make sure to click on the extension after installing, it'll turn green. I have been fighting CORS for days across multiple projects, then I stumbled on this extension, works like a charm.
And if that doesn't work, could you share the console log-- with the extension enabled.

@rrlara Make sure to click on the extension after installing, it'll turn green. I have been fighting CORS for days across multiple projects, then I stumbled on this extension, works like a charm.
And if that doesn't work, could you share the console log-- with the extension enabled.

Same issue here.

It looks like Access-Control-Allow-Origin: * is not set in the response headers of .pbf requests.

Unfortunately, I still cannot reproduce this issue.
Eg. this is my setup on macOS:
brew install postgresql
brew install postgis
brew services start postgresql
createuser -s postgres
createdb db
psql -U postgres -d db

db=# create extension postgis;
CREATE EXTENSION
db=# create table points(gid serial PRIMARY KEY, geom geometry(GEOMETRY, 4326));
CREATE TABLE
db=# insert into points
db-#     select
db-#         generate_series(1, 5000) as id,
db-#         (st_dump(st_generatepoints(st_geomfromtext('POLYGON ((-180 90, 180 90, 180 -90, -180 -90, -180 90))', 4326), 5000))).geom;
INSERT 0 5000
db=# create index on points using gist(geom);
CREATE INDEX

docker run \
  -p 3000:3000 \
  -e<EMAIL_ADDRESS>\
  urbica/martin

open tests/debug.html
@rrlara @volkanunsal could you please provide steps to reproducible this? What OS do you use? Did you try to pull the latest version of docker image with docker pull urbica/martin?

You’re testing in a file served from the file system. Try starting a server at port 3001 from tests directory and then navigate to localhost:3001/debug.html.

@volkanunsal I've tried to start web-server and serve debug page with
npx serve tests

And I still can access tiles from http://localhost:5000/debug

That worked for me, too. But it doesn't work when I use my own table instead of the test table. The only difference as far as I can see is the name of the geometry_column.
Modify tests/config.yaml
---
pool_size: 20
keep_alive: 75
worker_processes: 8
listen_addresses: "<IP_ADDRESS>:3000"

table_sources:
  public.tenants:
    id: public.tenants
    schema: public
    table: tenants
    geometry_column: the_geom
    srid: 4326
    extent: 4096
    buffer: 64
    clip_geom: true
    geometry_type: GEOMETRY
    properties:
      gid: int4

Then
martin --config=./tests/config.yaml postgres://newuser@localhost:5433/my_db

(My postgres is at port 5433.)
npx serve tests

@volkanunsal what distribution do you use? Are you using martin from homebrew or did you compiled it from the master branch?

Martin from homebrew.

@volkanunsal it seems that there was a problem with homebrew distribution, could you please reinstall martin from the tap?
brew uninstall martin
brew untap urbica/tap
brew tap urbica/tap
brew install martin

Almost the same error.

@rrlara can you still reproduce this issue with the latest docker image?

Same issue here with the latest martin/urbica docker image.
Points seem to work well but when we switch to lines ... we have the CORS message. Let us know if you need more information than the ones provided above. Thank you for the good work !

We experience the exact same issue. It seems to be intermitent, everytime we restart the docker stack we have some random layers showing the cors error , few minutes (hours) later the error is gone.

Hi everyone! Could you please try to reproduce this with the latest version of martin?

@stepankuzmin Yes. json file with CORS header *, and .pbf files are without.

@bravecow what kind of distribution are you using? Docker or some platform binaries?

@bravecow could you please try to rewrite request URL?

@stepankuzmin
map.addSource('contours', {
      "type": "vector",
      "url": "https://lun-16.lun.in.ua/rpc/public.source_lun_contours.json"
});

map.addLayer({
      'id': 'contours',
      'type': 'fill',
      'source': 'contours',
      'source-layer': 'contours',
      'paint': {
        'fill-color': '#f00',
        'fill-opacity': 0.5
      }
});

our JSON config:
    location / {
        add_header 'access-control-allow-origin' '*';
        try_files $uri @martin;
    }

    location @martin {
        proxy_set_header  X-Rewrite-URL $request_uri;
        proxy_set_header  X-Forwarded-Host $host;
        proxy_pass        http://<IP_ADDRESS>:3000;
}

for now who have the same issue, you can use martin with tiles source:
map.addSource('contours', {
  "type": "vector",
  "tiles": [
    "https://lun-16.lun.in.ua/rpc/public.source_lun_contours/{z}/{x}/{y}.pbf"
  ],
  "minzoom": 0,
  "maxzoom": 14,
  "bounds": [
    22.0856083513,
    44.3614785833,
    40.0807890155,
    52.3350745713
  ],
});

@bravecow could you please create a separate issue for that as the problem is not with the CORS, but with scheme rewrite?

@stepankuzmin Please look at the first screenshot. Tiles are requested by http. If author's json is served by https, and tiles by http, I think we have the same problem.

So this http <=> https can cause this header to be lost. I don't know 🤷♀

It seems that the request scheme is not propagated correctly to the martin instance. Could you please try adding X-Forwarded-Proto header?
location @martin {
  proxy_set_header  X-Rewrite-URL $request_uri;
  proxy_set_header  X-Forwarded-Host $host;
  proxy_set_header  X-Forwarded-Proto $proxy_x_forwarded_proto;
  proxy_pass        http://<IP_ADDRESS>:3000;
}

Or try something like this in your nginx config?
http {
  ...

  # If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
  # scheme used to connect to this server
  map $http_x_forwarded_proto $proxy_x_forwarded_proto {
  default $http_x_forwarded_proto;
  ''      $scheme;
  }

  server {
    ...

    location @martin {
      proxy_set_header  X-Rewrite-URL $request_uri;
      proxy_set_header  X-Forwarded-Host $host;
      proxy_set_header  X-Forwarded-Proto $proxy_x_forwarded_proto;
      proxy_pass        http://<IP_ADDRESS>:3000;
    }
  }
}

    location @martin {
        proxy_set_header  X-Rewrite-URL $request_uri;
        proxy_set_header  X-Forwarded-Host $host;
        proxy_set_header  X-Forwarded-Proto $proxy_x_forwarded_proto;
        proxy_pass        http://<IP_ADDRESS>:3000;
    }

sudo /etc/init.d/nginx reload
[ ok ] Reloading nginx configuration (via systemctl): nginx.service.
https://lun-16.lun.in.ua/rpc/public.lun_contours.json
"tiles":["http://lun-16.lun.in.ua
Didn't help 🤷♂

@stepankuzmin it works with this variable:
proxy_set_header        X-Forwarded-Proto $scheme;
from: https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-with-ssl-as-a-reverse-proxy-for-jenkins
not it loads tiles by https, and no CORS errors 👍
thanks for your quick responses 😉

Great! I've added a note on X-Forwarded-Proto to README.md, hope this helps.

Hello All - Sorry for the absents. Came back to jump starting this after awhile and I am still having issues displaying vector circles on a MapboxGL map with both docker  (urbica/martin:latest) and locally install of Martin (v.0.5.0). This time around I getting 500 error to load "GET /public.park_points/0/0/0.pbf" for an example. Looks like it is not the COR issues anymore. Here's some details.
I'm running a local instance on my mac with Martin (v.0.5.0) to take advantage of the Debugging mode:
export RUST_LOG=actix_web=info,martin=debug,postgres=debug martin --listen-addresses="<IP_ADDRESS>:4545" postgres://postgres@localhost/surveys
Results of curl -i "http://<IP_ADDRESS>:4545/public.park_points/0/0/0.pbf:
HTTP/1.1 500 Internal Server Error content-length: 0 access-control-allow-origin: * date: Wed, 22 Apr 2020 21:56:17 GMT
Results from Debugging RUST_LOG:
export RUST_LOG=actix_web=info,martin=debug,postgres=debug martin --listen-addresses="<IP_ADDRESS>:4545" postgres://postgres@localhost/surveys [2020-04-22T21:56:05Z INFO  martin] Starting martin v0.5.0 [2020-04-22T21:56:05Z INFO  martin] Config is not set, scanning database [2020-04-22T21:56:05Z INFO  martin] Connected to postgres://postgres@localhost/surveys [2020-04-22T21:56:05Z DEBUG postgres] executing query: [2020-04-22T21:56:05Z DEBUG postgres] preparing query with name ``: WITH columns AS (       SELECT         ns.nspname AS table_schema,         class.relname AS table_name,         attr.attname AS column_name,         trim(leading '_' from tp.typname) AS type_name       FROM pg_attribute attr         JOIN pg_catalog.pg_class AS class ON class.oid = attr.attrelid         JOIN pg_catalog.pg_namespace AS ns ON ns.oid = class.relnamespace         JOIN pg_catalog.pg_type AS tp ON tp.oid = attr.atttypid       WHERE NOT attr.attisdropped AND attr.attnum > 0)     SELECT       f_table_schema, f_table_name, f_geometry_column, srid, type,         COALESCE(           jsonb_object_agg(columns.column_name, columns.type_name) FILTER (WHERE columns.column_name IS NOT NULL),           '{}'::jsonb         ) as properties     FROM geometry_columns     LEFT JOIN columns ON       geometry_columns.f_table_schema = columns.table_schema AND       geometry_columns.f_table_name = columns.table_name AND       geometry_columns.f_geometry_column != columns.column_name     GROUP BY f_table_schema, f_table_name, f_geometry_column, srid, type; [2020-04-22T21:56:05Z DEBUG postgres] executing statement  with parameters: [] [2020-04-22T21:56:05Z INFO  martin::table_source] Found public.park_points table source [2020-04-22T21:56:05Z DEBUG postgres] preparing query with name ``: SELECT       routines.specific_schema,       routines.routine_name     FROM information_schema.routines       LEFT JOIN information_schema.parameters ON routines.specific_name=parameters.specific_name     WHERE       routines.data_type = 'bytea'     GROUP BY       routines.specific_schema, routines.routine_name, routines.data_type     HAVING       array_agg(array[parameters.parameter_name::text, parameters.data_type::text]) @>       array[array['z', 'integer'], array['x', 'integer'], array['y', 'integer'], array['query_params', 'json']]; [2020-04-22T21:56:05Z DEBUG postgres] executing statement  with parameters: [] [2020-04-22T21:56:05Z DEBUG postgres] executing query: [2020-04-22T21:56:05Z DEBUG postgres] preparing query with name ``: select (regexp_matches(postgis_lib_version(), '^(\d+\.\d+\.\d+)', 'g'))[1] as postgis_lib_version [2020-04-22T21:56:05Z DEBUG postgres] executing statement  with parameters: [] [2020-04-22T21:56:05Z INFO  martin] Martin has been started on <IP_ADDRESS>:4545. [2020-04-22T21:56:17Z DEBUG postgres] executing query: [2020-04-22T21:56:17Z DEBUG postgres] preparing query with name ``: WITH bounds AS (SELECT ST_MakeEnvelope(-20037508.34, 20037508.34, 20037508.34, -20037508.34, 3857) as mercator, ST_Transform(ST_MakeEnvelope(-20037508.34, 20037508.34, 20037508.34, -20037508.34, 3857), 4326) as original)     SELECT ST_AsMVT(tile, 'public.park_points', 4096, 'geom' ) FROM (       SELECT         ST_AsMVTGeom(ST_Transform(geom, 3857), bounds.mercator, 4096, 64, true) AS geom , "f_name","manager","objectid","maintd_by","gid","kc_fac_fid","mainttype","managetype","sitetype","sitename","owner","f_type","ownertype"       FROM public.park_points, bounds       WHERE geom && bounds.original     ) AS tile WHERE geom IS NOT NULL [2020-04-22T21:56:17Z DEBUG postgres] executing statement  with parameters: [] [2020-04-22T21:56:17Z INFO  actix_web::middleware::logger] <IP_ADDRESS>:52729 "GET /public.park_points/0/0/0.pbf HTTP/1.1" 500 0 "-" "curl/7.54.0" 0.012476
I've researched extensively to fix with all the issues in this repo and comments as well and no luck. Thanks!!


fix: rules/prop-types crash

Adds a defensive check to prevent a crash:
eslint-plugin-react/lib/rules/prop-types.js:403
        for (var i = 0, j = node.id.properties.length; i < j; i++) {
                                              ^

TypeError: Cannot read property 'length' of undefined
    at markPropTypesAsUsed (eslint-plugin-react/lib/rules/prop-types.js:403:47)
    at EventEmitter.VariableDeclarator (eslint-plugin-react/lib/rules/prop-types.js:577:7)
    at emitOne (events.js:82:20)
    at EventEmitter.emit (events.js:169:7)
    at NodeEventGenerator.enterNode (eslint/lib/util/node-event-generator.js:42:22)
    at CommentEventGenerator.enterNode (eslint/lib/util/comment-event-generator.js:98:23)
    at Controller.controller.traverse.enter (eslint/lib/eslint.js:767:36)
    at Controller.__execute (estraverse/estraverse.js:397:31)
    at Controller.traverse (estraverse/estraverse.js:495:28)
    at EventEmitter.module.exports.api.verify (eslint/lib/eslint.js:764:24)

Can you also add a test that reproduce the crash? Thanks.

@yannickcr I could use some help with that. This error is coming from using eslint-plugin-react on decently sized code base. The stack trace gives very little information about what code is causing the crash. I can confirm this fixes the problem, but could use some advice: how would I got about tracking the input code that causes this crash?

Joey,
I've used iron-node and ascertained so far that any function block which tries to assign a variable called props causes the issue:
var a = function() {
  var newProps1 = props1;
  const newProps2 = props2;
  let newProps3 = props3;
};

let b = function() {
  var newProps4 = props;
  const newProps5 = props;
  let newProps6 = props;
};

const c = function() {
  var newProps7 = props;
  const newProps8 = props;
  let newProps9 = props;
};

function d() {
  var newProps10 = props;
  const newProps11 = props;
  let newProps12 = props;
};

const e = () => {
  var newProps13 = props;
  const newProps14 = props;
  let newProps15 = props;
};

In the code above newProps1/2/3 don't fall into the "VariableDeclarator"
A cursory search of https://github.com/shakacode/react-webpack-rails-tutorial raised as an issue would support this.

@craigbilner iron-node is very cool! I looks like the successor to node-inspector?
Thanks for tracking that down. I'll play around and see if I can add a test. That's quite an edge case!

@yannickcr Thanks to @craigbilner's sleuthing, test added. It's a bit unlike the others, but it's apparently necessary :)

@joeybaker,
does this fix the root cause?
To me this is the culprit
var statelessDestructuring = node.init && node.init.name === 'props' && utils.getParentStatelessComponent();

The example given is this:
let {firstname} = props

yet it doesn't test for the parent being an "ObjectPattern" and therefore having properties?

@craigbilner I'm still getting used to the AST api. Let me try and report back.

@craigbilner I gave this a shot, but I'm out of time to dig into this more. I pushed up what I believe to be your suggestion, but it breaks a different test. If you have a chance, can you take a look at this diff and tell me what I did wrong?

@yannickcr If you'd rather merge it with the other fix, let me know. I can delete the most recent commit and the tests will pass.

Thanks for all your help. I was able to find the problem and fix it in be3b7f30abc4ef2d61acef2692e27cfb9e1ef792.

Great! Glad it got fixed correctly.


Added all grid cells to global domain structure.

Added a run member to the locations struct.
During domain composition, only the active gridcells are stored in the local domain structs.
See issue: #313
" @wietsefranssen and @jhamman have been discussing how to get all the domain information into the output files. It seems like it will be best to store all grid cells (active and not) in the global domain and then, during the domain decomposition, only store the active grid cells. An run member will be added to the domain structure.
"

@bartnijssen - can you look at this and tell us what you think of this plan?

Joe and I discussed this yesterday. He will follow up.

@wietsefranssen -
Looks good.  A few changes still to be made but this is a nice simplification.

@jhamman
The code had been merged with the most recent 'develop' commit.
All suggestions of Joe are now applied.

Great.  Have you tried running this code?  Everything look correct?

Yes, I have tested the code (although not very extended) and everything looks correct.


Add chef-provisioning to Chef core

This requires getting nokogiri to compile, and putting fog, aws, and vagrant; and possibly azure and docker drivers into core as dependencies as well.

This is super important, but can't block 1.0.

@jkeiser when you are planning 1.0 release?

@ranjib soon.  This week if we can do it (but that's not super likely).  https://waffle.io/chef/chef-provisioning?milestone=1.0

The work required to get this into chef core involves getting nokogiri to build on all platforms, and I expect that task to take time.  Plan is to release 1.0, and get into chef core soon after.


open positioning top/bottom

Hi need help!
On desktop, How to handle (open-to-top/open-to-bottom) depending on the input position ?
If the input is in the bottom of the screen. the datepicker should open to top.

This would be great. Please consider this feature.
Thank you!

+1

Sorry but I didn't have the time to address this issue. Seems important.

Check the new v4.0.0-beta.2

@francescomugnai I've working on this please be patient, I think that some rewrites must be done first.


Support min, mins abbreviations for minutes

Problem
I've been very happy with the parse_timespan functionality of humanfriendly. The only issue I've had is that sometimes I'd like to say "3 min" or "3 mins" for minutes.
Solution
I've changed time_units to allow for multiple abbreviations per time unit. I also changed parse_timespan to look through all abbreviations when parsing times. Finally, I added "min" and "mins" as abbreviations for minutes.
Outcome
Parsing "3 min" and "3 mins" is now supported!

Coverage decreased (-0.7%) to 94.824% when pulling<PHONE_NUMBER>6814dc20697989ad8595b9c1b663b9 on brandonio21:min into 323e523af1c864493d0acfe59d4d6484cbc75306 on xolox:master.

Coverage decreased (-0.7%) to 94.824% when pulling 6d5fb863b6df329097b2daf128ff3cbfded02477 on brandonio21:min into 323e523af1c864493d0acfe59d4d6484cbc75306 on xolox:master.

Although coverage fails, I believe the new functionality to be sufficiently tested. (y)

Hi Brandon and thanks for the pull request! This is now merged and released as humanfriendly 3.0.

Bravo! Thank you very much!


tern --version returns 'fatal' error message if no local git repo found

Describe the bug
If you try to get the version of tern after a pip install with no tern git repo present, the tern --version output gives you a fatal error message. Without extensive debug, my haunch is that this issue can be traced to utils/general.py --> get_git_rev_or_version() which tries to do a git rev-parse HEAD to get the commit if available. However, if there's no git repository found, it will error wih the fatal message below.
To Reproduce
Steps to reproduce the behavior:

Create a new virtual environment and pip install tern:

# python3 -m venv test
# cd test
# source bin/activate
# pip install tern

Try to check which version of tern you are running:
tern --version

Error in terminal
(test) rjudge:tt$ tern --version
fatal: not a git repository (or any of the parent directories): .git
Tern version 0.4.0
   python version = 3.6.8 (default, Jan 14 2019, 11:02:34)

Expected behavior
It should not display 'fatal' error message if no git repository is found. It should only display the version (which it currently does correctly).
Environment you are running Tern on
Enter all that apply

tern version 0.5.4
Operating System: 18.04.3 LTS (Bionic Beaver) -- running on VMware Fusion
Python version = 3.6.8

Looks like this was fixed in https://github.com/vmware/tern/pull/425/


Theming engine not working

After jumping through several hoops (#187) to even get the CMS installed, it seems it does not like the theming engine. Pages render as if the style sheets for the page could not be found (and when you look in the console, this is exactly what is happening.
The stylesheet which is supposed to be at /assets/css/color.css does not exist (more accurately, the /assets/ directory does not exist). I've ensured that permissions are set correctly and that this is not an issue with it not being able to create the folder.
I have tried changing the theme to see if this would kick the system into working properly, but the unthemed "theme" seems to prevail regardless of the configuration in the ACP.
Surprisingly, this bug is affecting the ACP as well, which I find interesting because in most other CMS the ACP does not use the theming system, rather it has its own hard-coded theme (see WoltLab, WordPress, etc.).
Any help in getting this working is appreciated. Besides the changes made to my .htaccess file (#187) and changes made in the ACP, this is an unmodified build as downloaded from SourceForge.

After reading over what you wrote, I'd add that the system itself doesn't use a direct filesystem references to deliver the css files (there's no direct link between a requested URL and it's position in filesystem hierarchy). For sure some folder are quite similar in name as the requested url but it's not directly served from the filesystem.
For example when the file color.css is requested, the system will do a "loopback" request using curl, compress, mimify and process the file as configured in the first place. Afterward on following request for the same file you'll get the cached version (what gives you a faster delivery). Some CMS like for example Joomla will do the same but use either APCu or other type of framework. Ph7CMS use s "home made" system.
There's no such thing as a "hard coded" theme, what you are seeing is basicly a theme that get served without the styling done and only bare html (no CSS files). Like I said in my first answer, start by disabling all the caching options, minify and such. Look at your logs for some 401 error also.
Afterward it will be easier to do some troubleshooting.
Also, try to limit the number of opened issue as there's no use to making many when there's only one problem. It only make management harsher. I'm saying it here but it's something that you'll get wherever you do such action. Some people won't tell you but simply delete your actions at the end.

Disabling all caching seems to have fixed the issue. I'm working through and seeing which ones I can leave enabled.
It seems I can get three versions of the site depending on what's enabled, looking purely at the home screen:

The version that I was seeing before with only the default browser CSS
A version with a full-screen background image with the login form on top of the image
A version with a bordered background image with the login form below the image.

I'm assuming version 2 is the only correct one, so I only have the CSS cache enabled at this time.

The version 2 (version 3 could be OK too... I will need a screenshot to confirm it :)).
It shouldn't give different homepage versions depending on what caching option is enabled.
When you disable the caching options and reenable one per one, some cached files might still be broken and won't be updated again.
I would suggest that you clean the "Static Files" cache, first and then, re-enable the option one per one in order to see which one is causing an issue (you might have a better idea of the problem if you look at the source file from your browser. e.g., http://your-website.com/asset/gzip/?t=js&d=static/js/&f=jquery/box.js,jquery/tipTip.js,bootstrap.js,common.js,str.js,holder.js)

Had the same issue, clearing static chace helped.


can't connect to brokers on PLAINTEXT

I'm trying to connect to a kafka cluster that on plaintext that I built brand new for this:
but all I see is this in the log and it can't connect:
{"level":"info","ts":1513228548.5677202,"msg":"starting evaluations","type":"coordinator","name":"notifier"}
{"level":"error","ts":1513228549.2470243,"msg":"failed to start client","type":"module","coordinator":"cluster","class":"kafka","name":"local","error":"kafka: client has run out of available brokers to talk to (Is your cluster reachable?)"}
{"level":"info","ts":1513228549.2471015,"msg":"stopping","type":"coordinator","name":"notifier"}
{"level":"info","ts":1513228549.24711,"msg":"shutdown","type":"coordinator","name":"httpserver"}

why can't I connect even thought I can telnet on 9092 on all those brokers and telnet on 2181 on all the zk nodes...
config:
pidfile="burrow.pid"
stdout-logfile="burrow.out"
access-control-allow-origin="mysite.example.com"

[logging]
filename="/home/burrowlogs/burrow.log"
level="debug"
maxsize=100
maxbackups=30
maxage=10
use-localtime=false
use-compression=true

[zookeeper]
servers=[ "brwzk01.cloud.com1.com:2181", "brwzk02.cloud.com1.com:2181", "brwzk03.cloud.com1.com:2181" ]
timeout=6
root-path="/burrow"

[client-profile.test]
client-id="burrow-test"
kafka-version="0.10.0"

[cluster.local]
class-name="kafka"
servers=[ "brwkfk01.cloud.com1.com:9092", "brwkfk02.cloud.com1.com:9092", "brwkfk03.cloud.com1.com:9092"  ]
client-profile="test"
topic-refresh=120
offset-refresh=30

[consumer.local]
class-name="kafka"
cluster="local"
servers=[ "brwkfk01.cloud.com1.com:9092", "brwkfk02.cloud.com1.com:9092", "brwkfk03.cloud.com1.com:9092"  ]
client-profile="test"
group-blacklist=""
group-whitelist=""

[httpserver.default]
address=":8000"

[storage.default]
class-name="inmemory"
workers=20
intervals=15
expire-group=604800
min-distance=1

We really can't help you much with why your Burrow deployment can't connect to the brokers. Your config looks correct here, so you should ensure that other applications on the same host as Burrow can connect to the brokers on the specified ports.

I am able to connect via the kafka console consumer and producer from the same host....and use other kafka clients too like kafka manager...

ok...got this working on master...version 1.0 kafka isn't in latest Burrow release so had to build with master...


[move-book and move-book-zh] update tuple

Motivation
Update tuple chapter in move-book and move-book-zh.
Have you read the Contributing Guidelines on pull requests?
Yes

seems I can not approve for now, so just comment


Upgraded module to support Terraform 0.12

Based on #27.
Closes #27.

Lucky users who are using Terraform 0.12 already can use v2.0.0 of this module which has been just released!
The rest of the users can use v1.0.0 which is compatible with Terraform 0.11.


forms: Fix 500 error on realm creation with invalid email

Commit b945aa3443110cac98736ba33c32ff5899e0b237 (#22604) incorrectly assumed that Django would run the extra EmailField validators if basic email address validation passed. Actually, it runs all validators unconditionally and collects all failures. So email_is_not_disposable needs to catch email address parsing errors.

Merged, thanks @andersk!


Make "fetch" module public

Hi! any chance you might want to expose the mod fetch publicly or make it a tiny crate? I started doing something similar and later I just plain copy-pasted the module since it does everything I need, I'm getting some requests that I want to convert to http_types::Request, same with responses and potentially converting the other way around from the http_types to JS equivalent. Even the WindowOrWorker is useful.

I suspect it should probably be it's own crate.

I suspect it should probably be it's own crate.


SpecifyGradient is not straghtforward, use a reparameterization trick instead

Thanks for the great job for prolificdreamer and DreamFusion!  I have a question about the calculation of SDS loss. I found in the paper  g = matmul(weight(t) * (-epshat t - eps), grad(x, params)).
threestudio uses this formula d(loss)/d(latents) = latents - target = latents - (latents - grad) = grad when calculating SDS.
grad = weight(t) * (-epshat t - eps) So is this not calculating grad(x, params) ? I seem to be confused by this.  :)
Thanks!

I solved it :)


Not an issue, only a question

Hi,
I just don't know where to share a mystery concerning DNSCrypt-Proxy and if you, anyone could provide an explanation I'd be truly relieved.
I have installed latest DNSCrypt-Proxy 1.7.0 and it runs fine, no problem. The possible issue concerns not the tool itself but the encrypted DNS provider.
There is one site (only one I'm aware of at this time), https://archive.is/ which resolves to Server not found when the DNS resolver is among these (I haven't tested all of course):
4armed, dnscrypt.org-fr, dnscrypt.eu-dk, dnscrypt.eu-nl, ns0.dnscrypt.is, cs-fr, cs-fr2
but which is correctly resolved (only?) with: cisco
Thanks for any information on this issue which I really pain to understand.

Hi,
Just tried from the dnscrypt.org-fr box, and none of the name servers for archive.is are answering DNS queries:
$ dnstracer -4 -c -s . archive.is
Tracing to archive.is[a] via A.ROOT-SERVERS.NET, maximum of 3 retries
A.ROOT-SERVERS.NET [.] (<IP_ADDRESS>)
 |\___ sns-pb.isc.org [is] (<IP_ADDRESS>)
 |     |\___ d1.dns.li [archive.is] (<IP_ADDRESS>) * * *
 |     |\___ h2.archive.is [archive.is] (<IP_ADDRESS>) * * *
 |      \___ c1.webmaster.ms [archive.is] (<IP_ADDRESS>) * * *

Tried from another network with the same result. Tried from yet another network and these were reachable.
Looks like these authoritative servers are currently experiencing connectivity issues.

The fact is what I've described above is not new (I has tested several times with the same above scenario with DNSCrypt-Proxy 1.6.1), that is,
1- This is not an ephemeral issue;
2- Why does cisco (alone?) resolves the query and not others?

Didn't check Cisco, but Yandex can resolve it. My ISP can't. $ drill archive.is @<IP_ADDRESS> times out.
Over 10 random RIPE Atlas probes, at least 2 don't get a reponse from their servers: https://atlas.ripe.net/measurements/4492513/#!probes
So this doesn't appear to be a DNS issue that can be solved on the resolvers.

My ISP's DNS resolves it (Bouygues Telecom), so do all other (non-encrypted) DNS resolvers I use occasionally:
BOUYGUES TELECOM
<IP_ADDRESS>
<IP_ADDRESS>
DNS.WATCH
<IP_ADDRESS>
<IP_ADDRESS>
GOOGLE DNS
<IP_ADDRESS>
<IP_ADDRESS>
OLEANE
<IP_ADDRESS>
<IP_ADDRESS>
OPENDNS
<IP_ADDRESS>
<IP_ADDRESS>
But with DNSCrypt-Proxy, only cisco (and Yandex since you've tested it) and not 4armed, dnscrypt.org-fr, dnscrypt.eu-dk, dnscrypt.eu-nl, ns0.dnscrypt.is, cs-fr, cs-fr2
I remain puzzled. I'm not going to limit DNSCrypt-Proxy to be used with cisco or yandex for the sole purpose of being available to open archive.is ... or I'll avoid archive.is which is more likely. Yet, I don't understand, as the non-techie I am, why this issue with archive.is
Thanks for your concern.

Actually, it's not just DNS queries, and it's not a routing problem. archive.is is completely firewalling some ISPs/hosting companies. Not just for DNS; HTTP queries are blocked as well.
They are refusing to respond to hosts whose IP belongs to Online, NetGroup, OVH and probably more.
Maybe the intent was to protect against a DDoS attack involving servers on these networks. But that's a bit overblown and blocks legitimate users.
 And the DNSCrypt servers you are mentioning are hosted by these ISPs.

OK, @jedisct1 , I get the idea and the explanation. It has nothing to do with DNScrypt, is not specific to DNS resolving (HTTP queries concerned as well), and is all included in archive.is' firewalling some ISPs/hosting companies.
I appreciate to understand and thanks for your investigation, moreover when it appears that the whole issue had nothing to do with this, with your Github pages dedicated to DNSCrypt-Proxy.
Thanks again for your time and work. Now I know better.


fastlane action fir_cli

[21:59:22]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[21:59:23]: Installing Ruby gem 'fastlane-plugin-fir_cli'...
[22:04:15]: Error loading plugin 'fastlane-plugin-fir_cli': You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
+-------------------------+-----------+------------------+
|                      Used plugins                      |
+-------------------------+-----------+------------------+
| Plugin                  | Version   | Action           |
+-------------------------+-----------+------------------+
| fastlane-plugin-firim   | 0.2.2     | firim            |
| fastlane-plugin-fir_cli | undefined | No actions found |
+-------------------------+-----------+------------------+

[!] No actions were found while loading one or more plugins
    Please use `bundle exec fastlane` with plugins
    More info - https://docs.fastlane.tools/plugins/using-plugins/#run-with-plugins

Loading documentation for fir_cli:

Couldn't find action for the given filter.
==========================================

[21:59:23]: Installing Ruby gem 'fastlane-plugin-fir_cli'...
[22:04:15]: Error loading plugin 'fastlane-plugin-fir_cli': You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

This is the problem here.

@janpio
sudo chmod -R a+r /Library/Ruby/Gems/2.6.0/
but the same error.

Googling for the error message brings many, many other suggestions for workarounds.


feat(prisma): platform integration for project & accelerate cmds

This PR integrates the prototype PDP API into the Prisma CLI for a select few initial commands:

accelerate enable
accelerate disable
project create
project delete
project show

Note that tests are failing and it will need to be fixed before merging.
FAIL src/__tests__/commands/platform/PlatformCommand.test.ts
  ● --early-access-feature flag › should work with it

    ArgError: unknown or unexpected option: --early-access-feature

      68 | function arg(argv, spec, stopAtPositional = true, permissive = false) {
      69 |   try {
    > 70 |     return (0, import_arg.default)(spec, { argv, stopAtPositional, permissive });
         |                                 ^
      71 |   } catch (e) {
      72 |     return e;
      73 |   }

      at arg (../../node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.js:132:13)
      at arg (../internals/dist/chunk-2ZMLAV6A.js:70:33)
      at $.parse (src/platform/$.ts:16:21)
      at Object.parse (src/__tests__/commands/platform/PlatformCommand.test.ts:14:34)

https://github.com/prisma/prisma/actions/runs/6949362943/job/18933113690?pr=22056#step:8:104


Python client: Using Scroll API with Payload Order By and Offset in Qdrant Python Client

I've encountered a scenario where I needed to apply sorting and pagination to my scroll requests. I found that I can use order_by.start_from on the Qdrant's UI, but I don't know how to apply that into my code (I am using python).
Please see the uploaded images for detail information. Thank you for help
I am using qdrant-client version 1.9.1

I am using qdrant-client version 1.9.1

I solved this problem ^^

 I solved this problem ^^

您好，请问您是如何使用这个进行跳页翻的呢？？？


API doesn't accept non-dashed UUIDs

As the title states, the API does not accept non-dashed UUIDs.

On another note, the documentation states that the API should return a 404 in this case, however, it returns a 400 instead, which I have fixed in PR #1, I think.

The API defines a UUID by RFC 4122 (section 3, page 4), which does not consider UUIDs without dashes as valid, the API not supporting non-dashed UUIDs is completely intentional, and the 400 error code is therefore also as expected since an invalid UUID was provided.
I could add some more specific documentation on what exactly the UUID must look like, however, there are no real plans on supporting non-dashed UUIDs in the API for now.


Test changes for Sysbox cgroups v2 support.

This change brings in test to verify cgroups v2 functionality in Sysbox.
Note that the cgroups v2 tests will only run in host machines that boot with cgroups v2 enabled.
In addition, this change updates several of the tests that used sys containers based on ubuntu-bionic to use ubuntu-focal instead. This was required for cgroups v2 testing as ubuntu-bionic comes with a Docker version that does not support cgroups v2 (i.e., docker 19.03 or earlier).

CI failed due to known K8s-in-pod test instability (not related to this commit). Will commit and debug the k8s-in-pod test later.


Triage mode crashes when all CPUs in socket fail

No time to investigate the cause. This is just the symptom:
SANDSTONE_MOCK_TOPOLOGY='0 0:1 1 1:1' ./opendcdiag -o - --selftests -e selftest_fail_socket1 -T 25ms --retest-on-failure=0 --cpuset=2,3

THIS IS AN UNOPTIMIZED BUILD: DON'T TRUST TEST TIMING!
command-line: 'opendcdiag -o - --selftests -e selftest_fail_socket1 -T 25ms --retest-on-failure=0 --cpuset=2,3'
version: opendcdiag-9e42ea36e98e-dirty
os: Linux 6.3.7-1-default, glibc 2.37
timing: { duration: 1000.000, timeout: 300000.000 }
cpu-info:
  0: { logical: 2, package: 1, core: 0, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
  1: { logical: 3, package: 1, core: 1, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
tests:
- test: selftest_fail_socket1
  details: { quality: beta, description: "Fails on any thread of socket 1" }
  state: { seed: 'AES:2c2e316271ef2b52d2dad9e0f4e4eaadd3d1ce9d8e10d4ad2d25261f0b1b1552', iteration: 0, retry: false }
  time-at-start: { elapsed:      0.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  result: fail
  fail: { cpu-mask: '__:XX', time-to-fail: 3.177, seed: 'AES:2c2e316271ef2b52d2dad9e0f4e4eaadd3d1ce9d8e10d4ad2d25261f0b1b1552'}
  time-at-end:   { elapsed:      4.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  test-runtime: 4.487
  threads:
  - thread: 0
    id: { logical: 2, package: 1, core: 0, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 3.971
    loop-count: 0
    messages:
  - thread: 1
    id: { logical: 3, package: 1, core: 1, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 3.177
    loop-count: 0
    messages:
# Test failed 1 out of 1 times (100.0%)
# All CPUs failed equally. This is highly unlikely (SW bug?)
# Loop iteration 1 finished, average time 6.92119 ms, total 6.92119 ms
- test: mce_check
  details: { quality: production, description: "Machine Check Exceptions/Events count" }
  state: { seed: 'AES:ebcfaed50725d0cc20106f752d2f5a91d3d1ce9d8e10d4ad2d25261f0b1b1552', iteration: 0, retry: false }
  time-at-start: { elapsed:      8.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  result: pass
  time-at-end:   { elapsed:     16.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  test-runtime: 6.797
- test: selftest_fail_socket1
  details: { quality: beta, description: "Fails on any thread of socket 1" }
  state: { seed: 'AES:7224cb33e780b98bc8c48abac8c11bfad3d1ce9d8e10d4ad2d25261f0b1b1552', iteration: 0, retry: false }
  time-at-start: { elapsed:     16.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  result: fail
  fail: { cpu-mask: '__:XX', time-to-fail: 0.433, seed: 'AES:7224cb33e780b98bc8c48abac8c11bfad3d1ce9d8e10d4ad2d25261f0b1b1552'}
  time-at-end:   { elapsed:     16.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  test-runtime: 0.631
  threads:
  - thread: 0
    id: { logical: 2, package: 1, core: 0, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 0.434
    loop-count: 0
    messages:
  - thread: 1
    id: { logical: 3, package: 1, core: 1, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 0.433
    loop-count: 0
    messages:
# Test failed 1 out of 1 times (100.0%)
# All CPUs failed equally. This is highly unlikely (SW bug?)
# Loop iteration 2 finished, average time 10.1804 ms, total 20.3609 ms
- test: selftest_fail_socket1
  details: { quality: beta, description: "Fails on any thread of socket 1" }
  state: { seed: 'AES:4cbfc8b4f59547244c21cf21389160e2d3d1ce9d8e10d4ad2d25261f0b1b1552', iteration: 0, retry: false }
  time-at-start: { elapsed:     16.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  result: fail
  fail: { cpu-mask: '__:XX', time-to-fail: 0.348, seed: 'AES:4cbfc8b4f59547244c21cf21389160e2d3d1ce9d8e10d4ad2d25261f0b1b1552'}
  time-at-end:   { elapsed:     20.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  test-runtime: 0.525
  threads:
  - thread: 0
    id: { logical: 2, package: 1, core: 0, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 0.348
    loop-count: 0
    messages:
  - thread: 1
    id: { logical: 3, package: 1, core: 1, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 0.349
    loop-count: 0
    messages:
# Test failed 1 out of 1 times (100.0%)
# All CPUs failed equally. This is highly unlikely (SW bug?)
- test: selftest_fail_socket1
  details: { quality: beta, description: "Fails on any thread of socket 1" }
  state: { seed: 'AES:edb1716d18f1f8b039001f61400a5d12d3d1ce9d8e10d4ad2d25261f0b1b1552', iteration: 0, retry: false }
  time-at-start: { elapsed:     20.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  result: fail
  fail: { cpu-mask: '__:XX', time-to-fail: 0.388, seed: 'AES:edb1716d18f1f8b039001f61400a5d12d3d1ce9d8e10d4ad2d25261f0b1b1552'}
  time-at-end:   { elapsed:     20.000, now: !!timestamp '2023-06-20T16:33:18Z' }
  test-runtime: 0.579
  threads:
  - thread: 0
    id: { logical: 2, package: 1, core: 0, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 0.397
    loop-count: 0
    messages:
  - thread: 1
    id: { logical: 3, package: 1, core: 1, thread: 0, family: 6, model: 0x3c, stepping: 0, microcode: null, ppin: null }
    state: failed
    time-to-fail: 0.388
    loop-count: 0
    messages:
# Test failed 1 out of 1 times (100.0%)
# All CPUs failed equally. This is highly unlikely (SW bug?)
framework/topology.cpp:694: void load_cpu_info(const LogicalProcessorSet&): Assertion `sApp->thread_count' failed.

(gdb) bt
#0  0x00007ffff5a92a7c in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ffff5a41226 in raise () from /lib64/libc.so.6
#2  0x00007ffff5a29897 in abort () from /lib64/libc.so.6
#3  0x00007ffff5a297ab in __assert_fail_base.cold () from /lib64/libc.so.6
#4  0x00007ffff5a394b6 in __assert_fail () from /lib64/libc.so.6
#5  0x00000000004873ea in load_cpu_info (enabled_cpus=...) at framework/topology.cpp:694
#6  0x000000000045d58b in run_tests_on_cpu_set (tests=std::vector of length 3, capacity 4 = {...}, set=...)
    at framework/sandstone.cpp:2546
#7  0x000000000045df72 in run_triage (triage_tests=std::vector of length 3, capacity 4 = {...}, enabled_cpus=...)
    at framework/sandstone.cpp:2673
#8  0x00000000004608c6 in main (argc=10, argv=0x7fffffffdc68) at framework/sandstone.cpp:3796
(gdb) f 6
#6  0x000000000045d58b in run_tests_on_cpu_set (tests=std::vector of length 3, capacity 4 = {...}, set=...)
(gdb) p set
$1 = (const LogicalProcessorSet &) @0x7fffffffd390: {static Size = 1024, array = {0 <repeats 16 times>}}

The set of processors to test is empty.

Very likely related: in non-debug build, we've seen:
[   13.273269] ok   2 testname      # SKIP(RuntimeSkipCategory: All CPUs skipped while executing 'test_run()' function, check log for details)
[   13.275270] ok   4 testname      # SKIP(RuntimeSkipCategory: All CPUs skipped while executing 'test_run()' function, check log for details)
[   13.277270] ok   6 testname      # SKIP(RuntimeSkipCategory: All CPUs skipped while executing 'test_run()' function, check log for details)

The test does not have EXIT_SKIP in its run function, so it's impossible for its run function to skip. That must mean the test function was not executed at all and the framework somehow concludes that this is a skip. The timestamp showing the executions are taking about 2 ms are also indicative of nothing getting run.
The ok numbers incrementing by 2 were in the original log file; that's not a copy/paste issue.

The issue pops up when package #0 has no cores in the topology (either because of --cpuset or "slicing").

Doesn't happen in the socket-separation branch.


Encounter internal error while SDK trying to connect to Jacquard Tag

I'm trying to create custom Jacquard app based on examples in this repository. I've to adapt code lifecycle a bit to make it to work with SiwftUI.
Expectation
Function called to connect to the tag. Then monitor connection status before continue to the next view
Actual result
During .connect() SDK encounter JacquardSDK.TagConnectionError.internalError exception before hit .catch handler
Repository of the project can be found here
tag connect request
F8EBF235-DDE2-BAC5-E979-AE7CC1BFE210
nil
2022-08-05 23:49:58.415359+0700 Jacquard RTC[2345:545375] [UIFocus] _TtGC7SwiftUI14_UIHostingViewVS_7AnyView_ implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
[ERROR] No transition found for (bluetoothConnected, didConnect(<JacquardSDK.PeripheralImplementation: 0x282988940>))
[ERROR] No transition found for (disconnected, didDiscoverServices([<CBService: 0x283c20e40, isPrimary = YES, UUID = D2F2BF0D-D165-445C-B0E1-2D6B642EC57B>, <CBService: 0x283c20e80, isPrimary = YES, UUID = Battery>]))
[INFO] State machine is already terminal, ignoring event: didConnect(<JacquardSDK.PeripheralImplementation: 0x2829d4220>)
[ERROR] No transition found for (error(JacquardSDK.TagConnectionError.internalError), didConnect(<JacquardSDK.PeripheralImplementation: 0x2829d4220>))

Hi, thanks for the question :)
A quick look at the state machine logs you pasted suggests that connect is being called more than once on the same instance.
[ERROR] No transition found for (bluetoothConnected, didConnect(<JacquardSDK.PeripheralImplementation: 0x282988940>))

What this is saying is that the current state of the tag state machine is bluetoothConnected, and yet it is being asked to handle the message didConnect -- which absent a bug in either the state machine or CoreBluetooth should only be possible if connect is called more than once.
You're callingconnect in a SwiftUI View struct init - these are simple value objects which may be (re)created more than once so it's likely that's what's happening here.
In fact when I run your code connected to a single tag I see three instances of tag connect request in the console.
There are two ways you can solve this - one is to write a SwiftUI State Object wrapper for your connection/tag logic (ie. something that conforms to ObservableObject.
Since you're targeting iOS 16 I'd suggest using the (new in iOS 15) .task SwiftUI modifier for calling async/await code for a view (SwiftUI connects very nicely with the new structured concurrency features). This means you'll need to convert the Combine publisher to an AsyncStream somehow. It's pretty easy to do that by hand (see below) but it should also be possible to write a generic bridging function.
Since you're using the tag ID connection method, something like this should work:
Create an async/await wrapper for connect
extension JacquardManager {
  func asyncConnect(_ identifier: UUID) -> AsyncThrowingStream<TagConnectionState, Error> {
    AsyncThrowingStream { continuation in
      let cancellable = self.connect(identifier)
        .sink { completion in
          switch completion {
          case .finished:
            continuation.finish()
          case .failure(let error):
            continuation.finish(throwing: error)
          }
        } receiveValue: { connectionState in
          continuation.yield(connectionState)
        }

      continuation.onTermination = { @Sendable _ in
        cancellable.cancel()
      }
    }
  }
}

Triggering connection and looping over the AsyncThrowingSequence
struct ConnectingView: View {
  @State private var connectedTag: ConnectedTag? = nil
  @State private var isPageTransition: Bool = false

  private var connectionStream: AnyPublisher<TagConnectionState, Never>?
  private var tagIdentifier: UUID
  private var jqManager: JacquardManager

  init(manager: JacquardManager, tagId: UUID) {
    self.tagIdentifier = tagId
    self.jqManager = manager
  }

  var body: some View {
    VStack {

      if let connectedTag = connectedTag {
        Text("Connected to \(connectedTag.displayName)")
      } else {
        Text("Connecting...")
      }
    }
    .task {
      do {
        let connectionProgress = jqManager.asyncConnect(tagIdentifier)
        for try await connectionState in connectionProgress {
          switch connectionState {
          case .connected(let tag):
            connectedTag = tag
          default:
            print("connection state: \(connectionState)")
          }
        }
      } catch {
        print("error during connection: \(error)")
      }
    }
  }
}

Dropping this into your repository seems to work with an adhoc test.

Quick note that if you're looking at my reply in email I updated the code sample in the previous response to show the reconnection status in the UI.


 Thanks a lot.
The only thing that’d make it better is to have no need to call it directly. I’m on macOS Mojave, but manually installed and am using the latest bash shell using Homebrew, which allows you to configure your own function to run when commands aren’t found, command_not_found_handle().

Please put eval $(thefuck --alias) in your ~/.bashrc and apply changes with source ~/.bashrc or restart your shell.

More details - https://github.com/nvbn/thefuck#manual-installation**

I do have the eval $(thefuck --alias) line in my bash profile.
Is there any way I can get this to work as desired?


Upgrade uvicorn dep, respond with selected subprotocol #18 #19

Codecov Report
Base: 72.29% // Head: 72.60% // Increases project coverage by +0.31% :tada:

Coverage data is based on head (0d48581) compared to base (ee74295).
Patch coverage: 75.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
+ Coverage   72.29%   72.60%   +0.31%
==========================================
  Files          11       11
  Lines         462      460       -2
==========================================
  Hits          334      334
+ Misses        128      126       -2

Impacted Files
Coverage Δ

...amples/central_system/standalone/central_system.py
72.00% <0.00%> (+5.33%)
:arrow_up:

ocpp_asgi/app.py
58.51% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[keymgr,lint] Fix some width mismatches; explicitly slice some enum constants

Yet more minor tidy-ups in my quest to get TopEarlgrey lint-clean with Verilator :-)

@tjaychen: I've just added a follow-up commit to this PR (because the next batch of lint warnings come from the same code). I think this fixes an actual bug in the code: presumably we've never tested what comes out of this interface in "Adv", "Gen" or "Id" modes?
This sort of thing seems to be a strong argument for getting things lint-clean with Verilator too and/or strengthening the AscentLint rule set that we use.

(Mostly a note to myself): This is blocked by the fact that we don't know how to slice some bits out of an enum without getting AscentLint warnings. See https://github.com/lowRISC/opentitan/pull/5904#discussion_r609044291.

@tjaychen: I've switched to waiving the enum constant width warnings; I think this should be good to go?


Added Player Level filter module

a player level filter.
useful when you want to use different rules while leveling vs at max

would need to cast Comparison in GetMatch to number instead


allow sending raw starlette Response, sidestepping justpy.WebPage

See elimintz/justpy#180 for motivation

You can add arbitrary Starlette routes to a JustPy application by inserting them before the one "catch-all" route of JustPy:
app.routes.insert(0, route)

We use this in NiceGUI which is build on top of JustPy.  See https://github.com/zauberzeug/nicegui/blob/main/nicegui/routes.py#L6-L11. Based on this trick, NiceGUI also allows defining arbitrary routes through a FastAPI inspired decorator:
from nicegui import ui
from starlette import responses

@ui.get('/another/route/{num}')
def produce_plain_response(num: str, request):
    return responses.PlainTextResponse(f'{request.client.host} asked for number={num}')

ui.button('42', on_click=lambda e: ui.open('/another/route/42', e.socket))
ui.run()

@rodja i think your comment needs to go somewhere into the tutorial/documentation section


chartjs-hidden-iframe tab order/focus issue

I have a bunch of charts on the same page, and each one has a chartjs-hidden-iframe that takes focus when tabbing through the page. This breaks the tab order and is bad for accessibility.
I'm running Chart.js v2.1.0

I think we can simply add tabIndex="-1" to the iframe when added

how to add tabindex attribute? Iframe is hidden


Add simplified Chinese

A little modification of localization

Hey, thank you so much for the language update! Sorry for not completing the PR until now. Partly because I had no idea how to properly use git until pretty recently. I've gotten very used to it now, though.
I'm hoping to get back into KSP.


Supports search with Hebrew Characters?

Everything typed in the search box gets passed directly to the API so מְדִינַת יִשְׂרָאֵל does properly locate Israel (at least as far as I can tell).
I would be more then happy to accept a PR that added right-to-left support to this however which this does not currently do.


AzCopy downloads with --from-to BlobPipe fails when downloading multiple files

Which version of the AzCopy was used?
azcopy version 10.23.0
Which platform are you using? (ex: Windows, Mac, Linux)
Linux x86-64
What command did you run?
# Downloading multiple files to local dir works
$ azcopy cp "https://ACCOUNT.blob.core.windows.net/CONTAINER/*?SAS" --include-pattern="*.csv.gz" .
100.0 %, 3 Done, 0 Failed, 0 Pending, 0 Skipped, 3 Total,
...

# Downloading multiple files to pipe fails silently with exitcode 0
$ azcopy cp "https://ACCOUNT.blob.core.windows.net/CONTAINER/*?SAS" --include-pattern="*.csv.gz" --from-to BlobPipe | pv > /dev/null
0,00  B 0:00:01 [0,00  B/s]
$ azcopy cp "https://ACCOUNT.blob.core.windows.net/CONTAINER/*?SAS" --include-pattern="*.csv.gz" --from-to BlobPipe > testfiles
$ echo $?
0
$ du testfiles
0       testfiles

# Downloading single file to pipe works
$ azcopy cp "https://ACCOUNT.blob.core.windows.net/CONTAINER/data01.csv.gz?SAS" --include-pattern="*.csv.gz" --from-to BlobPipe | pv > /dev/null
345MiB 0:01:25 [4,03MiB/s]

What problem was encountered?
I expect azcopy to be able to download multiple files to a BlobPipe, it does not work.
How can we reproduce the problem in the simplest way?
Try to download multiple files from a storage account with --from-to BlobPipe
Have you found a mitigation/solution?
Not yet, probably possible to do it in multiple steps, list files first and then start multiple azcopy processes..

When you download multiple files or directory to a pipe, what is your expectation. AzCopy downloads files in parallel and writing contents of multiple files to a single pipe does not make sense.

Streaming multiple files in a single pipe can absolutely make sense.
My expectation is similar output as if I download all the files and then cat them to a pipe. But without all the files landing on disk in between. Order of the files does not matter in my case, but one complete file should be streamed before the next file is added to the stream.
Use case is streaming through compressed csv data larger than disk/memory available the machine and calculating metrics/stats.
azcopy cp "https://ACCOUNT.blob.core.windows.net/CONTAINER/*?SAS" --include-pattern="*.csv.gz" .  && \
cat *.csv.gz | \
mlr --gzin --csv cut -f "Fields,I,want" | ... # Do some fancy metrics calculation

This will not work because AzCopy does not download file in any particular order, rather all are downloaded in parallel in small chunks (blocks). As and when a block arrives it's sent to output file (pipe in your case). This means data of the files being downloaded will be intermixed and not in an order where you can expect one file in full before another begins. This is against the AzCopy logic of downloading blocks in parallel and hence can not be honored.

AzCopy does the right thing with just one file, pipes the data of the file in order before the whole file is downloaded.
Work around below that might be useful for someone else if BlobPipe for multiple files is not implemented in AzCopy.
export AZ_BASE_URL=https://ACCOUNT.blob.core.windows.net/CONTAINER/PATH/
export AZ_SAS='...'
azcopy list "${AZ_BASE_URL}?${AZ_SAS}" | grep -oP 'INFO: \K[^;]+' | grep .csv.gz | while read -r f
  do azcopy cp "${AZ_BASE_URL}${f}?${AZ_SAS}" --from-to BlobPipe
done | pv | # Do streaming processing of multiple files here...

Probably breaking for blobs with ';' in the name thou, bit surprised that azcopy list has a --output-type json mode but no way that I can find to just give you blob names or blob urls in a structured manner.


Chunking can split secrets, causing them to be undetected.

Thanks for the answer. The second problem is that out of 60 keys that are in regex101, gitleaks detects 50. Although the regex is the same: https://regex101.com/r/PmAzy3/1
docker run -v /yourpath:/path/ zricethezav/gitleaks:latest detect -c /path/original.toml -s/path/keys.txt --no-git -v -l trace

Originally posted by @almaz045 in https://github.com/gitleaks/gitleaks/issues/1631#issuecomment-2488416231

This looks like an issue with chunking. If I manually increase the chunk size, the number of secrets detected changes. FYI @zricethezav
https://github.com/gitleaks/gitleaks/blob/7f77987d91c590e021d9fa2b3c0e57c4a4376147/detect/detect.go#L25
# 20kb
8:37AM INF scan completed in 80.9ms
8:37AM WRN leaks found: 55

# 50kb
8:38AM INF scan completed in 82.4ms
8:38AM WRN leaks found: 58

# 100kb
8:38AM INF scan completed in 80.7ms
8:38AM WRN leaks found: 59

Related
I believe #1435 seems partially related to this.

If we insert log statements here, we can see that the file with 60 secrets is being chunked such that incomplete keys are at the start/end.
9:07AM INF Buffer: "za+62KsSMAWLby+/k51qR8CqR3ksIuH+F/Ae5Y/I\nz8SwcX3JXtxjA0ZgMjQhe+ml52R158lXRaLPgr0Ntj47uJZm/4Tx/yIAjI9KsPFtRWGI+I\nOkeU2ZdI9G+kJ2vrZloUxqfyRONZZkgLLzk4T97mNWoJDB3YOd4bDINpfdXr9jb02eyGvk\nFq23by9HxGPT/VTBmYVF0KtrTVily8jQzs79vVhIMJOxbU4DliDHAvrfYhbvFTmTqC/uqh\nKQF78ZwaWzLw2Ld8WVqE1ypSbCBQi2KgaS4jERAAAAAwEAAQAAAQEAuIsNGX+7x+kCYKBF\nuT0oSt+VoSEaY/HMU0sCASzvbCGFi5oRYBD9P6CU3dKKElL9iu3fMgtUUdk8wDGZUqAD1D\nnJ2+buv1ck3y0lDCMW151S35HnCwWKEdigyrpy0A2wOQsFe+zYgFcptQf7mgKpKGc07Ww7\nlbpyFNUQSUqXx1tBfu/pM/IR+Tv6APjqutGzxQv0PY1ZiFLe9oH3r0r1AmMiXTME95oo37\nDp2tzY42HthFhfLfTHRDYUS/68cwtlRZs2WOy1UOph9SfvWCTINj3uSkJhLGMzxSTUTBfV\nm8135Up/svmRNyfw88ikvFImvB8ohqaYtuYBW+PFcjwCEQAAAIBKKo+0EIo667Zc5ulvCb\neC00KaA4LQhwoSooPemILXh0zjQYHThb4AzAuqOD6V2yQLm/7N5NqYaI0Fb2n8v7kTqm73\nxVV8QXhTc5bjnFP0v/gcXbW+SLU4d4a35qAjXQqMBT9F6xnxUdKzdct0zHGRSQBXyJevmV\nmXKFTl4fb/PAAAAIEA/gZXVdOaeWKG+gu4MWzdRgU0TNg3Miad9v/hFGFJ7vnTjrprSo6d\nHoCOvsEHopCWOpO+axtMLmvlVV9ouLjFo+7MK/kJkb+2EogJGCrsNqH8Q53EQA7GBQSxZC\nzu7SBRe2xYrsY1Tlb+BjnA5Mjj1/QtRfvpll2zit1hiULuDeMAAACBAPp7XN5D1lLL2iRC\nBAUbEPt3ZS6QW1bfafludaxPDdLRl/eV23PN6J7V0gz2gfNOxelEstTD4Zcmk6Y6+EBjgM\noorxJZHSJknyvI7E8Y46S9wjRWXrpns2qFL3WpsiB92DC3lrQVraPfcOYD5CvObnQx8AJc\nlGIr4palzwbzT3d7AAAAFWEudmFraGl0b3ZAYS12YWtoaXRvdgECAwQF\n-----END OPENSSH PRIVATE KEY-----\n-----BEGIN OPENSSH PRIVATE KEY-----...8McZOhFQdIcAAAAIEA1rba0" path=/tmp/60keys.txt
9:07AM INF Buffer: "AmoCtBvzvMQS7AB5AnkkmrIFvkihXiyqCALHK4gvlJ85jdx\nSO5DsHf4NUctMhtZpuQgIfDUdY6sIs8JDWOXULH3ZLHGIasLsUo2E9MnHooA60sRI2fJz7\nkZ4GKE5Lr8V5tsgoDx4VWbJSjDUSw+5OBzv+MvBAamAiGw/7kAAACBAMhNgRq4TnM1l/P4\nNAy54GZ/FwXs5WQQxn5LpDsHsfgt34anuV0h34igLqpsRQKrKnYJPsX3OslKibkR9CJOYH\nBIJpKQuQkn+iiYjML5B1ZXZkByaxlCb/Tt3B/VD7+scCHalSwwf9S3yc1TDvbk9ZrOxAeI\nbixMoFn11nNwnVXfAAAAFWEudmFraGl0b3ZAYS12YWtoaXRvdgECAwQF\n-----END OPENSSH PRIVATE KEY-----\n-----BEGIN OPENSSH PRIVATE KEY-----...5vsZR+gO5pyJEBYTAinC5bzLagACJTr" path=/tmp/60keys.txt

(I've truncated this because because the lines were excessively long.)

This also highlights a gap with the true/false positive validation. Those functions pass input directly to Detect directly, whereas in normal execution the input is chunked and then passed to Detect.
https://github.com/gitleaks/gitleaks/blob/7f77987d91c590e021d9fa2b3c0e57c4a4376147/cmd/generate/config/utils/validate.go#L45
https://github.com/gitleaks/gitleaks/blob/7f77987d91c590e021d9fa2b3c0e57c4a4376147/detect/directory.go#L14

hi @rgmz, i think #1638 is also related. the way the chunking works is by splitting the file into fragments with f.Read and applying every rule to each fragment, regardless if the rule has been matched before.
i have provided a fix that solves this for path based rules, but given that the general chunking seems to be the issue, maybe we can work on a more general fix :)


examples: add support for wioterminal

tinyterm is very good.
Added wioterminal support.
The font in the examples of colors is probably wrong, so I fixed it.

Hello @sago35 sorry to only be getting back to this PR now. There are a number of changes in dev that conflict with this PR. It would however be very good to add the Wioterminal. What do you think?

PR #7 was created.


Can i get Proper Nouns from Hazm

Thanks in advance
I want to get proper nouns using HAZM.But i think that's  not possible.
If anyone knows any other POS Tagger for Persian which can give Proper Nouns(NNP) then please leave a comment.

Hi,
Hazm uses coarse tagset for POS tagging and specifies proper nouns with N tag. If you want to detect proper nouns you can train your POS tagger which is not so difficult. You only need to call train_postagger function with custom pos_map which preserves proper noun tag.

Hi,
You only need to call that mentioned function. It doesn't need any expertise. Also, you must provide Peykare corpus which is training data for this function.

@nournia  I did the same as you mentioned.
How long does it take to train the model.This is my output screen and it's still running

and i have one more doubt'
If i call the train_postagger
function then i will get the same model as the one available in your library.
If i change the tag set of coarse_pos_e by adding NNP or PROPERN tag whatever you are using for your corpus then can i get proper nouns.
Because if i simply call the function without changing the pos_map then i think i will get same postagger.model without Proper Nouns tag

I think training procedure takes less than 5 hours on 4 cpu cores and enough memory. Are you sure that you provided Peykare corpus and set proper input variable?
As you said, you need to change coarse_pos_e to maintain Proper Noun tags. There is a tiny sample from Peykare corpus here. It seems that you need to keep PR tag and map it to something like PN and PNe which shows Proper Noun and Proper Noun with Ezafe.

The tiny sample you mentioned of PeyKare corpus do i need to train the model on this small corpus or i have to download the original corpus from somewhere else.
AND
The PR tag that you mentioned what does it stand for Pronoun or Proper Noun and if it stands for Proper Noun then yes extracting PR is my main motive.
And if it stands for Proper noun then do i have to change the tags in this function?
def coarse_pos_e(tags):
try:
return list(set(tags) & {'N','PR' 'V', 'AJ', 'ADV', 'PRO', 'DET', 'P', 'POSTP', 'NUM', 'CONJ', 'PUNC', 'CL', 'INT', 'RES'})[0] + ('e' if 'EZ' in tags else '')
except:
return 'N'

That tiny sample only helps you for making your code works. But for training pos tagger you need to request for Peykare corpus. I believe that authors of its paper can help you:
Bijankhan, M., Sheykhzadegan, J., Bahrani, M., & Ghayoomi, M. (2011). Lessons from building a Persian written corpus: Peykare. Language Resources and Evaluation, 45, 143–164

Pronoun tag is specified with PRO identifier and I didn't find Proper Noun tag identifier in Peykare paper.

You can find first author's email in his homepage.
I'm not sure about Peykare license and I don't know if it permits that.


Training multi task networks

I'm wondering if I could build a multi-task convolutional network. This concept was introduced in Marc'Aurelio's CVPR 2014 tutorial(https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnxsc3ZydHV0b3JpYWxjdnByMTR8Z3g6Njg5MmZkZTM1MDhhZWNmZA), 92page, or as below:
![image]
(http://2.bp.blogspot.com/-tsg6t-cTxW0/Vbn1AlQwnrI/AAAAAAAACTk/HzUHyNbTtxI/s1600/Screen%2BShot%2B2015-07-30%2Bat%2B%25E1%2584%258B%25E1%2585%25A9%25E1%2584%2592%25E1%2585%25AE%2B6.55.01.png)
In my case, even the number of classes would be different for each task, and I still want to minimise theano-level coding for this.
Any opinion would be appreciated, thanks!

Its easy with the Graph model. Check out http://keras.io/models/#graph

Great, thanks!