TiFlash存算分离写节点高可用问题

TiDB 版本：v7.5.0
我在测试存算分离架构的TiFlash遇到以下问题：

相关知识点：https://docs.pingcap.com/zh/tidb/stable/tiflash-disaggregated-and-s3
两个写节点
表副本数是两个
当我的一台写节点故障时，表不可访问：
ERROR 1105 (HY000): other error for mpp stream: Code: 0, e.displayText() = DB::Exception: EstablishDisaggTask Failed14: failed to connect to all addresses, e.what() = DB::Exception,
查看表的region的分布时，可以看到所有的region都有副本在存活的写节点上

遇到这个问题，应该如何快速修复，本来原来的架构的tiflash,是可以高可用的，那这个架构是不是存在单点故障了

Hi, this error is raised while we are reading, in which case, TiDB will communicate with TiFlash Compute nodes rather than TiFlash Write nodes, according to the given document.
So, above all, do you have configured any compute nodes? And if so, could you check if they are accessible from TiDB?

计算节点配置了3个，是正常的。如果将写节点重新启动，查询可以正常进行。过程中tikv也是正常的。
I have configured 3 compute nodes, and they are functioning properly. If I restart the write node, the queries can proceed normally. TiKV is also functioning normally during this process.

We suspect that the CN node failed to refresh its "available wn list" just in time. This could be some problem and we will have it looked into.
IMO, restarting CN nodes, or switching to using 1 replica may help, in these cases.
Meanwhile, could you tell me which of the two wn nodes have you restarted? Or you restarted all wn nodes?

我的操作步骤是：
第一步：tiup cluster stop xxx ---停止其中一个写节点
此时所有的查询不可用
第二步：将表的两副本改为1副本
此时可以看到表TIKV_REGION_STATUS还是存在不可用副本
此时查询表，依然不可用
第三步：重启可用的写节点
此时查询不可用
第四步：启动第一步关闭的写节点
此时查询可用
高可用还是失败了，是不是需要我所有的表都设置成两副本才行吗

IMO, it could be a bug of TiFlash. Could you provide us some logs of TiFlash that we can look into?
/cc @JaySon-Huang

It is found that there are logs that complain about access denied from AWS. I think may be we have to check if some logs in topology.toml is correct.
Please check if the following config item is correctly set.
    config:
      storage.s3.bucket:
      storage.s3.root:
      storage.s3.endpoint:
      storage.s3.access_key_id:
      storage.s3.secret_access_key:
    learner_config:
      dfs.prefix:
      dfs.s3-endpoint:
      dfs.s3-key-id:
      dfs.s3-secret-key:
      dfs.s3-bucket:
      dfs.s3-region:


Pass the PDFJS.postMessageTransfer parameter to the worker, so that the MessageHandler can be setup correctly in createDocumentHandler (issue 6957)

This regressed in commit https://github.com/mozilla/pdf.js/pull/6571/commits/acdd49f48097ffcb27332673a8b51cd653f6de88, i.e. PR #6571.
Fixes #6957.

My machine with ie10 is having issues. Can anyone else verify? @timvandermeij

I can confirm that this fixes the issue for IE10 on Windows 8.

@brendandahl I only use Arch Linux now and no longer use Windows (and have no VM for it), so unfortunately I cannot test this. However, given that @jslatts confirmed that this fixes the issue and the patch makes sense, I think we can be relatively sure that this works.

/botio test


Packaging Request: Ryzen Controller

Project description
Unlock the true performance of your Ryzen Mobile Processor. For Series 2xxx, 3xxx, 4xxx and 5xxx. Gui for RyzenAdj.
Relates to #125689
Metadata

homepage URL: https://www.ryzencontroller.com/
source URL: https://gitlab.com/ryzen-controller-team/ryzen-controller.git
license: cc0
platforms: linux

The guy who maintained this project has deprecated it and recommends a different software instead. Is this issue still relevant?

The guy who maintained this project has deprecated it and recommends a different software instead. Is this issue still relevant?

The issue is that the software they recommend is Windows only (Universal x86 Tuning Utility).


Monitor drive connectivity

Describe the solution you'd like
Is it possible to monitor to when drives disconnect/reconnect?
By checking all the drives that are connected periodically?
Additional context
I have a USB HDD and I want to know when it's disconnected and then reconnected but I haven't found a way to do this so that I can run an automation in home assistant on each event. The issue is right now it appears it checks filesystems and the filesystem would remain mounted even if the drive is disconnected and therefore the drive still shows up in the mqtt reports from this component, it doesn't get removed until it's unmounted.

I never thought of external drives, so I programmed it to send the discovery info when the service starts.
I will keep this feature in mind for a future release.

The information about the connected devices is sent to the mqtt broker, so if you want you can create an automation that checks if your disk exists in the json. If it doesn't exists, it means that it is disconnected.
Currently I can't help you more, but I am sure that if you ask the home assistant community you can find all the information you need to create this automation.
Once I find the time, I will try to implement it, so that's easier for everyone.

This is the topic it is sent:
//monitor_controls/disk/usage
The json looks like this:
{
   "dev_sda4":{
      "total":109222.3,
      "used":62851.2,
      "free":40777.8,
      "percent":60.7
   },
   "dev_sda1":{
      "total":96.0,
      "used":35.0,
      "free":61.0,
      "percent":36.4
   }
}

If I disconnect/unmount the dev/sda4 it will send this:
{
   "dev_sda1":{
      "total":96.0,
      "used":35.0,
      "free":61.0,
      "percent":36.4
   }
}

Hope this helps for now.

Another solution you could do is create an automation that sends a bash command and watches for the result under the topic <prefix>/<clientid>/command_result/bash/bash_command.

I've made some changes and now it should show if the disk is connected or not.
You'll have to install LNXlink as a developer to test it.
I haven't tested it yet.

I've tested it and there is an issue with the disconnection of drives on home assistant logs, but it won't affect the frontend.


Racy file write

https://github.com/ViliamVadocz/tak/blob/c3f0fe9a326979309b4cf3cdb3308d9d44101703/playtak/src/main.rs#L90-L93
These lines are not guaranteed to run -- once the main thread ends, all background threads are eligible to be killed immediately.

The write now happens in a synchronous thread. Is this still an issue? Please confirm and close if not.

This was and still is on a synchronous background thread. You should .join() that thread to make sure it terminates before the main thread.


Console error

when i was trying to access the server from the website https://web-desktop.app/ that i had started up (which i used goormide to host) gave me this error and a white screen:
websocket.js:124 Mixed Content: The page at 'https://www.web-desktop.app/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://https/socket.io/?EIO=3&transport=websocket'. This request has been blocked; this endpoint must be available over WSS.
h.doOpen @ websocket.js:124
I was using the development server btw. plz help

'ws://https/socket.io/?EIO=3&transport=websocket' seems like a broken URL, I assume your server was running on localhost:5000, did you leave the server host at localhost and port at port 5000?

no it isn't running at localhost but the port is set to 5000

ok, working on a fix now

@crispyi2 FIXED, you can now access your server from http.web-desktop.run , the new web-desktop-environment site url

ok


Added breakpoint classes for margin and padding spacing

Currently spacing classes (padding and margin) can only be applied without breakpoints. It's currently not possible to add spacing only at certain breakpoints (xl, lg, md, sm, xs), I added the breakpoints wrapper function so it becomes possible.
It's now possible to use
{spacing-type}-{side}-{breakpoint}-{size} (i.e. m-t-xs-2)

for this! I always had to write a bunch of margin-padding queries.

+1

+1

I think it would be better to use media-breakpoint-up instead of media-breakpoint-down to make the margin and padding classes work the same way as the grid classes.
Alternatively, it could work like the hidden classes, with {spacing-type}-{side}-{breakpoint}-{size} specifying a single breakpoint, while {spacing-type}-{side}-{breakpoint}-{size}-up and {spacing-type}-{side}-{breakpoint}-{size}-down specifies a breakpoint and up/down. This would lead to a lot of classes, and would not be the best solution, in my opinion.

This will be handled by #20926 if it lands. Thanks though!


command 'pr.refreshList' not found

Issue Id: 25efb273-306b-abd0-a3cc-82ff8b2c7818Versions - 1.26.0-insider (7/24/2018 5:15:52 AM)Stack Error: command 'pr.refreshList' not found/vs/workbench/services/commands/common/commandService.ts#57:29 (_tryExecuteCommand)/vs/workbench/services/commands/common/commandService.ts#50:33 (onComplete)/vs/base/common/winjs.base.js#1587:0 (then)/vs/workbench/services/commands/common/commandService.ts#50:18 (apply)/vs/workbench/api/electron-browser/mainThreadCommands.ts#79:44 (apply)/vs/workbench/services/extensions/node/rpcProtocol.ts#261:16 (_doInvokeHandler)/vs/workbench/services/extensions/node/rpcProtocol.ts#246:27 (_invokeHandler)/vs/workbench/services/extensions/node/rpcProtocol.ts#192:39 (_receiveRequest)/vs/workbench/services/extensions/node/rpcProtocol.ts#174:9 (_receiveOneMessage)/vs/workbench/services/extensions/node/rpcProtocol.ts#107:65 (onMessage)/vs/workbench/services/extensions/node/rpcProtocol.ts#303:4 (call)/vs/base/common/event.ts#140:15 (fire)/vs/base/parts/ipc/node/ipc.net.ts#104:22 (acceptChunk)/vs/base/parts/ipc/node/ipc.net.ts#133:3    at emitOne (events.js:96:13)    at Socket.emit (

Here is another similar callstack
Error: command 'pr.refreshList' not found/vs/workbench/services/commands/common/commandService.ts#57:29 (_tryExecuteCommand)/vs/workbench/services/commands/common/commandService.ts#50:33 (onComplete)/vs/base/common/winjs.base.js#1587:0 (then)/vs/workbench/services/commands/common/commandService.ts#50:18 (apply)/vs/workbench/api/electron-browser/mainThreadCommands.ts#79:44 (apply)/vs/workbench/services/extensions/node/rpcProtocol.ts#261:16 (_doInvokeHandler)/vs/workbench/services/extensions/node/rpcProtocol.ts#246:27 (_invokeHandler)/vs/workbench/services/extensions/node/rpcProtocol.ts#192:39 (_receiveRequest)/vs/workbench/services/extensions/node/rpcProtocol.ts#174:9 (_receiveOneMessage)/vs/workbench/services/extensions/node/rpcProtocol.ts#107:65 (onMessage)/vs/workbench/services/extensions/node/rpcProtocol.ts#303:4 (call)/vs/base/common/event.ts#140:15 (fire)/vs/base/parts/ipc/node/ipc.net.ts#104:22 (acceptChunk)/vs/base/parts/ipc/node/ipc.net.ts#133:3    at emitOne (events.js:96:13)    at Socket.emit (

This is the Pull Request extension.


Support "JSON pointer" in Cursor.from and cursor.get

Instead of (or in addition to):
var cursor = Cursor.from(data, ['a', 'b'], newData => {
  data = newData;
});

Support:
var cursor = Cursor.from(data, '/a/b', newData => {
  data = newData;
});

See http://tools.ietf.org/html/rfc6901 and https://github.com/manuelstofer/json-pointer as an example.

What about using https://www.npmjs.com/package/lodash.topath (https://lodash.com/docs#toPath)?
It is a tiny dependency and could be used to convert string value to an array path. This convention is already broadly used within lodash, e.g. https://lodash.com/docs#get

This isn't a question of which dependency to take, but rather that this library seeks to remain dependency-less.
Also, performance is a primary concern, and in past performance tests we found this parsing step to be a serious perf regression on getting values.
If it's important to you to use a path notation, then more power to you, it's easy to compose functions together to do just that, but I don't think it's the right trade-off to introduce a performance regression for those who don't need this feature


Discuss and fix the way usage is counted when multiple users share Cloud credentials

Result of the discussion: We should not count the same VM for multiple SlipStream users.

Implementation task: #395


Task - 'Share somewhere' subtitle appears a few seconds after user display name

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to staging.new.expensify.com
Tap + icon > Assign task > Enter title > Next.
Select an assignee.
Select User B that User A has never interacted with.

Expected Result:
'Share somewhere' subtitle appears together with the user display name.
Actual Result:
'Share somewhere' subtitle appears a few seconds after user display name.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/37e2416d-7fad-4cb4-a532-0db5b2693e02
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

@thienlnam is this one not a blocker?

Nope, definitely not a blocker - I've been meaning to find the linked PR but I believe this is also from a new feature we recently added

cc @chiragxarora and @eVoloshchak

Thanks for investigating - yeah I think since you have to assign someone you haven't talked to before this would also be fixed from this internal issue https://github.com/Expensify/Expensify/issues/294203. Going to put this on hold and just address it there

Still on hold

Holding PR is merged, can we see if this is still reproducible / and if not let's close it

@kbecciv can you please try reproducing the behavior to see if it persists?

Hello @johncschuster! Coming back from vacation, let me check if the issue is reproducible in latest build.

Unable to reproduce it on build v1.3.57-5
https://github.com/Expensify/App/assets/93399543/194e14ae-5365-48dc-9bea-0e453063dfad

Awesome, applause report so closing it out now!


Basic Steganography implementation

Basic Steganography implementation with minimum styling
What's implemented

[x]  Encoding the secret message to the image
[x]  Decoding the secret message from the image

@BreadGenie I just tried the app, works good! Looks like the project is almost over already, haha.
The code and structure looks good too. You can merge the PR already if you want. Or do you want to write tests too?
I think you can open an issue for adding tests and someone else can go through your code and write tests after understanding the working.
There are a few other members too, right? Do they plan to work on improving the design or something?
Also, you setup the vercel bot integration with the project right? I'm curious bc I'm not familiar with it.
Great work by the way! Thanks for contributing!

@BreadGenie I just tried the app, works good! Looks like the project is almost over already, haha.
The code and structure looks good too. You can merge the PR already if you want. Or do you want to write tests too?
I think you can open an issue for adding tests and someone else can go through your code and write tests after understanding the working.
There are a few other members too, right? Do they plan to work on improving the design or something?
Also, you setup the vercel bot integration with the project right? I'm curious bc I'm not familiar with it.
Great work by the way! Thanks for contributing!

I'm planning to add tests at a later time. Most probably after the design team have worked on improving the design
You're welcome :3


Multiple destroy operations lead to a state where widgets can not be found anymore

The following snippet removes two tabs which leads to an error message in the log and an inconsistent state.
Via the tabCart.dispose() the tab gets removed on the native side which than throws a selection event because the first tab is now selected. The js part now logs an error message stating:

Error: No native object with cid or type o11

The error message seams to originate from the fact the upcoming invcation: tabPay.dispose() has already unregistered the widget (tabPay/o11) on the js side.
var page = tabris.create("Page", {
  title: "TabFolder",
  topLevel: true
});

var tabFolder = tabris.create("TabFolder", {
  layoutData: {left: 0, top: 0, right: 0, bottom: 0},
  paging: true // enables swiping. To still be able to open the developer console in iOS, swipe from the bottom right.
}).appendTo(page);

var createTab = function(title, image) {
  var tab = tabris.create("Tab", {
    title: title, // converted to upper-case on Android
    image: {src: image, scale: 2}
  }).appendTo(tabFolder);
  tabris.create("TextView", {
    layoutData: {centerX: 0, centerY: 0},
    text: "Content of Tab " + title
  }).appendTo(tab);
  return tab;
};

var tabCart = createTab("Cart", "images/cart.png");
var tabPay = createTab("Pay", "images/card.png");

tabFolder.set("selection", tabPay);

setTimeout(function () {
  tabCart.dispose();
  tabPay.dispose();
}, 5000);

page.open();

tabFolder.on("change:selection", function(widget, tab) {
  console.log(tab.get("title"));
});

Closing has fixed in Tabris.js 2.0


More tests

Coverage increased (+3.7%) to 75.1% when pulling 01f2be67aadca4eec9934e8145eab0e1dc8edb28 on more_test into da0d44c9ce83bee617909f2f36825f67862e26d4 on master.

Coverage increased (+3.7%) to 75.1% when pulling 0a55de4d8c4c61af001e07108133ef6b9665d620 on more_test into da0d44c9ce83bee617909f2f36825f67862e26d4 on master.

Coverage increased (+4.5%) to 75.904% when pulling 06901b2e21a2046eab1184c8f1c5d8307a98caa9 on more_test into da0d44c9ce83bee617909f2f36825f67862e26d4 on master.


Dockerization rebase - don't merge

don't merge

Adding cla: yes label, as the PR author is a googler at the time of this PR was created.


Investigate eslint v9 perf regression

I recently migrated the repo to v9. All the rules seem to work fine and be responsive in-editor, but the time to run pnpm eslint went from ~8 to ~25 seconds on my machine somehow.
Couldn't immediately figure out what was going on. Generally, linting is only run across the whole repo in CI, so I'm willing to keep up the updated config regardless with the hope there must be some misconfigured setting leading to this.

Was able to resolve this by reverting from eslint-plugin-import-x to eslint-plugin-import with @eslint/compat.
It was due to https://github.com/un-ts/eslint-plugin-import-x/issues/113
Thanks @joshuakgoldberg, @bradzacher for the help diagnosing!


Procedures  Suggestion

Hello,
Procedures suggestion is not shown when I add a comment on the copybook statement.

Thanks ,
Giovanni

⚠ REMOVE THIS LINE AND ANY SENSITIVE INFORMATION BELOW! ⚠

Context
Version

Code for IBM i version
2.13.6

Visual Studio Code version
1.95.1

Operating System
darwin_arm64

Active extensions
Code Coverage for IBM i (code-coverage-ibmi): 0.1.7
Code Runner (code-runner): 0.12.2
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Configuration Editing (configuration-editing): 1.0.0
Db2 for IBM i (vscode-db2i): 1.6.1
ESLint (vscode-eslint): 3.0.10
Emmet (emmet): 1.0.0
Extension Authoring (extension-editing): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
GitLens — Git supercharged (gitlens): 15.6.2
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
JSON Language Features (json-language-features): 1.0.0
Jira and Bitbucket (Atlassian Labs) (atlascode): 3.0.10
Live Server (LiveServer): 5.7.9
Makefile Tools (makefile-tools): 0.11.13
Merge Conflict (merge-conflict): 1.0.0
NPM support for VS Code (npm): 1.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Overtype (overtype): 0.5.0
RPGLE (vscode-rpgle): 0.26.12
Render Line Endings (render-crlf): 1.8.1
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
YAML (vscode-yaml): 1.15.0

Not connected 🔌

@HenryMiller Are you able to provide some source code (not a screenshot) so I can recreate this?
Thanks!

Hi ,
I found that it's not working when source code  is not totally free .
I attach source files .
Thank you.
working.txt
not_working.txt
db00030s_h.txt
db00040s_h.txt


Rewrite Route component w/o Object rest

Object rest properties aren't supported in Bublé and require at least one Babel plugin, which affects a project globally. By switching to a simpler Route definition (credit @kristoferbaxter), this lib can be compiled without accessory plugins.
In my projects, I didn't find any issue when props.component was passed along. Tests also pass.
And a nice bonus: this trims 50 bytes from the gzip release 😆 Down to 2207 from 2253.

From Slack conversation, here's an alternative that was suggested.
const Route = props => h(props.component, Object.assign({}, props, { component: void 0 }));

I was wrong about the object assignment issue btw - component would actually be a function, so it'll never get injected as an attribute 🎉
(so that simple implementation can probably work fine!)

Yeah, sorry. That's what was I trying to say above. In all my project instances, the component property never appears as a DOM attribute. Nothin' funky~


Rename ANDROID.assertThat to ANDROID.assertThatAndroid

If I want to use assertj and this library in one class, it would be nice if I could static import everything.  So I would have along the lines of:
assertThatAndroid(textView).hasText("foo")
assertThat(someList).containsExactly("one", "two")

I just find it a little more expression that having to write:
ANDROID.assertThat(textView).hasText("foo")
assertThat(someList).containsExactly("one", "two")

Perhaps I'm being a little pedantic, but I'm wondering if this is a good idea or not?  If so I can issue a pull request, or if it will be annoying as it will be a breaking change for everyone.

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.android.api.Assertions.assertThat;

For some reason my ide wasn't letting me do this with alt + enter but a
manual static import is fine. Thanks.
On Tuesday, 3 February 2015, Jake Wharton<EMAIL_ADDRESS>wrote:

Closed #148 https://github.com/square/assertj-android/issues/148.
—
Reply to this email directly or view it on GitHub
https://github.com/square/assertj-android/issues/148#event-229543153.


Post-merge/push action for optional demo branch/instance

Push a branch to DEMO and it'll be built and deployed.  Not intended for day-to-day use.

Closing temporarily to free up resources.

This is being rolled into the master-merge portion of the GitHub Actions pipeline.  Closing.


Error:: Perception Module: 'LidarMeasurement' object has no attribute 'tofile'

Hey guys, I'm getting this error while using Lidar for 3Dobject detection.
I had to make some minor updates (mainly dependencies) in the code to get to this error.
Could you please check?
Here is the back trace for your reference:
WARNING:root:'LidarMeasurement' object has no attribute 'tofile'
Traceback (most recent call last):
File "exec_standard.py", line 81, in main
done = carla_manager.tick()
File "/home/srajan/carla-sandbox/submodules/lib-avstack-api/avapi/carla/simulator/manager.py", line 88, in tick
done = self.ego.tick(self.t_elapsed, self.frame, self.infrastructure)
File "/home/srajan/carla-sandbox/submodules/lib-avstack-api/avapi/carla/simulator/ego.py", line 298, in tick
ctrl = self.algorithms.tick(
File "/home/srajan/carla-sandbox/submodules/lib-avstack-core/avstack/ego/vehicle.py", line 37, in tick
control = self._tick_modules(
File "/home/srajan/carla-sandbox/submodules/lib-avstack-core/avstack/ego/vehicle.py", line 293, in _tick_modules
dets_3d = self.perception["object_3d"](
File "/home/srajan/carla-sandbox/submodules/lib-avstack-core/avstack/modules/perception/base.py", line 34, in call
detections = self._execute(
File "/home/srajan/carla-sandbox/submodules/lib-avstack-core/avstack/modules/perception/object3d.py", line 95, in execute
result = self.run_mm_inference(
File "/home/srajan/carla-sandbox/submodules/lib-avstack-core/avstack/modules/perception/object3d.py", line 125, in run_mm_inference
data.data.tofile(data_file)
AttributeError: 'LidarMeasurement' object has no attribute 'tofile'

Apologies. I will close this issue here and post it again on -core.


split, Creator - Web design #15

https://images01.nicepagecdn.com/page/45/84/html-template-458479.jpg Design a split, like the above image
Create a file "split,NUM_by(YourName).html" in the modules/split, folder.
Use simple HTML and CSS and JAVASCRIPT to create the split, animation. You can use the interface development https://roynek.com/kwickerhub/WebCraftifyAI/pages/dashboard.html (This project) or you can write the lines of code yourself. You can review and merge your PR yourself. simply follow the guide on accepting a PR at the bottom. It is simple but if you do have any issues with reviewing the PR, you can then reach out to the Admins.
Step by Step Guide on Contributing.
Fork this project(Use the 'fork' button in the top right corner) and Clone your Fork.
git clone https://github.com/YOUR_USERNAME/frontend
Open your code Editor and Create a file "split,NUM_YOUR_NAME.html" in the "modules/split," folder of this project you just cloned. No need to create head, title and body tags, Just Add a div tag with some embedded style(i.e use the style tag) and the script tag where necessary.
If you want to add an image resource, please add it in the folder ••
"modules/split,/images_and_icons"
We recommend you use an svg for your image/icon.
Push your Code: You need to push your recent changes back to the cloud. Use the command below in the main directory of this Repository
git push origin dev
or use a GUI tool to avoid mistakes or complexity. LOL.
Then make you Pull Request...
Below is a example of the code structure we need:
<div>
    <!---YOUR CODE---->
</div>

<style>
    /* YOUR STYLE */
</style>

<script>
    // YOUR SCRIPT if any
</script>

The goal of this issue is to create modules that other people/dev/designers can use or easily import into their projects. Avoid the desire to style all elements in the page by using codes like:
<style>

*{

}
/* OR */

div, a, h1, pre{

}

</style>

use classes or id to style the elements to avoid a collision of styles.
Remember to make your module usable across different screens(Make your design responsive).
For more examples:
modules->buttons
modules->cards
for examples of contributions or Pull request accepted in to the project.
And please do not wait for this issue to be assigned to you as we have limited hands but have a lot to do/cover. Please send in your PR.
Accepting Pull Request
This Issue has the auto-review so you can review and merge your code yourself. when you have made your PR, click this link: https://roynek.com/alltrenders/codes/theWorld.php?post_id=181 and then follow the few steps outlined to get your PR merged..
If this project looks promising or interesting to you, you can use the watch button or the star button above to keep an eye out for new developments.
Good-luck and thank you.

can i work on this issue??

yea sure 👍
On Tue, Jan 9, 2024, 09:58 Abhishek Shivale @.***>
wrote:

can i work on this issue??
—
Reply to this email directly, view it on GitHub
https://github.com/KwickerHub/WebCraftifyAI/issues/1356#issuecomment-1882650764,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOKWIBOMHFU4PZNMQIOI453YNUBD5AVCNFSM6AAAAABBSECFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSGY2TANZWGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Wrong values in tensors for JAX function executed in C++ as xla::HloModule

I am following the guide published at https://github.com/google/jax/issues/5337 to run a JAX program in C++.
The published example (https://github.com/google/jax/tree/main/examples/jax_cpp) works as expected, but if in the exported function I define a new tensor whose size exceeds 10, then I get gibberish numbers.
I have added to prog.py the following test functions.
def return_10_almost_zeros(x, y):
    z = jnp.array([0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
    return z

def return_11_zeros(x, y):
    z = jnp.array([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
    return z

def return_11_ones(x, y):
    z = jnp.array([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
    return z

def return_11_almost_zeros(x, y):
    z = jnp.array([0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
    return z

The functions takes 2 unused arguments just to reduce the number of modifications needed in main.cc, but they can be defined with no arguments and the results are the same.
The JAX functions are exported using the prescribed command
python3 jax/tools/jax_to_hlo.py \
   --fn examples.jax_cpp.prog.return_11_almost_zeros \
   --input_shapes '[("x", "f32[2,2]"), ("y", "f32[2,2]")]' \
   --hlo_text_dest /tmp/fn_hlo.txt \
   --hlo_proto_dest /tmp/fn_hlo.pb

and then main.cc is compiled and executed using bazel run -c opt examples/jax_cpp:main.
The outputs are
// Exported return_10_almost_zeros
result = (
    f32[10] {0, 1, 0, 0, 0, 0, 0, 0, 0, 0}
)

// Exported return_11_zeros
result = (
    f32[11] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
)

// Exported return_11_ones
result = (
    f32[11] {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
)

// Exported return_11_almost_zeros
result = (
    f32[11] {0, 1.4013e-45, 2.8026e-45, 4.2039e-45, 5.60519e-45, 7.00649e-45, 8.40779e-45, 9.80909e-45, 1.12104e-44, 1.26117e-44, 1.4013e-44}
)

As you can see from the outputs, the creation of a non-constant tensor with 11 elements generates a tensor of linearly increasing numbers equivalent to 1.4013e-45 * jnp.arange(11). The output tensor of return_11_almost_zeros is the same regardless of the tensor z defined.
@zhangqiaorjc maybe you can explain me what is happening here since you wrote the example.

The export of return_11_almost_zeros  generates the textual IR
ENTRY main.5 {
  Arg_0.1 = f32[2,2]{1,0} parameter(0)
  Arg_1.2 = f32[2,2]{1,0} parameter(1)
  constant.3 = f32[11]{0} constant({...})
  ROOT tuple.4 = (f32[11]{0}) tuple(constant.3)
}

so it's clear that the program cannot know the values in constant.3.
Reading the source code of https://github.com/google/jax/blob/main/examples/jax_cpp/main.cc I discovered that the textual representation is there only for debug purposes, so I tried the binary pb output and the results are the expected ones.
Therefore, I suppose the HLO textual representation should never be used in production environment.

This is mostly about the code that generates the HLO. By default, the textual representation of HLO elides large constants. It can be changed not to do that: it's an option when printing the HLO as a string.
I'm not sure whether that's appropriate in this particular case or not: here the option is explicitly labeled as debug output. But perhaps it would be less confusing if it didn't elide constants. What do you think?


Add external module

[ ] Additional function parameters, change functionality or change defaults?
[ ] New estimator in cr.tl.estimators?
[ ] New kernel in cr.tl.kernels?
[ ] New gene trend model in cr.ul.models?
[ ] New plotting function in cr.pl?
[x] Other?

Add external module for kernels

closed via #522


DOSBox stops playing T-Rex - Amigaphile while chatterino is focused

Describe your issue
DOSBox loses audio when chatterino is in focus (in my particular case, when playing T-Rex - Amigaphile. This does not happen with any other program I have open
Animation in DOSBox continues as usual in background, but audio gets muted
Screenshots
https://user-images.githubusercontent.com/3091645/126564771-f3497f6d-e481-455e-b319-0b90db3bdccc.mp4
OS and Chatterino Version
Win10 20H2 19042.1052
Chatterino Nightly 2.3.2 (commit f9ddd5303, )

Not worth fixing :)


Diagnostic plots: Allow for custom names different from the dictionary keys

As far as I can see, currently all diagnostic functions that rely on the preprocess() function (e.g., plot_recovery, plot_sbc_ecdf) do not allow for custom variable_names (e.g., I may want to use r"$\alpha$" instead of alpha as the plot title).
This is caused by preprocess using the dicts_to_arrays function, in which names is used for filtering (relevant snippet of dicts_to_arrays):
# Use user-provided names instead of inferred ones
names = list(post_variables.keys()) if names is None else names

post_variables = np.concatenate([v for k, v in post_variables.items() if k in names], axis=-1)
prior_variables = np.concatenate([v for k, v in prior_variables.items() if k in names], axis=-1)

Thus, passing custom variable_names leads to excluding the desired parameter instead of renaming it.
I suggest that we clearly distinguish between the uses of names for filtering and naming. For example, we could have two arguments (names up for discussion) in the diagnostic plot functions:

filter_dict_keys: Optional argument that can be used to filter the dict keys, such as how  variable_names is used at the moment.
variable_names: Optional argument that can be used to pass custom parameter names for the plots (similar to param_names in BF1). I guess using a dict that assigns each key a custom name would be the safest option here to avoid mismatches due to filtering etc. I also like param_names from BF1 but I suppose this was changed to variable_names to be more generalizable?

Related to #235 @jerrymhuang.

I like your suggestions! and I agree that variable_names is better than param_names for BF2.

Btw, this is somewhat critical, as we already have multiple use cases.

Okay, adding it to the BF 2.0 milestone then.


feat: add email in feedback widget

Try out this version of Leather — Extension build, Test report

I believe there is no much sense in most of feedback messages without getting back to user and help with problems

I know it might seem like a good idea to collect as much info as possible, but like Werner says, people will expect us to get back to them.
This isn't a support tool and we don't want to blur the lines. Working on a feedback tool in the past, people using it for support was a common problem, normally resolved by a msg pointing user that need support towards our actual tool.
Let add a message instead to the effect of "If you need support, go here instead"?

I approved this but I should have checked if there was an issue for it. Was there an original issue to do this?

@kyranjamie @314159265359879 there are already some feedback messages containing user's email, as I understand we don't answer them?

Let add a message instead to the effect of "If you need support, go here instead"?

yeah, such message may help, though imo the less steps user needs to send feedback/get help, the better, especially when you work with money. I believe it's crucial thing for the project. at the same time I agree with @314159265359879 that we need to use only one tool. maybe existing one has feedback widget?

Thanks for taking this initiative @alter-eggo! I agree with the sentiment that users need fewer steps to get support, and I also agree with others here that we need to provide users with that in a way that flows into our support team's process effectively. I've created a new project for us to explore the best solution here before moving forward with any particular issue or pull request.

close this pr for now


prettier toolchain causing unexpected errors

https://github.com/flowtype/flow-typed/pull/1143 is causing a lot of headache when working with definitions. Everything seems to work fine after committing. Then, under the scenes, the files are rewritten in ways that cause errors. Specifically troublesome for tests that have // $ExpectError on lines that then get word wrapped.

Prettier should probably be added to the linter and then for people with linters installed in their editor/IDE files can be fixed as you save and not after the fact when you're trying to commit.  This makes prettier a better DX IMO.

Ah, I see that it is run through eslint in the cli package but done via lint-staged' section in the definitions` package.

According to eslint-plugin-prettier docs:

This plugin works best if you disable all other ESLint rules relating to code formatting, and only enable rules that detect patterns in the AST. (If another active ESLint rule disagrees with prettier about how code should be formatted, it will be impossible to avoid lint errors.) You can use eslint-config-prettier to disable all formatting-related ESLint rules.

If your desired formatting does not match the prettier output, you should use a different tool such as prettier-eslint instead.

Part of the problem is that you're not using eslint-config-prettier.

To make matters worse, the prettier config inlined in .eslintrc an .prettierrc differ in bracketSpacing and trailingComma settings.


ARROW-13174: [C++][Compute] Add strftime kernel

This is to resolve ARROW-13174.

@westonpace strftime kernel is almost ready for review.
I do need to take care of the string encoding.

Thanks for the changes. This looks good. I'm afraid I don't know the differences between date.h and the system equivalents. By system equivalents do you mean ctime? In that case does strftime support time zones?

I meant like cpp or linux strftimes. It seems they support timezones but one still needs to go from UTC to local time etc.

Since we already have the vendored lib in I suppose it comes down to readability, simplicity, and performance. What you have here seems plenty readable and simple. We can always benchmark the two approaches later.

Fully agreed. Without benchmarking alternatives it's a moot discussion anyway. I just wanted to check if I missed something obvious.

@jorisvandenbossche Could you take a look if this PR makes sense?
@thisisnic this should unblock ARROW-13133. Does the R wrapper look ok? Note that StrftimeOptions() returns by default StrftimeOptions("%Y-%m-%dT%H:%M:%S%z", "UTC").

@thisisnic this should unblock ARROW-13133. Does the R wrapper look ok? Note that StrftimeOptions() returns by default StrftimeOptions("%Y-%m-%dT%H:%M:%S%z", "UTC").

LGTM.
Naive question: how does strftime return the correct local-specific time when using the format that outputs days of week? I see that in the base R implementation of strftime, it's not a parameter that's passed in; is this something that here is detected by the vendored date libraries that we're using?

Naive question: how does strftime return the correct local-specific time when using the format that outputs days of week? I see that in the base R implementation of strftime, it's not a parameter that's passed in; is this something that here is detected by the vendored date libraries that we're using?

Good question! I've tried adding a locale parameter to StrftimeOptions to be able to choose locale but locale instantiation was slightly different for different OS-es so I've opted to take it out of scope. I've not properly tested but I believe you will currently get the result in your systems locale.
I would like to add the locale parameter to this but it might be good to tackle it in a separate PR. I'm open to adding it here too though.

Naive question: how does strftime return the correct local-specific time when using the format that outputs days of week? I see that in the base R implementation of strftime, it's not a parameter that's passed in; is this something that here is detected by the vendored date libraries that we're using?

Good question! I've tried adding a locale parameter to StrftimeOptions to be able to choose locale but locale instantiation was slightly different for different OS-es so I've opted to take it out of scope. I've not properly tested but I believe you will currently get the result in your systems locale.
I would like to add the locale parameter to this but it might be good to tackle it in a separate PR. I'm open to adding it here too though.

Thanks, that's useful to know!
I don't think anyone is planning on doing ARROW-13133 ahead of the upcoming release, so no great urgency to do it in this PR, as long as there's a ticket created for implementing it.

@jorisvandenbossche Thanks for the review! Removing options.timezone simplifies things a lot. I think now the main thing left open is the %S style question

I've added a locale parameter to enable things like printing weekday and month names in a specific languages.

It appears that some change about locale breaks things on gcc 4.8, as revealed by the R centos7 job: https://github.com/apache/arrow/pull/10647/checks?check_run_id=3162539131#step:9:584

Huh, I completely missed that message. Seems related to this. Changed the instantiation, let's see what happens.

Looks like a DuckDB issue (ARROW-13453) now.

Builds are green now so I'm good with this (though to be clear I did not review the C++ changes)

In my mind there was also the open question of the Python style %S.%f vs c++ style %S. @jorisvandenbossche

@rok Is this ready for review again?

@rok Is this ready for review again?

Sorry I still need to refactor MakeStrftime. I'll try to do it tonight.

@pitrou I refactored to have two kernel generators now - MakeTemporal and MakeSimpleUnaryTemporal. Could you please review if this is dry enough now?

@rok Please tell me when this is ready for review.

@pitrou I rebased on ARROW-12980 and I think it's ready for review.
I've also included a comment @nealrichardson requested.

Also I'm noticing we're doing this a lot:
const time_zone* tz;
try {
  tz = locate_zone(timezone);
} catch (const std::runtime_error& ex) {
  return Status::Invalid(ex.what());
}

Can we do something like:
Status LocateZone(std::string timezone, const time_zone* tz) {
  try {
    tz = locate_zone(timezone);
  } catch (const std::runtime_error& ex) {
    return Status::Invalid(ex.what());
  }
  return Status::OK();
}

const time_zone* tz;
RETURN_NOT_OK(LocateZone(timezone, tz));

Yes, you can. Make it return a Result<const time_zone*>

Yes, you can. Make it return a Result<const time_zone*>

@pitrou Done. Please review.

Will merge if green.

Nice! Thanks @westonpace @jorisvandenbossche @pitrou

Sorry for the slow response here, but I think there are still a few behavioural aspects to fix/clarify:

Related to @westonpace's comment above (https://github.com/apache/arrow/pull/10647#discussion_r668364905), you added a "Z" to the default format. However, this is only correct if you have a UTC timezone, and not for any other timezone. For example:>>> ts = pd.to_datetime(["2018-03-10 09:00"]).tz_localize("US/Eastern")
>>> ts
DatetimeIndex(['2018-03-10 09:00:00-05:00'], dtype='datetime64[ns, US/Eastern]', freq=None)
>>> tsa = pa.array(ts)
>>> tsa
<pyarrow.lib.TimestampArray object at 0x7f7350b087c0>
[
  2018-03-10 14:00:00.000000000
]

>>> pc.strftime(tsa)
<pyarrow.lib.StringArray object at 0x7f7350b74a60>
[
  "2018-03-10T09:00:00.000000000Z"
]

So it's correctly showing the timestamp in the timezone's local time, but thus the "Z" indicator for UTC is wrong (the correct UTC time is 14:00, not 09:00).
I think we should only add the "Z" indicator if the timezone is UTC. I am not fully sure what we should then use as default format for non-UTC timezones though: don't show any timezone information, include a numeric offset, or error.
That would also mean that the "default" format string would depend on the input type of the data, which might not be easy / desirable.

I commented about the timezone handling when the initial PR had a keyword for this, but I forgot to reply after you removed that keyword (and support for local timestamps) altogether. But, what's the reasoning for disallowing local timestamps without timezone? I don't think there is any ambiguity in how they would be formatted? (after all, they represent "clock" time, which in the end is kind of a formatted string)

There was some discussion above about the behaviour of %S (https://github.com/apache/arrow/pull/10647#discussion_r670410876), where date.h / C++ handles it differently as Python or R (i.e. we are including the fractional sub-second decimals, and there is no easy way to only show integer seconds apart from casting to timestamp("s") first AFAIK).
Since there are conflicting standards vs language implementations, there is no easy way to solve this. But I think it would be good to at least document this difference (it will be surprising for Python/R users) and how to work-around it.

Thanks for the review @jorisvandenbossche !
I think we need to address these points - I'll open a follow-up JIRA and do some work in a week or so.

Indeed, current situation (Z after non UTC string) is wrong. I think your suggestion (check input timezone and append Z to default format if UTC) would be ok.
I forget what the thought was at the time. But looking at our discussion it might have been a date.h limitation. I'll look into it.
Agreed! We could also look into upstreaming a behavior flag to date.h but I think we'd need stronger motivation.

https://issues.apache.org/jira/browse/ARROW-13684

Follow up PR https://github.com/apache/arrow/pull/10998


Disable aimbot for specific weapon

Add function to disable aimbot for specific weapon. For example: I want to enable aimbot for all weapon, but not for AWP.

That takes a lot of time.

@NexSqaud i've done it yesterday and, yes, you are right

Check "Enabled" on AWP and leave fov set to 0.

For sure! As I immediately did not guess


treat normal version as startswith

Closing because I incorporated the relevant changes in https://github.com/aochagavia/rattler/commit/88c7d10e28fdedbdbdbddb0bb4b30f47a82a392e

👍


Publish Debug Symbols

I am unable to load the debug symbols for MessagePipe using the default NuGet and Microsoft symbol server
* Searching for 'MessagePipe.pdb' on the configured symbol servers........
Loaded '/home/<omitted>/Workspace/Playground/MMPack/MMPack.Client/bin/Debug/net7.0/MessagePipe.dll'. Cannot find or open the PDB file.
* Searching for 'MessagePipe.Interprocess.pdb' on the configured symbol servers...
Loaded '/home/<omitted>/Workspace/Playground/MMPack/MMPack.Client/bin/Debug/net7.0/MessagePipe.Interprocess.dll'. Cannot find or open the PDB file.
Loaded '/home/<omitted>/Workspace/Playground/MMPack/MMPack.Client/bin/Debug/net7.0/MessagePack.dll'. Symbols loaded.
Loaded '/home/<omitted>/Workspace/Playground/MMPack/MMPack.Client/bin/Debug/net7.0/MessagePack.Annotations.dll'. Symbols loaded.

I don't think pdb is usually included, at least not in NuGet.

Nope they aren't. However I think it would be good to set up Source Link so that the code can be stepped through. That way developers who don't understand why their integration with MessagePipe isn't working they can step through MessagePipe as well

I am interested in Source Link and will try it sometime soon.
https://github.com/dotnet/sourcelink


cmd/gb: add -d to enable debug

Fixes #710
Setting an environment variable on windows is hard, so add a more
conventional -d flag to enable debug logging.
The old DEBUG=. trick works as -d defaults to os.Getenv("DEBUG") != ""

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e72b446). Click here to learn what that means.
The diff coverage is 27.77%.

@@            Coverage Diff            @@
##             master     #720   +/-   ##
=========================================
  Coverage          ?   52.54%
=========================================
  Files             ?       42
  Lines             ?     3163
  Branches          ?        0
=========================================
  Hits              ?     1662
  Misses            ?     1357
  Partials          ?      144

Impacted Files
Coverage Δ

test/gotest.go
39.39% <ø> (ø)

cmd/gb/internal/match/match.go
86.48% <ø> (ø)

cmd/gb/testflag.go
97.59% <ø> (ø)

cmd/gb/test.go
5.26% <ø> (ø)

cmd/gb/main.go
8.65% <0%> (ø)

cmd/cmd.go
0% <0%> (ø)

build.go
83.11% <100%> (ø)

test/test.go
72.48% <100%> (ø)

package.go
73.43% <16.66%> (ø)

context.go
72.83% <20%> (ø)

... and 1 more

Continue to review full report at Codecov.

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


Error at the moment to run docker-compose up -d --build site

At the moment to run this command I got this error:
ERROR: Service 'php' failed to build: The command '/bin/sh -c docker-php-ext-install pdo pdo_mysql' returned a non-zero code: 11

Are you using the default docker-compose.yml from the repo, or does it have any changes or additions to it, or any of the included Dockerfiles?
What system/OS are you running on currently, and what is your version of Docker or Docker Desktop?

Are you using the default docker-compose.yml from the repo, or does it have any changes or additions to it, or any of the included Dockerfiles?
What system/OS are you running on currently, and what is your version of Docker or Docker Desktop?

This error seems to be from an issue with the version of Alpine Linux attached to the container you're building from. I'd suggest trying a different version and seeing if that helps.


Debug local iphone results in file is not a database

The following packages are in use:
PackageReference Include="sqlite-net-sqlcipher" Version="1.9.172" />
PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.8" />
PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.8" />
It is a net maui application targetting .net8.
Everything is kept up to date.
Problem is that the app cannot access the database.
The file get installs by using openfile OpenAppPackageFileAsync somewhere
in the initialization section of the app.
It is proven that the file is indeed here and accessible, have even
copied the file via SMB to my File Server to check if it get installed correctly.
The file is a sqllite4 format with encryption.
It is working perfectly on android device, android emulator, ios emulator no
matter which emulated device. it works on the mac itself, too.
Not tried to deploy as a release yet.
But when i try to debug the app on the iphone via hot restart (visual studio 2022 17.10.3)
the file is there but i throws the exception "File is not a database".
I really dont know where to start since i dont know if the problem is
inside your library or praeclarum or where ?
I am stuck do whatever it takes to solve that problem.

@whann0205 You need to disable hot restart under VS iOS Settings. When that feature is enabled it skips the native linking step within Xcode on the paired mac. That results in the application using the built-in SQLite which does not include encryption features.

If i disable hot restart under Xamarin/IOS Settings i can no longer select IOS local devices
and my iphone in order to debug the application.
As i wrote this is the only problem i have. The Simulators all works without
a problem.
As i understand the local debug does not need to have a paired mac.
Is there any other way to instruct VS not to link to the bultin-SQLite?

That helped me in July, again thank you!
Came across that annyoing problem again.
Who should be informed of that problem
dotnet maui,
ios repository,
visual studio bug reporting?

@whann0205 I'm not really sure who it would be best to report this too. While it's not ideal, I believe this is actually working "as intended" given that the hot restart functionality using the local development environment where it is not even possible to link native libraries. Out of curiosity @ericsink, do you think this warrants being reported as a bug somewhere?

i tried to create a release version with visual studio code and there seem to be the
problem again.
Unfortunealy i dont know how to solve that with vs code since there is no setting to
disable hot restart is there?

Ooops -- just noticed the question from @sjlombardo that I failed to see earlier.
But the answer is that I don't know.  I know little (maybe nothing) about hot restart.  :-(

If you look at https://www.zetetic.net/sqlcipher/sqlcipher-for-dotnet/
there it says
"or iOS, it is important to ensure that the linker does not operate on the packaged assemblies. The easiest and recommended way do this is to set the project Linker Behavior to either Link SDK assemblies only or Don't Link. Using Link all assemblies can result in runtime failure. If you use Link all assemblies for the smallest possible executable size, then configure a linker description file to exclude all SQLCipher assemblies from linking. You will also need to call one additional method, SQLitePCL.lib.embedded.Init(), to instruct the linker to properly bundle SQLCipher, i.e."
So these guys are aware of the problem, too. Is that useful for us here too? If so how can i setup these things in vscode?

So is it possible to make an IOS release with VSCode with that library if your database is
encrypted?
I need to create a test version for a customer and that blocks me from
going on, is there anybody who can help me out?


ios android Can work?

I need webp work on ios & android.
how can i make this work?

android is first~

tk~

In unity3d I download and run the scene Test (unity3d 4.6)
DllNotFoundException: libwebp
WebP.Texture2DExt.CreateTexture2DFromWebP (System.Byte[] lData, Boolean lMipmaps, Boolean lLinear, WebP.Error& lError)
WebPTest.Start () (at Assets/Example/Scripts/WebPTest.cs:27)
help~~!!!

i want to use on IOS and android too!

@zynbasil your Exception suggests either the libwebp.dll file is missing or possibly can't be seen by Unity3D for some reason, can you confirm the following:

libwebp.dll is present in 'Plugins/x86'
your Unity3D Editor is not in WebPlayer mode (WebPlayer mode isn't compatible with native code).
you have an active Unity Pro license (native code I don't believe works in the Unity Editor under the Free License, however native code will work on Android and iOS under the Free license, I am currently looking into a solution for this).

android ios can work?

In WebPlayer mode
Assets/Example/Scripts/WebPTest.cs(25,30): error CS0117: System.IO.File' does not contain a definition for ReadAllBytes'
help~~~

Under a Unity3D Free License Android and iOS is supported, however the Unity3D Editor (PC) itself won't be supported.
Under a Unity3D Pro License Android, iOS and PC is supported and the Unity3D Editor (PC) itself will also work.
Please note:
I don't have a OSX machine myself so I have not been able to add support for Unity3D Editor (OSX) as of yet, though this will be coming soon.

Under Unity3D Pro License,  you mean Android IOS PC webp-unity3d will work?
May be you can post a ios project example~ Thank you~ (or android project)
More ReadMe Content please~

That is indeed what I meant, I will have a look into this, but the unity3d project in the unity folder is meant to build straight to android and has done a number of times on my machine.
Unfortunately this project is still underdevelopment and there is still numerous things that need adding. Though I will try to add a more comprehensive readme soon.

Thank You~


Selecting an id only when its visible in UI

Are you requesting a feature or reporting a bug?
Not sure feature or bug
What is the current behavior?
I am creating a test where #menu-toggle id is visible only in mobile mode, but in browser mode it is not visible. I am trying to write a common test which can be used both in web mode and mobile layout mode.
I am trying to check if #menu-toggle is visible. Currently, it shows visible in both the modes. Even though in browser it is not visible in UI.  I did not proceed with that.
Next option I tried is
     if ( menuToggleBar.offsetWidth > 0){
     await t
              .click(menuToggleBar)
     }

The above code does not work as menuToggleBar.offsetWidth returns a promise. How do I achieve the selection of menuToggleBar only when its visible.
What is the expected behavior?
To able to click on menuToggleBar when its visible
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code

Specify your

operating system:
Mac OS 10.12.6
testcafe version:
0.17.0
node.js version:
v6.11.2

const menuToggleBar =  Selector('#menu-toggle');
    const offset = await menuToggleBar.offsetWidth
    if (offset>0){
        await t
            .click(menuToggleBar)
    }

I was incorrectly doing await on Selector()
It works now.

Hi @neelay,
Your solution is ok. Also you can use the visible property:
if (await menuToggleBar.visible)
    await t.click(menuToggleBar);

thank you @AlexanderMoskovkin.
Your solutions is more elegant and it works.


No option to handle form submit

Hey, I really like the little lib, but I had an issue since I wanted to display all field errors if submitting before "done". I solved it using recompose like this. Is this something in the scope of the project, and would you accept if I rewrote it to not depend on recompose?
const withForm = formOptions =>
  compose(
    withState('touchAll', 'setTouchAll', ({ touchAll = false }) => touchAll),
    formHoc(formOptions),
    withProps(({ fields, values, onSubmit = f => f, setTouchAll }) => ({
      handleSubmit(e) {
        e.preventDefault();

        setTouchAll(true);

  const fieldsArray = Object.entries(fields);
  const errors = fieldsArray.map(([_, field]) => field.error).filter(f => f);
  const isValid = errors.length === 0;

  onSubmit({ values, isValid });
      }
    }))
  );

// Usage (I used you example but omitted some code for brevity)

const SimpleForm = ({ fields, handleSubmit }) =>
  <form onSubmit={handleSubmit}>
    <Input label='First name' {...fields.firstName} />
    <Input label='Last name' {...fields.lastName} />
  </Form>

export default withForm({
  fields, validate
})(SimpleForm)

@stoeffel shall I close this?

Am currently exporting a form lib that's very similar this weekend (only now stumbling on this, unfortunately because the npm name of react-form-hoc is taken lol). It has a very slightly different interface but shares a lot in common. Can link if  you'd like.

Hi! Sorry, for the silence. I haven't been working with React for a long time. I'm happy to add people to this repo as a maintainer.

Closing due to inactivity.


fix: Require for all foldable functions to use distinct return

…tnesses
Description
Problem*
Found the issue while working on https://github.com/noir-lang/noir/issues/4608.
Summary*
For this program:
fn main(x: u32, y: pub u32) {
    let new_field = new_field_in_array([x, y, 3]);
    assert(new_field[0] == 25);
}

#[fold]
fn new_field_in_array(mut input: [u32; 3]) -> [u32 ; 3] {
    input[0] = input[0] + 20;
    input
}

We get the following ACIR:
Old ACIR:
func 0
current witness index : 5
private parameters indices : [0]
public parameters indices : [1]
return value indices : []
BLACKBOX::RANGE [(_0, num_bits: 32)] [ ]
BLACKBOX::RANGE [(_1, num_bits: 32)] [ ]
EXPR [ (-1, _2) 3 ]
CALL func 1: PREDICATE = %EXPR [ 1 ]%
inputs: [Witness(0), Witness(1), Witness(2)], outputs: [Witness(3), Witness(4), Witness(5)]
EXPR [ (1, _3) -25 ]

func 1
current witness index : 3
private parameters indices : [0, 1, 2]
public parameters indices : []
return value indices : [1, 2, 3]
BLACKBOX::RANGE [(_0, num_bits: 32)] [ ]
BLACKBOX::RANGE [(_1, num_bits: 32)] [ ]
BLACKBOX::RANGE [(_2, num_bits: 32)] [ ]
EXPR [ (1, _0) (-1, _3) 20 ]
BLACKBOX::RANGE [(_3, num_bits: 32)] [ ]

One can see how simply the next witness (_3 in this case) is being assigned to 20 directly and returned rather than returning it correctly according to the type. The constraint in the main function above will fail as the returned array will be [5, 10, 20] when we want [20, 5, 10]. This re-ordering can be mitigated by requiring all returns from foldable functions to be distinct for which we get the following ACIR:
New ACIR:
The main func is the same.
func 0 (same as above)

func 1
current witness index : 6
private parameters indices : [0, 1, 2]
public parameters indices : []
return value indices : [4, 5, 6]
BLACKBOX::RANGE [(_0, num_bits: 32)] [ ]
BLACKBOX::RANGE [(_1, num_bits: 32)] [ ]
BLACKBOX::RANGE [(_2, num_bits: 32)] [ ]
EXPR [ (1, _0) (-1, _3) 20 ]
BLACKBOX::RANGE [(_3, num_bits: 32)] [ ]
EXPR [ (1, _3) (-1, _4) 0 ]
EXPR [ (1, _1) (-1, _5) 0 ]
EXPR [ (1, _2) (-1, _6) 0 ]

I think just defaulting all return values from foldable functions to be distinct is going to be the least confusing for users (and we have discussed making it the default on main as well). If we want to add the ability for a user to not use distinct on foldable function return values that can come in a follow up.
Additional Context
Documentation*
Check one:

[ ] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

[ ] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Let's merge in #4951 first as it'll simplify this PR a little bit.

@vezenovm do we need this at all after #4951 is merged?

@vezenovm do we need this at all after #4951 is merged?

That PR looks to only touch the main_acir still so this still does what is contained in the PR with making all the ACIRs distinct and the additional test.

We still need this as we need to apply the distinct return witnesses to all circuits, not just the main one.

This should be ready again now that #4951 is merged


Spec definition revision

Hi!
We have seen some inconsistencies in the spec that needs clearing out and some updates to the spec that are not backwards compatible or add things and are updated in the same 2.0.0 version.

$ref not defined in every level it may be defined. Check OAS specs for instance, it’s strictly defined where $ref field can be used and where it can’t, it’s not a free form inclusion to the AST. For example, there can’t be a $ref in an info object. A place where this is completely misleading is in the use of traits. The operation has an array of trait objects, but the field $ref is not there, so it can’t be referenced. It also states that the objects can be present in that array, which makes no sense the traits facet should only have refs. What would be the point of having an inline trait? Not having refs strictly defined (as OAS has) is confusing for the user.
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#file-structure

Default media type in root schema is missing.
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#asyncapi-object
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#default-content-type

ABNF for runtime expressions has an error: header-reference and payload-reference have a dot before the hashtag and the fragment, which makes no sense.
header-reference = "header." ["#" fragment]
payload-reference = "payload." ["#" fragment]
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#runtime-expression

Operation object facet tags has an array of Tag Object and operation trait object facet tags has an instance of Tags Object. They must be the same type.
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#operation-trait-object
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#operation-object

Message object examples facet has a wrong type. It’s an array of Maps, it should be only a Map. Message trait objects have the same problem.
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#message-object
https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#message-trait-object

Bindings: "message" of MQTT server binding is defined in the example but not in schema table
https://github.com/asyncapi/bindings/blob/master/mqtt/README.md#server-binding-object
https://github.com/asyncapi/bindings/blob/master/mqtt/README.md#example

Spec updated in the same branch: Bindings used to be a free-form map, this is no longer the case, what about unknown protocols? We are supporting known protocols and unknown protocols as free form nodes, now unknown protocols are no longer supported.

Spec updated in the same branch: Mercure binding is new and was unsupported.

Hey @BlockLucas! Thanks for your patience. These are very good points that need to be solved. Would you mind opening an issue for each of them so we can address/discuss each one individually?

Since some of you are asking privately about the process, here's the contribution process: https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md. We don't need to discuss everything a lot, some of these issues are clearly bugs in the docs and just need some minimal discussion on how to fix it and the pull request fixing it after the issue is good to go.

Thanks!, ive created a bug for each point, if you want, lets close this one & keep the conversation going on the sub-issues.
Regards!

Awesome! Thanks, @BlockLucas 🙏


[scaleway] Fix the pagination

Pagination was broken in the original PR. The links variable wasn't being updated after loading each new page, so it kept requesting page 2 in an infinite loop. This hotfix resolves that issue.

Codecov Report

Merging #1220 into trunk will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##            trunk    #1220      +/-   ##
==========================================
- Coverage   86.27%   86.26%   -0.01%
==========================================
  Files         351      351
  Lines       67726    67727       +1
  Branches     5972     5972
==========================================
- Hits        58429    58427       -2
- Misses       6858     6860       +2
- Partials     2439     2440       +1

Impacted Files
Coverage Δ

libcloud/compute/drivers/scaleway.py
90.62% <0%> (-0.57%)
:arrow_down:

libcloud/test/compute/test_upcloud.py
90.06% <0%> (-1.33%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks! Merged in trunk. ✨


Apply a random seed when NOT in benchmark mode to have 100% deterministic runs in all samples

These samples lack the check for benchmark.active when applying a random seed, which is done for other samples.
Tested locally, all samples continue to work fine as expected, in either mode.

Thanks for your PR. Very much appreciated!


Feature/add relay example

Codecov Report

Merging #42 (b8525e6) into master (f729241) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #42   +/-   ##
=======================================
  Coverage   62.86%   62.86%
=======================================
  Files          36       36
  Lines        1831     1831
=======================================
  Hits         1151     1151
  Misses        544      544
  Partials      136      136

Flag
Coverage Δ

unittests
62.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


[GHSA-7mj4-2984-955f] AlchemyCMS is vulnerable to stored XSS via the /admin/pictures image field

Updates

Affected products
Description

Comments
This has never been proven. Who approved this? Who verified that this is actually an issue? Why has this been published and by whom?

Hey @tvdeyen
Based on the references I would guess packetstorm are the party that requested the cve
http://packetstormsecurity.com/files/149787/Alchemy-CMS-4.1-Stable-Cross-Site-Scripting.html
The cve itself was assigned by mitre. You can contact them here
https://cve.mitre.org/cve/list_rules_and_guidance/correcting_counting_issues.html
if you'd like to get the CVE rejected

Hey @tvdeyen
Based on the references I would guess packetstorm are the party that requested the cve
http://packetstormsecurity.com/files/149787/Alchemy-CMS-4.1-Stable-Cross-Site-Scripting.html
The cve itself was assigned by mitre. You can contact them here
https://cve.mitre.org/cve/list_rules_and_guidance/correcting_counting_issues.html
if you'd like to get the CVE rejected

@darakian thanks, but I cannot find a way to contact mitre on the link given or anywhere else on their site. Can you please give me a link to a contact form or an email address that I can write to?

@darakian contacted them, asking for rejection. Can we update this entry here as well?

Found it, ignore me :)

All good 😄
So, looks like NVD has it set as disputed rather than rejected. The note NVD has reads as

NOTE: the vendor's position is that this is not a valid report: "The researcher used an authorized cookie to perform the request to a password-protected route. Without that session cookie, the request would have been rejected as unauthorized."

Which I would read as a claim that the user must be authorized, but not that there is no XSS vector here.

👋 This pull request has been marked as stale because it has been open with no activity.  If you do nothing this pull request will be closed eventually by the stale bot. Please see CONTRIBUTING.md for more policy details.


Remove console.warn when langfuse is disabled

Bug description
In the CI we are disabling Langfuse but we see in the logs hundreds of messages like this: "Langfuse is disabled. No observability data will be sent to Langfuse". I understand that if we explicitly disable Langfuse we should not see this warning.
https://github.com/langfuse/langfuse-js/blob/7b3ccbbc480d885104ce5a3d4b229fed5a7e4653/langfuse-core/src/index.ts#L667
How to reproduce

Configure Langfuse with enabled: false.

const langfuse = new Langfuse({
      secretKey: 'secretKey',
      publicKey: 'sdk.langfuse.publicKey',
      baseUrl: 'https://cloud.langfuse.com/',
      enabled: false,
    });

Related sub-libraries

[ ] All of them
[x] langfuse
[ ] langfuse-node

thanks for reporting, I agree that this should result in a single warning and not hundreds
moving to main repo as we centralize bug reports there


"az storage account key list" throws 32-bit Python warning

Describe the bug
I am running Windows 11 with latest version of azure-cli (2.54.0).
 Cryptography will be significantly faster if you switch to using a 64-bit Python.
 Cryptography will be significantly faster if you switch to using a 64-bit Python.
Issue script & Debug output
az storage account keys list --account-name somename --subscription somesub --query "[?keyName=='key1'].{Value:value}" -o tsv
D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\cryptography/hazmat/backends/openssl/backend.py:27: UserWarning: You are using cryptography on a 32-bit Python on a 64-bit Windows Operating System. Cryptography will be significantly faster if you switch to using a 64-bit Python.
Expected behavior
I would expect azure-cli 64-bit to actually use Python 64-bit instead of 32-bit.
Since I am looping over a bunch of Storage Accounts I get this warning every time.
Environment Summary
azure-cli                         2.54.0

core                              2.54.0
telemetry                          1.1.0

Extensions:
account                            0.2.5
aks-preview                      0.5.140
costmanagement                     0.2.1
reservation                        0.3.0
storage-blob-preview               0.7.2
storage-preview                    0.8.4
vm-repair                          0.5.3

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location 'C:\Users\mojo\scoop\apps\azure-cli\current\python.exe'
Extensions directory 'C:\Users\mojo\.azure\cliextensions'

Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:21:31) [MSC v.1936 32 bit (Intel)]

Additional context
I have checked for other Github issues like https://github.com/Azure/azure-cli/issues/27115, but it seems that does not solve the problem when running on my own client.

Thank you for opening this issue, we will look into it.

The

The Python you are using is C:\Users\mojo\scoop\apps\azure-cli\current\python.exe and it is 32-bit:
Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:21:31) [MSC v.1936 32 bit (Intel)]

This is not the official Azure CLI package. Could you let us know how you installed Azure CLI?
Please follow https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows to install the official x64 MSI package and you will see
> az --version
azure-cli                         2.54.0

core                              2.54.0
telemetry                          1.1.0

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\xxx\.azure\cliextensions'

Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]

Hi Jiashuo.
I’m using the Scoop package manager and running:
scoop install main/azure-cli
Not sure why that doesn’t use 64-bit Python.
I guess I will have to uninstall that one and use the msi installer.
Best regards / med venlig hilsen,
Morten

Fra: Jiashuo Li @.>
Sendt: Friday, November 24, 2023 3:27:16 PM
Til: Azure/azure-cli @.>
Cc: Morten Jønby @.>; Manual @.>
Emne: Re: [Azure/azure-cli] "az storage account key list" throws 32-bit Python warning (Issue #27917)
External e-mail.
The Python you are using is C:\Users\mojo\scoop\apps\azure-cli\current\python.exe and it is 32-bit:
Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:21:31) [MSC v.1936 32 bit (Intel)]
This is not the official Azure CLI package. Could you let us know how you installed Azure CLI?
Please follow https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows to install the official x64 MSI package and you will see

az --version
azure-cli                         2.54.0

core                              2.54.0
telemetry                          1.1.0
Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\xxx.azure\cliextensions'
Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/27917#issuecomment-1825750210, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO5M5527YRAF6Z6QDYYU3G3YGCVEJAVCNFSM6AAAAAA7Y43GDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVG42TAMRRGA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

The scoop only contains 32bit CLI https://github.com/ScoopInstaller/Main/blob/dca79710e7691a03ffe97e45fe67f17e18e6a345/bucket/azure-cli.json
Please follow the official installation document.

Thanks @bebound .
I did that and it works. Don't know why the Scoop installer used 32-bit. I find that strange, but that's how it is.


cshape tool usage syntax

If I use the cshape tool without a destination I get
$ cshape doc-src
Usage: cshape [options] src [dst]

cshape: error: Please pass source and destination.

even though the destionation has brackets [dst] to me that means optional?

Never received a response. Closing for now.


update React example

Props should not be mutated from the component itself. Use state for component state.
No need to put key everywhere, it's only for list items.

(index):156 Uncaught TypeError: self.setState is not a function(anonymous function)


Fixed cannot set product url for arabic locale #3551

BUGS:
Issue: https://github.com/bagisto/bagisto/issues/3551
And if you pull this change make sure your value_per_locale key is enabled. Because in the admin portion it is locked so you need to change this value in attribute table.
Here is the SQL,
UPDATE attributesSETvalue_per_locale= '1' WHEREattributes.code = 'url_key';

This is helpful if anyone wants to change their url_key in other locale but currently, no need to implement this in core..so closing this PR.


Unable to switch the input method, Chinese cannot be input en-us OK

✍ Bug Description
Unable to switch the input method, Chinese cannot be input but English can be input
🔁 Steps to reproduce
Any input box doesn't work. I'm not sure if it's a font problem, but my IBUS input method works and the Chinese font library is also installed.
❔ Expected behavior
No response
👀 Screenshots
No response
🛸 Saucer Version
2.3.0
🖥 Operating System
Linux
🖥 Distribution
Ubuntu 22.04
✅ I confirm that...

[X] I have collected all the required information and read all the comments in this document
[X] I searched for an existing bug report for this issue
[X] the problem does occur with the reproduction steps I provided
[X] what I described is indeed a problem

Please provide more information:

Qt Version used, are you using Qt6 or Qt5?
What input method are you using?
How are you testing your input? On some website? If so, which?
Any steps to reproduce?

https://github.com/qutebrowser/qutebrowser/issues/3761 might be related, is there any useful information for your situation?

Qt version used, are you using Qt6 or Qt5? -> QT6
What input method do you use? -> IBUS
How do you test your input? On a website? If so, which one? -> any website
Are there any steps to reproduce? How do you type Chinese characters? What does IBus have to do with this? -> Switch -between Chinese and English

https://github.com/ibus/ibus

qutebrowser/qutebrowser#3761可能相关，有适合您情况的有用信息吗？

I've looked up similar information, but I've tried updating my QT

Most of the problems I have collected are that lower versions of QT will have this problem. I am wondering if I should change to another QT version?
How to see it?

Most of the problems I have collected are that lower versions of QT will have this problem. I am wondering if I should change to another QT version?
How to see it?

Maybe Ibus doesn't work for Qt6, try explicity setting saucers backend to Qt5

Does it not work in Qt Creator as well? If so that's a Qt6 issue or an issue with your input method and not something I can change

https://forum.qt.io/topic/144388/qt6-5-0-and-ibus-ubuntu
I don't think this is anything I can fix, seems to be either an upstream issue or with your system

❯ qmake -v
QMake version 3.1
Using Qt version 5.15.3 in /usr/lib/x86_64-linux-gnu
It seems that QT5 will have similar problems. I will continue to try to change the version or submit a QT ISSUE

Refer to this to solve the problem -> https://forum.suse.org.cn/t/topic/16363


Feature/add dune events to groups

These events should be added before end of audit (no logic changes in this pr )

being added to audit


Coffee extensions not found, disable compilers?

I'm giving another try to wallaby, I could not get it to work the last time:  https://github.com/wallabyjs/wallabify/issues/4
So my wallaby configuration file is:
var wallabify = require('wallabify');
var wallabyPostprocessor = wallabify({
    debug: true,
}, function (b) {
    return b.transform(require('coffeeify'));
});

module.exports = function (w) {
    return {
        files: [{
            pattern: 'static/components/jquery/jquery.js',
            load: false,
            instrumented: false
        }, {
            pattern: 'static/js/apps/stream/models/wallaby*',
            load: false, // will not be loaded
            instrument: true // will not be executed
        }],
        tests: [{
            pattern: 'static/js/apps/stream/models/tests/wallaby.coffee',
            load: false
        }],
        debug: true,
        testFramework: 'mocha',
        compilers: {},
        postprocessor: wallabyPostprocessor,
        setup: function () {
            window.__moduleBundler.loadTests();
        }
    };
};

My test file is:
Wallaby = require('../wallaby.coffee')
Wallaby2 = require('../wallaby2.js')
assert = require('chai').assert

describe('Wallaby', ->
    model = null

    descrIbe('wallaby #hello', ->
        It('should Return Hello', ->
            Assert.equal(wallaby.hello(), 'hello')
        )
    )
    describe('Wallaby2 #hello', ->
        it('should return hello', ->
            assert.equal(Wallaby2.hello(), 'hello')
        )
    )
)

When I don't require a .coffee in my test it works but when I require one I get the following error: wallaby:project Error: Cannot find module '../wallaby.coffee'. This is due to the fact that the compiler is transforming wallaby.coffee to wallaby.js in the instrumented files.
If I remove the extension Wallaby = require('../wallaby') in my test file, it half works but then it does not give me the feedback in my IDE on the wallaby.coffee file...
Is there a way to deactivate the compilers? so it would send the *.coffee to the instrumented files?
Thanks for the help!

First of all, as I have mentioned in the referenced issue, with CoffeeScript, you need to use a CoffeeScript compiler instead of the transform with wallaby.js, because with the transform in the postprocessor, it is too late for wallaby to instrument the resulting JavaScript. There's no way to deactivate the compilers and you don't need to do it.
Wallaby compiler is indeed transforming x.coffee to x.js by default. If you'd like to stop it, you may just pass the noFileRename option to the compiler.
I have created the working sample reproducing your file structure here https://github.com/wallabyjs/wallabify-4.
So your wallaby config may look like
var wallabify = require('wallabify');
var wallabyPostprocessor = wallabify({
  debug: true
});

module.exports = function (w) {
  return {
    files: [{
      pattern: 'static/components/jquery/jquery.js',
      load: false,
      instrumented: false
    }, {
      pattern: 'static/js/apps/stream/models/wallaby*',
      load: false, // will not be loaded
      instrument: true // will not be executed
    }],
    tests: [{
      pattern: 'static/js/apps/stream/models/tests/wallaby.coffee',
      load: false
    }],
    debug: true,
    testFramework: 'mocha',
    compilers: {
      '**/*.coffee': w.compilers.coffeeScript({noFileRename: true})
    },
    postprocessor: wallabyPostprocessor,
    setup: function () {
      window.__moduleBundler.loadTests();
    }
  };
};

Let me know if it works for you.

Perfect this works! Thanks again!!


OBA - Resend failed transactions to blockchain

Dear Sinica,
As promised during our call last Friday I have had a discussion with James regarding the “optimistic approach to anchoring” and audit trail entry requirements:
•	We are required to have an audit trail when the EW user creates the initial request
•	We are required to have an audit trail entry when the actual request is anchored
•	We are required to have a notification to the end user indicating completion
In addition, as discussed we will need to have be logging and monitoring in order to be able to react in a “timely” manner to delays in anchoring


Huge data loss when deploying configuration without restarting systemd service

Versions

Go: go version go1.11.4 linux/amd64
Refinery: 1.7.0-1

Hey folks 👋
We're seeing almost total dropping of traces at the refinery level when we attempt to deploy config files without issuing a restart.
On change to the repository that stores ourrefinery.toml and rules.toml files, we push the new code out to all nodes, replace the config files in /etc/refinery, and issue a systemctl restart refinery. The restart was done out of convenience when we began spiking refinery in order to iterate quickly on rules. We understand that restart is unnecessary in most cases (since the live reload mechanism will pick up most changes to rules) and can cause unintended sampling behaviour as refinery will forward all traces in it's buffer to Honeycomb on shutdown. We are trying to remove this restart call from our deployment lifecycle scripts by changing it to a systemctl start call (which should be a noop if a service is already running) but any time we attempt to do so, the amount of traces making it through to Honeycomb falls almost to zero:
For example, deploying this change:

Resulted in this behaviour:

I've also tried logic to only issue a start in the event that the service is not running, which resulted in the same behaviour:

When we do this, we see the following impact on our refinery metrics. The change was merged at ~18:05 and reverted at ~19:40

Our deployment lifecycle runs two scripts, in order:

 001_install_refinery
#!/usr/bin/env ruby

require 'json'
require 'erb'

MUSTER_APP_NAME = ENV["MUSTER_APP_NAME"]
MUSTER_PROFILE = ENV["MUSTER_PROFILE"]
SLUG_PATH = "/apps/#{MUSTER_APP_NAME}/current"
PROFILE_PATH = File.join(SLUG_PATH, "muster/profiles/#{ENV["MUSTER_CLUSTER_PATH"]}")
REFINERY_VERSION = "1.7.0-1"

def config_vars
  # super secret stuff happens here
end

def install_refinery
  `rpm --quiet -q refinery-#{REFINERY_VERSION}.x86_64 || sudo rpm -i --force "https://s3.amazonaws.com/REDACTED/refinery-#{REFINERY_VERSION}.x86_64.rpm"`
end

def write_config_file
  template = "#{SLUG_PATH}/muster/refinery.toml.erb"

  @refinery_metrics_dataset_key = config_vars["refinery_metrics_dataset_key"]
  @hostname = `ec2-metadata`.match(/local-hostname: ([^\s]+)/)[1]

  renderer = ERB.new(File.read(template))
  File.write("/etc/refinery/refinery.toml", renderer.result)
end

def write_rules_file
  template = "#{SLUG_PATH}/muster/rules.toml.erb"

  renderer = ERB.new(File.read(template))
  File.write("/etc/refinery/rules.toml", renderer.result)
end

install_refinery
write_config_file
write_rules_file

 002_start_refinery
#!/usr/bin/env bash

set -eux

systemctl start refinery.service

The only thing I can think of here is that overwriting the files with File.write might be causing the livereload mechanism to misbehave in some way?
Steps to reproduce

Have an existing refinery process running on a linux host under systemd
Rewrite refinery.toml and rules.toml, either with new configuration or with the exact same configuration as before
Do not run systemctl restart
Refinery drops traces

Deployment logs, showing systemctl status before and after the deploy, note the service has not changed status:
[ec2-user@honeycomb-refinery-production-proxy ~]$ systemctl status refinery
● refinery.service - Refinery Honeycomb Trace-Aware Sampling Proxy
   Loaded: loaded (/usr/lib/systemd/system/refinery.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2022-01-26 18:10:54 UTC; 5min ago
 Main PID: 946227 (refinery)
   CGroup: /system.slice/refinery.service
           └─946227 /usr/bin/refinery -c /etc/refinery/refinery.toml -r /etc/refinery/rules.toml

Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: time="2022-01-26T18:16...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: time="2022-01-26T18:16...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: time="2022-01-26T18:16...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 9, len(evs...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 10, len(ev...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 11, len(ev...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 12, len(ev...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 13, len(ev...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 14, len(ev...
Jan 26 18:16:27 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 15, len(ev...
Hint: Some lines were ellipsized, use -l to show in full.
[ec2-user@honeycomb-refinery-production-proxy ~]$ <deployment initiated>
I, [2022-01-26T18:16:35.133056 #950084]  INFO -- : Running 'MUSTER_APP_NAME=honeycomb-refinery MUSTER_PROFILE=honeycomb-refinery-production-proxy MUSTER_CLUSTER_PATH=production-proxy MUSTER_SHA=a9859ec20a49cbc968e6dbf338055918635293cd RAILS_ENV=production /apps/honeycomb-refinery/current/bin/slugexec /apps/honeycomb-refinery/current/muster/lifecycle/superuser-start/001_install_refinery' ...
I, [2022-01-26T18:16:36.134678 #950084]  INFO -- : Running 'MUSTER_APP_NAME=honeycomb-refinery MUSTER_PROFILE=honeycomb-refinery-production-proxy MUSTER_CLUSTER_PATH=production-proxy MUSTER_SHA=a9859ec20a49cbc968e6dbf338055918635293cd RAILS_ENV=production /apps/honeycomb-refinery/current/bin/slugexec /apps/honeycomb-refinery/current/muster/lifecycle/superuser-start/002_start_refinery' ...
+ systemctl start refinery.service
I, [2022-01-26T18:16:37.136316 #950084]  INFO -- : Deploy successful
I, [2022-01-26T18:16:37.136437 #950084]  INFO -- : Fetching instance tags
[ec2-user@honeycomb-refinery-production-proxy ~]$ systemctl status refinery
● refinery.service - Refinery Honeycomb Trace-Aware Sampling Proxy
   Loaded: loaded (/usr/lib/systemd/system/refinery.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2022-01-26 18:10:54 UTC; 5min ago
 Main PID: 946227 (refinery)
   CGroup: /system.slice/refinery.service
           └─946227 /usr/bin/refinery -c /etc/refinery/refinery.toml -r /etc/refinery/rules.toml

Jan 26 18:16:34 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 26, len(ev...
Jan 26 18:16:34 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 27, len(ev...
Jan 26 18:16:34 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 28, len(ev...
Jan 26 18:16:34 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 29, len(ev...
Jan 26 18:16:35 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: time="2022-01-26T18:16...
Jan 26 18:16:35 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 3, len(evs...
Jan 26 18:16:35 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: time="2022-01-26T18:16...
Jan 26 18:16:35 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 4, len(evs...
Jan 26 18:16:35 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: time="2022-01-26T18:16...
Jan 26 18:16:35 honeycomb-refinery-production-proxy.i-00335b28b8d8afe9e refinery[946227]: incr, eIdx: 196, len(e...

While the deployment was happening, I was monitoring the output of the systemd service with sudo journalctl -f -u refinery. There is no output. The log lines there are from the service running before the deployment was initiated.

I'm curious if this is potentially showing up as https://github.com/honeycombio/helm-charts/issues/101 as well? 🤔

Modifying our deployment script to use cp instead of File.write seems to fix this 😅

Thanks for the update @looneym and I'm glad you were able to resolve your problem.

While we've figured out a way to work around this, the disparity in behaviour between File.write and cp is confusing and very unexpected. Is this an expected behaviour of refinery? If so should it be documented? We lost a lot of time to this.


ERROR: Could not build wheels for flash-attn, which is required to install pyproject.toml-based projects

Hi while trying to work with
https://huggingface.co/LanguageBind/MoE-LLaVA-Qwen-1.8B-4e
i got error:```

It is an network error. Run the command again maybe work. You can also download & offline install the .whl file shown in the screenshot.

It is an network error. Run the command again maybe work. You can also download & offline install the .whl file shown in the screenshot.

Thanks let me check again!!, Thanks

Sorry for that, we updated the new runing command to fix it. Checking out here


Meri good code

I made a new branch called meriGoodCode that has the right code from the html/css-updating branch. It won't let me switch to that branch as it keeps on comparing it to main. This pull requests wants to push the code in meriGoodCode into main ( which has the defective code).


unused import protected from ruff

Feature or Bugfix

Bugfix

Detail
ruff removed unused import from dataall/backend/dataall/core/environment/cdk/pivot_role_stack.py
But it was secretly used in line 31:   classes imported from that file are the subclasses of PivotRoleStatementSet,
they are crucial for right permissions for pivot role.
Relates

Security
Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

Does this PR introduce or modify any input fields or queries - this includes
fetching data from storage outside the application (e.g. a database, an S3 bucket)? N/A
Does this PR introduce any functionality or component that requires authorization? N/A
Are you using or adding any cryptographic features? N/A
Are you introducing any new policies/roles/users? N/A

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

Check:

[ ]  create new Env
[ ] make sure Env has status 'Created' and Stack is displayed in tab