How to pass BEDROCK_ASSUME_ROLE to BedrockChat and use the default credential chain?

Your Question
what is unclear to you? What would you like to know?
According to the ragas Bedrock documentation you show how to pass credentials_profile_name to instantiate BedrockChat Model. I need to pass BEDROCK_ASSUME_ROLE instead, is there away to pass this IAM role that has permissions to access Bedrock?
Code Examples
This community speaks code. Share your code snippets to help us understand your question better.
Additional context
Anything else you want to share with us?

@arm-diaz @austinmw Can you guys help?

I found a way around this, anyone who is trying the same approach might benefit from this. I created a client using assumed_role and region, created LLM langchain object with the client. Passed the llm object directly to ragas evaluate function to make this work with out the credentials_profile_name.

get_bedrock_client is same as standard way to create bedrock client. Refer notebook

def get_client():

    boto3_bedrock = get_bedrock_client(
        assumed_role=os.environ.get("BEDROCK_ASSUME_ROLE", None),
        region=os.environ.get("AWS_DEFAULT_REGION", None)
    )
    return boto3_bedrock

create llm Bedrock object using langchain

from langchain.llms.bedrock import Bedrock

llm = Bedrock(
    client=get_client(),
    model_id="anthropic.claude-v2",
    model_kwargs={"max_tokens_to_sample": 500, "temperature": 0.9}
    )

Pass llm to ragas evaluate

from ragas import evaluate
import nest_asyncio  # CHECK NOTES

# NOTES: Only used when running on a jupyter notebook, otherwise comment or remove this function.
nest_asyncio.apply()

result = evaluate(
    amnesty_qa["eval"].select(range(3)),
    metrics=metrics,
    llm=llm,
    embeddings=bedrock_embeddings,
)

result

One note, I was running into to issues with evaluate function streaming for async operation when using this approach. I will open an separate issue with details.

from langchain.llms.bedrock import Bedrock
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from ragas.llms import LangchainLLMWrapper
from ragas.embeddings.base import LangchainEmbeddingsWrapper

boto3_bedrock=get_client()
bedrock_llm = Bedrock(
    model_id="cohere.command-text-v14",
    client=boto3_bedrock,
    model_kwargs={"temperature": 0.5, "max_tokens": 1000},
    streaming=True,
    callbacks=[StreamingStdOutCallbackHandler()],
)

ragas_critic_llm = LangchainLLMWrapper(bedrock_llm)

bedrock_embeddings = BedrockEmbeddings(
    model_id="amazon.titan-embed-text-v1", client=boto3_bedrock
)
ragas_embeddings=LangchainEmbeddingsWrapper(bedrock_embeddings)

result = evaluate(
    amnesty_qa["eval"].select(range(3)),
    metrics=metrics,
    llm=ragas_critic_llm ,
    embeddings=ragas_embeddings,
)

Try setting streaming=True and set a callback handler.
Also we have to wrap the LLMs in LangchainLLMWrapper
embeddings model should be wrapped in LangchainEmbeddingsWrapper


feat: Add AAC silent frame getter

This is necessary for enable the muxed TS transmuxer in the future.

This is super cool. How will you use it?

In TS sometimes not all the audio samples are included to optimize, so we are going to include it ourselves :)


Django 1.7 compatibility

[Django 1.7 has been released] (https://docs.djangoproject.com/en/1.7/releases/1.7/). It looks like tests do not pass with this version.

[x] First, in setup.py, mark Django 1.7 as not supported.
[ ] Add support for Django 1.7.

django 1.7 is deprecated


Ratchet response headers

Hi everyone,
Is there a way to work with the format of the headers in a response to an incoming message?
Eg:
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept:  Sec-WebSocket-Protocol:

Closing: The header in this case does not need to be edited, any reply works.


bookstack: 23.01.1 -> 23.05.1

Description of changes
https://github.com/BookStackApp/BookStack/releases/tag/v23.05.1
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Closed for new version


Issue closure with empty comment does not generate E-Mail

Gitea version (or commit ref): https://github.com/go-gitea/gitea/commit/0c721fe016919e368e105142d45efcd4d477757b
When a issue is closed with a empty comment box, no E-Mail seems to be sent to watchers.

There's actually two issues here:

Closing a issue without a comment does not send a mail
Closing a issue with comment sends a mail but only with the Closed #id text

First case should send 1 mail, second case should actually send two mails.


Add a pull request template

The project does not currently have a pull request template.

Closed with #37


Make sure presenters are defined before using them in BetaHelper

This fixes case when an app that uses rizzo has no PlacePresenter and no ArticlesShowPresenter defined.

:+1:


-3,458 votes left to count in georgia

I am not familiar with code, but this caught my eye, especially with accusations of voter fraud being so common. Am I misunderstanding the meaning of this number?

Collapsing into #292


STUB: S3 Provider Plugin

On the path towards building out our integrations with additional hosting providers, we are going to start smaller with an authentication with and pulling from an S3 + folder endpoint. This was defined elsewhere and it will be brought into this issue. More detail required before proceeding...

As stated in the referenced issues above, the backup structure for drud's hosting solution is currently generating backups in the following pattern:
s3://bucket/project-name/production/mybackup.files.tgz
s3://bucket/project-name/production/mybackup.sql.gz

A necessary item to begin work on this is the provisioning of two sites into DRUD hosting for the explicit usage of the DDEV-Local engineering team to build the plugin and the DDEV-Local Circle CI runs to confirm this continues to work. To that end, we will need to address the following dependencies:

Create a "ddev-internal" org in our production cluster.
Create two projects within that:

D7 Commerce Kickstart https://www.drupal.org/project/commerce_kickstart/releases/7.x-2.54

Projectname can be d7-kickstart

D8 Umami distributions https://www.drupal.org/project/umami/releases/8.x-1.x-dev

Projectname can be d8-umami

Create two environments for each:

production => tracks master branch
staging => attached to staging branch

Create an S3 bucket called "ddev-local-tests"

DDEV-Local team needs S3 token for full access, stored in 1password

Backups. Ideally we need at least one backup for each environment out of the gate with nighthly generation.
Code. We need a list of both git endpoints as well as access for anyone in the DRUD org.

Once this is completed we should be good to go.
@cweagans

I'll tackle this before EOD tomorrow. Do you want a Wordpress site as well?

@cweagans Wouldn't hurt... "wordpress4" should suffice for a project name.

:+1:

I've done everything above with a couple of exceptions and changes:

Creds and environment details are in 1password
The Drupal 8 site was installed from Drupal 8.6.0 alpha1 -- the demo_umami profile is included in that, so it was a bit easier to get pushed up.
Right now, the D8 site is broken and I don't know why.
Right now, staging environments don't exist, but I will create them asap.
We cannot configure an environment to track a particular branch on ddev-live. The staging environment tracks the staging branch. production tracks production. You can somewhat work around this by doing git push yourremote master:production to push your local master branch to the remote production branch.

There is one manual backup from the production environment for all three sites in the bucket right now, and they will be automatically generated once per day. Daily backups are retained once per day for a week and once per week for a month.

We won't be doing any pushing at this point anyway (or, I don't expect, any git pulling either). We don't do any push activity of any kind in the pantheon plugin, it's just a way to pull files and db.

Let's name this "drud-s3" as the plugin name. Let's store the full S3 bucket + path in the .ddev/provider.yml. We'll need to prompt the end user for the path during config.

We will not consider utilizing more than one S3 key at this time. Users will need to manually delete/change.

While there is work going on within the PR, there was still some open items that came out of Friday's meeting between myself and @rfay that should get documented as our working plan. Since things are a little scattered about, here's where I think they landed:

The proposed AC from the previous/related issue is out of date and should not be taken literally.

Authentication and Keys

We will assume a drud-s3 user needs access to one S3 bucket to avoid managing multiple AWS keys.
We will not use the ddev auth-PLUGIN approach. Instead we will optionally ask for a token during configuration after answering the standard config questions of project name, docroot, and project type.
The S3 bucketname + projectname will be a string stored in .ddev/config.yml

Caching. We should mirror the approach of the Pantheon plugin by storing a copy locally in case someone tries to pull/download again.

Mocked Steps

ddev config drud-s3

Answer standard questions of procect name, docroot, project type.
S3 Key:

If found, simply state we have found a key.
If not found, request that they paste.

S3 Bucket:

Enter the string of bucket + folder

Environment

Enter the environment to use as either production or staging with production as default.

Wishlist but not necessary

Adding --files or --database to specify just one type of asset download. See related https://github.com/drud/ddev/issues/405

Some of this may be redundant to what's in the related issue or what's in the PR. However, just trying to wrangle this and I'm more than happy to finalize the discussion and get this issue's summary/description updated.

This should be good for another round @rickmanelius , AWS credentials are now collected in the config process, testing procedure has been updated. @andrewfrench would love to have you take this for a spin as well. In addition, the D8 Umami project info is now correct in the 1Password entry, so it's possible to try that out.
This now uses https://github.com/AlecAivazis/survey for prompting, very nice, but a bit of a different feel. We'll want to use it everywhere, as they're doing in hosting.


new package: leocad

http://googledrive.com/host/0B4QpN1vpGh_sUWJZSkVVaEtzcW8/LeoCAD-Source-0.80.3.tgz doesn't exist.

I fixed it by grabbing the source directly from the svn repo and I removed the parts library since it is optional and changes often.

Nice, builds fine on my machine.

Very funny apllication. Years ago, around 2004, I modelled a Snowspeeder myself. Took me weeks to get all single pieces together. This experiment with Leocad and Blender took only minutes for nice result.
Thanks.
http://imgur.com/cV6Ir8n

@robberer I forgot to remove those dependencies when making an edit. Thanks for catching that.
Those renders look good. I'm glad it works well for you!

Yeah, if no one is nitpicking on line 13, not using ${name} then this should be merged.

I fixed that nitpick. Ready for merge.

Built locally, thanks.

Changes Unknown when pulling cd96404ff96315b3cba33f5d1dbae7d38ffb2251 on echo-oddly:leocad into ** on NixOS:master**.


HV-1506 Regroup the Validator scoped properties in ValidationContext

https://hibernate.atlassian.net/browse/HV-1506

I've rebased to current master and reorganized the commits a bit:

First one contains only changes for ValidatorScopedContext with the fixes to the things you've mentioned.
In the next one I've cleaned up a constructor of ValidationFactory so now all configuration property extraction should follow the same pattern.
And in the last one - I've added ValidatioOperation enum as were suggested.

Added a commit with cosmetic improvements and comment fixes and merged. Thanks!


_scss: don't use "all caps" for H4

Change H4's to not be presented in "all caps". To compensate, the font
size is increased from 16px to 18px (otherwise it would be the same size
as H5 headings).
Before:

After:

@usha-mandya ptal


:grey_exclamation: remove first hr if no online services

:rocket: deployment of profiles-pr-100 in nhsuk-dev succeeded (http://profiles-pr-100.dev.c2s.nhschoices.net)

No Line - http://profiles-pr-100.dev.c2s.nhschoices.net/gp-surgeries/40210
Line - http://profiles-pr-100.dev.c2s.nhschoices.net/gp-surgeries/40213


handle case where old pods are still being terminated

for issue #228
filter out pods in Terminating state
-z test should have quoted string as argument
so a list of > 1 pod will not cause syntax error
tested with fs-drift and smallfile, but how will CI react?
 Couldn't read commit file !!!


Switch useMemo to useRef for local stores

See the related card for some context.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Reference has no DigestMethod

Hi!
I have a PDF file that was signed before, and when I try to sign it I get KeyError exception about DigestMethod.
I did some research and found out that for some reason  /Reference has no /DigestMethod.
for k in ("/Root", "/Perms", "/DocMDP", "/Reference"):
	if k in obj:
		obj = obj[k]
		if isinstance(obj, po.ArrayObject):
			obj = obj[0]
		obj = obj.getObject()
	else:
		obj = None
		break
if obj is not None:
	algomd = obj["/DigestMethod"][1:].lower()

Probably the previous signature is wrong.
What do you think if I expend the condition and check if the key /DigestMethodexists?
I already tried it and got a successfully signed document.
There is a small effect - Adobe shows that the previous signature is invalid, but I also tried to sign with JSignPdf util and got the same result, so it is fine by me.
Please tell me WDYT?

https://github.com/m32/endesive/pull/135 - my suggestion

In my opinion, signing incorrect documents sooner or later will end in a catastrophe. Acrobat ignores this error, but there are some that it does not ignore and if you sign such a document, the problem will come back to you, not to the one who generated the incorrect document.

@m32 what if do it optionally?

I still do not like it :) - optionally, you can press it all, but I do not want to explain why the previous signature is incorrect, and somehow I feel that this is how it will be done


Modify MetadataReportRetry ThreadName

Modify MetadataReportRetry ThreadName from DubboRegistryFailedRetryTimer to DubboMetadataReportRetryTimer.

Codecov Report

Merging #3550 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #3550      +/-   ##
============================================
- Coverage     64.09%   64.08%   -0.02%
  Complexity       71       71
============================================
  Files           664      664
  Lines         28617    28617
  Branches       4770     4770
============================================
- Hits          18343    18338       -5
- Misses         8054     8060       +6
+ Partials       2220     2219       -1

Impacted Files
Coverage Δ
Complexity Δ

...dubbo/metadata/support/AbstractMetadataReport.java
71.75% <100%> (ø)
0 <0> (ø)
:arrow_down:

...che/dubbo/remoting/transport/mina/MinaChannel.java
43.42% <0%> (-10.53%)
0% <0%> (ø)

.../apache/dubbo/remoting/transport/AbstractPeer.java
58.69% <0%> (-8.7%)
0% <0%> (ø)

.../remoting/transport/netty4/NettyClientHandler.java
61.4% <0%> (-7.02%)
0% <0%> (ø)

...c/main/java/org/apache/dubbo/rpc/RpcException.java
82.75% <0%> (-3.45%)
0% <0%> (ø)

...bo/rpc/cluster/support/FailbackClusterInvoker.java
67.21% <0%> (-3.28%)
0% <0%> (ø)

...pache/dubbo/registry/support/AbstractRegistry.java
79.13% <0%> (-1.97%)
0% <0%> (ø)

...exchange/support/header/HeaderExchangeHandler.java
58.13% <0%> (+2.32%)
0% <0%> (ø)
:arrow_down:

...dubbo/remoting/exchange/support/DefaultFuture.java
74.32% <0%> (+3.37%)
0% <0%> (ø)
:arrow_down:

.../dubbo/remoting/transport/netty4/NettyChannel.java
65.88% <0%> (+4.7%)
0% <0%> (ø)
:arrow_down:

... and 3 more

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 f71a95b...19824c3. Read the comment docs.


React context api vs redux

This is the article on the use of the new React's context API and redux.

Updated article and fixed errors as you stated in your reviews.

handled here: https://github.com/auth0/blog/pull/1633


Replace use of erc20 methods

We removed erc20 related methods from CN and need to see if they were used in the relay server to remove / replace them.  (balanceOf, totalSupply, spendable, ..)

balanceOf only used in context of the UnwETH, Token and Exchange contract, which have been not affected by the related PR
totalSupplyisn't used at all
spendable/spendableTo is defined for the currency network proxy <-- needs action


ravel_pytree now produces jit-compatible unravel functions

Previously,
_, unravel1 = ravel_pytree(pytree)
_, unravel2 = ravel_pytree(pytree)

@partial(jax.jit, static_argnums=0)
def run(unravel, ...):
    ...

run(unravel1, ...)
run(unravel2, ...)

would unecessarily induce recompilation.

Ping @mattjj

Thanks for this, Patrick. Sorry I've been so slow to respond for the last N months. (I wish I could say only "recently"!)
This is a great idea. I adapted it in #14954 to reuse the Partial class, and to use a tuple in place of a hashably-wraped numpy.ndarray (though we can switch to the latter if the need arises, e.g. if we want different hash functions or performance characteristics). I pasted the same test case.
Thanks for this improvement!

FWIW the docs on jnp.split only mention supporting ints or arrays, not tuples. (I know that JAX departs from numpy in often disallowing arraylikes in place of arrays

Good catch!
Also I done goofed in another way: I was thinking of HashablePartial from shard_map.py (to be moved into util.py), not Partial.

Hah, I feel like the various kinds of JAX-internal function wrappers are starting to get a bit complicated. Off the top of my head there's Partial, HashablePartial, HashableFunction, _HashableCallableShim, and callable pytrees (e.g. checkify.Error, or this PR).
Outside of core JAX I just use eqx.Module for all of these use cases. It should probably be possible to standardise on a single approach here too.

Side note, the issue fixed in this PR is a pretty common one in JAX -- e.g. jax.{jit, grad, ...} etc. all return a fresh closure each time.

It should probably be possible to standardise on a single approach here too.

You might be a lumper. Internal JAX utilities are set up to make lumpers out themselves. 😛

We effectively merged this as #14954!


feat: add new chains to Homepage marquee

Note: Waiting for input in chains logos
What it solves
Adds the newly supported chains

Polygon zkEVM
zkSync Era

to the Homepage marquee.
How this PR fixes it

Adds the new networks info to the Home content file

Please use these icons, they are 2x size (80x80).

I've used 160x160 as they were still blurry at 80x80


How can I use the pretrained audio model in Python?

Thanks for making this awesome project!
But how can I use the pretrained audio model in Python?
I want to use Keras or Tensorflow in Python to train my own model through the transfer learning on your introduced pretrained model, Speech-Commands.
Could you please give some instructions to help me do this?
Thanks a lot!

Hi @b3326023 this is a request we've gotten and are trying to work on. We don't support this just yet.
See issue #36 and #66


airflow db-migration-init container not optional

What is the bug?
https://github.com/airflow-helm/charts/blob/main/charts/airflow/templates/webserver/webserver-deployment.yaml#L93 this is always required, even when dbmigration enabled is set to false
What version of the chart are you using?
I am using version 8.5.2 of this chart.
What version of Kubernetes are you using?
######## PASTE `kubectl version` BELOW ########
Client Version: ...
Server Version: ...
######## PASTE `kubectl version` ABOVE ########

What version of Helm are you using?
######## PASTE `helm version` BELOW ########
version.BuildInfo{....
######## PASTE `helm version` ABOVE ########

What are your custom helm values?

click to expand
######## PASTE values.yaml BELOW ########
airflow:
  ...
######## PASTE values.yaml ABOVE ########

@pindge its still important for the webserver to not start until the correct DB Migrations have been applied (otherwise it might not work, or may corrupt your database).
The airflow.dbMigrations.enabled feature is for people who want to manually run airflow db upgrade when needed, rather than depending on the chart to do it for them in a Job/Deployment.


Dockerfile: update to python 3.7, creds-helpers v0.6.3, and some optimisations

See individual commit messages for a description

Ping @shin- ptal


Peers are still unable to connect after IP address change

I've reported this issue a few times already. According to https://github.com/lightningnetwork/lnd/issues/5377 it got fixed quite a while ago, but it still persists, as reported again in January: https://github.com/lightningnetwork/lnd/issues/6128 and also from another user who is running CLN: https://github.com/ElementsProject/lightning/issues/5037
Unfortunately the issue still seems to be very widespread. I had another IP address change and almost 40 tor peers are unable to connect. That's almost 25% of my ~170 peers:

Even 1ml.com didn't pickup on my new IP and I talked to Alex Bosworth and he said he is running custom software to make sure yalls.org isn't affected by this specific issue.
After changing my alias twice, 1ml finally got the new IP, but the ~40 tor peers are still stuck offline.
My node is SilentBob (02e9046555a9665145b0dbd7f135744598418df7d61d3660659641886ef1274844)

hi @viaj3ro - quick question just to try to narrow down where the problem may be: if you ask one of your peers who cant reconnect to you to do an lncli getnodeinfo for your node id, can they see your new IP listed there?

I also experienced this issue, and only with SilentBobs help was I able to fix and reconnect using new IP.

@ellemouton I'm pretty sure they use Eclair.
I get getnodeinfo on a mainnet node and it shows a dated (?), different IP from that of 1 ML.
Ultimately, what I think is the issue here is the propagation of node announcements across the network, which may run into the set of heterogenous throttling and rebroadcast mechanisms of each of the implementations have.
They also mention they see this issue w/ Tor peers. IIUC, their node is a clearnet-only node, so it can't connect to the Tor nodes. Instead the Tor nodes must connect to it, since they only have an onion service address.

@Roasbeef yes, I'm running eclair and the issue is with tor and clearnet peers, but the clearnet peers I can connect back manually myself (as long as their IP announcement is correct).
@ellemouton I talked with @pfergi42 and they never got my new IP. Even after many days. Last time I got a new IP I ended up force closing quite a few channels with tor peers, since even after many months they never got the new IP.
Sometimes changing the alias helps, but usually only for a small number of unconnected peers.

I understand that there are propagation issues but shouldn't there be a feasible way for nodes to be able to somehow get an up to date IP announcement from their own peers? especially if channels are stuck offline for a while?

The nature of the gossip network is that they'll eventually get this information. On the spec side, we recently added support to advertise a domain name instead of just an IP. Nodes can then use DNS instead of the gossip network to be able to obtain the latest IP for a node. I'm not sure if Eclair has implemented this yet, but lnd will propagate these announcements. If you have a dynamic IP, then the best way is just to use the domain name instead.

the problem is, that 'eventually' in practice just seems to be never for a big chunk of (tor) nodes.
Since my IP is semi dynamic (changes 1 or twice a year on average) I'd actually prefer to not introduce more potential failure modes via DNS. If that changes for some reason, the issue will be exactly the same. Why not solve it once and for all?


Update is not reflected in manifest file in Azure portal

The update method of Service Principal is successful, and Raw data returned indicate the app role change was successful, but the change is not reflected in the Azure portal's App Manifest file view.
https://github.com/Azure/azure-sdk-for-python/blob/master/azure-graphrbac/azure/graphrbac/operations/service_principals_operations.py
Here is the python code I used:
https://stackoverflow.com/questions/55262434/changes-to-the-manifest-of-my-azure-app-are-not-seen-in-the-azure-portal
Not sure if this is a problem with the python library, the Graph API or the internal state not reflected in the manifest file editor?

I was able to check the raw output and verify this occurs directly using the Azure AD Graph explorer https://graphexplorer.azurewebsites.net/# so this is not specific to Python implementation.


Rename SendPolicy into EventType

I think this name is more obvious, a bit shorter and plays better with SendType.

We're currently processing your upload.  This comment will be updated when the results are available.

SendPolicy is too similar to SendType, I wanted to make them more distinguishable.


feat(ibc transfer): Register IBC denom on transfer

PR Standards
Opening a pull request should be able to meet the following requirements

Closes #XXX
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
For Author:

[ ]  Targeted PR against correct branch
[ ]  included the correct type prefix in the PR title
[ ]  Linked to Github issue with discussion and accepted design
[ ]  Targets only one github issue
[ ]  Wrote unit and integration tests
[ ]  All CI checks have passed
[ ]  Added relevant godoc comments

For Reviewer:

[ ]  confirmed the correct type prefix in the PR title
[ ]  Reviewers assigned
[ ]  confirmed all author checklist items have been addressed

After reviewer approval:

[ ]  In case targets main branch, PR should be squashed and merged.
[ ]  In case PR targets a release branch, PR should be rebased.

Please could you make and link an issue, and cross link the hub pr?

Btw does any proto for old messages/tx need to be deprecated? And the corresponding generated code?


How do I delete a folder with the same name as the zip file?

Hello
Sorry, English is not good. Zip4j is really great! I noticed the zip file I created. After unzipping, I have a root folder with the same name as the zip file. When creating a zip file, can I configure not to have a root folder?

Yes, you can do it with ZipParameters.setIncludeRootFolder(false)

I did try this, but it didn't work. I am using the v2.2.4 version.

Can you post the code you used?

Please see this is my test code. I found that zipParameters.setIncludeRootFolder(false) is valid if it is just a single file. If it is to compress multiple files, this parameter seems to be ignored.
`@Test
public void compressFiles() throws IOException {
ZipFile zipFile = new ZipFile("/Desktop/ias.zip");
zipFile.setCharset(Charset.forName("UTF-8"));
    ZipParameters zipParameter = new ZipParameters();
    zipParameter.setIncludeRootFolder(false);
    zipFile.addFile(new File("/Desktop/ias.app"), zipParameter);

    ZipParameters zipParameter1 = new ZipParameters();
    zipParameter1.setIncludeRootFolder(false);
    zipParameter1.setFileNameInZip("shadowsocks.txt");
    zipFile.addStream(new FileInputStream(new File("/Users/lakxtxue/Desktop/shadowsocks.txt")),zipParameter1);
}

@Test
public void createEncryptedZip() throws IOException {
    ZipFile zipFile = new ZipFile("/Desktop/ias.zip","hello".toCharArray());
    zipFile.setCharset(Charset.forName("UTF-8"));

    ZipParameters zipParameters = new ZipParameters();
    zipParameters.setCompressionLevel(CompressionLevel.MAXIMUM);
    zipParameters.setEncryptFiles(true);
    zipParameters.setEncryptionMethod(EncryptionMethod.ZIP_STANDARD);
    zipParameters.setIncludeRootFolder(false);
    zipFile.addFile(new File("/Desktop/ias.app"), zipParameters);

    ZipParameters zipParameter1 = new ZipParameters();
    zipParameters1.setCompressionLevel(CompressionLevel.MAXIMUM);
    zipParameters1.setEncryptFiles(true);
    zipParameters1.setEncryptionMethod(EncryptionMethod.ZIP_STANDARD);
    zipParameters1.setIncludeRootFolder(false);
    zipFile.addFile(new File("/Desktop/shadowsocks.txt"),zipParameter1);
}`

zipParameters.setIncludeRootFolder is only applicable when you add a folder to a zip i.e, ZipFile.addFolder(). When you add files, only the file name is added as the name of the file in zip.
Your issue has nothing to do when adding the files. It has to do with the tool with which you are extracting the zip file. That tool is creating the directory with the same name as the zip file.

我关闭了问题，你是对的，谢谢你解决了我的问题。


Write Warehouse Delegate, revise BPMNs

@VitalyVakhteev add screenshots for bmpns from modeler for review

Query:

Dashboard:


Fix #2023

fix Sidebar groups cannot be collapsed when collapsible sidebar is off cause from #2003 .

Why was this closed? Was it the conflicts with the other PR?

Replaced by #2214


Crashing in 1.21

With only mod menu 11.0.0-beta.1 installed the game keeps crashing during world generation.
Here's a copy of the crash log
crash-2024-06-14_08.53.01-server.txt

Had the same issue. This occurs only when Fabric API is not standalone installed (only occurs with the jar-in-jar modmenu's fabric api).
As a temporary workaround, installing Fabric API version 0.100.1+1.21 solves this. Logs: https://mclo.gs/H4OKg5o

It's primarily because ModMenu was compiled with a previous version of Fabric API, so the jar-in-jar version is outdated...

Mod Menu for 1.21 is now out


加载依赖失败

Could not determine the dependencies of task ':base:compileDebugAidl'.

Could not resolve all task dependencies for configuration ':base:debugCompileClasspath'.
Could not resolve com.github.jenly1314.Base:uitl:3.2.1-androidx.
Required by:
project :base
Could not resolve com.github.jenly1314.Base:uitl:3.2.1-androidx.
Could not get resource 'https://jcenter.bintray.com/com/github/jenly1314/Base/uitl/3.2.1-androidx/uitl-3.2.1-androidx.pom'.
Could not GET 'https://jcenter.bintray.com/com/github/jenly1314/Base/uitl/3.2.1-androidx/uitl-3.2.1-androidx.pom'.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Reading a bag from s3, with nested directories

Following http://stackoverflow.com/questions/38946110/dask-bag-read-text-s3
Failing test case:
def test_read_nested_bag(s3):
    db = pytest.importorskip('dask.bag')
    with s3.open(test_bucket_name+'/not_a_directory', 'wb') as f:
        f.write(b'data1')
    with s3.open(test_bucket_name+'/not_a_directory/file1', 'wb') as f:
        f.write(b'data2')
    out = db.read_text('s3://'+test_bucket_name+'/not_a_directory',
                       blocksize=900000)
    assert out.compute() == ['data1']
    out = db.read_text('s3://'+test_bucket_name+'/not_a_directory')
    assert out.compute() == ['data1']
    out = db.read_text('s3://'+test_bucket_name+'/not_a_directory/*')
    assert out.compute() == ['data2']

Use of blocksize causes data to come from read_bytes, otherwise comes from open_text_files.

The culprit is s3.glob : is there is no "", it assumes the path is a directory and adds "/". Read_bytes does not call glob if there is no "*". This is probably reasonable behaviour for s3.glob (because of the ambiguity between files and directories on s3), so open_text_files should have the same logic as read_bytes.

Was this resolved?

It seems not - the test case above didn't make it into the code base, presumably because the workaround was good enough. I still want to comprehensively rewrite the read_ functionality to make it simple like the write_ ones, but I don't know when I'll get to it.


typo. Should be BEANSTALK. L is missing

https://github.com/pulumi/pulumi-aws/blob/ec4663b76f2a04fe62af706d841d0b679bb3fda5/sdk/python/pulumi_aws/iam/_enums.py#L215

There is a correctly named value on the next line:
https://github.com/pulumi/pulumi-aws/blob/ec4663b76f2a04fe62af706d841d0b679bb3fda5/sdk/python/pulumi_aws/iam/_enums.py#L216
We kept the old value to ensure we don't break people. We should probably remove it at the next major version of the provider.

Great! already in master. Thanks!


How Can I trigger a Reconcile by my own code?

Hi,
I'd like to trigger reconcile process while my code monitored my application status changes.
Now looks impossible.
B.R.
Bo

Can you please elaborate? What is impossible?

Event Sources are generally for that. It is certainly possible.


Add episode numbers as an option

It would be useful to be able to specify an episode number in the frontmatter of an episode, which would then be able to take a prefix from the config file to append to the title on the display, as it is done on https://www.arresteddevops.com.
For example, config.toml would have a field called episode_prefix, like "ADO", and then that would generate a title like
My Episode - ADO89

So I think code looks something like
$.Scratch.Set "episode_prefix" ""
{{ with $.Site.Params.episode_prefix }}
  {{ $.Scratch.Set "episode_prefix" "(" }}
  {{ $.Scratch.Add "episode_prefix" $.Site.Params.episode_prefix }}
  {{ $.Scratch.Add "episode_prefix" ")" }}
 {{end}}

{{.Title}}{{ with .Params.episode_number }}&nbps;{{ . }}{{ $.Scratch.Get "episode_prefix }}{{ end }}

Could even get tricker and add an optional field to specify what should surround the episode number (parens or square braces, etc)

I have confused myself and don't know why I was going to do the parens around it. From what I can tell in the example, it would output something like My Episode (ADO89) not My Episode - ADO98.
Also the code is bad because I already have the value of %.Site.Params.episode_prefix available in the . from the with statement :)

but I think you could do like three options, set with episode_number_style in the config, like this (these are the three options):
[params]
episode_number_style  = "parens"
episode_number_style = "brackets"
episode_number_style = "dash"

which would result in the following:
My Episode (ADO89)
My Episode [ADO89]
My Episode - ADO89

as another update so I don't forget - the episode = "" already exists in frontmatter, and is used in the feed:
          {{ with .Params.episode }}
          <itunes:episode>{{ . }}</itunes:episode>
          {{ end }}

This is connected to #67


Tests with catch-all-routes fail

🐛 Bug Report
Hello,
we tried to use next-page-tester in our project but get the following issue when running a test that tries to get a page with a catch-all-route:
Catch-all must be the last part of the URL.

      at UrlNode._insert (node_modules/next/shared/lib/router/utils/sorted-routes.ts:79:13)
      at UrlNode._insert (node_modules/next/shared/lib/router/utils/sorted-routes.ts:194:8)
      at UrlNode.insert (node_modules/next/shared/lib/router/utils/sorted-routes.ts:9:10)
      at node_modules/next/shared/lib/router/utils/sorted-routes.ts:213:46
          at Array.forEach (<anonymous>)
      at Object.getSortedRoutes (node_modules/next/shared/lib/router/utils/sorted-routes.ts:213:19)
      at Object.getPagePaths [as default] (node_modules/next-page-tester/dist/getPageObject/getPagePaths.js:14:28)
      at Object.getRouteInfo [as default] (node_modules/next-page-tester/dist/getPageObject/getRouteInfo.js:13:23)
      at Object.getPageObject (node_modules/next-page-tester/dist/getPageObject/getPageObject.js:13:23)
      at Object.getPageInfo (node_modules/next-page-tester/dist/page/getPageInfo.js:13:24)
      at getPage (node_modules/next-page-tester/dist/getPage.js:66:38)

This is our test:
test('first integration test', async () => {
    const { render } = await getPage({
        route: '/test/page',
    });
    render();

    await waitFor(() => {
        expect(screen.getByText('I am a test page')).toBeInTheDocument();
    });
});

And this is our index.tsx at /pages/[...pathSegments]/index.tsx:
import {NextPage} from "next";

const Home: NextPage = () => {
    return (

I am a test page

    );
}

export default Home;

Reproduction
I reproduced the issue with a new next JS minimal repo: https://github.com/jonasatmonday/next-page-tester-minimal-repo
Simply check out the develop branch, run yarn install and then try to run the test with yarn jest.
The catch-all-route works perfectly fine when starting the next dev server with yarn dev and opening the page at http://localhost:3000/test/page.
Expected behavior
I expect tests with catch-all-routes to work and not throw the described error. Our project works with a CMS so all our pages have highly dynamic paths.
Jest patch
Have you patched Jest as described here?

[ ] yes
[X] no

Not required because I use jest 27.1.0
Run npx envinfo --preset jest
Paste the results here:
npx: installed 1 in 1.336s

  System:
    OS: macOS 11.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v14.15.1/bin/yarn
    npm: 6.14.11 - ~/.nvm/versions/node/v14.15.1/bin/npm
  npmPackages:
    jest: ^27.1.0 => 27.1.0

Hi @jonasatmonday,
the error you get seems quite explanatory:
Catch-all must be the last part of the URL.

Next.js doesn't support catch-all route segments in the middle of a page path. The error comes from an utility of Next.js itself.
It seems that there's a working undocumented edge case related to [...catch-all]/index routes.
As a temporary solution I'd suggest to declare Next.js as stated in documentation:
/pages/[...pathSegments]/index.tsx. --> /pages/[...pathSegments].tsx

Hi @toomuchdesign,
thanks for your response! Your suggestion solved our catch-all-issue. And I guess it really is an working undocumented edge case - we never experienced an issue with those routes in our Next.js app.
Best regards,
Jonas


Love your documentation

Currently headings are taking take too much space. Fix it.

Also the document must be so rich that users can use it just by reading it carefully.

doctest is preferred to be on types so that it can be seen when re-exported.

Follow the documentation of Data.Monoid (source).

Heading levels tend to be 4: ==== __Examples__.

Examples should be folded by default.

Use [Definition] for SegAct related properties.
Add section descriptions: -- * 'Bool' wrappers. They also appear in the Contents sidebar.

Also, add @since everywhere.

It's still sick, but level 4 is slightly better.

Definition list looks nice.

I was able to embed contest template in a folded code block. User could copy & paste it in real contests.

Doone

I tried adding @since everywheere. Is it too much or good practice?


Mock API: Operation BatchPutItem not implemented

Before opening, please confirm:

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

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v16.13.0
Amplify CLI Version
10.2.1
What operating system are you using?
M1 Mac w/ rosetta terminal
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Manual changes required to add a mutation resolver that uses the BatchPutItem operation.
Amplify Categories
api
Amplify Commands
Not applicable
Describe the bug
I get the following error when I try and submit a "BatchPutItem" operation using the amplify mock api.  I've tried a few different BatchPutItem operations and they all fail with this message.
{
  "data": {...},
  "errors": [
    {
      "message": "Operation  BatchPutItem not implemented",
      "errorType": "UnknownErrorType",
      "data": null,
      "errorInfo": null,
      "path": [...],
      "locations": [...]
    }
  ]
}

Note, I don't get this error when I push my code up and use the hosted environment.
Expected behavior
I would expect the mock api to be able to handle BatchPutItem operations
Reproduction steps
Starting with a new directory:

> amplify init
> amplify add api to create graphql schema with > 1 table + auth
> amplify mock api to run mock api
update resolver for creating an item to use a BatchPutItem
attempt a BatchPutItem on the local mock api by calling the given mutation via the graphql explorer

GraphQL schema(s)

# Put schemas below this line
type User @model @auth(rules: [{ allow: public, provider: iam }]) {
  name: String
  blog: Blog @hasOne
}

type Blog @model @auth(rules: [{ allow: public, provider: iam }]) {
  id: ID!
  name: String!
}

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response

Hey @gxxcastillo, Thank you for reaching out. Amplify mock api currently does not support this workflow but is supported on the AppSync console.
Marking this as a feature request.


Patch 1

Pull Request Test Coverage Report for Build 437

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 90.597%

Files with Coverage Reduction
New Missed Lines
%

talos/utils/validation_split.py
2
83.33%

Totals

Change from base Build 381:
-0.2%

Covered Lines:
925

Relevant Lines:
1021

💛  - Coveralls

Thanks.


Retrying data read: invalid literal for int() with base 16

Keep getting the following error when running with a single slave (using Uno v3 for both master and slave, wired as per diagram provided with this project. Slave is running DuinoCoin_RPI_Tiny_Slave). py script running on Windows 11
16:40:38.348661 DEBUG: 1: Requesting job
16:40:38.626209 DEBUG: 1: Received: 7bd743d94cdbe592b28f5b3515760662ad8e49f2
16:40:38.627209 DEBUG: 1: Sending job to the board
16:40:38.627709 DEBUG: 1: Job+crc8: 7bd743d94cdbe592b28f5b3515760662ad8e49f2,1bc917db03702599ace7ca391fd1bd362b36aa91,6,12
16:40:41.325177 DEBUG: 1: Reading result from the board
16:40:51.339915 DEBUG: 1: Retrying data read: invalid literal for int() with base 16: ''

seems like the data return is empty. I've just tested it and seems to be working fine. is this still reproducible?


Updating map data from OSM

@ThomasDagier, @omalaspinas, and Varad have all recently hit the same problem. After importing an area into A/B Street, they're trying to edit OSM and fix lane tagging, and see the results quickly. There's no nice way to do it today.
Approaches today:

Delete the .osm.pbf file from data/input and re-import, forcing a fresh Geofabrik download
Import a custom area, which uses Overpass

Ideal UX is just to click a button to refresh data for the current map. How could it work?

if the osm.pbf is > 1 day old, first grab geofabrik
use osmupdate to catch it up

Hmm... maybe a simpler approach is just to go through the existing custom import flow using overpass, but feed it the polygon boundary and options from the current map. Actually this sounds easy to implement quickly. Overpass replication delay seemed to be around 10-15 minutes based on a test today

Fixed, kind of. In the "pick a city" screen, there's a new button to refresh data for the current map. Few minutes delay between OSM edits and Overpass. Good enough for now. It'll be in this Sunday's build for @darthvarad, or could be used ASAP by @thomasdgr.

:fire:

Thanks for this, looking forward to Sunday!


Add CodeGen for Rust (hyper)

Tell us about the task you want to perform and are unable to do so because the feature is not available
Add CodeGen for Rust
Library - https://hyper.rs/
Guidelines for adding a codegen - https://github.com/foss42/apidash/discussions/80

I've started working on this issue, will open a PR soon.

I am working on this but hyper doesnt support multipart forms . So should i just show error saying unsupported when multiple forms are made .

The current version of hyper doesn't support sending form data requests .This can be workaround by serializing the data . But should it say the formdata is not supported by the library as it is more accurate than serializing and sending. Especially if endpoint is expecting formdata.

There is a similar query here - https://www.reddit.com/r/rust/comments/4nifd6/hyper_and_forms_post/
For multipart, you can use another library that works well with hyper.

`async fn main() -> Result<(), Box> {
let https = HttpsConnector::new();
let client = Client::builder().build::<_, hyper::Body>(https);
let url = "https://api.apidash.dev".parse::().unwrap();
let req = Request::builder()
.method("GET")
.uri(url)
.header("Accept-Encoding", "sdsd");
.body(Body::from(body))?;
let res = client.request(req).await?;
let status = res.status();
let body_bytes = hyper::body::to_bytes(res).await?;
let body = String::from_utf8(body_bytes.to_vec())?;

println!("Response Status: {}", status);
println!("Response: {:?}", body);
println!("1");

let reqwest_client = ReqwestClient::builder()
    .danger_accept_invalid_certs(true) // Optional: Accept invalid certificates
    .build()?;
    println!("2");
let form = Form::new()
    .text("field1", "value1")
    .text("field2", "value2");

    println!("3");
let reqwest_response = reqwest_client
    .post("https://example.com/upload")
    .multipart(form)
    .send()
    .await?;
    println!("4");
println!("Reqwest Status: {}", reqwest_response.status());
let body = reqwest_response.text().await?;
println!("Reqwest Body: {}", body);

Ok(())

}
`
would something like this work ? I am quite unfamiliar about two requests going to the same point.

Would it be possible to have the cargo.toml file that was used to test reqwest library. I have implemented a similar way as shown in rust reqwest codegen file for hyper multipart . But there are a lot of version or dependency errors.

@Clasherzz That support was added by @Tanish2002
You can definitely reach out to him and drop a message in case you need any help

Hi @Clasherzz
I, fortunately, had the test app I used for creating other rust codegens. It does have other irrelevant dependencies, you can remove the ones you don't need.
[package]
name = "reqester"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
actix = "0.13.3"
actix-multipart = "0.6.1"
actix-rt = "2.9.0"
actix-web = "4.5.1"
awc = { version = "3.4.0", features = ["openssl"] }
bytes = "1.6.0"
curl = "0.4.46"
futures = "0.3.30"
mime_guess = "2.0.4"
multipart = { version = "0.18.0", features = ["client"] }
openssl = "0.10.64"
reqwest = { version = "0.11.24", features = ["blocking", "json", "multipart"] }
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
tokio = { version = "1.36.0", features = ["full"] }
ureq = { version = "2.9.6", features = ["json"] }

Thanks a lot Tanish

Thanks @Tanish2002


Log changes to incremental and non-incremental input properties differently

so it is easy to see what caused a full rebuild.

cc: @gradle/build-cache

I saw that we already log
All input files are considered out-of-date for incremental task ':compileJava'.

when a non-incremental change happens. Is that maybe enough?


secure-ls not compatible with pnpm + esBuild: has no exported member 'LZStringStatic'

When I've installed secure-ls with pnpm and run it with esBuild I get:
X [ERROR] TS2694: Namespace<EMAIL_ADDRESS>has no exported member 'LZStringStatic'. [plugin angular-compiler]
node_modules/.pnpm/secure-ls@1.2.6/node_modules/secure-ls/dist/secure-ls.d.ts:24:23:
  24 │     LZString: LZString.LZStringStatic;
     ╵                        ~~~~~~~~~~~~~~

After upgrade angular v14 to v15 in my application, I am getting bellow Errors.
Error: node_modules/secure-ls/dist/secure-ls.d.ts:4:9 - error TS2305: Module '"crypto-js"' has no exported member 'CipherHelper'.
4 import {CipherHelper, Encoder} from 'crypto-js';
~~~~~~~~~~~~
Error: node_modules/secure-ls/dist/secure-ls.d.ts:4:23 - error TS2305: Module '"crypto-js"' has no exported member 'Encoder'.
4 import {CipherHelper, Encoder} from 'crypto-js';
~~~~~~~
Error: node_modules/secure-ls/dist/secure-ls.d.ts:24:24 - error TS2694: Namespace '"/node_modules/lz-string/typings/lz-string"' has no exported member 'LZStringStatic'.
24     LZString: LZString.LZStringStatic;
{
"name": "my-app",
"version": "0.0.1",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --configuration production",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"

},
"resolutions": {
"webpack": "^5.0.0"
},
"private": true,
"dependencies": {
"@angular/animations": "^15.2.10",
"@angular/cdk": "~14.1.1",
"@angular/common": "^15.2.10",
"@angular/compiler": "^15.2.10",
"@angular/core": "^15.2.10",
"@angular/forms": "^15.2.10",
"@angular/localize": "^15.2.10",
"@angular/platform-browser": "^15.2.10",
"@angular/platform-browser-dynamic": "^15.2.10",
"@angular/router": "^15.2.10",
"@angular/service-worker": "^15.2.10",
"@auth0/angular-jwt": "^5.0.2",
"@fortawesome/fontawesome-free": "^5.8.2",
"@google/markerclusterer": "^2.0.8",
"@ngx-loading-bar/core": "^4.2.0",
"@ngx-loading-bar/http": "^4.2.0",
"@ngx-loading-bar/router": "^4.2.0",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@nicky-lenaers/ngx-scroll-to": "^14.0.0",
"@stripe/stripe-js": "^1.10.0",
"@types/crypto-js": "^4.2.2",
"@zxcvbn-ts/core": "^3.0.4",
"@zxcvbn-ts/language-en": "^3.0.2",
"angular-page-visibility": "^6.1.4",
"angular-password-strength-meter": "^8.1.0",
"apexcharts": "^3.36.3",
"bootstrap": "^4.3.1",
"chart.js": "^2.8.0",
"chartjs-plugin-colorschemes": "^0.4.0",
"chartjs-plugin-datalabels": "^0.6.0",
"core-js": "^2.5.4",
"exceljs": "^4.3.0",
"export-to-csv": "^0.2.1",
"file-saver": "^2.0.2",
"flag-icon-css": "^3.5.0",
"google-maps": "^4.3.2",
"highcharts": "^9.1.2",
"jquery": "^3.5.1",
"light-icons": "^1.0.10",
"lz-string": "^1.4.2",
"moment-timezone": "0.5.27",
"ng-click-outside": "^5.1.1",
"ng-packagr": "^16.2.1",
"ng-select2": "^1.1.2",
"ng-trim-value-accessor": "^3.0.2",
"ng-wizard": "^1.2.0",
"ng2-charts": "^2.3.0",
"ng9-password-strength-bar": "^1.1.0",
"ngx-bootstrap": "^10.2.0",
"ngx-flip": "^9.0.0",
"ngx-perfect-scrollbar": "^7.1.0",
"ngx-progressbar": "~6.1.1",
"ngx-scrollbar": "^10.0.1",
"ngx-select2": "~0.3.0",
"ngx-toastr": "^15.2.2",
"powerbi-client": "^2.18.5",
"rxjs": "^6.6.7",
"rxjs-compat": "^6.5.3",
"secure-ls": "^1.2.3",
"select2": "^4.0.13",
"ts-overlapping-marker-spiderfier": "^1.0.3",
"tslib": "^2.0.0",
"xlsx": "^0.18.5",
"zone.js": "~0.11.4",
"zxcvbn3": "^0.1.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.2.10",
"@angular/cli": "^15.2.10",
"@angular/compiler-cli": "^15.2.10",
"@angular/language-service": "^15.2.10",
"@types/clone": "^2.1.4",
"@types/file-saver": "^2.0.7",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"ansi-regex": "^5.0.0",
"codelyzer": "^0.0.28",
"cypress": "^4.2.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.4.1",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"loader-utils": "^2.0.3",
"minimatch": "^3.1.2",
"moment": "^2.29.4",
"moment-timezone": "^0.5.39",
"ts-node": "~7.0.0",
"tslint": "~6.1.0",
"typescript": "^4.9.5"
}
}


[FIX] Remove custom error type implementation

Description

Removed the type Error from internal/errors
Replace all occurrences of errors.Error("error_message") with fmt.Errorf("error_message")

Motivation and Context

This isn't a problem, but an opportunity to improve the projects error handling code.
[...]
Refactor the project to remove this errors sentinel type, it's not needed since after Go 1.13 (and we use Go 1.19), the Go standard library supports comparing errors natively. The Go standard library errors package in the upcoming release will also support >1 error types to wrap/unwrap so they're still investing in this.

Closes #63

How Has This Been Tested?
Ran: $ go test ./...
All tests passed, there was NOT any change on the tests.

Types of changes

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

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

@rafaelbreno thanks for the pull request! The changes look good, but the conventional_commits check failed due to the PR title. Could you change [FIX] to refactor: ? More information is available here if you're interested.


Add configurable gpu

Modify how GPU usage is specified in the code. Previously done via input file and generic function calls used custom imports at the function level to use cupy over numpy etc. WIth this I added a global config which can be used to specify whether a device should be used.
For the "binary" route one should now do ipie --gpu input.json, or follow the example . Importantly the config needs to be updated before any ipie module is loaded due to our somewhat ensnared / unclear import dependencies.
To avoid module level imports / branching I defined an abstract arraylibrary (arraylib) in ipie/utils/backend.py which essentially just points to cupy or numpy. I've adopted the cupy suggestion of calling this generic library xp where x signifies it can be either c(upy) or n(umpy). In addition I've defined generic functions like to_host and synchronize which should be essentially noops on cpu and will call correct function on gpu.
The biggest issue right now is with unit testing due to how pytest seaches for tests by first importing the module (I think) which in turn causes the config to default to false for gpu usage which then determines the arraylib definitions. To overcome this i've added a pytest marker (gpu) to distinguish gpu tests from cpu tests and an environment variable IPIE_USE_GPU which only is there for unit tests (see docs/source/dev/index.rst for more details until docs are resurrected (#133).
In the future I think we want may want to test portable features (run on both via xp) and some logic will need to be worked through, or a better runtime switch / context manager might be better.

Addresses #51

Come back to it when CI passes.


[KOGITO-9940] Add documentation for Jobs Service support in the Operator

Extends the documentation to include how to configure Jobs Service using the Operator.
@ricardozanini @kaldesai PTAL

@ricardozanini @jordigilh @kaldesai I accepted the suggestions, only one seemed off. Apologies for the mess, will use the batch suggestion next time.

@jakubschwan want to take a look?

@jordigilh can you please rebase?

@jordigilh can you please rebase?

Done

@jordigilh there are many WARNs in the build result. Can you please fix them? Otherwise, it will break our branch based on this new incoming PR: #539

@jordigilh there are many WARNs in the build result. Can you please fix them? Otherwise, it will break our branch based on this new incoming PR: #539

From what I'm reading in the last build, none of these warning are related to the changes I brought in my PR. If they need to be fixed, I reckon they should be in a new PR.
What am I missing?

hmmm @jordigilh can you rebase? Maybe that's already fixed in main since we merged a PR that won't allow such errors anymore.

hmmm @jordigilh can you rebase? Maybe that's already fixed in main since we merged a PR that won't allow such errors anymore.

Done.

@jordigilh nice now we got the actual errors from your PR:
[20:15:27.833] WARN (asciidoctor): section title out of sequence: expected level 2, got level 3
    file: /home/runner/work/incubator-kie-kogito-docs/incubator-kie-kogito-docs/serverlessworkflow/modules/ROOT/pages/cloud/operator/enabling-jobs-service.adoc:21
    source: /home/runner/work/incubator-kie-kogito-docs/incubator-kie-kogito-docs (branch: HEAD <worktree> | start path: serverlessworkflow)
[20:15:[27](https://github.com/apache/incubator-kie-kogito-docs/actions/runs/8178041793/job/22361529094?pr=530#step:8:28).838] WARN (asciidoctor): section title out of sequence: expected level 2, got level 3
    file: /home/runner/work/incubator-kie-kogito-docs/incubator-kie-kogito-docs/serverlessworkflow/modules/ROOT/pages/cloud/operator/enabling-jobs-service.adoc:47
    source: /home/runner/work/incubator-kie-kogito-docs/incubator-kie-kogito-docs (branch: HEAD <worktree> | start path: serverlessworkflow)
[20:15:27.843] ERROR (asciidoctor): level 0 sections can only be used when doctype is book
    file: /home/runner/work/incubator-kie-kogito-docs/incubator-kie-kogito-docs/serverlessworkflow/modules/ROOT/pages/cloud/operator/enabling-jobs-service.adoc:141
    source: /home/runner/work/incubator-kie-kogito-docs/incubator-kie-kogito-docs (branch: HEAD <worktree> | start path: serverlessworkflow)


server: Only allow current user to create entries

This allows for extra logic at the resource level while the policy is still
correct in that "any" logged in user can create a library entry.
This uses after_replace_fields from JR, and checks JR's internal function
#is_new? to determine if this is a new record (AKA create request).

@NuckChorris thoughts?

Fixed here: https://github.com/hummingbird-me/hummingbird/commit/e4ac59049a2dcb7d9d92575146be2108840ffb2a


[Fetch Migration] Improvements to subprocess handling

Description
The migration_monitor.py module now includes a separate function (monitor_local) to monitor a Data Prepper subprocess.
Previously, the migration monitor only interacted with the Data Prepper process via API calls. This has the limitation that the monitor cannot differentiate between the subprocess intermittently not responding (or not yet started) versus a non-running subprocess. Thus, the API calls simply retry indefinitely if no response is received - which resulted in a indefinite polling loop if the subprocess had crashed or ended (say due to a bad configuration, OOM error, etc.)
The new function adds logic to poll the running subprocess and its return code (via Python's Popen object) - this is in addition to the monitoring via API calls. Unit tests for these use-cases have been added/updated.
This PR also includes an additional commit which adds a fix to index_operations.py to filter out system indices (so they are excluded from metadata migration). Short-circuit logic for empty source clusters has been added, along with related unit tests.
Testing
$ python -m coverage report --omit "*/tests/*"
Name                           Stmts   Miss  Cover
--------------------------------------------------
endpoint_info.py                   6      0   100%
fetch_orchestrator.py             25      0   100%
index_operations.py               37      0   100%
metadata_migration.py            125      1    99%
metadata_migration_params.py       7      0   100%
metadata_migration_result.py       5      0   100%
migration_monitor.py              96      3    97%
migration_monitor_params.py        5      0   100%
utils.py                          13      0   100%
--------------------------------------------------
TOTAL                            319      4    99%

Check List

[x] New functionality includes testing

[x] All tests pass, including unit test, integration test and doctest

[x] New functionality has been documented
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

CodeCov failures are looking at Java code, which this PR doesn't touch. I'll go ahead and merge this.


Add cleanup decorator

Usage is like:
@cleanup(60) def mute(update: Update, context: CallbackContext):

rel #76

@getjump nice one! thanks for your contribution 🔥


[#181] Change Public and SecretKey to Verification and SigningKey

This renames PublicKey to VerificationKey and SecretKey to SigningKey. It also updates phrases like public key, variable names with Pk or PK to VK, and toPublic to toVerification.
I probably should have split this up into multiple PRs, but there isn't any meat to it at all, so hopefully not too bad to review!

bors r+

bors r+

bors r+


You can see sample for it here: https://github.com/koron/JavaFastPFOR/compare/adhoc-tests
Of course I know it is very rare and not target of this library.
But it may cause a kind of uncovenience for users.
There are some workarounds:

Write it in document.
Make a utility methods to calculate preferred length for output array.
Introduce auto extendable buffer, it would be called IntArrayOutputStream or so.

What workaround do we choose?

I repeatedly get compressed array larger than original, while compressing random integers. Tested with versions 0.1.5 and 0.1.6 for a number of codecs. For which of them the output size is identical.
I suspect I'm missing something about how to use your library ?
Here is my code
  val codecs = Array(
    new IntegratedComposition(new IntegratedBinaryPacking(),
      new IntegratedVariableByte()),
    new JustCopy(),
    new VariableByte(),
    new IntegratedVariableByte(),
    new Composition(new BinaryPacking(), new VariableByte()),
    new Composition(new NewPFD(), new VariableByte()),
    new Composition(new NewPFDS16(), new VariableByte()),
    new Composition(new OptPFDS9(), new VariableByte()),
    new Composition(new OptPFDS16(), new VariableByte()),
    new Composition(new FastPFOR128(), new VariableByte()),
    new Composition(new FastPFOR(), new VariableByte()),
    new Simple9(),
    new Simple16(),
    new Composition(new XorBinaryPacking(), new VariableByte()),
    new Composition(new DeltaZigzagBinaryPacking(),
      new DeltaZigzagVariableByte()))

  def test2() = {
    val N = 100
    val r = new Random(System.nanoTime())
    val keys = (1 to N).map(i => {
      r.nextInt(Int.MaxValue)})
      .distinct.toArray
    println(keys.toList)
    println(s"size before compression ${keys.size}")
    codecs.map(codec => {
      print(s"${codec.toString} , ")
      val iic = new IntegratedIntCompressor()
      var start = System.nanoTime()
      val compressed = iic.compress(keys) // compressed array
      val encodeTime = System.nanoTime() - start
      print(s" $encodeTime , ")
      print(s" ${compressed.size} , ")
      start = System.nanoTime()
      val recov = iic.uncompress(compressed)
      val decodeTime = System.nanoTime() - start
      println(s" $decodeTime , ")
      //println(compressed.toList)
    })
  }

@kk00ss
Please consult our README on what the library does:
https://github.com/lemire/JavaFastPFOR#what-does-this-do

Sorry, my bad.


Code editor for workflow code

Now that we're switching the workflow code to Groovy we could have a nice code editor (with syntax highlighting!) instead of a plain <textarea>. ACE worked well for the hiring test.

Whoops, I've filed this bug in the wrong repository! Anyway, thanks for the sandbox :).


Consider running CI on different sklearn versions

Follow up to this discussion: https://github.com/skops-dev/skops/pull/188#issuecomment-1280600073
We want to support multiple sklearn versions. Sklearn is an integral part of this library so we should ensure that skops works well with all supported versions. However, our CI only tests one version at the moment and it's unlikely that developers would test multiple versions locally. Therefore, it's easy to overlook errors caused by specific versions.
To help with this, CI should run on different sklearn versions. To not explode our test matrix, we may tie the sklearn version to the Python version, just as an example:

Python 3.7 + sklearn 0.24
Python 3.8 + sklearn 1.0
Python 3.9 + sklearn 1.1
Python 3.10 + sklearn main?

that sounds reasonable to me.


Fix #1345 - Improve developer experience when starting from webpack

A few fixes:

Refactored some of the launch logic out to a bootstrap script, with a loading animation
Ping the webpack-dev-server periodically, and once we have the script, ensure that the UI is starting up

In addition, this adds an alternative mechanism for debugging:

npm run build-debug
npm run launch

This doesn't give the hot-reload functionality, so you'd have to run npm run build-debug after each change, but it's nice to have an alternative in case there are webpack issues..

Should fix #1345 and #1626


my have follow error? what?

common.js?cb46*:34Uncaught TypeError: Cannot use 'in' operator to search for 'SIMD' in undefined
at Object. (common.js?cb46*:34)
at webpack_require (bootstrap 588009c…?a0f0***:19)
at Object. (gl-matrix.js?eab8*:29)
at webpack_require (bootstrap 588009c…?a0f0***:19)
at Object. (painter.js?1c3e*:4)
at webpack_require (bootstrap 588009c…?a0f0***:19)
at Object. (map.js?ba0e*:12)
at webpack_require (bootstrap 588009c…?a0f0***:19)
at Object. (mapbox-gl.js?5b58*:8)
at webpack_require (bootstrap 588009c…?a0f0***:19)
i see this is Object {}

You might want to include some general information such as: What browser are you using? Any libraries?

chrome browser  https://github.com/airbnb/caravel
it linux ubuntu is ok
but windows fail
Windows_NT 10.0.10586
node v6.5.0
npm  v3.10.3
package file ::
:: ==============================================================
{
"name": "caravel",
"version": "0.1.0",
"description": "Caravel is a data exploration platform designed to be visual, intuitive, and interactive.",
"directories": {
"doc": "docs",
"test": "spec"
},
"scripts": {
"test": "npm run lint && mocha --compilers js:babel-core/register --required spec/helpers/browser.js spec/**/_spec.",
"dev": "NODE_ENV=dev webpack -d --watch --colors",
"prod": "NODE_ENV=production webpack -p --colors --progress",
"lint": "npm run --silent lint:js",
"lint:js": "eslint --ignore-path=.eslintignore --ext .js,.jsx ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/airbnb/caravel.git"
},
"keywords": [
"big",
"data",
"exploratory",
"analysis",
"react",
"d3",
"airbnb",
"nerds",
"database",
"flask"
],
"author": "Airbnb",
"bugs": {
"url": "https://github.com/airbnb/caravel/issues"
},
"homepage": "https://github.com/airbnb/caravel#readme",
"dependencies": {
"autobind-decorator": "^1.3.3",
"babel-plugin-flow-comments": "^6.3.19",
"bootstrap": "^3.3.6",
"bootstrap-datepicker": "^1.6.0",
"brace": "^0.7.0",
"brfs": "^1.4.3",
"cal-heatmap": "3.5.4",
"classnames": "^2.2.5",
"d3": "^3.5.14",
"d3-cloud": "^1.2.1",
"d3-sankey": "^0.2.1",
"d3-tip": "^0.6.7",
"datamaps": "^0.4.4",
"datatables-bootstrap3-plugin": "^0.4.0",
"datatables.net-bs": "^1.10.11",
"eslint-plugin-jsx-a11y": "^2.2.1",
"font-awesome": "^4.6.3",
"gridster": "^0.5.6",
"immutability-helper": "^2.0.0",
"jquery": "^2.2.1",
"jquery-ui": "1.10.5",
"json-loader": "^0.5.4",
"mapbox-gl": "^0.20.0",
"mustache": "^2.2.1",
"nvd3": "1.8.4",
"react": "^15.3.1",
"react-bootstrap": "^0.28.3",
"react-bootstrap-datetimepicker": "0.0.22",
"react-bootstrap-table": "^2.3.7",
"react-dom": "^0.14.8",
"react-grid-layout": "^0.12.3",
"react-map-gl": "^1.0.0-beta-10",
"react-resizable": "^1.3.3",
"react-select": "^1.0.0-beta14",
"select2": "3.5",
"select2-bootstrap-css": "^1.4.6",
"supercluster": "https://github.com/georgeke/supercluster/tarball/ac3492737e7ce98e07af679623aad452373bbc40",
"topojson": "^1.6.22",
"transform-loader": "^0.2.3",
"viewport-mercator-project": "^2.1.0",
"webworkify-webpack": "^1.0.6"
},
"devDependencies": {
"babel": "^6.3.26",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.5",
"babel-preset-airbnb": "^1.1.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-loose": "^8.0.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-1": "^6.13.0",
"chai": "^3.5.0",
"css-loader": "^0.23.1",
"enzyme": "^2.0.0",
"eslint": "^2.13.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.11.1",
"eslint-plugin-jsx-a11y": "^2.0.1",
"eslint-plugin-react": "^5.2.2",
"exports-loader": "^0.6.3",
"file-loader": "^0.8.5",
"imports-loader": "^0.6.5",
"jsdom": "^8.0.1",
"json-loader": "^0.5.4",
"less": "^2.6.1",
"less-loader": "^2.2.2",
"mapbox-gl": "^0.20.1",
"mocha": "^2.4.5",
"react-addons-test-utils": "^0.14.8",
"react-dom": "^0.14.8",
"style-loader": "^0.13.0",
"transform-loader": "^0.2.3",
"url-loader": "^0.5.7",
"webpack": "^1.13.1",
"webworkify-webpack": "1.0.6"
}
}
webpackage :: --------------------------------------------------------------------------------------------
const webpack = require('webpack');
const path = require('path');
// input dir
const APP_DIR = path.resolve(__dirname, './');
// output dir
const BUILD_DIR = path.resolve(__dirname, './javascripts/dist');
const config = {
entry: {
'css-theme': APP_DIR + '/javascripts/css-theme.js',
dashboard: APP_DIR + '/javascripts/dashboard/Dashboard.jsx',
dashboard_edit: APP_DIR + '/javascripts/dashboard/Dashboard_edit.jsx',
explore: APP_DIR + '/javascripts/explore/explore.jsx',
welcome: APP_DIR + '/javascripts/welcome.js',
sql: APP_DIR + '/javascripts/sql.js',
standalone: APP_DIR + '/javascripts/standalone.js',
common: APP_DIR + '/javascripts/common.js',
},
output: {
path: BUILD_DIR,
filename: '[name].entry.js',
},
resolve: {
extensions: [
'',
'.js',
'.jsx',
],
alias: { webworkify: 'webworkify-webpack' },
},
module: {
loaders: [
{
test: /.jsx?$/,
exclude: APP_DIR + '/node_modules',
loader: 'babel',
query: {
presets: [
'airbnb',
'es2015',
'react',
],
},
},
/* for react-map-gl overlays /
{
test: /.react.js$/,
include: APP_DIR + '/node_modules/react-map-gl/src/overlays',
loader: 'babel',
},
/ for require('.css') /
{
test: /.css$/,
include: APP_DIR,
loader: 'style-loader!css-loader',
},
/ for css linking images /
{
test: /.png$/,
loader: 'url-loader?limit=100000',
},
{
test: /.jpg$/,
loader: 'file-loader',
},
{
test: /.gif$/,
loader: 'file-loader',
},
/ for font-awesome /
{
test: /.woff(2)?(?v=[0-9].[0-9].[0-9])?$/,
loader: 'url-loader?limit=10000&minetype=application/font-woff',
},
{
test: /.(ttf|eot|svg)(?v=[0-9].[0-9].[0-9])?$/,
loader: 'file-loader',
},
/ for require('.less') /
{
test: /.less$/,
include: APP_DIR,
loader: 'style!css!less',
},
/ for mapbox */
{
test: /.json$/,
loader: 'json-loader',
},
{
test: /.js$/,
include: APP_DIR + '/node_modules/mapbox-gl/js/render/painter/use_program.js',
loader: 'transform/cacheable?brfs',
},
{
test: /mapbox-gl.+.js$/,
loader: 'transform/cacheable?brfs'
}
],
postLoaders: [{
include: /node_modules/mapbox-gl/,
loader: 'transform',
query: 'brfs',
}],
},
externals: {
cheerio: 'window',
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
},
}),
],
};
if (process.env.NODE_ENV === 'production') {
config.plugins.push(new webpack.optimize.UglifyJsPlugin());
}
module.exports = config;
:: file end --------------------------------------------------------------------------------------------

what is SIMD ??

SIMD stands for Single Instruction/Multiple Data.
 For example, adding a few numbers at the same time and getting a result for each addition.
Would you mind posting the relevant lines from the stack trace?

common.js?cb46:34

^This one

SIMD is a intel CPU instruction. It allows to pass two 128 bits operants worth of data to participate in one virtual ADD, SUB, MUL, DIV (and more?) CPU instruction while the return value is 128 bits too as well. That means bringing sets of 16 x 8bits or 8 x 16bits  or 4 x 32 bits or 2 x 64bits numeric data local to CPU registers, execute the math instruction to them all (one at a time though), and storing it all back to memory, all in one pass.
This saves on the usual bringing two operants local for each math instruction. This is excellent for bulk math operations like in 3D calc, compression, encoding tasks, etc.
Its great to have a Javascript bridge to these kind of features. Only then Javascript can ever rival desktop applications.

FWIW, I was having I think the same issue. Looks like @yanite and I are both using mapbox-gl-js with webpack. Once I added exclude: /node_modules/ to the relevant webpack loader, things started working for me.


[ISSUE #7881] Add parameter configuration explanations for jRaft controller

Which Issue(s) This PR Fixes

Fixes #7881
Brief Description

Add parameter configuration explanations for jRaft controller
How Did You Test This Change?

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 42.90%. Comparing base (a33f1d1) to head (c3b1baf).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #7882      +/-   ##
=============================================
- Coverage      42.95%   42.90%   -0.05%
+ Complexity      9917     9913       -4
=============================================
  Files           1190     1190
  Lines          86038    86042       +4
  Branches       11081    11081
=============================================
- Hits           36957    36918      -39
- Misses         44499    44555      +56
+ Partials        4582     4569      -13

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Adding top-of-file metadata?

I've been creating daily journals for a while now, but in practice, I create a summary for every week. On the one hand, that's a good opportunity to synthesize the work of the week. On the other hand, I wouldn't have to cut and paste quite so much if I just kept a weekly journal.
So I'm thinking of switching to weekly.
But if I did that, I think I'd want to have a preamble:
#+TITLE: Some title, probably generated by a format-time-string or a function
#+OPTION: some option
#+HEADER: maybe other headers

* 6 January 2020
** 09:00 stuff I did
** 12:00 more stuff I did
* 7 January 2020
** 07:30 yet more stuff
...

On a casual inspection of the code, it didn't seem like this was configurable today. It's also not entirely clear if the extra headers would introduce any problems. I don't think they would, but...
Is this something you think could be made to work?

Excellent idea!
One would have to change org-journal-new-entry to check if the file is empty, and insert the contents of a new custom variable in that case.
Would you like to try implementing it yourself?

Hmm. Actually, this can already be done with org-journal-data-format, but the name of the variable is a bit misleading.
(defun org-journal-date-format-func (time)
      "Custom function to insert journal date header,
  and some custom text on a newly created journal file."
      (concat (when (= (buffer-size) 0)
                (concat
                 (format-time-string
                  (pcase org-journal-file-type
                    (`daily "#+TITLE: Daily Journal, %A, %x")
                    (`weekly "#+TITLE: Weekly Journal No. %V, %Y")
                    (`monthly "#+TITLE: %B Journal, %Y")
                    (`yearly "#+TITLE: %Y Journal")))
                 "\n"))
              org-journal-date-prefix
              (format-time-string "%A, %x" time)))

(setq org-journal-date-format #'org-journal-date-format-func)

In your case.
(defun ndw/org-journal-monday (&optional time)
  "Return the TIME cast back to the previous Monday.
If TIME isn’t specified, the (current-time) is assumed.
If today is Monday, return today."
  (let* ((now    (if time time (current-time)))
         (dow    (string-to-number (format-time-string "%u" now)))
         (delta  (if (= dow 1)
                     0
                   (* (- dow 1) (* 24 3600)))))
    (seconds-to-time (- (time-to-seconds now) delta))))

(setq org-journal-date-format
      (lambda ()
        (concat (when (= (buffer-size) 0)
                  (let ((monday (ndw/org-journal-monday)))
                    (insert "#+TITLE: ")
                    (insert (format-time-string org-journal-date-format monday))
                    (insert "\n#+STARTUP: showeverything\n#+FILETAGS: :Journal:\n\n")))
                org-journal-date-prefix
                (format-time-string "%A, %x" time))))

@bastibe Separating the file header from the org-journal-date-format is a good idea. We had this discussion already once. In this change makes it clear what variable those what.

Thank you very much @ndw for your contribution, and @cslux for integrating it!

Hey Mariano,
can you post your org-journal setup and, also the org-journal
version you use (MELPA version...)!
Thanks!

Chris
Mariano Mollo<EMAIL_ADDRESS>writes:

Hi, I noticed that while using org-journal-date-format-func when I press j in the calendar view I get the
following error:
org-journal-read-or-display-entry: Wrong type argument: stringp, org-journal-date-format-func
and the file is not displayed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Sure!
Base config: the calendar works with this.
(use-package org-journal
      :straight t
      :ensure t
      :defer t
      :bind
      ("C-c n j" . org-journal-new-entry)
      :custom
      (org-journal-dir "~/org/")
  ;;    (org-journal-time-prefix "* ")
      (org-journal-file-format "%Y-%m-%d.org")
      (org-journal-enable-agenda-integration t)

Extension:
(defun org-journal-date-format-func (time)
      "Custom function to insert journal date header,
  and some custom text on a newly created journal file."
      (concat (when (= (buffer-size) 0)
                (concat
                 (format-time-string
                  (pcase org-journal-file-type
                    (`daily "#+TITLE: %d %B %Y")
                    (`weekly "#+TITLE: Weekly Journal No. %V, %Y")
                    (`monthly "#+TITLE: %B Journal, %Y")
                    (`yearly "#+TITLE: %Y Journal")))
                 "\n"))
              org-journal-date-prefix
              (format-time-string "%A, %x" time)))

(setq org-journal-date-format #'org-journal-date-format-func)

As for the version, my git folder is in sync with this repo with straight. Is this good practice or should I move org-journal to melpa?

Thanks, that helped me to find the issue quickly. Fixed via 271b99f.

As for the version, my git folder is in sync with this repo with straight. Is this good practice or should I move org-journal to melpa?

Depends on the project IMO. But for org-journal it makes sense :-)

Great work, thank you a lot!


Allow 0 or more spaces in parsing of wse accept content-type header

Note: this is a forward port

We need generic parameter parsing of http header values.
For now, I am just merging this one.


Increase OSL samples in reference renders

This changelist increases the number of OSL samples in reference-quality renders, improving the visual parity between OSL and other languages in MaterialX render tests.
Additionally, it pares down the list of document paths for MaterialX render tests, reducing the resulting PDF document to a size that can be directly shared on Slack.

Attaching a reference render comparison between GLSL and OSL, using the latest codebase in this changelist:
MaterialXRenderTests_12_30_2024_GitHub.pdf


Use replaceAll for sanitization

I'm assuming replacing only the first instance of matching strings wasn't intended, do let me know if I'm missing something :)

Changed base branch in order to make a few changes to this suggestion in a separate feature branch.
We can not use string.replaceAll because we are targeting ES6 (plus some polyfills) and replaceAll was added in the ES2021 specification. Therefore we need to use global regexp instead.
Thank you for your contribution @sigurdrj !


Use gravatar profiles for first version of profile

If there is one.

Or libravatar ;)

Closing this as duplicate of #255


Float array elements are sometimes converted to integers

[30.0, 27.2, -2.0].mongoize returns [30, 27.2, -2.0]
and
[30.0, 27.2, -2.0].mongoize.map{|e| e.class} returns [Fixnum, Float, Fixnum]

I found this while storing geo coordinates using a Mongoid model. Some of the coordinates are now Integers while others are Floats.
Apparently it's done deliberately (see here and here), but it makes no sense to convert floats to integers, just because the fractional part is zero.

I think this was added to fix another issue, see https://github.com/mongoid/origin/commit/701a8f777c6e9c6d8ca14657e07a6128407ef828
So when you have "2." it would convert to 2... but 2.0 should be a Float IMO.
@MartinNowak want try to fix this and send a PR?
thanks

Sure will do.


Add field 'website:menu'

This MR adds the 'website:menu' field and adds it into the sustenance amenity moreFields section.

I'm now quite convinced it is a good idea to map this information in OSM. To me it seems like an extremely volatile information: many restaurants change their menu in a seasonal rhythm. So, linking to a pdf or photograph of a menu is of little use for OSM. I think linking to the website of the restaurant is generally sufficient and a more robust way for finding the respective menu.
Also, I've noticed that more than two thirds of all features with the website:menu tag have been contributed by a single user using a (proprietary?) tool called website-menu (//cc @wielandb – maybe you can give us some insight about that?). Since only a small number of features with this tag were mapped organically, and the fact that usage is extremely low relative to the number of potential features it affect, I'm tending towards not including the field in iD for now.
I think this would be best discussed with the broader OSM community before continuing here.

My idea for adding this field to iD is:
A lot of restaurants are using online tools to provide a menu on hosts separate from the main website. Usually they print QR codes sticker and stick them to the table, and the QR doesn't change often as they would need to reprint them.
This field could be used to link to those QR code URLs or for restaurant that are on delivery apps (like JustEat, Deliveroo, Glovoo, UberEats etc..) link to their public pages on there.
Adding the option on the most used editor would incentivize users to tag that info, making it more widespread and used.

I'm not quite convinced it is a good idea to map this information in OSM. To me it seems like an extremely volatile information: many restaurants change their menu in a seasonal rhythm. So, linking to a pdf or photograph of a menu is of little use for OSM. I think linking to the website of the restaurant is generally sufficient and a more robust way for finding the respective menu.

It depends. Some restaurants pay the website to host their menu (and perhaps an online ordering option). Others “claim” a listing on a crowdsourced menu website. In both cases, the menu would be trustworthy enough to tag in OSM. I’ve encountered many restaurants that actively maintain their hosted menu and Facebook page but has allowed their main domain to lapse and get snapped up by a squatter. Apparently there have been debates in Discord about whether website is the right key for a hosted menu or Facebook page in that situation.
On the other hand, many menu aggregator sites allow diners to post menus with absolutely no fact-checking or followup with the restaurant owner. Maybe this is what you had in mind. Indeed, the menu could be quite misleading in this case, but website already suffers from this problem.
On the bright side, at least it isn’t being tagged as contact:menu, diluting the meaning of “contact”. 🤦

This field could be used to link to those QR code URLs or for restaurant that are on delivery apps (like JustEat, Deliveroo, Glovoo, UberEats etc..) link to their public pages on there.

By the way, delivery:partner is sometimes used to indicate these applications more directly. That key is also documented but not as common as website:menu. To be sure, not all the menu sites belong to delivery apps – for example, many restaurants depend on Yelp, Zmenu, or more niche sites to host their menus.

Hey :)
I will gladly try to give some insight into my tagging of website:menu.
It all started as a community action that the DACH community starts every month regarding different topics (See OSM Wiki: Schwerpunkt der Woche ) with the goal of concentrating our efforts in one specific aspect of mapping. In March 2022, the theme of the community action was "Add website:menu". I am always glad to participate in the monthly community action, but usually, it requires on-the-ground survey, so my efforts stay limited in scope and only through the mass of the community are significant results visible.
But I realized that adding website:menu for restaurants that have a website-Tag is a rare instance of an armchair-mapping friendly task. So I quickly spun together an app on a no-code platform (It got the creative name website-menu)
The basic workflow is that the app will present me with a website in a WebView. I then try to find and navigate to the menu. When I have navigated there, I press a button in the app labled "This is the menu", which then triggers an update where the current URL of the WebView is written into the website:menu Tag of the OSM object.
So, while the app makes it extremely fast and easy to add website:menu-Tags, every datapoint is still hand-researched and verified by me. And I also want to add: I do not "search" for the menus on third-party websites or via google, I only tag them if the restaurants own website links to them.
Because, as I said, the app was made with a no-code platform, there isn't really any source code I could make open source, so yes, it is technically a proprietary app. I could make the apk free to download, but as I hacked it together to get to work on the community action asap, the UI and UX are complete trash. I am playing with the idea to make a new version (for the web?) which then would be open source.
But now for my opinions on website:menu beeing included in the ID tagging scheme.

I would be in favor of website:menu beeing added to the translated objects (a.k.a. so that the tag gets a human-readable translation)
I would be against website:menu beeing a "recommended field" for restaurants, as many restaurants will not have a menu online

On the topic if the tag is organically mapped or not, I would say that yes, a large chunk of current mapping of website:menu is through me, but I only started tagging it because I saw the tag as already established in the community because I was able to vote for it.
On the topic for what this information is useful, I primarily see it as a convienience information, so that (like google does for example) there can be a Button "menu" additionally to the button "website" in a POI info box. I personally think it's really convienient.
Of course, I have seen many many restaurant websites over the past year and can give some insight on how the "restaurant-website" landscape looks. :D
For example, it's indeed true that many restaurants websites get snatched up by domain parking services, so much that I added a "The website is offline" button to my app so that if I press it, the website-Tag is removed from the restaurant. And there is a small but significant amount of websites that pay other hosting services to host their menu, but in the overwhelming majority of cases the menu is just a PDF on the restaurant's website.
In conlusion, I can only say that I would be very sad if my explicit attempt to make the website:menu tag more known and more established in the osm database and community would now become an argument against accepting it.

Thanks for the additional background @wielandb, @tognee and @1ec5. I do see now that there actually is a real practical use for this information and tag.
Having the field included as an optional "moreFields" field (as proposed in this PR) seems reasonable to me. It also has the benefit that mappers are more likely to update this information in case it was already mapped, but the owner/name (and therefor also the menu) of the restaurant changes.


Docs

Now that more people are using it I tried to find a nice solution for documenting the voxblox API.
Doxygen seems to be the only automatic documentation tool, that can parse voxblox. I had previously tried some newer options, but they couldn't handle the templates or eigen. It can be setup and used fairly simply with rosdoc_lite http://wiki.ros.org/rosdoc_lite, however this produces ugly websites with no search function and very limited options to alter things. An example of such a site is http://docs.ros.org/melodic/api/octomap/html/classoctomap_1_1KeyRay.html
In the end I went with Exhale. Its a python tool that automates:
doxygen xml -> breathe -> sphinx -> readthedocs
Which lets us customize things and also combine the API with the wiki pages. I have a test version hosted on readthedocs, but we could always change this to a github page or something. This setup has the nice feature that it will automatically update the website on changes.
Temporary homepage: https://voxblox.readthedocs.io/en/latest/#
Example API page: https://voxblox.readthedocs.io/en/latest/api/classvoxblox_1_1EsdfMap.html
Not as big a commit as it looks, just bloats up as there was some find and replace + doxygen file + moving in the wiki pages and changing. Mainly just these files are new https://github.com/ethz-asl/voxblox/tree/docs/docs

Also @mfehr I had a go at running doxygen on Maplab and I am not sure what the other guy did wrong because it just worked for me.


Improve visibility rect/AABB generation usability in Particles (3.x)

3.x version of https://github.com/godotengine/godot/pull/50181.

Don't display the time dialog if the automatically calculated generation time is short enough.
Clarify the purpose of waiting in the progress dialog.

@akien-mga I think this could be merged for 3.6, now that the master PR has been merged for a bit.

It might use a rebase, last one was 14 months ago.

Thanks!


Get release into develop

Merges the updated package.json and CHANGELOG made by semantic-release into develop.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


data.labels=false hasn't any effect for donut type

My Data Object:
data: {
  labels: false,
  type: "donut",
  columns: [["free", 100 - this.cpuUsage], ["usage", this.cpuUsage]],
  colors: {
    free: "#80808040",
    usage: this.usageColor
  }
}

expected:
Labels (in my case xx%) should be hidden.
current behaviour:
Labels are visible

C3 version:0.6.7
D3 version:
Browser: Chrome
OS: Archlinux

@artemanufrij I don't believe the turning on/off of labels on the donut itself are controlled by the data config area.  Have you tried this:
{   data: {....},   donut: {     label: {       show: false     }   } }

@whellner ok... it works as expected.
but I also tested on gauge... and it doesn't
        data: {
          type: "gauge",
          columns: [["usage", 0]],
          colors: {
            usage: this.usageColor
          }
        },
        color: {
          pattern: ["#3daee9", "#fdbc4b", "#c0392b"],
          threshold: {
            values: [40, 70, 100]
          }
        },
        tooltip: {
          show: false
        },
        legend: {
          hide: true
        },
        gauge: {
          label: {
            show: false
          }
        }

The option is working as expected for Gauge, aka: hidden min/max labels.
It is not supposed to hide the value (in '%') of the gauge.
I don't believe this is such an option, feel free to open a feature request for this if necessary.


Code Style Update for agtype_util.c

Updated some of the lines from agtype_util.c so that it follows Apache AGE's coding style. When the bodies of if/else statement contain a single line, the braces are omitted. For single line comments that used "/.../", the "//..." was used instead.

@MatheusFarias03 Where did you see this? Our coding style for if/else is to always use braces regardless. Additionally, we can use either // or /**/.

On AGE's website, the Code Convention page.

If all the bodies of if/else statement contain a single line, omit braces.

For multi-line comments, use C style multi-line comments. For single-line comments, use C++ style single-line comments. See below.

@MatheusFarias03 It does need to be changed. But, let me have @dehowef verify this is the correct location.

@MatheusFarias03 , yeah actually we do use braces regardless of how many lines an if/else statement is. This was something we decided awhile back. If you could change that page that would be great. I'm not sure why the page states this o_O
Thanks for bringing this to our attention

I'm right on it! The .html file is a bit confusing though, feels like everything is stuck together and it's pretty hard to see which thing is which. Gonna update that also.

@MatheusFarias03 If you can also modify the coding standards to state that all braces are on their own line, no exceptions. Items inside braces are indented 4 spaces, no exceptions. The switch  command example in the documentation is wrong.
Good:
struct xyz
{
    int x;
    int y;
    int z;
}

if (blah == blahBlah)
{
    some_function_call(var);
}

void some_function(int var)
{
    some_main_function(var);
}

Bad:
struct xyz {
int x;
int y;
int z;
}

if (blah == blahBlah) {
some_function_call(var);
}

void some_function(int var) {
some_main_function(var);
}

Here it is: the PR


Parse @petname/slashlinks in Subtext

Introduces parsing for @petname/slashlinks in Subtext.
Fixes #385
Followup to #419.
Note that parsed slashlinks are simply identified in markup, not validated for correctness. To validate, parse through Slashlink.

@bfollington while in there adding tests, I realized I could leverage Swift's new Regex library to significantly simplify the Subtext parser.
https://github.com/subconsciousnetwork/subconscious/pull/422/commits/e7f95dd082d5de12e5010088693c4b76aeefc334 introduces Tape.consumeMatch(_ regex:) which allows us to radically simplify the parser by taking advantage of Swift's (new) built in regular expression library to lookahead and consume if matching.
Note that parser is still single-pass. We're just using regex to eliminate several arms of the recursive descent parser, which can be expressed as regex instead.

Added additional Subtext tests you requested.

All tests passing.

Playtested on device


Add netkan file for the new addon TrackingStationAmbientlight

Performed the tests according to the wiki-manual, and they worked.

Closes #2245

Looks good. Merging with my thanks.


Can I take only the animated SVG?

In some projects only the SVG is neccessary like make animated buttons. There are this possibility?

@Leomaker I'm not sure I understand correctly.
Do you mean animate the svg without javascript?

Like this guy did for Flash, but for After Effects: https://github.com/TomByrne/Flash2Svg

@Leomaker that library relies on SMIL to animate svg.
Unfortunately, SMIL is being deprecated on browsers, so I am not maitaining the SMIL export anymore.


[BUG]deepseek_v2 isn't supported yet

Describe the bug
cannot quantize deepseek_v2
Hardware details
A100
Software version
auto-gptq                 0.8.0.dev0+cu121
raise TypeError(f"{config.model_type} isn't supported yet.")
TypeError: deepseek_v2 isn't supported yet.

Resolved in: https://github.com/modelcloud/GPTQModel


Add screen.Redraw binding for Lua's plugins

This adds a binding for screen.Redraw function in Lua as discussed in the linked issue.
This is required for using asynchronous functions in Lua that have visible impact on the UI.
This fixes #2923
I've tested it in my filemanager's plugin branch and it's working perfectly.

Since one new interface has been exported the help should be updated accordingly:
https://github.com/zyedidia/micro/blob/master/runtime/help/plugins.md#accessing-micro-functions
The Tabs, Lock and potential other missing interface can be added too in this moment. ;)

Ok, did my best from my limited understanding of the other field. Let me know if it's ok for you.

Any update on this ?

IMHO, I would hold on with this and instead try to revisit lua timers as per our discussion in #2945.

#3023 has been merged, so I think this PR is no longer needed.


ISPN-5742 & ISPN-3926 Global State Persistence configuration

First step for graceful shutdown / restart
https://issues.jboss.org/browse/ISPN-5742

This adds a new global configuration section called  which allows specifying a path to where state will be persisted
Bumps the core schema to 8.1

https://issues.jboss.org/browse/ISPN-3926

Adds a PERSISTENT flag to the Internal Cache Registry
Makes the protobuf metadata cache and scripting cache persistent

This should also fix the breakage caused by the bump to 8.1

Integrated, thanks Tristan!


add circuits_i2c library

I wanna add circuits_i2c library to pre-built firmware.
It would be helpful to check the connection of Grove Base HAT by Circuits.I2C.detect_devices/0.
iex(1)> Circuits.I2C.detect_devices
Devices on I2C bus "i2c-1":
 * 4  (0x4)

1 devices detected on 1 I2C buses

@pojiro could you confirm and merge this PR if you are OK.
Of course I understand using Circuits.I2C will be out of scope in your hands-on course.

@takasehideki OK!


add including stamps

this would make it easy to deal with special cases like package.json with potentially infinite features

depends on https://github.com/nicosommi/gene-js/issues/8

35f4345bb32d6cf43a0d8bef47914822122265f2