Add efficient identification within a segment

We only need to embed a few of the best chips within a particular shot to identify who they are. We should pick the best frames and use those for identification. We should do this so we still do efficient batching on the GPU.
This only makes sense for OpenPose.

This snippet has some nice ideas for face keyframe selection. is_blurred might be a good idea:
https://gist.github.com/facepainter/adfaabe25831a7c9300bafd1b886e1c8


Video is playing in background

Hi, when app is in background  (pause state) video is still playing in background kindly help.

@falguni0314  I am facing similar problem did you fix it for yourself?

Did you solve this?

Facing this issue on Android only. Only When video is playing in fullscreen. After going back from fullscreen the video did not stop.


How to use TURN_SERVER_OVERRIDE config in AppRTC-Android client?

Browsers and versions affected
AppRTC-Android,  https://chromium.googlesource.com/external/webrtc/+/832e67a2c35f20de648bc4b532ef15092ae912f0
Description
The AppRTC-Android client would expects pc_config.iceServers field from response for TURN and STUN server urls, but apprtc server will always return empty pc_config.iceServers, should I modify AppRTC-Android code or apprtc server code? Thanks!
Steps to reproduce
Expected results
Actual results

So if you uncomment https://github.com/webrtc/apprtc/blob/master/src/app_engine/constants.py#L26 and populate it with your own turn server, pc_config.iceServers is empty?

Thanks for your response! I tried that, and then turn_server_override becomes not empty, but pc_config.iceServers still empty.

I think, if we don't modify code of AppRTC-Android client, then we should not return turn_server_override field in room params, we should read TURN_SERVER_OVERRIDE value then put it into pc_config.iceServers, like below:
TURN_SERVER_OVERRIDE = [
  {
    "urls": "turn:<IP_ADDRESS>",
    "username": "ninefingers",
    "credential": "youhavetoberealistic"
  },
  {
    "urls": "stun:stun.l.google.com:19302"
  }
]

==>
  config = {
  'iceServers': [{"urls":"stun:stun.l.google.com:19302"},{"urls":"turn:ninefingers@<IP_ADDRESS>","credential":"youhavetoberealistic"}],
  'bundlePolicy': 'max-bundle',
  'rtcpMuxPolicy': 'require'
  }

I've tested, it works!

And the ICE server's code:
var express = require('express')
var crypto = require('crypto')
var app = express()

var hmac = function (key, content) {
  var method = crypto.createHmac('sha1', key)
  method.setEncoding('base64')
  method.write(content)
  method.end()
  return method.read()
}

app.get('/iceconfig', function (req, resp) {
  var query = req.query
  var key = '4080218913'
  var time_to_live = 600
  var timestamp = Math.floor(Date.now() / 1000) + time_to_live
  var turn_username = timestamp + ':ninefingers'
  var password = hmac(key, turn_username)

  return resp.send({
    iceServers: [
      {
        urls: [
          'turn:ICE_SERVER_ADDR:3478?transport=udp',
          'turn:ICE_SERVER_ADDR:3478?transport=tcp',
          'turn:ICE_SERVER_ADDR:3479?transport=udp',
          'turn:ICE_SERVER_ADDR:3479?transport=tcp'
        ],
        username: turn_username,
        credential: password
      }
    ]
  })
})

app.listen('3033', function () {
  console.log('server started')
})

I solved the issue by modifying the AppRTC Android client where the error is to get a String instead of a JSON Array as it's done in the requestTurnServers method.
In the AppRTC server  modify the code as follows:
# iceServers will be filled in by the TURN HTTP request.
def make_pc_config(ice_transports, ice_servers_override = None):
  config = {
  'iceServers': [],
  'bundlePolicy': 'max-bundle',
  'rtcpMuxPolicy': 'require'
  };
  #begin: patch
  #add the following block of code
  if ice_servers_override:
    config['iceServers'] = ice_servers_override
  #end: patch
  if ice_transports:
    config['iceTransports'] = ice_transports
  return config

And in get_room_parameters function change the following assignment:
pc_config = make_pc_config(ice_transports)
into:
pc_config = make_pc_config(ice_transports, turn_server_override)
Regards.

Just to clarify terminology here, TURN server override allows you to add a TURN/STUN server URL directly whilst ICE server is a URL for a web server that returns TURN/STUN server URLs and credentials.
Changing ICE servers is done in constants.py by changing the ICE_SERVER constants (if you have a web server returning TURN/STUN URLS and credentials).
Turn server override disables the ICE server fetching logic and apprtc will use the TURN/STUN servers provided in the TURN_SERVER_OVERRIDE constant in constants.py (if you only have TURN & STUN server like coturn).
I will take a look at this and see if we can get it to work on AppRTCMobile as well.

I've made the change as suggested in https://github.com/webrtc/apprtc/issues/456#issuecomment-351020935.


chore: no need for package script semantic-release

Hey, just checking out your cool things! 💯  So I noticed a semantic-release script in package.json that just aliases the executable from the dependency. Just wondering if there's an awesome reason this is good anyway (perhaps to document?), otherwise, if you weren't aware:

yarn run [script] []
[script] can also be any locally installed executable that is inside node_modules/.bin/

https://classic.yarnpkg.com/en/docs/cli/run/#toc-yarn-run-script

Also just realized this template is a fork of another template, so I filed the change upstream as well: https://github.com/beeman/template-typescript-package/pull/183


Feature/share api docs

Purpose
Add a route and mako file that will display the SHARE API docs
Changes

Add route at osf.io/share/help for api docs
Add mako page containing an iframe with the API doc content
Add spot in defaults for the url for the api docs on share app

Side effects

The url for the share api help page will have to be added in local.py - it should be the same base domain as the SHARE registration page, and then /help

@sloria ready for CR!


Sample Update - Delete all Microsoft 365 groups and SharePoint sites

What's in the pull request

Added CLI for Microsoft 365 script samples that shows how you can delete Microsoft 365 Groups and associated SharePoint Online sites in your development environment.

Final one - thank you again for all the samples @ganesh-sanap - this one will be live shortly 😃


[Feature] Integrate some simple trace into be HTTP service

What type of PR is this：

[ ] bug
[x] feature
[ ] enhancement
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

run starrocks_clang-format

run starrocks_be_unittest


Add connection age limits to avoid connection reset by host

I didn't finish the review because I think that while this'll work, there's a more fundamental issue:
Celery Task objects are instantiated only once [1], given that Collector objects are a subclass of Task and that the various collectors subclass JiraQuerier and BugzillaQuerier this means that the connection is created only once for the container's entire lifecycle.
If we change the Collector objects to not subclass from JiraQuerier and BugzillaQuerier and instead have them individually instantiate the querier objects when running the task, we'll have the best of both worlds:
* During the task's runtime, the connection will be reused as much as possible (with dumb caching, no need to cache per user/token/etc. as the user/token won't change during the task's runtime).

* After the task has finished running, the querier objects will be garbage collected as they are no longer in scope, once the task reruns a new querier object (=new connection) will be created

[1] https://docs.celeryq.dev/en/latest/userguide/tasks.html#instantiation

@Elkasitu this assumes that a single task run is always under the connection time span limit. How do you know that it is the case? I mean how do you know that the scheduler under the resource limiting cannot hold the task idle too long and that this together with some potentially long running duty (like mega flaw) is always going to be under the connection life time limit?

See https://github.com/RedHatProductSecurity/osidb/pull/389 for new iteration.


Add support for custom types

Unsure if it's by design, or if I've misunderstood it's use, but it seems that zod-to-json-schema ignores "custom" types:
import { z } from 'zod'
import zodToJsonSchema from 'zod-to-json-schema'

const schema = z.array(z.custom<string>((x) => typeof x === 'string'))
console.info(zodToJsonSchema(schema))

Outputs:
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "array",
  "items": {}
}

Would be very helpful if this was supported.

Having a poke through the code base, I realised that this may be very difficult, if not impossible.
However, it looks possible to base a custom refinement on a preprocessor.
const schema = z.array(
  z
    .preprocess(x => x, complexType)
    .refine(x => /* refinement */)
)


Add WebSphere Liberty 23.x plugin.(#10887)

Add an agent plugin to support WebSphere Liberty

[x] Add a test case for the new plugin, refer to the doc
[x] Add a component id in the component-libraries.yml
[ ] Add a logo in the UI repo

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #10887
[x] Update the CHANGES log.

I am a little confused, why shade?

com.ibm should be in codes, and you should exclude those(com.ibm.*) when package.
Could you explain your way?

I am a little confused, why shade?

Checkstyle requires sourcecode package name must start with org.apache.skywalking.apm.plugin, so i put websphere fake class under org.apache.skywalking.apm.plugin.webspheresource.com.ibm.ws.webcontainer.async.
If not shade, websphere runtime will throw java.lang.NoClassDefFoundError for org.apache.skywalking.apm.plugin.webspheresource.com.ibm.ws.webcontainer.async.CompleteRunnable.class missing

@wu-sheng @xu1009 I made the following changes in this commit:

move mock class to com.ibm.** package and add them to check-style exclude list
use com.ibm.ws.webcontainer.WebContainer.handleRequest(IRequest, IResponse) as interceptor point, it is high level  class and hided the detail of real implement(javax or jakarta). So the plugin still keep one.

move mock class to com.ibm.** package and add them to check-style exclude list

I can't find it in the change log. There are the changes?

move mock class to com.ibm.** package and add them to check-style exclude list

I can't find it in the change log. There are the changes?

Yes, mock classes are currently in com.ibm.** packages and I add these mock classes to maven-checkstyle-plugin exclude list


feat: revamp contact us form design with enhancements 🪄✨

Description

Revamped the Contact Us form design to enhance accessibility and user experience.
Now the Contact Us form will have a better responsive design compared to old form design.
This PR is to improve the overall design of Contact Us from by revamping per UI & UX Principles

Fixes #784
Screenshots

BEFORE
AFTER

Checklist

[x] Tests have been added or updated to cover the changes
[x] Documentation has been updated to reflect the changes
[x] Code follows the established coding style guidelines
[x] All tests are passing

Please merge this PR @SurajPratap10


test_files is obsolete

No functional purpose since 2014
See: https://github.com/rubygems/guides/issues/90

@fede-moya Please review this 🙏


Override  tableView:sourceIndexPath:to: func

how i can override this func  ?
func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath)
i need this to reorder items in database

Right now you have 2 options:

Use default behaviour for MemoryStorage - if it suits you https://github.com/DenHeadless/DTTableViewManager/blob/master/Source/DTTableViewManager.swift#L809-L818 (in most cases it should).
Make yourself conform to UITableViewDataSource protocol and implement this method on DTTableViewManageable instance. Unfortunately, this will force you to implement other datasource methods, but you can redirect them to DTTableViewManager instance.

I will probably add 3 option as block event in the future, seems this method was missed when i was implementing other events. I will leave this issue open as a reminder, if you don't mind.

ok, thank you for answer!

please help me again, how to conform to UITableViewDataSource ?
i'm trying this:
self.tableView.dataSource = self
but it don't call dataSource functions


Reverse mode

Implementation for --reverse mode. This is actually an alternate implementation for the first one that was proposed via this PR - https://github.com/naiquevin/pipdeptree/pull/33.
The changes on this branch includes major refactoring of code.

Example outputs
$ python pipdeptree.py -w
Fabric==1.8.2
  - paramiko [required: >=1.10.0, installed: 1.15.2]
    - ecdsa [required: >=0.11, installed: 0.13]
    - pycrypto [required: >=2.1, installed: 2.6.1]
watchdog==0.6.0
  - PyYAML [required: >=3.09, installed: 3.11]
  - argh [required: >=0.8.1, installed: 0.23.3]
  - pathtools [installed: 0.1.2]
Jinja2==2.7.1
  - markupsafe [installed: 0.18]
pylint==1.0.0
  - logilab-common [required: >=0.53.0, installed: 0.60.0]
  - astroid [required: >=0.24.3, installed: 1.0.0]
    - logilab-common [required: >=0.60.0, installed: 0.60.0]
argparse==1.1
Pygments==1.6
mdx-smartypants==1.5.0
  - Markdown [required: >=2.0, installed: 2.3.1]
  - namedentities [required: ==1.5.2, installed: 1.5.2]
  - guess-language [required: >=0.2, installed: 0.2]
wsgiref==0.1.2

$ python pipdeptree.py -wr
pycrypto==2.6.1
  - paramiko==1.15.2 [requires: pycrypto>=2.1]
    - Fabric==1.8.2 [requires: paramiko]
Markdown==2.3.1
  - mdx-smartypants==1.5.0 [requires: Markdown>=2.0]
markupsafe==0.18
  - Jinja2==2.7.1 [requires: markupsafe]
PyYAML==3.11
  - watchdog==0.6.0 [requires: PyYAML>=3.09]
Pygments==1.6
argparse==1.1
wsgiref==0.1.2
argh==0.23.3
  - watchdog==0.6.0 [requires: argh>=0.8.1]
logilab-common==0.60.0
  - astroid==1.0.0 [requires: logilab-common>=0.53.0]
    - pylint==1.0.0 [requires: astroid]
logilab-common==0.60.0
  - astroid==1.0.0 [requires: logilab-common>=0.60.0]
    - pylint==1.0.0 [requires: astroid]
namedentities==1.5.2
  - mdx-smartypants==1.5.0 [requires: namedentities==1.5.2]
guess-language==0.2
  - mdx-smartypants==1.5.0 [requires: guess-language>=0.2]
pathtools==0.1.2
  - watchdog==0.6.0 [requires: pathtools]
ecdsa==0.13
  - paramiko==1.15.2 [requires: ecdsa>=0.11]
    - Fabric==1.8.2 [requires: paramiko]

Like your approach; now refactored the code is much easier to follow. Good work :+1:

Thanks. I'll merge my changes into master then and release a new version on PyPI by the end of this week. I really appreciate your PR and all the effort that you put in. It really helped me with my refactoring. Thanks again :-)

No problem! It was an interesting problem to look at, and a useful tool to use. Also helped me learn a few things along the way


Destroy slots with custom ids before recreating them

googletag.defineSlot() returns null if it's invoked more than one time with the same id and the previous slot is not destroyed. It causes runtime errors when custom ids are used. This PR fixes that problem.

I am clearing slot on componentWillUnmount. Is it better to use destroySlot? Your solution is not very good because you need to store slot id outside of the component

I'm using a yield optimizer which requires to use immutable ids provided by him. Without the change from this PR there are runtime errors because:

The object returned by googletag.defineSlot()  is null if the value of id is already used and the slot isn't destroyed (this line - it's the case during ad refreshing).
In this line the slot.setTargeting() method is invoked, but slot is null.

Your solution is not very good because you need to store slot id outside of the component

They are always the same. I received them from the optimizer.

I want to fix it but with correct destroying of the slot in the componentWillUnmount.
What do you think about destroySlot instead of googletag.pubads().clear([this.slot]); Will it help?

The problem is that in my case only componentDidUpdate is invoked, not componentWillUnmount.  I'm refreshing ads by changing the value of the targeting prop. Also please notice that this PR changes the behavior only in this one specific case - if custom ids are used, not the autogenerated ones.

What do you think about destroySlot instead of googletag.pubads().clear([this.slot]);

Of course it would also solve the problem. Should I update the PR?

@seeden
Is there anything else should be changed in this PR to be merged?

Ahhh sorry man. I will do it today. I forgot :)


Crate release supporting serde 0.8

Hey!
Thanks for your great work on this crate. Could we get a release for the changes you made for serde 0.8 ?
Thanks :)

Will upload until @kyeah solves #38

ho, all right, thanks.

Already uploaded with version v0.3.0.


Add check if Sentry was loaded before reporting

Preventing extra exceptions when config has not been published for example (or old config is still cached).

Thanks!


Could not find member 'support_umode_trap' in class 'riscv_instr_gen_config'

Running run.py (on commit 7d80c47) fails with the following error:
$ python3.5 run.py --test=riscv_arithmetic_basic_test -v

...
Top Level Modules:
       riscv_instr_gen_tb_top
TimeScale is 1 ns / 10 ps

Error-[MFNF] Member not found
/home/yildiza/Desktop/work/riscv-dv-latest/src/riscv_asm_program_gen.sv, 406
"this.cfg."
  Could not find member 'support_umode_trap' in class
  'riscv_instr_gen_config', at
  "/home/yildiza/Desktop/work/riscv-dv-latest/src/riscv_instr_gen_config.sv",
  21.

1 warning
1 error
...

Fixed


requesting paper for code

Hi,
can you refer me to the research paper you used to write this code ? it will be helpful.
Thanks

Thanks mate.


Randomly removing links from auto playlist

For some reason every time I check the auto playlist it's missing about 100 songs. Is this a bug or a poorly implemented song cap? Any help would be appreciated :)
you can see there are 321 lines of links in the auto playlist

but a couple days later I check on it and it loses almost 100 links?

If you check the console, you can see why it has removed those links.

Does it log the console output anywhere? I frequently restart the bot so there's usually a fairly empty console.

Ahhhhh I see it says "removed unplayable song from playlist." It was a song from a Disney movie so could it be a copyright issue keeping it from downloading it? I tried downloading it from a youtube to mp3 site and it wouldn't so that's probably it...

Yeah, that's it then.


Apache Hop blog post

Add blog post for Apache Hop with Dataflow

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run Website_Stage_GCS PreCommit

Jobs succeeded, but wasn't updating on github UI
https://ci-beam.apache.org/job/beam_PreCommit_Website_Commit/8357/
https://ci-beam.apache.org/job/beam_PreCommit_Website_Stage_GCS_Commit/8139/


Default handle name in case of empty name.

For several functions such as WindowSize(name string) takes window handle name as argument.
This can be confusing at times and should support default value of "current" in case empty string is passed as argument.
// This doesn't work but should work!
webDriver.WindowSize("")

Resolved


How to fix [lncli] rpc error: code = Unknown desc = no policy for outgoing channel

if I check my channel on my raspiblitz I get
*** YOUR LIGHTNING CHANNELS ***
mainnet                            Commit ------- Balance --------- --- Fee ----
Alias or Pubkey           Capacity   Fee        Local       Remote   Base PerMil

[lncli] rpc error: code = Unknown desc = no policy for outgoing channel<PHONE_NUMBER>05459200
[lncli] rpc error: code = Unknown desc = no policy for outgoing channel<PHONE_NUMBER>05459200
LNBIG.com [lnd-33]          719834    198       358878       360758

[lncli] rpc error: code = Unknown desc = no policy for outgoing channel<PHONE_NUMBER>05459200
Totals          1 ch        719834    198       358878       360758 Day:
[lncli] rpc error: code = Unknown desc = no policy for outgoing channel<PHONE_NUMBER>05459200
Week:
[lncli] rpc error: code = Unknown desc = no policy for outgoing channel<PHONE_NUMBER>05459200
Month:
I found the same problem here:
https://github.com/lightningnetwork/lnd/issues/2911
on end
"No work has been done on this yet. We can likely consider it for the v0.8.0 release."
My question is whether anyone has been working on this problem

Probably LND error at the time. Was it fixed @21-btcclub. If yes, pls close this.


mat-progress-spinner : want to achieve text in middle of it

Hi Guys,
we are using angular material mat-progress-spinner and want to achieve something like this :

can we do it with this.
thanks in advance.

Hello! thanks for this issue.
This is not something officially supported as the Material Design spec does not suggest us showing text within the circle. It's totally do-able though. See for example https://stackoverflow.com/questions/46365836/how-to-set-text-inside-md-progress-spinner-in-angular-4.


biocontainers_v1.2.0_cv1.img => DOWN ?

Hi all,
when I try to launch the 3.0 version of the nf-core/rnaseq pipeline with the -profile test,singularity I obtain the following error :
Error executing process > 'RNASEQ:PREPARE_GENOME:GUNZIP_ADDITIONAL_FASTA (gfp.fa.gz)'

Caused by:
  Failed to pull singularity image
  command: singularity pull  --name containers.biocontainers.pro-s3-SingImgsRepo-biocontainers-v1.2.0_cv1-biocontainers_v1.2.0_cv1.img.img.pulling.1610366333659 https://containers.biocontainers.pro/s3/SingImgsRepo/biocontainers/v1.2.0_cv1/biocontainers_v1.2.0_cv1.img > /dev/null
  status : 255
  message:
    INFO:    Downloading network image
    FATAL:   Download did not succeed: 503 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

    <title>503 Service Unavailable</title>

Service Unavailable

The server is temporarily unable to service your
    request due to maintenance downtime or capacity
    problems. Please try again later.

    <address>Apache/2.4.18 (Ubuntu) Server at containers.biocontainers.pro Port 80</address>

Is it something that one of you can reproduce or is it a restriction on my Institute ?
Thank you very much for your help
Best

I can reproduce this, also simply following the URL gives a 503:
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

I can reproduce this, also simply following the URL gives a 503:
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Thank you, it seems so that it is down since several days as I tested on Saturday, Sunday and today

Thank you, it seems so that it is down since several days as I tested on Saturday, Sunday and today

Hi @mdeloger ! Happy new year! The repo may need a bump again. I have reported it https://github.com/BioContainers/containers/issues/391. Hopefully, should be fixed soon.
You should also be able to download all of the containers required for the pipeline via the method I have outlined in https://github.com/nf-core/tools/issues/818#issuecomment-748046559

Hi @mdeloger ! Happy new year! The repo may need a bump again. I have reported it https://github.com/BioContainers/containers/issues/391. Hopefully, should be fixed soon.
You should also be able to download all of the containers required for the pipeline via the method I have outlined in https://github.com/nf-core/tools/issues/818#issuecomment-748046559

Hi @drpatelh, happy new year too :-)
Thank you very much for the workaround !
Best

Hi @drpatelh, happy new year too :-)
Thank you very much for the workaround !
Best

Hopefully, this should have a persistent fix now https://github.com/BioContainers/containers/issues/391#issuecomment-758429895 too.

Hopefully, this should have a persistent fix now https://github.com/BioContainers/containers/issues/391#issuecomment-758429895 too.

Hi @drpatelh @apeltzer
the biocontainers_v1.2.0_cv1 (https://containers.biocontainers.pro/s3/SingImgsRepo/biocontainers/v1.2.0_cv1/biocontainers_v1.2.0_cv1.img) is down again !


Flow infers incorrectly types when enum is involved and there's an if-else.

Flow version: 0.122.0
SetArray is a function of type (Array) => void.
Code snippet:
(stringOrEnumValue) => {
let newArray;
if (
stringOrEnumValue === enumType.value1 ||
stringOrEnumValue === enumType.value2
) {
newArray = [stringOrEnumValue];
} else {
newArray = [enumType.value1, enumType.value2];
}
SetArray(newArray);
Expected behavior
In both cases newArray is Array, so there shouldn't be a problem.
Actual behavior
Cannot call SetArray with newArray bound to the first parameter because  string [1] is incompatible with  enum [2].Flow(InferError)

Link to Try-Flow or Github repo:

It's more helpful if you provide a try-flow to see what your code actually looks like. Maybe your error is related to your Array<> type but I can't be too sure.
I've tried to replicate your code in a try-flow, and there's no errors, what difference do you have from what I supplied?
https://flow.org/try/#0PTAEAEDMBsHsHcBQiDGsB2BnALqAygKbYCCATqQIYCeoAvKABTYE4BcoZlVAPDqQJboA5gD4AlKwBusfgBM6I0AG8AvgG5kaLLgLoArgFsAKlQAOBOssShQkitD0EAjOwDkTgEwBmVwBprtvaOHm5eACwArH6I6poYOKDMCfQMfIJCAPKkAKL6BgBqQQRiClY20ESg6ATwnNQaNvyQjAE2acJZuYaFDha0-aC6hibmAHR2vU6gAD7TraDtmTl5PY50A0PGZgTjRR4BJUrz1bXk1JYA2oudK0UAug2gKoPQmBZHNjYndTT0F5sjHYTRxOXyDPKA3a9DwPAIqAKEEhnKgMb7IsQaWKIJLYBiuHGuDFAA


MySql Command is override on start

When I start a new MySql container I set a diferent command, but this is override per the method "configure()"
My code:
(MySQLContainer) new MySQLContainer()
                .withDatabaseName("f"+timeStamp)
                .withUsername("f"+timeStamp)
                .withPassword("f"+timeStamp)
                .withCommand("mysqld", "--lower_case_table_names=1")
                .withLogConsumer(new Slf4jLogConsumer(logger));

The code of MYSQLContainer:
    @Override
    protected void configure() {
        optionallyMapResourceParameterAsVolume(MY_CNF_CONFIG_OVERRIDE_PARAM_NAME, "/etc/mysql/conf.d", "mysql-default-conf");

        addExposedPort(3306);
        addEnv("MYSQL_DATABASE", databaseName);
        addEnv("MYSQL_USER", username);
        addEnv("MYSQL_PASSWORD", password);
        addEnv("MYSQL_ROOT_PASSWORD", "test");
        setCommand("mysqld");
        setStartupAttempts(3);
    }

I need this to support case insentive. Do you know athoner way to do this? If not I can fix and open PR.
Another option is add lower_case_table_names=1" in the file my.cnf Or have
a way to add more configurations in the file.
Many thanks.

Hi there, would I be correct in saying the MariaDb test container module also suffers from this same issue (see https://github.com/testcontainers/testcontainers-java/blob/8402356b2784734010c445949eff76ae69159a1e/modules/mariadb/src/main/java/org/testcontainers/containers/MariaDBContainer.java#L42)?
If so, I'd be happy to start working on a PR similar to #560 if you would like me to?
One thing I am unsure of is the fact there's both a mariadb module in this project and a separate testcontainers-java-module-mariadb repository too. To which repo would I submit the PR?

@pauldailly
Yes, you are right. The correct module is the one in the main repository. We've moved all modules to the main repo at one point in time (mono repo). PR very much appreciated :slightly_smiling_face:

Released in 1.8.1! 🎉
Thanks for flagging this, @AlissonMedeiros and @pauldailly.


Switch imports in application.scss

Description
This adds the StartBoostrap sb-admin-2 bootstrap theme which we want to use.
I decided to keep the bootstrap gem for the moment as I think that still adds pros above the newly added styles though the css itself is now the sb-admin-2 version. The downside of this is that we will need to update the theme manually if there are new features added but if we want to use the theme I think this is the only choice.

Type of change
I guess this is a feature change though it isn't user facing yet. I added the library without any changes to the application layout or styling yet in case others wanted access to it quickly. I'm working on the updates to the login page in a separate branch but didn't want those changes holding up the addition of the theme.

New feature (non-breaking change which adds functionality)

How Has This Been Tested?
I have only manually tested on my machine to ensure that switching from the bootstrap import to the sb-admin-2 import didn't break the layout/styling of the application. It does not. As far as I know we have to way of automating such a check

LGTM, @dixpac do you have any feedback?

Noup, looks great..@ludamillion  looking forward to you work on this bootstrap theme 👍


Lower E2E verbosity to 6

Description of changes:
The e2e logs are becoming quite large with max verbosity. This PR lowers the verbosity to 6 so the logs are more manageable while also being useful
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/retest


CSS

#User Story
CSS
##Acceptance Criteria
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow


Bump IDOM to v0.35.4

This resolves all major issues I had detected within Django IDOM, which means that we should be ready for a release.

will take look shortly

@rmorshea Scratch what I said. 0.35.4 is very broken right now.
Any state update I do on a child element results in AssertionError: state mismatch during component update - key '61e47127-9d3f-4954-8235-4d99122134c1'!=4


soroban-cli: add generic tx building and signing

Breaking down this epic into chunks

### Critical for asset issuers to support advanced signing
- [x] Modifying existing commands so they can build a tx only: #1265

### Break up of currently unified behaviors to support composability
- [x] Add a `soroban tx simulate` command. That simulates any given tx and returns the modified/assembled tx that has fees, footprint, etc.
- [x] Add a `soroban tx send` command. Submits to the network, does nothing else.
- [x] Add a `soroban tx sign` command.That supports all existing and future signing capabilities just takes a tx base64 as input and returns it as output. https://github.com/stellar/stellar-cli/issues/1490

### Convenience commands for common tx XDR ops
- [x] Add a `soroban tx decode` command. This could be a lightweight wrapper around the XDR>JSON decoder command, `soroban lab xdr decode --type TransactionEnvelope`.
- [x] Add a `soroban tx encode` command. This could be a lightweight wrapper around the JSON>XDR encoder command, `soroban lab xdr encode --type TransactionEnvelope`.

### Bigger and more involved features
- [ ] Live edit experience in a `soroban tx edit` command. [Design doc](https://docs.google.com/document/d/1MHjQ-R6Dh_Ykhq5VcOT-d1-z5yoNrPC5RjNA0MEmEno/edit#heading=h.dn3a9fxqk3pq) Opened separate issue here: https://github.com/stellar/soroban-cli/issues/1290

Linked PR #1263

I think we need to break up this issue into a set of sub-issues and prioritise them differently, because we get big wins from some of the smaller easier parts of this work. I suggest we break this up into:

[ ] Add a soroban send command.
Submits to the network, does nothing else.

[ ] Add a soroban sign command.
That supports all existing and future signing capabilities just takes a tx base64 as input.)

[ ] Add a soroban simulate command.
That simulates any given tx and returns the modified/assembled tx that has fees, footprint, etc.

[ ] Viewing an existing tx.
This could be a lightweight wrapper around the XDR>JSON decoder command, soroban lab xdr decode --type TransactionEnvelope.

[ ] Enoding a tx.
This could be a lightweight wrapper around the JSON>XDR encoder command, soroban lab xdr encode --type TransactionEnvelope.

[ ] ~Initialise common tx templates.~ (Edit: Not needed because that's what all the other commands in the CLI are.)

[ ] stc-like live editing experience.

The first three points don't require  smaller work than building generic txs, and would also help support the existing non-generic-tx flows, such as:

#1265

What's missing?

@willemneal The tx sign command will need to be able to do signatures of txs or soroban auths, is that what you're working towards at the moment, just focusing on just one or the other? We can track both separately if needed.

Would be be thinking tx sign-auth? Or do we just let it figure out what needs to be signed?

A user calling tx sign should have already inspected the tx to identify if they want to sign it, and there's little point in most transactions only signing some things, so I think the tx sign command should sign everything (tx and auths) that it can for the signer specified.
I think it's important that the signer signing is explicitly specified, such as with a --signer <alias|account>, so that you can't accidentally sign something with a second key you have loaded that you don't intend to.
@janewang @fnando @chadoh thoughts?

A lot of work, big pay off if done right, hard to get right, time consuming:

[ ]  stc-like live editing experience, in a soroban tx edit command.

This task wasn't completed as part of this issue. @janewang was there a decision not to implement stc-like live editing, or it's being tracked elsewhere?

@leighmcculloch It's been tracked in issue #1290..


Add missing arguments to Collection.bulk_write()

Bring the method signature up to par with pymongo's:

Add ordered, bypass_document_validation, and session
Rename operations to requests

Fixes #389.

Thanks, @pcorpet. I've added the NotImplementedError raises as requested.

Thanks for the merge!


Not able to load the model

UserWarning: Error in loading the saved optimizer state. As a result, your model is starting with a freshly initialized optimizer.
warnings.warn('Error in loading the saved optimizer '

I get the same in Ubuntu

from lines 35 to 39, use this (opening 2 videocaptures at a time is causing the crash)
.
.
.
v2.namedWindow('window_frame')
#video_capture = cv2.VideoCapture(0)
cap = cv2.VideoCapture(0)
while cap.isOpened(): # True:
.
.
.

UserWarning: Error in loading the saved optimizer state. As a result, your model is starting with a freshly initialized optimizer.
warnings.warn('Error in loading the saved optimizer '

from lines 35 to 39, use this (opening 2 videocaptures at a time is causing the crash) . . .
.
.
.
cv2.namedWindow('window_frame')
#video_capture = cv2.VideoCapture(0)
cap = cv2.VideoCapture(0)
while cap.isOpened(): # True:
.
.
.


Fix the postorder traversal in the DominatorTree

Could you say more about the motivation for this change?

Could you say more about the motivation for this change?

Was in the middle of writing up more details in the PR description :)


add the name_override directive to allow names to be programmatical…

…ly set

@johanneskoester made it work with name instead of name_override :)

Thank you so much!


Some Notes

Pre-requisites for Workshop
Installing Packages Best Practices

Always update to the latest packages - Select All and update
We probably won't run into this with the container - but if we do

Slack Channel

Encourage attendees join the slack channel -
Not a cure-all, but what we got!

Workspace

Check on initial script running okay
Can workspaces be re-populated with updated scripts if bugs are found

Workshop is Record

Get stuck can always come back later

Outline

Introduction

Set up of all the packages

ADSL (@bms63 )

Spec introduction
Using metacore/metatools to do numeric
Running all functions/code
We need to select a few to go into detail about
xportr to create the xpt

Break for 5 minutes
ADVS (@Fanny-Gautier )

Need to develop spec for ADVS
Spec introduction
Using metacore/metatools to do numeric, etc
Running all functions/code
We need to select a few to go into detail about
xportr to create the xpt

Brief intro to extension packages

Todos

[ ]  Set up excel file with ADSL, ADVS - Phuse MS Teams (@bms63)
[ ] Populate ADVS (@Fanny-Gautier)
[ ] Agenda for the website slides (@bms63)

September 16th 2024
Some notes

Issues with differences in SDTM IG.  Need to state what IGs we are using
Specs between companies are very different - whoa
Sticking with P21 Specs - clean up ADSL and leave ADLB as an example
We need to be prepared for folks to fixate on the specs, but we don't want to focus on this - the workshop is really for admiral

To Ponder

How much do we use metacore/metatools?  I was just thinking for numeric variables, dropping variables, labels, and using xportr for lengths, types, etc.  Keep super simple!!
How much do we present on admiralpeds?
What slides to we produce versus exercises?
How does someone get the exercises and work on them?
How does someone get the solutions if they get stuck?

Actions

[ ] @bms63 to clean up ADSL in specs
[ ] @bms63 get ADSL working with code and specs


gosec: 2.14.0 -> 2.15.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/securego/gosec/releases.
meta.description for gosec is: Golang security checker
meta.homepage for gosec is: https://github.com/securego/gosec
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.15.0 with grep in /nix/store/vpy11q6dazd3idw7dlbj4qaz627gs3vi-gosec-2.15.0
found 2.15.0 in filename of file in /nix/store/vpy11q6dazd3idw7dlbj4qaz627gs3vi-gosec-2.15.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
gosec

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/vpy11q6dazd3idw7dlbj4qaz627gs3vi-gosec-2.15.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gosec https://github.com/r-ryantm/nixpkgs/archive/eaa48b8280994e66632e1a1ccb16855401f11a25.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/vpy11q6dazd3idw7dlbj4qaz627gs3vi-gosec-2.15.0
ls -la /nix/store/vpy11q6dazd3idw7dlbj4qaz627gs3vi-gosec-2.15.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gosec

Maintainer pings
cc @kalbasit @nilp0inter for testing.

LGTM


Add adapter support for inference

Add new APIs in workspace CRD
Change inference_api.py to allow loading multiple adapters together with the raw model weight files.
Change workspace controller to manage the life cycle of the inference adapters (hosted in init containers).


ui-bootstrap-tpls + Accordion + FireFox + stopPropagation causes FireFox to reload page

I have a radio button in an accordion header to change how the data is presented. I have added an ngClick function($event, group) that runs $event.stopPropagation to prevent the accordion from closing and to allow the radio update the $scope variable.  This works as expected in Chrome, IE11, but causes FireFox to reload the page and start over, losing all the created data.
Please see plinker:  http://plnkr.co/edit/10mS8azqb2OkueNdGuus
If you watch the FireFox console.log you will see a reboot when the radio in the 2nd accordion header is selected.
Thanks

I wonder if this is related to the issue we have with tabs doing the same behavior due to the anchor tag.  IIRC, this issue is that the click event is never received by angular because it's intercepted by the browser first.

Is there a work-around?

@alindberg, yes, the more heavy-handed approach would be to override the accordion template and instead of using <a> you can use Bootstrap's btn-link class, documented here (on, say, a <span> which achieves the same visual effect as a link.  I don't, however, know if this changes other visual behavior as I've not tried it.  Depending on your situation, you may not even want/need the <a>.
You can override the accordion template via the template-url option as seen here.

@alindberg Looks like the plunk you have posted above is using the ui-bootstrap version 0.12.1?

I believe so, however the version I am using is 0.13.4.  I just updated the plunk to 0.13.4 with the same results.

ARG! when trying to clean up the old versions, I wound up delete the plunk.  I will rebuild it.

Fixed - the new plunker - http://plnkr.co/edit/NR6y4oW6UiegXUI8BL62

I think the heart of the problem here is that the accordion heading template wraps the heading content in an 'a'nchor element.  When you start adding buttons and button like elements inside of an anchor element, you get unexpected results.

I'm starting to think we should not officially support these use cases - this appears to be ultimately strange cases due to how Firefox operates when dealing with certain elements nested in certain other ones.
The $event.stopPropagation hack is the best fix I can imagine for this.

Here is a simplified plunk that demonstrates the problem.  It's not isolated to Firefox, Chrome exhibits the same behavior.  Clicking on the actual radio button does not cause the issue, it's when the stopPropagation() on the surrounding element is hit.

It does seem to be the stopPropagation().

$event.stopPropagation(); is for stoping the event to reach outside elements, so you have to use it in the inner elements not in a wraper element, so use it in individual links or in the radios if you dont want both events to fire
with jquery you can use delegate to surround the problem or just use the old js trick and replace with return false; it may work

Funnily enough, I encountered this bug at work - we could switch the template to use div elements instead of anchor tags and mention that if one wants the pointer cursor to use CSS. This will hurt accessibility some, but it will fix this bug.

@wesleycho, what do the about using Bootstrap's btn-link class?  I admit I don't know what affect this would have on accessibility/ARIA.

Already took a look at that before - it messes with the styling in undesirable ways...I think a div would be a lower overhead.

I am having the same problem when using radio buttons within angular ui tabs. I added a ng-click=$event.stopPropagation to my radio button to get the radio button to show as checked when clicked upon. The solution worked in Chrome and Safari but not Firefox. In Firefox, clicking on the radio button refreshed the page. Would love to see this issue get fixed.

@acwatson, we are in a massive push to get 1.0 out the door.  There is enough information above if you want to take a stab at a PR.

I forgot to link the commit, this is now fixed via df211bd

Linking issues, #5361, #4777, #4104, and #3199.  For the relevant conversation in Bootstrap, see this thread.


Resolves #1321 fixing service deadlocks

jenkins, test this please

Not sure why the last tests timed out. Any clues @cket @hannes-ucsc ?

Seems like this branch is slower. I will do some performance probing.

Due to the parallel nature of the tests it is hard to determine which test timed out. We should change run_tests.sh to pipe output through sed -e 's/^/WHATTEST/:
https://github.com/BD2KGenomics/toil/issues/1342
Just by staring at the output, I can tell that CGCloudRestartTest was running while timeout occurred but that all other tests had passed. @cket remind me to explain my reasoning. It's possible that that tests simply hung.

Okay, the tests passed this time, I'm squashing the commits then (assuming it passes), I'd like @cket or @hannes-ucsc  to review and get this in. I want to work on testing of spark services next - @fnothaft what's happened with the docs pr?

@cket providing the tests complete, are you okay with doing a merge?

@benedictpaten yes, you answered my main question about the runtime based scaling. Once we have real autoscaling data we can start adjusting any scaling algorithms, if needed

Good, agree about putting in better defaults for max services down the road.


Rename internel field Relabel to Mode

Docker-DCO-1.1-Signed-off-by: Dan Walsh<EMAIL_ADDRESS>(github: rhatdan)

needs gofmt

This is also changing the on-disk format...

Sorry about the gofmt, my emacs go integration broke in Rawhide and I did not notice.
As far as the on disk format, what do I need to do for this or is the more of a your out of luck?

LGTM on design/idea
@rhatdan Perhaps, having both fields would be sufficient. If Mode is empty, use Relabel. Or, if Relabel is set, migrate to Mode, rewrite file and move along.

@rhatdan we need to make sure that containers that have Relabel serialized in the json configuration are not broken with this change. If we don't want to keep both fields, we can use json:"Relabel" to specify the field in the json document that we're deserializing and leave a comment explaining why we're doing this.

@calavera You have gone beyond my "golang" capabilities.  Could you give an example (patch) of what you want.

I guess you found what I was talking about :smile: I'm okay with this change. I don't think it's necessary to make it more complicated.
@cpuguy83 any other comments?

It's ok for me, but need to squash commits.

Sorry about the squash

Just a minor comment, otherwise LGTM.

Why not have both fields and just fallback when Mode is empty? This way we can phase out Relabel.
The PR currently never provides for a migration off of using Relabel, which will be confusing and disorienting for future developers.

@stevvooe I considered that option. I think it will be more confusing for future developers. It's not something that we can deprecate, because it's not really something users see, per-se. We we'll end up maintaining the code for and infinite amount of time to ensure backwards compatibility.
I think this change is simple enough for people to understand.

@calavera we do have a deprecation policy in place with @duglin's https://github.com/docker/docker/pull/13900 or would that not apply here?

@thaJeztah that doesn't apply here.

LGTM


feat: Axiom execution strategy

Depend on https://github.com/snapshot-labs/sx.js/pull/248

Moved to https://github.com/snapshot-labs/sx-monorepo/pull/4


Moved to the new docker official repos that install docker-engine ins…

We need to wait for the new docker release 1.8, after that and rebuilding aws and vagrant images and testing we can merge it.

Since we are doing a rebuild of the images here might be worth adding in https://github.com/Capgemini/Apollo/issues/457 to this PR

Images have been rebuilt already. Lets get this in for the sake of stability and create a follow up for testing and merge #457 in insolation

this good to go then? what we waiting for?

thanks!


custom tree view sidebar

Hello,
In your javascript code there a function to find tag "li" has class active, so when in each page html when i click it will became active. what if i slice into tree part, header.php, body.php, and footer.php.
in header will contain header and sidebar. so i delete the class active.
is it possible to custom app.js?
so when i click the tag "li" it will became active.

Here explains how to edit app.js file.
https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html#adminlte-options

This could easily be done using the following javascript:
$(".sidebar-menu li").click(function(){
  $(this).toggleClass('active');
});

Is this what you are looking for?


[AutoPR cdn/resource-manager] [Hub Generated] Review request for Microsoft.Cdn to add version 2025-01-01

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4865

Closing PRs that are older than 1 month.


No system tray icon shows up -- Arch Linux, xfce4

Installed on Arch Linux, with xfce4 window manager, via the packer AUR package manager.
The software itself is fully operational and I have no issue with it. But the lack of a system tray icon means I don't see when notifications are waiting, and I can't "unminimize" the software from the tray.

There's an option to activate the tray icon. Have you turned it on?

I have, yes. No effect unfortunately.

@drislands Can you try version 1.5.8-beta?
The electron framework was updated from a very old version (as a bug prevented us from updating it)

I had the same issue, Arch + XFCE4. This affects another electron based apps as well. To solve this, install the "Status notifier" plugin and Electron based apps will work again. I'm using this in parallel with old "Notification area" plugin.


Unable to run composer update

I'm trying to update my Laravel packages and it falls over when this package is present. Removing image and imagecache from my composer file and deleting from vendors and config/app.php allows composer to update.
Could not load package intervention/image in http://packagist.org: [UnexpectedValueException] Could not parse version constraint 4.x.x: Invalid version string "4.x.x"

I have same error.

@Albofish https://github.com/Intervention/image/issues/464

have same error :(

This seems to be a Composer issue, explained here: https://github.com/Intervention/image/issues/464

I decided to enabling the extent
php_fileinfo.dll in => php.ini


React Native 0.71 support

Attempting pod install on RN 0.71, I get the error:
[!] Unable to find a specification for `React-RCTFabric` depended upon by `react-native-progress-view/fabric`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Trying the recommended pod repo update and pod install --repo-update do not resolve the issue.
Library version: 1.4.0-beta.0, hermes, old architecture.

Downgrading to 1.3.2 works fine.  Looks like the confusing point is the latest tag in npm points to the beta release, instead of 1.3.2 (which appears to be the intended stable).

The problem seems to be the Fabric check in the podspec:
Instead of
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED']

It should be:
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'

When Fabric is disabled, RCT_NEW_ARCH_ENABLED is set to '0' which is truthy in Ruby.


[RFC] add VCard::getByType()

Hello! I had a requirement for this feature so I thought I would create a PR to discuss.

Ok, I have made the suggested changes.


Reflect trait should not require Send + Sync bounds

Bevy version
0.15
Problem
Reflect has no intrinsic need to be Send + Sync. This limits its uses, especially in a broader non-Bevy context.
Solution
Remove Send + Sync trait bounds, adding them locally to any methods that fail to compile.
Context
According to @MrGVSV, this was originally for compatibility with components, before the explicit Component trait was added. This is backed up by Cart here

I'm picking this up now


Test Issue created at Thu, 10 Feb 2022 02:19:55 GMT

Test issue body  Thu, 10 Feb 2022 02:19:55 GMT

Comment on issue at Thu, 10 Feb 2022 02:19:57 GMT


Custom attributes / user inputs not displayed while instantiating in release 5.12

When instantiating a VM template using release 5.12, custom attributes (also called user inputs in the documentation) do not appear in sunstone's "instantiate vm template" screen. Checked with 5.10, where this feature works as described.

Duplicate of #4946


Provide TaskRun annotations in SLSA provenance

Feature request
I'm mostly interested in having the experimental.tekton.dev/execution-mode annotation available in the SLSA provenance. It might be useful to place all TaskRun annotations in there as well. A good place might be invocation.environment.context, similar to how this is done for GitHub Workflows in the this example.
Use case
I want to see from the SLSA provenance if a build was done in hermetic environment or not. This allows me to evaluate the built result with higher level of confidence that there wasn't outside tampering with certain TaskRun. For example, for the build, having fetched the source code and having all the dependencies vendored I don't want to allow any external traffic, and I'd like to attest to that in the SLSA provenance generated for that TaskRun.
This was already proposed in #278, though it was closed as stale.

SGTM!
I think invocation.environment makes sense, though perhaps it should be invocation.environment.annotations?
I think context for GHA is specifically referring to https://docs.github.com/en/actions/learn-github-actions/contexts

Might be also worth including the labels, but that could be done in a different issue.

I have another use case where I need information from one of the PipelineRun labels to make a policy decision. Any objections in using invocation.environment.annotations for TaskRun/PipelineRun annotations and invocation.environment.labels for TaskRun/PipelineRun annotations?
Related question, for PipelineRuns, should we also include the labels and annotations of each TaskRun under .buildConfig.task[].invocation ?

/remove-lifecycle stale


Add reductions()

Unless I missed it, there doesn't seem to currently exist a function to get an iterator of the intermediate values of a reduction function. Here is an example of how this can be used to easily create a cumulative sum iterator:
#[test]
fn test_cumsum() {
    let expected = vec![1, 3, 6, 10, 15];
    let result: Vec<_> = (1..6).reductions(|a,b| a+b).collect();
    assert_eq!(expected, result);
}

For me this use-case up when I needed a cumulative sum over an addition operator without inverse, to optimize sums of certain structure.
Does this seem like something that could be part of this library? (The name "reductions" is not great, as rust uses "fold" instead of "reduce", there's probably some other term for this.)

I came up with the following implementation for my own use, though me being new to Rust it likely does everything wrong:
pub struct Reductions<I, R> where I : Iterator {
    iter: I,
    reductor: R,
    prev: Option<I::Item>
}

impl<I, R> Iterator for Reductions<I, R>
        where I: Iterator, I::Item: Clone,
              R: FnMut(I::Item, I::Item) -> I::Item {
    type Item = I::Item;

    fn next(&mut self) -> Option<Self::Item> {
        self.iter.next().map(|item| {
            let value = match self.prev.take() {
                Some(prev) => (self.reductor)(prev, item),
                None => item
            };
            self.prev = Some(value.clone());
            value
        })
    }

    fn size_hint(&self) -> (usize, Option<usize>) {
        self.iter.size_hint()
    }
}

impl<I, R> ExactSizeIterator for Reductions<I, R>
    where I: Iterator, I::Item: Clone,
          R: FnMut(I::Item, I::Item) -> I::Item {}

pub trait IteratorExt : Iterator {
    fn reductions<R>(self, reductor: R) -> Reductions<Self, R>
            where R: FnMut(Self::Item, Self::Item) -> Self::Item,
                  Self: Sized {
        Reductions {
            iter: self,
            reductor: reductor,
            prev: None
        }
    }
}

impl<T> IteratorExt for T where T: Iterator { }

Note that as suggested above I'm using a variant where the first element of the reductions() iterator will match the first element of the original iterator. Closure has another variant which allows you to specify an initial element, so that it will be the first element of the returned iterator instead.

It's similar to scan

@bluss You're right, I have missed that function. This does seem to be easy to implement on top of scan().
Sorry for the noise!


Couldn't read group message with group name: 400 responded

I want to retrieve group messages using group names. Couldn't do it because response is of 400 type.
Conversation details
Steps to reproduce

Create a group
Try to retrieve the group messages. Tried with "19:My Skype Group Name"

Result or traceback
message couldn't be read, ('400 response from GET https://hk2-2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/<My Skype Group Name>', <Response [400]>)

Tried with "19:My Skype Group Name"

Uh, why?
Group chat topics are not identifiers -- they are not unique, not required.  You should either use identifiers if you have them (19:abc...def@thread.skype), or loop over Skype.chats and check each group conversation's topic attribute (note that SkypeSingleChat does not provide this attribute, do an instance check first).


The age of the note is ambiguous

Describe the bug
When displaying the age of a note, use 'M' for months. Right now, you use 'm' for months, and minutes, which is confusing.
Steps to reproduce
See note note1k2pwaq4fkg8ecx3mx4xcmkx4q4a4kqpw89r4vmeav9sgx84zhlwqkyz6ph
Expected behavior
The age of the note should read '6M', not '6m'

Environment

Tested on the android app, v. 0.21.4

Additional context
Add any other context about the problem here.

Oopsie. I've just realised I was running a very old version of the software. Please disregard and close.


How do I connect to an ES cluster

In river.toml file,  I set the address to connect to ES like this
es_addr = "<IP_ADDRESS>:9200,<IP_ADDRESS>:9200,<IP_ADDRESS>:9200"
The program reported an error when I started.

It would be normal if I changed it to this address.
es_addr = "<IP_ADDRESS>:9200"
So,  How should I configure the ES cluster connection address?

Did you try creating 3 differents toml files for each address ?


Code comments for timer-modal folder files

Added comments for functions, renamed files to follow convention, and more descriptive variable names

Naming is more explanatory and the commenting is great! Looks good to me


String slices must be integers.

Describe the bug
try:
images = [i["file_url"] for i in data]
except:
images = [i["file"]["url"] for i in data]
Gives the error. This is yours interpreter.
To Reproduce
Steps to reproduce the behavior:

Use parse_image(result) on:
result = await r34.search_image("neko", limit=2) # test

Expected behavior
Give me only the url.
Desktop (please complete the following information):

OS: Arch Linux
Python version: 3.10.10 and 3.11.3

Additional context
No.

I tested on 3.10.11 everything works fine until some of my testing network marked as spam thus captcha were found on r34,
but it should throwing some JSONDecodeError instead String slices must be integers

Could you tell some moreinfo pls

hi, i have good news, i just discover that this:
async def main():
    r34 = Rule34()
    img = await r34.search(query="sexy", gacha=True)
    urls = [item['file_url'] for item in img if item['file_url'].startswith('https://api-cdn.rule34.xxx/images/')]
    print(urls)

asyncio.run(main())

parses the images correctly :D

I am trying to implement it in the parse_image function

wait why now it is not working

it only works without the "gacha" tag, works with the "limit" tag

When using gacha method, all returns only 1 object/dict, so your loop statements is no use then

fixed it
    img = await r34.search(query="sexy", gacha=True)

    if isinstance(img, str):
        # if img is a string, parse it as JSON
        data = json.loads(img)
        urls = [data['file_url']] if data['file_url'].startswith('https://api-cdn.') else []
    else:
        # if img is a list of image objects, extract the file urls
        data = json.loads(img)
        urls = [item['file_url'] for item in data if item['file_url'].startswith('https://api-cdn.')]

    print(urls)

now i'll try to add it to the parse_image function and use the resolve instead of data = json.loads(img) to follow your code

updated function:
def parse_image(raw_object: dict):
    if isinstance(raw_object, str):
        # if img is a string, parse it as JSON
        data = json.loads(raw_object)
        urls = [data['file_url']] if data['file_url'].startswith('https://api-cdn.') else []
    else:
        # if img is a list of image objects, extract the file urls
        data = json.loads(raw_object)
        urls = [item['file_url'] for item in data if item['file_url'].startswith('https://api-cdn.')]

output:
['https://api-cdn.rule34.xxx/images/6747/48766c19aac641cae347e3a4180e817a.png']

You can always submit PR if the current flow is a bit clunky on your side

fixed it
    img = await r34.search(query="sexy", gacha=True)

    if isinstance(img, str):
        # if img is a string, parse it as JSON
        data = json.loads(img)
        urls = [data['file_url']] if data['file_url'].startswith('https://api-cdn.') else []
    else:
        # if img is a list of image objects, extract the file urls
        data = json.loads(img)
        urls = [item['file_url'] for item in data if item['file_url'].startswith('https://api-cdn.')]

    print(urls)

now i'll try to add it to the parse_image function and use the resolve instead of data = json.loads(img) to follow your code

What is the point reinventing urls with loop, while img is only single object, there is still make sense if you re-validating them in normal search not gacha

well for me it works for what i need


Match the native android datepicker

Ionic version:  (check one with "x")
[ ] 1.x
[ x] 2.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[x ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
While our datepicker does look pretty slick right now, it does not look much like the native Android datepicker.
Datepicker in Google Calendar: https://goo.gl/photos/vREQzopThbiyA8dT6
<input type="date" /> in Chrome on Android: https://goo.gl/photos/R3iTMyoUtDivyQU56
Expected behavior:
Our datepicker to look more like the native Android datepicker when in MD mode.
Steps to reproduce:
<!-- If you are able to illustrate the bug or feature request with an example, please provide steps to reproduce and if possible a demo using one of the following templates:

The current one is actually better.

Idea courtesy of brandy: could also be a seperate calendar component

Current one seems a way better rather than that pop-up. Could be an addon though!

Or just use mode as with most components that have platform specific styling for native consistency.

However, like the native Android date picker, the current datetime component needs a preview area.

I think this should be a seperate Calendar component.

Going to close this issue for now as this will probably end up being a separate component sometime way down the road. Thanks everyone!


Fix for auto resize column headers,

The scrolling issue has been fixed by me while Amir made changes to the cell selection plugin so that it no longer triggers when clicking on the resizable handler, allowing header clicking to function properly. When combined, these two fixes address the issue of scrolling and auto resize for results grid.
This PR fixes ##2251

Coverage decreased (-0.004%) to 34.495% when pulling 64a19fd86b88026032595429c8e5bdeb43f9bc4a on alex/fixforautoresizecolumnheaders into ddb210e971906d307bad7875d6aa5445bd856f2f on master.


XAStoreConfiguration gives NPE when adding a java serializable POJO

Ehcache version :  3.4.0
Cache/CacheManager configuration :

CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder()
            .using(new LookupTransactionManagerProviderConfiguration(
                BitronixTransactionManagerLookup.class))
            .withCache("xaCache",
                CacheConfigurationBuilder
                    .newCacheConfigurationBuilder(Long.class, Person.class,
                        ResourcePoolsBuilder.heap(Long.MAX_VALUE))
                    .withExpiry(Expirations.noExpiration()).add(new XAStoreConfiguration("xaCache"))
                    .build())
            .build();

JDK 1.8 and Windows 10.
Sample code :
BitronixTransactionManager manager = TransactionManagerServices.getTransactionManager();
CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder()
            .using(new LookupTransactionManagerProviderConfiguration(
                BitronixTransactionManagerLookup.class))
            .withCache("xaCache",
                CacheConfigurationBuilder
                    .newCacheConfigurationBuilder(Long.class, Person.class,
                        ResourcePoolsBuilder.heap(Long.MAX_VALUE))
                    .withExpiry(Expirations.noExpiration()).add(new XAStoreConfiguration("xaCache"))
                    .build())
            .build();
        cacheManager.init();

Cache<Long, Person> cc = cacheManager.getCache("xaCache", Long.class, Person.class);
        manager.begin();
        Person p = new Person("Sukhpal", 10);
        cc.put(1L, p);
        manager.commit();

Stacktrace :
Caused by: org.ehcache.core.spi.store.StoreAccessException: java.lang.NullPointerException
	at org.ehcache.core.exceptions.StorePassThroughException.handleRuntimeException(StorePassThroughException.java:70)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.putIfAbsent(OnHeapStore.java:507)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.putIfAbsent(OnHeapStore.java:453)
	at org.ehcache.transactions.xa.internal.XATransactionContext.putIfAbsentInUnderlyingStore(XATransactionContext.java:296)
	at org.ehcache.transactions.xa.internal.XATransactionContext.prepare(XATransactionContext.java:154)
	at org.ehcache.transactions.xa.internal.XATransactionContext.commitInOnePhase(XATransactionContext.java:225)
	at org.ehcache.transactions.xa.internal.EhcacheXAResource.commit(EhcacheXAResource.java:69)
	... 10 common frames omitted
Caused by: java.lang.NullPointerException: null
	at org.ehcache.impl.serialization.CompactJavaSerializer.addMappingUnderLock(CompactJavaSerializer.java:165)
	at org.ehcache.impl.serialization.CompactJavaSerializer.getOrAddMapping(CompactJavaSerializer.java:149)
	at org.ehcache.impl.serialization.CompactJavaSerializer.access$000(CompactJavaSerializer.java:52)
	at org.ehcache.impl.serialization.CompactJavaSerializer$OOS.writeClassDescriptor(CompactJavaSerializer.java:200)
	at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)
	at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)
	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
	at java.io.ObjectOutputStream.writeObject(Unknown Source)
	at org.ehcache.impl.serialization.CompactJavaSerializer.serialize(CompactJavaSerializer.java:94)
	at org.ehcache.transactions.xa.internal.XAValueHolder.copyForSerialization(XAValueHolder.java:79)
	at org.ehcache.transactions.xa.internal.SoftLock.copyForSerialization(SoftLock.java:68)
	at org.ehcache.transactions.xa.internal.SoftLockValueCombinedSerializer.serialize(SoftLockValueCombinedSerializer.java:42)
	at org.ehcache.transactions.xa.internal.SoftLockValueCombinedSerializer.serialize(SoftLockValueCombinedSerializer.java:30)
	at org.ehcache.impl.internal.store.heap.holders.SerializedOnHeapValueHolder.<init>(SerializedOnHeapValueHolder.java:41)
	at org.ehcache.impl.internal.store.heap.holders.SerializedOnHeapValueHolder.<init>(SerializedOnHeapValueHolder.java:49)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.makeValue(OnHeapStore.java:1542)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.makeValue(OnHeapStore.java:1535)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.newCreateValueHolder(OnHeapStore.java:1481)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.access$500(OnHeapStore.java:114)
	at org.ehcache.impl.internal.store.heap.OnHeapStore$10.apply(OnHeapStore.java:476)
	at org.ehcache.impl.internal.store.heap.OnHeapStore$10.apply(OnHeapStore.java:467)
	at org.ehcache.impl.internal.store.heap.KeyCopyBackend$3.apply(KeyCopyBackend.java:159)
	at org.ehcache.impl.internal.store.heap.KeyCopyBackend$3.apply(KeyCopyBackend.java:156)
	at org.ehcache.impl.internal.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1878)
	at org.ehcache.impl.internal.store.heap.KeyCopyBackend.compute(KeyCopyBackend.java:156)
	at org.ehcache.impl.internal.store.heap.OnHeapStore.putIfAbsent(OnHeapStore.java:467)
	... 15 common frames omitted

The issue is caused by the delegate serializer not carrying the stateful information. I will open a PR shortly that should fix that, still working on having a test though.

Given all the changes in master, I will open the PR there only once I have tests in.

In which version of ehcache this change would be available? 3.4.0? Or I need to build from github?

3.3.3, 3.4.1, 3.5.0

None of which are released yet. So if you want the fix now, you need to pick a snapshot or build yourself indeed.
Note that we are dropping java 6 and 7 support with 3.5.0

NPE seems to have gone with this change but now I'm not able get entries in another session i.e. if I put some values in session 1 and I start a new session then previous values aren't available.

Hi,
Make sure you have a proper equals method on your values as well.
Internally Ehcache uses compare-and-swap operations which means that
without the proper equals, the transaction results will not be made
available in the XA cache.
Regards,
Louis
On Mon, Oct 23, 2017 at 7:51 AM way2sukh<EMAIL_ADDRESS>wrote:

NPE seems to have gone with this change but now I'm not able get entries
in another session i.e. if I put some values in session 1 and I start a new
session then previous values aren't available.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/ehcache/ehcache3/issues/2159#issuecomment-338575773,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIQjAuubC6rFWNxhLRGUrG3YL-Hpi_tks5svEVvgaJpZM4PzaAK
.

Louis
Thanks, it worked once I implemented equals and hashCode on values. But what's the reason behind? Cache acts more or less like a map.  And it isn't mentioned in documentation too.


ci: E2E cookiecutter tests use a local reference of singer-sdk instead of a PyPI one

Singer SDK Version
0.20.0
Python Version
3.6 (deprecated)
Bug scope
Taps (catalog, state, stream maps, etc.)
Operating System
NA
Description
This way we can test the templates with the latest state of the library and work correctly in version bump PRs: https://github.com/meltano/sdk/actions/runs/4235758709
Code
No response

cc @flexponsive curious if you have any suggestions

You are right it makes sense to use a local reference in end-to-end tests always. Apparently poetry solves this problems with editable mode:
[tool.poetry.dependencies]
my-package = {path = "../my/path", develop = true}

I submitted a PR replacing the singer-sdk dependency in place using sed

Thanks @flexponsive!


Add `@validateOn="input", rename "blur" to "focusout"

When playing with validations in a real demo rather than just looking for tests to become green, I realised that the behaviour we likely want for revalidation is not given when using @revalidationOn="change". We want to have revalidation happen as soon as you type (into an invalid field) and it turns valid, without having to focus out of the input (which would effectively be @revalidationOn="blur"). But change does not trigger right while typing for inputs (normal texts inputs, checkboxes, radios and select boxes this is different though), only when focussing out ("committing"). (see change event).
So this introduces another option @revalidationOn="input", listening for the input event:

The PR also takes this as a opportunity to rename @(re)validationOn="blur" to @(re)validationOn="focusout", as this is the event we are actually listening to, and having one value for the public API and another for the internal implementation did not really serve a meaningful purpose (other than maybe blur being a bit more common), but could likely cause confusion.

Release questions:

Are we doing releases yet? Because I guess this would be a breaking change (since we are changing "blur" to "focusout" but since we haven't released anything yet I guess this is not.
If we are doing releases, do we look for the changeset in this PR? (I feel like I have asked this question before in another repo...clearly I don't have a lot of hands on practise with changesets yet)

Are we doing releases yet?

not yet -- I've opened this: https://github.com/CrowdStrike/ember-headless-form/pull/30
and it starts us out with beta releases, so breaking changes are non-major.
#30 has all the context for how to start releases if we want to publish to npm

Changes look great to me! Looks like a lingering @validateOn="blur" which is causing CI to be red

Right, thank you! Fixed that. Good to see that Glint is actually working 🙂


Headers in Response/Request object are case sensitive

I am attempting to get the content-type of HTTP responses.
My code looks approximately like this:
page.on("response", response => {
  const contentType = response.headers.get("Content-Type")
})

Unfortunately the response.headers Map is case sensitive, so this only works if the header name is Content-Type (as opposed to, say, content-type).
I think all headers need to be lower cased before setting them in the map, or there needs to be an alternative API to retrieve headers.
The current API requires code to iterate over all headers just to normalise the case.

@aslushnikov Did you consider using an interface like Headers in the Fetch API?
https://developer.mozilla.org/en-US/docs/Web/API/Headers
Also, I didn't fully review your solution, but did you consider that there are headers that can be defined more than once (set-cookie)?

@Janpot we tried implementing Fetch API, but it turned out we can't implement match of the Request/Response interfaces. See #106

yep, I figured. I'm just wondering because I've been bitten bitten more than once by naive header API implementations. There's just two cases that are always easily overlooked. first, header names are case insensitive. second, header names can appear more than once.


gi-javascriptcore-4.0.3

gi-javascriptcore-4.0.3 is out of bounds for:

[ ] gi-webkit-3.0.3 (==3.0.*). No maintainer. @haskell-gi
[ ] jsaddle-<IP_ADDRESS> (>=3.0.2 && < 3.1). No maintainer. @ghcjs

@garetxe Are you able to bump the bound for gi-javascriptcore on gi-webkit?

Pinging @hamishmack.
I'm not sure whether pinging organizations like @haskell-gi or @ghcjs works.

I have sent a pull request https://github.com/fpco/stackage/pull/1639 that hopefully fixes this by pinning the version of gi-javascriptcore to a version in hackage with a workaround for https://github.com/commercialhaskell/stack/issues/2094, which is the core issue here.


add rhel7 support

Hi here are some minor changes to enable postgresql 9.4 on rhel 7
it would be great if you clould merge them into master.
Thanks a lot for the great Cookbook.
Martin

Thanks.