text:
FreeBSD: IPsec raw ESP is not working?

It appears IPsec raw ESP (using IP protocol num.50) is not working on FreeBSD.
I'm not sure this is the limitation of BSD os or not. Just for the record.
NOTE: I haven't tested it on Linux yet.
Prerequisites

[x] Can you reproduce?
[x] Are you running the latest version of SoftEtherVPN?

SoftEther version: 5.01.9674
Component: Server
Operating system: FreeBSD 12-STABLE
Architecture: amd64
Processor: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Description
If the client doesn't support IPsec NAT-T, in other words, both of the following capabilities are false,

caps.NatTraversalDraftIetf
caps.NatTraversalRfc3947

The code reaches here: https://github.com/SoftEtherVPN/SoftEtherVPN/blob/488eb06d64df8cb9e020efd338b437d1268bc3ac/src/Cedar/Proto_IKE.c#L3167-L3175
This fact implies IsUdpPortOpened(ike->IPsec->UdpListener, &p->DstIP, IPSEC_PORT_IPSEC_ESP_RAW))  returns false, SoftEther is not listening on raw ESP.
https://github.com/SoftEtherVPN/SoftEtherVPN/blob/488eb06d64df8cb9e020efd338b437d1268bc3ac/src/Cedar/Proto_IKE.c#L3100
Expected behavior:
SoftEther properly listens on raw ESP socket and accepts connections from NAT-T uncapable clients.
Actual behavior:
The following logs are recorded.
2020-08-15 23:59:23.515 IPsec Client 87541 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).
2020-08-15 23:59:33.517 IPsec Client 87542 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).
2020-08-15 23:59:43.515 IPsec Client 87543 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).
2020-08-15 23:59:53.525 IPsec Client 87544 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).

Steps to reproduce

Setup SoftEther with L2TP/IPsec
Connect from NAT-T uncapable clients

I did some test and found that FreeBSD does not allow binding raw sockets with a non-zero port number, which is allowed by Linux.
In NewUDP6() function from Network.c, change
	if (port == 0)
	{
		addr.sin6_port = 0;
	}

into
	if (port == 0 || IS_SPECIAL_PORT(port))
	{
		addr.sin6_port = 0;
	}

restores the ESP listener properly.
However, the problem is not solved. In FreeBSD the connection sticks after two IPsec SAs are established. It never shows IKE_CLIENT xxx: L2TP Server Started. which is shown in Linux connections.
By the way, this change does not impact Linux connectivity.
@davidebeatrici Do you have any idea what also might need to be changed?

It seems that the raw socket can't receive ESP packet. I can see the incoming ESP packets with tcpdump on the server but recvfrom just got nothing. I have no idea how to proceed.

Thanks for the investigation. I will have some research on ESP on FreeBSD.

It seems that the raw socket can't receive ESP packet. I can see the incoming ESP packets with tcpdump on the server but recvfrom just got nothing. I have no idea how to proceed.

Same problem in Windows. It only works in Linux currently...

I tested in Windows and got something very interesting.
Dev edition server in Windows can't receive ESP packets as well. But standard edition works fine.
The interesting thing is, after uninstalling the standard edition and reinstalling the dev one, it works fine too.
Here's the procedure.

Prepare a new VM in Windows and create a snapshot
Install dev edition server from nightly build
Run test: connect from Windows L2TP client over IPv6 (failed, ESP no response)
Uninstall dev edition and install standard edition
Run test (OK)
Uninstall standard edition and install dev edition
Run test (OK)

In Wireshark I saw the same pattern as in FreeBSD. That is the initial communication over UDP port 500 works but once the client enters the 2nd phase and sends ESP to the server it never gets back anything.
I have tested multiple times with the help of snapshots and also in both win 10 and win 2019 so this isn't random.
It looks like something has fundamentally changed when standard edition is installed. That something allows dev edition server to work even after standard edition is removed.
At first I thought the issue is firewall but it turned out that disabling firewall doesn't help anything.
@davidebeatrici Any thought?

I suspect something is wrong with WFP but I have no evidence.😂

Good news! I have found the problem for Windows server.
In open source builds, WFP driver (pxwfp.sys) is not included. Without the driver the server can't receive ESP packets since they are filtered by the system.
Once a standard edition is installed, the driver can be passed on to the dev edition even after the software is uninstalled.
I still don't know what happens in FreeBSD but if taking a wild guess it might also be some kernel behavior that filters out the ESP packets.

authors: domosekai metalefty

repo: SoftEtherVPN/SoftEtherVPN


text:
Retry connection on untrusted server certificate

With server certificate validation enabled, vpnclient unconditionally
stopped connection on untrusted server certificate. Added account
configuration parameter to retry connection if server certivicate failed
validation.
We have a large number of headless devices connecting to our softether instance and have identified this as a permanent failure mode in the client code in a case where the server's certificate has expired or the server is started with a default config.
Since these are headless devices on disparate and inaccessable networks, it is essential for us that the client continue retrying it's connection even to a misconfigured server. Once the server configuration issue is resolved the client should be able to successfully connect.
I don't know if this needs a configuration option but we added it in case you felt it was required for backwards compatibility. If you guys don't think we need the config option to make this change we can remove that code from the PR to simplify it a lot.

Hi @joshperry. Could you please rebase your PR on the current master, to benefit from the ci Environment we set up recently?. Thanks

@joshperry  Ping!!!

Also we have a new policy for accepting PRs. Could you please read that and answer the question:
Your great patch is much appreciated. We are considering to apply your patch into the SoftEther VPN main tree.
SoftEther VPN Patch Acceptance Policy:
http://www.softether.org/5-download/src/9.patch
You have two options which are described on the above policy.
Could you please choose either option 1 or 2, and specify it clearly on the reply?
one
PRELIMINARY DECLARATION FOR FUTURE SWITCH TO A NON-GPL LICENSE
I hereby agree in advance that my work will be licensed automatically under the Apache License or a similar BSD/MIT-like open-source license in case the SoftEther VPN Project adopts such a license in future.

@joshperry  are you here ?
as for the patch itself, am I right that default behaviour is not changed ?
"retry" must be enabled explicitely?

Thank you very much for your contribution!

For the record, I think Retry on Untrusted Server Certificate should be shown in the output of AccountGet.

I agree.

source: gharchive/pull-request

authors: chipitsine davidebeatrici joshperry metalefty moatazelmasry2

license_type: permissive

license_source: github-api


text:
Application crashing when passing resources by giving entire database

Passing resources by giving entire database not working
node server2.js (node:67259) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:67259) UnhandledPromiseRejectionWarning: ReferenceError: Cannot access 'AdminBro' before initialization     at run (/Users/--/Working/admin-pro/server2.js:22:20)     at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:67259) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:67259) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

please write mongoose version and admin-bro* versions. also can you paste the code of server2.js?

`
// ==========  server2.js ==============
// Requirements
const AdminBro = require('admin-bro')
const AdminBroMongoose = require('admin-bro-mongoose')
const mongoose = require('mongoose')
AdminBro.registerAdapter(AdminBroMongoose)
// Initializ Database along with models
const User = mongoose.model('User', { name: String, email: String, surname: String })
const Admin = mongoose.model('Admin', { name: String, email: String})
const run = async () => {
const mongooseDb = await mongoose.connect('mongodb://localhost:27017/test', { useNewUrlParser: true })
//   // Passing resources by giving entire database
//   const AdminBro = new AdminBro({
//     databases: [mongooseDb],
//     //... other AdminBroOptions
//   })
// Passing resources one by one
const AdminBro = new AdminBro({
resources: [users, companies],
//... other AdminBroOptions
})
}
run()
// ...
`

I see the error
 const AdminBro = new AdminBro({
   databases: [mongooseDb],
   //... other AdminBroOptions
})

should be changed to:
 const adminBro = new AdminBro({
   databases: [mongooseDb],
   //... other AdminBroOptions
})

AdminBro -> adminBro
I will fix the docs

source: gharchive/issue

authors: uplabhijit wojtek-krysiak

repo: SoftwareBrothers/admin-bro

license: MIT


text:
[Feature]: Support (adapter) for ElysiaJS

Description
An official adapter to support ElysiaJS would be awesome!
Suggested Solution
Ideally, an adapter solution would work much like the existing ones except compatible with ElysiaJS right out of the box.
Alternatives
Tried using the Elysia Connect Middleware plugin with @adminjs/express, but couldn't seem to make it work.
Additional Context
No response

Not an official one, but i have made my own adapter for Elysia, so maybe check it out https://github.com/AdamVerner/adminjs-elysia. It should be available on NPM as well.
I have started programming in typescript very recently, and havent used Elysia nor AdminJS very thorouly yet, so there might be some obvious bugs, feel free to open new issues if you came across any.

Awesome, thanks!

repo: SoftwareBrothers/adminjs


text:
实现字符串转换为数字

        const char* arr = "123456";
	int nLen = strlen(arr);
	int result = 0;
	for (int i = 0; i < nLen; ++i)
	{
		result += (arr[i] - '0') * pow(10, nLen - i - 1);
	}

编码实现函数 atoi()，设计一个程序，把一个字符串转化为一个整型数值。例如数字：“5486321”，转化成字符：5486321。
int myAtoi(const char * str)
{
	int num = 0; //保存转换后的数值
	int isNegative = 0; //记录字符串中是否有负号
	int n = 0;
	char *p = str;
	if (p == NULL) //判断指针的合法性
	{
		return -1;
	}
	while (*p++ != '\0') //计算数字符串度
	{
		n++;
	}
	p = str;
	if (p[0] == '-') //判断数组是否有负号
	{
		isNegative = 1;
	}
	char temp = '0';
	for (int i = 0; i < n; i++)
	{
		char temp = *p++;
		if (temp > '9' || temp < '0') //滤除非数字字符
		{
			continue;
		}
		if (num != 0 || temp != '0') //滤除字符串开始的 0 字符
		{
			temp -= 0x30; //将数字字符转换为数值
			num += temp *int(pow(10, n - 1 - i));
		}
	}
	if (isNegative) //如果字符串中有负号，将数值取反
	{
		return (0 - num);
	}
	else
	{
		return num; //返回转换后的数值
	}
}

注意：此段代码只是实现了十进制字符串到数字的转化，读者可以自己去实现 2 进制，8 进制，10 进制，16 进制的转化。

repo: Sogrey/c-cpp-QA


text:
Adds abstracted mechanism for adding popovers to charts via chartSet.js

Tested on Safari/Mac.
:+1:

authors: lexjacobs stugots

repo: Solinea/goldstone-server

license_source: bigquery


text:
Standalone Agogos

To support local testing (#88) for our consumers:

Added kubernetes-fs source instead of the existing filesystem source, so we could add in proper production schemas and test them easily
Added soluto/agogos-standalone image, which should let anyone run agogos locally with resources read from a local directory, in order to test/develop their schemas and other resources.

kubernetes-fs was designed to run k8s resources without actual k8s?

Yes, to make it easy for our users to test their schemas locally

authors: AvivRubys Yshayy

repo: Soluto/agogos


text:
The issue with TransactionResultXDR parsing in Protocol 18.

When the Path Payment Strict Send operation goes through the LiquidityPool - SDK parses TransactionResultXDR object with incorrect data and amounts which are different from what we can see in the Stellar Laboratory.
Transaction Example:
hash: c08aa6ddc85a45e61616e04169255b65ef8f18a1770cfd1f9d6ef06e1d9181b5
result XDR: AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAANAAAAAAAAAAMAAAACyIKYeT/PVZ525AbJ5qFGX2a3dmZTfkdTdS7+VC2nJOoAAAABVVNEAAAAAAC4yDllC4wc8MFpfq+TvoUU1t9hHysSWY8bznoIAStjLQAAAAADR2jEAAAAAVVTREMAAAAAV/4SZ1wTCkLfxCfFO2dNY/5NB5Bt4jYhkU9JgmGKlLMAAAAAALcbAAAAAAEAAAAAw+9uw8pDzN04gbAnRvqwDPvnSMfw9HFwY1rT9/MHluUAAAAAAAXsuQAAAAFSSU8AAAAAALjIOWULjBzwwWl+r5O+hRTW32EfKxJZjxvOeggBK2MtAAAAAAC2GBQAAAABVVNEAAAAAAC4yDllC4wc8MFpfq+TvoUU1t9hHysSWY8bznoIAStjLQAAAAADR2jEAAAAAQAAAADD727DykPM3TiBsCdG+rAM++dIx/D0cXBjWtP38weW5QAAAAAABfNUAAAAAAAAAAAT/GYZAAAAAVJJTwAAAAAAuMg5ZQuMHPDBaX6vk76FFNbfYR8rElmPG856CAErYy0AAAAAALYYFAAAAACN28YF+p1Z8/Ftgnc9+oJE2IrDjeHuSF+f1dAYXbHjwAAAAAAAAAAAE/xmGQAAAAA=
When you try to parse the result XDR from Path Payment Strict Send operation, which consists only of Order Book offers - everything is fine and the object, parsed with SDK is similar to Stellar Laboratory.
Transaction Example:
hash: 8f689a09759ca97669f7fd7e36a65fc3d425e78b0e43d8d193ed0d914b420ad4
result XDR: AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAANAAAAAAAAAAMAAAABAAAAAI3bxgX6nVnz8W2Cdz36gkTYisON4e5IX5/V0BhdsePAAAAAAAAF/OAAAAABekVUSAAAAADDduQAxHh96hdAUvmvXsG/9m0kpBY+OLwDdL/a5Tj7lwAAAAAHJw4AAAAAAnpVU0RDAAAAAAAAAAAAAADDduQAxHh96hdAUvmvXsG/9m0kpBY+OLwDdL/a5Tj7lwAAAAAF9eEAAAAAAQAAAACN28YF+p1Z8/Ftgnc9+oJE2IrDjeHuSF+f1dAYXbHjwAAAAAAABfzeAAAAAXpCVEMAAAAAw3bkAMR4feoXQFL5r17Bv/ZtJKQWPji8A3S/2uU4+5cAAAAADk4cAAAAAAF6RVRIAAAAAMN25ADEeH3qF0BS+a9ewb/2bSSkFj44vAN0v9rlOPuXAAAAAAcnDgAAAAABAAAAAI3bxgX6nVnz8W2Cdz36gkTYisON4e5IX5/V0BhdsePAAAAAAAAF/NsAAAACekFRVUEAAAAAAAAAAAAAAMN25ADEeH3qF0BS+a9ewb/2bSSkFj44vAN0v9rlOPuXAAAAAAX14QAAAAABekJUQwAAAADDduQAxHh96hdAUvmvXsG/9m0kpBY+OLwDdL/a5Tj7lwAAAAAOThwAAAAAAI1SYdUyLLYHFj5RkpytXEwR8y4PzrDyTx1+rYVXJkIfAAAAAnpBUVVBAAAAAAAAAAAAAADDduQAxHh96hdAUvmvXsG/9m0kpBY+OLwDdL/a5Tj7lwAAAAAF9eEAAAAAAA==

Thank you for submitting this issue. I found the error and I fixed it in this commit:
https://github.com/Soneso/stellar-ios-mac-sdk/commit/0b2e9f6140c55a2931208bb5fe347cce0f317bd5

fixed in release 2.0.7

authors: christian-rogobete let-it-snow

repo: Soneso/stellar-ios-mac-sdk


text:
いいところ診断の結果に優しさを追加したい

以下の結果を追加したい
'{userName}のいいところは優しさです。あなたの優しい雰囲気や立ち振舞に多くの人が癒やされています。'

これから対応します

fc943c9 で解決されました

repo: Sota-Mikami/assessment


text:
Importing editorial decisions

On the stand-up call this morning, @thomasstjerne and I discussed the potential idea of being able to dump large datasets out of CoL+ into tsv format, apply decisions or complete more complex workflows in a desktop application, re-import the tsv, and batch apply the decisions.
In the long-term this might simplify the task of developing taxonomic editing tools, because the frontend would not have to re-implement spreadsheet-like functionality in a RESTful environment which can become really complex. Also, some users may prefer to do the bulk of their work in desktop applications (Excel, Access, LibreOffice, etc) that they already know how to use.
@thomasstjerne made a good point that it would likely have to be a special type of import because the importer would have to interpret the decisions provided by the user, and inform the user when they provide invalid decisions.
I imagine this might take quite a lot of effort to develop and do not think it should be a priority right now, but we thought it might be worthwhile opening an issue ticket to discuss it as a potential long-term enhancement.

Working offline locally on a subset of the data would surely be very useful.
How do you imagine that decisions are tracked in such a TSV? Should the (re)importer just compare the previous with the updated data and create a decision for that change? This might be quite challenging if any change can occurr in a spreadsheet.

authors: gdower mdoering


text:
Kontrollere hvordan siden vises før/når custom font lastes

Which package is this issue related to?
ffe-webfonts
Describe your issue (screenshots welcome!)
Per i dag settes det ingen oppførsel på hvordan vi skal laste inn fonten, dermed er det opp til hver enkelt browser hvordan den ønsker å gjøre det. Ved å sette font-display kan vi kontrollere hvordan vi ønsker brukeropplevelsen å være
Forslag
@font-face {
    font-family: 'MuseoSans-300';
    font-display: fallback;
    src: url('@{fonts-url}/2FDE32_0_0.woff2') format('woff2'),
        url('@{fonts-url}/2FDE32_0_0.woff') format('woff');
}

Ref: https://developers.google.com/web/updates/2016/02/font-display?utm_source=lighthouse&utm_medium=devtools

Sounds good to me 👍

authors: ivarni lfbergee


text:
How to configure spark-bench so that I can run it in yarn cluster mode?

Thanks for the work in developing spark-bench.
I've got a question in use: in env.sh, there's a parameter "master". I've tried to set it to yarn, but it won't work and there are exceptions showing Failed to connect to master yarn:7077.
I just wonder how should I set the configuration file so that I can use yarn cluster mode to run it? Thanks in advance.

Which version of Spark were you running? To Spark 1.6 or later, you can set SPARK_MASTER=yarn in configuration file env.sh.

Thanks!

authors: alphalzh pfxuan

repo: SparkTC/spark-bench


text:
🛑 Yiffed Main is down

In 409a126, Yiffed Main (https://yiffed.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Yiffed Main is back up in ee116f0 after 20 minutes.

repo: SparksTheFolf/STF-Uptime-Status


text:
[BUG] Unable to Execute Binary File in Local Development

Environment

chromium Version: 109
puppeteer / puppeteer-core Version: 19.5.2
Node.js Version: 16
Lambda / GCF Runtime: nodejs 16.x
MacOS 11.7.2
x64 Intel processor and running Lambda with x64 architecture

Expected Behavior
The chromium binary should execute
Current Behavior
{
    "errorMessage": "Failed to launch the browser process!\n/tmp/chromium: /tmp/chromium: cannot execute binary file\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n",
    "errorType": "Error",
    "stackTrace": [
        "Error: Failed to launch the browser process!",
        "/tmp/chromium: /tmp/chromium: cannot execute binary file",
        "",
        "",
        "TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md",
        "",
        "    at onClose (/path-hidden/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299:20)",
        "    at Interface.<anonymous> (/path-hiddden/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:287:24)",
        "    at Interface.emit (node:events:525:35)",
        "    at Interface.emit (node:domain:489:12)",
        "    at Interface.close (node:readline:590:8)",
        "    at Socket.onend (node:readline:280:10)",
        "    at Socket.emit (node:events:525:35)",
        "    at Socket.emit (node:domain:489:12)",
        "    at endReadableNT (node:internal/streams/readable:1358:12)",
        "    at processTicksAndRejections (node:internal/process/task_queues:83:21)"
    ]
}

Steps to Reproduce

Follow installation steps in documentation (installing @Sparticuz/chromium as a dev dependency)
export IS_LOCAL=true
Try running lambda function with serverless offline

Lambda function code example:
import 'source-map-support/register';

import type { ValidatedEventAPIGatewayProxyEvent } from '@/utils/apiGateway';
import { middyfy } from '@/middleware';

import schema from './schema';

const chromium = require('@sparticuz/chromium');
const puppeteer = require('puppeteer-core');

const capture: ValidatedEventAPIGatewayProxyEvent<typeof schema> = async (
  event,
) => {
  const { queryStringParameters } = event;
  if (
    !queryStringParameters ||
    !queryStringParameters.url ||
    !queryStringParameters.screen
  ) {
    return { statusCode: 403 };
  }

  const { url } = queryStringParameters;
  console.log(queryStringParameters);
  const [width, height] = queryStringParameters.screen.split(',');

  if (!width || !height) {
    return { statusCode: 403 };
  }

  console.log('About to launch the browser...');
  const execPath = await chromium.executablePath();
  console.log(execPath);
  console.log(process.version);
  console.log(process.env.IS_LOCAL);
  const browser = await puppeteer.launch({
    args: chromium.args,
    defaultViewport: chromium.defaultViewport,
    executablePath: await chromium.executablePath(),
    headless: chromium.headless,
    ignoreHTTPSErrors: true,
  });
  const browser = await puppeteer.launch({
    headless: true,
  });
  console.log('I launched the browser!!');

  const page = await browser.newPage();
  await page.setViewport({
    width: Number(width),
    height: Number(height),
  });

  await page.goto('https://example.com');
  console.log(`Page title ${await page.title()}`);
  const screenshot = await page.screenshot({
    path: 'screenshot.png',
    encoding: 'base64',
  });

  await browser.close();

  return {
    statusCode: 200,
    body: `<img src=”data:image/png;base64,${screenshot}”>`,
    headers: { 'Content-Type': 'text/html' },
  };
};

export const main = middyfy(capture);

The console logs confirm that my lambda is running is node 16 and that the chromium.exectubalePath() is pointing to /tmp/chromium.
The function blows up when I try to launch the browser:
  const browser = await puppeteer.launch({
When I open /tmp/chromium and attempt to execute the file, I also get
zsh: exec format error: ./chromium. This leads me to believe there may be an issue with the chromium binary file
Possible Solution

Having the same issue, did you manage to find any workaround?

@kaykhan I was not, unfortunately 😞 I ended up switching over to playwright-aws-lambda and have had much better luck! It worked right out of the box

Does sls offline run a docker container similar to how aws sam does their testing? If so, you might need to make the binaries available to the container, whether that's making them production dependencies, or layers, etc..
You can also try the @sparticuz/chromium-min package and provide a location for the files.
If you don't need a newer version of chromium, playwright-aws-lamda looks extremely similar to chrome-aws-lambda. The main difference being that chromium is over two years old!

Just to clarify but this problem does not only just exists with sls offline. it also exists with sls invoke local -f <function_name

If you specify the package as a production dependency does it work?

@Sparticuz @kaykhan For further clarification to my posts above, playwright-aws-lambda worked fine locally using serverless offline but did not work when actually deployed. Probably to your point @Sparticuz that the binaries included in that package are super old.
Using this package as a production dependency, everything works perfectly in deployed environments! But I'm still seeing the same error described above in which my local environment seems unable to run the inflated executable file. Would you mind sharing where you're sourcing these binaries @Sparticuz? I don't know if there are any OS-related gotchas here, but my hunch is that there might be. I'm also going to try running my project on my Linux machine this weekend to see if this local dev issue is still present there

If you specify the package as a production dependency does it work?

Ive been installing via npm install <package> rather than a dev dependency. Becuase ive been attempting to develop locally. And it does not work like this

Would you mind sharing where you're sourcing these binaries @Sparticuz?

https://github.com/Sparticuz/chromium/tree/master/_/ansible

Im still experiecing this problem locally running sls invoke local -f <function_name>
package.json
  "dependencies": {
    "@sparticuz/chromium": "^110.0.0",
    "puppeteer-core": "19.6.0",
    "puppeteer-extra": "^3.3.4",
    "puppeteer-extra-plugin-stealth": "^2.11.1",
    ....
  },

code
const puppeteer = require("puppeteer-extra");
const chromium = require("@sparticuz/chromium");

const StealthPlugin = require("puppeteer-extra-plugin-stealth")();
StealthPlugin.enabledEvasions.delete("iframe.contentWindow");
StealthPlugin.enabledEvasions.delete("navigator.plugins");
puppeteer.use(StealthPlugin);

browser = await puppeteer.launch({
        args: chromium.args,
        defaultViewport: chromium.defaultViewport,
        executablePath: await chromium.executablePath(),
        //headless: chromium.headless,
        ignoreHTTPSErrors: true,
        headless: false,
});

node v18
is there anything obvious you can see im doing wrong?

authors: PickertJoe Sparticuz kaykhan

repo: Sparticuz/chromium


text:
fix: auth is only enabled in production

auth is only enabled when NODE_ENV === 'production'
@james-hinton would you mind making sure that I've kept to best practices as I haven't worked with Vue before
Does this fix mean that we dont need to set the VUE_APP_ENABLE_AUTH env var in the Dockerfile?

@mountaincharlie see discussion in https://github.com/SpatialDays/stac-portal-frontend/pull/21 , lets fix it for frontend first then come back here

@ivica3730k sorry i didnt see the further developments on that issue, last i saw James had fixed it

repo: SpatialDays/stac-browser

license: ISC


text:
#查询作者精神状态

到底怎么样才能创作出如此抽(wei)象(da)的作品啊！！！

发起了 GitHub 银趴，当前 2 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 3 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 4 人银趴中，等待大家加入...

射到房顶上去了

发起了 GitHub 银趴，当前 5人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 6 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 8人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 9人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 10人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 11 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 13 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 14 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 15 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 16 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 114514 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 114514 人银趴中，等待大家加入...

为什么要打乱队形啊(恼

发起了 GitHub 银趴，当前 18 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 19 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 20 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 21 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 22 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 23 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 24 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 25人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 26人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 27 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 28 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 29 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 30 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 31 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 32 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 32 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 32 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 34 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 35 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 36 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 37 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 38 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 39 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 40 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 41 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 42 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 43 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 44 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 45 人银趴中，等待大家加入...

发起了 GitHub 银趴，当前 46 人银趴中，等待大家加入...


text:
Improve compatibility for Python 3.12

This PR includes version updates to the dependencies for Python 3.12 compatibility.
Thanks to @mdgoodsell for pointing this out.

setuptools are no longer natively provided in python 3.12. thus it needs to be added to the requirements

Thanks Jack!

Now in running it I get the error

authors: jackaraz mdgoodsell

repo: SpeysideHEP/spey


text:
homebridge hangs at startup

Hi, I hope I'm right here, because homebridge hangs at startup since there is a new z-way device. Aeotec Multisensor 6 and homebridge stop starting right after homebridge-zway has added one of these new sensors:
[11/30/2016, 5:38:58 PM] Initializing platform accessory 'Presence'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Vacation'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Night'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Security Zones Intrusion'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Humidity'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Heizung Wohnzimmer'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Heizung Arbeitszimmer'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Heizung WC'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Boiler Schalter'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Heizung Bad'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Heizung Schlazimmer'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (34.0)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (34.1)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (34.2)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (35.0)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (35.1)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (35.2)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (35.3)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (35.4)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Fibaro Dimmer (35.5)'... [11/30/2016, 5:38:58 PM] Initializing platform accessory 'Bewegung Schlafzimmer'...
I can not attach accessories as homebridge does not fully start for this but I attach the homebridge devices.
devices.json.txt

Hey @peshay sorry for the delayed response.
I don't immediately see the problem looking at your devices.json. This is almost certainly some kind of bug though. Can you confirm you're running the latest version (0.5.0-rc0)? And what I would suggest is (if you haven't already done this by now) to try adding a Homebridge.Skip tag to each sub-device from the Multisensor and see if you can get it to finish starting with just one or two of them disabled. It's probably a problem with a single virtual device, so if we can isolate which one that will help and will get you running again.

Hi thanks for your answer. I already did that, it hangs at the motion sensor Element ID: ZWayVDev_zway_36-0-48-1

I found out that this issue came up, because I deactivated the motion sensor in the z-wave device. It still was shown as virtual device in z-way, but actually not functional. This caused it to hang. I also had some other sensors showed in Homekit as Not Responding, but these work now as well, after I reactivated the motion sensor. So for me this can be closed because it was a configuration failure by me, but maybe you could rewrite some code so even if someone deactivates a single sensor in such a device, that it does not come to hangs.
Maybe I should open a new case for this: the Motion Sensors in Homekit are now shown as contact or window sensor, maybe the discovery can be improved to shown them as motion sensors.

To my last point, I just tried it with Homebridge.Service.Type:MotionSensor, but then homebridge hangs at startup as well on these devices.

I seem to have lost track of this one or thought it was one of the half-dozen that were related to #69, but looking again I don't think so. That said, when I put your devices JSON through my test harness, I don't get any issues (inconclusive, but slightly surprising), so can you confirm if you're having the same issue when you upgrade to 0.5.0-rc1?

authors: SphtKr peshay

repo: SphtKr/homebridge-zway

license: isc


text:
Strange behaviour if modsecurity off|on set on server and location levels.

Let's look the example nginx config:
server {
    modsecurity on;
    error_log /var/log/nginx/error.log info;

    location /a {
        error_log /var/log/nginx/a.log info;
        modsecurity on;
        include lua_code_with_proxy_pass_to_python_web_server;
        proxy_pass 1.0.0.1;
    }

    location /b {
        error_log /var/log/nginx/b.log info;
        modsecurity off;
        include lua_code_with_proxy_pass_to_python_web_server;
        proxy_pass 1.0.0.1;
    }

   location /send-to-python-server {
       proxy_pass 1.0.0.2:8080;
   }
}

Issue is reproducible only when modsecurity is On on the server block and Off on one of the locations inside the server block.
Location /a works fine, as expected:

If I send malicious request on /a - modsec blocks request. Writes an event to modsec_audit log and a.log (the log-file set to location modsec triggered in). Client gets 403 response from nginx/modsec. Expected behavior.
If I send legitimate request on /a - It goes through modsec, no events are logged, no blocks are performed and request goes through lua_code, then goes to python service, then goes to proxy_pass and client receives the html response from the website. This is an expected behavior.

Location /b behavior seems to be broken in case of malicious request:

If I send malicious request on /b - modsec blocks request on the server level. No logs in modsec_audit and b.log but in server-level error.log (the server-level log file since modsec is being triggered on server level, not on the location level). Request is not being blocked since modsecurity is disabled for this certain location. BUT, handling of the request according to location statements stops here. Request goes to proxy pass, client receives HTML page of the website. I expect request to be handled by lua code and sent to python web-server. Request doesn't go lua code at all. In other words request handling by location code is being interrupted on server-level modsecurity, then it goes to proxy_pass. All intermediary location code is skipped. It doesn't happen if no modsecurity On set on server-level, since no hierarhical modsecurity structure is presented.
If I send legitimate request on /b - It goes through modsec, no events are logged, no blocks are performed and request goes through lua_code, then goes to python service, then to proxy_pass and client receives the html response from the website. Exactly as with /a location. Expected behavior.

Lua code in lua_code_with_proxy_pass_to_python_web_server is somewhat like:
location / {
  rewrite_by_lua_block {
    local python_server_res = ngx.location.capture(
          "/send-to-python-server",
          { method = ngx.HTTP_POST, always_forward_body = true }
    )
    ngx.var.result = python_server_res.header["Result"]
    if ngx.var.result then
        ngx.exit(ngx.HTTP_FORBIDDEN)
    else
        ngx.exit(ngx.HTTP_OK)
    end
  }
}

Yes: location / inside locations /a and /b. It works fine. This code is not reachable if modsecurity is on on the server block and off on the location block in case of malicious request.
So, as for me, during the buggy case, modsecurirty triggers on server level. Writes an event to server-level log file. Affects end of request handling somehow. Doesn't block the request since modsec is off on the corresponding location, then request goes to proxy_pass of the location. No intermediary lua code is being executed. Some strange hierarchical logic in modsec seems to fire up here. I need the request being send furtherto python service to block it there, which doesn't happen. Changing rewrite_by_lua_block to content_by_lua_block doesn't matter.
If we have no modsecurity directive on server block (or modsecurity off) - any request (legitimate or malicious) is being handled by lua code with any state of modsecurity directive on the location (either on or off) on any location. Everything works as expected.

Hello @remort ,
Thanks for the detailed report.
I seem to recall an earlier report of some inheritance issues between blocks, that may have been resolved by my predecessor in an experimental branch. I'll have a look and see if I can find it.

Hello, @martinhsv. Any updates on the issue?

authors: martinhsv remort

repo: SpiderLabs/ModSecurity-nginx


text:
Triggering ModSec from an application

My hosting provider runs modsec on its web servers.
Is there a way for Apache or PHP to trigger a core modsec rule in the response?
I mean I have a long list of rules in my WordPress WAF but the hoster will surely not add a rule only for me.
Please advise.

Now I read that they have the https://www.imunify360.com/ ruleset.

Hi @szepeviktor,
Not sure what exactly you want to do, but usually the trigger is the user input or the web server output. The rule (or rules set) uses ModSecurity engine to classify if the request or response is harmful or not. After processing the content, ModSecurity can take a disruptive action (deny, redirect..), log the data or even do absolutely nothing :)
What exactly you are trying to aiming?

I am used to using Fail2ban. My WAF calls PHP error_log() which land in Apache's error.log and the IP address get banned by Fail2ban.
Is there a way to get an IP address banned by modsec? Or trigger a very critical error which hopefully ends up by banning that IP by another system running on the hoster's server?

or the web server output

So is there a way to output something that triggers a critical rule?

authors: szepeviktor zimmerle

repo: SpiderLabs/ModSecurity


text:
Add endpoint for affected CPEs

The NVD JSON Data Feed entries provide vendor and product names under the "affects" node. Currently, the CVE server uses CPEs collected from the NVD JSON "configuration" node when querying endpoints such as /v1/cpe_with_version/drupal:drupal and /v1/cpe/drupal:drupal. This is problematic in scenarios where we need to isolate whether one of the CVEs returned from these endpoints pertain directly to the core vendor product, or are related instead to a third-party plugin or module.  This can be discerned by using the vendor(s) and product(s) found under the "affects" node and creating a CPE using that information, thus allowing us to make this distinction.

Congratulations, great job!


text:
MatPlotLib Config Dir

There is an error running in a container where the matplotlib library can't set the appropriate config directory. This gives the error:
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-dpk92318 because the default
path (/home/appuser/.config/matplotlib) is not a writable directory; it is highly recommended to set the
MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib
and to better support multiprocessing.

Created a directory for the container that is generated when rolldice.py is imported. This should fix the problem in a generic manner for development environments and container environments alike.
Implemented in commit a1701e5.

repo: SpinStabilized/dbot


text:
Extend protoc code generation plugin

With this PR I have refactored the way our Protoc plugin works as well as extended it for the method generation.
Breaking changes
The Gradle DSL changed from:
modelCompiler {
    generateInterfaces {
        filePattern(endsWith("events.proto")).markWith("io.spine.test.TestInterface")
        filePattern(endsWith("commands.proto")).ignore()
        uuidMessage().markWith("io.spine.test.TestInterface")
        uuidMessage().ignore()
    }
}

To:
modelCompiler {
    generateInterfaces {
        mark filePattern().endsWith("events.proto"), "io.spine.test.TestInterface"
        ignore filePattern().endsWith("commands.proto")
        mark uuidMessage(), "io.spine.test.TestInterface"
        ignore uuidMessage()
    }
}

The enrichmentMessage interface generation is not supported anymore due to the changes in the way enrichments are defined and future plans to remove (enrichment_for) option.
New File pattern selectors
Now it is also possible to use startsWith and matches file patterns as follows:
modelCompiler {
    generateInterfaces {
        mark filePattern().startsWith("io/spine/test/order_"), "com.example.OrderMessage"
        mark filePattern().matches(".*test.*"), "com.example.test.TestMessage"
    }
}

Generate Methods
Now it is also possible to specify a MethodFactory that will be used during the generation of the Protobuf code. The generateMethods closure of the modelCompiler allows configuring method factories using the same selectors as in generateInterfaces.
Here is an example of such configuration:
modelCompiler {
    generateMethods {
        useFactory "io.spine.test.TestMethodFactory", filePattern().endsWith("events.proto")
        useFactory "io.spine.test.TestMethodFactory", filePattern().startsWith("io/spine/test_")
        useFactory "io.spine.order.OrderMethodFactory", filePattern().matches(".*order.*")
        useFactory "io.spine.test.UuidMethodFactory", uuidMessage()
        ignore filePattern().matches(".*beta.*)
    }
}

The MethodFactory implementation should implement io.spine.tools.protoc.MethodFactory interface, be public and have a public constructor. The method factory is responsible for generation valid and compilable methods for a specified message.
The only restriction here is that the method factory implementation should be available as a compile-time dependency for the Gradle module in which it is called. I.e. that if we are generating methods for the Gradle test-module the module that contains the method factory implementation should not be itself defined in the test-module and should be added to the test-module dependencies.

@armiol PTAL. The implementation is ready. Still, need to add more unit tests.

@armiol PTAL.

@armiol PTAL

@armiol PTAL

@armiol PTAL again.

repo: SpineEventEngine/base


text:
Update dependencies, consolidate old validation code

This PR introduces the following changes:

Updated McJava and ProtoData versions — ProtoData is still at 0.9.11. It's not at 0.10.0 because this version introduces a breaking change which requires update of Validation.

Addresses deprecation of Logging interface

Consolidates old validation code in the mc-java-validation module. This code is not in use for some time. Now all the code related to older validation is within the module, and it's no longer included for publishing.

no longer included for publishing

Is mc-java-validation really excluded? I didn't see any changes in the main build file where spinePublishing { ... } is configured.

@yevhenii-nadtochii, PTAL.

authors: alexander-yevsyukov yevhenii-nadtochii

repo: SpineEventEngine/mc-java


text:
Upgrades our fork to version 0.10.3

After upgrading our dependency of knex, needed to do so with bookshelf. Made sense to do this locally and see what sort of issues we'd have. TL;DR - preserved our additions to helpers.js and the build script. Otherwise, the upgrade was painless.
I opened a PR since pushing to Master would mean it'd hit production without you getting to check it out.

Seems like a good upgrade - thanks for the work on this!

authors: davidpaulhunt robscott

repo: SpireTeam/bookshelf


text:
Explosion caused by a ghast's fireball doesn't have a useful Cause

(Originally reported https://github.com/SpongePowered/SpongeAPI/issues/935 and https://forums.spongepowered.org/t/solved-explosion-types/10028)
The event ExplosionEvent is fired when a fireball explodes that was shot by a Ghast.
However, the event's cause does not have any useful information in it.
Every time the event is fired the cause is just simply:
Cause[{Name=unknown1net.minecraft.block.BlockAir, Object={net.minecraft.block.BlockAir@3b5494fe}}]

The issue stems from EntityLargeFireball not including any Entity object as the source. I'm not 100% sure that changing that is a wise idea.

Just leaving as assurance of it being fixed, the output of the Cause now for this specific case is:

[05:37:14] [Client thread/INFO]: [CHAT] Player858 joined the game
[05:37:16] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/375, l='New World', x=-206.07, y=65.09, z=-256.98]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-215.62, y=72.26, z=-295.42]}}]
[05:37:16] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/375, l='New World', x=-206.07, y=65.09, z=-256.98]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-215.62, y=72.26, z=-295.42]}}]
[05:37:19] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/849, l='New World', x=-198.10, y=64.27, z=-248.37]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-211.81, y=65.41, z=-291.83]}}]
[05:37:19] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/849, l='New World', x=-198.10, y=64.27, z=-248.37]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-211.81, y=65.41, z=-291.83]}}]
[05:37:23] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/1514, l='New World', x=-206.50, y=64.74, z=-264.15]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-223.42, y=59.49, z=-287.28]}}]
[05:37:23] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/1514, l='New World', x=-206.50, y=64.74, z=-264.15]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-223.42, y=59.49, z=-287.28]}}]
[05:37:28] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/1986, l='New World', x=-190.41, y=70.57, z=-254.75]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-215.92, y=52.02, z=-293.28]}}]
[05:37:28] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/1986, l='New World', x=-190.41, y=70.57, z=-254.75]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-215.92, y=52.02, z=-293.28]}}]
[05:37:31] [Server thread/INFO]: Player858 was fireballed by Ghast
[05:37:31] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/2362, l='New World', x=-196.09, y=68.70, z=-272.36]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-211.64, y=48.45, z=-295.51]}}]
[05:37:31] [Server thread/INFO] [STDOUT]: [net.minecraftforge.event.world.ExplosionEvent:onConstruct:83]: Cause[{Name=Source, Object={EntityLargeFireball['Fireball'/2362, l='New World', x=-196.09, y=68.70, z=-272.36]}}, {Name=ProjectileSource, Object={EntityGhast['Ghast'/56, l='New World', x=-211.64, y=48.45, z=-295.51]}}]
[05:37:31] [Client thread/INFO]: [CHAT] Player858 was fireballed by Ghast

repo: SpongePowered/SpongeCommon


text:
Enter URL in chat should be rendered clickable

Forge re-adds URL click parsing, so Vanilla should add it as well.

I always planned to implement this, could never decide which URL regex to use though :P

authors: Minecrell gabizou

repo: SpongePowered/SpongeVanilla


text:
Mixin Fatal Error

When I run the server an exception occurs.
Version: SpongeVanilla .10.2-5.2.0-BETA-391 (STABLE)
latest.zip
https://gist.github.com/demkom58/07517d900dcf39db921d0a8380c74e19

Could you upload your log to a paste service such as https://gist.github.com it would make it much easier for viewers of this issue to view the log.

https://github.com/SpongePowered/SpongeVanilla/blob/bleeding/src/main/java/org/spongepowered/server/mixin/core/world/MixinWorldServer.java#L49-L54 seems like the culprit.

Mixin 0.6.13 is bugged as described in SpongePowered/Mixin#193, you need to update Mixin to 0.6.15 in SpongeVanilla.

@gabizou
This shouldn't be closed. stable-5 of SV still uses 0.6.13.


text:
🛑 [B] IP Ending with .215 is down

In 8ed28fa, [B] IP Ending with .215 ($IP_GRP_B.215:$MONITORING_PORT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: [B] IP Ending with .215 is back up in aa672fb after 7 minutes.


text:
chore(dotenv): Add dotenv-rails gem

Development environments now support .env files for environment variables
Signed-off-by: microlith57 microlith57@gmail.com

Pull Request Test Coverage Report for Build 337

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 335:
0.0%

Covered Lines:
8

Relevant Lines:
8

💛  - Coveralls

Pull Request Test Coverage Report for Build 337

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 335:
0.0%

Covered Lines:
8

Relevant Lines:
8

💛  - Coveralls

Pull Request Test Coverage Report for Build 337

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 335:
0.0%

Covered Lines:
8

Relevant Lines:
8

💛  - Coveralls

Pull Request Test Coverage Report for Build 337

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 335:
0.0%

Covered Lines:
8

Relevant Lines:
8

💛  - Coveralls

repo: SpotswoodCollege/eotc-helper


text:
Add automatic retry after X when encountering an "FA maybe down" error?

The addition of the batched downloads of multiple galleries is great, though there is an occasional issue I encounter on larger galleries or multiple ones at once, where FA will return a 520, perhaps hitting a rate limit or having a temporary hiccup, and so the program halts, this is not ideal when trying to leave it running overnight to let it go through the list of galleries selected.
Perhaps an option to set up a retry after 10s or 30s or something could be useful for this?

Occured to me, this could also help with the occasional timeout that may be from a similar issue, though I think I only saw it timeout on swf files, so that may be an unrelated issue of swf files just not playing nice with the program.

Should mostly be fixed in the latest update!

Seems to have worked, had two hiccups on two different files, and it retried successfully! Is there a cooldown or is it just "first time is 30sec, second fail is 60sec" regardless of how long between both fails?/if it's different or identical files?

So long as it determines FA is actually up, it'll retry about 5 times, with an increasing amount of backoff every time till it works. So it'll do 30 to start, then 60, then 90, etc... This helps it get around the rate limiting too.
If it works, I'll mark it as done!

Aye, and it resets how long it tries when it succeeds again? Asking as the log said 30sec on the first URL, then succeeded until a while later, but while the second URL was not the same, the log reported 60sec
If it does not reset on success, it might still slowly pull to 5 tries with the occasional hiccup! (they can happen a lot at times for some reason), still, this does help tremendously given that it has been thousands of files so far and it's still going strong from my test!

Oh shoot, I'll check that out, thanks! I was sure it did reset.

Yep, forgot to reset the retry count after a success! That should be fixed now!

authors: Nomaxice SpottedSqueak

repo: SpottedSqueak/FA-Gallery-Downloader


text:
Assignment-1: Anagram checker Part 1 and Part 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I am adding code based on the instructions in the assignment.
What did you learn from the changes you have made?
The usage of if-else conditional, if-elif-else conditional, functions, calling functions, sorted function on strings, upper, lower methods on strings, different logical operators including equality.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I thought of using a for loop instead of a conditional, but decided to stick to the class lessons.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I didn't know much about anagrams. I looked up online to learn more about them.
How were these changes tested?
Changes were tested by testing in parts first, for example, the conditionals were tested alone with various inputs for correctness as well as for syntax. Later the whole functions were tested by using the test data from the assignment and other test data(valid, invalid and boundary values).
A reference to a related issue in your repository (if applicable)
Checklist

[✓] I can confirm that my changes are working as intended

You did a great job here!
Just keep in mind that the code could be written much simpler, shorter, and in a more pythonic way.
Please go ahead and close this pull request now. Thanks!

Thanks!


text:
For ComfyUI_Dave_CustomNode, the content is not displayed

The contents of the extension in swarmui are not displayed, the options are not displayed, and the right-click menu is not displayed.
I don't know if I should direct this question to the plugin author or swarmui.
Here is a comparison of the comfyui and swarmui interfaces，What should be done about this problem
comfyui：

swarmui：

That'd be an issue with the relevant extension to fix - I tried googling the name, and only found this https://github.com/Davemane42/ComfyUI_Dave_CustomNode which was archived 8 months ago?

repo: Stability-AI/StableSwarmUI


text:
How to serve the cloned repo in local? (Help Wanted)

I am trying to work on the progessBar feature. Can you please help me how to serve the application in my localhost:
I did below things:
git clone https://github.com/stabzs/Angular2-Toaster.git
npm install
npm start (not shows the port number to direct to).
Can you please help how to run the application in localhost?

Thank you for taking a look at the progress bar feature!  I haven't had time to get to it.
It will serve up source, not a full application, on http://127.0.0.1:8875.  To aid in development, it would probably be beneficial to create a bootstrapped source "project" that makes it easier.  If I can get to creating a full-blown demo site, it would be ideal to loop that into the dev process, but it doesn't exist yet.

You are welcome and that's fine with me.

license: mit


text:
Discrepancy between 'st2 action get core.http' and GUI metadata display

At user level, on st2 2.2.1, in order to retrieve the fields from st2 required to run the core.http action, you have to return both the metadata from the action and the http-request runner. If you however open the GUI up and inspect the action and it's input fields, they are different and appear to be a combination of both runner and action.
Is this a bug with the CLI Client not taking the fields from the runner and adding them to the those of the action?
I don't have a solution nor have I looked in to why. From a user experience, it's inconsistent and for new comers that experience this during training, it's entirely frustrating.

@DavidJohnGee can you add a screenshot & CLI output to this issue, to show this?

dgee@st2-2:~$ st2 action get core.http -y
description: Action that performs an http request.
enabled: true
entry_point: ''
id: 591c64c8a10deb9f00000620
name: http
notify: {}
pack: core
parameters:
auth:
description: Auth string to be used. This can be like 'x-auth-token=XYZ'.
type: string
body:
description: Body to send with the request
type: string
file_content:
description: Magic attribute which is automatically populated when file_path
is specified
type: string
file_content_type:
description: Optional content type for the uploaded file
type: string
file_name:
description: Magic attribute which is automatically populated when file_path
is specified
type: string
file_path:
description: Path to the file to upload
type: string
headers:
description: HTTP headers to use with the request.
type: object
method:
description: HTTP method to use.
enum:
- HEAD
- GET
- POST
- PUT
- DELETE
params:
description: Query params to be used with the HTTP request.
type: object
timeout:
default: 60
description: Timeout for the HTTP request.
type: number
ref: core.http
runner_type: http-request
tags: []
uid: action:core:http
dgee@st2-2:~$ st2 runner get http-request -y
description: A HTTP client for running HTTP actions.
enabled: true
id: 591c64c8a10deb9f0000060e
name: http-request
runner_module: http_runner
runner_parameters:
allow_redirects:
default: false
description: Set to True if POST/PUT/DELETE redirect following is allowed.
type: boolean
cookies:
description: Optional cookies to send with the request.
type: object
headers:
description: HTTP headers for the request.
type: object
http_proxy:
description: A URL of a HTTP proxy to use (e.g. http://10.10.1.10:3128).
type: string
https_proxy:
description: A URL of a HTTPs proxy to use (e.g. http://10.10.1.10:3128).
type: string
password:
description: Password required by basic authentication.
type: string
url:
description: URL to the HTTP endpoint.
required: true
type: string
username:
description: Username required by basic authentication.
type: string
verify_ssl_cert:
default: true
description: Certificate for HTTPS request is verified by default using requests
CA bundle which comes from Mozilla. Verification using a custom CA bundle
is not yet supported. Set to False to skip verification.
type: boolean
uid: runner_type:http-request
dgee@st2-2:~$ st2 --version
st2 2.2.1

@DavidJohnGee does st2 run core.http -h give you what you want?

Gonna close this as I'm pretty sure I've solved it for you. Basically you were just dumping the yaml deffiniton of the action instead of looking at the compiled help which shows you all possible fields (and what the UI is build upon).

Easy there speedy. Apples and apples! You getting commission on closing issues? :)
There is an issue here that needs to be solved. If I just fob people off with "Oh just run st2 run x -h" and all of the fields appear, someone (it's already happened twice) will go to the web UI and complain that the fields appear under the action tab, yet the fields from the runner do not appear on the CLI. If we're happy for this muddy situation to exist, then fine. I'll call it out with customers and in class and feel free to close it.
When I check out the "ACTION" tab of the web UI, I see the fields required, it doesn't say "some are requirements of the runner and some are requirements of the action". It says "Action that perform an http request".

So, one of two things has to happen here I think.

The description changes of the UI to be clear about what's going on (i.e. fields are from both the runner and action)
The CLI consumes this precompiled help file from both the runner and action. Description needs to show this.

Thoughts?

That "Action that performs an http request" line comes from the description: field in the action metadata file. It also appears in the st2 run core.http -h output.
How should we phrase things in the UI that is not confusing to people? Could be confusing to start talking about action vs runner parameters for each action - does that actually help understanding how to use the action, if we mark fields as coming from runner vs action?
Similarly, with the output for st2 run core.http -h, how should we phrase it to make it clear & useful to users?

@DavidJohnGee Can you be more explicit on which part is confusing/inaccurate?
My understanding is that you'd like to see the runner params alongside the action parameters and, although we have a command for that, you'd like to see it with the action get command as well?

@bigmstone I thought I was being specific!
If the user goes to the Web UI on the actions tab, the user sees a full list of input fields for core.http and the http-request runner. You stated previously in this thread that it was from a pre-compiled help file.
If the user runs the st2 action get core.http (with or without the yaml/json flags) then they get just the action inputs.
The Web UI already presents both action and runner input fields without specifying anything about the runner. If you try to replicate this with the CLI, you just get the inputs for the action. The user experience is incomplete. The user is experiencing two different things when they try and look at action inputs.
I'm suggesting that we make the user experience as close as possible identical. If we want to see inputs to action, then the action tab on the Web UI (which says nothing about runner inputs) shows you the action inputs. Second method, run the action get command using the CLI.
Looking at this sensibly, I think two things would help clarify the confusion (not mine).

Inform Web UI users via some additional description that input fields come from the runner and action.
Include runner input fields in the action get.

I appreciate st2 run exists, but action get is supposed to get information on the action. st2 run is supposed to run things. It's not intuitive for fresh users.

You stated previously in this thread that it was from a pre-compiled help file.

I don't think it's pre-compiled - I think it gets created on the fly, following a similar approach to st2 run core.http -h.

Inform Web UI users via some additional description that input fields come from the runner and action.

Some marker next to each of those fields? Or a note at the top/bottom of the tab?

Include runner input fields in the action get...Include runner input fields in the action get.

st2 action get is not really a good way of finding 'help' about an action.It's not just the runner fields, it's also the formatting - it's providing a JSON blob of parameters, rather than a human-readable output like st2 run <action> -h does.
Do we instead need some other alias, like st2 action help <action>?

Some marker next to each of those fields? Or a note at the top/bottom of the tab?

I like the idea of a note next to each of the fields. There and then it's clear as to where the fields are coming from.

st2 action get is not really a good way of finding 'help' about an action.

This under a certain light is quite a funny statement.

Do we instead need some other alias, like st2 action help ?

st2 action help <action> seems like a sensible approach instead of it being a side effect of st2 run

authors: DavidJohnGee LindsayHill bigmstone


text:
[WIP] Moving Core Runner Tests

Moving core runner tests to st2common to prevent these tests from being copied with packages.

Just files don't take too much space. Why it's important not to copy tests with packages?
Required by some compliance stuff?

Yeah, I personally don't see a problem with including tests in the final distribution (packages).
Space is cheap in fact it's usually is a good idea to include tests with the final distribution - if someone unpacks the distribution or similar, the tests are there for a specific version and should pass.
We did this in Libcloud in the past, but then people complained they want us to include tests to confirm that the actual release artifact is working correctly (albeit, it's a slightly different scenario since for Libcloud we distribute source code and Python packages, but still).

Okay. There was a jira ticket out. I'll close this PR and mark that as "won't-fix YOLO DGAF GTFO". Which I wish was an actual label now.

authors: Kami armab bigmstone


text:
How to add your own branding?

I tried replacing /opt/stackstorm/static/webui/img/logo-stackstorm.svg with my own .svg file, but that didn't seem to change anything in the GUI.
Thanks,
john

Update:
I was able to swap out the logo-stackstorm.svg, and when sized properly it does display ok.  I thikn my browser cache wasn't clearing before for some reason.
That said, I think there's a doc update opportunity here.   Is there any guidance as to what other 'custom branding" stuff has already been wired in?  i see a big commit related to that.

@johnarnold looking through the history, that commit was part of this PR: https://github.com/StackStorm/st2web/pull/322
The goal of that PR was to re-brand the UI with Brocade images, fonts, colors, etc. We re-launched StackStorm Enterprise as Brocade Workflow Composer about that time. For users that have StackStorm, if they add BWC on top, it re-brands the st2web code as Brocade Workflow Composer.
I don't think it was explicitly intended to be an option that users would customize, hence the lack of documentation. That said, the way it has been done does seem to lend itself to some level of user-customization.
If you don't already have one, get a BWC trial license (brocade.com/bwc -> Free Trial), and install the bwc-ui package. You can see an example of the branding.less file in use there. (I would link direct to the repo, but it's private).

@LindsayHill    Thanks, I'll take a look.  I do think this has utilitiy, even on top of BWC.
FWIW I would like to have BWC for the ldap/RBAC and for the flow editor.  I have to prove some value with the opensource proof of concept first to get approval, so I'll keep hacking for now :)

I do think this has utilitiy

I think you're probably right. Hasn't been a big call for it, hence the lack of docs, and no promise of stability for those branding stylesheets. But it does seem do-able, and the pieces are there. Maybe we should have an open feature request issue for it?

authors: LindsayHill johnarnold


text:
User action form for voting_information_researched action

closes
fixes
What changed? Why?
Adds the userActionFormVotingInformationResearched form & dialog to be used in the Voter Guide page

PlanetScale deploy request

Notes to reviewers
Added initOnMount: false to the usePlacesAutocomplete hook to fix the undefined maps error. We are manually initializing the hook once the GoogleMapScript  status is ready.
How has it been tested?

[ ] Locally
[ ] Vercel Preview Branch
[ ] Unit test
[ ] Functional test

@eduardopicolo-cb please add the issue on this PR

authors: eduardopicolo-cb olavoparno

repo: Stand-With-Crypto/swc-web


text:
Incorrect usage of rs-tiled

I'm running into the same issue specified here on rs-tiled, someone else ran into it earlier -- https://github.com/mapeditor/rs-tiled/issues/265
The issue is explained via this comment https://github.com/mapeditor/rs-tiled/issues/265#issuecomment-1537367368
I don't think this has been fixed since.

seeing the same thing with latest version of everything

The example is meant to only serve as a short example of how one "might" implement tiled loading. Its not meant to be feature complete or bug proof. As long as the examples load/run that is enough. I'm happy to help someone build a crate specifically for loading tiled maps with bevy_ecs_tilemap as I have experience doing it.

Disclaimer:  I am a beginner to open source, as well as rust and bevy
Very sorry to bring this up again🙇♂, but I was wondering what the current state of this issue is?
From the Feb 11th comment, is it correct in understanding that there is no "official way" to load the .tmx, .tsx files using bevy_ecs_tilemap? for example I am currently trying to load a tiled map that is made up of the following .tmx, .tsx, .png file, where i have copy and pasted the helpers/tiled.rs into my beginner bevy migration project and am trying to use this projects tiled.rs example in exactly the same way
but I am still getting the same Missing attribute: tilecount as what is explained in the original issue mapeditor/rs-tiled/issues/265
I would love to participate in any investigation of this issue and any way i can help maybe think of a solution? But as a beginner here i am hoping to first learn the current state of the issue, and how other people might be solving it in custom ways? (I cant seem to find any examples of solutions for it that I can replicate)

Very sorry to bring this up again🙇♂, but I was wondering what the current state of this issue is?

The current status is that it wont be fixed. I'm happy to work with someone to create a bevy_rs_tiled crate but I don't have the time to do this myself.

From the Feb 11th comment, is it correct in understanding that there is no "official way" to load the .tmx, .tsx files using bevy_ecs_tilemap?

Correct

for example I am currently trying to load a tiled map that is made up of the following .tmx, .tsx, .png file, where i have copy and pasted the helpers/tiled.rs into my beginner bevy migration project and am trying to use this projects tiled.rs example in exactly the same way

You can use the tiled example as a started to build something more but it's not intended to be useful out of the box and will require work to make functional in your own apps.

(also I am using a branch solution that i found from the bevy discord help channel that imports bevy_ecs_tilemap as follows:
bevy_ecs_tilemap = { git = "https://github.com/rparrett/bevy_ecs_tilemap", branch = "bevy13" }

This is old information that is no longer correct since the bevy13 branch has been merged instead you should be using:
bevy_ecs_tilemap = { git = "https://github.com/StarArawn/bevy_ecs_tilemap", branch = "main" }

I would love to participate in any investigation of this issue and any way i can help maybe think of a solution? But as a beginner here i am hoping to first learn the current state of the issue, and how other people might be solving it in custom ways? (I cant seem to find any examples of solutions for it that I can replicate)

If a tiled map loader is your goal the best way to help would be to start a new crate for loading these files in bevy. Ideally you would want to start by looking at how rs-tiled works, what data is expected, and look at the tiled.rs example here as a way of getting started. From there you could slowly add new features based on the tiled map editor spec. Its quite detailed and can be found here:
https://doc.mapeditor.org/en/stable/


text:
[Refactor] rename LocalSort and LocalMerge

What type of PR is this：

[ ] bugfix
[ ] feature
[ ] enhancement
[x] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Rename to LocalSort and LocalMerge, to make it more understandable.
After this, an order by clause consists of several parts: LocalSort, LocalMerge, GlobalMerge.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

@Mergifyio backport branch-2.4

run starrocks_admit_test

repo: StarRocks/starrocks


text:
[BugFix] Fix show create materialized view don't have catalog and db name

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #12832
Problem Summary(Required) ：

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

[FE PR Coverage Check]
:heart_eyes: pass : 4 / 4 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/ViewDefBuilder.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/analysis/TableName.java
1
1
100.00%
[]

authors: Youngwb wanpengfei-git


text:
[Enhancement] return the actual root cause message to client when getting remote file failed

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

eg:
ERROR 1064 (HY000): Failed to get remote files, msg: com.starrocks.connector.exception.StarRocksConnectorException: Failed to get hive remote file's metadata on path: RemotePathKey{path='oss://xxxx/hive_hdfs_decimal_hdfs_csv', isRecursive=false}. msg: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem not found
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

[FE PR Coverage Check]
:disappointed: fail : 0 / 6 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/RemotePathKey.java
0
2
00.00%
[84, 85]

:large_blue_circle:
com/starrocks/connector/hive/HiveRemoteFileIO.java
0
2
00.00%
[99, 100]

:large_blue_circle:
com/starrocks/connector/hudi/HudiRemoteFileIO.java
0
2
00.00%
[99, 100]

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

@Mergifyio backport branch-2.5

authors: stephen-shelby wanpengfei-git


text:
[Doc] 2.5.6 rn and privilege

Signed-off-by: evelynzhaojie <everlyn.zhaojie@gmail.com>
Problem Summary:
Fixes # (issue)
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

@Mergifyio backport branch-3.0

authors: evelynzhaojie wanpengfei-git


text:
[BugFix] Fix bug can not query information_schema when table name contains spe…

…cial char
Fixes #29184
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:disappointed: fail : 9 / 21 (42.86%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/service/FrontendServiceImpl.java
2
12
16.67%
[329, 377, 380, 469, 481, 486, 490, 497, 530, 535]

:large_blue_circle:
com/starrocks/common/PatternMatcher.java
6
8
75.00%
[163, 164]

:large_blue_circle:
com/starrocks/service/InformationSchemaDataSource.java
1
1
100.00%
[]

[FE PR Coverage Check]
:disappointed: fail : 9 / 21 (42.86%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/service/FrontendServiceImpl.java
2
12
16.67%
[329, 377, 380, 469, 481, 486, 490, 497, 530, 535]

:large_blue_circle:
com/starrocks/common/PatternMatcher.java
6
8
75.00%
[163, 164]

:large_blue_circle:
com/starrocks/service/InformationSchemaDataSource.java
1
1
100.00%
[]

[FE PR Coverage Check]
:disappointed: fail : 12 / 26 (46.15%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/service/FrontendServiceImpl.java
4
17
23.53%
[284, 287, 312, 380, 467, 469, 481, 490, 497, 531, 535, 548, 562]

:large_blue_circle:
com/starrocks/common/PatternMatcher.java
5
6
83.33%
[162]

:large_blue_circle:
com/starrocks/service/InformationSchemaDataSource.java
3
3
100.00%
[]

authors: Astralidea wanpengfei-git


text:
Fix test

Why I'm doing:
What I'm doing:
Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[x] Yes, this PR will result in a change in behavior.
[ ] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.3
[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@Mergify automerge


text:
[Enhancement] compatible with lower version kudu-client api

Why I'm doing:
What I'm doing:

Ensures compatibility with older versions of the kudu-client API by returning a default row count if the GetTableStatistics method is unsupported.
Prioritizes the use of kudu.table_name from the metastore when catalog.type is configured to hive.

Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.3
[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@stephen-shelby PTAL ☕


text:
[BugFix] vector push back after resize created many empty shared_ptr

What type of PR is this：

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

run starrocks_be_unittest


text:
[Feature]Support colocate materialized view index

What type of PR is this：

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

Which issues of this PR fixes ：

Fixes #7451
Problem Summary(Required) ：

Support colocate materialized view index. You can enable it by setting the parameter "colocate_mv" = "true"  in properties.

[FE PR Coverage Check]
:disappointed: fail : 6 / 38 (15.79%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
6
38
15.79%
[2949, 2950, 2951, 2953, 2954, 2955, 2956, 2957, 2958, 2960, 2961, 2962, 2963, 2966, 2970, 2972, 2975, 2976, 2977, 2979, 2980, 2981, 2983, 2984, 2985, 2986, 2988, 2989, 2990, 2993, 2996, 2997]

[FE PR Coverage Check]
:heart_eyes: pass : 51 / 63 (80.95%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
4
6
66.67%
[447, 448]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
41
51
80.39%
[2899, 2900, 2905, 2906, 2907, 2908, 2909, 2910, 2915, 2916]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
6
6
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 51 / 63 (80.95%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
4
6
66.67%
[447, 448]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
41
51
80.39%
[2962, 2963, 2968, 2969, 2970, 2971, 2972, 2973, 2978, 2979]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
6
6
100.00%
[]

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 55 / 64 (85.94%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
8
14
57.14%
[823, 824, 825, 826, 827, 828]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
30
33
90.91%
[901, 902, 1799]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 51 / 60 (85.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
8
14
57.14%
[825, 826, 827, 828, 829, 830]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
7
9
77.78%
[913, 914]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
15
16
93.75%
[539]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
11
11
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 57 / 66 (86.36%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
8
14
57.14%
[825, 826, 827, 828, 829, 830]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
32
35
91.43%
[914, 915, 959]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 53 / 62 (85.48%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
8
14
57.14%
[825, 826, 827, 828, 829, 830]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
32
35
91.43%
[920, 921, 965]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 49 / 58 (84.48%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
7
13
53.85%
[824, 825, 826, 827, 828, 829]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
32
35
91.43%
[922, 923, 969]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
6
6
100.00%
[]

run starrocks_fe_unittest

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 49 / 57 (85.96%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
7
13
53.85%
[824, 825, 826, 827, 828, 829]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
32
34
94.12%
[922, 923]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
6
6
100.00%
[]

run starrocks_admit_test

@mergify rebase

[FE PR Coverage Check]
:heart_eyes: pass : 53 / 64 (82.81%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ColocateTableIndex.java
7
13
53.85%
[822, 823, 824, 825, 826, 827]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
30
34
88.24%
[921, 922, 973, 974]

:large_blue_circle:
com/starrocks/alter/RollupJobV2.java
12
13
92.31%
[533]

:large_blue_circle:
com/starrocks/alter/MaterializedViewHandler.java
4
4
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

authors: caneGuy meegoo smartlxh wanpengfei-git


text:
[Feature] FFG Star Wars Enhancement Improvments

Hi :). So, about our talk last night. It could be nice to have the option to customize the number of times the animation and sound are played. By default, the animation and sound played a random number between 2 or 4 i guess. Is it possible to allow automatically the range ? Because in function of where the token "shooter" is, and his target, the animation didn't fit well with this range by default and it's pretty hard to put one which fit perfectly. Thanks by advance :)

@Thorshko If this is for the Enhancements module, please submit the issue on their github. The Star Wars FFG system is not doing anything with animations.

Just for clarity, the Star Wars FFG Enhancements module is separate to this system. You'll need to post any issues / feature requests for it to the authors of the module here: https://github.com/wrycu/StarWarsFFG-Enhancements

authors: Esrin Rysarian Thorshko

repo: StarWarsFoundryVTT/StarWarsFFG


text:
feat: add Docker image support

Added Docker support. Under the hood, the node image builds the project using the Node image and npm build command, then the generated static files are wrapped in an Nginx Server image.
Note: @StarlaneStudios may want to add CD to GitHub workflows and connect this to DockerHub after merging this PR
Total Image Size: ~52mb
Provides availability for #124

Unable to test image (ie incompatible) due to source files having links to generated files not in repo

repo: StarlaneStudios/Surrealist


text:
Including deprecated feature in survey?

I'm out of the loop with the WebVR, so appreciate having it pointed out to me via the survey (and actually really loving that the CSS and JS surveys have this way of sharing awareness about different features of the ecosystem!)
Clicked on the link:
https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API
And it says it is deprecated? Maybe its too late to change to the WebXR page, because survey results are already coming in.

Thanks!

authors: SachaG thomasgwatson

repo: StateOfJS/StateOfJS-homepage


text:
Bot Stops working

Whenever I try to do something I get this error like in this screenshot http://imgur.com/1exVoAi I can't get the bot to work I'm not sure if I'm doing something wrong

What did you do right before this happened?

Well I downloaded it opened it and typed the Steam login info etc no idea what the "sentry File" or  "Log File" do, so I kept those 2 empty here is other screenshot of what I did before I started the bot http://imgur.com/rw4oDq6 No idea how this bot works I didn't really do anything before that happend

You need to set the display name (name others see your bot as). I will add a check there so that it won't exit the program.

i set a display name, yet the same thing happens

@hanandfriends4 please create a new issue and include any relevant information (how you caused it).

repo: Steam-Chat-Bot/SteamChatBot


text:
Reward calculation issue when the same player update in a row

When the same user updates the pixels twice,  the reward doesn't get accumulated.

It seems that this happens also when a user update twice, not just in a row.
For example: Alice updates 2 pixels, Bob updates 2 pixels, Alice updates 2 pixels - reward will be lost.
See here  for a simple test scenario that shows this by printing Dixel's balance.
But if Alice updates, then Bob updates, then Carol updates - then the calculation is ok.
So it doesn't need to be twice in a row.
I'll try looking at it further if you won't fix it by the time I'm able to.

OK, I was too curious and continued to look at it 🙂 I believe the problem is that the code doesn't take into account that for example in this scenario:

Alice updated
Bob updated
Alice updated

Of the reward that was added in the last step, part of it belongs to Alice because of her first deposit. We are neglecting that part when we set the rewardDebt at the end.
To fix, we need to calculate how much reward Alice earned from her new reward - playerEarned :
            uint256 playerEarned;
            // Update acc values before updating contributions so players don't get rewards for their own penalties
            if (totalContribution != 0) { // The first reward will be permanently locked on the contract
                _increaseRewardPerContribution(reward);
                playerEarned = player.contribution * reward / totalContribution;
            }

(Note that at this point player.contribution still doesn't contain the new contribution)
And then substract it from rewardDebt so the user can claim it.
player.rewardDebt = _totalPlayerRewardSoFar(player.contribution) - pendingReward - playerEarned;

Perhaps more testing is needed, but this fixes the issue based on a quick test that I did.

And if you don't want that Alice's second update will reward Alice's contribution from first update, I believe this is the change that is needed:
Update _increaseRewardPerContribution to also take the totalContribution/shares as parameter:
function _increaseRewardPerContribution(uint256 rewardAdded, uint256 totalShares) private {
        unchecked {
            accRewardPerContribution += (1e18 * rewardAdded) / totalShares;
        }
    }

After updating the increase of shares and calculating how much of it belongs to the updating user, we use _increaseRewardPerContribution to add that reward to the rest of the users:
            uint256 userEarned;
            // Update acc values before updating contributions so players don't get rewards for their own penalties
            if (totalContribution != 0) { // The first reward will be permanently locked on the contract
                _increaseRewardPerContribution(reward, totalContribution);
                userEarned = player.contribution * reward / totalContribution;
                _increaseRewardPerContribution(userEarned, totalContribution-player.contribution);
            }

And we keep rewardDebt the same - so it already takes userEarned into account and the user can't claim it.
player.rewardDebt = _totalPlayerRewardSoFar(player.contribution) - pendingReward;

Oh Alice's second update should reward Alice's first update. I just tried to prevent rewarding from the current update.
For example,

Alice creates 10 reward at the beginning -> No one is prior to Alice, so reward is just locked on the contract forever
Alice creates another 20 reward -> Alice gets the 20 reward from her first update
Bob creates another 40 reward -> Alice gets all 40 because Bob shouldn't be rewarded by his own contribution
Bob creates another 30 reward -> So far, Alice contribution: 2 / Bob contribution: 1 -> Alice gets 20 / Bob gets 10
Carol creates 40 reward -> Alice contribution: 2 / Bob contribution: 2 -> Alice gets 20 / Bob gets 20

Assumption: All event increases the player's contribution by 1 (1 pixel update)

Alright, cool. So this first fix that I suggested will fix it.
I have created test script for the scenario you just described.
See here. Seems to be working with the fix. You can add the test to Dixel.test.js.
[Note: there's some repetition in the test, maybe you'd like to extract some of it to a different function to remove the repetition.
I tried to do it but honestly I haven't used JS in a while, so so far I didn't manage to get the right scoping to be able to access all the variables.
Anyway this way is not a disaster and you can see what's happening.]

Thank you so much for your help on this issue @assafom 👍🏻
It looks fine now, but please let me know if there's more edge cases you can think of.

authors: assafom sydneyitguy

repo: Steemhunt/dixel-contract


text:
🛑 MoinestiFM Listen is down

In 7abe96e, MoinestiFM Listen (https://listen.moinestifm.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MoinestiFM Listen is back up in 0bf9323 after 4 minutes.

repo: StefCoders/status


text:
InvalidCastException: 'Unable to cast object of type 'Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.SourceChangeAddActionSymbol' to type 'Microsoft.Dynamics.Nav.CodeAnalysis.IActionSymbol'.'

Found an issue related with https://github.com/StefanMaron/BusinessCentral.LinterCop/issues/587, where the code below throws and exception.
pageextension 50010 "Delivery Specifications" extends "Delivery Specifications"
{
    actions
    {
        addlast(Promoted)
        {
            group(Labels)
            {
                ShowAs = SplitButton;
            }
        }
    }
}

An exception of type 'System.InvalidCastException' occurred in BusinessCentral.LinterCop.dll but was not handled in user code: 'Unable to cast object of type 'Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.SourceChangeAddActionSymbol' to type 'Microsoft.Dynamics.Nav.CodeAnalysis.IActionSymbol'.'
   at BusinessCentral.LinterCop.Design.Rule0016CheckForMissingCaptions.CheckForMissingCaptions(SymbolAnalysisContext context) in C:\Users\arthur.vandevondervo\repo\BusinessCentral.LinterCop\Design\Rule0016CheckForMissingCaptions.cs:line 98
   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass50_2.<ExecuteSymbolActionsCore>b__0()
   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info)```

This should now be resolved in the release version of v0.30.25 of the LinterCop.


text:
Just some missing names for Spring and Steel blocks on 1.21.4

Yes, the lava spring is the same sort of thing.
Yes, it's possible that it's a compat issue, but I don't think it's very likely.

oh sry new version is published on modrinth and curseforge(available in 5-10 min)

repo: Stein-N/Resource-Cracker


text:
Confusing

Describe the bug
https://api.naturalproducts.net/ redirect to https://steinbeck-lab.github.io/cheminformatics-python-microservice/? is very confusing that the documentation for the service is not on the service itself but instead on a different website.
This documentation should also be a part of the web service.
GitHub pages custom domain configuration will allow us to host docs on
https://docs.api.naturalproducts.net
More: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site

Duplicate #327


text:
Try disk offloading for models

Description:

Problem:
The current implementation deletes all the variables

Solution:
Try offloading the model to disk: https://huggingface.co/docs/accelerate/en/package_reference/big_modeling#accelerate.disk_offload

Prerequisites:
[List any requirements or dependencies needed before starting.]

Tasks:

Task 1
Task 2
Task 3
etc.

Additional context
Add any other context or screenshots about the feature request here.

Alternatively, we could try using .to('cpu')to offload to RAM. This might require a lot of RAM, however

@TimKoornstra Still need to use torch.cuda.empty_cache() but definitely has better performance than the current implementation.
self.model.to("cuda")
        output = self.pipe(self.messages + [final_message], **self.generation_args)
        response = output[0]["generated_text"]
        logger.debug(f"Generated cue: {response}")
        self.model.to("cpu")
        # Clear vram
        torch.cuda.empty_cache()
        import time

        time.sleep(5)
        return response

Because this increases RAM we should keep the current implementation for deletion (and make it part of the class) and also add the new implementation as config option

authors: StephanAkkerman TimKoornstra

repo: StephanAkkerman/FluentAI


text:
Bug in definition file

Hi
There is a bug in definition file deye_sg04lp3.yaml

name: "Total Energy Bought"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.1
rule: 1
registers: [0x020A,0x020B]
icon: 'mdi:transmission-tower-export'
`

Rule should be 3.

I changed it to rule 3 and restarted HA.
Total energy bought is still showing me the same different value as with rule 1 compared to the Solarman App.

authors: PV-Joe markodraca


text:
🛑 DNS (he.net) is down

In cc9fb05, DNS (he.net) ($HE_NS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS (he.net) is back up in 5da542f.

repo: Sternwarte-St-Ottilien-e-V/status


text:
🛑 DNS (he.net) is down

In 1b83da3, DNS (he.net) ($HE_NS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS (he.net) is back up in efb5007.


text:
🛑 DNS (he.net) is down

In 1042107, DNS (he.net) ($HE_NS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS (he.net) is back up in 9eb658d.


text:
🛑 DNS (he.net) is down

In 1a1afc2, DNS (he.net) ($HE_NS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS (he.net) is back up in e232d44.


text:
🛑 DNS (he.net) is down

In 4ab9de3, DNS (he.net) ($HE_NS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS (he.net) is back up in ee14551.


text:
🛑 DNS (he.net) is down

In ccbc597, DNS (he.net) ($HE_NS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS (he.net) is back up in 9b9475e.