Send a Tx with createTxMsgConvertERC20 through Keplr

Hello, i tried to send a conversion Tx:
  await window.keplr.enable("evmos_9001-2");
  const addr_keplr = await window.keplr.getKey("evmos_9001-2");
  const pub_key = Buffer.from(addr_keplr.pubKey).toString('base64')

  const fee = {
    denom:"aevmos",
    amount:"250000000000000000",
    gas: "2500000"
  }

  const chain = {
    chainId: 9000,
    cosmosChainId: "evmos_9001-2"
  }

  const sender = {
    accountAddress: this.address_keplr,
    sequence: 0,
    accountNumber: 0,
    pubkey: pub_key
  }

  const msgConvert = {
    contract_address: "0x205CF44075E77A3543abC690437F3b2819bc450a",
    amount: "10",
    receiverEvmosFormatted: this.address_keplr,
    senderHexFormatted: this.address_metamask
  }

  let msg = createTxMsgConvertERC20(chain,sender,fee,"",msgConvert);

  const signed_tx = await window.keplr.signDirect(
    "evmos_9001-2",
    this.address_keplr,
    {
      bodyBytes: msg.signDirect.body.serialize(),
      authInfoBytes: msg.signDirect.authInfo.serialize(),
      chainId: "evmos_9001-2",
      accountNumber: 0
    },
  );

But in the data section of Keplr, message content is protobuffed, not in plaintext (and the Tx is not sent):
 {
  "txBody": {
    "messages": [
      {
        "type_url": "/evmos.erc20.v1.MsgConvertERC20",
        "value": "CioweDIwNUNGNDQwNzVFNzdBMzU0M2FiQzY5MDQzN0YzYjI4MTliYzQ1MGESAjEwGixldm1vczF......"
      }
    ],
    "memo": "",
    "timeoutHeight": "0",
    "extensionOptions": [],
    "nonCriticalExtensionOptions": []
  },
  "authInfo": {
    "signerInfos": [
      {
        "publicKey": {
          "typeUrl": "/ethermint.crypto.v1.ethsecp256k1.PubKey",
          "value": "<BASE64>"
        },
        "modeInfo": {
          "single": {
            "mode": "SIGN_MODE_DIRECT"
          }
        },
        "sequence": "0"
      }
    ],
    "fee": {
      "amount": [
        {
          "denom": "aevmos",
          "amount": "62500000000000000"
        }
      ],
      "gasLimit": "2500000",
      "payer": "",
      "granter": ""
    }
  },
  "chainId": "evmos_9001-2",
  "accountNumber": "0"
}

You need to manually broadcast the transaction, in the readme file you can find the example on how to broadcast it when using keplr.
// Follow the previous step to generate the msg object
import { createTxRaw } from '@evmos/proto'
import {
  generateEndpointBroadcast,
  generatePostBodyBroadcast,
} from '@evmos/provider'

let sign = await window?.keplr?.signDirect(
  chain.cosmosChainId,
  sender.accountAddress,
  {
    bodyBytes: msg.signDirect.body.serializeBinary(),
    authInfoBytes: msg.signDirect.authInfo.serializeBinary(),
    chainId: chain.cosmosChainId,
    accountNumber: new Long(sender.accountNumber),
  },
  // @ts-expect-error the types are not updated on Keplr side
  { isEthereum: true },
)

if (sign !== undefined) {
  let rawTx = createTxRaw(sign.signed.bodyBytes, sign.signed.authInfoBytes, [
    new Uint8Array(Buffer.from(sign.signature.signature, 'base64')),
  ])

  // Broadcast it
  const postOptions = {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: generatePostBodyBroadcast(rawTx),
  }

  let broadcastPost = await fetch(
    `http://localhost:1317${generateEndpointBroadcast()}`,
    postOptions,
  )
  let response = await broadcastPost.json()
}

For the enconding, I'm not 100% sure but I think that it requires some changes on the keplr code to be able to parse it and displayed it in a human readable format.

Ok thanks for your answer, i can send my Tx successfully but the keplr message is unparsed with "unknow" message. I will try to fix that later. Thanks again.


Fix/theme 2

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Might be useful

https://github.com/quantifiedcode/python-anti-patterns
https://github.com/getify/You-Dont-Know-JS
https://www.praetorian.com/challenges/
http://aosabook.org/en/index.html
http://golang-challenge.org/

Done


deployment templates cleanup

Issue: #PutYourIssueNumberHere

[ ] Tick here to confirm that you have run RunCodeFormatter.ps1

Description:
Remove redundant templates from deployment folder and update documentation from leaderboard and playermanagement to reflect this

Hi @navalev, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Nava Vaisman Levy). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Macro interface

The IO maps used for macro (and workflow) definitions have been an ongoing pain point. Combining #85 and a conversation with @JNmpi, macro definitions now have an alternative syntax that looks and feels much more like the function node definitions.
Old way (still works!):
from pyiron_workflow import Workflow

@macro_node()
def WithIOMaps(macro):
    macro.list_in = macro.create.standard.UserInput()
    macro.list_in.inputs.user_input.type_hint = list
    macro.forked = macro.create.standard.UserInput(1)
    macro.forked.inputs.user_input.type_hint = int
    macro.n_plus_2 = macro.forked + 2
    macro.sliced_list = macro.list_in[macro.forked:macro.n_plus_2]
    macro.double_fork = 2 * macro.forked
    macro.inputs_map = {
        "list_in__user_input": "lin",
        macro.forked.inputs.user_input.scoped_label: "n",
        "n_plus_2__other": None,
        "list_in__user_input_Slice_forked__user_input_n_plus_2__add_None__step": None,
        macro.double_fork.inputs.other.scoped_label: None,
    }
    macro.outputs_map = {
        macro.sliced_list.outputs.getitem.scoped_label: "lout",
        macro.n_plus_2.outputs.add.scoped_label: "n_plus_2",
        "double_fork__rmul": None
    }

with_maps = WithIOMaps(lin=[1,2,3,4,5,6], n=2)
with_maps()
>>> {'n_plus_2': 4, 'lout': [3, 4]}

Equivalent thing the new way:
from pyiron_workflow import Workflow

@macro_node("lout", "n_plus_2")
def LikeAFunction(macro, lin: list,  n: int = 1):
    macro.plus_two = n + 2
    macro.sliced_list = lin[n:macro.plus_two]
    macro.double_fork = 2 * n
    # ^ This is vestigial, just to show we don't need to blacklist it in a whitelist-paradigm
    return macro.sliced_list, macro.plus_two.channel

like_functions = LikeAFunction(lin=[1,2,3,4,5,6], n=2)
like_functions()
>>> {'n_plus_2': 4, 'lout': [3, 4]}

Under the hood:

For input, the signature is being parsed and new UserInput nodes are being added to the macro before invoking the provided graph, taking type hints and default values with it
For output, returned values are being paired up with output labels but otherwise no big change

Features:

The old default is still there -- don't specify anything and you just get all the unconnected IO
You can still specify inputs/outputs_map values in the constructor function and this always takes precedence
Input can be made in a whitelist-way using the macro function signature, turning off all other input on the macro-level
Output can be made in a whitelist-way using output labels and return values, turning off all other (un-mapped) output on the macro-level
Input and output can done like this independently, or together

Note that none of this impacts Workflow, nor -- in the current paradigm -- can it. Workflows dynamically re-generate their IO every time you access it based on (a) any inputs/outputs_map the user has specified, and (b) unconnected IO in a {node.label}__{channel.label} format. Because the workflows are so flexible and dynamic, they don't have the same creator process we leverage here. IMO this is fine, the point of macros vs workflows is and always was beauty vs flexibility.
It's critical to keep the map capability around because it allows users to modify what their macro is exposing even after they've instantiated it.
TODO:

[ ] update docstrings
[ ] update notebooks
[ ] update readme

Closes #85

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

70 of 70 (100.0%)  changed or added relevant lines in 1 file are covered.
8 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.3%) to 90.193%

Files with Coverage Reduction
New Missed Lines
%

macro.py
8
92.86%

Totals

Change from base Build<PHONE_NUMBER>:
0.3%

Covered Lines:
4525

Relevant Lines:
5017

💛  - Coveralls


Resiliency-unit-test

Description
Unit tests for Resiliency
GitHub Issues
List the GitHub issues impacted by this PR:

GitHub Issue #

https://github.com/dell/csm/issues/739

Checklist:

[X] I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
[X] I have verified that new and existing unit tests pass locally with my changes
[X] I have not allowed coverage numbers to degenerate
[X] I have maintained at least 90% code coverage
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] I have added tests that prove my fix is effective or that my feature works
[X] I have maintained backward compatibility

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
To run controller test I ran: make controller-unit-test
To run resiliency test I ran: go clean -cache && go test -v -coverprofile c.out ./... -run ^TestResiliency
Coverage for resiliency_test.go : 95.2 %

Coverage for csm_controller_test.go : 88.4 %

@sakshi-garg1 Can you please change the Copyright © year for csm_controller_test.go file i.e. from 2022 to 2023?


Investigate intermittent Travis CI failures for safari 7 on OS X 10.9

Failing build: https://travis-ci.org/snowplow/snowplow-javascript-tracker/builds/112592093
Every so often this test will fail on SauceLabs.

Tests have changed substantially since this issue was raised. Haven't seen a failure like this recently.


How to resume training from a saved checkpoint?

Hello MMT team,
I trained a model with 480k steps and I used the debug flag. I see in 'runtime/en-ro/tmp/training/neural_model' the following files:
model.ckpt-480000.data-00000-of-00002
model.ckpt-480000.data-00001-of-00002
model.ckpt-480000.index
model.ckpt-480000.meta
I would like to train this engine further for extra 90k steps. Is there a way to resume from the 480k ckpt file without the need to restart the whole training again from scratch?
If this is possible, what would be the right command to do so?
I hope I will hear from you soon.
Thanks in advance for your support!
Mohamed

If you didn't pack the model, simply use the exact command you launched to train, adding these options at the end:
--resume --steps train_model
Don't hesitate to make a backup of the whole folders of your model, both in the runtime and engines folders.

Thanks @EtienneAb3d for your help!
I tried this command:
./mmt create en fr data/ --engine en-fr --train-steps 90000 -s train_model --resume
But I got this error although I see the "checkpoint.json" file under '/tmp/training'. Maybe something wrong with my command. Any idea?

Are you sure of your command ? In your first message, it was "en-ro", and in the latest "en-fr".
Otherwise.. certainly one of your previous commands deleted your tmp training data..

Yes, it's correct. I am testing it with en-fr, sorry about the en-ro mistake.
It seems that something was deleted, and I believe also that since the initial training was completed successfully, you cannot resume it any longer.
I hope there is a way to iterate over an engine with more steps to tune it a bit if you wish. Or at least, to be able to use a saved checkpoint for further training later. Let's see what @davidecaroselli or @nicolabertoldi can say about this. Maybe, there is a way.
Thanks again @EtienneAb3d for your support. I really appreciate it.

See #440:

to avoid the tmp training data to be deleted at the final "pack_model" step, you need to add the "--debug" option (in my case, I made a code modification before to know about this)
yo also need to manually remove all "pack_model" entries in the "checkpoint.json" file

Thanks @EtienneAb3d ! I will try to figure out what went wrong. I used the --debug flag though, but it seems the system I am doing the training on, once the training is over, some files are deleted.

Hi @davidecaroselli
Is there a way to resume training from a particular saved checkpoint?

@mzeidhassan
If you used the flag `--debug``,  you should be able to resume the training., as already described in #440.
How does this procedure fail for you?
You mentioned that "some files are deleted". Could you please report which are these files?
or alternatively, could you please report:

the content of directory runtime/ENGINE/tmp/training and its subdirectories
the content of runtime/ENGINE/tmp/training/checkpoint.json

Hi @mzeidhassan
just merged into master also the ability to start a training from an already saved checkpoint with mmt create option --from-model. Hope this is helpful!

Not sure to understand @mzeidhassan, but, I think his question is a bit different. I also got this in mind by the past, but was never really blocked on it to ask: being several checkpoints 1..N, how to restart the training from one of these, C being between 1 and N ? Typically, it's interesting to pack C older than the last N, to see what would be the quality with an shorter training, ran when you was elsewhere and not ready to stop it at this time.

the content of directory runtime/ENGINE/tmp/training and its subdirectories
the content of runtime/ENGINE/tmp/training/checkpoint.json

@nicolabertoldi Here is a screen shot of the /tmp/training directory

and the content of checkpoint.json is this:

["clean_tms", "preprocess", "train_aligner", "write_config", "prepare_data", "train_model", "pack_model"]

@EtienneAb3d  Yes, I want to know if I am able to resume a training form a particular saved checkpoint. For example, at this path "/tmp/training/neural_model", I have:

Is it possible to pack any of the saved checkpoints to base my engine on it?
Can I resume training from any of these saved checkpoints?

@mzeidhassan
@EtienneAb3d
I try to be clearer.
There are two cases:
A) you want to resume a training which was wrongly interrupted
B) you want to start a new training on (optionally) new data from a model, which have already been trained successfully
For case A, you have to follow instructions:

remove all "pack_model" entries in the file runtime/ENGINE/tmp/training/checkpoint.json
re-run the command 'mmt create with the additional parameter --resume
This works only if the previous training was run with the parameter --debug

For case B, you should use the latest option "--from-model MODELDIR".
where MODELDIR is the directory containing the model created previously.
In this case you can even choose to train on different data.
Hope this clarify the point and answer your questions.

@nicolabertoldi , there is a case 'C', for example:
If I have a checkpoint every 50K steps, after 500K steps, I have 10 checkpoints.
How can I resume, typically to pack it, checkpoint 3 done at 150K steps ?

@nicolabertoldi Just a follow-up question on case B:
Does that mean if my Model A has been trained with 'n' lines of data, if I want to train a Model B with 'n+m' lines of data, the Model B starts training from where Model A left (only the diff data, here only 'm' lines of data)? or does it retrain both 'n+m' data?
What is the impact on vocabulary? Would it expand to include new vocab from the newly added data?

@EtienneAb3d
before considering how to work in case 'C', it is important to clarify how the "pack" steps works.
The "pack" step

looks for all checkpoints available in the training directory
builds an average of them
completes the training
creates a working engine.
Moreover, it is important to stress that only the last K (=20) checkpoints are kept, while the oldest ones are removed.

So, one tricky way to "pack" the checkpoint 3 (and its predecessors, if any) could be:

(re)move the next checkpoints (from 4 on)
check and in case add in runtime/ENGINE/tmp/training/checkpoint.json the step 'train_model', to tell the system that to not continue the training
check and in case remove in runtime/ENGINE/tmp/training/checkpoint.json the step 'pack_model', to tell the system that to not continue the training
resume the training, which actually skips all steps but the "pack" step

@mzeidhassan
The case B is essentially a new training for which one can choose any training data. There is not relation with the data previously used.
But, with respect to the standard training, there are two main differences:

the initial model is already trained, and not randomly initialized
the vocabulary is not extended, but the one of the loaded model is exploited

Hi all!
Just a final note. With the new ModernMT v4, we have made this operation much more simple!
In fact you can resume a training at any time with ./mmt create [...] --resume, even if the previous training has completed successfully.
The --resume flag in fact will force the training process to resume from the latest checkpoint, no matter how it stops before.


Create repo to hold ignore patterns

We want to indicate that certain errors/warnings/notices should be ignored by default. This will be used during the crawl to reduce our counts.

Done: https://github.com/singingwolfboy/pa11ycrawler-ignore


What is the obcommand for close tabs to the right/left?

Please make sure your question is within the scope of this plugin.

[ ] I know this plugin is about persisting changes to the Vim support built into Obsidian, plus some bonus features, and considered asking in the Obsidian forum first.

Describe the question
Right click on the tab, the menu shows

but i run command :obcommand, i can not find the for close tabs to the right, does any one know what is it?

same question here


Implement rule for CBO metric

Implement a new rule that checks the CBO metric which will be available with PHP_Depend 0.10.2.
[Synced from PivotalTracker: 'http://www.pivotaltracker.com/story/show/10474987']

Seems to be implemented already: https://github.com/phpmd/phpmd/blob/f93ced10081aedd69163966af7ca8eae0e1beac2/src/main/php/PHPMD/Rule/Design/CouplingBetweenObjects.php

lol


Integrate Style-Guide Documentation into Shared Component Repository and Storybook

Description:
The current project structure has the Style-Guide documentation located within the portal-assets repository under the path https://github.com/eclipse-tractusx/portal-assets/tree/main/docs/user/Style-Guide. To enhance the developer experience and centralize our documentation, this documentation need to get moved into the shared-component repo. Ensure to integrate the component descriptions into Storybook to allow users to access both the component visualizations and their usage instructions in one place.
Acceptance Criteria:

All documentation under portal-assets/docs/user/Style-Guide is reviewed and updated if necessary.
The documentation is moved into the shared-component-repo within an appropriate directory structure.
Each component description is made available in Storybook alongside the respective component.
"How to use" details are provided in Storybook for each component, allowing users to understand the implementation and integration process.
Verify that all documentation is accessible and correctly formatted within Storybook.
Documentation should be searchable within Storybook to allow for easy navigation.

Hi @manojava-gk @oyo after the merge of #264 the build of storybook fails and therefore also the publishing to npm:
https://github.com/eclipse-tractusx/portal-shared-components/actions/runs/10351032318/job/28648672662

Please also fix the changelog before releasing the 3.1.0 version https://github.com/eclipse-tractusx/portal-shared-components/pull/264/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed


[test] write permissions tests for notes

currently there is no permissions test for notes. they need to be written. As it stands the app has no direct notes model access as it's a sub-form of another models page. how they will be test also needs to be devised.

marked this issue as related to #52

marked this issue as related to #15

marked this issue as related to #48


x/vuln: unexpected publishing latency

govulncheck version
% govulncheck -version
Go: go1.22.2
Scanner<EMAIL_ADDRESS>DB: https://vuln.go.dev
DB updated: 2024-04-17 15:34:19 +0000 UTC
No vulnerabilities found.
Share feedback at https://go.dev/s/govulncheck-feedback.
Does this issue reproduce at the latest version of golang.org/x/vuln?

I ran govulncheck ./...
What did you see happen?
govulncheck would not print https://pkg.go.dev/vuln/GO-2024-2730, despite my program being affected.
What did you expect to see?
I saw https://github.com/golang/vulndb/commit/cd4d4fed9803036201ace6287f2f8c16bd2f4a2f was merged and https://pkg.go.dev/vuln/GO-2024-2730 worked in my browser, so I was surprised to see that it took about 10 more minutes or so for govulncheck to find the vulnerability locally.
At first, I suspected govulncheck was using a locally cached version of the database. I looked for an “update” command but couldn’t find anything. Finally I read the source to see that govulncheck always seems to query the database (but doesn’t print anything about that), and that’s roughly when govulncheck invocations started showing the expected output:
Vulnerability #1: GO-2024-2730
    Directory traversal in FilesystemStore in github.com/gorilla/sessions
  More info: https://pkg.go.dev/vuln/GO-2024-2730
  Module: github.com/gorilla/sessions
    Found in<EMAIL_ADDRESS>    Fixed in: N/A
    Example traces found:
      #1: internal/webui/web.go:93:30: webui.UI.indexHandler calls sessions.FilesystemStore.Get
      #2: internal/webui/web.go:76:25: webui.UI.constantsHandler calls sessions.Session.Save

What is the current publishing latency and could it be improved? Is there a cache that should be invalidated or something along these lines?

cc @golang/vulndb

Thanks for reporting this.
Yes, govulncheck does not do any type of caching. We don't print anything related to that so as to not confuse the users. They shouldn't even be aware of its (non-)existence.
It is hard to tell why you are seeing this. We'll try to dig on the server side for more information.

Yes, govulncheck does not do any type of caching. We don't print anything related to that so as to not confuse the users. They shouldn't even be aware of its (non-)existence.

…but maybe you could print something about querying a remote server? That would be helpful, not just to establish the correct mental model, but also for many other issues (e.g. slow networking).
Thanks for taking a look at the server side.

Would that just be a message upon successful retrieval of information from the vuln db server?
I think that if we decide to add this, then we'd likely hide this under the -show verbose option. We already have people mentioning that govulncheck is quite chatty.

I suggest printing a message when starting the request, not afterwards. That way, if the program hangs, it’s very clear what’s happening: the last line will tell you exactly what it’s trying to do.
Hiding this behind a verbose flag sounds reasonable.

Govulncheck first prints out the message about the user program and then goes to fetching vulnerabilities for that program. So this message would be the second one. If govulncheck hangs, then it is very likely due to the analysis taking a long time. A message on starting the request would then be misleading. That is why I suggest something like this (in verbose mode):
Scanning your code and P packages across M dependent modules for known vulnerabilities...

Fetched %d vulnerabilities from the database that might apply to your code and dependencies.

....

We looked at the server side and we believe this has something to do with replication and eventual-consistency. We could dig deeper into that, but it is not clear if it is really worth it.


btbridge crashes after 5-100 host power cycles

btbridged crashes after 5-100 host power cycles.   After crash, if I manually restart, everything is fine again.
Code path:
	if (bt_msg->call) {
		r = sd_bus_message_new_method_return(bt_msg->call, &msg);        <---- this is failing
		if (r < 0) {
			MSG_ERR("Couldn't create response message\n");
			goto out;									<----bt_msg->call is still valid
		}
		r = 0; /* Just to be explicit about what we're sending back */
		r = sd_bus_message_append(msg, "x", r);
		if (r < 0) {
			MSG_ERR("Couldn't append result to response\n");
			goto out;
		}

	}
}
   // out: label is here.  removed so github would format properly
if (bt_msg->call) {
	if (sd_bus_send(context->bus, msg, NULL) < 0)                          <--- and this is failing and msg is probably null from previous error
		MSG_ERR("Couldn't send response message\n");				<--- I see this message print out then seg fault happens
	sd_bus_message_unref(msg);
}

}
...
btbridged --verbose
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
    <This happens 1000's of times>

[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Sending dbus signal with seq 0x0e, netfn 0x00, lun 0x00, cmd 0x09
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Received a dbus response for msg with seq 0x0e
[BTBRIDGED]<PHONE_NUMBER>: Processed 1 dbus events
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0d
[BTBRIDGED]<PHONE_NUMBER>: Sending dbus signal with seq 0x0e, netfn 0x00, lun 0x00, cmd 0x09
[BTBRIDGED]<PHONE_NUMBER>: Adjusting timer for next element
[BTBRIDGED]<PHONE_NUMBER>: Successfully wrote 5 of 5 bytes to /dev/bt-host
[BTBRIDGED]<PHONE_NUMBER>: Completed request with seq 0x0d, netfn 0x07, lun 0x00, cmd 0x08, cc 0xce
[BTBRIDGED]<PHONE_NUMBER>: Message with seq 0x0e is being timed out despite appearing to have been responded to. Slow BT?
[BTBRIDGED]<PHONE_NUMBER>: Timeout on msg with seq: 0x0e
[BTBRIDGED]<PHONE_NUMBER>: Received a dbus response for msg with seq 0x0e
[BTBRIDGED]<PHONE_NUMBER>: Processed 1 dbus events
[BTBRIDGED]<PHONE_NUMBER>: Sending dbus signal with seq 0x0e, netfn 0x00, lun 0x00, cmd 0x09
[BTBRIDGED]<PHONE_NUMBER>: Adjusting timer for next element
[BTBRIDGED]<PHONE_NUMBER>: Successfully wrote 12 of 12 bytes to /dev/bt-host
[BTBRIDGED]<PHONE_NUMBER>: Turning off POLLOUT for the BT in poll()
[BTBRIDGED]<PHONE_NUMBER>: Completed request with seq 0x0e, netfn 0x01, lun 0x00, cmd 0x09, cc 0x00
[BTBRIDGED]<PHONE_NUMBER>: Received a dbus response for msg with seq 0x0e
[BTBRIDGED]<PHONE_NUMBER>: Processed 1 dbus events
[BTBRIDGED]<PHONE_NUMBER>: Adjusting timer for next element
[BTBRIDGED]<PHONE_NUMBER>: Successfully wrote 12 of 12 bytes to /dev/bt-host
[BTBRIDGED]<PHONE_NUMBER>: Turning off POLLOUT for the BT in poll()
[BTBRIDGED]<PHONE_NUMBER>: Completed request with seq 0x0e, netfn 0x01, lun 0x00, cmd 0x09, cc 0x00
[BTBRIDGED]<PHONE_NUMBER>: Sending dbus signal with seq 0x0f, netfn 0x00, lun 0x00, cmd 0x09
[BTBRIDGED]<PHONE_NUMBER>: Received a dbus response for msg with seq 0x0f
[BTBRIDGED]<PHONE_NUMBER>: Processed 1 dbus events
[BTBRIDGED]<PHONE_NUMBER>: Sending dbus signal with seq 0x0f, netfn 0x00, lun 0x00, cmd 0x09
[BTBRIDGED]<PHONE_NUMBER>: Successfully wrote 12 of 12 bytes to /dev/bt-host
[BTBRIDGED]<PHONE_NUMBER>: Completed request with seq 0x0f, netfn 0x01, lun 0x00, cmd 0x09, cc 0x00
[BTBRIDGED]<PHONE_NUMBER>: Adjusting timer for next element
[BTBRIDGED]<PHONE_NUMBER>: Successfully wrote 12 of 12 bytes to /dev/bt-host
[BTBRIDGED]<PHONE_NUMBER>: Couldn't create response message
[BTBRIDGED]<PHONE_NUMBER>: Couldn't send response message
*** Error in `./btbridged_msg': double free or corruption (fasttop): 0x00027878 ***

After further investigation, it seems petitboot is sending the same sequence number twice in a row and since btbridged uses the sequence number as an identifier in the queue, can it possibly lookup wrong entry?  This trace has a custom printf:
printf("bt_host_write:  0x%08X,%d,%d, 0x%08X\n",bt_msg,bt_msg->req.seq,bt_msg->rsp.seq,bt_msg->call);
BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host
bt_host_write:  0x000256F0,15,15, 0x00027BB8
[BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host
bt_host_write:  0x000257D8,15,15, 0x00027BB8
[BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host
bt_host_write:  0x000257D8,16,16, 0x00027BB8
[BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host
bt_host_write:  0x00026870,16,16, 0x00027BB8
[BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host
bt_host_write:  0x00026870,17,17, 0x000255B8
[BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host
bt_host_write:  0x00027CF8,17,17, 0x000255B8
[BTBRIDGED] Successfully wrote 12 of 12 bytes to /dev/bt-host

@cyrilbur-ibm , could you check this out?

@nkskjames, but that shouldn't cause a double free, when btbridge receives a request it enqueues onto the end of its list, so it will have a list which might look like:
[x]->[y]->[z]
then say it receives another message with a sequence number z (which I'll identify as z') so:
[x]->[y]->[z]->[z']
Anyone who does a lookup for z should get reference for z and from there they'll deal with it and dequeue it, next time around a reference for z would get z' and the same thing would happen.
I HAVE found a bug in bt_q_drop()!
Could you test with: https://github.com/cyrilbur-ibm/btbridge/tree/issues_10 ? Thanks!

I have rebooted about 200 times and no crashes.  I then put old code on to make sure it still crashes. It does.  So problem solved.  Please do pull request.  Thanks!!


The navigation list and the article section have the right distance.

I agree and want to create new issue

[ ] Yes, I was on Hexo Docs page, especially on Templates, Variables, Helpers and Troubleshooting.
[x] Yes, I was on NexT Documentation Site.
[x] And yes, I already searched for current issues and this is not help to me.

Expected behavior

The navigation list and the article section have the right distance
Actual behavior

In fact, the left navigation list is below the article section
Steps to reproduce the behavior
Link to demo site with this issue: N/A
Link(s) to source code or any usefull link(s): N/A
hexo clean
hexo g
hexo s

NexT Information
NexT Version:

[ ] Master
[x] Latest Release
[ ] Old version -

NexT Scheme:

[ ] All schemes
[ ] Muse
[ ] Mist
[ ] Pisces
[x] Gemini

Other Information
@ivan-nginx

@aixiu see there, there is latest master branch downloaded yesterday after global merge. All alignments working fine. Try to force refresh browser cache by CTRL+SHIFT+R.

@ivan-nginx I pulled the latest branch code, also used CTRL + SHIFT + R failed, updated the same as other browsers

It's strange. Can u show hexo -v, npm -v?

@aixiu and can u please give site live demo with this bug?

@ivan-nginx I do not know what the reason, but I re-clone a new branch code, the deployment is successful, the show is normal.

@aixiu omg, don't need to be fast. Check all slowly and all will be fine.
If solved, close it.

I used git fetch origin master as before
git merge origin / master
After replacing the Gemini theme, hexo clean, hexo g, hexo s.

@ivan-nginx Thank you, the problem is temporarily resolved, just need to re-set some things.

@aixiu no need to replace anything. If something not work as expected, need to do separated test directory and load latest master branch to test it.

@ivan-nginx Thanks for your advice。


Add custom flags after -Wall

Right now we add them before, and we add -Wall by default. This allows
users to manually turn off specific warnings, without having to resort
to a dance of:
 .warnings(false)
 .flag("-Wall")
 .flag("-Wno-foo")

This strikes a good balance of keeping -Wall on by default, while
minimising the surprising experience observed in
https://github.com/alexcrichton/cc-rs/issues/235.

Thanks!


Your Library Works Great! One question.

Thank you!! Working with no effort. My wiring is I2C with level convertor. Using sensors from Aliexpress.  However, any idea why when running the Adafruit BME280_test Library all I ever receive is "sensor not found"? Doesn't make any sense. Thanks.

Answered my own question. The Adafruit BME280 library uses a different sensor address. The Bosch BME280 required the following line in their sketch:
#define Addr 0x76

Great stuff! Thanks for the feedback.
cheers
Ian.
On 11 October 2016 at 21:55, waltb01<EMAIL_ADDRESS>wrote:

Answered my own question. The Adafruit BME280 library uses a different
sensor address. The Bosch BME280 required the following line in their
sketch:
#define Addr 0x76
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/embeddedadventures/BME280/issues/7#issuecomment-253097684,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAC7YrDFntBMUVWkmX3G7TK14f8BY0UVks5qzD4XgaJpZM4KPbPK
.


emsembl ids

Hi, thanks for the contribution!
Do you know what would the most ideal way to convert the gene names into the ensembl ids?

I am using the following function to convert gene names into ensembl ids, but for the total 28024 genes, there are 1659 gene name have multiple ensembl ids, and 6731 have no matching ensembl ids.
from biothings_client import get_client

def convert_to_ensembl(gene_names):
    mg = get_client('gene')
    response = mg.querymany(gene_names, scopes='symbol', fields='ensembl.gene', species='human', returnall=True)

    missing = response.get('missing', [])
    duplicates = response.get('dup', [])

    success = {}
    for item in response['out']:
        query = item.get('query', None)
        ensembl_data = item.get('ensembl', None)
        if ensembl_data:
            if isinstance(ensembl_data, list):  # Handle case where ensembl_data is a list
                ensembl_genes = [d.get('gene', None) for d in ensembl_data if 'gene' in d]
            else:
                ensembl_genes = [ensembl_data.get('gene', None)]
            if query:
                success[query] = ensembl_genes

    if missing:
        print(f"Missing: {missing}")
    if duplicates:
        print(f"Duplicates: {duplicates}")

    return success

gene_names = ['TP53', 'BRCA1', 'C1orf112', 'FAM214B', 'RTEL1-TNFRSF6B']  # Add your gene names
result = convert_to_ensembl(gene_names)
print(f"Successful conversions: {result}")

Hi @hansen7 , both gene names and Ensembl ids should be in the atlas object.. did you check? In adata.var

Hi @LisaSikkema, thanks, you are right! The ensembl_id is in the index column

Great, glad you found it!


Implement GetEntity and fixup some swagger issues

Closes #13620
related to #13559

/check-enforcer override


E1012: Ref  not found as a resource or parameter when using SAM Globals

cfn-lint version: 0.44.6
Description of issue.
When using Globals as part of a SAM template and declaring a global layer, I'm getting the following error: [cfn-lint] E1012: Ref layerAwscore not found as a resource or parameter
Please provide as much information as possible:
Using the template below will generate the error, [cfn-lint] E1012: Ref layerAwscore not found as a resource or parameter
AWSTemplateFormatVersion: "2010-09-09"
Transform: "AWS::Serverless-2016-10-31"

Globals:
  Function:
    Runtime: python3.8
    Handler: app.handler
    MemorySize: 128
    Timeout: 30
    AutoPublishAlias: live
    Tracing: Active
    Layers:
      - !Ref layerAwscore

Resources:
  layerAwscore:
    Type: AWS::Serverless::LayerVersion
    Properties:
      LayerName: !Sub ${stackName}-awscore-${stage}
      Description: Core AWS packages, boto3 + aws-xray-sdk
      ContentUri: ../layers/awscore
      CompatibleRuntimes:
        - python3.8
      RetentionPolicy: Delete
    Metadata:
      BuildMethod: python3.8

For tracking the transformed template is
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Resources": {
    "layerAwscore7125176640": {
      "DeletionPolicy": "Delete",
      "Properties": {
        "CompatibleRuntimes": [
          "python3.8"
        ],
        "Content": {
          "S3Bucket": "bucket",
          "S3Key": "value"
        },
        "Description": "Core AWS packages, boto3 + aws-xray-sdk",
        "LayerName": {
          "Fn::Sub": "${stackName}-awscore-${stage}"
        }
      },
      "Type": "AWS::Lambda::LayerVersion"
    }
  }
}

@alanwill little oddness here.  When SAM translates the serverless functions it changes the names. If you used the template below the error goes away as the translated name gets put in appropriately.
AWSTemplateFormatVersion: "2010-09-09"
Transform: "AWS::Serverless-2016-10-31"

Globals:
  Function:
    Runtime: python3.8
    Handler: app.handler
    MemorySize: 128
    Timeout: 30
    AutoPublishAlias: live
    Tracing: Active
    Layers:
      - !Ref layerAwscore

Resources:
  function:
    Type: AWS::Serverless::Function
    Properties: {}
  layerAwscore:
    Type: AWS::Serverless::LayerVersion
    Properties:
      LayerName: !Sub ${stackName}-awscore-${stage}
      Description: Core AWS packages, boto3 + aws-xray-sdk
      ContentUri: ../layers/awscore
      CompatibleRuntimes:
        - python3.8
      RetentionPolicy: Delete
    Metadata:
      BuildMethod: python3.8

translates to
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Resources": {
    "function": {
      "Properties": {
        "Code": {
          "S3Bucket": "bucket",
          "S3Key": "value"
        },
        "Handler": "app.handler",
        "Layers": [
          {
            "Ref": "layerAwscore7125176640"
          }
        ],
        "MemorySize": 128,
        "Role": {
          "Fn::GetAtt": [
            "functionRole",
            "Arn"
          ]
        },
        "Runtime": "python3.8",
        "Tags": [
          {
            "Key": "lambda:createdBy",
            "Value": "SAM"
          }
        ],
        "Timeout": 30,
        "TracingConfig": {
          "Mode": "Active"
        }
      },
      "Type": "AWS::Lambda::Function"
    },
    "functionAliaslive": {
      "Properties": {
        "FunctionName": {
          "Ref": "function"
        },
        "FunctionVersion": {
          "Fn::GetAtt": [
            "functionVersion55ff35af87",
            "Version"
          ]
        },
        "Name": "live"
      },
      "Type": "AWS::Lambda::Alias"
    },
    "functionRole": {
      "Properties": {
        "AssumeRolePolicyDocument": {
          "Statement": [
            {
              "Action": [
                "sts:AssumeRole"
              ],
              "Effect": "Allow",
              "Principal": {
                "Service": [
                  "lambda.amazonaws.com"
                ]
              }
            }
          ],
          "Version": "2012-10-17"
        },
        "ManagedPolicyArns": [
          "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
          "arn:aws:iam::aws:policy/AWSXrayWriteOnlyAccess"
        ],
        "Tags": [
          {
            "Key": "lambda:createdBy",
            "Value": "SAM"
          }
        ]
      },
      "Type": "AWS::IAM::Role"
    },
    "functionVersion55ff35af87": {
      "DeletionPolicy": "Retain",
      "Properties": {
        "FunctionName": {
          "Ref": "function"
        }
      },
      "Type": "AWS::Lambda::Version"
    },
    "layerAwscore7125176640": {
      "DeletionPolicy": "Delete",
      "Properties": {
        "CompatibleRuntimes": [
          "python3.8"
        ],
        "Content": {
          "S3Bucket": "bucket",
          "S3Key": "value"
        },
        "Description": "Core AWS packages, boto3 + aws-xray-sdk",
        "LayerName": {
          "Fn::Sub": "${stackName}-awscore-${stage}"
        }
      },
      "Type": "AWS::Lambda::LayerVersion"
    }
  }
}

@kddejong thanks! So the fix is to add
  function:
    Type: AWS::Serverless::Function
    Properties: {}

as a benign resource for this to work. Good to know, I would have never figured that out. Thanks again!


Espresso

I open the PR to see whether Travis passes the tests. (I upgraded jest.)
The Espresso mapping is in pre-alpha stage. I'll make more commits to this pr.
Some scrolling actions and the waitFor* things are not implemented yet.
For #96

Let's merge it and continue working together on master


Unable to run version warning with URL different than readthedocs

Failed to load https://readthedocs.org/api/v2/version/?project__slug=cilium&active=true: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://docs.cilium.io' is therefore not allowed access.

Open console in:
http://docs.cilium.io/en/v1.0/
This works URL works:
https://cilium.readthedocs.io/en/v1.0/
@humitos what do you think it should be the best option for this?
Should I create a copy of the JSON from https://readthedocs.org/api/v2/version/?project__slug=cilium&active=true in http://docs.cilium.io/version plus add versionwarning_api_url=docs.cilium.io?

Should I create a copy of the JSON from https://readthedocs.org/api/v2/version/?project__slug=cilium&active=true in http://docs.cilium.io/version plus add versionwarning_api_url=docs.cilium.io?

Nope, this won't work.
The problem is because of CORS. There is not too much we can do from this extension since that endpoint does not support jsonp. This is something that has to be fixed in Read the Docs. It may worth to open an issue there.

@aanm I opened a PR under Read the Docs to discuss this problem. Please, subscribe there. Thanks.

@aanm the upstream PR was merged today and it will be deployed soon. When that happens, this issue will be automatically fixed.

@humitos thank you very much!

I believe this should now be deployed. 👍

Thanks!
I just tested the links from the description and both works as expected.
Closing here.

@humitos was there a regression introduced in RTD? We seem to be seeing this exact issue again

Hi @aanm! I'm not sure to understand the problem you are reporting. Going to https://docs.cilium.io/en/v1.10/ I do see the warning version without problem. The console shows the debug information properly.

Hi @humitos thanks for the reply. It is working now for v1.9 and v1.10 because we have made some changes. see https://github.com/cilium/cilium/pull/19563, https://github.com/cilium/cilium/pull/19610 and https://github.com/cilium/cilium/pull/19611 on our side and backported those changes to those branches. However, if you look at https://docs.cilium.io/en/v1.8/ you can still see the CORS problem in the console.
Thanks!

@stsewd do you know what happened here and why the API is now having CORS issues? Is it possible to solve it somehow?

Looks like this was the result from where we locked down our API from cross site requests https://github.com/readthedocs/readthedocs.org/security/advisories/GHSA-3v5m-qmm9-3c6c.
We could:

Allow access to api/v2 on .org only (this could be confusing for .com users)
Allow access only if the project is public and return public versions only (this needs some changes on our app to extract the project from the request and have it list public versions only on cross site requests)
Implement our new footer API, so we can get this information from the same domain.


Please provided v2.2.0 with bundled libraries.

Please provide a tarball "ready to use" as for v2.1.0.
It looks like v2.2.0 release is available as source only.
Cheers

Done. Seems the upload failed when I cut the release.

Thanks for such a reactivity !
The link on http://candy-chat.github.io/candy seems to be outdated as well ;-)
Cheers

Pull requests accepted ;) gh-pages branch

Here it is #462 please review.
Cheers

Here it is #463
Cheers


Proof of concept create2 spike

Create a proof of concept execution strategy that uses allows Ignition to run the sample and complete projects with contract deployment done through a create2 factory.

We have a POC.


core: update load chat prompt template multi mesages

Description: update load chat prompt template  method to allow chat prompt templates
with multiple messages (loles) when using file loading (load from config)
Issue: https://github.com/langchain-ai/langchain/discussions/21672

@baskaryan please take a look when you have the time

Closing as I believe this functionality exists:
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.load import dumpd
from langchain_core.load.load import load
import json

prompt = ChatPromptTemplate(
    [
        ("system", "system message is {system_message}"),
        ("user", "user message is {user_message}"),
    ]
)

with open("foo.json", "w") as f:
  json.dump(dumpd(prompt), f)

with open("foo.json", "r") as f:
  reloaded = load(json.load(f))

See guide here: https://python.langchain.com/docs/how_to/serialization/
Let me know if this does not cover your use case. Thank you!

@ccurme I think this not covers loading a full conversation (multiple turns with roles in a template), The current implementation loads only one message into the chat template


Disable the Installation SMS

How to disable the installation SMS when we create the User in Java API?

Disabled in my account settings in Authy


Version 0.10.0

Following the next step I got another issue. When I put this command: magissss@Ubuntu:~/Documentos$ sudo cmake --build liboqs-cpp/build/unit_tests --target unit_tests --parallel 4
I get this answer: Error: /home/magissss/Documentos/liboqs-cpp/build/unit_tests is not a directory
With the last version 0.10.0 I didn't have any issue, just this one and I followed every step as it is said. Thank you


ORM and rowset

Having switched over to SOCI has been a good experience so far. However, there one thing in my application which keeps me rather nervous regarding ORM & rowsets.
Let there be a type person:
struct person
{
    int id = -1;
    std::string name;
}

We can provide a type conversion like this:
namespace soci
{
    template<>
    struct type_conversion<person>
    {
        static void from_base(const values& v, indicator ind, person& p)
        {
            p.id = v.get<int>("id", -1);
            p.name = v.get<std::string>("name", "");
        }

        static void to_base(const person& p, values& v, indicator& ind)
        {
            v.set("id", p.id);
            v.set("name", name);

            ind = i_ok;
        }
    };
}

Which then allows us to do something like this:
sql << "SELECT * FROM persons WHERE id=:1 LIMIT 1", soci::use(42), soci::into(p);

This is great. Where I start to gulp is when I need to retrieve several records. I would have assumed that we can simply feed an std::vector<person>  into soci::use(). However, if I understand the documentation correctly that is not possible.
Right now, I do this instead:
std::vector<person> ret;
soci::rowset<soci::row> rs = (sql.prepare << "SELECT * FROM persons LIMIT 100 OFFSET 0");
for (soci::rowset<soci::row>::const_iterator it = rs.begin(); it != rs.end(); ++it) {
    const soci::row& row = *it;

    person p;
    p.id = row.get<int>("id", -1);
    p.name = row.get<std::string>("name", "");

    ret.push_back(std::move(p));
}

Which is really not great as there are now two places where the ORM data binding happens (once where the soci::type_conversion<> is defined and then again everywhere where I want to retrieve multiple person objects.
I feel like I am missing a critical piece of information to avoid this. How can I use the same soci::type_conversion<person> when my query returns multiple rows?

What you're trying to do with std::vector<person> is currently unsupported, yes.
I usually use move_iterators in such cases. So in your example:
soci::rowset<person> rs = (sql.prepare << "SELECT * FROM persons LIMIT 100 OFFSET 0");

std::vector<person> ret{std::make_move_iterator(rs.begin()), std::make_move_iterator(rs.end())};

This.... is so painfully obvious now.
Thank you - thank you a lot!

What you're trying to do with std::vector<person> is currently unsupported, yes.
I usually use move_iterators in such cases. So in your example:
soci::rowset<person> rs = (sql.prepare << "SELECT * FROM persons LIMIT 100 OFFSET 0");

std::vector<person> ret{std::make_move_iterator(rs.begin()), std::make_move_iterator(rs.end())};

Sorry to ask a question here. I just tired this method, and I found that the generated std::vector has the size() function return 0, which means the construction from the soci::rowset does not work correct.
If I remove the std::make_move_iterator wrapper, I still get the empty std::vector. Any idea on how to solve this issue.
Thanks.

Here is my full test code:
1, the definition of the person class:
class person
{
public:
    int id;
    std::string name;
    int age;
};

namespace soci
{
    template<>
    struct type_conversion<person>
    {

        typedef values base_type;

        static void from_base(const values& v, indicator ind, person& row)
        {
            row.id =   v.get<int>("id", -1);
            row.name = v.get<std::string>("name", "");
            row.age =  v.get<int>("age", 0);

        }

        static void to_base(const person& row, values& v, indicator& ind)
        {
            v.set("id",   row.id);
            v.set("name", row.name);
            v.set("age",  row.age);

            ind = i_ok;
        }
    };
}

2, here the is testing code:
        soci::session sql(soci::mysql, "dbname=testdb user=root password=123456");
        try
        {
            soci::rowset<person> rs = (sql.prepare << "SELECT * FROM testtable");

            // Loop through rowset using a range-based for loop
            for (const auto& row : rs) {
                // Do something with the current row
                // For example, print the value of a column
                std::cout << row.id << std::endl;
            }

            // Loop through rowset using a standard for loop
            for (auto it = rs.begin(); it != rs.end(); ++it) {
                const person& row = *it;
                // Do something with the current row
                // For example, print the value of a column
                std::cout << row.id << std::endl;
            }

            //std::vector<person> ret{std::make_move_iterator(rs.begin()), std::make_move_iterator(rs.end())};
            std::vector<person> ret{rs.begin(), rs.end()};

            int s = ret.size();

            std::cout << s << std::endl;

            for (int i = 0; i< ret.size(); i++)
            {
                std::cout << ret[i].id << std::endl;
            }

        }
        catch(const soci::soci_error& e)//Catch the exception and output the exception message
        {
            std::cerr << "Error: " << e.what() << std::endl;
        }

3, this is the database I created: ( I exported the table from the HeidiSQL software tool)
CREATE TABLE IF NOT EXISTS `testtable` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `age` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

REPLACE INTO `testtable` (`id`, `name`, `age`) VALUES
	(1, 'aaa', 23),
	(3, 'bbb', 43);

The result is:
1, The first for loop works.
2, The second for loop does not work, I just checked by debugging that the rs.begin() and rs.end() are just the same, so I have no way to run the for loop.
3, The std::vector constructed from the soci::rowset is empty dure to the above iterator issue.
I'm using soci version 4.0.3 from Package: mingw-w64-x86_64-soci - MSYS2 Packages.


Making bottomSheet stay above bottom bar

I'm trying to make bottom sheet stay above bottom bar, is there a way to do this? This approach with scaffold does not work
ModalBottomSheetLayout(
    bottomSheetNavigator = bottomSheetNavigator,
) {
    Scaffold(
        modifier = modifier.systemBarsPadding(),
        topBar = { topBar(destination, navBackStackEntry) },
        bottomBar = { bottomBar(destination) },
        scaffoldState = scaffoldState,
        snackbarHost = {
       },
       content = {
          DestinationsNavHost(
            navController = navHostController,
            navGraph = NavGraphs.root,
            startRoute = startRoute,
            engine = rememberAnimatedNavHostEngine(),
            manualComposableCallsBuilder = {
                bottomSheetComposable(ThemeSettingsDestination) {
                    ThemeSettings(
                        resultNavigator = resultBackNavigator(),
                    )
                }
       },
    )
}`

Hi 👋
this is not directly related with compose destinations library.
I think you’ll find better help googling or asking on Kotlin slack. If you replace the DestinationsNavHost with the official NavHost it will be the same so if you find a solution with normal navigation it shouldn’t matter.

Found that you need to wrap Scaffold content with ModalBottomSheetLayout

Perfect! Glad you found the solution!


Selectors for list inset datetime and select

Adding selectors to apply [inset] on items with ion-datetime and ion-select for issue #13862
Short description of what this resolves:
For issue #13862, List with [inset] is only applied to ion-input and missing ion-select and ion-datetime. This is only happening on Material Design.
Changes proposed in this pull request:
Adding selectors for the classes
.list-md[inset] .item-select
.list-md[inset] .item-datetime
Ionic Version: 1.x / 2.x / 3.x
3.X
Fixes: #
src/components/list/list.md.scss

Hello and thank you for contributing to Ionic! We have been working on porting all of the Ionic components to web components and have recently updated master to reflect this. This significant change has caused this pull request to break. While we really appreciate the time and effort you put into creating this, we are not able to merge it because of the newly introduced conflicts. We are extremely sorry about this. We will not be merging any more features in to v3. If this is a feature and you have the time, please resubmit this PR against the master branch. If this is a critical security issue in v3, we would greatly appreciate it if you would resubmit the PR against the new v3 branch. Thanks so much for your time!


Userlink Github icon not visible correctly when dark mode is on

Description
when dark mode is on userlink Github icon not visible correctly. I am curious if this an intentional design choice or if it a bug. If it is a bug, i want to work on this, please assign me on this issue
Screenshots

Additional information
No response

Good spot, we could change it to white as GitHub has a white logo as part of their assets, so it is allowed usage https://github.com/logos
I think we have a config file for icon colours for the links, we might need to improve this config to cover dark mode?

Can you assign me this issue, I have an idea to fix this one with some basic UI changes.

Can you assign me this issue, I have an idea to fix this one with some basic UI changes.

@omlondhe thank you for your enthusiasm, but please read the contributing guidelines as already mentioned to you here 2 weeks ago to avoid extra work and confusion for everyone!  (note: you already have 1 open issue assigned to you, and this issue is not ready for dev)

Can you assign me this issue, I have an idea to fix this one with some basic UI changes.

@omlondhe thank you for your enthusiasm, but please read the contributing guidelines as already mentioned to you here 2 weeks ago to avoid extra work and confusion for everyone! (note: you already have 1 open issue assigned to you, and this issue is not ready for dev)

Got it! Thank you for your response!

I think we have a config file for icon colors for the links, we might need to improve this config to cover dark mode?

Yes, we just need to remove custom color of the icon. Default icon is working fine on both light and dark theme.

I think we have a config file for icon colors for the links, we might need to improve this config to cover dark mode?

Yes, we just need to remove custom color of the icon. Default icon is working fine on both light and dark theme.

Good spot, we could change it to white as GitHub has a white logo as part of their assets, so it is allowed usage https://github.com/logos
I think we have a config file for icon colours for the links, we might need to improve this config to cover dark mode?

@eddiejaoude I was thinking the same just turn that logo into white let me work on this issue

Oh that sounds like a great solution @yoyoekta nice and simple, I like it 👍
@yoyoekta as you came up with the solution would you like me to assign it to you?
@Snach13 it wasn't ready for dev when you made your comment, please familiarise yourself with our contributing guide to reduce noise and confusion

@yoyoekta as you came up with the solution would you like me to assign it to you?
Sure! Thanks.

I would like to contribute

Oh that sounds like a great solution @yoyoekta nice and simple, I like it 👍
@yoyoekta as you came up with the solution would you like me to assign it to you?
@Snach13 it wasn't ready for dev when you made your comment, please familiarise yourself with our contributing guide to reduce noise and confusion

Hey@eddiejaoude , According to Github logo and Usage guidelines, using black and white github logo can be a good option if we need a simplified version of the logo. Would love to fix this issue.

Hey@eddiejaoude according to Github logo and Usage guidelines, using black and white github logo can be a good option if we need a simplified version of the logo. Would love to fix this issue.

@yoyoekta I have assigned it to you
@geeky-sambhav please read the messages above yours
@badrivlog sorry you did request to work on it in the issue description, I will assign another issue to you - let me know


Error when importing tensorflow: DLL load failed

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: NA
TensorFlow installed from (source or binary): binary
TensorFlow version: 1.13.1
Python version: 3.6
Installed using virtualenv? pip? conda?: conda
Bazel version (if compiling from source): NA
GCC/Compiler version (if compiling from source): NA
CUDA/cuDNN version: NA
GPU model and memory: using CPU

Describe the problem
Originaly, when importing python module keras with tensorflow backend ar error ocurred when importing. To be sure, I simply imported tensorflow and same error was shown:

ImportError: DLL load failed: Specified module could not be found.
Failed to load the native TensorFlow runtime.

Provide the exact sequence of commands / steps that you executed before running into the problem
Open python in conda prompt or using spyder console:
import tensorflow
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

import tensorflow
Traceback (most recent call last):
File "", line 1, in
import tensorflow
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\ProgramData\Anaconda3\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\ProgramData\Anaconda3\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: No se puede encontrar el módulo especificado.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

From the error message, I suspect you have installed tf-gpu version. Please take a look at duplicate #22794
Also can you please share  TF installation process you followed? Thanks!

I had looked at that issue, but since I' not using a GPU, I figured I didn't need to install CUDA.
When I check my conda enviorment, it says I have tensorflow (not tensorflow-gpu) installed, as well as tensorboard, tensorflow-base and tensorflow-estimator (and keras, but I don't think that's an issue. However, I just notised it also says that the build used is gpu_py36h0fff12a_0, so maybe GUP?
To install I'm prety sure I simply did conda install tensorflow.

Thanks for the confirmation. Can you please describe the procedure you followed to install TF?
Also did you get a chance to take a look at install guide on TF website?

I hadn't read it, but it doesn't quite apply, I think. My python instalation uses Anaconda and in this machine I have a single enviorment I'm using. In that enviorment I ran conda install tensorflow to install.
The linked installation guide suggests using pip install --upgrade tensorflow and a virtualenv. I was told that as long as I can install something using conda I should, since it is better at checking for conflicts and keeping a clean path. Instad of Visual Studio 2015, I have Visual studio 2017, version 1.27.1, to be specific. Also, I did "Make sure long paths are enabled on Windows."

Just to be sure I did the following in an anaconda prompt:

I tried conda update tensorflow, which did nothing since I have a fresh installation.

I tried pip install --upgrade pip, which did nothing.

I ran conda update pip to actually update it, since my pip is a conda installation.

I ran pip install --update tensorflow, which installed something, but I still get the same problem in python.

Apologies for the delay in response.
TensorFlow release binaries (CPU/GPU) version 1.6 and higher are prebuilt with AVX instruction sets.
See hardware requirements to know more.
Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.
Apparently, your CPU model does not support AVX instruction sets. You can still use TensorFlow with the alternatives given below:

Try Google Colab to use TensorFlow.

The easiest way to use TF will be to switch to google colab. You get pre-installed latest stable TF version. Also you can use pip install to install any other preferred TF version.

It has an added advantage since you can you easily switch to different hardware accelerators (cpu, gpu, tpu) as per the task.
All you need is a good internet connection and you are all set.

Try to build TF from sources by changing CPU optimization flags.

Hm... That's very good to know, thanks! However, for whatever reason, after reinstalling anaconda yet again (I had broken my installation doing something else), Keras (and tensorflow) ended up working no problem. I don't recall doing anything differently. Thanks!

You are welcome. Closing this issue now since it's resolved. Thanks!

Anaconda packages are not built by the TF team.
So the packages you get by pip install or conda install are different.
The conda packages may be more compatible.


How to Remove a Game Object from a Scene?

I assume that I ought to use GameObject.destroy and that it would get removed from a scene. But I don't think this actually works. How should I go about removing a game object from a scene?

I'll test this and get back to you.


NSEC records with parameter Types

How to send answer of Record type NSEC  with types TXT and SRV.
Something like this , I found this in ARSoft.Tools.Net
public NSecRecord(string name, RecordClass recordClass, int timeToLive, string nextDomainName, List types): base(name, RecordType.NSec, recordClass, timeToLive)
{
}

You can add any  DNS Resource Record to  ServiceProfile.Resources.  Then, when the Resource Record is asked for, it will be sent.
var service = new ServiceProfile("x1", "_xservice._tcp", 5011);
service.Resources.Add(new NSecRecord { ... } );
var sd = new ServiceDiscovery();
sd.Advertise(servuce));

The NSecRecord can be created as
new NSecRecord
{
   NextOwnerName = "...",
   TypeBitmaps = ,..
}

@victorkani Does the above answers your question?

How to return the following records to google discovery service ?
The following records should be returned by the server in an authoritative response:
Two NSEC records, the first for the name {friendlyName}._googlecast._tcp.local with types TXT and SRV, the second for name {friendlyName}.local with type A. Where {friendlyName}is the display name of the device
                        res.AdditionalRecords.Add(new NSECRecord()
                        {
                            Name = "victor." + service,
                            Type = DnsType.TXT,
                            NextOwnerName = "1.victor.local",

                        });

The above is the syntax for sending NSEC record information, but the Type parameter is not of array type to set both TXT and SRV.

I'm just making a change to Makaretu.Dns to make  NSECRecord friendlier, see https://github.com/richardschneider/net-dns/issues/17.  In the current design you need to set TypesBitmap which is byte array and way unfriendly.
In the new design
new NSECRecord()
{
      Name = "victor." + service,
      Type = { DnsType.TXT, DnsType.SRV },
      NextOwnerName = "1.victor.local"
}

I'll have a release in a few hours and will ping you.

The new NSECRecord is available in release v0.12.0
Hope it helps!

@victorkani Are you ready to close this issue?


Fix sha256 url missing '/release/' to download kubectl

In the kubectl install documentation, the link to download kubectl is correct but the link to download the checksum (sha256) is missing /release/ as path prefix.

For consistency's sake,
/lgtm

/approve


Add PPP and miscellaneous fixes

Codecov Report

Merging #196 (347d6cb) into master (0f582fb) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

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


resources in sample at wrong location

When downloading your project, these resources are missing in the sample:
ContextMenuSample/ContextMenuSample.iOS/Resources/phila.png
ContextMenuSample/ContextMenuSample.iOS/Resources/nets.png
ContextMenuSample/ContextMenuSample.iOS/Resources/bulls.png
Same for Android drawable folder.
For some reason, they are located in this folder: C:\Users\Zure1\Downloads\ContextMenu-master\ContextMenu-master\files

@Zure1 haha) cool) anyway thanks for feedback


NKF corresponds to the code in the ablation experiment？

Hi, in the ablation experiment, the NKF corresponds to that section of the code which is published?
@dyhBUPT

Hi, sorry but we only release the codes for iKUN, none for NeuralSORT.


Entity Framework: Vector operations

I have made the EF plugin more functional. Now we can use vector operators (<=> <-> <#>) inside a Linq sequence instead of an explicit SQL string (this is a better approach for ORM). If it's a good idea, I can also do mapping for * + - operators.
I also added a couple of useful changes to make further development easier: .NET standard .gitignore file and unit testing inside a virtual environment (Docker).
I'd really like these changes to be part of the main repo, not just in my fork. All my changes may need to be reviewed and discussed.
Current usage:
var items = await ctx.Items
    .FromSql($"SELECT * FROM items ORDER BY embedding <-> {embedding} LIMIT 5")
    .ToListAsync();

Suggested usage:
var items = await ctx.Items
    .OrderBy(x => x.Embedding!.EuclideanDistance(embedding))
    .Take(5)
    .ToListAsync();

Changes:

Extension methods for operators added:

<#> (InnerProduct)
<=>  (CosineDistance)
<->  (EuclideanDistance)

Additional changes:

Added default .gitignore for .NET projects
Ability to run unit tests inside Docker

Hi @gluschenko, thanks for the PR! It'd be great to include these. A few notes:

Please keep the changeset to a minimum (no changes to .gitignore, test setup, etc)
Let's use L2Distance, MaxInnerProduct, and CosineDistance for the names for consistency with the other libraries
Let's use the distance operators (<->, <#>, <=>) rather than function names

@roji, I agree with all of your suggestions.
@ankane, answers for your notes:

OK
OK
Initially I spent a lot of time to attempting to use operators in the generated query. However I decided to make function calls to avoid wasting time further as it's just proof of concept. It would be cool to make operators exactly (<=><-><#>), so I will try again.

Supporting custom operators from an EF plugin is indeed not trivial - but fortunately there's some support built for that into the Npgsql EF provider. Take a look at PostgresUnknownBinaryExpression: it can represent arbitrary operators (such as the above).

Thanks @gluschenko! Merged a minimal version in the commit above.

@ankane, I'm glad that my work became useful. However, the final changes in the master are twice less, than my PR. It seems like there are no the unit tests and README edits with examples of new features. Was all of this really unnecessary?
I'm also curious to know, when these changes will be available as a NuGet package. Or, are these changes too minor to publish a new version of NuGet?

Just pushed Pgvector.EntityFrameworkCore 0.1.2 to Nuget.
The readme changes for that specific example needed to wait until the release, or else the instructions wouldn't work.
I've improved the tests in ff4ea8b5329bf226be7b2f28f5de803f833cedfa, which should have the same test coverage with less code. Changing Equals for Vector is breaking, so can't be done until 0.2.0.


PHP 8.2 compatibility

Upcoming release https://wiki.php.net/todo/php82 already started to publish releases
There's few incompatibilities detected so let's collect them under this issue
On July 21 first beta will be published but some changes already could be caught

https://php.watch/versions/8.2/${var}-string-interpolation-deprecated
https://php.watch/versions/8.2/partially-supported-callable-deprecation
https://php.watch/versions/8.2/dynamic-properties-deprecated

PHP 8.2.0RC2 is out and I don't expect any other breaking changes - https://wiki.php.net/todo/php82
When I run unit tests in php 8.2 on the latest commit including #260 , tests pass.
I'm still waiting for a release to be created including that commit, though - until then I've been suppressing the notices from this library in a custom error handler

@TysonAndre Are you sure you are on version 1.11.0? #260 is included in that

Never mind, I just got confused by two things - webmozart/assert is working in 8.2 for me

I was rebasing old branches of a project and used an outdated composer.lock and workaround
https://github.com/webmozarts/assert/blob/master/CHANGELOG.md#1110 didn't mention anything about php 8.2 compatibility. I initially misread the date of the changes

Great, i'm gonna close this issue then.


Export tensors to numpy

export tensors to .npy
** see the format here: https://docs.scipy.org/doc/numpy/neps/npy-format.html
** example of dictionary: {'descr': '<i8', 'fortran_order': False, 'shape': (10000,), }
have apps/info_task to export task (enhanced) minibatches to numpy to plot them using matplotlib
remove image_grid_t
add unit test to check saving & loading tensors to & from .npy

Moving away from python to bash & gnuplot


Fix System.OutOfMemoryException when 512 calls to BeginContainer were made since application start

Fixing an issue with the state count not being decremented (stack not popped) when EndContainer is called. This would cause a System.OutOfMemoryException when 512 calls to BeginContainer were made since application start.

It was broken by #561.

Cherry-picked to release/6.0.


Remove version: Redisant.ZooKeeperAssistant version <IP_ADDRESS>

All InstallerUrls returned 404 Not Found

https://github.com/chenjing1294/zookeeper-assistant-release/releases/download/v<IP_ADDRESS>/ZA-<IP_ADDRESS>-windows.zip

Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/chenjing1294/zookeeper-assistant-release/releases/download/v<IP_ADDRESS>/ZA-<IP_ADDRESS>-windows.zip
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 924)


Infinite loading chunks if using a vanilla nether portal, close to the locations of immersive portals.

According to your testing, does the issue occur with ONLY Immersive Portals mod installed?
No
Forge Version
40.1.80
ImmersivePortals Version
1.4.12-mc.1.18.2
Latest Log
n/a
Crash Report (if applicable)
No response
Steps to Reproduce

Made an immersive portal that connects my house to the nether.
Make vanilla Nether portals in the same chunk on each overworld and nether, for your trains ofc.
Go through the vanilla nether portal.
Go Back Through again.
Sit and wait for chunks to load indefinitely or /kick yourself, or kill game.

What You Expected
Do the normal portal thing!
What Happened Instead
You get a infinite loading chunks glitch till relogging. Also another thing to note is if you do this and return to the nether/overworld in a different chunk, the chunk that the immersive portal and nether portal is on is a big void in the world until relogging, stepping into it will "capture" you or make you invisible until Relogging (Dont think it makes you invis to other players.)
Additional Details
Also in the server command prompts say [15:10:08] [Server thread/INFO] [Portal/]: ignored dubious move packet minecraft:overworld 29.119782911208716 64.58096308195604 28.616150955526063 270.5<PHONE_NUMBER>8909024<PHONE_NUMBER>3038643 Removed my immersive portal from this locations in both the nether and overworld and works again.
Please Read and Confirm The Following

[X] I have confirmed this bug can be replicated without the use of Optifine.
[X] I have confirmed the details provided in this report are concise as possible and does not contained vague information (ie. Versions are properly recorded, answers to questions are clear).
[X] I have confirmed this does not happen on the fabric version (If it does please report to here instead).
[X] I have confirmed I'm not using a hybrid server (Magma, Cauldron) or a different (non official) Forge Server release.
[X] I have confirmed this issue is unique and has not been reported already.

Please provide a log.

@LewdSenpaido without a log I can't diagnose this


First draft "v0.1"

This simple client works and is documented.
Asnyc support will follow.

I've got some ideas for cleanup, but this is a great start. I'll sort out the architecture in another PR.


tt elements not allowed in html5 - replace with var ?

Re, the html default templates (and their css.)
<tt> elements are not allowed in html5.
Q? Should they be replaced with <var> elements ?
(1) Basically it will be a search and replace on the erb files.
But should these new files be put in a new format folder "html5" ?
(2) And then a check through the default stylesheet(s) to add selector chains with var wherever tt is currently used.
(It is probably a good idea to leave the selector chains with tt in the stylesheet for now, as custom templates may rely upon them for some time to come.)
"default/fulldoc/html/css/full_list.css"
No occurances of tt
"default/fulldoc/html/css/styles.css"
Occurances of tt:
L96
L241
L256
L257
L270

I am wondering if perhaps ERB can replace html elements when it parses ".erb" files ?

Is there a reason to change this? Can you list any browsers that reproduce rendering problems?

Just asking a question.

Can you list any browsers that reproduce rendering problems?

I would not call following the specification a problem. Unknown or not allowed elements are supposed to be ignored. As at some time in the future, pages rendered with strict will likely not display those elements that are no longer allowed. (If things follow the same behavior as they did in the past.)
NO, I have not yet done any testing.
And well I thought perhaps maybe you may wish to do some planning ahead for default html5 template(s). There may be other elements that are no longer "allowed". (I have only noticed <tt> so far.)
I thought I'd your opinion, about how best to handle something like this. (Just humor me.)
If you had to,.. would you change the default "html" template, or create a new one beside it named "html5" ?
If you don't know (or care,) then maybe tag this issue with "Question" and "Investigate" and perhaps someone else will weight in.
Or perhaps there is a YARD forum somewhere I do not know of, that is better for these type of questions ?

Is there a reason to change this ?

I my mind yes,... since I'm editing basically all of the erb files, (for my custom template,) I thought I might as well change them now. (Three years from now, I won't want to spend two weeks relearning the guts of YARD all over again.)

@lsegal well, it is not valid HTML5 markup.. but i doubt it's gonna break in any browsers anytime soon. still, the w3c validator test for the base64 module docs (generated by yard of course) notes "tt" is obsolete and recommends using CSS instead. it's not the only warning/error though.

@DanRathbun sorry, I may have been misunderstanding your question:

Q? Should they be replaced with  elements ?

I was understanding this to mean should they be replaced in YARD's codebase. If you are customizing your templates, you can feel free to customize anything you like in order to comply with whatever requirements you have.
To answer your second question, yes, YARD does have a mailing list for dicsussions:
https://groups.google.com/forum/#!forum/yardoc
The GitHub issues list is more for problems / features meant to be added to YARD itself. This is why I thought we were talking about making changes to YARD.

If you are customizing your templates, you can feel free to customize anything you like in order to comply with whatever requirements you have.

Of, course this is obvious. What I do in my template will not effect anyone else unless they adopt my template. And of course, I can decide to use <pre> elements (or just a <div> or <span> with monospace css font-family,) ... as <var> elements are said to be rendered in italic style by most browsers.

I thought we were talking about making changes to YARD.

Well, ... I was bringing up the issue, that I have found obsolete elements in the default template. I suspected that there are more issues related to html5, and @r-obert  has confirmed this.
I am the kind of person who likes to plan ahead and fix things when they are right in front of me. I do not like to put things off if I suspect they'll pop up to bite me later.
So, yes I posted it here to make you and YARD contributors generally aware of html5 issues. But wrote it aimed towards a known specific issue (as I thought it might be rejected out of hand if it were a general issue / question.)
@r-obert, thank you for the validation report! It shows there are also some other issues with the default templates. (Stylesheets could use a first line of: @charset "UTF-8" and templates remove charset attribute from <link> elements loading stylesheets.)
I see the <div> not allowed beneath <span> elements as the most problematic.
So, Loren, seeing as how there are a great many users affected using the current default "html" template, ... I wondered if it was smarter to create a side-by-side clone named "html5", that could be used via command line parameter:
"yardoc -f html5"
Or perhaps you have a better idea ? A plugin that automatically on-demand "html5-ifies" the current default "html" template ??

@DanRathbun the html template uses the HTML5 doctype, so it is HTML5 with a few markup errors. fixing them in one template sounds better than creating two templates, one broken and one fixed, then defaulting to the broken one.

@r-obert I agree, but was reluctant to break current sites. Having a temporary format template specifically for "html5" could serve as a test in the interim. (I am wary of using Git branches as I've already sync'd to the wrong branch before and lost edits. Not an expert at all the ins and outs of Git.)
Then again, the current template isn't exactly broken yet.

Sorry, this thread is hard to follow.
You're both right-- yes, there are theoretical future problems with the markup being used, but also, yes, changing this in the library would probably break a couple of users relying on <tt> styling. Breaking users is a much more immediate issue, and so changing this is a non-starter right now, unless you can provide a case where real-world users are already being affected.
Creating a new html5 template is also not a valid solution since it's unlikely to ever be used by users (we found that nobody opted into alternative templates when we had them). That codebase is likely to languish since it won't be in the direct usage path and nobody will be maintaining or reporting issues on it.
Unless someone can provide a concrete case where users are affected by this or will be at some known time ("in the future" is not an argument here since there is no actual timeline for deprecation and realistically <tt> is unlikely to ever be ignored outright by user-agents any time soon), I'm inclined to close this as WontFix.

Or perhaps you have a better idea ? A plugin that automatically on-demand "html5-ifies" the current default "html" template ??

You're also free to write this. If a large number of users are using this over YARD's default template, we can re-have the discussion, but not breaking existing users will always be a priority over these kinds of refactors.

Everything you say is understandable. But a few notes:

... yes, changing this in the library would probably break a couple of users relying on <tt> styling.

I did note above, (and even searched using my code editor,) every occurrence of tt in the stylesheets, and said that any current rules (for tt) should not be removed, but rather have whatever element would replace <tt> in the templates, be added into the selector sets for the same rules.

Creating a new html5 template is also not a valid solution since it's unlikely to ever be used by users (we found that nobody opted into alternative templates when we had them).

I meant this only as a temporary "test bed" template. But I suppose it could be added into a YARD install via a gem or plugin ? (Then, testers would be installing purposefully in order to test, via -f html5 CLI parameter.)
So then it wouldn't need be in the default YARD gem at all.
(Until some time in the future when it is needed.)

... (we found that nobody opted into alternative templates when we had them).

I cannot see why. Everyone I know who has to use the output from the default html template does not care for how the results work. The 4 guys guys I know who have their own projects and know how YARD works, are planning on doing their own templates from scratch.
Anything more than tweaking a few styles with an addendum stylesheet, quickly becomes a convoluted timesink. (It seems no management anywhere wants to spend any more time or money on documentation than the basics.)

You're both right-- yes, there are theoretical future problems with the markup being used, but ...

The <tt> elements are not the only issue that is found by the validator.
In addition, because of misuse of <div>, (a block element,) as inline,... the validator has not fully checked the output.

You're also free to write this.

Ok. Will do. I'll put a html5 template in my own repo, as a plugin or a gem addon.
This will also allow me to do some hierarchical structure changes to the output, and add navigation features.

Unless someone can provide a concrete case where users are affected by this or will be at some known time ("in the future" is not an argument here since there is no actual timeline for deprecation and realistically <tt> is unlikely to ever be ignored outright by user-agents any time soon), I'm inclined to close this as WontFix.

I'll save you the trouble, since I opened it.
Recently many people were the victims of this same thinking, twice over. Once because suddenly Google Maps API not longer wanted to support MSIE below version 10, and began displaying a warning to users that they needed to update their browsers, or use another one. Problem is it wasn't a browser. It was a browser frame inside an application process.
The other issue occurred when browser emulation version was increased, it broke javascript code (running in these embedded browser frames,) that still used old deprecated Microsoft IE only event names,... which was no longer allowed in MSIE v11.
The point I'm making is that both of these situations (one causing the other,) were foreseeable and preventable because features were deprecated and ample time was given to adjust products. But preventative maintenance was not done, and the failures occurred right in the face of the users, preventing the customers from doing the work they do with the software product. They then freak out, post in the forums, they need to install fixes, etc.
Ok. So I had my say. I've given you a "heads up".


another way to customize getting service instance in service subscribe and fixes #908.

Describe what this PR does / why we need it
another way to customize getting service instance in service subscribe and fixes #908.
Does this pull request fix one issue?
Fixes #908
Describe how you did it
Describe how to verify it
Special notes for reviews

Refer https://github.com/alibaba/spring-cloud-alibaba/wiki/如何贡献代码.
we need eclipse code format to format code and disable optimize imports in intellij idea.


ErrInvalidParams when trying to use my vault

Hello, i get this error after changing my env duration from  1 hour to 15 mins
└─ $ ▶ vaulted shell aws-env --assume $myarn
Vault 'aws-env'
   Password:
   MFA token: ******
panic: runtime error: hash of unhashable type request.ErrInvalidParams

goroutine 1 [running]:
main.main()
        /root/go/src/github.com/miquella/vaulted/main.go:52 +0xfc

this my vault dump file
{
  "duration":<PHONE_NUMBER>00,
  "aws_key": {
    "id": "*************************",
    "secret": "********************************************",
    "mfa": "******************************",
    "forgoTempCredGeneration": false
  }
}

@abualy: Now that #113 is merged, the actual error message is being displayed 😄
After a quick bit of digging we realized the duration provided to the STS API is always just a little shy of the configured value (due to how things are plumbed internally in Vaulted). Because of this, when the duration is set to the minimum value of 15 minutes, Vaulted ends up sending 14 minutes 59 seconds, causing the ErrInvalidParams error you were seeing.
We're looking into what we might be able to change to avoid this, but in the meantime you should be able to set your duration just a bit higher (e.g. 16 minutes) to avoid the issue.


make test fails on 1.4.0 version

$ make test
env NAME=osixia/openldap VERSION=1.4.0 bats test/test.bats
 ✓ image build
 ✓ ldapsearch new database
 ✓ ldap domain with non-matching ldap base dn
 ✓ ldap domain with matching ldap base dn subdomain
 ✓ ldap base dn domain with matching ldap subdomain
 ✓ ldap domain with ldap base dn subdomain included
 ✗ ldapsearch database from created volumes
   (from function `wait_process_by_cid' in file test/test_helper.bash, line 80,
    in test file test/test.bats, line 92)
     `wait_process_by_cid $LDAP_CID slapd' failed with status 143
   9b14b2ea373096b8cc6418e4580dc2f1bb87de4eacd21c01167b0a6df1b92f10
 ✗ ldapsearch database with password provided from file
   (in test file test/test.bats, line 120)
     `[ "$status" -eq 0 ]' failed
 ✗ ldapsearch new database with strict TLS
   (in test file test/test.bats, line 134)
     `[ "$status" -eq 0 ]' failed
 ✓ ldapsearch new database with strict TLS and custom ca/crt
 ✓ ldapsearch new database with strict TLS and custom ca/crt and custom dhparam
 ✓ ldapsearch existing hdb database and config
 ✗ replication with new databases and strict TLS
   (in test file test/test.bats, line 205)
     `docker exec $LDAP_REPL_CID ldapadd -x -D "cn=admin,dc=example,dc=org" -w admin -f /container/service/slapd/assets/test/new-user.ldif -h ldap2.example.org -ZZ' failed
   ldap_start_tls: Connect error (-11)
   	additional info: (unknown error code)

13 tests, 4 failures

Makefile:13: recipe for target 'test' failed

Same result for me.... Maybe related to https://github.com/osixia/docker-openldap/issues/506 ?

Same result for me.... Maybe related to https://github.com/osixia/docker-openldap/issues/506 ?

After updating to the latest base image in https://github.com/osixia/docker-openldap/pull/521, there is only one test failure left:
✗ ldapsearch database from created volumes
Same result on Travis: https://travis-ci.org/github/osixia/docker-openldap/builds/755991299

After updating to the latest base image in https://github.com/osixia/docker-openldap/pull/521, there is only one test failure left:
✗ ldapsearch database from created volumes
Same result on Travis: https://travis-ci.org/github/osixia/docker-openldap/builds/755991299

The problem seems to me around here: image/service/slapd/startup.sh#L159
Test: ✗ ldapsearch database from created volumes

Code startup.sh:
    ...
    if grep -iq changetype $LDIF_FILE ; then
        ( ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f $LDIF_FILE 2>&1 || ldapmodify -h localhost -p 389 -D cn=admin,$LDAP_BASE_DN -w "$LDAP_ADMIN_PASSWORD" -f $LDIF_FILE 2>&1 ) | log-helper debug
    else
    ...

Output:
   ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f /container/service/slapd/assets/config/admin-pw/ldif/07-admin-pw-change.ldif
   ldap_modify: No such object (32)
        matched DN: dc=example,dc=org
   modifying entry "cn=admin,dc=example,dc=org"

   ldapmodify -h localhost -p 389 -D cn=admin,dc=example,dc=org -w admin -f /container/service/slapd/assets/config/admin-pw/ldif/07-admin-pw-change.ldif
   ldap_modify: No such object (32)
        matched DN: dc=example,dc=org
   modifying entry "cn=admin,dc=example,dc=org"

The problem seems to me around here: image/service/slapd/startup.sh#L159
Test: ✗ ldapsearch database from created volumes

Code startup.sh:
    ...
    if grep -iq changetype $LDIF_FILE ; then
        ( ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f $LDIF_FILE 2>&1 || ldapmodify -h localhost -p 389 -D cn=admin,$LDAP_BASE_DN -w "$LDAP_ADMIN_PASSWORD" -f $LDIF_FILE 2>&1 ) | log-helper debug
    else
    ...

Output:
   ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f /container/service/slapd/assets/config/admin-pw/ldif/07-admin-pw-change.ldif
   ldap_modify: No such object (32)
        matched DN: dc=example,dc=org
   modifying entry "cn=admin,dc=example,dc=org"

   ldapmodify -h localhost -p 389 -D cn=admin,dc=example,dc=org -w admin -f /container/service/slapd/assets/config/admin-pw/ldif/07-admin-pw-change.ldif
   ldap_modify: No such object (32)
        matched DN: dc=example,dc=org
   modifying entry "cn=admin,dc=example,dc=org"

Combining #521 and #525, all tests pass now.

Combining #521 and #525, all tests pass now.


Jakarta persistence module proposal

Changes

Create a Jakarta Persistence Module

Based on this discussion: https://github.com/jakartaee/data/pull/477

Otavio - before you get too far along this path, this is not something that we can get into version 1.0.  We can look at additional repositories in the next version.


[SPARK-48307][SQL] InlineCTE should keep not-inlined relations in the original WithCTE node

What changes were proposed in this pull request?

I noticed an outdated comment in the rule InlineCTE
      // CTEs in SQL Commands have been inlined by `CTESubstitution` already, so it is safe to add
      // WithCTE as top node here.

This is not true anymore after https://github.com/apache/spark/pull/42036 . It's not a big deal as we replace not-inlined CTE relations with Repartition during optimization, so it doesn't matter where we put the WithCTE node with not-inlined CTE relations, as it will disappear eventually. But it's still better to keep it at its original place, as third-party rules may be sensitive about the plan shape.
Why are the changes needed?

to keep the plan shape as much as can after inlining CTE relations.
Does this PR introduce any user-facing change?

no
How was this patch tested?

new test
Was this patch authored or co-authored using generative AI tooling?

no

cc @viirya @amaliujia @MaxGekk

This is not true anymore after https://github.com/apache/spark/pull/42036 . It's not a big deal as we replace not-inlined CTE relations with Repartition during

`Repartition? Do you mean Relation?

Repartition? Do you mean Relation?

It's Reparition, because we rely on shuffle reuse to reuse CTE relations.

thanks for the review, merging to master!

late LGTM


ssh: fix substitution when using experimental nix copy

This patch fixes the substitution (e.g. cache.nixos.org) on remotes when deploying a flake-based colmena hive, which implies the use of the experimental nix3 copy (since 7fac0278e196ff52cfa2622f62cbbca462db12d5).
I consider this a UX bug in nix and its ssh-ng:// itself.
I think this is because ssh-ng:// simply hasn't implemented --substitute-on-builders yet.
--builders-use-substitutes works, however (https://github.com/NixOS/nix/pull/4180).
The old/legacy ssh:// does not have this issue with nix3 copy.
I'll try to look a bit more into this in the future and will consider submitting a patch in upstream.
But for now, this patch should suffice.
Especially considering it will take quite some time until that patch is available in a new nix release and installed on everyone's hosts :^)

Reasonable change, thank you!