Invalid types

Hi,
From version 4 there seems to be an issue with types (or underlying code) for creating custom locales. For example, if you use this code from readme on version 4:
const localeFunc = (number: number, index: number, totalSec: number): [string, string] => {
  // number: the timeago / timein number;
  // index: the index of array below;
  // totalSec: total seconds between date to be formatted and today's date;
  return [
    ['just now', 'right now'],
    ['%s seconds ago', 'in %s seconds'],
    ['1 minute ago', 'in 1 minute'],
    ['%s minutes ago', 'in %s minutes'],
    ['1 hour ago', 'in 1 hour'],
    ['%s hours ago', 'in %s hours'],
    ['1 day ago', 'in 1 day'],
    ['%s days ago', 'in %s days'],
    ['1 week ago', 'in 1 week'],
    ['%s weeks ago', 'in %s weeks'],
    ['1 month ago', 'in 1 month'],
    ['%s months ago', 'in %s months'],
    ['1 year ago', 'in 1 year'],
    ['%s years ago', 'in %s years']
  ][index];
};
// register your locale with timeago
register('my-locale', localeFunc);

It would not compile - the index previously used number, but now it takes string - why?
The return type of  [string, string] is also incorrect - since you are returning array of arrays and not array with 2 values.

What is the meaning of It would not compile - the index previously used number, but now it takes string?

The return type must be string array with length = 2

Hey,

The signature of your LocaleFunc is

(diff: number, idx: number, totalSec?: number) => [string, string];

However, in your readme you are passing [string, string] because you have array where one parameter is another array and the other is number (see index in your readme)

same as above :-)

const localeFunc = (number: number, index: number, totalSec: number): [string, string] => {
  // number: the timeago / timein number;
  // index: the index of array below;
  // totalSec: total seconds between date to be formatted and today's date;
  return [
    ['just now', 'right now'],
    ['%s seconds ago', 'in %s seconds'],
  ][index] as [string, string];
};

The element of two-dimensional array is one-dimensional array.
typescript can not automatically derive the correct type.

But you are casting index which is number to a string, right? You are using incorrect types which is why you have to use 'as'.


fix: Update documentation for using filename in otelcol.auth.bearer component

PR Description
Which issue(s) this PR fixes
#1988
Notes to the Reviewer
PR Checklist

[x] Documentation added

We generally do not use file based secrets anymore. Can what you want be achieved with local.file?

Hi @mattdurham Can you check the thread from the issue i think this was discussed a bit there. https://github.com/grafana/alloy/issues/1988

@wildum @mattdurham I'm a bit confused here. Does this doc change actually cover what is needed? Do I understand this correctly that if the user is storing a token in a file somewhere, they can... retrieve the token somehow using local.file? Looking at this comment: https://github.com/grafana/alloy/issues/1988#issuecomment-2523338506 I'm not sure the proposed doc change covers it all... but I might be missing a detail here too.

@clayton-cornell that's correct, the upstream component has a "filename" attribute that can be used to retrieve a secret but we decided not to have it in Alloy and instead tell the users to use the local.file component to retrieve the secret from the file and send it to this component via the token attribute.


S3 with chunking never sends Preflight Access-Control-Allow-Oirigin as it never passes request to backend

Type of issue

[X] Bug report
[ ] Feature request

Uploader type

[ ] Traditional
[X] S3
[ ] Azure

Note: Support requests cannot be accepted due to lack of time.
Running S3 type and PHP backend (from the example) with chunking and cors enabled. If the file is smaller than the chunking size or chunking is disabled the upload works. But once the chunking is enabled or chunking size is reached the upload fails for each PUT as the initial OPTIONS request response misses the "Access-Control-Allow-Origin" has this request is never sent to the backend.
This bug also exist on the demo page of fine uploader (https://fineuploader.com/demos#amazon-demo)
Summary:
OPTIONS request is never passed to backend
Fine Uploader version
5.16.2
Browsers where the bug is reproducible
Firefox 61.0.1
Chrome 67.0.3396.99
Operating systems where the bug is reproducible
macOS 10.12.6
Exact steps required to reproduce the issue
For example:

got to the demo page: https://fineuploader.com/demos#amazon-demo
Upload a file of about 12MB
Look in the debug logs for the error:
DEMO:
Failed to load https://s3-demo.fineuploader.com/s3demo-thumbnails-cors.php: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://fineuploader.com' is therefore not allowed access. The response had HTTP status code 404.

My System:
Failed to load https://BUCKETNAME.s3.amazonaws.com/ac200326-520a-4f12-a49a-ff2cf3ed1aa3.bz2?partNumber=3&uploadId=RETRACTED-UPLOAD-ID: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://MYDOMAIN.COM' is therefore not allowed access. The response had HTTP status code 403.

All relevant Fine Uploader-related code that you have written
The Javascript
<script language="JavaScript">
var s3Uploader = new qq.s3.FineUploader({
	debug: true,
	element: $('fine-uploader-s3-1'),
	template: 'qq-template-s3',
	multiple: false, // no multiple uploads allowed
	request: {
		endpoint: "https://MYBUCKET.s3.amazonaws.com",
		accessKey: "MYS3ACCESSKEY", // this key should be set from script on load
		params: {
			category: "TEST-CATEGORY"
		}
	},
	// local calls
	signature: {
		endpoint: "/fineUploader/s3/endpoint-cors.php"
	},
	uploadSuccess: {
		endpoint: "/fineUploader/s3/endpoint-cors.php?success",
	},
	iframeSupport: {
		localBlankPagePath: "/fineUploader/s3/success.html"
	},
	retry: {
		enabledAuto: true,
		showButton: true
	},
	cors: {
		expected: true
	},
	chunking: {
		enabled: true,
		concurrent: {
			enabled: true
		}
	},
	resume: {
		enabled: true
	},
	deleteFile: {
		enabled: true,
		method: "POST",
		endpoint: "/fineUploader/s3/endpoint-cors.php"
	},
	callbacks: {
		onComplete: function(id, name, response) {
			console.log('Completed for ID: %s, with name: %s', id, name);
		}
	}
});
</script>

S3 CORS config:
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>DELETE</AllowedMethod>
    <MaxAgeSeconds>3000</MaxAgeSeconds>
    <ExposeHeader>ETag</ExposeHeader>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

Detailed explanation of the problem
OPTIONS REQUEST:

Request URL: https://MYBUCKET.s3.amazonaws.com/07759238-c976-44e6-a17d-4b77211f483a.bz2?uploads
Request method: OPTIONS
Remote address: <IP_ADDRESS>:443

Request headers:

Host: MYBUCKET.s3.amazonaws.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:61.0) Gecko/20100101 Firefox/61.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Access-Control-Request-Method: POST
Access-Control-Request-Headers: authorization,content-type,x-amz-acl,x-amz-date,x-amz-meta-category,x-amz-meta-qqfilename
Origin: http://MYHOSTNAME.com
Connection: keep-alive

Response headers:

HTTP/1.1 200 OK
x-amz-id-2:
x-amz-request-id:
Date: Wed, 25 Jul 2018 05:37:19 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, DELETE
Access-Control-Allow-Headers: authorization, content-type, x-amz-acl, x-amz-date, x-amz-meta-category, x-amz-meta-qqfilename
Access-Control-Expose-Headers: ETag
Access-Control-Max-Age: 3000
Vary: Origin, Access-Control-Request-Headers, Access-Control-Request-Method
Content-Length: 0
Server: AmazonS3

Follow up POST

Request URL: https://MYBUCKET.s3.amazonaws.com/07759238-c976-44e6-a17d-4b77211f483a.bz2?uploads
Request method: POST
Remote address: <IP_ADDRESS>:443

Request Headers:

Host: MYBUCKET.s3.amazonaws.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:61.0) Gecko/20100101 Firefox/61.0
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://MYHOST.COM/fineUploader/fineuploader.s3.front.php
x-amz-acl: private
x-amz-meta-qqfilename: original-file-name.tar.bz2
x-amz-meta-category: CATEGORY-TEST
x-amz-date: Wed, 25 Jul 2018 05:37:17 GMT
Content-Type: application/x-bzip2
Authorization: AWS
Origin: http://MYHOSTNAME.COM
Connection: keep-alive
Content-Length: 0

Response headers:

HTTP/1.1 200 OK
x-amz-id-2: 19MoBhRrJrlagXJPVTTrZX7CN9iS2qfT6fmYDVT31UiAYQWp6uf4/LzoTDwmafBnYkN4JtAmqE0=
x-amz-request-id: 4CE1153A572D0731
Date: Wed, 25 Jul 2018 05:37:19 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, DELETE
Access-Control-Expose-Headers: ETag
Access-Control-Max-Age: 3000
Vary: Origin, Access-Control-Request-Headers, Access-Control-Request-Method
Transfer-Encoding: chunked
Server: AmazonS3

The following POSTs that do the PUT are sent through the PHP backend script and have the header set
Response headers:

HTTP/1.1 200 OK
Date: Wed, 25 Jul 2018 05:37:18 GMT
Server: Apache/2.4.29 (Unix) PHP/7.2.8
X-Powered-By: PHP/7.2.8
Access-Control-Allow-Origin: http://MYHOST.COM <-- HERE IT IS
Content-Length: 44
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: application/json

I also added debug into the s3 PHP backend script as provided from here (https://github.com/FineUploader/php-s3-server/blob/master/endpoint-cors.php)

{5b580f9f6893d} [2018-07-25 14:07:50.42887100]  **** File: endpoint-cors.php, Method: POST, POST: Array
{5b580fa088c30} [2018-07-25 14:07:50.56066600]  **** File: endpoint-cors.php, Method: POST, POST: Array
{5b580fa089e1c} [2018-07-25 14:07:50.56532200]  **** File: endpoint-cors.php, Method: POST, POST: Array
{5b580fa0936be} [2018-07-25 14:07:50.60435600]  **** File: endpoint-cors.php, Method: POST, POST: Array

Four request for four split signatures, but no OPTIONS request for the initial REST part to S3
And I cannot see ANY method request as OPTIONS as to which it should send out the headers. I also cannot find where in the JS code this request should be sent. In all the documentations (eg the great blog post about S3 implementation) is anything special written for the config to be changed for this.

Fine Uploader doesn’t send preflight requests. That’s not how CORS works at all. The browser and only the browser controls the preflight request. The demo site issue you referenced has nothing to do with CORS. Notice the response is a 404, since I stopped paying the AWS bills long ago. And on your server, again, the error has nothing to do with CORS. Your server is returning a 403, so you’ll want to look closer at that.

Thank you, I just thought OPTIONS requests are forwraded to the defined endpoint somewhere, but ti seems they end somewhere. Perhaps I can find some target in Chrome or Firefox on what level or where I can actually response to them.
And 403 error means non-authorized because the missing pre-flight Access-Control-Allow-Origin header

That header is not sent to you, you are expected to send it in the response.

But in what response? I never see any response to my server that could trigger those headers. That's why I am so confused about this error.
JS-> PUT -> triggers OPTIONS from browser to S3 -> S3 sends back "I can do this"
so where do I then trigger this response if my sever never sees that? Or do I have to put that in JS in the web browser? (which would make no sense)

I found the problem. It had NOTHING to with your script nor with my server settings. I made a mistake in the CORS settings on the s3 server.
I had a "GET" allow instead of a "PUT" allow
Sadly no browser gives you correct error reports about this at all. What a pitty.
I only found out about this when I looked in the Chrome deny logs where it shows Access control request method: PUT. Firefox just never shows them, just the initial POST one.
Jesus :(

We’re going in circles. Please see my initial comment for an explanation of the problem you’ve reported.


Options are not updated on slack external data drop down

(Describe your issue and goal here)
The slack_bolt version
slack-bolt==1.16.1
Python runtime version
Python 3.9.10
OS info
Mac OS - Ventura - 13.1
Steps to reproduce:
@app.options(re.compile("(address_options)"))
def get_address_options(ack, payload):
    keyword = payload.get("value")
    autocomplete = get_maps_autocomplete(keyword)
    locations = [ location["description"] for location in autocomplete["predictions"]]
    options = get_maps_option(locations)
    print(f"options for {keyword} are {options}")
    ack(options=options)

Expected result:
Should show the updated options each time.
Actual result:
The following code snippet would call maps autocomplete function and get all the locations based on the keyword. Options work for the first pass but do not work when trying to search for long strings or clearing the string  and retrying. The keyword does come through and Options are created based on the output but the options do not get reloaded on the drop down UI although the options are logged and created on each request.
DEBUG:bolt_app:Responding with status: 200 body: "{"options": [{"text": {"type": "plain_text", "text": "Rocky Mountain National Park, Colorado, USA"}, "value": "Rocky Mountain National Park, Colorado, USA"}, {"text": {"type": "plain_text", "text": "Rocky Mountain Metropolitan Airport (Terminal), Airport Way, Broomfield, CO, USA"}, "value": "Rocky Mountain Metropolitan Airport (Terminal), Airport Way, Broomfield, CO, USA"}, {"text": {"type": "plain_text", "text": "Rocky Mountain Arsenal National Wildlife Refuge, Gateway Rd, Commerce City, CO, USA"}, "value": "Rocky Mountain Arsenal National Wildlife Refuge, Gateway Rd, Commerce City, CO, USA"}, {"text": {"type": "plain_text", "text": "Rocky Mount, NC, USA"}, "value": "Rocky Mount, NC, USA"}, {"text": {"type": "plain_text", "text": "Rocky Mountains"}, "value": "Rocky Mountains"}]}"

Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Hi @vasanthkanugo, thanks for writing in!
One possible cause I can guess is that your app.options listener may take more than 3 seconds to respond the select menu items. In this case, the select menu items in the Slack UI won't be updated. Otherwise, the response data should work.


Package info and empty values for package info fields

Is it possible to know the size and description of packages not installed yet?
https://github.com/bcmi-labs/create-mydevices-site/issues/127
Also I'm hiding the description info if the value is '(no description available)', but the language depends on the OS language, so for example in my case:

There's a way in the BE to know if the description info in unavailble and not to send any string to the fe?

@BallscrewBob complained about that too

Not complained LOL but did mention it !


docs: add plugins bat.yazi, pcap.yazi

Link two additional Yazi plugins to resources:

bat.yazi - renders almost anything, colorise nicer than miller
pcap.yazi - previews the content of .pcap files

Thanks for the PR!
Could you please rename yazi-plugin-bat to bat.yazi, and yazi-plugin-pcap to pcap.yazi to keep the repo name as same as the plugin name?
Also I noticed you're using a shell script, https://github.com/mgumz/yazi-plugin-pcap/blob/main/util/yazi-pcap-preview.sh. You can embed its content into init.lua like this:
Command("sh"):args({ "-c", [[
  tshark -n -a packets:200 -t ad \
      -Ttabs \
      -r "$@" | bat --style=plain --color=always --language=tsv
]] })

This way, we won't need any additional dependencies on specific paths or executable permissions.
It seems to be available only for Unix users. For Windows users, it's better to provide a message like "pcap.yazi plugin is not available on Windows." to preview - you can check the user's target system through ya.target_family() and do it like this:
local p = ui.Paragraph(self.area, {
  ui.Line {
    ui.Span("pcap.yazi plugin is not available on Windows."):fg("red"),
  },
})
ya.preview_widgets(self, { p })

Could you please rename yazi-plugin-bat to bat.yazi, and yazi-plugin-pcap to pcap.yazi to keep the repo name as same as the plugin name?

yazi-plugin-bat.yazi looks strange
and sorting the repos with bat.yazi and pcap.yazi will intermix with the other repos i have.
the installation how does the right thing, imho, to produce .config/yazi/plugins/bat.yazi and pcap.yazi and that should be the main goal.
the trick with "sh" I'll consider. the repetitive nature of the plugins atm … could in general be improved, but thats crucial atm.
one of the main … hurdles is to configure the plugin. the current way of doing is to edit the core of the plugin itself.

It seems to be available only for Unix users.

you mean … tshark? that is available on Windows (https://tshark.dev/setup/install/)
in general: all valid points, but maybe better discussed directly on the repo for the plugin in question. here is "just" the link for people who might also be interested in those kind of plugins.

the installation however does the right thing, imho, to produce .config/yazi/plugins/bat.yazi and pcap.yazi and that should be the main goal.

Using two different names will confuse users and create obstacles for automation - in the future, Yazi will add a plugin manager that automatically downloads and updates these plugins, but the plugin manager is not smart enough to guess the true name of the plugin based on the README's "clone yazi-plugin-bat and put it in ~/.config/yazi/plugins/pcap.yazi" and all plugins in the resources page follow this rule.

you mean … tshark? that is available on Windows (https://tshark.dev/setup/install/)

No, what I meant was you rely on sh to execute it (your yazi-pcap-preview.sh contains #!/bin/sh), and Windows cannot run .sh files, so this plugin is ineffective for Windows users.

No, what I meant was you rely on sh to execute it

Yes, kind of ok for the initial commit :)

in the future, Yazi will add a plugin manager that automatically downloads and updates these plugins

I see. But I also see:

the plugin-manager needs to identify the version of Yazi for which the plugin is compatible with
it should detect the kind of … nature (preview, preload, theme) etc of the plugin
the ability to not being indexed / listed in the the plugin-manager
lots of other meta attributes (license to use, preview-images)

So, depending on the repo-name, right now, when the internal API of Yazi is in flux, is secondary in importance, I would argue.

yazi-plugin-bat … looks pretty stringent (repo-wise; the way Yazi identifies plugin-folders in plugins is fully ok) =)
Anyhow, those aspects are aspects for the future and kind of irrelevant with the linkage in the resources-section of the yazi site.

right now, when the internal API of Yazi is in flux, is secondary in importance, I would argue.

On the contrary, because Yazi's API is still unstable, as mentioned on the resource page:

The plugin system is still in the early stage, and most of the plugins below only guarantee compatibility with the latest main branch of Yazi!

It is therefore more necessary to have a plugin manager to roll out updates to users' plugin code to the latest version, to ensure consistency with Yazi's API. This is an urgent task, rather than "secondary in importance." Too many people have asked me when Yazi will add a plugin manager, so they don't have to update their plugins manually.

yazi-plugin-bat … looks pretty stringent (repo-wise; the way Yazi identifies plugin-folders in plugins is fully ok) =)

Are you suggesting adding a new yazi-plugin-pluginname rule on top of the existing plugin-name.yazi rule?
The question is why we should introduce another naming convention, yazi-plugin-pluginname, when we already have the plugin-name.yazi style. As I mentioned earlier, too many naming styles can confuse users, and the entire resources page uses the plugin-name.yazi style, inconsistent styles would also be strange.

Are you suggesting adding a new yazi-plugin-pluginname rule on top of the existing plugin-name.yazi rule?

No, I am suggesting to keep the naming rule of the plugin-folder as is. But this is independent of however contributors want to name the repository they manage the code of their plugins on a voluntary basis.
However: all of those discussions belong rather on an issue on the Yazi repository on where the plugin-manager is discussed.

I'm going to close this because it still needs some work and hasn't seen any activity recently. @mgumz thanks for the effort!


clear/reset ui outputs in workflow details page

fix #164

add ids to each of the workflow details tabs
change most workflow details tab outputs away from renderUI/uiOutput
above change speeds up app UI rendering & makes it easier to update new data as needed
reset all Workflow Details buttons on each card after navigating to the deets page

Previously, I noticed that the app would cut back to "Workflow Details" after clicking "Refresh Data" if you had already selected a workflow to analyze. Looks like this update fixes that, which is awesome!
Workflow Details tab seems to be working great (and really fast!), but is there anything else in particular I should be looking for in terms of testing?

@tefirman

is there anything else in particular I should be looking for in terms of testing?

yes, the problem this PR was trying to solve was that some tabs on Workflow Details had old data from a previous workflow ID. This PR was trying to make sure that if a user clicks workflow A details button, then they clcik details button for a different workflow (workflow B) when they get to the details page the data is all for workflow B


enhancement add be config resource_group_mem_limit to limit the total memory in resource groups

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

why do we need this configuration ？Does vertica has this option?

run buildall

run buildall


Control RGB and White independently

I have a WIZ ceiling light which consists of a white (warm/cold) main light and an rgb led strip.
Both are meant to be controlled independently (rgb lighting the ceiling, white lighting the room).
Can you add an option to control these independently via HomeKit?
Having two devices would absolutely be an option, this does not have to be combined into one HomeKit/Homebridge device

Sorry for the super late reply. If this is still relevant, which model of light is this? I'm having trouble finding a Wiz light that has both color strip and white light built in


Add DOT + KSM

Thanks @josietyleung  for adding composable finance to Secret Network! For the last step we need to add composable as a chain to Keplr.
For this I am going to have to add an experimental suggest chain for composable. We need you to check the data in this function and also to fill out the gas price steps that you need.
await wallet.experimentalSuggestChain({     rpc: "https://composable-rpc.lavenderfive.com",     rest: "https://composable-api.lavenderfive.com",     chainId: "centauri-1",     chainName: "Composable",     stakeCurrency: {       coinDenom: "PICA",       coinMinimalDenom: "ppica",       coinDecimals: 12,       coinGeckoId: "",     },     bip44: {       coinType: 118,     },     bech32Config: Bech32Address.defaultBech32Config("centauri"),     currencies: [       {         coinDenom: "PICA",         coinMinimalDenom: "ppica",         coinDecimals: 12,         coinGeckoId: "",       },     ],     feeCurrencies: [       {         coinDenom: "PICA",         coinMinimalDenom: "ppica",         coinDecimals: 12,         coinGeckoId: "",         gasPriceStep: {           low: XXX,           average: XXX,           high: XXX,         },       },     ],     features: ["stargate", "ibc-transfer", "no-legacy-stdTx", "ibc-go"],   });

Thanks @josietyleung for adding composable finance to Secret Network! For the last step we need to add composable as a chain to Keplr.
For this I am going to have to add an experimental suggest chain for composable. We need you to check the data in this function and also to fill out the gas price steps that you need.
await wallet.experimentalSuggestChain({ rpc: "https://composable-rpc.lavenderfive.com", rest: "https://composable-api.lavenderfive.com", chainId: "centauri-1", chainName: "Composable", stakeCurrency: { coinDenom: "PICA", coinMinimalDenom: "ppica", coinDecimals: 12, coinGeckoId: "", }, bip44: { coinType: 118, }, bech32Config: Bech32Address.defaultBech32Config("centauri"), currencies: [ { coinDenom: "PICA", coinMinimalDenom: "ppica", coinDecimals: 12, coinGeckoId: "", }, ], feeCurrencies: [ { coinDenom: "PICA", coinMinimalDenom: "ppica", coinDecimals: 12, coinGeckoId: "", gasPriceStep: { low: XXX, average: XXX, high: XXX, }, }, ], features: ["stargate", "ibc-transfer", "no-legacy-stdTx", "ibc-go"], });

hey yup data looks good! we've set gas as 0 for the chain. can we keep that? thanks!


One-shot example in chatgpt vs open source comparison is wrong

There is an issue with this notebook:
https://github.com/microsoft/guidance/blob/main/notebooks/chatgpt_vs_open_source_on_harder_tasks.ipynb
The one-shot example for the simple equation is incorrect:

For example, if the solution is x=2, say SOLUTION = [3].

I believe the numbers there are meant to align to each other. Not sure if it would impact the evaluation results, but worth being accurate.

Thanks! That does look like a typo. We can update that

Ugh, thanks for catching this.
Fixed in aa7ed050a0ba9894edcd025639a878bc51c97fac, and updated the blog post with new numbers:
Frequency of correct answers:
ChatGPT:  1.0
Vicuna:  0.9285714285714286
MPT:  0.23076923076923078


”Arpașu de Jos” is listed in the drop-down menu

Description:
"Arpașu de Jos" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Arpașu de Jos" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Arpașu de Jos, SIBIU".


net: sockets: socketpair: Fix poll signalling

In case read or write were called before the actual poll() call, the poll() function was not signalled correctly about such events, which in order could lead to a deadlock if the poll() was called with infinite timeout.
Additionally, add unit tests that cover this scenario, to make sure poll() events are signalled correctly.
Fixes #36447

BTW, when I read the code, I found the signal names a bit confusing. I do understand where do the names come from, however, names like write_signal -> readable and read_signal -> writeable would be more descriptive in my opinion.
Then, if we write to a socket, the remote->readable is raised instead of remote->write_signal, and respectively, when there no more room for data to write, remote->writeable is reset, instead of remote->read_signal. Up for discussion whether to change.

Then, if we write to a socket, the remote->readable is raised instead of remote->write_signal, and respectively, when there no more room for data to write, remote->writeable is reset, instead of remote->read_signal. Up for discussion whether to change.

I'm ok with that change too if it increases clarity

@cfriedt Thanks, I've added a commit that renames the signals, please have a look. From my perspective (a guy who analyzed this code for the first time) it's easier to follow what's going on now.

@rlubos - just one minor comment to fixup a comment. Other than that, looks great. Thank you for fixing the bug and also thanks for adding to the test suite 🙂

@rlubos thank you for taking into account this issue so fast and more thoroughly than expected from our side. It is good to see such a living community.


Importing legislator data into Wikidata

Building on the work of @harej of adding Wikidata ids to legislators, I've written a simple script to add some of the data in the legislator repository into Wikidata.  Its pretty basic stuff, the OpenSecrets id, Facebook, Twitter, and Youtube Channel id.
https://github.com/thinkcontext/congress-wikidata
Obviously there are many more facts that are part of this project that could be pushed into Wikidata, is there interest in adopting this?

Please open an issue at https://github.com/unitedstates/congress-legislators. Thanks.


Improve configuration cache support for Java serialization

allow writeReplace to return this
handle serializable objects with only a readResolve method

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.


Consolidate all examples into single app infrastructure

This PR adds the following capabilities:

Examples for components can now specify elementType to use an element besides a div
Arbitrary app code can now live in the "custom" subdirectory of "app/examples", with an entry in visualizations.json that specifies template rather than component etc.

There are some statefulness issues involving using the back button to back out of a custom app, but these should not impact casual example browsing, nor image-based testing.

Since it's mainly just us writing the custom example code, I'm ok with enforcing a bit more structure in those examples to make it easier to track window listeners and intervals etc. I may just do that in a separate PR.

LGTM. I'm adding an issue to avoid the console error when navigating away from the Resize Table example but that can be resolved in another PR.


[CC 1.0.0] Changed examples in disabling-security.md file

Purpose

There were some minor formatting issues in the above file .
Also document was updated to match with latest x-wso2-disable-security extension updates.

Goals

x-wso2-disable-security extension can use in

API level
Resource level
Operation level.

By adding this extension it will enable users to invoke API without any security restrictions.
Approach

User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? no
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Samples

Added above

Related PRs

https://github.com/wso2/product-microgateway/pull/2502

Migrations (if applicable)

Test environment
Python 3.9.8
Learning

@slahirucd7 shouldnt this be added to the 4.0.0 docs as well?

@slahirucd7 shouldnt this be added to the 4.0.0 docs as well?

Yes. Added a PR for 4.0.0 in below link.
https://github.com/wso2/docs-apim/pull/5117


Front camera?

Is there anyway to provide the ability for the user to choose the front camera or the rear camera?

Hi @crexes, currrently there is no support for that yet, but you are free to built it yourself. :)

Hi @crexes, I am working on same functionality. If you have already done it, please let me know.


Arguments not getting parsed!

Arguments are not getting parsed.
cfcli zone -s"site.com"

Doesn't work it says Cloudflare site is required

hi @ahmadawais, it should work if you have a space after the -s flag:
cfcli zone -s "site.com"

does that work?

Yeah, that doesn't work! Tried all combinations! I have many sites, I want to clear the cache for all the sites with one command! I wish that was possible here? What would we need to do? Get zones of all the sites and then do a loop on curl requests?
This is the basic intent here for being able to use the -s — I was thinking of building the wrapper myself but you seem to be very active. We can collaborate.


DO NOT MERGE: fix: allow empty scope on /v2

What type of PR is this?
bug
Which issue does this PR fix:
#1125
What does this PR do / Why do we need it:
This PR fixes the bearer auth implementation allowing registry clients to authenticate with an empty scope when calling /v2.
As said in this comment, according to the distribution specification that most registry clients implement, any empty scope in the token is valid when a non-resource URL is called (essentially /v2).
However, the current implementation (that relies on chartmuseum/auth) always requires a scope to be present in order to accept a token. (Under the hood the library tries to compare the empty access request contained in the token to a bogus repository::pull scope. The repository name is empty and Zot falls back to pull)
After reading through the Chartmuseum auth spec here, I came to the conclusion that it's fundamentally incompatible with the Docker auth spec.
The chartmuseum spec says the first step is always pulling or pushing a specific artifact, whereas the Docker spec does not require that. The detailed nature of that spec also suggests that it may build on the original docker spec, it's actually a different one.
This PR is just a demonstration that shows how Zot should behave correctly.
There are several potential solutions:

If chartmuseum is willing to "fix" their spec/library to accept empty access list, we can easily fix the problem. However, I'm not sure that's in the best interest on Chartmuseum if they ever plan to use their auth spec (but it essentially seems unmaintained to me)
Copy the relevant code from the distribution code base
Write a whole new library

If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
NO
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I encountered this testing zot with skopeo, and I agree- it seems the chartmuseum/auth library is broken (although, maybe as you suggest, it was simply designed for a different spec). Another callout- The chartmuseum/auth library only supports RSA keys, which is small bummer for our use case (we've fully transitioned to ECC keys).
Taking inspiration from your comment, "copy the relevant code from the distribution code base", I went spelunking... It doesn't seem very complicated (although I'm sure dragons may lurk somewhere in there). The auth context is setup and the auth handler invoked here (which is invoked by their HTTP request middleware):
func (app *App) authorized(w http.ResponseWriter, r *http.Request, context *Context) error ...
The function above calls two simple functions to generate the auth requirements from the URL:

func appendAccessRecords(records []auth.Access, method string, repo string) []auth.Access ...
func appendCatalogAccessRecord(accessRecords []auth.Access, r *http.Request) []auth.Access ...

Notably, when the request path is the base /v2/, there are no auth requirements added to the slice.
The bearer auth handler is contained in the registry/auth/token directory. When there is no scope, you can see the parameter is completely omitted from the challenge (ref):
if scope := ac.accessSet.scopeParam(); scope != "" {
	str = fmt.Sprintf("%s,scope=%q", str, scope)
}

I probably need to spend some more time reading through the Token Authentication Specification, but nothing jumps out to me to suggest the chartmuseum/auth library can't be replaced by distribution implementation. There would be behavioral changes for consumers, and that might be considered a breaking change. But given how the chartmuseum/auth library's implementation seems to be broken for modern distribution clients... 🤔
After some more reading, I might try to take a stab at pulling in the distribution implementation and run some tests. I wonder if the conformance workflow in this repo with the bearer auth configured would detect these issues?

Before diving in to copying bits from the distribution code base, I thought I'd go searching for an alternative library (as an alternative to the "write a whole new library" suggestion)...
https://github.com/portward/registry-auth/
😉👍
OCI research notes (for posterity)
For those following along that aren't in-sync with all of the OCI happenings...
The OCI Distribution Spec does not address authentication/authorization. This is a known omission:

https://github.com/opencontainers/distribution-spec/issues/240
https://github.com/opencontainers/distribution-spec/issues/338

A working group was formed to attempt to define a standard (and a zot maintainer is a member):

https://github.com/opencontainers/tob/pull/119

The meeting notes are available in a dedicated repo:

opencontainers/wg-auth

Today, the Docker v2 Token Authentication Specification is the de facto standard, and the working group appears to be starting with it as the base. The working group appears to be exploring use cases/limitations and might expand on the Docker v2 Token Authentication Specification accordingly.
Notably, in the last meeting dated 2023-08-08, the question of creating a reference authentication library was raised. That would be cool. 👍

A question... Why "DO NOT MERGE" on this PR? If the OCI working group needs time to develop the long-term solution, couldn't the workaround proposed with this PR be sufficient to temporarily get zot working again?

@seniorquico a couple thoughts:
This PR serves two purposes: it allowed me to try Zot with Portward (which is a project I created actually) and it also allowed to demonstrate what's wrong with the current implementation.
I suspect the solution either lies in "fixing" chartmuseum or not using it at all, but this PR is probably not the right answer (ie. I made this change in roughly 5 minutes without thinking about potential security issues it may introduce).
WG auth: it's just been formed and although there is progress, it's gonna take some time to come up with a proposal that addresses all the issues and requirements, gain feedback from the wider community and get it accepted as a formal spec. Even then, it's gonna take years to adopt it. So yes, a future OCI auth spec is the answer, but it's not going to happen over night.
Portward (the registry-auth lib) sits primarily on the other side of the aisle, service as a tool for authorization services. Although it may be used in a registry as well, I haven't considered that use case when I wrote the library and it may not be the best fit for this use case. There may be bits and pieces though that could be reused. Just know that it's primarily targeted at authorization services and NOT at registries (which generally have different requirements, like verifying tokens instead of issuing them)
@rchincha might be able to provide some guidance here on what we should do next.
Should we attempt "fixing" the chartmuseum implementation? It's certainly worth a try talking to them, but my gut tells me (as I said before) that it's actually a different spec and therefore not required to be compatible with the registry auth spec.
Admittedly, this would result in a simpler resolution for Zot itself.
The alternative (as I said above) is replacing the implementation with a different one.

An updated version of this fix was merged in https://github.com/project-zot/zot/pull/2176.
You should be able to us the latest zot release.


[PDI-17667] Use of vulnerable component jetty 8.1.15, CVE-2017-9735, …

…CVE-2017-7657 CVE-2015-2080
[PPP-4183] Use of Vulnerable Component: Multiple Jetty Components [Listed in Description] (CVE-2017-7656 | CVE-2017-7657 | CVE-2017-7658 | CVE-2015-2080 | CVE-2017-9735 )
[PDI-11851] Improve the jetty server version of Carte Server
[PPP-4402] Use of Vulnerable Component: jetty-server & jetty-util (CVE-2019-10246 | CVE-2019-10247)
To better cope with the synchronization with the Karaf upgrade, it was decided that the Jetty upgrade was to be split into two phases: the first would basically consist on centralizing the Jetty version on the parent POM (leaving the version as it is); the second phase (to be integrated into the Karaf upgrade development) would include the upgrade itself and any other changes required.
This PR belongs to phase 1 (check maven-parent-poms#161 for the complete list of PRs for phase 1).
For this specific PR:
Centralized Jetty components: use dependency management.

:gear: Build finished in 21m 52s with command:
mvn clean verify -B -e -f pom.xml -Daether.connector.resumeDownloads=false -amd -Daudit -P !assemblies -U -Dmaven-surefire-plugin.argLine=-XX:MaxRAMPercentage=90.0 -Dmaven-failsafe-plugin.argLine=-XX:MaxRAMPercentage=90.0

:ok_hand: All tests passed!

Total
Failed
Skipped

4644
0
7

Details

:information_source:  This is an automatic message

:gear: Build finished in 22m 40s with command:
mvn clean verify -B -e -f pom.xml -Daether.connector.resumeDownloads=false -amd -Daudit -P !assemblies -U -Dmaven-surefire-plugin.argLine=-XX:MaxRAMPercentage=90.0 -Dmaven-failsafe-plugin.argLine=-XX:MaxRAMPercentage=90.0

:ok_hand: All tests passed!

Total
Failed
Skipped

4644
0
7

Details

:information_source:  This is an automatic message

:gear: Build finished in 23m 31s with command:
mvn clean verify -B -e -Daether.connector.resumeDownloads=false -amd -Daudit -P !assemblies

:ok_hand: All tests passed!

Total
Failed
Skipped

4653
0
7

Details

:information_source:  This is an automatic message


Parsing a single line without a newline always results in paragraph

I ran into a weird bug and I'm not sure if it's a bug or not :-)
If I run the MyST parser on a single line with no newline, then the result is always a paragraph, even if the line is a heading. E.g.:
from myst_parser.block_tokens import tokenize
tokenize("# Header\n".splitlines(keepends=True))

results in a Heading token, but:
from myst_parser.block_tokens import tokenize
tokenize("# Header".splitlines(keepends=True))

Results in a Paragraph token
This is semi-common in notebooks, if a user puts a single header line in a markdown cell.

Yeh the ‘Document’ which is the normal entry point for parsing, adds new lines: https://github.com/ExecutableBookProject/MyST-Parser/blob/9d27deeda9bd3418bfabcf064f1a9b4a066f6912/myst_parser/block_tokens.py#L89

I guess it’s  even generally assumed that tokenize will be called through this.

good to know - in this case we are explicitly not using Document, so I'll just add the newlines manually if the string doesn't end with one

Shall I close this as expected behavior?

Nah not just yet (see comment in mentioned issue)


rock generates invalid C code when trying to access an interface's generic type

CraaazyInterface: interface <T> {
    gimme: func -> T

    doCraaazyThings: func {
        T name println()
    }
}

Generated code:
void test__CraaazyInterface_doCraaazyThings_impl(CraaazyInterface__reference this) {
    #line 5 "C:\\dev\\test.ooc"
    lang_String__String_println(this->T->name);
}

// Somewhere in a header file
struct _CraaazyInterface__reference {
    test__CraaazyInterfaceClass* impl;
    lang_types__Object* obj;
};

struct _test__CraaazyInterfaceClass {
    struct _lang_types__ClassClass __super__;
    void (*gimme)(void*, uint8_t*);
    void (*doCraaazyThings)(void*);
};

Basically, there is no way to get to T from an interface reference.

T should probably live in CraaazyInterface__reference in the generated code.

Well, technically T can be accesses in some way through obj but the whole point is that we do not know the type of obj, so we can't cast it to the actual object type of the current interface reference passed to access it.


task too new! rejecting all occurrences

Expected behaviour:
The torrent downloads correctly. And the tracker is in active mode.
And in debug mode logs: "updating_series too new! rejecting all occurrences."
Actual behaviour:
The torrent doesn't download, and the debug mode, tells me that if i need to download this episode i need to active the untracking mode
Steps to reproduce:

Step 1: It's difficult to reproduce. Really i don't know how to reproduce it.

Config:

(click to expand)
templates:

  transmission:
    transmission:
      host: *
      port: *
      ratio: 0
      username: *
      password: *

  medusa:
    configure_series:
      from:
        medusa:
          base_url: *
          port: *
          username: *
          password: *
          only_monitored: True

schedules:
  - tasks: updating_series
    interval:
      hours: 1

tasks:
  updating_series:
    template:
      - rss_feed
      - medusa
      - transmission

Log:

(click to expand)
2019-05-17 11:08 DEBUG    series        updating_series start with entities: ['Los 100 6x1']
2019-05-17 11:08 DEBUG    series        updating_series current entities: ['Los 100 6x1']
2019-05-17 11:08 DEBUG    series        updating_series -------------------- process_propers -->
2019-05-17 11:08 DEBUG    series        updating_series propers - downloaded qualities: {}
2019-05-17 11:08 DEBUG    series        updating_series continuing w. entities: ['Los 100 6x1']
2019-05-17 11:08 DEBUG    series        updating_series best entity is: `Los 100 6x1`
2019-05-17 11:08 DEBUG    series        updating_series -------------------- tracking -->
2019-05-17 11:08 DEBUG    series        updating_series latest episode for series <Series(id=32,name=Los 100)>, with downloaded set to True and season set to None
2019-05-17 11:08 DEBUG    series        updating_series no season packs found for series `Los 100` with parameters season: None, downloaded: True
2019-05-17 11:08 DEBUG    series        updating_series latest download: <Episode(id=27,identifier=S01E13,season=1,number=13)>
2019-05-17 11:08 DEBUG    series        updating_series current: <Episode(id=34,identifier=S06E01,season=6,number=1)>
2019-05-17 11:08 DEBUG    series        updating_series too new! rejecting all occurrences
2019-05-17 11:08 VERBOSE  task          updating_series REJECTED: `Los 100 6x1` by series plugin because too much in the future from latest downloaded entity `S01E13`. See `--disable-tracking` if this should be downloaded.

Additional information:

FlexGet version: 2.17.20
Python version: Python 3.5.3
Installation method: pip install flexget
Using daemon (yes/no): yes
OS and version: Debian GNU/Linux 9

From the logs, it says that your latest downloaded episode is S01E13, but it's trying to download S06E01. This gap between is the reason for the "too much in the future" error.
As a fix, you can change the "begin" value of the series entry to S06E01.
If you want to download past episodes, you can add "tracking: backfill".

Please see:
https://flexget.com/Plugins/series/tracking


feat: add Nacos Discoverer

resolve #8

Codecov Report

Merging #11 (c31d872) into main (424e032) will increase coverage by 9.72%.
The diff coverage is 61.17%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   45.81%   55.53%   +9.72%
==========================================
  Files           7       10       +3
  Lines         179      488     +309
==========================================
+ Hits           82      271     +189
- Misses         91      195     +104
- Partials        6       22      +16

Impacted Files
Coverage Δ

internal/conf/nacos.go
76.00% <ø> (-0.93%)
:arrow_down:

internal/core/comm/query.go
42.85% <0.00%> (-47.15%)
:arrow_down:

internal/core/comm/update.go
0.00% <0.00%> (ø)

internal/core/comm/watch.go
0.00% <0.00%> (ø)

internal/discoverer/discoverer.go
86.95% <50.00%> (ø)

internal/core/comm/utils.go
62.50% <62.50%> (ø)

internal/discoverer/nacos.go
74.80% <74.80%> (ø)

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 424e032...c31d872. Read the comment docs.


Created Section ODEs

Added two types of ODEs that are often used in Fourier series solution and Fourier transform solution for PDEs.

I'll add some additional comments to this and merge the request afterwards.


Broken link in README.md

What section and page of the Curriculum is this on
https://github.com/protocol/launchpad#contributing-to-the-launchpad-curriculum
Describe the bug
The link in the second bullet point in https://github.com/protocol/launchpad#contributing-to-the-launchpad-curriculum is 404ing. The link is https://github.com/protocol/launchpad/blob/templates/STYLE-GUIDE.md.
Searching the repo, I see https://github.com/protocol/launchpad/blob/main/STYLE-GUIDE.md but do not see a https://github.com/protocol/launchpad/blob/templates/STYLE-GUIDE.md.
Additional context
Not sure where this should link to instead, otherwise I'd just create a PR to fix it, so I figured I would bring it to the teams attention.

Thank you for your flagging this @ElPaisano ! We have fixed that link now with this PR: https://github.com/protocol/launchpad/commit/0c78b823d6b4eee76bf3952f14ca4e72216ac87e


refactor(connector): [Forte] change error message from not supported to not implemented

Type of Change

[ ] Bugfix
[ ] New feature
[ ] Enhancement
[x] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[ ] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

Resolve #2840

Hey @oscar2d2 , You have to make changes at two more places( in the same file. where NotSupported error is thrown, and change to NotImplemented.

Thank you for catching it. I have updated my branch, please review it again.

Hey @oscar2d2 ,
Please resolve the conflicts from your branch.


Ensure tokens with intersecting scopes are properly handled in the new schema cache

Make sure that cache writes/reads behave properly when scopes intersect

This only applies to access tokens, right?

Closed by #62


Stream does not expose method to get mutated struct

Hi,
For both of the input and output streams, it's unclear how to get the mutated struct that the callback uses since ownership is handed over.
Would it be sensible if the stop function returned a Result<T> rather than Result<()>?

Thanks for raising this issue. The callback struct is a bit of an experiment in trying to make the cubeb C callbacks more rust-like.  To help me understand, can you explain how you're using the callback struct?

I see.
I was attempting to port the record example from the c repository. It essentially defines a c struct, mutates it within the callback and then asserts whether the struct has had a field changed after the callback has stopped executing.
This isn't particularly nice in rust because once you've handed over the struct, rust basically says (correctly imo) that you've handed over ownership and I should probably be using channels to communicate between the threads. However with the callback tied to struct it's not particularly easy to do - ideally this should be similar to the threading API with closures.
This is just doing it implicitly rather than explicitly like is currently being done. There's some info here.
Ideally on the cubeb::Context I'd like to have methods like,
    fn input_stream<T, F>(&self, params: StreamParameters<T>, f: F) -> Stream
    where
        F: FnMut(&[T]) -> Cont,
        F: Send + 'static,
    {

        unimplemented!()
    }

    fn output_stream<T, F>(&self, params: StreamParameters<T>, f: F) -> Stream
    where
        F: FnMut(&mut [T]) -> Cont,
        F: Send + 'static,
    {
        unimplemented!()
    }

    fn duplex_stream<T1, T2, F>(&self, input_params: StreamParameters<T1>, output_params: StreamParameters<T2>, f: F) -> Stream
    where
        F: FnMut(&[T1], &mut [T2]) -> Cont,
    {
        unimplemented!()
    }

and output_stream, 'duplex_streamand maybescan` variants with two callbacks (for state and normal like you've done since the struct essentially has to be shared between both).
So then the syntax looks something more like,
    let mut a = Foo(1);
    let stream = ctx.input_stream(
        StreamParameters {
            layout: 1,
            rate: 4,
            channels: 1,
            format: SampleFormat::Float32BE
        },
        move |x| {
            a.0 = 4;
            Cont::Next(x.len())
        }
    );

The Stream handle returned would essentially give you back something to do your queries and stop()/start().
I'm aware that this is quite a departure from your current API though, so I'm happy to a) do the work and submit a PR or b) leave the alternative API in a different place.

Hi @yilinwei, The interface to stream callbacks has been totally reworked in v0.4.  If you are still using this crate could you give it a try and report back?
thanks,
Dan

@djg Will do; I'll try and set aside some time this weekend and report back.


merge tooltip, investigate it first, https://discord.com/channels/1054443721975922748/1216655435663409152/1216700364493946930.

The issue is already gone, probably.


Includes changes like news and alerts system.

Made a carousel for the for you news section and solved other issues including the background images.

@shamvi-05 and @yashika51 please review the changes

Looks good! Should get merged to have a polished version to work off of.


Impossible to change n_frames_per_step

First of all I would like to thank you for this incredible and clean repository.
I am actualy working on a school project and I need to perform TTS. The problem is that I only have a 8Go GPU (NVIDIA GeForce GTX 980M) and I can't afford a cloud instance or some sort of a AI Machine. So in order to make the training work I had to bring down the batch size to 24. I also tried, after reading the paper and the Rayhan's implementation, to set the n_frames_per_step to 5 and encountered some issues.
Here are some of the issues I have:
1.  n_frames_per_step can't be changed:
If i try to set n_frames_per_step to any value other than 1 (here 5) I get this error.
Epoch: 0
Traceback (most recent call last):
  File "train.py", line 288, in <module>
    args.warm_start, args.n_gpus, args.rank, args.group_name, hparams)
  File "train.py", line 213, in train
    y_pred = model(x)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 491, in __call__
    result = self.forward(*input, **kwargs)
  File "/media/yliess/Storage/Projects/tacotron2-master/model.py", line 508, in forward
    encoder_outputs, targets, memory_lengths=input_lengths)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 491, in __call__
    result = self.forward(*input, **kwargs)
  File "/media/yliess/Storage/Projects/tacotron2-master/model.py", line 395, in forward
    decoder_inputs = self.parse_decoder_inputs(decoder_inputs)
  File "/media/yliess/Storage/Projects/tacotron2-master/model.py", line 307, in parse_decoder_inputs
    int(decoder_inputs.size(1)/self.n_frames_per_step), -1)
RuntimeError: invalid argument 2: View size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Call .contiguous() before .view(). at /pytorch/aten/src/THC/generic/THCTensor.c:276

2. I have trained on the LJ Speech dataset  for about 4 days and the loss is stucked between 0.7 and 0.5 after some iterations and does not go further:
I am actually at the 27500 iterations and the loss is stucked. I also don't see any improvement on the attention alignement. How long do you think it will take ?
Train loss 28001 0.573519 Grad Norm 1.283919 5.50s/it
Train loss 28002 0.616863 Grad Norm 2.458358 5.09s/it
Train loss 28003 0.562185 Grad Norm 1.225074 5.42s/it
Train loss 28004 0.551899 Grad Norm 1.262375 5.45s/it
Train loss 28005 0.545977 Grad Norm 0.926398 5.34s/it
Train loss 28006 0.611665 Grad Norm 0.943002 5.68s/it
Train loss 28007 0.599455 Grad Norm 0.933666 5.64s/it
Train loss 28008 0.632478 Grad Norm 0.780330 5.38s/it
Train loss 28009 0.648359 Grad Norm 0.839933 5.14s/it
Train loss 28010 0.605244 Grad Norm 1.070807 5.34s/it
Train loss 28011 0.582034 Grad Norm 0.945326 5.23s/it

This is the training loss from the 8k step to the 28k:

For 1, give us some time to debug the code.
For 2, can you please file a separate issue  and include your curves and alignment plots?

Thank you for this response.

I'll wait for it thank you.
Here is the new issue

We currently only support 1 frame per step.
Please submit a PR if you modify the code to support multiple frames per step: it requires modifying the gating mechanism.

Closing. Please re-open if you think the issue is not solved.


[CLOUD-1852] bpmsuite: add missing ',' (copy&paste error)

@errantepiphany could you merge this?
CC @sutaakar

Merged. Thanks!


Using "M" to move end of line doesn't snap to other line

Description
If I draw two lines and then click on one of the end nodes. Then press "M" and move the node at the end of the line to connect to the other line it doesn't snap to the other line. I expected the end of the line to snap to the other when using the "m"
Version
2.00-alpha.3.3
What browser are you seeing the problem on? What version are you running?
Chrome v108.0
Steps to reproduce
If I draw two lines and then click on one of the end nodes. Then press "M" and move the node at the end of the line to connect to the other line it doesn't snap to the other line.
The browser URL at the time you encountered the bug
https://mapwith.ai/rapid-v2-alpha3#background=Bing&datasets=fbRoads,msBuildings&disable_features=boundaries&map=20.58/42.66026/-71.12931

https://user-images.githubusercontent.com/5851115/208174853-09ce449e-5249-4856-8c62-97e5a331c63e.mov


Add license = "MIT" to Cargo.toml

This PR adds a license = "MIT" field to Cargo.toml.
This does not change the license of egui-toast - it is still the MIT license. However, this allows tools (such as crates.io or cargo-license) to better recognize the license used by this crate.
For example, currently crates.io cites this crate has having a non-standard license, as only license-file is specified and crates.io cannot detect if the file is indeed the MIT license. With this change, crates.io can (upon the next published update) detect that the license is indeed the MIT license.

P.S. The license-file has been left in, because this ensures the LICENSE file will be included in the crate with cargo package.
To be clear, even without the license-file field, LICENSE will always be included, unless excluded with the exclude field, or if the include field existed and did not specify "LICENSE".
However, I have opted to leave it in because this ensures license-file will always be distributed, even if the include field is specified.

Cargo nags if both license and license-file are specified, so I removed license-file and also renamed the LICENSE file to LICENSE-MIT, which seems to be a common practice

@urholaukkarinen Fair enough. Thank you for merging my PR, as it makes it easier for people to know that the crate's license is MIT. :)


SFlix's servers display "HTTP 404" error

Description
I notice today, that any server or provider unable to load any movies and tv shows. It shows error like HTTP 404
Provider
Sflix
Reproduction steps

Operating system
Google TV
Logs
No response
Please confirm the following

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] If related to a provider, I have checked the site and it works, but not the app.

Same issue. http error 404 for sflix. What is the wayout guys?

same here.
http 404 both at Vidcloud and Upcloud

I have had this same issue for almost a week now.

For now, try to use TMDb provider

Fixed on Release 1.6.12

Same Problem reoccured as per today Sunday 22nd!


Measure harrell C score

Hello
Is there a way to evaluate the model using harrell c concordance index rather than time dependent concordance?
What would be the code for that?

You can use the scikit-survival library for all this kind of metrics, you'll just need to manipulate the data from auton-survival to fit scikit-survival's functions. https://scikit-survival.readthedocs.io/en/stable/
As this is a question it would be better suited for the "Discussions" section: https://github.com/autonlab/auton-survival/discussions. Keep in mind that answers may take a while, but if you want to increase your chances to get one please provide code snippets and detailed explanations/logs in your questions and issues.


Fix delta in sesans docs

Fixed delta symbols from changes made in PR #60 that were not rendering properly in the docs.

@butlerpd I created a temporary branch in SasView off of the release branch that uses this sasdata branch when generating the installers. The correct installers to test changes to this branch can be found here:
https://github.com/SasView/sasview/actions/runs/8348166833


Combining rate limiters

Hey!
We have a use case in https://github.com/vectordotdev/vector/pull/14280 where it would be useful to have multiple rate limiters apply to the same input stream where if any one of them fails to check we consider it limited. The trick is, if one rate limiter fails to take tokens, we don't want to have consumed tokens from the other rate limiters that have been checked (or we want to readd tokens to the checked rate limiter).
Is there a way to do this that I'm missing? Or would this require some changes to this crate?

duplicate of #156

And so it is, thanks @untitaker ! I'll close this one.


While builing on arch / manjaro a shader file is empty so make debug fails - not a problem anymore.

yesterday it failed because a shader file was empty. Today it builds ... funny. :-)
This issue can be closed :-)

as i said... can be closed :-)


v2: x-name is a tab too far for API Operation

Describe the bug
In the v2 branch with the --v3.1 option, the x-name parsing is placing the extended attributes within "responses" of a path, rather than inside the path object itself. Using the swagger v2 parser works as expected, with no additional indentation, but v3.1 is failing. I am correcting this locally with a quick sed on the yaml(Lazy-man's bug fix).
To Reproduce
// PostAction	godoc
// @Summary		Execute a specified action
// @Description	This endpoint allows the execution of a specified action
// @ID			postAction
// @Tags		action
// @Param		action	path	string	true	"The action to be performed"
// @Success	200 {object}	Action_Result	"Successful execution of the action"
// @Router		/action/{action} [post]
// @Security	ApiKeyAuth
//
// @x-openai-isConsequential	true
func PostAction(c *gin.Context) {
}

Then with the other boiler plate, create the 3.1 spec.
swag-v2 init --v3.1
The above results in the following for me:
  /action/{action}:
    post:
      description: This endpoint allows the execution of a specified action
      operationId: postAction
      parameters:
      - description: The action to be performed
        in: path
        name: action
        required: true
        schema:
          type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/action.Action_Result'
          description: Successful execution of the action
        x-openai-isConsequential: true
      security:
      - ApiKeyAuth: []
      summary: Execute a specified action on a CPE
      tags:
      - action

Expected behavior
Simply expect the extended attribute to be indented 1 set less.
  /action/{action}:
    post:
      description: This endpoint allows the execution of a specified action
      operationId: postAction
      parameters:
      - description: The action to be performed
        in: path
        name: action
        required: true
        schema:
          type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/action.Action_Result'
          description: Successful execution of the action
      x-openai-isConsequential: true
      security:
      - ApiKeyAuth: []
      summary: Execute a specified action on a CPE
      tags:
      - action

Your swag version
v2.0.0-rc3
Your go version
go version go1.23.1 linux/amd64
Desktop (please complete the following information):

OS: fedora 42
Browser: brave
Version: Version 1.71.114 Chromium: 130.0.6723.58 (Official Build) (64-bit)

OAS 3 has a different code for parsing since the spec is different. Not a surprise.
if you need this feature in v2 (OAS 3) please feel free to contribute.


fix(validation): success threshold can only be equal to one when setting liveness probe. Error properly

Kubernetes has this restriction, catch it before it ever makes it that far.
Introducing jmespath now to later use in other places as well
Fixes #873

deis healthchecks:set -a test5 liveness httpGet -p /status --success-threshold=3 -- 8080
Applying livenessProbe healthcheck... Error: Unknown Error (400): map[healthcheck:[livenessProbe successThreshold can only be 1]]

Current coverage is 85.68% (diff: 100%)

Merging #926 into master will decrease coverage by 0.08%

@@             master       #926   diff @@
==========================================
  Files            30         30
  Lines          3027       3031     +4
  Methods           0          0
  Messages          0          0
  Branches        505        506     +1
==========================================
+ Hits           2596       2597     +1
- Misses          289        291     +2
- Partials        142        143     +1

Powered by Codecov. Last update 05b8f60...1c700e0


Add compatibility for Yarn 2.x Berry

Hi there,
WIthout resorting to the node-modules yarn berry plugin (see https://yarnpkg.com/features/pnp ), Hugo pipes look for a node-modules path in which dependencies are typically listed. However, Yarn 2 works slightly differently. When using yarn in conjunction with hugo extended/pipes, the following happens:
Start building sites …
Built in 366 ms
Error: Error building site: BABEL: failed to transform "js/brainbaking.js" (application/javascript): Error: Cannot find module '@babel/preset-env'
Require stack:
- /Users/wgroeneveld/development/brainbaking/babel.config.js
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at module.exports (/Users/wgroeneveld/development/brainbaking/babel.config.js:5:4)
    at readConfigJS (/opt/homebrew/lib/node_modules/@babel/core/lib/config/files/configuration.js:212:15)
    at readConfigJS.next (<anonymous>)
    at Function.<anonymous> (/opt/homebrew/lib/node_modules/@babel/core/lib/gensync-utils/async.js:26:3)
    at Generator.next (<anonymous>)
    at step (/opt/homebrew/lib/node_modules/@babel/core/node_modules/gensync/index.js:261:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/wgroeneveld/development/brainbaking/babel.config.js',
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  ]
}
: exit status 1

This is because a yarn install command does NOT create node-modules but caches stuff locally in .yarn/cache. See above link. This can currently be "fixed" by letting Yarn produce a node-modules dir anyway, but it kind of defeats the purpose of using Yarn Berry.
It would be cool if both tools understood each other in such a way that Hugo can leverage Yarn's caching abilities.

As a heads up for everyone, I also added hugo to the list at https://github.com/yarnpkg/berry/pull/2563

So, Hugo vs JavaScript vs node_modules isn't one thing. I see this is relates to Babel's config loading. I assume you would get the same troubles with PostCSS, maybe.

Might be a good idea to put in the documentation for the pipes that yarn2 users use nodeLinker: node-modules in their .yarnrc.yml config for now...

Error: Cannot find module '@babel/preset-env'

I don't know anything about Hugo, but this likely means that the PnP runtime isn't loaded when booting Babel. In general we would advise to 1/ add babel to the project's dependencies (locally, not globally, since they wouldn't be locked) 2/ tell Hugo to spawn it by using yarn run -B babel (instead of just babel).


Unable to create node pool with azure images from marketplace

What kind of request is this (question/bug/enhancement/feature request): Feature request
Steps to reproduce (least amount of steps as possible):

Create a node template with an image that come from azure marketplace (for example center-for-internet-security-inc:cis-centos-8-l1:cis-centos8-l1:1.0.4)

Create a node pool based on the node template previously created

Result:
Creation of the node fail with the following error :
Error creating machine: Error in driver during machine creation: Code="VMMarketplaceInvalidInput" Message="Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. VM: 'xxxxxxxxxxxxxxxxxxxxxxx'."
--

Other details that may be helpful:
We tried to accept the terms agreement with a terraform resource like below :
resource "azurerm_marketplace_agreement" "this" {
  publisher = "center-for-internet-security-inc"
  offer     = "cis-centos-8-l1"
  plan      = "cis-centos8-l1"
}

But it still doesn't work.
Node template should have the ability to pass plan informations.
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):

Rancher
v2.4.3

User Interface
v2.4.22

Helm
v2.16.5-rancher1

Machine
v0.15.0-rancher36

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Deployed with rke on azure

gz#11251
gz#11816

After some digging, it looks like the CIS image is a "paid" image at $.02 /hr. In order to launch images from the marketplace that have a cost, additional fields for the plan need to be passed to the API.
In order to use an image like the CIS hardened CentOS, you would need to pass additional information to the API.
Plans have the format below from the Template that gets generated in the UI:
"plan": {
                "name": "cis-centos8-l1",
                "publisher": "center-for-internet-security-inc",
                "product": "cis-centos-8-l1"
            }

In keeping with the image format, the plan flag could be something like: --plan <name>:<publisher>:<product>

Hello @cloudnautique and @rawmind0 !
Do you think the pull request rancher/machine#122 could be integrated soon? This would help us removing some custom code we had to write to be able to use Marketplace Images. Is something more you could do on our side to help you be able to merge it?
Thanks,

Hello again @cloudnautique and @rawmind0
Did you get some news about when rancher/machine#122 could be merged? Are you waiting something from @mouellet (we are on the same team) to merge it?

@GProulx , apologies for a delay in response and getting this over the finish line. The referenced PR is now merged and we're working on getting the remaining changes to get them in the next release.
This work is now tracked as part of https://github.com/rancher/rancher/issues/33518, so closing this one in favor of the referenced issue.


[HELP] how do i use dart_wormhole in my app?

hello, i'm sorry for making an issue when it's not an actual issue related to this app.
i want to use magic-wormhole in my flutter app, i found this package but when i add it to my app, i get a bunch of errors.
for example
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dart_wormhole_william:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `E:\Projects\Zal\github-zal\zal_app\dart_wormhole_william\android\.cxx\Debug\1w2q422g\arm64-v8a'
  [0/6] CC=C:/Users/Hedi/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang
  FAILED: libwormhole_william.so libwormhole_william.h
  cmd.exe /C "cd /D E:\Projects\Zal\github-zal\zal_app\dart_wormhole_william\wormhole-william && set CGO_ENABLED=1&& set GOARCH=arm64&& set GOOS=android&& set CC_FOR_TARGET=C:/Users/Hedi/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang&& set CC=C:/Users/Hedi/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang&& "C:/Program Files/Go/bin/go.exe" build -buildmode=c-shared -o E:/Projects/Zal/github-zal/zal_app/dart_wormhole_william/android/.cxx/Debug/1w2q422g/arm64-v8a/libwormhole_william.so E:/Projects/Zal/github-zal/zal_app/dart_wormhole_william/android/../wormhole-william/c/ && echo "E:/Projects/Zal/github-zal/zal_app/dart_wormhole_william/android/.cxx/Debug/1w2q422g/arm64-v8a/libwormhole_william.h produced by go build""
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      @echo off
      "C:\\Users\\Hedi\\AppData\\Local\\Android\\sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
        -C ^
        "E:\\Projects\\Zal\\github-zal\\zal_app\\dart_wormhole_william\\android\\.cxx\\Debug\\1w2q422g\\arm64-v8a" ^
        bindings ^
        dart_wormhole_william_plugin
    from E:\Projects\Zal\github-zal\zal_app\dart_wormhole_william\android
  # github.com/psanford/wormhole-william/c
  c\wrapped_context.go:125:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:131:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:137:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:144:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:151:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:162:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:167:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:173:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:183:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:194:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:201:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:209:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:214:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:240:13: cannot define new methods on non-local type *C.wrapped_context_t
  c\wrapped_context.go:244:13: cannot define new methods on non-local type *C.wrapped_context_t

this error is after i managed to fix a bunch of other errors, but i'm totally lost here about what's the problem this time.
when checking the plugin again, i saw this

i'm not sure what this mean, does this mean i can't/shouldn't use this plugin in a different app other than this?

I don't believe any of these are under active development, but I think all that last notice means is "nobody tried to make it build anywhere else".
So probably "fork, and make it work for your case" is the best approach?


add ukrainian translation author, small translation correcture

Hey Thomas!
Didn't find ukrainian translation author in README, so add him to the file (didn't found his github, so added e-mail). As well add some thanslation correctures based on English.

Hey @mysamyr, appreciate the improvements!


ListView Drop

Closes #2994
To fix:

[x] Make every item draggable if drag hooks were provided. Remove allowsDragging, isDraggable
[x] Insertion indicator takes up some height and causes layout shift when dropping via keyboard
[x] In ‘Root only’ story, an insertion indicator sometimes briefly appears when first entering list area via mouse.
[x] On ‘Drag into folder’ story, you can keyboard drop to non-folders. Same with ‘Drag between lists’ story

Follow-up/investigate:

for android chrome, should we have text/plain a fallback?
Long press on windows
keyboard focus should happen when dropping. open question, should it select as well?
Drag into folder border between selected rows is large
Announcement for dropping on an item is not as clear as dropping between items
Styles from items (top/bottom borders) stack over styles for root drop indicator (focus ring)

✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:
Test examples in storybook at ListView -> Drag and Drop:

Drag within list (Reorder)
Drag into folder
Drag between lists
Drag between lists (Root only)

Test drag and drop functionality with mouse, keyboard, screen reader
🧢 Your Project:

Noticed that on the root only story, when you first drag over the list it shows an insertion indicator between two rows, but when moving the drag slightly then it shows the target over the whole list.

Bottom border appears to be missing when dragging over folder

btw, keyboard dnd seems a bit broken atm, not sure if you saw already

btw, keyboard dnd seems a bit broken atm, not sure if you saw already

Should get fixed when we focus by row instead (https://github.com/adobe/react-spectrum/pull/3000), useDroppabbleCollection is getting the key with cell-{key} instead of key right now via keyboard delegate. (If I append cell- to the insertion indicator target, keyboard insertion works but mouse drag breaks)

For those who wanna test this w/ the row focus changes implemented: https://reactspectrum.blob.core.windows.net/reactspectrum/efff9cb2092b8708563f4fd8f72fd6e395967b3a/storybook/index.html

@reidbarber Not sure about the status of this PR, is the rest going to be followup/is there anything else you will be pushing to this branch? Maybe we could get this merged for testing and handle testing feedback and the rest of the review comments in a followup. Guess we can always test off the branch if need be

@reidbarber Not sure about the status of this PR, is the rest going to be followup/is there anything else you will be pushing to this branch? Maybe we could get this merged for testing and handle testing feedback and the rest of the review comments in a followup. Guess we can always test off the branch if need be

I'll push a few things and then update the description with anything outstanding. If it's not quite ready to merge, we can test off the PR

Small visual bug: The lines between the rows overlap with the blue outline when root dropping.

Also noticed that the insertion indicator still very briefly flashes when root dropping. Much better though.


[BUG] Haskell Language Server needs GHC

Field
Description

Plugin
lsp

Nixpkgs
unstable

[x] I have read the FAQ and my bug is not listed there.

Description
Just like rust-analyzer depends on cargo and rustc. haskell-language-server needs to be installed so it can work.
A solution could be installing it with haskell-language-server, or just like rust-analyzer, it could be an option (which I think should be better)

Minimal, Reproducible Example (MRE)

programs.nixvim = {
  lsp.enable = true;
  lsp.servers.hls = {
    enable = true;
    filetypes = [ "cabal" "haskell" "lhaskell" ];
  };
}

Thanks for reporting this. I opened #2416 that adopts the same strategy as for rust_analyzer.


hare/oracle: optimize oracle validation

related: https://github.com/spacemeshos/go-spacemesh/issues/4189

don't count total weight on every request
initialize logger only when oracle computes active set

bors merge


Use "LIKE" as "ab*" cause endless loop

Goals
use LIKE predicate
Expected Results
use LIKE wildcard predicate
Actual Results
become endless loop, the result never fetch out
Code Sample
    NSString *trimmedText = [text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
    NSMutableString *string = [NSMutableString new];
    [string appendString:@"*"];
    for (int i = 0; i != trimmedText.length; i++) {
        NSString *c = [trimmedText substringWithRange:NSMakeRange(i, 1)];
        [string appendString:c];
        [string appendString:@"*"];
    }

    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"phone LIKE[c] %@ || pinyin LIKE[c] %@ || realName LIKE[c] %@ || nickName LIKE[c] %@",
                              string, string, string, string];

    return predicate;

Version of Realm and Tooling

Realm version: 2.4.2
Xcode version: 8.2.1
iOS/OSX version: 8.4.1
Dependency manager + version: cocoapods, 1.2.0

Hi @boboboa32. Thanks for reaching out. We'll have someone review what you've shared and follow-up with a solution and/or additional follow-up questions. In the meantime, I recommend reading through our NSPredicate Cheatsheet in case your solution lies in there. Cheers!

Thanks for getting in touch. Can you provide us with a sample project that we can run to see this bug ourselves? Unfortunately there is not enough information in your code snippet to properly diagnose the cause. You can email a zip file to<EMAIL_ADDRESS>

Thank you for sending us a reproduction case. I've filed a bug against the underlying database engine: https://github.com/realm/realm-core/issues/2476.

The bug has been fixed in core. We'll be able to pull this fix in once it makes its way into a release.


Unable to determine a suitable edition, even after broadening.

I got this error when i use "npm run compile", it works perfectly with "npm run watch"

hey @jairayafranco I'm not maintaining this anymore. Really sorry, the upstream https://github.com/cawa-93/vite-electron-builder has many new commits and fixes, Can you pull in those changes and check ?

I'll try to find some time and merge those changes from upstream

@soulsam480 I did my best to kind of combine the example I saw here with the latest vite-electron-react-starter, and it's able to compile and run, but I can't seem to get hmr working.
If you want to take a stab at it, I have my version here
https://github.com/theogravity/react-electron-builder

Thanks will try to check.

@soulsam480 figured it out. my import had the wrong casing in the app.tsx file. You would think it would complain about the case, but guess not.
import App from '/@/app';
vs
import App from '/@/App'; (had to make sure the file itself matched the casing)
I've updated my repo if you want to copy it over, i don't mind!

Thanks. Will do that.

New url is
https://github.com/theogravity/react-vite-electron-builder
I didn't do a fork on the other repo and felt odd to not have the commit history, so here it is again with the commit history

@theogravity Hey, thanks for all the help. Is it ok If I invite you to this repo and you can make the changes ? I hardly find any time these days. Really appreciate your help.

I don't mind. However, the dir structure has changed so much compared to base in this repo that there would probably be a ton of merge conflicts coming in.
What do you think would be the best way to go about this?

What do you think would be the best way to go about this? Force push the base repo + patch to make sure the commit history is current with base?

I think we can do a force-push. Most of the user who have created projects from this won't be pulling it. So it's fine

@theogravity sent you an invitation. Again thanks for your help

Ported over, including the original templates!


Cannot install any ruby version

I am running the latest release of macOS and installed rbenv through homebrew. Homebrew ruby and system ruby are installed. Now after running rbenv install 2.7.1 it hangs on installing openssl:
Downloading openssl-1.1.1g.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
Installing openssl-1.1.1g...

I followed these steps
rbenv versions
  system
  2.1.0
  2.2.0
  2.4.2
  2.5.3
  2.5.5
* 2.6.3 (set by /Users/sgnydn/.ruby-version)

brew upgrade rbenv ruby-build
rbenv install 2.6.6
Downloading openssl-1.1.1g.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
Installing openssl-1.1.1g...
Installed openssl-1.1.1g to /Users/sgnydn/.rbenv/versions/2.6.6

Downloading ruby-2.6.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.bz2
Installing ruby-2.6.6...
ruby-build: using readline from homebrew
Installed ruby-2.6.6 to /Users/sgnydn/.rbenv/versions/2.6.6

rbenv versions
  system
  2.1.0
  2.2.0
  2.4.2
  2.5.3
  2.5.5
* 2.6.3 (set by /Users/sgnydn/.ruby-version)
  2.6.6

@rokumatsumoto  How long did it take for the Installing openssl-1.1.1g... step? It really never ends on my machine. And your steps are the same as mine, except that I just have the system ruby version installed.

Nevermind, after 30 minutes it succeeded.... idk why it takes so long. It does not even use 10% of CPU or a lot I/O.

I found it useful to run with the verbose flag: rbenv install 2.7.1 -v so I could view its progress.

yeah, with verbose on you can see the installation processing a ton of temporary files. without verbose it looks like a hang (no progress displayed and no CPU spikes).


OCPBUGS-31666: route: Fix insecureEdgeTerminationPolicy default

Fix the godoc for the spec.tls.insecureEdgeTerminationPolicy field to say that "None", not "Allow", is the default value.
Also, add a more explicit statement about the default value.
Finally, fix the formatting so that the list displays properly in the output of oc explain.  Before, the output looked like this:
% oc explain routes.spec.tls.insecureEdgeTerminationPolicy
KIND:     Route
VERSION:  route.openshift.io/v1

FIELD:    insecureEdgeTerminationPolicy <string>

DESCRIPTION:
     insecureEdgeTerminationPolicy indicates the desired behavior for insecure
     connections to a route. While each router may make its own decisions on
     which ports to expose, this is normally port 80.

     * Allow - traffic is sent to the server on the insecure port
     (edge/reencrypt terminations only) (default). * None - no traffic is
     allowed on the insecure port. * Redirect - clients are redirected to the
     secure port.

After this change, the output looks like this:
% oc explain routes.spec.tls.insecureEdgeTerminationPolicy
KIND:     Route
VERSION:  route.openshift.io/v1

FIELD:    insecureEdgeTerminationPolicy <string>

DESCRIPTION:
     insecureEdgeTerminationPolicy indicates the desired behavior for insecure
     connections to a route. While each router may make its own decisions on
     which ports to expose, this is normally port 80. If a route does not
     specify insecureEdgeTerminationPolicy, then the default behavior is "None".
     * Allow - traffic is sent to the server on the insecure port
     (edge/reencrypt terminations only).
     * None - no traffic is allowed on the insecure port (default).
     * Redirect - clients are redirected to the secure port.

/lgtm

It was strange after this change, the output looked as same as before

created a cluster by the bot
launch openshift/api#1845 gcp

% oc get clusterversion
NAME      VERSION                                                   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.16.0-0.ci.test-2024-04-08-055444-ci-ln-11w2cxk-latest   True        False         11m     Cluster version is 4.16.0-0.ci.test-2024-04-08-055444-ci-ln-11w2cxk-latest

the default is Allow
% oc explain routes.spec.tls.insecureEdgeTerminationPolicy
GROUP:      route.openshift.io
KIND:       Route
VERSION:    v1

FIELD: insecureEdgeTerminationPolicy
DESCRIPTION:
insecureEdgeTerminationPolicy indicates the desired behavior for insecure
connections to a route. While each router may make its own decisions on
which ports to expose, this is normally port 80.
* Allow - traffic is sent to the server on the insecure port (edge/reencrypt
terminations only) (default). * None - no traffic is allowed on the insecure
port. * Redirect - clients are redirected to the secure port.

%

Fix the godoc for the spec.tls.insecureEdgeTerminationPolicy field to say that "None", not "Allow", is the default value.

I'm taking this to mean that the default isn't changing, we're just fixing the doc.  If I understand correctly, please release the hold at your discretion.
/approve
/hold

I'm taking this to mean that the default isn't changing, we're just fixing the doc. If I understand correctly, please release the hold at your discretion.

That is correct.  Thanks!
/hold cancel

@frobware, would you mind retagging the PR?

@frobware, would you mind retagging the PR?

/lgtm

https://github.com/openshift/openshift-apiserver/pull/433 bumps openshift/api in openshift-apiserver in order to incorporate the API godoc update from this PR.


PDF to XML conversion time out for some files in server mode but run the pdfalto_server cmd in shell is fast and returns ok.

test file:
0cd4f6ed-0006-4b1a-a71d-0db0670050e0.pdf
Service output
org.grobid.core.process.ProcessPdfToXml: pdfalto process finished with error code: 143.
[
  \\wsl$\Ubuntu\home\elonzh\workspace\grobid\grobid-home\pdfalto\lin-64\pdfalto_server,
  -fullFontName,
  -noLineNumbers,
  -noImage,
  -annotation,
  -filesLimit, 2000,
  /home/elonzh/workspace/grobid/grobid-home/tmp/origin11089783328378169294.pdf,
  /home/elonzh/workspace/grobid/grobid-home/tmp/QCdS7b3245.lxml
]

Syntax Error (308820): Unknown operator 'd<1d><bd><fc><b2><13><0b><8c>'
Syntax Error (308880): Unknown operator 'D<05><9b>n#<ab><a9><bc><ec><97><af><18><e5><f6><f9>|<b8><bd><df><a5><eb><9a>r@<d7><c7><e7>'
Syntax Error (308881): Illegal character '>'
Syntax Error (308888): Illegal character '>'
Syntax Error (308896): Illegal character <dd> in hex string
...
Syntax Error (319522): Illegal character <fe> in hex string

Shell output
$./grobid-home/pdfalto/lin-64/pdfalto_server
-fullFontName
-noLineNumbers
-noImage
-annotation
-filesLimit 2000
0cd4f6ed-0006-4b1a-a71d-0db0670050e0.pdf

Syntax Error (308820): Unknown operator 'd<1d><bd><fc><b2><13><0b><8c>'
Syntax Error (308880): Unknown operator 'D<05><9b>n#<ab><a9><bc><ec><97><af><18><e5><f6><f9>|<b8><bd><df><a5><eb><9a>r@<d7><c7><e7>'
Syntax Error (308881): Illegal character '>'
Syntax Error (308888): Illegal character '>'
Syntax Error (308896): Illegal character <dd> in hex string
...
Syntax Error (319522): Illegal character <fe> in hex string
...
Syntax Error (320317): Illegal character <9a> in hex string
Syntax Error: Unterminated string
Syntax Error: End of file inside array
Syntax Error: Leftover args in content stream

Solution
I disabled the pdfalto_server output then everything works fine.
Changing pdfalto_server from
...
exec $command $@

to
...
exec $command $@ 2> /dev/null

Why do we need to wait for the process to finish via the shell?  From Java 8, java.lang.Process#waitFor() supports setting a timeout to wait subprocess complete, and we can call destroyForcibly to clean up the subprocess

Hi @elonzh
This is normally fixed since a few week, see https://github.com/kermitt2/grobid/issues/923#issuecomment-1161971179
The stderr from pdfalto_server was blocking the java subprocess and your example PDF works with current master for me.

Why do we need to wait for the process to finish via the shell? From Java 8, java.lang.Process#waitFor() supports setting a timeout to wait subprocess complete, and we can call destroyForcibly to clean up the subprocess

I think the external timeout in the process script was written to forcibly kill the subprocess for JVM versions prior to Java 8 (this is very old part of Grobid, like 10 years old - at the time it was the best way to actually kill an external process). I suppose we could use indeed destroyForcibly now, but at the same time it is working very well as it is, so we focused on other aspects and didn't look at it again :)
But maybe there is another reason that I have forgotten.


cardsDepleted never gets called

Method void cardsDepleted(); is never called, because in method
private void removeTopCard() {
        View child = this.getChildAt(this.getChildCount() - 1);
        if(child != null) {
            child.setOnTouchListener((OnTouchListener)null);
            this.swipeListener = null;
            this.removeViewWaitForAnimation(child);
        }

        if(this.getChildCount() <= 0 && this.eventCallback != null) {
            this.eventCallback.cardsDepleted();
        }

    }

this line  this.removeViewWaitForAnimation(child);  is executed async but this line
if(this.getChildCount() <= 0 && this.eventCallback != null) {
            this.eventCallback.cardsDepleted();
        }

is executed in main thread, so child is not yet removed and  this.getChildCount() returns 1.

try updating to version 0.2.11 and see if the problem persists

now i get this error:
 Could not find frankiesardo:icepick:3.1.0.
     Searched in the following locations:
         https://jcenter.bintray.com/frankiesardo/icepick/3.1.0/icepick-3.1.0.pom
         https://jcenter.bintray.com/frankiesardo/icepick/3.1.0/icepick-3.1.0.jar
         file:/.../android-sdk-macosx/extras/android/m2repository/frankiesardo/icepick/3.1.0/icepick-3.1.0.pom
         file:/.../android-sdk-macosx/extras/android/m2repository/frankiesardo/icepick/3.1.0/icepick-3.1.0.jar
         file:/.../android-sdk-macosx/extras/google/m2repository/frankiesardo/icepick/3.1.0/icepick-3.1.0.pom
         file:/.../android-sdk-macosx/extras/google/m2repository/frankiesardo/icepick/3.1.0/icepick-3.1.0.jar
     Required by:
         ....:unspecified > com.daprlabs.aaron:cardstack:0.2.11

hmmm...
for now you could add
repositories {
  maven {url "https://clojars.org/repo/"}
}

to your repositories. which should fix that problem. i will try and make this step unnecessary.

Thanks! It works now :)

no worries, i've updated the readme. so thanks for your report.


Rename repository to ember-cli-babel and bump version to 4.0 and publish on npm.

After this one gets merged:
https://github.com/babel/ember-cli-6to5/pull/14

Closed with 439f1ddd45fa70652c9754befcd5233c6fdb71a4.

Thanks!


Mis-printing of accented characters

I have run the following query which returns results but in the instances of accented characters in the domain, the characters are replaced with a strange combination which I do not know why they are formatted like this, examples below. I am using VSCode on macOS to run the command and I thought it could be something to do with the editor or the OS. I have changed my locale settings but it yeilds the same results.
dnstwist.py paypal.com -f csv -r --useragent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246"
...
homoglyph,xn--pypl-2nad.com,,,,ns1.markmonitor.com
...

páypàl.com should be páypàl.com
I had a hunch it was not displaying correctly and was confirmed by querying VT: https://www.virustotal.com/gui/domain/xn--pypl-2nad.com

This is called Punycode encoding which is a method of encoding strings containing Unicode characters into ASCII favored by DNS. By design CLI output displays domains in Unicode, while other output formats like CSV or JSON have domains encoded with Punycode.

Great! Managed to find a solution for it 👍
'string'.encode().decode('idna')


Czech translate

Can you pull latest master? I added few more strings in resource.resw. Total line count should be 408.

Added missing strings


Get-DbaDatabaseFreeSpace add autogrow info columns

Add columns that calculate the growth possibilities of every data file can be  very useful to a DBA:
The growth setting in pct or KB.
The growth 'amount'.
How much can a file really grow?
How much space is left to max size?
How much space do you think you have but will never be used because this is the remainder after the last possible autogrow?

Addressed in PR #259


AttributeError: type object 'tkvideo' has no attribute 'tkvideo'

Hi, i got this error:
Traceback (most recent call last):
File "c:\Users\ASUSTANUS\Documents\PYTHON-EXERCISES\prueba.py", line 7, in
player = tkvideo.tkvideo("video.mp4", my_label, loop = 1, size = (1280,720))
AttributeError: type object 'tkvideo' has no attribute 'tkvideo'
My code is:
`from tkinter import *
from tkvideo import tkvideo
root = Tk()
my_label = Label(root)
my_label.pack()
player = tkvideo.tkvideo("video.mp4", my_label, loop = 1, size = (1280,720))
player.play()
root.mainloop()`

Change line 7
player = tkvideo("video.mp4", my_label, loop = 1, size = (1280,720))

Hi wisetus, thanks it works, thank you