monitoring_role_arn for "aws_db_instance" "this_mssql" resource calculates empty value and generates error in case monitoring_interval > 0

Terraform: 0.12.25
AWS_provider: 2.70.0
module version: 2.15.0, 2.17.0
During creation of MSSQL backed RDS instance, i am getting the following error:
Error: Error modifying DB Instance db-host: InvalidParameterCombination: A MonitoringRoleARN value is required if you specify a MonitoringInterval value other than 0
as a result of the following interpolation:
var.monitoring_interval > 0 ? coalesce(var.monitoring_role_arn, aws_iam_role.enhanced_monitoring.*.arn, null) : null
For the "aws_db_instance" "this" resource in the same file, monitoring_role_arn is calculated with slightly different interpolation and, if i apply it to resource in question everything works fine
var.monitoring_interval > 0 ? coalesce(var.monitoring_role_arn, join(", ", aws_iam_role.enhanced_monitoring.*.arn), null) : null
looks like the cause is the type of the aws_iam_role.enhanced_monitoring.*.arn item, which is a list and a behavior of the coalesce function in case, more than two arguments provided.
> coalesce("", ["atata", "aaaa"], null)

> coalesce("", join(",", ["atata", "aaaa"]), null)
atata,aaaa
> coalesce("", ["atata", "aaaa"])

>
Error: Error in function call

  on <console-input> line 1:
  (source code not available)

Call to function "coalesce" failed: all arguments must have the same type.

Calling module with:
module "rds" {
  source                              = "terraform-aws-modules/rds/aws"
  version                             = "2.17.0"
  identifier                          = var.identifier
  engine                              = "sqlserver-se"
...
  create_monitoring_role             = true
  monitoring_interval                   = 60
...
}

https://github.com/terraform-aws-modules/terraform-aws-rds/blob/v2.17.0/modules/db_instance/main.tf#L151

Is there any update on the above, looks like version 2.18.0 still has this issue.
Error: Error creating DB Instance: InvalidParameterCombination: A MonitoringRoleARN value is required if you specify a MonitoringInterval value other than 0. [2020-10-05T06:43:47.049Z] 	status code: 400, request id: 8ad86abc-428f-458e-a84f-8d9a0e631094

Getting the same error. Is there any update?

Closed with #318


Native  does not work when only using CSS

When I only pull in the CSS library, all of my <select> elements become hidden, likely because I didn't initialize them via JS.
Expected Behavior
When I pull in the library, I expected my <select> element not to change at all, because this documentation says that it's a jQuery plugin.
Current Behavior
Pulling in the CSS library will seemingly hide all <select> components.
Possible Solution
Move the <select> CSS out of the CSS library. If we're exposing the CSS separately from the JS, they should not be dependent on eachother.
Another option is to at the very least document that utilizing the standalone CSS will break all <select> elements.
Steps to Reproduce (for bugs)

Utilize the CSS library, doesn't matter if it's the .min or the CDN.
Try using a  anywhere where that CSS is scoped to, it will not appear visible.
Codepen here

Context
I only really needed a library for some good CSS styles so my project didn't look terrible.
Your Environment
I was using the 1.0.0 release in a TypeScript vue.js site, chrome/firefox both the same behavior

Version used: 1.0.0

I’m not sure this is a genuine issue.
There are two ways to use Materialize. The basic usage is by including the standard compiled css and js, and this covers every component.
The second way is using a custom build, via sass for css and by the grunt for js. You can choose which components to use for your project.
If I understand you correctly, you want to include the default css (which covers all elements including selects) but you do not want to initialize the component via js, which leaves the selects unusable.
Materialize is a modular framework, each component has its own sass and js file, and you can’t have one without the other.

Oh, my bad! I didn't realize I would need to include both in order to use this! I totally thought I could easily just utilize all of the CSS. Well fair enough, I will say it's kind of problematic that I would need to manually initialize a component every time I create one. There are a lot of beautiful looking designs this framework can create, but I think this kind of kills it for me. Nonetheless, I'll close the issue. Thanks for the fast reply!

You can always include the compiled css and js, and init all components with one line of code.

@doughballs For what it's worth, this bug / feature breaks the drop-down menu here, and from reading the discussion above it sounds like Materialize will probably have to be removed from the list of "minimal" frameworks if it can't be included on its own without JS. As @lanthier said, Materialize CSS is beautiful in every other respect (and I've enjoyed using it to create things like PDFs from Markdown documents), so this is unfortunate, but I understand if using the CSS independently doesn't fit with your design goals for the project.

@lanthier Did you read the docs page about selects?
https://materializecss.com/select.html
Adding a class of broswer-default fixes your issue removes the need for JS. Pen below.
https://codepen.io/doughballs/pen/rNNVodV
@dohliam
Materialize doesn't claim to be a CSS only framework, I don't think? It has many cool JS components that are (I imagine) a big attraction for people (and which would be impossible/impractical via CSS alone).
That said, there are many ways to strip out all but the necessary javascript, and many components can be used without JS at all. As shown above, the included browser-default class name generates a traditional select without the need for javascript.
The question is why Javascript dependency would be a deal breaker seeing as the web literally runs on it.

Just had a quick look in the docs as to exactly how much of Materialize is functional without javascript. Turns out most of it. (Obviously anything that involves complex interactions requires javascript.)
No JS required:

Badges
Buttons
Breadcrumbs
Cards
Collections
Footer
Icons
Navbar
Pagination
Preloader
Color
Grid
Helpers
Media
Pulse
Shadow
Table
Transitions
Typography
Checkboxes
Radio Buttons
Range
Select
Switches
Text Inputs

JS required

Carousel
Collapsible
Dropdown
FeatureDiscovery
Modals
Parallax
Pushpin
Scrollspy
Sidenav
Tabs
Toasts
Tooltips
Waves
Autocomplete
Chips
Datepicker

Materialize doesn't claim to be a CSS only framework, I don't think?

@pwcreative Absolutely -- didn't mean to imply otherwise. However, @doughballs mentioned they were "struggling to think of a use case where you would want the styling but not the functionality", so I thought I'd give an example to show that there are indeed cases where people might want to use the styling without including the JS.
In any event, for our use case this issue was resolved by simply editing the css and removing the display:none property. This seems to work fine so far since we aren't using the CDN. Also, as you said, most of Materialize is functional without javascript, so I think it's reasonable to keep it on the "minimal" list for now. :smile:


update to std::future::Future

https://seanmonstar.com/post/187493499882/hyper-alpha-supports-asyncawait
https://github.com/hyperium/hyper/issues/1805
I'd love to be able to use the async/await syntax available. It will be in the stable release is
1.39 release which will be on November 7th. I'd like to be able to use it before then. std::future::Future is available in stable.

Most of the async code is due to surfacing of hyper calls as you correctly pointed out. I would prefer to hold out changing the code until hyper stabilizes a bit though and then refactor everything (maybe dropping the combinators altogether!)

Are you planning to support it once it drops in 1.39? I've been writing a prototype using async/await versions of warp and reqwest and trying to use azure_sdk_auth_aad but I'm running into loads of issues not knowing how all the compat works very well. Was hoping to PR a basic KMS lib to this repo if we end up going the Rust route here.

Yes that's the plan. I do not have a clear timeline at the moment however.
I was wondering, however, why you are getting errors with azure_sdk_auth_aad. That crate is mostly sync. Can you elaborate what kind of error are you getting? Are you using authorize_non_interactive?

I'm using authorize_non_interactive. Seems to be a problem with the main runtime being a current tokio one, which isn't able to run the future that comes back from the authorize function. When I tried to use tokio-core like the example did that caused issues with things not able to be shared across threads. When I asked for help figuring it out on the community discord they pointed me to the new tokio-compat crate.

I rewrote the auth logic using std futures and the technique that the official node kms library uses for auth without a tenant_id/tenant_domain. Haven't checked yet if it works the same way on other resources. This is very prototype.
#[derive(Deserialize, Serialize)]
pub struct AuthResponse {
    pub access_token: String,
}

pub async fn authorize(client: Arc<reqwest::Client>, client_id: &str, client_secret: &str, vault_base_url: &str, key_name: &str) -> Result<AuthResponse, reqwest::Error> {
    // bytes for the kms to wrap
    let empty_request = AzureWrapRequest {alg: super::AZURE_KEY_ENCRYPTION_METHOD.to_owned(), value: "".to_owned()};

    // we just fire off our request with no authorization intending to get back
    // a 401 that tells us where to point to authorize. If this works for other resources
    // then the authorize function could take an endpoint + empty request to make
    let wrap_url = format!(
        "{}/keys/{}//wrapkey?api-version=7.0",
        vault_base_url, key_name
    );
    let expected_401_response = client
        .post(&wrap_url)
        .json(&empty_request)
        .send()
        .await?;

    // parse out the `authorization` and `resource` from the bearer header
    // that came back on the 401
    let (authorization_url, resource) = parse_azure_bearer_header(
        expected_401_response
            .headers()
            .get("www-authenticate")
            .unwrap()
            .to_str()
            .unwrap(),
    )
    .unwrap();

    // post our credentials to the derived authorization url so we can get a token
    let params = [
        ("grant_type", "client_credentials"),
        ("client_id", client_id),
        ("client_secret", client_secret),
        ("resource", resource),
    ];
    let auth_url = format!("{}/oauth2/token", authorization_url);
    let auth_response = client
        .post(&auth_url)
        .form(&params)
        .send()
        .await?
        .json::<AuthResponse>()
        .await;

    auth_response
}

// pull out the authorization url we should hit, as well as the necessary resource.
fn parse_azure_bearer_header(bearer: &str) -> Option<(&str, &str)> {
    let re = regex::Regex::new(r#"authorization="([^"]+)".*resource="([^"]+)""#).unwrap();
    let captures = re.captures(bearer).unwrap();

    Some((
        captures.get(1).unwrap().as_str(),
        captures.get(2).unwrap().as_str(),
    ))
}

I have created a PR that makes the AAD crate fully async (https://github.com/MindFlavor/AzureSDKForRust/pull/162). Can you give it a try and tell me what do you think?
Thank you!

It does work! Can't use it in my project yet because of a ring conflict with core but I tested it after removing my code that used that version of ring and it worked! I still can't find any documentation for the method that my above code and the azure node client use for authenticating when you don't have a tenant ID. Was hoping to find something so I could make it more generic and add it as an option.


ISM/Manifest or ISM/.MPD support.

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.11.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[X] I've verified and I assure that I'm running youtube-dl 2017.11.26

Before submitting an issue make sure you have:

[X] At least skimmed through the README, most notably the FAQ and BUGS sections
[X] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[X] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Can you help explain, how can I download a ISM/Manifest base video or ISM/.mpd video.
Currenlty I can't download the following link
[DASHFormat] https://couspdash2.clarovideo.com/multimediav81/plataforma_vod/MP4/201706/WMP4H35606MTCR_full/WMP4H35606MTCR_full_WV_DASH.ism/.mpd
[ISMFormat] http://couspss2.clarovideo.com/multimediav81/plataforma_vod/MP4/201706/WMP4H35606MTCR_full/WMP4H35606MTCR_full_SS.ism/Manifest
Thanks for your help
./youtube-dl  -f bestvideo+bestaudio --verbose http://couspss2.clarovideo.com/multimediav81/plataforma_vod/MP4/201301/WMP4H05748MTCR_full/WMP4H05748MTCR_full_SS.ism/Manifest
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'bestvideo+bestaudio', u'--verbose', u'http://couspss2.clarovideo.com/multimediav81/plataforma_vod/MP4/201301/WMP4H05748MTCR_full/WMP4H05748MTCR_full_SS.ism/Manifest']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.26
[debug] Python version 2.7.10 - Darwin-17.2.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[generic] Manifest: Requesting header
WARNING: Falling back on generic information extractor.
[generic] Manifest: Downloading webpage
[generic] Manifest: Extracting information
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 784, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 437, in extract
    ie_result = self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/generic.py", line 2188, in _real_extract
    self._sort_formats(info_dict['formats'])
  File "./youtube-dl/youtube_dl/extractor/common.py", line 1067, in _sort_formats
    raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

DRM protected videos are not supported.


Session tokens are persistent for admins

@silend The problem was that the tokens were set not to expire in the db, but when the browser would end the session after some time, you were prompted to log in again, thus piling up tokens in the db. I can't think of any logic that will clean up these tokens without compromising usability, but I've disabled the persistance, so future tokens will be cleaned up properly.
Persistent tokens are now only used for syncing projects and the login API.


Fix error when importing hetmech.matrix

@gwaygenomics made the following observation:
Importing hetmech.matrix without previously importing hetmech.hetmat gives an ImportError
In the following image, I ran the first cell, then restarted the kernel and ran only the second cell. As can be seen below, importing hetmech.matrix alone or before hetmech.hetmat gives this error.

I am getting a different, but related error now when using hetmech in a conda environment with:


How to transfer calls inside Conn.Server using uuid of the calls?

Hi,
I want to transfer a live call happening at a server api which is bridged to an endpoint over to an extension without terminating or hanging up the call. I had set the "hangup after bridge call to be false", and I execute this code:
var esl = require('modesl');

var esl_server = new esl.Server({port: 8085, myevents:true}, function(){
    console.log("esl server is up");
});

esl_server.on('connection::ready', function(conn, id) {
        conn.execute('answer');
    	conn.execute('set',"hangup_after_bridge=false");
        conn.execute('bridge','name_of_the_bridge');
        // conn.api('uuid_transfer',uuid,'-bleg or both',description,dialplan, context
       conn.api('uuid_transfer',id,'-bleg',1000,'XML','default');
 }

I am trying to transfer the call from a bridge to an extension - incoming call with the user not getting disconnected.
Please answer my doubts asap! Thanks in advance. Immediate answers would be appreciated!

@englercj Would request you to kindly look into it, please!

This sounds like a FreeSWITCH question. You'd probably have more luck on the mailing list than here. I haven't used FreeSWITCH in years.

@englercj No, it is not FreeSWITCH problem. I am able to transfer calls through the dialplan. However, it fails only when I try to do it programmatically through the modesl code. Please refer and try to help me from your side! Thanks!

I can't know what you problem is intuitively, your best bet is to debug the node app and ensure it is sending the commands you expect. If you type the commands manually and they work, but they don't work programmatically then first confirm the program is sending the commands you think it is.

Your call to API doesn't look right, there are only 3 arguments to .api() and those are:

The command string
The array of arguments to send
A callback

Maybe you are trying to do:
conn.api('uuid_transfer', [id,'-bleg',1000,'XML','default']);

?

@englercj I am getting an error like
new call dJEV49tAWuXaFMj2TGx8
-ERR No such channel!
Is the uuid same as the id created during esl.connection::ready the same?
If not, how to get the uuid of the created connection on the esl Server?

The id of the connection is a random unique id we generate.  The uuid_transfer command takes the uuid of the call to transfer.
I don't know how you get that uuid off the top of my head, read up on the commands you are issuing and see what they return. I bet one of them (answer maybe?) gives you the uuid of the call you can use to transfer.

why not use FreeSWITCH  app transfer ?
conn.execute('transfer','1000 XML default')
if you want user uuid_transfer, you need get aleg uuid

why not use FreeSWITCH app transfer ?
conn.execute('transfer','1000 XML default')
if you want to use 'uuid_transfer', you need get aleg uuid

@shentianyu93 I need the uuid of the call to pass it into another stream from which I control the freeswitch call. So, please let me know how to get the UUID of a freeswitch call from dialplan?

@axchanda try this.
`var esl = require('modesl');
var eslServer = new esl.Server({host: '<IP_ADDRESS>', port: 8084, myevents: true}, function () {
console.info("esl server is start.");
});
eslServer.on('connection::ready', function (conn, id) {
if(conn.channelData.type === 'CHANNEL_DATA'){
console.log(conn.channelData.headers);
}
});
`
**[
{ name: 'Event-Name', value: 'CHANNEL_DATA' },
{ name: 'Core-UUID', value: '08a97102-b26b-46ba-aaeb-1c348c0681f2' },
{ name: 'FreeSWITCH-Hostname', value: '<IP_ADDRESS>' },
{ name: 'FreeSWITCH-Switchname', value: '<IP_ADDRESS>' },
{ name: 'FreeSWITCH-IPv4', value: '<IP_ADDRESS>' },
{ name: 'FreeSWITCH-IPv6', value: '::1' },
{ name: 'Event-Date-Local', value: '2019-07-27 09:41:29' },
{ name: 'Event-Date-GMT', value: 'Sat, 27 Jul 2019 01:41:29 GMT' },
{ name: 'Event-Date-Timestamp', value: '1564191689601255' },
{ name: 'Event-Calling-File', value: 'mod_event_socket.c' },
{ name: 'Event-Calling-Function', value: 'parse_command' },
{ name: 'Event-Calling-Line-Number', value: '2011' },
{ name: 'Event-Sequence', value: '1808' },
{ name: 'Channel-Direction', value: 'outbound' },
{ name: 'Channel-Logical-Direction', value: 'outbound' },
{ name: 'Channel-Dialplan', value: 'XML' },
{ name: 'Channel-Caller-ID-Name', value: 'Outbound Call' },
{ name: 'Channel-Caller-ID-Number', value: '1001' },
{ name: 'Channel-Orig-Caller-ID-Number', value: '0000000000' },
{ name: 'Channel-Callee-ID-Number', value: '0000000000' },
{ name: 'Channel-Network-Addr', value: '<IP_ADDRESS>' },
{ name: 'Channel-ANI', value: '0000000000' },
{ name: 'Channel-Destination-Number', value: '9999' },
{
name: 'Channel-Unique-ID',
value: '627e4d38-1277-49db-ad9a-25c0b1f8499d'
},
{ name: 'Channel-Source', value: 'src/switch_ivr_originate.c' },
{
name: 'Channel-Transfer-Source',
value: '1564191689:26022422-fb51-43dc-a62a-c506927193f0:bl_xfer:9999/default/XML'
},
{ name: 'Channel-Context', value: 'default' },
{ name: 'Channel-RDNIS', value: '1001' },
{
name: 'Channel-Channel-Name',
value: 'sofia/internal/1001@<IP_ADDRESS>:65093'
},
{ name: 'Channel-Profile-Index', value: '2' },
{ name: 'Channel-Profile-Created-Time', value: '1564191689601255' },
{ name: 'Channel-Channel-Created-Time', value: '1564191689301218' },
{ name: 'Channel-Channel-Answered-Time', value: '1564191689601255' },
{ name: 'Channel-Channel-Progress-Time', value: '0' },
{
name: 'Channel-Channel-Progress-Media-Time',
value: '1564191689581333'
},
{ name: 'Channel-Channel-Hangup-Time', value: '0' },
{ name: 'Channel-Channel-Transfer-Time', value: '0' },
{ name: 'Channel-Channel-Resurrect-Time', value: '0' },
{ name: 'Channel-Channel-Bridged-Time', value: '0' },
{ name: 'Channel-Channel-Last-Hold', value: '0' },
{ name: 'Channel-Channel-Hold-Accum', value: '0' },
{ name: 'Channel-Screen-Bit', value: 'true' },
{ name: 'Channel-Privacy-Hide-Name', value: 'false' },
{ name: 'Channel-Privacy-Hide-Number', value: 'false' },
{ name: 'Channel-State', value: 'CS_EXECUTE' },
{ name: 'Channel-Call-State', value: 'ACTIVE' },
{ name: 'Channel-State-Number', value: '4' },
{
name: 'Channel-Name',
value: 'sofia/internal/1001@<IP_ADDRESS>:65093'
},
{ name: 'Unique-ID', value: '627e4d38-1277-49db-ad9a-25c0b1f8499d' },
{ name: 'Call-Direction', value: 'outbound' },
{ name: 'Presence-Call-Direction', value: 'outbound' },
{ name: 'Channel-HIT-Dialplan', value: 'true' },
{ name: 'Channel-Presence-ID', value<EMAIL_ADDRESS>},
{
name: 'Channel-Call-UUID',
value: '627e4d38-1277-49db-ad9a-25c0b1f8499d'
},
{ name: 'Answer-State', value: 'answered' },
{ name: 'Channel-Read-Codec-Name', value: 'PCMU' },
{ name: 'Channel-Read-Codec-Rate', value: '8000' },
{ name: 'Channel-Read-Codec-Bit-Rate', value: '64000' },
{ name: 'Channel-Write-Codec-Name', value: 'PCMU' },
{ name: 'Channel-Write-Codec-Rate', value: '8000' },
{ name: 'Channel-Write-Codec-Bit-Rate', value: '64000' },
{ name: 'Caller-Direction', value: 'outbound' },
{ name: 'Caller-Logical-Direction', value: 'outbound' },
{ name: 'Caller-Dialplan', value: 'XML' },
{ name: 'Caller-Caller-ID-Name', value: 'Outbound Call' },
{ name: 'Caller-Caller-ID-Number', value: '1001' },
{ name: 'Caller-Orig-Caller-ID-Number', value: '0000000000' },
{ name: 'Caller-Callee-ID-Number', value: '0000000000' },
{ name: 'Caller-Network-Addr', value: '<IP_ADDRESS>' },
{ name: 'Caller-ANI', value: '0000000000' },
{ name: 'Caller-Destination-Number', value: '9999' },
{
name: 'Caller-Unique-ID',
value: '627e4d38-1277-49db-ad9a-25c0b1f8499d'
},
{ name: 'Caller-Source', value: 'src/switch_ivr_originate.c' },
{
name: 'Caller-Transfer-Source',
value: '1564191689:26022422-fb51-43dc-a62a-c506927193f0:bl_xfer:9999/default/XML'
},
{ name: 'Caller-Context', value: 'default' },
{ name: 'Caller-RDNIS', value: '1001' },
{
name: 'Caller-Channel-Name',
value: 'sofia/internal/1001@<IP_ADDRESS>:65093'
},
{ name: 'Caller-Profile-Index', value: '2' },
{ name: 'Caller-Profile-Created-Time', value: '1564191689601255' },
{ name: 'Caller-Channel-Created-Time', value: '1564191689301218' },
{ name: 'Caller-Channel-Answered-Time', value: '1564191689601255' },
{ name: 'Caller-Channel-Progress-Time', value: '0' },
{
name: 'Caller-Channel-Progress-Media-Time',
value: '1564191689581333'
},
{ name: 'Caller-Channel-Hangup-Time', value: '0' },
{ name: 'Caller-Channel-Transfer-Time', value: '0' },
{ name: 'Caller-Channel-Resurrect-Time', value: '0' },
{ name: 'Caller-Channel-Bridged-Time', value: '0' },
{ name: 'Caller-Channel-Last-Hold', value: '0' },
{ name: 'Caller-Channel-Hold-Accum', value: '0' },
{ name: 'Caller-Screen-Bit', value: 'true' },
{ name: 'Caller-Privacy-Hide-Name', value: 'false' },
{ name: 'Caller-Privacy-Hide-Number', value: 'false' },
{ name: 'variable_direction', value: 'outbound' },
{ name: 'variable_is_outbound', value: 'true' },
{
name: 'variable_uuid',
value: '627e4d38-1277-49db-ad9a-25c0b1f8499d'
},
{ name: 'variable_session_id', value: '17' },
{ name: 'variable_sip_profile_name', value: 'internal' },
{ name: 'variable_text_media_flow', value: 'disabled' },
{
name: 'variable_channel_name',
value: 'sofia/internal/1001@<IP_ADDRESS>:65093'
},
{
name: 'variable_sip_destination_url',
value: 'sip:1001@<IP_ADDRESS>:65093;ob'
},
... 102 more items
]
**
the UUID of a freeswitch call  =====   'Unique-ID' this key's value

@shentianyu93 Actually it was way too simpler. The dialplan variable ${uuid} can be passed into the headers of the request, and from there the call can be controlled using esl. But I now get codec issues :
Can't find matching codec in SDP. Any ideas for that?

@axchanda You need to learn more about FreeSWITCH.
Codec+Negotiation

Closing this since these are FreeSWITCH questions and not specific to this library.


rustPlatform.buildRustPackage: support direct use of Cargo.lock

Motivation for this change
This change introduces the cargoLock argument to buildRustPackage,
which can be used in place of cargo{Sha256,Hash} or cargoVendorDir. It
uses the importCargoLock function to build the vendor
directory. Differences compared to cargo{Sha256,Hash}:

Requires a Cargo.lock file.
Does not require a Cargo hash.
Retrieves all dependencies as fixed-output derivations.

This makes buildRustPackage much easier to use as part of a Rust
project, since it does not require updating cargo{Sha256,Hash} for
every change to the lock file.
To introduce this functionality, the importCargoLock function was
also added. This function can be used to create an output path that is
a cargo vendor directory. In contrast to e.g. fetchCargoTarball all
the dependent crates are fetched using fixed-output derivations. The
hashes for the fixed-output derivations are gathered from the
Cargo.lock file.
Usage is very simple, e.g.:
importCargoLock {
  lockFile = ./Cargo.lock;
}

would use the lockfile from the current directory.
The implementation of this function is based on Eelco Dolstra's
import-cargo:
https://github.com/edolstra/import-cargo/blob/master/flake.nix
Compared to cargo-import:

We use fetchgit in place of builtins.fetchGit. This requires specifying output hashes, which can be done through the outputHash attribute (see the documentation). Since crates.io does not allow uploads with non-crates.io dependencies, git dependencies do not occur much in practive.
Sync to current cargo vendoring.

cc @Ma27, @edolstra
Related issue: #89563
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/why-dont-nix-hashes-use-base-16/11325/27

In general it looks nice. I haven't tested it yet and thus there is no +1. I left a few minor remarks.

Did you find the time to test this?

In general it looks nice. I haven't tested it yet and thus there is no +1. I left a few minor remarks.

Did you find the time to test this?

I just tried to convert a random package from nixpkgs to this. I picked bitwarden_rs and applied this patch:
diff --git a/pkgs/tools/security/bitwarden_rs/default.nix b/pkgs/tools/security/bitwarden_rs/default.nix
index 5676e4005c1..da18f9fa58d 100644
--- a/pkgs/tools/security/bitwarden_rs/default.nix
+++ b/pkgs/tools/security/bitwarden_rs/default.nix
@@ -17,6 +17,15 @@ in rustPlatform.buildRustPackage rec {
     sha256 = "1ncy4iwmdzdp8rv1gc5i4s1rp97d94n4l4bh08v6w4zdpx0zn8b9";
   };

+  cargoLock = {
+    lockFile = src + "/Cargo.lock";
+    outputHash = {
+      "data-url-0.1.0" = "1lx660kx4143nppjc7cyfbhmmvy4ifljvb2imcqdxkqbqfaj7sbq";
+      "devise-0.3.0" = "0li9n5pviky3i4sb4h7p78vydgbx1nl3hrlynf42n5mvl8wc9fbj";
+      "rocket-0.5.0-dev" = "19lyljqhi6xszg86zl6wzd14bnjdb56dkcgqg2s3qz7bs8dgm4mi";
+    };
+  };
+
   nativeBuildInputs = [ pkg-config ];
   buildInputs = with lib; [ openssl ]
     ++ optionals stdenv.isDarwin [ Security CoreServices ]
@@ -25,7 +34,7 @@ in rustPlatform.buildRustPackage rec {

   RUSTC_BOOTSTRAP = 1;

-  cargoSha256 = "139by5y2ma3v52nabzr5man1qy395rchs2dlivkj9xi829kg4mcr";
+  # cargoSha256 = "139by5y2ma3v52nabzr5man1qy395rchs2dlivkj9xi829kg4mcr";
   cargoBuildFlags = [ featuresFlag ];

   checkPhase = ''

but it fails like this:
building '/nix/store/mhqcy8lx04ikyhvs4sx3y8mwpb61fk29-bitwarden_rs-1.20.0.drv'...
unpacking sources
unpacking source archive /nix/store/a02x61417w9yq2c3lf9c995azpk0ck22-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/nlhb6r908hj0skrhifqd4wk51l0n3gb8-cargo-vendor-dir
Finished cargoSetupPostUnpackHook
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/source//Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
configuring
building
Executing cargoBuildHook
++ env CC_x86_64-unknown-linux-gnu=/nix/store/zzvq5qwlm2xikawfqxb0q8gl2bw391a9-gcc-wrapper-10.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/zzvq5qwlm2xikawfqxb0q8gl2bw391a9-gcc-wrapper-10.2.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/zzvq5qwlm2xikawfqxb0q8gl2bw391a9-gcc-wrapper-10.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/zzvq5qwlm2xikawfqxb0q8gl2bw391a9-gcc-wrapper-10.2.0/bin/c++ cargo build -j 24 --target x86_64-unknown-linux-gnu --frozen --release --features sqlite
error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to load source for dependency `data-url`

Caused by:
  Unable to update https://github.com/servo/rust-url?rev=540ede02d0771824c0c80ff9f57fe8eff38b1291#540ede02

Caused by:
  failed to update replaced source https://github.com/servo/rust-url?rev=540ede02d0771824c0c80ff9f57fe8eff38b1291#540ede02

Caused by:
  found a virtual manifest at `/build/cargo-vendor-dir/devise_codegen-0.3.0/Cargo.toml` instead of a package manifest

Should it be this way?

Should it be this way?

Looks good. The issue is some workspaces where crates are not in first-level directory structures. I have it building now, but I need to clean up the changes.

Should it be this way?

Looks good. The issue is in workspaces where crates are not top-level directories. I have it building now, but I need to clean up the changes.

@andir this should work now. For crates from workspaces cargo metadata is now used to find the correct path of the crate within the workspace.

Should it be this way?

Looks good. The issue is in workspaces where crates are not top-level directories. I have it building now, but I need to clean up the changes.

@andir this should work now. For crates from workspaces cargo metadata is now used to find the correct path of the crate within the workspace.

Thanks! Looks better. I'll try a few more projects to see if I can find any more obvious errors.

This looks good to me. I was able to build a rather large internal workspace using this method. I still want to look at the implementation in more detail but I can't do that tonight. Likely tomorrow. I also requested a review from @kolloch as he is usually also very knowledgeable in the area of cargo metadata.

This looks good to me. I was able to build a rather large internal workspace using this method.

Cool! And thanks for all the comments so far!

You might want to look at my own attempt at this:
https://github.com/alyssais/nixpkgs/blob/import-cargo/pkgs/build-support/rust/import-cargo.nix
With my version, I was able to convert every single package in Nixpkgs (as of December) to it.  But to get around Cargo's annoying handling of workspaces, I had to patch Cargo (https://github.com/rust-lang/cargo/pull/9024), and upstream didn't seem interested, which soured me on the whole thing.
One thing I did that I think you should do here is make an importCargo function that returns a setupHook, which would make it possible to use outside of buildRustPackage (important for packages that are written in multiple languages).

You might want to look at my own attempt at this:
https://github.com/alyssais/nixpkgs/blob/import-cargo/pkgs/build-support/rust/import-cargo.nix
With my version, I was able to convert every single package in Nixpkgs (as of December) to it. But to get around Cargo's annoying handling of workspaces, I had to patch Cargo (rust-lang/cargo#9024), and upstream didn't seem interested, which soured me on the whole thing.

Thanks for the pointers! I’ll try to have a look tomorrow.

One thing I did that I think you should do here is make an importCargo function that returns a setupHook, which would make it possible to use outside of buildRustPackage (important for packages that are written in multiple languages).

I think that this should already work with the hookification of buildRustPackage that I did earlier this year. cargo-setup-hook’ picks up the cargoDepsin multi-language derivations andimportCargoLockshould work as a drop-in replacement forfetchCargoTarball`.  But I’ll test this tomorrow to ensure that it works properly.

I think that this should already work with the hookification of buildRustPackage that I did earlier this year. cargo-setup-hook picks up the cargoDeps in multi-language derivations and importCargoLock should work as a drop-in replacement for fetchCargoTarball. But I’ll test this tomorrow to ensure that it works properly.

Works with the hooks as expected. I have added a Rust/Python project using buildPythonPackage as an additional test case:
https://github.com/NixOS/nixpkgs/blob/ff470c3a09fe95673108c9d7e3ad31a12d61d5ca/pkgs/build-support/rust/test/import-cargo-lock/maturin/default.nix#L20

I think that this should already work with the hookification of buildRustPackage that I did earlier this year. cargo-setup-hook picks up the cargoDeps in multi-language derivations and importCargoLock should work as a drop-in replacement for fetchCargoTarball. But I’ll test this tomorrow to ensure that it works properly.

Works with the hooks as expected. I have added a Rust/Python project using buildPythonPackage as an additional test case:
https://github.com/NixOS/nixpkgs/blob/ff470c3a09fe95673108c9d7e3ad31a12d61d5ca/pkgs/build-support/rust/test/import-cargo-lock/maturin/default.nix#L20

Added this to the documentation now as well.

@alyssais any objections against merging this?

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/cant-get-rustplatform-to-work-with-src/13210/3

This feature would be a significant step forward in packaging usability.

I would hate for this to get stuck, so unless there are objections, I'll merge this at Friday 28, 12:00 CET.

@ofborg build tests.importCargoLock

Thanks for all the reviews!

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nvfetcher-generate-nix-sources-expr-for-the-latest-version-of-packages/13530/3

A pattern I find myself using when some upstream project doesn't have a Cargo.lock, and I have to provide my own:
# ...
pkgs.rustPlatform.buildRustPackage {
  # ...
  cargoLock.lockFile = ./Cargo.lock;
  cargoPatches = [
    (pkgs.runCommand "Cargo.lock.patch" { buildInputs = [ pkgs.git ]; } ''
      cp ${./Cargo.lock} Cargo.lock
      git init && git add Cargo.lock
      git diff --cached > $out
    '')
  ];
}

That way I don't need to manually provide the Cargo.lock patch. Maybe this patch generation could be automated in nixpkgs when cargoLock.lockFile is specified?
If I omit the cargoPatches entry, I get an error message during the build:
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
/nix/store/49y3r0gr9m6k20d91kl6dgp4b9a6m72v-diffutils-3.8/bin/diff: /build/source/Cargo.lock: No such file or directory
ERROR: Missing Cargo.lock from src. Expected to find it at: /build/source/Cargo.lock
Hint: You can use the cargoPatches attribute to add a Cargo.lock manually to the build.

Probably it shouldn't be even apply a patch but just copy the whole thing over?


Inverting a quantum circuit

I can create a circuit for generating arbitrary quantum superposition with initialize() function.
I know there is a call to inverse() function within the initialize(). So, it should be easy to do that (just do not execute that call to inverse()).
But I cannot find a way to inverse a circuit I obtain from the initialize() nor for any quantum circuit that I have.
Expected Behavior

Access to inverse() function, or, at least an example of using CompositeGate that supports operation to invert the gate.
Current Behavior

There seems to be no test case and examples of using CompositeGate from the initialize().
Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Version used: 0.5.2
Environment name and version (e.g. Python 3.6.1): Python 3.6.x
Operating System and version: MacOSX

QuantumCircuits are not in general reversible (could contain measure or reset). CompositeGates are reversible, and a simple call to inverse() on any CompositeGate should do the trick. Initialize is just one example of a CompositeGate.
As for tests, they are added in #573. I agree we should have more examples for the CompositeGate and make it easier to use (see #316), but I think this current issue is resolved. Feel free to reopen if your problem persists.


Origin/add flags skip data load

Pull request to add feature to re-create views without re-loading the data

PR in testing..

Is it ok if we close this PR? I suspect there are quite a few merge conflicts to address now.


Implement std::pair and std::array

This is needed by the new bragi additions for managarm/mlibc.

Addressed the comments raised, and added implementations of max_size() and empty().


LUAFDN-692: Embed more information about the reducer/thunk that had an error

Works toward LUAFDN-692.
We are running into a rare issue in production where we need more information in the rodux error reporting to track it down.
Insert more information about the reducer/thunk that had the error to better focus debugging in complex codebases.

Coverage increased (+0.04%) to 99.206% when pulling a796265748a2d44fb2b2319434509f1857089669 on reducer-error-more-info into f745756c62c0a92d781db1524d9883e3d03399f7 on master.

This turned out not to be necessary, if you look at all the threads active during the errors reported here.


Implement way to customize color and padding strings

horizontal
vertical1
vertical2

There is a way now as well to overwrite later the default color
for animation_color, that is used by the _spinner function to make
the animation on @animated decorator
Fix #30

This fix #30

Codecov Report

Merging #35 into dev will increase coverage by 0.74%.
The diff coverage is 71.42%.

@@            Coverage Diff            @@
##             dev      #35      +/-   ##
=========================================
+ Coverage   50.6%   51.35%   +0.74%
=========================================
  Files         10       10
  Lines        328      331       +3
=========================================
+ Hits         166      170       +4
+ Misses       162      161       -1

Impacted Files
Coverage Δ

decorating/animation.py
46.4% <71.42%> (+2.13%)
:arrow_up:

Continue to review full report at Codecov.

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


Unable to start Next.js Blog Template

Unable to start Next.js Blog Template from https://decapcms.org/docs/start-with-a-template/
Diagnosis:
The build is failing due to the error
ERR_PACKAGE_PATH_NOT_EXPORTED.
This error occurs because a package subpath is not defined by "exports" in a node module during the build process.

You've to update the packages.
They are outdated and do result in this error.
Same for netifly.

Thank you
On Sun, Oct 13, 2024, 7:03 PM IeM @.***> wrote:

You've to update the packages.
They are outdated and do result in this error.
Same for netifly.
—
Reply to this email directly, view it on GitHub
https://github.com/wutali/nextjs-netlify-blog-template/issues/53#issuecomment-2409051784,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGZ52DT6NLJ3N5KPIBG5CTDZ3KRVJAVCNFSM6AAAAABPFDXMXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBZGA2TCNZYGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

@wutali is there any chance that you update the project to keep the deployment to Netifly/ decapcms supported?


Achievements for A.V.A. Alliance of Valiant Arms

Hey,
I have all the achievements for "A.V.A. Alliance of Valiant Arms ", but it was removed from the store and library.
Is there possibly any way to remove these achievements?
It says I don't own the game if I use AppID. Thanks.

Unfortunately no, once it's gone from Steam there's no way SAM can interact with it, since it uses Steam's API to work with achievements.


Show doi in IPT metadata

What feature would like to see being added to the IPT?

Now that DOIs minted for the resource are supported. It will be useful for that IPT
to reflect those in its metadata. I suppose it would probably best be put in citation
rather than alternate identifier.

Being able to see (and set) this in the IPT will take the citation information one
step closer to the source, so that any aggregator or other user could take advantage
of and propagate it.

Original issue reported on code.google.com by gtuco.btuco on 2015-03-26 14:39:00

It looks that this is already available no?

One can manually add DOI to resource citation identifier. If auto-generation is on for resource citation, it will be included there as well.
The dataset DOI can be populated by the API in the DwC field datasetID

Or did you mean something else @tucotuco?

When a dataset with no existing DOI assigned to it gets registered with GBIF, GBIF assigns it a DOI. That GBIF-DOI resolves to a GBIF Dataset Page, not the IPT Dataset Page.
After registration with GBIF, the IPT should automatically update the dataset with its newly assigned GBIF-DOI. This will save the manager from having to fill it in manually.
Please note that as per the IPT versioning policy, publishers should assign a new DOI to the dataset each time it undergoes a scientifically significant change. This is only possible, however, if the IPT has been configured with a DataCite or EZID account. Otherwise, the dataset will retain the same GBIF-DOI forever hence the GBIF Portal does not handle dataset versioning.

Any plans to implement this?
We now have our datasets harvested through our IPT DCAT feed and the identifiers that end up at the aggregator website are the GBIF UUID urls. We would rather have the DOIs there, but then they need to be available in the IPT. See https://github.com/inbo/ipt-dcat/issues/57
/cc @stijnvanhoey

@peterdesmet there is no plan to implement this in the next release.
I'd like to point out there is a danger in using the GBIF DOI as the data citation identifier hence it resolves to the version of the dataset that GBIF last indexed, not the original data in the IPT.
In order for the data citation to enable other researchers to locate the original data (e.g. to reproduce results based on the original data) it would be more accurate to use the IPT URL as the citation identifier because it resolves to the original data. Nevertheless, a DOI is probably still preferred because it guarantees persistent access to the data over time given the IPT URL may change.

Correct. Also GBIF page links to source data, although that link could be highlighted more. Plans to do this in new design?

Indeed @MortenHofft 's new design of the dataset page raises the visibility of the original source data and will help users discover the origin of the dataset more easily.

IPT 2.5 has been released, but I do not see such functionality. Should the milestone be postponed?

Thank you for you question @frafra
The 2.5 milestone was a general milestone with issues we initially planned to include to the 2.5.0 and others. I renamed it to 2.x a while ago to avoid confusion.


All hyperlinks should open in a new tab

While testing autosave (related issue #1878 ) on the write plan page I experienced some weird behavior related to hyperlinks. When I click a Guidance link (screenshot 1) it opens in the same tab. Then if I try to navigate back to the write plan page the browser seems to think I'm in a new session and doesn't display any of my previously answered and autosaved questions (screenshot 2). I have to reload the entire plan to recover my answered questions.
The desired behavior is to open links in a new tab anyway. Reinstating this behavior should avoid the problem.

working as expected now. closing issue.

Looks good. Thanks @briri


Show number of comments on the post

Feature request-
The number of comments should also be shown near read more button on the post
Is your feature request related to a problem? Please describe. (optional)
A clear and concise description of what the problem is.
Describe the solution you'd like
Add number of comments near read more button
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Describe how this feature will be useful to our readers.
This will give the reader an idea about how many users have commented on the post even before reading whole post
Additional context
Add any other context or screenshots about the feature request here.

Note:

Do mention if your are working under GSSoC'21.
If you want to work on an issue, you should check if it has already been assigned to anyone. If the issue is free you can comment /assign to get the issue assigned to you.
If you are raising a new issue and want to work on it then also you should comment /assign under the issue to get it auto assigned.
Please refrain from adding labels to your issue/pull-request on your own. It is the job of the Project Admin and the Mentors to review your issue/pull-request and add labels accordingly.
According to the level of the issue, respective time will be allotted under which the task needs to be completed/resolved by the assigned person. If the issue is not resolved within the given time, it will be assigned to the next person. In case of any discrepancies, the decision of the maintainer will be final.

level - 0: 2 days
level - 1: 3 days
level - 2: 4 days
level - 3: 5 days

I am working under GSSoC'21

Hi, can I work on this issue under gssoc'21? Please assign it to me.

Hi, can I work on this issue under gssoc'21? Please assign it to me.

You can start working on the issue. If you want to get it assigned to you, just comment "/ assign" (without space and quotes)

/assign

Hi, I was setting up the project in my machine. While signing up, I am running into this error. Can anyone please guide me?

Thank You.

Hi, I was setting up the project in my machine. While signing up, I am running into this error. Can anyone please guide me?

Thank You.

Have you set environment variables in a .env file??

There was a typo in my .env, thanks a lot for the guidance.


label based on name of PR target branch

Is there an option to add label based on target branch in pull request? For example if target branch is release/x.x.x I would like to have label release on Pull request.

No, but it should be easy to add (it's a variant of the baseBranch option but the code should be pretty much the same)

I will close this for now as I believe the functionality is actually available with the base branch condition as mentioned above. Feel free to reopen otherwise.


Grabber result non-results

What steps will reproduce the problem?
Searching largely populated tags like Gnoll, Gnoll, Tribal, Hyena Tribal, and other tags
What is the expected behavior? What do you get instead?
It seems in some cases the tag tab fills up with tags but the images are not loaded on the page and the get functions do not let me download any images, becuase they havn't loaded or shown up.
How often does this problem occur?
Frequently. It's occurred with other searches too, but It's becoming more and more common as of late.
What version of the program are you using? On what operating system?
5.2.4
Please provide any additional information below
Here is an anonfiles of my crash log, I hope it helps I've also been having trouble with gettign search results to show when not using my Proxy, Privoxy in any view, but I think that's just down to the ammount of sources I use. https://www.anonfiles.cc/file/10158ad0c915617b858efe4fa411e289

Are you using merged results when it happens?
And does the UI freezes during that time?
Does all your sources return results for those searches, or just a small % of them? (like 80% without results and 20% with)

Nah, seemingly it searches and gets the results, but the images don't show (Not loaded?) and there Get all, Get selected and get this page options are inert, so you can't get any images or anything.
Even shows the tags for the searched results, but there isn't anything up to grab.
As for me using merged results, yes, not like I have a choice given the frequency of crashes I have when I don't use it with the amount of sources I have.

Ah I get it. Since you're using merged results, the program waits for all the sources you selected to load before showing the results.
This behaviour will change in next version with issue #877 implementation.

@Bionus this issue can be closed now

Indeed :smile:


Warning

Getting this:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/u895902253/public_html/bans/index.php on line 71
Line 71: $result = mysqli_query($con,"SELECT * FROM `".$info['table']."".strtoupper($type).""); $rows = mysqli_num_rows($result); //Grab the number of rows per punishment type.

What version of PHP are you using?

5.6.21

Try upgrading to the latest version of PHP and see if that fixes your issue, @donleo123.

This should be fixed in the latest version. If not, please create another issue.


KnapSack

Hello,
I was using KNAPSACK_MULTIDIMENSION_BRANCH_AND_BOUND_SOLVER, in a problem with 2 capacity dimensions and up to 60 items to try an fit. In this case only around items 10 practically fit the bin (i.e. meet both capacity dimensions).
The algo worked pretty will up to 20+ items however, anywhere above 28 items causes the CPU memory consumption to grow continuously until the program crashes.
Using KNAPSACK_MULTIDIMENSION_CBC_MIP_SOLVER worked well up to 100 items, no issues. I did not deeply validate the optimality of the assignment, but these seemed OK.
Any drawbacks with using the CBC_MIP?
Happy Holidays!

Please check the solution. We have found case where it was obviously wrong.
Le sam. 28 déc. 2019 à 18:00, Guy<EMAIL_ADDRESS>a écrit :

Hello,
I was using KNAPSACK_MULTIDIMENSION_BRANCH_AND_BOUND_SOLVER, in a problem
with 2 capacity dimensions and up to 60 items to try an fit. In this
case only around items 10 practically fit the bin (i.e. meet both capacity
dimensions).
The algo worked pretty will up to 20+ items however, anywhere above 28
items causes the CPU memory consumption to grow continuously until the
program crashes.
Using KNAPSACK_MULTIDIMENSION_CBC_MIP_SOLVER worked well up to 100 items,
no issues. I did not deeply validate the optimality of the assignment, but
these seemed OK.
Any drawbacks with using the CBC_MIP?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1809?email_source=notifications&email_token=ACUPL3KTT7NUYGOQS7NXKGLQ26AZBA5CNFSM4KAPNR42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDBHR7A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3JOITONKIGDRHOETNLQ26AZBANCNFSM4KAPNR4Q
.

Should I then add post-processing code to validate the solver solution?
Was the problem with BRANCH_AND_BOUND or CBC_MIP or with both?

The problem must have been with only CBC. If the problem was with Google's
solver, Laurent would have fixed it by now :-)
Jon
On Sat, Dec 28, 2019 at 2:10 PM Guy<EMAIL_ADDRESS>wrote:

Should I then add post-processing code to validate the solver solution?
Was the problem with BRANCH_AND_BOUND or CBC_MIP or with both?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1809?email_source=notifications&email_token=ACFCEW4CWP4HHQTFLTQSULTQ26QC5A5CNFSM4KAPNR42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYQJ4Y#issuecomment-569443571,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACFCEW4UEVNGGDTCMYOR4K3Q26QC5ANCNFSM4KAPNR4Q
.

Exactly, CBC is unreliable, sometimes. Especially on very small problems.
Le sam. 28 déc. 2019 à 21:15, Jon Orwant<EMAIL_ADDRESS>a
écrit :

The problem must have been with only CBC. If the problem was with Google's
solver, Laurent would have fixed it by now :-)
Jon
On Sat, Dec 28, 2019 at 2:10 PM Guy<EMAIL_ADDRESS>wrote:

Should I then add post-processing code to validate the solver solution?
Was the problem with BRANCH_AND_BOUND or CBC_MIP or with both?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/google/or-tools/issues/1809?email_source=notifications&email_token=ACFCEW4CWP4HHQTFLTQSULTQ26QC5A5CNFSM4KAPNR42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYQJ4Y#issuecomment-569443571
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ACFCEW4UEVNGGDTCMYOR4K3Q26QC5ANCNFSM4KAPNR4Q
.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1809?email_source=notifications&email_token=ACUPL3MGLZJLHBQHXTR4JZDQ26XVXA5CNFSM4KAPNR42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYRLQQ#issuecomment-569447874,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3JHNVTXMK55G52LYOLQ26XVXANCNFSM4KAPNR4Q
.

Aoutch
So, any way to contain or control the issue I described with BRANCH_AND_BOUND, using up to 60 items?


some bit.ly Links causes the app to lag (until the url gets loaded)

I think this is some kind of small problem for the dispatch or thread,  but I'm still not really adept at that part of coding so I don't know.
http://bit.ly/2dIBlR6 here's the link btw
But once again. This project is so kickass awesome. Thanks :)

Do you have more examples?

I'll try looking for more links like these. (I think it's because the link redirects to a PDF)
http://bit.ly/2dKjZUz

To capture the real URL request is synchronous because we need to follow the redirections of a short url, but the rest is not.

really? cause even when I'm just trying to load links like www.github.com (I type in a textfield a link and I detect if the link is of the legit format then every tap I load it by adding a target to my textfield .EditingChanged)
so everytime I tap it tries to load (so it lags/delays a little bit) so I changed loading of url's to textField didEndEditing

Can you try with the new version?

Closed due inactivity.


feat(smart): ERC20 paymaster support

#3719  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on  Graphite


Manacher's Algorithm | C++

Title - Manacher's Algorithm
what will change - Adding Manacher's Algorithm in CPP
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Happy Coding,

Please assign this issue to me


Excerpt length

Hi,
is there any way to increase the excerpt length which is currently way too short (256 characters)?
Thanks!
Ugnius

Yes I agree. I can increase it in the next release, but for now just change the length of the field in the database.


guile-gnutls: 4.0.0 -> 4.0.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/guile-gnutls/versions.
meta.description for guile-gnutls is: Guile bindings for GnuTLS library
meta.homepage for guile-gnutls is: https://gitlab.com/gnutls/guile/
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.0.1 with grep in /nix/store/c7s2sh7lvphvjzdjazrjvwfa0j96i0ci-guile-gnutls-4.0.1
found 4.0.1 in filename of file in /nix/store/c7s2sh7lvphvjzdjazrjvwfa0j96i0ci-guile-gnutls-4.0.1

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

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

guile-gnutls
guile-goblins
guix

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/c7s2sh7lvphvjzdjazrjvwfa0j96i0ci-guile-gnutls-4.0.1 \
  --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 guile-gnutls https://github.com/r-ryantm/nixpkgs/archive/eda53b2dd1bd9c4115cd92681b9cadb4787c0956.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/eda53b2dd1bd9c4115cd92681b9cadb4787c0956#guile-gnutls

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/c7s2sh7lvphvjzdjazrjvwfa0j96i0ci-guile-gnutls-4.0.1
ls -la /nix/store/c7s2sh7lvphvjzdjazrjvwfa0j96i0ci-guile-gnutls-4.0.1/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.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 3 packages built:

guile-gnutls
guile-goblins
guix

Maintainer pings
cc @foo-dogsquared for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

@ofborg test guix


Test: Continue On on Codespace

Refs: #13577

[ ] Web @DonJayamanne
[x] Web @eleanorjboyd

Complexity: 2
Authors: @rebornix
Create Issue

Steps

Open a github repository without dev containers preset
Press . to open github.dev
Install Jupyter extension
Create a new notebook document
Go to Kernel Picker -> Select Another Kernel -> Connect to Codespace
Pick a sku
Once the server is created, pick the ipykernel kernel, run a cell
Once the cell executed succesfully, you should now see an option on the notebook toolbar "Continue On"

Now you should be able to navigate to the Codespace instance under the hood, with the changes you made in the workspace.
@DonJayamanne @eleanorjboyd this test requires knowledge of Jupyter so I manually assigned this test to you, thanks!

What is the step Once the cell executed succesfully, you should now see an option on the notebook toolbar "Continue On"? Where do I find this toolbar? I am seeing it successfully in the terminal tab.

@rebornix pointed out I was not on insiders. Here were the steps I took after changing to see the continue on in toolbar
Steps to do so:

in github.dev click on the "gear" icon
select switch to insiders
confirm you are on pre-release Jupyter extension
reload window
execute cell in notebook (might require repicking the kernel, codespace should show up as a kernel option)
continue on will appear in the toolbar

I am unable to select a kernel, get the following errors


Foreign Key Reflection failing if same FK_NAME is used in different schemas

We have a table A which has 2 foreign keys: schema_a.B and schema_b.B.
Both foreign key constraints have the same name.
This leads to an error while reflecting with SQLAlchemy here:
https://github.com/ibmdb/python-ibmdbsa/blob/015921d5f72d09b811cf890e205e7dd5d4e08538/ibm_db_sa/reflection.py#L314
The Problem is that because the name for the two constraint is identical, this if condition does not hit the second time.
Instead the else is triggered and the columns are falsely added to the column list even though the second entry belongs to an entirely differnt FK constraint of a different table.
Instead, we should use a touple of (PKTABLE_SCHEM, PKTABLE_NAME, FK_NAME) (I think) as a key to the dictionary.
As we are matching the else wrongly, the columns of the second table are added to the ones of the first table here:
https://github.com/ibmdb/python-ibmdbsa/blob/015921d5f72d09b811cf890e205e7dd5d4e08538/ibm_db_sa/reflection.py#L330
This then leads correctly to a SQLAlchemy Error:
sqlalchemy.exc.ArgumentError: ForeignKeyConstraint with duplicate source column references are not supported.

Let me reproduce this scenario and get back with some more insight on this. This is very unique situation and hence the error.

To reproduce the above scenario I have testing using the following
create table NEWTON.a (c1 integer generated by default as identity not null, PRIMARY KEY (c1));

create table QACLI.a (c1 integer generated by default as identity not null, PRIMARY KEY (c1));

create table c (k1 integer, k2 integer);

alter table c add constraint k1_key foreign key (k1) references NEWTON.a(c1) on update no action on delete cascade;

alter table c add constraint k2_key foreign key (k2) references QACLI.a(c1) on update no action on delete cascade;

On running foreign key relation
=> foreign keys
2022-04-27 04:48:49,832 INFO sqlalchemy.engine.Engine SELECT "SYSIBM"."SQLFOREIGNKEYS"."FK_NAME", "SYSIBM"."SQLFOREIGNKEYS"."FKTABLE_SCHEM", "SYSIBM"."SQLFOREIGNKEYS"."FKTABLE_NAME", "SYSIBM"."SQLFOREIGNKEYS"."FKCOLUMN_NAME", "SYSIBM"."SQLFOREIGNKEYS"."PK_NAME", "SYSIBM"."SQLFOREIGNKEYS"."PKTABLE_SCHEM", "SYSIBM"."SQLFOREIGNKEYS"."PKTABLE_NAME", "SYSIBM"."SQLFOREIGNKEYS"."PKCOLUMN_NAME"
FROM "SYSCAT"."TABLES" INNER JOIN "SYSIBM"."SQLFOREIGNKEYS" ON "SYSCAT"."TABLES"."TABNAME" = "SYSIBM"."SQLFOREIGNKEYS"."PKTABLE_NAME"
WHERE "SYSCAT"."TABLES"."TYPE" = ? AND "SYSCAT"."TABLES"."TABSCHEMA" = ? AND "SYSIBM"."SQLFOREIGNKEYS"."FKTABLE_NAME" = ? ORDER BY "SYSCAT"."TABLES"."TABNAME"
2022-04-27 04:48:49,866 INFO sqlalchemy.engine.Engine [dialect ibm_db_sa+ibm_db_sa does not support caching 0.03461s] (b'T', b'NEWTON', b'C')
[{'name': 'k1_key', 'constrained_columns': ['k1'], 'referred_schema': None, 'referred_table': 'a', 'referred_columns': ['c1']}, {'name': 'k2_key', 'constrained_columns': ['k2'], 'referred_schema': 'qacli', 'referred_table': 'a', 'referred_columns': ['c1']}]

I am not able to reproduce the issue here. Can you let me know what kind of table structure you are using ?

To reproduce the above scenario I have testing using the following
create table NEWTON.a (c1 integer generated by default as identity not null, PRIMARY KEY (c1));

create table QACLI.a (c1 integer generated by default as identity not null, PRIMARY KEY (c1));

create table c (k1 integer, k2 integer);

alter table c add constraint k1_key foreign key (k1) references NEWTON.a(c1) on update no action on delete cascade;

alter table c add constraint k2_key foreign key (k2) references QACLI.a(c1) on update no action on delete cascade;

On running foreign key relation
=> foreign keys
2022-04-27 04:48:49,832 INFO sqlalchemy.engine.Engine SELECT "SYSIBM"."SQLFOREIGNKEYS"."FK_NAME", "SYSIBM"."SQLFOREIGNKEYS"."FKTABLE_SCHEM", "SYSIBM"."SQLFOREIGNKEYS"."FKTABLE_NAME", "SYSIBM"."SQLFOREIGNKEYS"."FKCOLUMN_NAME", "SYSIBM"."SQLFOREIGNKEYS"."PK_NAME", "SYSIBM"."SQLFOREIGNKEYS"."PKTABLE_SCHEM", "SYSIBM"."SQLFOREIGNKEYS"."PKTABLE_NAME", "SYSIBM"."SQLFOREIGNKEYS"."PKCOLUMN_NAME"
FROM "SYSCAT"."TABLES" INNER JOIN "SYSIBM"."SQLFOREIGNKEYS" ON "SYSCAT"."TABLES"."TABNAME" = "SYSIBM"."SQLFOREIGNKEYS"."PKTABLE_NAME"
WHERE "SYSCAT"."TABLES"."TYPE" = ? AND "SYSCAT"."TABLES"."TABSCHEMA" = ? AND "SYSIBM"."SQLFOREIGNKEYS"."FKTABLE_NAME" = ? ORDER BY "SYSCAT"."TABLES"."TABNAME"
2022-04-27 04:48:49,866 INFO sqlalchemy.engine.Engine [dialect ibm_db_sa+ibm_db_sa does not support caching 0.03461s] (b'T', b'NEWTON', b'C')
[{'name': 'k1_key', 'constrained_columns': ['k1'], 'referred_schema': None, 'referred_table': 'a', 'referred_columns': ['c1']}, {'name': 'k2_key', 'constrained_columns': ['k2'], 'referred_schema': 'qacli', 'referred_table': 'a', 'referred_columns': ['c1']}]

I am not able to reproduce the issue here. Can you let me know what kind of table structure you are using ?

Closing this due to inactivity, user is free to re-open for further assistance.


Adding Iceberg Support

This PR adds support for reads and writes via Iceberg to the Java SDK. At the moment this isn't intended to be used as a standalone IO, but rather to be integrated into a forthcoming catalog representation that should make it easier to work with more structured sources.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] 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 or the workflows README to see a list of phrases to trigger workflows.

This was integrated into #30797 and #30805


Digits/caffe cannot find cuda device in ununtu 16.04+ cuda 8

Hi,
I have Ubuntu 16.04 and installed cuda 8. I think they are installed correctly because:

but I have problems like this:

And i tried digits/test-devices.py

I should mention that at first it had problems with pydot, so according to previous issues I installed pydot 1.0.28 and pydotparser ver. 1.5.7 ...
But the problem is I don't know how to resolve problem with cuda.
and these are my environmental variables:

So I'd be grateful if you help me ...

Does nvidia-smi work?

Yes, and this is the result:

Here's what error 38 means:

cudaErrorNoDevice = 38
This indicates that no CUDA-capable devices were detected by the installed CUDA driver.
http://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1g3f51e3575c2178246db0a94a430e0038

... but that's not super helpful. Your GPU has compute capability 3.0, so you should be fine. This SO post suggests restarting. Did you install your driver recently?

Ping? Any updates?

Sorry...
Yes I tried multiple times of restarting and different versions of nvidia driver which the newest was 370, but I couldn't fix that.
It happened that I tried Xubuntu 16.04 on my laptop, but same problem... and same tries and no success!

My guess is that it's some sort of hardware issue because you're on a laptop with a relatively old GPU. But I don't know of any specific reason why you should be having an issue. Let me ask around and see if anyone has any suggestions...

Thanks for your response.
There is something else I should mention, now I'm using cuda V. 8.0.44 + nvidia 370 on Xubuntu and I see the error 35 which is related to the driver.
I should mention I have restarted the laptop.
Thank you so much :)

@3XX0's best guess is that this is an Optimus issue. Apparently Canonical installs some problematic packages on Ubuntu that jack with Optimus-enabled GPUs.
Sorry, but this is not a DIGITS issue and is outside the realm of our expertise. I'm going to have to refer you to https://devtalk.nvidia.com. Somebody there should be able to help you out.

Hi,
I want to send an update; Now I'm available to train on the same device , I installed everything related to Caffe, Digits, Nvidia driver and Cuda from scratch; Unfortunately, I don't know what was the reason for last failures but I should mention that previously I used cuda-8.0.27 and I realized it's not compatible with new kernel of Ubuntu 16.04 and now 8.0.44 is working with Nvidia-367 driver.
I can say that I followed some discussions about error code 35 or 38 (rises in Caffe's log), and they didn't work for me. Maybe if something same occurs for you, after double checking, start from the scratch because of the potential missing.

Thanks for the update! Glad to hear you got it working.


Redesign posts and pages

resolves #123
resolves #124
Added headers to pages.
displayName for Author, Stream for Stream, Friends for Friends, Public for PublicStream.
Made it so auto-scroll in Author only happens upon clicking the Edit button.
Fixed visibility settings to handle private appropriately.
Fixed stream feed bug where edit/delete buttons were appearing on posts based on ID for some reason.
Changed alerts to toasts.

personally not a big fan of the text on top left corner. Maybe style the nav bar to indicate which page you are on instead?

personally not a big fan of the text on top left corner. Maybe style the nav bar to indicate which page you are on instead?

Do you wanna restyle the Sidebar using your other version? :U
I was also thinking of hiding the Sidebar in a button that has the text of the current thing you're on, but that'll take more work than we can afford atm probably.


Feature/sse undo redo

Basics

[ ] Details of what you changed are in commit messages.
[ ] References to issues, e.g. close #X, are in the commit messages.
[ ] The buildserver is happy.
[ ] The PR is rebased with current master.

Checklist

[ ] I fully described what my PR does in the documentation
(not in the PR description)
[ ] I fixed all affected documentation
[ ] I fixed all affected decisions
[ ] I added unit tests for my code
[ ] I added code comments, logging, and assertions as appropriate
[ ] I translated all strings visible to the user
[ ] I mentioned every code or binary not directly written or done by me in reuse syntax
[ ] I created left-over issues for things that are still to be done
[ ] Code is conforming to our Architecture
[ ] Code is conforming to our Guidelines
(exceptions are documented)
[ ] Code is consistent to our Design Decisions

Review

[ ] I've tested the code
[ ] I've read through the whole code
[ ] Examples are well chosen and understandable

Thanks for creating the PR! :heart:

@kitzbergerg please merge if your concerns are addressed.


When I install Cloudpods, this error is reported, how can I replace the available image source?

fatal: [10.x.x.40]: FAILED! => {"changed": true, "cmd": "yum clean all\nyum -y --disablerepo='' --enablerepo='yunion' makecache\n", "delta": "0:00:01.154596", "end": "2023-05-29 14:10:23.338104", "msg": "non-zero return code", "rc": 1, "start": "2023-05-29 14:10:22.183508", "stderr": "https://iso.yunion.cn/%24contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error\nTrying other mirror.\n\n\n One of the configured repositories failed (Packages for Yunion Multi-Cloud Platform -),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work "fix" this:\n\n     1. Contact the upstream for the repository and get them to fix the problem.\n\n     2. Reconfigure the baseurl/etc. for the repository, to point to a working\n        upstream. This is most often useful if you are using a newer\n        distribution release than is supported by the repository (and the\n        packages for the previous distribution release still work).\n\n     3. Run the command with the repository temporarily disabled\n            yum --disablerepo=yunion-repo- ...\n\n     4. Disable the repository permanently, so yum won't use it by default. Yum\n        will then just ignore the repository until you permanently enable it\n        again or use --enablerepo for temporary usage:\n\n            yum-config-manager --disable yunion-repo-\n        or\n            subscription-manager repos --disable=yunion-repo-\n\n     5. Configure the failing repository to be skipped, if it is unavailable.\n        Note that yum will try to contact the repo. when it runs most commands,\n        so will have to try and fail each time (and thus. yum will be be much\n        slower). If it is a very temporary problem though, this is often a nice\n        compromise:\n\n            yum-config-manager --save --setopt=yunion-repo-.skip_if_unavailable=true\n\nfailure: repodata/repomd.xml from yunion-repo-: [Errno 256] No more mirrors to try.\nhttps://iso.yunion.cn/$contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error", "stderr_lines": ["https://iso.yunion.cn/%24contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error", "Trying other mirror.", "", "", " One of the configured repositories failed (Packages for Yunion Multi-Cloud Platform -),", " and yum doesn't have enough cached data to continue. At this point the only", " safe thing yum can do is fail. There are a few ways to work "fix" this:", "", "     1. Contact the upstream for the repository and get them to fix the problem.", "", "     2. Reconfigure the baseurl/etc. for the repository, to point to a working", "        upstream. This is most often useful if you are using a newer", "        distribution release than is supported by the repository (and the", "        packages for the previous distribution release still work).", "", "     3. Run the command with the repository temporarily disabled", "            yum --disablerepo=yunion-repo- ...", "", "     4. Disable the repository permanently, so yum won't use it by default.  Configure the failing repository to be skipped, if it is unavailable.", "        Note that yum will try to contact the repo. when it runs most commands,", "        so will have to try and fail each time (and thus. yum will be be much", "        slower). If it is a very temporary problem though, this is often a nice", "        compromise:", "", "            yum-config-manager --save --setopt=yunion-repo-.skip_if_unavailable=true", "", "failure: repodata/repomd.xml from yunion-repo-: [Errno 256] No more mirrors to try.", "https://iso.yunion.cn/$contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error"], "stdout": "Loaded plugins: fastestmirror\nCleaning repos: base centos-sclo-rh centos-sclo-sclo docker-ce-stable elrepo\n              : epel extras updates yunion-repo-\nCleaning up everything\nMaybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos\nLoaded plugins: fastestmirror", "stdout_lines": ["Loaded plugins: fastestmirror", "Cleaning repos: base centos-sclo-rh centos-sclo-sclo docker-ce-stable elrepo", "              : epel extras updates yunion-repo-", "Cleaning up everything", "Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos", "Loaded plugins: fastestmirror"]}

@weixingsheng666 您好，看到您的centos 版本应该是7.3 的对吧？请升级到7.9，然后重新安装试试？

@weixingsheng666 请反馈一下环境信息，谢谢：
环境/Environment:

OS (e.g. cat /etc/os-release):
Kernel (e.g. uname -a):
Host: (e.g. dmidecode | egrep -i 'manufacturer|product' |sort -u)

@weixingsheng666 您好，看到您的centos 版本应该是7.3 的对吧？请升级到7.9，然后重新安装试试？
对，是 7.4的

@weixingsheng666 请反馈一下环境信息，谢谢：
环境/Environment:

OS (e.g. cat /etc/os-release):
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Kernel (e.g. uname -a):
Linux hydsoft 5.4.243-1.el7.elrepo.x86_64 #1 SMP Tue May 16 10:43:45 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux

Host: (e.g. dmidecode | egrep -i 'manufacturer|product' |sort -u)
Manufacturer: GenuineIntel
Manufacturer: Intel Corporation
Manufacturer Name: Intel
Manufacturer: No Enclosure
Manufacturer: Not Specified
Manufacturer: VMware, Inc.
Product Name: 440BX Desktop Reference Platform
Product Name: VMware Virtual Platform

@weixingsheng666 centos 7.4 版本太老，许多lib 都已经无法兼容了。请升级到最新版centos 7.9, 再进行安装。

遇到了同样的问题
TASK [common : make cache] ***************************************************** fatal: [<IP_ADDRESS>]: FAILED! => {"changed": true, "cmd": "yum clean all\nyum -y --disablerepo='*' --enablerepo='yunion*' makecache\n", "delta": "0:00:01.485973", "end": "2023-08-18 10:40:23.600423", "msg": "non-zero return code", "rc": 1, "start": "2023-08-18 10:40:22.114450", "stderr": "https://iso.yunion.cn/%24contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error\n正在尝试其它镜像。\n\n\n One of the configured repositories failed (Packages for Yunion Multi-Cloud Platform -),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\n\n     1. Contact the upstream for the repository and get them to fix the problem.\n\n     2. Reconfigure the baseurl/etc. for the repository, to point to a working\n        upstream. This is most often useful if you are using a newer\n        distribution release than is supported by the repository (and the\n        packages for the previous distribution release still work).\n\n     3. Run the command with the repository temporarily disabled\n            yum --disablerepo=yunion-repo- ...\n\n     4. Disable the repository permanently, so yum won't use it by default. Yum\n        will then just ignore the repository until you permanently enable it\n        again or use --enablerepo for temporary usage:\n\n            yum-config-manager --disable yunion-repo-\n        or\n            subscription-manager repos --disable=yunion-repo-\n\n     5. Configure the failing repository to be skipped, if it is unavailable.\n        Note that yum will try to contact the repo. when it runs most commands,\n        so will have to try and fail each time (and thus. yum will be be much\n        slower). If it is a very temporary problem though, this is often a nice\n        compromise:\n\n            yum-config-manager --save --setopt=yunion-repo-.skip_if_unavailable=true\n\nfailure: repodata/repomd.xml from yunion-repo-: [Errno 256] No more mirrors to try.\nhttps://iso.yunion.cn/$contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error", "stderr_lines": ["https://iso.yunion.cn/%24contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error", "正在尝试其它镜像。", "", "", " One of the configured repositories failed (Packages for Yunion Multi-Cloud Platform -),", " and yum doesn't have enough cached data to continue. At this point the only", " safe thing yum can do is fail.  Contact the upstream for the repository and get them to fix the problem.", "", "     2. Reconfigure the baseurl/etc. for the repository, to point to a working", "        upstream. This is most often useful if you are using a newer", "        distribution release than is supported by the repository (and the", "        packages for the previous distribution release still work).", "", "     3. Run the command with the repository temporarily disabled", "            yum --disablerepo=yunion-repo- ...", "", "     4. Disable the repository permanently, so yum won't use it by default.  Configure the failing repository to be skipped, if it is unavailable.", "        Note that yum will try to contact the repo. when it runs most commands,", "        so will have to try and fail each time (and thus. yum will be be much", "        slower). If it is a very temporary problem though, this is often a nice", "        compromise:", "", "            yum-config-manager --save --setopt=yunion-repo-.skip_if_unavailable=true", "", "failure: repodata/repomd.xml from yunion-repo-: [Errno 256] No more mirrors to try.", "https://iso.yunion.cn/$contentdir/7/3.10/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error"], "stdout": "已加载插件：fastestmirror\n正在清理软件源： base docker-ce-stable epel extras kubernetes updates\n               : yunion-repo-\nCleaning up list of fastest mirrors\n已加载插件：fastestmirror\nDetermining fastest mirrors", "stdout_lines": ["已加载插件：fastestmirror", "正在清理软件源： base docker-ce-stable epel extras kubernetes updates", "               : yunion-repo-", "Cleaning up list of fastest mirrors", "已加载插件：fastestmirror", "Determining fastest mirrors"]}
`[root@harbor tasks]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
[root@harbor tasks]# uname -a
Linux harbor 5.4.150-1.el7.elrepo.x86_64 #1 SMP Tue Sep 28 13:00:01 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@harbor tasks]# dmidecode | egrep -i 'manufacturer|product' |sort -u
Manufacturer:<PHONE_NUMBER>00
Manufacturer: GenuineIntel
Manufacturer: Intel Corporation
Manufacturer Name: Intel
Manufacturer: No Enclosure
Manufacturer: Not Specified
Manufacturer: VMware, Inc.
Product Name: 440BX Desktop Reference Platform
Product Name: VMware Virtual Platform`


Updates for 16-02

#1: Fix bugs with non-canonical NaNs in asm.js
In asm.js, we don't canonicalize NaNs. We don't have vars in asm.js, so this is
ok. But we DO need to make sure to check for NaN if we are creating a
JavascriptNumber from it.
However, we were not doing this, which was an issue for argouts in asm.js->js
calls as well as return values from asm.js.
It was also an issue in one helper call on x64, where we were converting to var
before making the call.
This was being done because there was no support for x64 calling convention.
But with asm.js, I implemented that support, so I updated the helper call to
use the standard API. Other places were also hacking around this limitation, so
I updated them as well.
#2: add check against length for memset
#3: Issue:
There was a code path where we protect pages with PAGE_EXECUTE without the
PAGE_TARGETS_NO_UPDATE flag, which will control all the CFG bits in the
page.
Fix:
Fixed and ensured that we don't use PAGE_EXECUTE directly in the virtual
protect API. Instead #defines are used.
Cleaned up some complex code path in CustomHeap Protect Allocation
mechanism.
Removed isReadWrite flag from PageAllocation class, as it is not required.
Earlier, we were also letting RW pages to be added to the bucket list of
pages in custom heap, which lead the hacker to add his own RW page to the
list. Now it is made sure that only RX pages go into the bucket list.
Tests:
Unit tests passed.
Exprgen, Web crawler - Reran the tests and they look fine..

Thanks Paul, LGTM!

Thanks, Paul!

Thanks, Paul!


whitespace displayed in vscode is half as wide as other characters

whitespace characters in my vscode is only half as wide as other characters.
For example,

this is a part of a python script. There are six whitespace characters in the front of the second line. But as you can see, they are only as wide as three other characters.
I have tried disabling all the extensions, removing all my user settings, and updating my vscode. But nothing changed.
I think my issue is probably the same as that in https://github.com/Microsoft/vscode/issues/42090 .But this issued is closed and the solution doesn't work for me.

VSCode Version: 1.38.0
OS Version:Ubuntu 18.04.2 LTS

PS:This problem occured few months ago, and only in my computer of the above OS version. it didn't happen in my computer with win10.
Does this issue occur when all extensions are disabled?: Yes

It looks like you are not using a monospace font for your editor. Please verify that editor.fontFamily is set to a monospace font that is available on your OS.


Fix avatar template error on repo collaborator page

Fixes error template: repo/settings/collaboration:16:16: executing "repo/settings/collaboration" at <.>: wrong type for value; expected *models.User; got *models.Collaborator seen on repo collaborator page.

yes please! :tada:
just stumbled upon this on my instance, cheers that you already have a fix! @silverwind

🚀


Amazon Linux 2023 support?

Hi,
I want to know is there a plan for supporting Amazon Linux 2022?
There's EoL for Amazon Linux 2 at 2024-06-30 (extended from 2023-06-30), it's not so nearly, but the post AL2 is already released.
I know it can be built by manually creating AMI, but I'd be happy if public AMI is released.

https://aws.amazon.com/amazon-linux-2/faqs/
https://aws.amazon.com/linux/amazon-linux-2022/

It's on my radar, but I'm not going to commit to a timeline at the moment. Contributions are always welcome.

Going to bring this in with live patching support.

@AndrewGuenther I can help.

@AndrewGuenther Thanks for the great project, super useful for small demo environments (especially when paying out of pocket).
The upgrade to AL2023 should also bring in support for Wireguard, thanks to a much newer kernel. This is great for those that are using the instance as a bastion/vpn as well.

The upgrade to AL2023 should also bring in support for Wireguard, thanks to a much newer kernel. This is great for those that are using the instance as a bastion/vpn as well.

Just FIY: you can already use wireguard on AL2 in kernel mode, as long as you install the latest 5.x kernel

Perhaps this feature can can be added as part of the v2 release.

@RaJiska I'm hoping to do this before v2. Ideally in the next release.


Feature request: allow the user to select the default search engine

Just wanted to express my gratitude for the great work so far! I've been enjoying the extension, but I did notice that DuckDuckGo, the default search engine, doesn't consistently provide the most meaningful results.
I have a suggestion: would it be possible to add an option for users to choose their preferred search engine? It would be fantastic to have the ability to switch to platforms like Reddit, where more relevant discussions and user-generated content are often found.
This way, users can greatly enhance their browsing experience and effortlessly find the information they need.
Thanks again!

If I'm not mistaken, to use Google Search you need to use the Google Search API, which is more complex to set up than do a selection from a dropdown menu...

There are a simple way to do this. The extension supports duckduckgo bangs : https://duckduckgo.com/bangs
So, you can choose almost any search engine you like.


In edit field, wrong position

When someone select number in middle field to edit, after change, new number is set in last position.
For UX this is wrong, people get angry.
The correct is don't change position.
Ex: Change 1 to 2 (i select in 1 and press number 2)
Now:
1,000.00 ---> 10,000.02
Correct:
1,000.00 --> 2,000.00

duplicates #111


Please Add the manifest Link in below sample Table for Tab, Bot and Message Extension (ME) SSO sample

Please add the manifest Link for the below Code Sample Table

Sample name
Description
.NET
Node.js
Manifest

Tab SSO
Microsoft Teams sample app for tabs Azure AD SSO
View
View,Teams Toolkit

Tab, Bot and Message Extension (ME) SSO
This sample shows SSO for Tab, Bot and ME - search, action, linkunfurl.
View
View
View

Manifest link for sample: https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/app-sso/csharp/demo-manifest/App-SSO.zip

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 3b1dcd0d-471b-2d33-54b5-39a93dfba2a8
Version Independent ID: 5bd44149-777e-b449-bd2e-f20b9bd04038
Content: Configure third party OAuth authentication - Teams
Content Source: msteams-platform/tabs/how-to/authentication/auth-tab-aad.md
Service: msteams
GitHub Login: @surbhigupta
Microsoft Alias: surbhiguptaPlease add the manifest Link for the below Code Sample Table

Sample name	Description	.NET	Node.js	Manifest
Tab SSO	Microsoft Teams sample app for tabs Azure AD SSO	View	View,Teams Toolkit
Tab, Bot and Message Extension (ME) SSO	This sample shows SSO for Tab, Bot and ME - search, action, linkunfurl.	View	View	View
Manifest link for sample: https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/app-sso/csharp/demo-manifest/App-SSO.zip

@surbhigupta12 - Could please help here to add the manifest link for Tab, Bot and Message Extension (ME) SSO sample.


Class 'FAR' not found

Hi,
just intstalled this exentsion.
But I get an error:
"Class FAR not found".
can it be that this is wrong (coming from your exmaples):
use rmrevin\yii\fontawesome\FA;
Should this be:
use rmrevin\yii\fontawesome\FAR; ?
This would not throw the error anymore, but does not show an icon but a broken character.
thanks,
gb5256

Yes, in readme error. It should be use rmrevin\yii\fontawesome\FAR;.
Show composer.json, the list of the asset bundles that are connected on the page (you can see in the yii2 debug panel) and how you call the icon in the template.

Fixed readme. Thanks.


Fix some typos

Summary
Fixed some typos in docs about following services.

Bigtable
PubSub

Thanks @shotat!


[ZDF] Add more fields from API, e.g. series, season, episode

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

Call player-3 API to get more data and provide that data as metadata.
Fixes #9564
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[ ] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

I was struggling a bit to run the tests on my machine, according to readme this should now be something along the lines of
python3 devscripts/run_tests.py ZDF
but I cannot get any name working:

~/private/yt-dlp/venv/bin/python3 devscripts/run_tests.py ZDF
Running ['pytest', '-Werror', '--tb=short', 'test/test_download.py::TestDownload::test_ZDF']
============================= test session starts ==============================
platform darwin -- Python 3.11.8, pytest-7.4.2, pluggy-1.2.0 --<EMAIL_ADDRESS>cachedir: .pytest_cache
rootdir: ~/private/yt-dlp
configfile: setup.cfg
plugins: anyio-4.0.0, cov-3.0.0
collected 0 items / 1 error

==================================== ERRORS ====================================
____________________ ERROR collecting test/test_download.py ____________________
ImportError while importing test module '~/private/yt-dlp/test/test_download.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/homebrew/Cellar/python@3.11/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_download.py:286: in <module>
    inject_tests(normal_test_cases)
test/test_download.py:275: in inject_tests
    for test_case in test_cases:
test/helper.py:91: in gettestcases
    for ie in yt_dlp.extractor.gen_extractors():
yt_dlp/extractor/__init__.py:20: in gen_extractors
    return [klass() for klass in gen_extractor_classes()]
yt_dlp/extractor/__init__.py:20: in <listcomp>
    return [klass() for klass in gen_extractor_classes()]
yt_dlp/extractor/lazy_extractors.py:37: in __new__
    instance = cls.real_class.__new__(cls.real_class)
yt_dlp/utils/_utils.py:4972: in __get__
    return self.func(cls)
yt_dlp/extractor/lazy_extractors.py:33: in real_class
    cls._real_class = getattr(importlib.import_module(cls._module), cls.__name__)
/opt/homebrew/Cellar/python@3.11/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'yt_dlp.extractor.airmozilla'
=========================== short test summary info ============================
ERROR test/test_download.py
=============================== 1 error in 1.03s ===============================
ERROR: not found: ~/private/yt-dlp/test/test_download.py::TestDownload::test_ZDF
(no name '~/private/yt-dlp/test/test_download.py::TestDownload::test_ZDF' in any of [<Module test_download.py>])

Process finished with exit code 4.

delete yt_dlp/extractor/lazy_extractors.py, it was generated from an older commit before several dead extractors were removed

test/test_download.py::TestDownload::test_ZDF_all PASSED                 [100%]

============================== 1 passed in 58.85s ==============================

Process finished with exit code 0.

Forgot about this PR because I did not have the time in the last 6 months, but just fixed the merge conflicts and am looking forward to a review now 😄

Last test is still failing with 403, will check why because for that one the video is available on the page

False alarm, it works with german VPN, so all tests pass right now, will just change to md5 and we should be good

when run from german vpn:
.venv/bin/hatch test ZDFIE_all
Running ['pytest', '-Werror', '--tb=short', '-p', 'no:randomly', 'test/test_download.py::TestDownload::test_ZDF_all']
============================= test session starts ==============================
platform darwin -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 -- /Users/lobbenst/Library/Application Support/hatch/env/virtual/yt-dlp/Uk73uQjm/hatch-test.py3.13/bin/python3
cachedir: .pytest_cache
rootdir: /Users/lobbenst/private/yt-dlp
configfile: pyproject.toml
plugins: rerunfailures-14.0, xdist-3.6.1
collecting ... collected 1 item

test/test_download.py::TestDownload::test_ZDF_all PASSED                 [100%]

============================== 1 passed in 55.97s ==============================

Process finished with exit code 0.


Flair demo

I've made an example of NER model with the flair library in the directory: label_studio_ml/examples/flair/

Easy to adapt to different languages
Trains from scratch each time
Uses Active learning

Was talked about in the slack channel, see here: https://label-studio.slack.com/archives/C01VBREDGAY/p1633510955110400

Bump @makseq,
Are there any comments on the flair integration example for label-studio? I'd be happy to adapt according to feedback.
Otherwise we can get this pull-request merged?

@AaronDeRybelHowest Sorry for the delay, unfortunately we haven't tested it yet, but we definitely want to merge it!

One thing I can ask you right now: This example uses embeddings for the **DUTCH language**, but it's easy to change the embeddings to a different language - could you change the default model to English please?


Remove pkg/extensions/search/common and move the code to the appropriate packages

Further cleanup to pkg/extensions/search/common/:

Move the model (from model.go and some of the model in common_test.go) to the file pkg/common/model.go -> this code could be imported in the pkg/cli (eliminating duplicate structures), in pkg/extensions/search and in pkg/test
Move the common_test.go file into the pkg/extensions/search package, maybe rename it to search_test.go.
The content of common.go could be split, some of it could go under pkg/common, some of it could be removed;

GetRootDir can be removed as it is used only it it's own tests.
GetRepo can be removed as it is used only it it's own tests.
GetImageDirAndTag can be moved to pkg/common/utils.go
GetImageDirAndDigest can be moved to pkg/common/utils.go
GetImageDirAndReference can be moved to pkg/common/utils.go
GetImageLastUpdated can be moved to pkg/common/utils.go
GetFixedTags can be moved to pkg/extensions/search/cve
GetLatestTag can be moved to pkg/test
GetRoutePrefix can be removed, and we'd make the similar function under pkg/storage exportable, and use that one instead.
GetAnnotations and related annotation code could be moved under pkg/extensions/search/convert/annotations.go

Done in #1358