Embed Automate Methods into other Automate Methods

https://bugzilla.redhat.com/show_bug.cgi?id=1418374
With this optional feature we can embed an Automate method into other Automate Methods by specifying them in the input parameter list
e.g.
embed1 => /Shared/Methods/MyMethod1
embed2 => /Shared/Methods/SomeOtherMethod
Before we launch a method we would collect the input parameters and scan for any parameters that start with embed and sort them and load up all the automate methods that they point to and inject them ahead of the method. e.g
We have a Shared Method defined in

Then in another method we can call this method by embedding it via input parameters

If the embedded method cannot be found we would raise an exception
If the embedded method exists in other domains we can fetch the correct ones based on the enabled domains and priorities.
Caveats:
If the embedded methods have other embed methods we won't load them up.

@Fryguy @gmcculloug @tinaafitz
Please review

@mkanoor Cool feature, just thinking - instead of parsing the input names, wouldn't it be more obvious to add a new input type? like "embed", then "embed" would mean it is a string and a pointer to an existing method to be embed.

Kinda curious how this will log e.g. line numbers from the combined sandbox script.
Core functionality seems awesome..

@mkanoor As discussed, I'm not a fan of overloading the input parameters for this purpose.  I might be ok with a different data type, but it still feels like we are abusing parameters for a totally new feature.
Also, as discussed, we will probably have to keep a lookup table of method bodies, their method names, and which line they start, so that you can give proper file/line number feedback in exceptions.

When an error is raised we log the line numbers properly for the embedded methods
/Demo/System/Request/Test1:22:in func3'  /Demo/System/Request/Test1:18:in func2'
/Demo/System/Request/Test1:14:in func1' /Demo/System/Request/Nest1:13:in from_main'
/Demo/System/Request/Nest1:9:in `in_main'

Closed in favor of https://github.com/ManageIQ/manageiq-automation_engine/pull/16


Should refs to figures be deleted, when figure is deleted?

Currently if we delete a figure, we see an error  because the xref is pointing to a non-existent target.
Since figures can be deleted via a regular editor operation we need some kind of post-hook. Ideas?

We have never had a good solution for this.
I agree, probably we want kind of a hook - but which should only be active when recording a transaction, so that it does not get re-triggered when replaying changes.

Will do an iteration on this.

In addition to the inconsistency problem I see an error related to life-cycle of IsolatedComponents.

I thought about this, and come to the conclusion now, that it is not desirable to remove these attributes.
Imagine, cut'n'pasting a figure, should not remove the refs.
Rather than a post-change hook with automatic deletion, I would prefer a means to detect and show such problems within the document.

Good point, so you mean we allow broken references in rid attribute, and mark those nodes as problematic? I wonder how the UI should look like when you click on such an xref which would bring up the select references prompt. Should there be a selected entry saying "fig-1 - does not exist" which need to be explicitly unchecked or is if fine to immediately 'repair' the xref when the prompt is opened?

Good question.
I have the feeling that it is not right to implicitly change the model just by opening a dialog.
Maybe we tell the user that this ref is 'broken', and ask to repair. And only let continue editing the list
when in a valid state?

Yeah that could work.
On Sun, 18 Jun 2017 at 10:58, Oliver Buchtala<EMAIL_ADDRESS>wrote:

Good question.
I have the feeling that it is not right to implicitly change the model
just by opening a dialog.
Maybe we tell the user that this ref is 'broken', and ask to repair. And
only let continue editing the list
when in a valid state?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/substance/texture/issues/141#issuecomment-309265203,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAALcw_2reTdKiFF-DV49J_gU-VOT_TUks5sFOajgaJpZM4N7cbU
.

We agreed that we do not use doc.delete() explicitly, but rely on some type of garbage collection, which needs to be implemented.


[FEATURE] Being able to access arrays in a runtime expression syntax

Is your feature request related to a problem? Please describe.
I'm not able to access an array as a part of a response body in the links section.
Describe the solution you'd like
Something like this should work:
            "links": {
              "someName": {
                "operationId": "getUserById",
                "parameters": {
                  "lookupId": "$response.body[0]"
                }
              }
            }

Describe alternatives you've considered
I haven't found any alternative.
Additional context
This is crucial for stateful testing since JSON response may contain an array.
As an off-topic comment:
Thank you for this amazing tool, I really appreciate your work and find it very useful!

Hi @pycgarcia
Open API uses JSON pointer which does not use the square brackets syntax. See examples in the RFC or in the Swagger docs (they are relevant for Open API 3.0).
Your expression should be $response.body.0

Couldn't make it work with dots, found that this is possible:
                "parameters": {
                  "lookupId": "$response.body#/0/lookupId"
                }

Than you!

You’re welcome:) Oh, yes - I made a mistake :) you’re right


Horizontal scrollbar appears when vertical scrollbar appears

Current Behavior
I created a project using npm create tamagui@latest.
When I create a screen that scrolls vertically on the next.js side as follows, a horizontal scroll bar is always displayed.

Is it possible to prevent horizontal scrolling from occurring?
Expected Behavior
Whenever a screen with vertical scrolling is created, a horizontal scroll bar is displayed.
The problem is occurring on the web side.
Tamagui Version
tamagui 1.39.6

Reproduction
The following is the reproduced code.

https://codesandbox.io/p/sandbox/floral-star-fdr9my

Only one area was changed.

`packages/app/features/home/screen.tsx`

export function HomeScreen() {
  const linkProps = useLink({
    href: '/user/nate',
  })

  return (
    <YStack f={1} jc="center" ai="center" p="$4" space>
-      <YStack space="$4" maw={600}>
+      <YStack space="$4" maw={600} height={'1200px'}>

Welcome to Tamagui.

        <Paragraph ta="center">
          Here's a basic starter to show navigating from one screen to another. This screen uses the
          same code on Next.js and React Native.
        </Paragraph>
        <Separator />
        <Paragraph ta="center">
          Made by{' '}
          <Anchor color="$color12" href="https://twitter.com/natebirdman" target="_blank">
            @natebirdman
          </Anchor>
          ,{' '}
        </Paragraph>
      </YStack>

      <XStack>
        <Button {...linkProps}>Link to user</Button>
      </XStack>

      <SheetDemo />
    </YStack>
  )
}

System Info
System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 2.86 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.2.0 - ~/.nvm/versions/node/v20.2.0/bin/node
    Yarn: 3.5.0 - ~/.nvm/versions/node/v20.2.0/bin/yarn
    npm: 9.6.6 - ~/.nvm/versions/node/v20.2.0/bin/npm
  Browsers:
    Chrome: 114.0.5735.198
    Safari: 16.5.1

The default tamagui CSS reset applies min-width: 100vw to the  tag and the main container element on the page, which is what's causing the horizontal scrollbar to appear when the window overflows.
Since there's no such thing as a scrolling "window" on native platforms, a cross-platform solution is to explicitly wrap your screen in a ScrollView instead of relying on window scrolling:
<ScrollView>
  {/* your screen */}
</ScrollView>

If you only care about web platform or you explicitly want to use window scrolling for another reason, you can fix it by overriding the CSS reset with min-width: 100% instead, which will prevent horizontal scrollbars from being triggered.
/* this needs to be after your import of @tamagui/core/reset.css */
body, #root, #__next {
  min-width: 100%;
}

Thank you! I understood.
Also, I was able to solve the problem by wrapping it up as follows.
export function HomeScreen() {
  const [height, setHeight] = useState(Dimensions.get("window").height);

  useEffect(() => {
    const _event = Dimensions.addEventListener("change", (e) => {
      setHeight(e.window.height);
    });
    return () => {
      _event.remove();
    };
  }, []);

  return (
    <ScrollView style={{ height: height }}>{/* my app screen */}</ScrollView>
  );
}

I think you could get the same result with flex-grow?
<ScrollView style={{ flex: 1 }}>

Thanks! I tried this but it didn't seem to work in my environment.
On the web, if I didn't specify an absolute height for the parent element, it wouldn't spread across the entire screen in my environment.


Unsupported language warning on Mac M1

Search terms
[warning] Options specified "en" as the language to use, but TypeDoc does not support it.
Expected Behavior
No warning with below code
const app = await Typedoc.Application.bootstrapWithPlugins({
    entryPoints: [],
  });
  const converted = (await app).convert();
  if (await converted) {
    console.log("okk");
  }

Actual Behavior

Steps to reproduce the bug
See my testing app
To reproduce:

Go to my testing app
Clone my app
npm install
nvm use v18.18.2
npm run gen-doc

Environment

Typedoc version: every version since v0.26.0
TypeScript version: ^5
Node.js version: v18.18.2
OS: Mac M1 chip (M2 chip has the same issue, but not i9)

This is happening because of the check for ts-node in the internationalization class. TypeDoc tries to load a TS version of the locales as that's what it should use in development.
This should already be fixed in 0.27 as TypeDoc has moved away from ts-node

Thanks @Gerrit0, will close my PR then.


The document should make an example for map data

I want to observe a map, but I have a problem like this:
flutter: [UNHANDLE ERROR] type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'RxMap<String, dynamic>'
Here my resolvent:
var theMap = <String, dynamic>{}.obs;
onInit() {
  theMap = RxMap<String, dynamic>.from(data['key']);
}

Thanks for your reading.

Read the docs.
you must use the Map/List as final, and use assignAll to sign a new map for the observable

@jonataslaw Thanks !

@jonataslaw I read the entire docs, quite heavy, I might have missed something but it seems like the only way I can update my Map<String, List<SomeObject>> and make it reactive is to "recreate" with assignAll instead of calling the add. Am I missing something :) ?
Thank you.

For me assignAll doesn't work at all. still remains default

For me assignAll doesn't work at all. still remains default value, list works but object doesnt

maybe your obj is no frozen

I  have a map like this
 map<String,dynamic>  food=map<String,dynamic>();
food["name"]="bread";
food["price"]=12.5;
food["from"]="UK";
...

this map have more than 200 keys.
when the key: price  changed,    how to notice some Widget  to change


Doc generation: can't relatively-link to a decorator

If I write a doc comment like this, under the assumption that this comment is rendered to reference/data-types.md:
/**
 * Details applied to a package definition by the [`<EMAIL_ADDRESS>decorator.
 */
model PackageDetails {
  // ...
}

The actual result is that the link is mangled:

The (generated) Markdown itself is also mangled:

I'm pretty sure that what's happening is that the @ symbol in the link fragment is being treated as if it were a JSDoc-style tag, and the subsequent contents of the line are removed.

Alternatively, is something like {@link package} possible?

{@link package} (or something of that style) is something we discussed a little bit and I think we should add.
I think some of the dicussion was around just even allowing the interpolation syntax we will/are allowing in string ${package}  and let the doc resolution decide what to do with it.

#1358 tracks {@link ...}


Fixed another NPE in formula prediction

Same fix for checkIsotopes to prevet NullPointerException

comparable to #27 and issue #26
sorry guys. This slipped through my attention. I included a check for the sorting parameters but missed the check on the isotope and MSMS parameters

Looks good.
Another reason to be using objects instead of primitive types - here the NPE happens during the unboxing conversion from Double to double because the Double is null. If we were using Double everywhere, there would be no exception.

Not completely true... Most of the libraries use primitives (JFreeChart, Guava, appache.commons.math) ... at one point there will be unboxing and there will be an NPE. However, we could defiitely limit the exceptions in MZmine code with this.


[Accordion][RN29][iOS] ListView in active Collapsible content would not show up until get swiped

Just record here to help others.
If you render a ListView in renderContent(content, idx, isActive){} for <Accordion /> , even if you have clicked the header to activate the Collapsible section and render the section with correct contentHeight, the ListView is invisible unless you swipe vertically or horizontally.
removeClippedSubviews={false} needs to be applied to ListView to prevent this.
Refs:
Fixed removeClippedSubviews
ListView (or perhaps ScrollView) disappears after running in background for several minutes

Is this actionable from my side or should we close it and just keep it in the archive for reference?

I am having same problem. Listview is getting load after few seconds

I'm having the same problem. removeClippedSubviews={false} solved my problem. @JaxGit Thanks!

@JaxGit Could you please share your code to render ListView in renderContent?

Hey, this issue has been inactive for long time and will be closed. If the issue still persists feel free to tag me to reopen.


Fix broken headings in Markdown files

GitHub changed the way Markdown headings are parsed, so this change fixes it.
See bryant1410/readmesfix for more information.
Tackles bryant1410/readmesfix#1

Coverage remained the same at 99.368% when pulling b37ec0147088effc43ab62cb9bd3f2ddabd6d4bf on bryant1410:master into f0e17d35d39b6e70f9ec7df7b65ebe8de128a5e0 on codeforamerica:master.

Thanks!


Update proto files to reflect lightos v2.3.12

[ ] test with duros-controller
[ ] test with cloud-api

Codecov Report

Merging #15 (429529d) into master (d73066f) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff           @@
##           master     #15   +/-   ##
======================================
  Coverage    7.17%   7.17%
======================================
  Files           4       4
  Lines         237     237
======================================
  Hits           17      17
  Misses        219     219
  Partials        1       1

Impacted Files
Coverage Δ

client.go
0.00% <0.00%> (ø)

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 d73066f...429529d. Read the comment docs.


feat: debounce the resize handler function on the render component

PR Checklist
Please check all that apply to this PR using "x":

[X] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
[X] I have checked that this PR does not introduce a breaking change
[ ] This PR introduces breaking changes and I have provided a detailed explanation below

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting)
[ ] Refactoring (no functional changes)
[ ] Documentation changes
[ ] Other - Please describe:

Fixes
Issue Number: https://github.com/btzr-io/Villain/issues/69
What is the current behavior?
updateZoomLimits() in src/components/render.js is called on every resize event
What is the new behavior?
updateZoomLimits() in src/components/render.js is debounced with a wait time of 50ms on every resize
Other information

@Brostafa Could you test this by setting the size on the viewer like width=100% heigh=100% and resize the window ? make sure it doesn't affect anything

Note: don't merge this yet, when I checked this with fullscreen feature seems it didn't work well.
Without debounce this happens

Trigger a full screen then exit it
resize event fires, executes updateZoomLimits() and updates minZoomLevel and maxZoomLevel
zoom event fires, executes zoomHandler event, uses minZoomLevel and maxZoomLevel to set whether or not we can zoomIn or zoomOut

After debounce:

Trigger a full screen then exit it
zoom event fires FIRST getting the wrong minZoomLevel and maxZoomLevel then we can't either zoomIn or zoomOut
resize event fires

I will debug this more later

@Brostafa We must ensure to always know the corrrect minZoom and maxZoom maybe in this case debounce is a bad idea ? Is there any other way to improve performance on this ?
I'll close this for now, feel free to reopen if you find a solution.
Thanks for all the effort and previous contributions :v:

@btzr-io I tried to trigger a zoom event after resize but seems that created infinite loop of events (where each event calls the other) and that didn't work out either. Regarding resize event seems it doesn't work with resizing the browser window and I only could trigger it when I pin a page or use full screen feature. So, I was confused a bit on the need of optimizing this event if it doesn't get called a lot? At first I thought it would trigger on browser/canvas resizing but it wasn't the case.


Manual release object when using Http2 to Http1 adapter

I am using InboundHttp2ToHttpAdapter and HttpToHttp2ConnectionHandler to delegate http2 stream objects to HttpObject. And also configured to disable the autoRelease, and do the release by myself.
When I release the HttpObject on http1-layer, the under http2-layer may not finish the write(maybe the msg send splites into two write action), and cause a "refCnt: 0" exception. Now I am using event-loop scheduer to delay release the msg, but I think it`s not the right way. So I am here asking for suggestion. THX~

Can you add a retain() call (or a similar named method) when you hand over the buffer or HttpObject from http1-layer to http2-layer? Then both layers will be allowed to call release when they want to, so you don't have to delay the release.

@chrisvest hi, cloud you guide me how to do this? I want start with basic

I think we can close this. Doesn't sound like a bug in Netty, and we didn't hear back from OP.


Gradle max workers ignores disabling PreferContainerQuotaForCPUCount jvm flag

Expected Behavior
Gradle should set max workers count based on /sys/fs/cgroup/cpu/cpu.shares value when gradle.properties contains following line:
org.gradle.jvmargs=-XX:+UseContainerSupport -XX:-PreferContainerQuotaForCPUCount

Current Behavior
Gradle ignores this flag and uses /sys/fs/cgroup/cpu/cpu.cfs_quota_us plus /sys/fs/cgroup/cpu/cpu.cfs_period_us values to set max workers count. When calculation based on cpu quota and period reports much higher cpu available then cpu shares this leads to build failures.
Context

Recently CircleCI announced that they finally expose cgroup limits in docker executors: https://circleci.com/changelog#container-cgroup-limits-now-visible-inside-the-docker-executor
I am triying to adjust our CI builds such way that they fully utillize current runner resources: https://circleci.com/docs/2.0/executor-types/#available-docker-resource-classes
For example for large class cpu shares reports correct count of vCPU - 4, while calculation based on quota and period reports 20 vCPU. With PreferContainerQuotaForCPUCount option disabled, build scan shows correct number of 'CPU Cores', while 'Max Gradle workers' are incorrectly set to 20.
Workaround for me to fix it is to set JAVA_TOOL_OPTIONS environment variable with -XX:+UseContainerSupport -XX:-PreferContainerQuotaForCPUCount value.
Steps to Reproduce

create some test project and setup CircleCI for it
add some job with large resource class
run the CI job and upload the build scan

Your Environment

Gradle: 6.6.1
Java:
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

We need to investigate how this behaves with Java versions that are cgroup aware. In the meantime it might work fine with more recent Java versions, but we need to check that too.

Thank you for providing a valid reproducer.
The issue is in the backlog of the relevant team but the existence of a workaround makes it non-critical so it might take a while before a fix is made.

The computation of the max worker is done by the Gradle launcher. So that JVM started by invoking Gradle needs to be aware of that setting.
One option is JAVA_TOOL_OPTIONS, but any other option that makes sure the Gradle Launcher is setup that way works as well.


Add Lock Statement Support for Completions

Description:
Need to support https://github.com/ballerinalang/ballerina/pull/4508
Related Issues:
https://github.com/ballerinalang/ballerina/pull/4508

Created a new issue in repository - https://github.com/ballerina-lang/ballerina
issue - ballerina-lang/ballerina#4771
hence closing this issue


Some questions

I have a few questions about various decisions and pack files. Not sure if they need to be documented per se, but I'm not sure where else to find this information:

What is the purpose of textures_list.json and contents.json? What happens if you leave an entry out, or specify them wrongly? Aren't they redundant?
What is the purpose of terrain_texture.json and item_texture.json? Why can't we just specify a texture path directly in the blocks/items like Java does, instead of referencing a thing that references a texture?
Why is flipbook_textures.json used instead of .mcmeta files?
Why do model files have to go in the entity subfolder?
Why does add and remove in entity events have an object containing only a single component_groups key instead of just being a list?
What is the purpose of modules in a manifest? Why does every pack need two UUIDs and versions? Isn't it redundant?
Why is there so much education stuff in the vanilla packs? There's a separate pack for chemistry stuff, why isn't everything in there?
Why doesn't the raw text format match Java Edition? Bedrock's format is so verbose, why change it when everyone was used to the Java way?
Why was /titleraw added instead of simply updating /title to work with raw text? There's already multiple places that support both strings and raw text simultaneously
Why does the set_book_contents loot table function require raw text wrapped in strings and escaped instead of just using the JSON directly?
What is the difference between the set_data and random_aux_value loot table functions?
What is the difference between trade_table and economy_trade_table?
Is the flattening actually planned? All the new blocks have Java-like IDs, are the old ones going to stay in the dark ages forever?
Why was it decided to create dozens of near-identical recipes to implement stuff like campfire crafting? Why can't we just specify multiple item IDs for a key?
Which features are governed by format_version, which by min_engine_version, and which by base_game_version?
Why are multiple versions of various geometries included in the vanilla pack, like geometry.pig and geometry.pig.v1.8?
Why do the vanilla packs use older format versions for some files even when a newer format is available?
Which experimental toggle is the behavior is_experimental key associated with?
Why are functionCommandLimit and maxCommandChainLength separate gamerules? And why is the maximum for functionCommandLimit only 10,000?
Why is NBT allowed in structure files but not in commands?
Why are NBT files formatted in little-endian order unlike Java?
What is the purpose of the 8-byte header at the start of level.dat files? It makes it difficult to read like a normal file
Does the Bedrock creator team communicate with the Java team regarding creator features? It seems very strange that almost all survival features are carefully ported in parity, but new technical Java features are never even acknowledged in Bedrock

I'd love to understand the thought process behind some of these decisions, because I trust there are good reasons behind many of them. And if any are planned to change, I'd love to hear that too! Thanks!!

Hello!
It looks like we've made some progress on this. Since it's been a while, I'm going to close this issue, but if you have any additional feedback, please reach out to us!
Thanks!


update the scheduler's timeDilation logic to handle changing values

From https://github.com/flutter/flutter/pull/911, handle the case where the scheduler's timeDilation field is changed dynamically. Specifically, smaller values could cause animations to finish before they start, causing temporal paradox issues (and / or asserts to fire).

We handle this now.


:penguin: bump Ubuntu core images to 23.04

What this PR does / why we need it:

[x] live amd64 image
[x] live arm generic
[ ] installation
[x] arm rpi

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1430

Getting the following error for the generic arm image

After installation, I'm seeing different errors. The first one there seems to be releated to the tmpfiles-setup service:
[    5.337921] systemd[1]: systemd-tmpfiles-setup.service: Failed with result 'exit-code'.
[    5.338300] systemd[107]: systemd-udevd.service: Failed at step CAPABILITIES spawning /lib/systemd/systemd-udevd: Invalid argument
[    5.338781] systemd[1]: Failed to start systemd-tmpfiles-setup.service - Create Volatile Files and Directories.
[FAILED] Failed to start systemd-tm…te Volatile Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.

I tried mounting tmp the way it's done for alpine in the overlay files with no success

Tried creating /run/systemd/journald manually but also didn't help. Updated the error messages above to include all errors I see. Maybe I'm focusing on the wrong one. If you have any suggestions, they are more than welcome!

[    4.075008] systemd[1]: Starting systemd-journald.service - Journal Service...
[    4.075150] systemd[158]: systemd-journald.service: Failed to drop capabilities: Invalid argument

hidden in the dracut log, no idea what it means

something very wrong is happening
If you boot the livedvd with the interactive-installer option you will see the kairos-reset come up for a bit, then the interactive installer. Checking the systemd to see if the service is active, indeed kairos-reset and kairos-recovery services are up....

booted the Ubuntu 22.04, to compare and see if I spotted some differences and here's what I got:
Ubuntu 22.04 (working)
Run /init as init process
	with arguments:
    	/init
    with environment:
    	HOME=/
        TERM=linux
        BOOT_IMAGE=(loop0/boot/vmlinuz)
        cos-img/filename=/cOS/active.img
        vga=795
...
systemd[1]: Running in initial RAM disk

Ubuntu 23.04 (buggy)
Run /init as init process
...
systemd[1]: Running in initrd

All but netboot seems to be working now. Not sure why but this version is only booting with selinux enabled. I tried enabling in the cmdline used to netboot with AuroraBoot but it still fails to boot

The stanza needed for the netboot was the one for overlayfs support. Added it and netboot is working. At this point I think all tests should be green so putting it again for review


Abnormal image display during task summary

Please check that this issue hasn't been reported before.

[X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior
I expect the image can be displayed in the line normally, just like the reading mode of Obsedian.See P3.

Current behaviour
The image can be briefly displayed,then it will return to a string and become multiple lines.Like P4.
Steps to reproduce
Write the following content in the record file
"Pasted image<PHONE_NUMBER>4549.png"You can use any local image instead
[[test]]

[ ] ![[Pasted image<PHONE_NUMBER>4549.png]]This is the text behind the picture

Write the following content in the summary file
```tasks
((heading includes [[test) AND (exclude sub-items)) OR (tags regex matches /^#test$/)
hide task count
hide backlink
sort by path reverse
group by filename reverse
```

Which Operating Systems are you using?

[ ] Android
[ ] iPhone/iPad
[ ] Linux
[ ] macOS
[X] Windows

Obsidian Version
1.4.16
Tasks Plugin Version
5.0
Checks

[X] I have tried it with all other plugins disabled and the error still occurs

Possible solution
No response

Works for me
Thanks for using Tasks.
I have followed your steps and It works for me, in the same versions of Obsidian and Tasks.

Providing a vault to reproduce the problem
So, if you would like it be investigated further, please create a minimal Obsidian vault, with just the file and image to reproduce the problem.
You can find instructions to do that here in this section and the following section:
https://publish.obsidian.md/tasks/Support+and+Help/Report+a+Bug#Before+reporting+a+Tasks+bug+involving+another+plugin
Thank you.

I established a new minimum vault for testing and only enabled the Tasks plugin，You can see that at the beginning, the display on the right side was normal. When the task on the left is modified, the summary area on the right will be refreshed, and the display will show an issue.

对我有用
感谢使用任务。
我遵循了你的步骤,它对我很有效,在相同的版本黑石和任务。

提供一个地下室来再现问题
所以,如果你想进一步调查它,请创建一个最小的黑石拱顶,只有文件和图像来再现问题。
您可以在本节和以下一节中找到这样做的说明:
httPS://发布.md/任务/支持+和+帮助/报告++报告前+错误#+报告前+A+任务+涉及+其他+插件的错误+
多谢。

I established a new minimum vault for testing and only enabled the Tasks plugin

Please create a .zip file containing your minimum vault and attach it here. Thank you in advance.

Thank you for giving me a reply amidst your busy schedule. This is the attachment for the minimum vault.
test.zip

我建立了一个新的最小测试库,只启用了任务插件

请创建一个。包含您的最小保险库并附加在这里的拉链文件。先谢谢你。

Thank you.
As a workaround, it seems that it may be an issue with Live Preview, and switching to Reading mode displays the task correctly.


More publishing cleanup

Rename shim crates
Change release pipeline to look for <crate>/<version> tags and only build releases for individual crates

@rumpl

@rumpl Can you check that this works for what you may need it for?

And here we go: https://github.com/cpuguy83/runwasi-fork/releases/tag/containerd-shim-wasmtime%2Fv0.2.0-beta.2
https://github.com/cpuguy83/runwasi-fork/actions/runs/4326517018

So clean!!

It does, but apparently my conditional for installing the wasmedge stuff isn't working as expected.
Let me fix that up.

Fixed https://github.com/cpuguy83/runwasi-fork/actions/runs/4346827066
https://github.com/cpuguy83/runwasi-fork/releases/tag/containerd-shim-wasmedge%2Fv0.2.0-beta.0

Looking great, thanks!


ci/dependabot config

ci: add dependabot config

:tada: This PR is included in version 1.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Run from package for OneDeploy API

Enabling run from package for OneDeploy API

looks good to me - please let me know if ready to rebase and merge.

looks good to me - please let me know if ready to rebase and merge.

Yes Suwat, please proceed with the merge.


AWS Provider v3 update

Update to be compatible with provider v3
Update go and terratest to latest
Update various utilities to latest version

Thanks for review! Merging and releasing now.


Visitors should not print out design time mappings for inherited chunks

The SyntaxTreeNode and SourceLocation line mappings for an inherited chunk reflect the ones from the original _ViewStart and not the current page. Printing these out would be incorrect. Unfortunately setting it to null doesn't work since it causes some visitors to null ref.

Dup of https://github.com/aspnet/Mvc/issues/2321

:+1:


multiple processes read the same file at the same time, cannot read file

Alluxio Version:
2.9.0
Describe the bug
same issue: https://github.com/Alluxio/alluxio/issues/14007

a process reads the directory: 70s
two processes reads the directory: 160s
three processes reads the directory: two process error,a process is slow.

To Reproduce
Three processes mount a fuse to read the same directory
Expected behavior
A clear and concise description of what you expected to happen.
Urgency
Describe the impact and urgency of the bug.
Are you planning to fix it
Please indicate if you are already working on a PR.
Additional context
Add any other context about the problem here.

@LuQQiu can you share more information on the slow reading problem?

fuse_flame.tar.gz
worker_flame.tar.gz
fuse_jstack.log

Likely same issue as before, multiple Files shared the same FileInStream  and do many of the seek() operation.
The current Alluxio system does not support seek efficiently

One idea is to use BufferedSeeakbleInputStream, it's a way to use memory to improve performance.
When applications do
seek() -> read 128KB -> seek() -> read 128KB
it can change to read e.g. 2MB -> seek inside the 2MB is efficient.
The cache size is tunable


[zh-cn] sync pod-lifecycle.md with en page

Add  the EndpointSliceTerminatingCondition section

sync zh-cn pod-lifecycle.md with en page content/zh-cn/docs/concepts/workloads/pods/pod-lifecycle.md

/lgtm

The preview looks not good now:

aha, it's refreshed and ok now, thanks.
/approve


Style "animated" property should enable continuous rendering

https://github.com/tangrams/tangram-es/blob/master/core/src/scene/sceneLoader.cpp#L435
https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/styles.md#animated

This is implemented already, https://github.com/tangrams/tangram-es/search?utf8=✓&q=animated, continuous rendering is enabled here, property is parsed here.


Changelog update

Tagged the wrong branch but that PR should be merged soon anyway

change included in #57, closing


ci: host tuning in devstack

What this PR does / why we need it:
Copy host tuning from:
https://opendev.org/openstack/devstack/src/commit/05f7d302cfa2da73b2887afcde92ef65b1001194/.zuul.yaml#L645-L662
Enable ENABLE_SYSCTL_MEM_TUNING, ENABLE_SYSCTL_NET_TUNING and
ENABLE_ZSWAP for the reasons explained in comments.
Release note:

NONE

/cherry-pick release-1.31

/test openstack-cloud-csi-cinder-e2e-test
/test openstack-cloud-csi-manila-e2e-test

@EmilienM well, it takes 1h30m for cinder. let's give it a try and retest the #2742


self-import of module types

While importing types from the own *.mli file works fine as demonstrated in src_test/test_self_import.{ml,mli}, self-importing module types doesn't seem to work:
test_self_import_module_type.ml
module type S = [%import: (module Test_self_import_module_type.S)]

test_self_import_module_type.mli
module type S = sig
  val flag : bool
end

compilation:
Circular build detected
  (src_test/test_self_import_module_type.cmx already seen in [
                                                         src_test/test_self_import_module_type
                                                         ])

Is this a known limitation? This would be very useful!

Bug. At the moment I have no time to implement this but will review and accept a PR.

@xguerin, I saw that you implemented self-import for types in #10. Any chance you may have the cycles to take a look at this? I would certainly appreciate it.

I planned to look into it as a next step. I'm not sure when I'll get a chance to look at it but that's certainly on my todo list.

Fixed by #14


Resume jobs after stopping jobs causing some errors

Hi. I followed the documentation to implement "Stop All Jobs" feature:
queue.process('email', function(job, ctx, done){
  ctx.pause( 5000, function(err){
    console.log("Worker is paused... ");
    setTimeout( function(){ ctx.resume(); }, 10000 );
  });
});

I'm also trying to implement "Start Jobs" - after stopping them, but seems like it causes some error.
The way I start jobs is simply re-creating queue, as follows:
var q = kue.createQueue({
  redis: {
    port: 1234,
    host: '<IP_ADDRESS>',
});

But as I did this, I can see some errors in the console:

Did I do something wrong here? Am I missing anything?
Please advice.

It seems you are shutting down the kue instance, and after Kue is shutdown, all resources (redis connection,...) are cleaned up and not usable. So, to start again, re-instantiate with .createQueue

@behrad Hi thanks for quick reply. But as you can see above, that's exactly what I did i.e. .createQueue()
The error I'm referring to here is after I re-instantiate with .createQueue.
Thoughts?

error is from Kue's web console, I suggest separating Kue console web app in another node.js process

Hi @behrad! Thank you for your help.
What is the Kue's web console? We are rolling our own UI to top of Kue api.
What a separate node.js process will solve? If the error is coming in the existing node.js process - the same error will come in the new one. It's not like that?

My understanding is that your UI is accessing kue while it is shutdown in the same process!

What a separate node.js process will solve? If the error is coming in the existing node.js process - the same error will come in the new one. It's not like that?

Don't you wanna see the UI while you shutdown kue processors?

@behrad Not sure what you meant by:

accessing kue while it is shutdown in the same process

but our UI is accessing kue by using kue API. Is this still a problem?
Plus I think it's not really UI related since I can produce the problem by just using Kue API (see below).
Basically here's the flow:

Call our own api wrapper: shutdown api i.e. /api/jobs/shutdown

export function start(req, res) {
  queue.shutdown(5000, function(err) {
    if (err) {
      return res.status(400).send({
        error: err.message
      });
    }
    jobStatus = 'shutdown';
    res.status(200).json({
      message: 'Successfully shut down kue'
    });
  });
}

Call our own api wrapper: start api i.e. /jobs/start

export function shutdown(req, res) {
  if (jobStatus === 'running') {
    res.status(400).json({
      error: 'Kue is already running'
    });
  } else {
    queue = kue.createQueue({
      disableSearch: true,
      redis: require('redis-config.json')
    });
    jobStatus = 'running';
    res.status(200).json({
      message: 'Re-create queue'
    });
  }
}

Now, I assume calling kue APIs should work. But somehow these APIs throw error
Kue API's get job types: /job/types

TypeError: Cannot read property 'smembers' of null

Kue API's get job types: /job/stats
TypeError: Cannot read property 'zcard' of null

Unless if I'm missing anything here. Appreciate your help in advance!


tool crashes when using --empty with flutter create --template=plugin_ffi

Command
flutter create --template=plugin_ffi --empty --platforms=windows ffi_test

Steps to Reproduce

Run flutter create --template=plugin_ffi --empty --platforms=windows ffi_test

This doesn't crash when I remove --empty.
Logs
FileSystemException: Directory listing failed, OS Error: The system cannot find the path specified.
, errno = 3
#0      _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42:24)
#1      _Directory.listSync (dart:io/directory_impl.dart:228:5)
#2      ForwardingDirectory.listSync (package:file/src/forwarding/forwarding_directory.dart:43:12)
#3      ForwardingDirectory.listSync (package:file/src/forwarding/forwarding_directory.dart:43:12)
#4      CreateCommand._removeTestDir (package:flutter_tools/src/commands/create.dart:767:50)
#5      CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:453:29)
<asynchronous suspension>
#6      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1389:27)
<asynchronous suspension>
#7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#8      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#9      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
<asynchronous suspension>
#12     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:119:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#14     main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>

[!] Flutter (Channel master, 3.19.0-5.0.pre.4, on Microsoft Windows [Version
    10.0.22621.3007], locale en-US)
    • Flutter version 3.19.0-5.0.pre.4 on channel master at
      C:\Users\Jozz\Documents\GitHub\flutter
    ! Upstream repository https://github.com/andrewkolos/flutter.git is not a
      standard remote.
      Set environment variable "FLUTTER_GIT_URL" to
      https://github.com/andrewkolos/flutter.git to dismiss this error.
    • Framework revision f5fb61b953 (5 days ago), 2024-01-11 10:46:22 -0500
    • Engine revision ecdaed76f2
    • Dart version 3.4.0 (build 3.4.0-16.0.dev)
    • DevTools version 2.31.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Jozz\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-b2043.56-10550314)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor
      --android-licenses

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34003.232
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2023.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-b2043.56-10550314)

[✓] VS Code (version 1.85.1)
    • VS Code at C:\Users\Jozz\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.81.20231227

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.22621.3007]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome
      120.0.6099.217
    • Edge (web)        • edge    • web-javascript • Microsoft Edge
      120.0.2210.133
    ! Device R9HR701BH0H is not authorized.
      You might need to check your device for an authorization dialog.

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata
No pubspec in working directory.

--empty was added in:

https://github.com/flutter/flutter/pull/113873

      help: 'Specifies creating using an application template with a main.dart that is minimal, '
        'including no comments, as a starting point for a new application. Implies "--template=app".',

It should not crash on other templates, but give an error message that it's not supported for other templates.
@gspencergoog You added support for --empty, could you please take a look?


Dataset object has no attribute to_tf_dataset

I am following HuggingFace Course. I am at Fine-tuning a model.
Link: https://huggingface.co/course/chapter3/2?fw=tf
I use tokenize_function and map as mentioned in the course to process data.
# define a tokenize function
def Tokenize_function(example):
    return tokenizer(example['sentence'], truncation=True)
# tokenize entire data
tokenized_data = raw_data.map(Tokenize_function, batched=True)
I get Dataset object at this point. When I try converting this to a TF dataset object as mentioned in the course, it throws the following error.
# convert to TF dataset
train_data = tokenized_data["train"].to_tf_dataset(
  columns = ['attention_mask', 'input_ids', 'token_type_ids'],
   label_cols = ['label'],
   shuffle = True,
   collate_fn = data_collator,
   batch_size = 8
)
Output:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_42/103099799.py in <module>
      1 # convert to TF dataset
----> 2 train_data = tokenized_data["train"].to_tf_dataset( \
      3     columns = ['attention_mask', 'input_ids', 'token_type_ids'], \
      4     label_cols = ['label'], \
      5     shuffle = True, \
AttributeError: 'Dataset' object has no attribute 'to_tf_dataset'
When I look for dir(tokenized_data["train"]), there is no method or attribute in the name of to_tf_dataset.
Why do I get this error? And how to clear this?
Please help me.

The issue is due to the older version of transformers and datasets. It has been resolved by upgrading their versions.
# upgrade transformers and datasets to latest versions
!pip install --upgrade transformers
!pip install --upgrade datasets

Regards!


Performance Improvement: optimized DatabaseChangeLog.normalizePath()

Impact

[X] Bug fix (non-breaking change which fixes expected existing functionality)
[ ] Enhancement/New feature (adds functionality without impacting existing logic)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
PR #3063 improved performance of DatabaseChangeLog.normalizePath() by no longer re-compiling regular expressions, but it is a method that is called often and with a large changelog it still appears to be a bottleneck.
This PR replaces the regular expressions with more efficient "replace" calls and/or adds a "if it might be a problem" gate around the regexp call.
From testing, it removed about half the time spent based on profiling data from #3816
Fixes partially #3816
Things to be aware of
It may be possible to reduce the number of calls to this function in the first place as well. As part of the review process, it is probably worth looking to see if we keep re-calling normalizePath for the same paths over and over or not.
In testing this, the customer reported that it caused some validation errors (see #3816). I'm not sure how it could off hand, since it's just in the normalizePath, it's possibly causing some changesets to be identical now? So needs a bit more unit testing
Things to worry about
Not much, there are existing tests around the normalizePath() which would fail as I pulled out each regexp before replacing it with a comparable replace() call
Additional Context

The validation errors appear to be caused by a separate change that was already in master. #3881


fft2d on CPUs

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Red Hat 7.6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0.0-beta1
Python version: 3.6
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
It seems like there is a performance issue when running fft2d on data with dimension > 2 (CPU only).
When running fft2d on an array of (40,40,256,256), the function correctly computes fft2d on the inner most 2 dimensions as expected. But it only uses 1 CPU core which results in poor performance.
Describe the expected behavior
Because it is equivalent to simultaneously computing 40x40 fft2d, I would expect parallel computation across multiple CPU cores to boost the performance.
Code to reproduce the issue
a=tf.cast(tf.Variable(tf.random.uniform([40,40,256,256],dtype=tf.float32)), dtype=tf.complex64)
b=tf.signal.fft2d(a)
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Please refer to this snippet of code
https://github.com/tensorflow/tensorflow/blob/dcdca11bcbab4b2474e7bf4d21d1806e6c2790a3/tensorflow/core/kernels/fft_ops.cc#L132-L141
There is no for loop. And tensorflow seems is calling "Eigen fft" to calculate the result.

@danielzt12
You could do the parallel computation by appropriate use the tensorflow APIs.
Please refer to this snippet of code:
import tensorflow as tf
a=tf.cast(tf.Variable(tf.random.uniform([40,40,256,256],dtype=tf.float32)), dtype=tf.complex64)
res = None
for i in range(40):
    temp_out = tf.signal.fft2d(tf.slice(a,[i,0,0,0],[1,40,256,256]))
    if res is None:
        res = temp_out
    else:
        tf.concat([res,temp_out],0)
config = tf.ConfigProto(intra_op_parallelism_threads=4)
with tf.Session(config=config) as sess:
    sess.run(tf.global_variables_initializer())
    sess.run(res)

@danielzt12
You could do the parallel computation by appropriate use of the tensorflow APIs.
Please refer to this snippet of code:
import tensorflow as tf
a=tf.cast(tf.Variable(tf.random.uniform([40,40,256,256],dtype=tf.float32)), dtype=tf.complex64)
res = None
for i in range(40):
    temp_out = tf.signal.fft2d(tf.slice(a,[i,0,0,0],[1,40,256,256]))
    if res is None:
        res = temp_out
    else:
        tf.concat([res,temp_out],0)
config = tf.ConfigProto(intra_op_parallelism_threads=4)
with tf.Session(config=config) as sess:
    sess.run(tf.global_variables_initializer())
    sess.run(res)

@Leslie-Fang

Hi Leslie,
Thanks for helping out. I tried your code but because I am using tf 2.0 the for loop is executed in eager mode, it was only slightly faster (not even 10% I think).
Do I need to use @tf.function for this? The whole tf thing is still all very new to me, do you have a solution for tf 2.0?  Thanks

Can we close this issue since the query is been resolved. Thanks!


how can I set the user-agent for the webviewBridge

Hey @rayshen I think the easiest way to do it was writing Objective-C, something like this might do the trick:
  NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:newAgent, @"UserAgent", nil];
  [[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];```

@juankiz But how to do it on Android? I found userAgent prop does not work in WebviewBridge while it works in the original WebView.

I finally fixed my problem by using the master branch of react-native-webview-bridge and setting User-Agent by passing "userAgent" prop to WebViewBridge

I placed the following code in the AppDelegate.m
NSString *newAgent = @"wc5";  NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:newAgent, @"UserAgent", nil];   [[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];
But i did not get any result please help to solve this.


Don't use C style casts

Change C style casts to C++ static casts.
This makes the code compile with the -Wold-style-cast warning enabled
Cereal uses fairly clean modern C++ style, but unfortunately a few headers use C style casts meaning they cannot be used without disabling warnings about these casts, using #pragmas or similar.
This shouldn't introduce any functional changes.

@erichkeane
Very reasonable comments.
All I did in this commit was to "blindly" change the C casts to static_casts. I didn't want to risk changing any functionality without a better understanding of the code.
I cannot see that this commit introduces any of the issues you have commented on. Am I missing something?
Thanks.

@laudrup You're missing the fact that he did exactly as you wanted and changed all the C-Style Casts into C++ static_cast's 👍 👍

@kklouzal
One of us is confused. I was the one who changed the C-style casts to C++ static_casts. @erichkeane came with the very good points about how to improve it.

I'm not maintainer, so this obviously isn't up to me :)
Just thought @AzothAmmo might find my suggestions useful.  A vast majority of these are in unittest/sandbox, so they don't really matter that much anyway

I'll work these in taking @erichkeane's comments into account.

:+1:

@AzothAmmo Cool. Thanks a lot. Let me know if I can help in any way, but as I wrote I'm not too familiar with this code so I'd rather avoid getting in the way.

Modified with most of the suggestions of @erichkeane, didn't bother with checks on the dynamic casts since they'll fail out the unit tests either way if they don't work.

Nice!
Thanks a lot for this.


Updating the package to work with Laravel 6

Good day guys, am trying to use the Twitter package on Laravel 6 but have not been able to instal it because it only supports version 4/5. Kindly update for version 6. Thank you

There appear to be a large number of forks of this, with a number of them providing L6 support. Given the recent activity on this repo, it may well be abandoned which is a shame considering the 850k installs through Packagist. To save anyone else doing this, potential candidates for L6 support include:
6 only
reliqarts/thujohn-twitter
scottybo/twitter
4, 5 & 6
sursolar/twitter
trideout/twitter
user00265/twitter
killgt/twitter-1
FN365/twitter
diegoalvarezb/laravel-twitter
chrismou/twitter
Some of these have only updated composer.json so using that repo at the current commit should allow you to upgrade your projects to 6.0. Some repos also have work in progress to provide other functionality and I've not dug deep into those changes.

Hey all.
I've created a fork (with issues enabled) & packagist release of the current version in the same namespace (unlike some of the other forks).
I plan to maintain this fork as i'm using it in a few projects (needed laravel 6 support, mainly.
https://github.com/atymic/laravel-twitter
I plan to start going through the bugs/feature requests and adding support them to my fork. I'd love to work with others on the package as well, so feel free to reach out.
If the original author does return, I'd be happy to merge our changes back into the mainline. If not, I plan to release v3 in a different namespace and fix a lot of the pre existing issues.

Support for Laravel 6 has been added and will be tagged shortly 😄


Fhir import updates

Code for loading FHIR bundles to FHIR Server.

I think this may be a little out of date - want to try a rebase on top of what's currently in the repo?

Rebased.

All comments have been addressed, and ready for re-review.


Using pycomm to read Micro800

Is there a way to use this module to read from a Micro800 PLC?

Is there a particular reason this doesn't work with an Ethernet-enabled u800?
I've never used an AB u800, but I'd assume they work much like the older uLogix, except I assume they are moving to add richer true CIP object support ... but still, if they expect a PLC5 or SLC5 to talk to it, they will still need the old PCCC objects supported. Ab learned a bad lesson when they first introduced 'Ethernet/IP', meaning ControlLogix and PLC3/PLC5/SLC5 could NOT work together. Bad news in marketing terms! The fix was to force the older PLC to add Ethernet/IP and the PCCC objects, plus CLogix gained the PCCC vendor objects.

Lynn A Linse, Cradlepoint.com

Micro800 is a different "beast". AB has a different tech group that handle this PLC. The programming software is free (Workbench Software) and the communication is Modbus RTU based not EIP.  There are other projects on github that can help (check out pyModbusTCP)
Thanks,
Ago

That they use Modbus is interesting - but I'd wonder if they even download programs by Modbus? They could - SE/Modicon does (using proprietary codes). I should probably get one to learn more.

I was able to get reading from a Micro820 to work by removing the lines
pack_usint(self.attribs['backplane']),
pack_usint(self.attribs['cpu slot']),

from the forward_open and forward_close functions in cip\cip_base.py.

Could you run the same test but with the 'backplane' and 'cpu slot' set to zero? Unfortunately I don't have a MICRO 820 available.
Thanks for the help.

I forgot to add that I changed the CONNECTION_SIZE['Backplane'] to CONNECTION_SIZE['Direct Network'] as well.
When I set the backplane and CPU Slot to 0 with 'Direct Network' connection size, I get the CIP Error "Too much data"
When I set the backplane and CPU Slot to 0 with 'Backplane' connection size, I get the CIP Error "Port Not Available"

Here are some wireshark captures for each of the three scenarios
Pycomm.zip


Bug:  Nalanda improvement bonus for adjacent holy sites doesn't seem to work for Lavra

Before:


Turn off enable_filter_intra in sequence header

So that "use_filter_intra = false" is not coded for every intra mode block.

Coverage remained the same at 83.23% when pulling abd7ba69dfe908d48023ed71cadc60a9abf44088 on ycho:turn_off_seq_enable_filter_intra into fcb218d1b14204d4705deaddf65764f9d9163210 on xiph:master.

AWCY result will soon be available here AWCY for -s 5


wip: feat(decl): add support for running tests in containers

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind documentation

/kind tests

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area commands

/area pkg

/area events

What this PR does / why we need it:
This PR adds support for running tests inside containers. At the moment the containers handling is done by leveraging the containerd API. If the user specifies that want to run a test inside a container, the test process chain is built inside the container. The event-generator image is used to instantiate containers. If the user specifies a different image name from the base one, the base one is tagged with the provided name. The user can also specify a custom container name and/or additional environment variables to provide to the container. Besides the root process, using a container for testing always means adding 1 process to the process chain: for this reason, in case no other processes are specified in the process chain, we avoid to add the default process.
In order to use useradd and userdel inside the event-generator container, the base image Dockerfile has been updated to use debian-based slim images.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ekoops
Once this PR has been reviewed and has the lgtm label, please assign fededp for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: ef2da231263894559d557a85fa26e59d6e2f4dca

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ekoops, FedeDP
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


I have a question about Project Gantt

Sample (which sample are you talking about)
https://github.com/pnp/List-Formatting/tree/master/view-samples/project-gantt-chart
Question (the more details, the better)
I am wondering if it is possible to use the @now syntax to set the Project Start and Project End on all items instead of using a column.
For instance, Instead of having separate start and end for each item:
use a syntax like this?  I tried doing a search and replace but I'm just not sure if it is even possible.
Project Start === @now -10 (as an example for Today - 10)
Project End === @now + 30 (to be Today + 30)
That way the gantt is more relevant and shows the current time frame and it would not be necessary to have each list item have fields with the same value.
@gdk-max , @thechriskent

Hi Mike,
Thanks for your suggestion.
In principle that would be possible but, you will have the problem of time moving forward.
In other words, at a certain point the start and enddate of each task would no longer fit withing the @now-range.
And since the nar are calculated based on the difference between the start and enddate of the project, this would certainly create issues.
That being said, make sure you use the newly added addDay-function:   addDays(Date(@now), 30)
But again, I don't think it is worth the effort.
Updating all rows is easy when you selct all rows and use the bulk-editing option.
kind regards
Geert

Hi!
Again, but this time to you, @gdk-max, I would love it if you would quote code snippets so that things like @now don’t create a GitHub mention to me.
Thanks!
Best regards,
Nikolai

@gdk-max ,
The reason made this suggestion was not for me, but for end users in our company who were looking for a simple gantt view of a list that can be put on a site page.  So the potential to re-use could be large given there is no ootb view like it without a 3rd party web part.
the problem of time moving forward
I think this could possibly be solved by adding filtering to the view and only show items where the TaskStart and TaskEnd are relevant times (aka not to far in the past or future).
Another alternative to the view filtering would be to somehow use this trick from another view formatting sample from @thechriskent... although filtering through view formatting is hard to debug way beyond typical non-power users:
https://github.com/pnp/List-Formatting/blob/c581bea3ae3d33b143e58cf233928c1d65e5a6e9/view-samples/announcements/announcements.json#L11
  "rowFormatter": {
    "elmType": "div",
    "style": {
      "min-width": "15vw",
      "max-width": "19vw",
      "padding-bottom": "20px",
      "display": "=if([$RemoveDate] <= @now, 'none', '')"
    },

Regarding the effort to update:
I agree that SPO has made it much easier to bulk edit items.
But there are still plenty of reasons to go this path of it is possible:

Mass editing changes all the Modified stamps which might be used for many reasons
It also introduces the possibility of accidently mass updating something you didn't want to update
It creates extra work if you have to remember to mass update all these things every time you need to see a gantt view.
If you just want a rolling gantt chart (showing current time period), the Project Start and end really serve no purpose except to make the view formatting.

So I will give it a try using your @ now suggestion.  I think I tried a flavor of that but might have been missing the Date( part.
Thanks again and I will try to report back when I get it working.

So I was able to get it to scale properly...
This is to get the Project Start (left side) = Today -7 and the Project End (right side) = Today +14.
However, I think what it would really need (and probably not be feasible) is to set the Project Start and End to be more like:
Min of all visible (ProjectStart) and Max of all visible (ProjectEnd) to see the full range of the project.
Thanks for the feedback and thoughts.  I'll close given it may not be feasible or worth the effort at this point.  Might need to just make a web part to do this complex of formatting :(

Note:  This formatting changed a few colors just to make it easier to see what changes impacted what part of the gantt.
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "hideSelection": true,
  "hideColumnHeader": true,
  "rowFormatter": {
    "elmType": "div",
    "style": {
      "height": "=if(@rowIndex == 0, '7.3em', '4em')",
      "display": "block",
      "width": "100%"
    },
    "children": [
      {
        "elmType": "div",
        "attributes": {
          "class": "ms-bgColor-gray20"
        },
        "style": {
          "width": "100%",
          "display": "=if(@rowIndex == 0, 'flex', 'none')",
          "height": "3em",
          "padding": ".2em",
          "font-weight": "bold"
        },
        "children": [
          {
            "elmType": "div",
            "txtContent": "Task",
            "style": {
              "width": "220px",
              "text-align": "left",
              "padding-left": "0.4em",
              "box-sizing": "border-box"
            },
            "attributes": {
              "class": "ms-fontSize-16"
            }
          },
          {
            "elmType": "div",
            "style": {
              "flex-grow": "1",
              "height": "100%",
              "position": "relative"
            },
            "attributes": {
              "class": "ms-fontSize-14"
            },
            "children": [
              {
                "elmType": "span",
                "txtContent": "=toLocaleDateString(addDays(Date(@now), -7))",
                "style": {
                  "text-align": "left",
                  "color": "red"
                }
              },
              {
                "elmType": "span",
                "txtContent": "=toLocaleDateString(addDays(Date(@now), 14))",
                "style": {
                  "position": "absolute",
                  "right": "0",
                  "color": "green"
                }
              },
              {
                "elmType": "span",
                "txtContent": "=toLocaleDateString( @now)",
                "style": {
                  "position": "relative",
                  "width": "100px",
                  "z-index": "100",
                  "display": "=if([$ProjectDue] < @now , 'none', 'block')",
                  "left": "=floor( (Number(@now)-Number(addDays(Date(@now), -7))) / (Number(addDays(Date(@now), 14))-Number(addDays(Date(@now), -7))) * 100 ) + '%'"
                }
              }
            ]
          }
        ]
      },
      {
        "elmType": "div",
        "style": {
          "width": "100%",
          "display": "flex",
          "padding": "0.2em"
        },
        "children": [
          {
            "elmType": "span",
            "style": {
              "width": "21px",
              "padding-top": "0.55em"
            },
            "attributes": {
              "iconName": "=if([$Progress] >= 1, 'CompletedSolid', if([$TaskDue] > [$ProjectDue], 'WarningSolid', if([$TaskStart] > @now, 'Calendar', if([$TaskDue] < @now, 'AlarmClock', 'CircleRing'))))",
              "title": "=if([$Progress] >= 1, 'Complete', if([$TaskDue] > [$ProjectDue], 'Due date is past project due date', if([$TaskStart] > @now, 'Upcoming task', if([$TaskDue] < @now, 'Overdue', 'In progress'))))",
              "class": "='ms-fontSize-16 ms-fontColor-' + if([$Progress] >= 1, 'sharedGreen20', if([$TaskDue] > [$ProjectDue], 'sharedRed20', if([$TaskStart] > @now, 'gray100', if([$TaskDue]< @now, 'sharedRed20', 'sharedCyanBlue20'))))"
            }
          },
          {
            "elmType": "button",
            "txtContent": "[$Title]",
            "customRowAction": {
              "action": "editProps"
            },
            "style": {
              "width": "199px",
              "max-height": "2em",
              "padding": "0",
              "border": "none",
              "background-color": "transparent",
              "cursor": "pointer",
              "text-decoration": "none",
              "text-align": "left",
              "outline": "none",
              "display": "inline-block",
              "overflow": "hidden",
              "text-overflow": "ellipsis",
              "white-space": "nowrap"
            },
            "attributes": {
              "title": "[$Title]",
              "class": "ms-fontSize-16 ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
            }
          },
          {
            "elmType": "div",
            "style": {
              "flex-grow": "1",
              "position": "relative",
              "height": "3em",
              "border-style": "dotted",
              "border-width": "1px 0 1px 0"
            },
            "attributes": {
              "class": "ms-borderColor-sharedGray20"
            },
            "children": [
              {
                "elmType": "div",
                "txtContent": "=toLocaleDateString([$TaskStart]) + ' - ' + toLocaleDateString([$TaskDue])",
                "style": {
                  "position": "relative",
                  "box-sizing": "border-box",
                  "display": "flex",
                  "border-radius": "1em",
                  "z-index": "1",
                  "top": "0.2em",
                  "height": "3em",
                  "overflow": "hidden",
                  "word-break": "break-word",
                  "padding": "0.2em 0.4em",
                  "font-size": "10px",
                  "line-height": "12px",
                  "border-width": "1px",
                  "border-style": "solid",
                  "left": "=  (Number([$TaskStart])-Number( addDays(Date(@now), -7))) / (Number( addDays(Date(@now), 14))-Number(addDays(Date(@now), -7))) * 100  + '%'",
                  "width": "= if( [$TaskDue] > addDays(Date(@now), 14),  (Number(addDays(Date(@now), 14))-Number([$TaskStart])+ 86400000) / (Number(addDays(Date(@now), 14))-Number(addDays(Date(@now), -7))+ 86400000) * 100  ,  (Number([$TaskDue])-Number([$TaskStart])+ 86400000) / (Number(addDays(Date(@now), 14))-Number(addDays(Date(@now), -7))+ 86400000) * 100 ) + '%'"
                },
                "attributes": {
                  "title": "=[$Title] + ' - ' + toLocaleDateString([$TaskStart]) + ' - ' + toLocaleDateString([$TaskDue])",
                  "class": "=if([$Progress] >= 1, 'ms-borderColor-sharedGreen20 ms-bgColor-sharedYellowGreen10', if([$TaskDue] > [$ProjectDue], 'ms-borderColor-sharedRed20 ms-bgColor-sharedRed10', if([$TaskStart] > @now, 'ms-borderColor-gray100 ms-bgColor-gray40', if([$TaskDue]< @now, 'ms-borderColor-sharedRed20 ms-bgColor-sharedRed10', 'ms-borderColor-sharedCyanBlue20 ms-bgColor-sharedCyanBlue10'))))"
                }
              },
              {
                "elmType": "span",
                "attributes": {
                  "title": "=toLocaleDateString(@now)",
                  "class": "ms-borderColor-gray80"
                },
                "style": {
                  "position": "relative",
                  "display": "=if([$ProjectDue] < @now , 'none', 'block')",
                  "top": "-2.6em",
                  "z-index": "100",
                  "border-left-width": "5px",
                  "border-left-style": "solid",
                  "height": "3em",
                  "width": "1em",
                  "left": "=(Number(@now)-Number(addDays(Date(@now), -7))) / (Number(addDays(Date(@now), 14))-Number(addDays(Date(@now), -7))) * 100 + '%'"
                }
              }
            ]
          }
        ]
      }
    ]
  }
}


[WIP] Additional model functionality

Not ready to merge; created as tracking PR.
Refs https://openscience.atlassian.net/browse/LEI-13
Purpose
Add functionality to basic models: in addition to findall, support single item, query, and other CRUD operations.
Also add ability to fetch history for a document.
Support operations where possible.
Limitations

Ember-data can only construct relationships if the JSONAPI payload provides relationship data. In some parts of our model schema, relationships are only defined one way ("admins" tracks "experiments", but "experiments" do not point back to the admin who owns them).

As a result, many relationships will only work in one direction. See schema diagram for guidance on what will work.

TODO

[x] Add support for granular read operations
[x] Test functionality of model relationships
[x] Add support for history relationships
[ ] Add support (and sample page) for admin creation. (collections)
[ ] Implement create, update, and delete operations (using admin page as test case)

Merging as a WIP to avoid future conflicts. Also support for fetching a single record was needed.


integ-cli: Skip new tests requiring same-host daemon

This skips the following tests:

TestEventsFilters
TestExecAfterContainerRestart

as the tests require starting a daemon on the same host.
Signed-off-by: Ahmet Alp Balkan<EMAIL_ADDRESS>cc: @unclejack @jfrazelle @LK4D4

sorry this was my fault LGTM

ok new idea if you want in TestEventsFilters we can remove:
events = events[:len(events)-1]
 if len(events) != 2 {
 	t.Fatalf("Expected 2 events, got %d: %v", len(events), events)
 }

and instead iterate each line of events and make sure they are die, then we dont need a new daemon, up to you

@jfrazelle there's certain value in this test for the CLI. I'm okay waiting if you want to send a PR to fix the test. I can amend to skip only TestExecAfterContainerRestart in this commit.

fixed https://github.com/docker/docker/pull/10998

amended commit.

LGTM

LGTM

ooh I was gonna skip more tests in the last minute, I guess I'll just open a new PR


Support to establish connection after OAP downed

In current implementation, we can't handle RST_STREAM which server sent. Because of this, we can't re-establish stream after server restarted only at once.

This is blocked by this. I'm not sure this problem had occurred because of bug of gRPC or my wrong usage.

In Java, sometimes, it is. We recreate the whole client stub to avoid this. For cpp, I am not sure.

@wu-sheng Solved without recreating client stub, only to re-establish stream. Thanks!


[Runtime] Add tracing for section scans.

Section scans (for metadata, protocols, etc.) can be costly. This change adds tracing calls to those scans so we can more easily see how much time is spent in these scans and where they're initiated.
This adds an os_signpost implementation controlled by SWIFT_STDLIB_TRACING, and a default empty implementation for when that's disabled.
rdar://110266743

/Users/ec2-user/jenkins/workspace/swift-PR-macos/branch-main/swift/stdlib/public/runtime/Tracing.h:62:5: error: '_os_signpost_emit_with_name_impl' is only available on iOS 12.0 or newer [-Werror,-Wunguarded-availability-new]
    os_signpost_interval_end(ScanLog, signpostID, SWIFT_LOG_SECTION_SCAN,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I think this needs some availability checks.

@swift-ci please smoke test

I keep forgetting to look at the failures until after they expire.

@swift-ci please smoke test

Finally got it:
[ RUN      ] BackwardDeployProtocol.ConditionalConformance
stderr>>> CRASHED: SIGSEGV
the test crashed unexpectedly
[     FAIL ] BackwardDeployProtocol.ConditionalConformance

We must not be tolerating NULL somewhere we need to.

@swift-ci please test and merge

@swift-ci please test and merge


lyxal: Watch ubcholding.co

lyxal requests the watch of the watch_keyword ubcholding\.co. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

ubcholding\.co has been seen in 1 true positive, 0 false positives, and 0 NAAs.


Problem with Monthly data - inconsistent dates.

Hi all,
i am having a problem downloading monthly data for any tickers. The dates in the index of the result show more than just the beginning of the month.
Example :
import yfinance as yf
y_params = {
    'tickers': 'AAPL',
    'start': '2020-01-01',
    'end': '2022-11-01',
    'interval': '1mo'
}
data = yf.download(**y_params)['Adj Close']

The result I get for data is :
Date
2020-01-01     75.805000
2020-02-01     66.951164
2020-02-07           NaN
2020-03-01     62.428360
2020-04-01     72.128082
2020-05-01     78.054482
2020-05-08           NaN
2020-06-01     89.801064
2020-07-01    104.630051
2020-08-01    127.060638
2020-08-07           NaN
2020-08-31           NaN
2020-09-01    114.239166
2020-10-01    107.383446
2020-11-01    117.435234
2020-11-06           NaN
2020-12-01    131.116058
2021-01-01    130.394714
2021-02-01    119.821625
2021-02-05           NaN
2021-03-01    120.881424
2021-04-01    130.094742
2021-05-01    123.315880
2021-05-07           NaN
2021-06-01    135.767838
2021-07-01    144.590378
2021-08-01    150.508408
2021-08-06           NaN
2021-09-01    140.478470
2021-10-01    148.718552
2021-11-01    164.106659
2021-11-05           NaN
2021-12-01    176.545380
2022-01-01    173.771454
2022-02-01    164.167221
2022-02-04           NaN
2022-03-01    173.823639
2022-04-01    156.940002
2022-05-01    148.169693
2022-05-06           NaN
2022-06-01    136.304245
2022-07-01    162.015808
2022-08-01    156.741913
2022-08-05           NaN
2022-09-01    137.971115
2022-10-01    153.086044
Name: Adj Close, dtype: float64

You see I have a lot of NaN for apparently random dates.
Am I doing something wrong or this is a bug ?
Thank you in advance

This only happens when actions=True. Workaround: y_params["actions"] = False
The root cause is fixed in next release.

Thank you for the reply, but unfortunately it really doesn't work. Even if explicitly defining 'actions' = False, it gives the same result.
It's understandable, given that in the definition of the download function, 'action' is already set to default False.
# multi.py
def download(tickers, start=None, end=None, actions=False, threads=True, ignore_tz=True,
             group_by='column', auto_adjust=False, back_adjust=False, repair=False, keepna=False,
             progress=True, period="max", show_errors=True, interval="1d", prepost=False,
             proxy=None, rounding=False, timeout=10):

Found the bug :
The cleaning of the lines on function TickerBase.history have to be run after dropping the Dividends and Splits columns :
# base.py
# TickerBase
_# def history
if not actions:
            df.drop(columns=["Dividends", "Stock Splits"], inplace=True)

# duplicates and missing rows cleanup
df.dropna(how='all', inplace=True)
df = df[~df.index.duplicated(keep='first')]

I suspect you are running an old version, because latest release has reworked NaN handling. Run this:
import yfinance as yf
print(yf.__version__)

'0.1.87'

Oh, you're right, I was running the 0.82, my bad!
And I can see the fix ! Thank you very much for the help


Upgraded vte version to 0.11

I also fixed a miss-named variable in the documentation

Merged, thanks!


Converting PNG to AVIF is very slow

Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?

[x] Running npm install sharp completes without error.
[x] Running node -e "require('sharp')" completes without error.

If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?

[x] I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of sharp that is not the latest, please open an issue against that package instead.
What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?
  System:
    OS: macOS 15.1
    CPU: (11) arm64 Apple M3 Pro
    Memory: 216.06 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - /usr/local/bin/node
    pnpm: 9.10.0 - /usr/local/bin/pnpm
    bun: 1.1.12 - /opt/homebrew/bin/bun
  npmPackages:
    sharp: ^0.33.5 => 0.33.5

Does this problem relate to file caching?
The default behaviour of libvips is to cache input files, which can lead to EBUSY or EPERM errors on Windows.

[x] Adding sharp.cache(false) does not fix this problem.

Does this problem relate to images appearing to have been rotated by 90 degrees?
Images that contain EXIF Orientation metadata are not auto-oriented. By default, EXIF metadata is removed.

To auto-orient pixel values use the parameter-less rotate() operation.

To retain EXIF Orientation use keepExif().

[x] Using rotate() or keepExif() does not fix this problem.

What are the steps to reproduce?
Download this png
curl -JO https://images.bookroo.com/site/landing/homepage/book-collection.png

Then run the following code:
const sharp = require('sharp');
const fs = require('fs');

async function main() {
  const buffer = fs.readFileSync('./book-collection.png');
  const start = performance.now();
  const optimizedBuffer = await sharp(buffer).resize(1850).avif({ quality: 55 }).toBuffer();
  console.log(performance.now() - start);
  return optimizedBuffer
}

main().catch(console.error);

What is the expected behaviour?
Should take about 800ms but it actually takes 2700ms.
You can see the difference if you change .resize(1850) to .resize(1849).

Triage: this looks like the same issue as https://github.com/libvips/libvips/issues/2983 as completely disabling IntraBC mode (see e.g. commit https://github.com/kleisauke/libheif/commit/9aff88dff34c102a7faa55fdb11071a037c90391) makes the timings more expected.
Before:
$ time vipsthumbnail book-collection.png -s 1850x -o x.avif[Q=55]

real	0m2.070s
user	0m3.569s
sys	0m0.098s
$ time vipsthumbnail book-collection.png -s 1849x -o x.avif[Q=55]

real	0m0.675s
user	0m1.702s
sys	0m0.068s

After:
$ time vipsthumbnail book-collection.png -s 1850x -o x.avif[Q=55]

real	0m0.849s
user	0m2.210s
sys	0m0.062s
$ time vipsthumbnail book-collection.png -s 1849x -o x.avif[Q=55]

real	0m0.675s
user	0m1.702s
sys	0m0.068s

Thanks Kleis, I agree with your assessment, maybe we should use your libheif patch with the prebuilt binaries for now?

Patching the prebuilt binaries sounds like a good plan to me.

Is there I can get a prebuilt binary with the patch to test this and see if the patch fixes it?
Or is this a PR where I could follow along?

@styfle Please see https://github.com/libvips/libvips/issues/2983#issuecomment-2500161914 if you'd like to follow along - there are changes to both libheif and libvips required for this.


Make this library as an ESP IDF compatible component

This PR adds preprocessor statements and replacement functions to make this library available as an ESP IDF compatible component which can easily be included in ESP IDF based projects.
Compatibility to the Arduino framework should be retained. This solved #14.

Should have encountered this PR earlier.
I have just finished the port of AutoPID to ESP-IDF.
Then, I came accross this PR request, which does the same thing three years ago. 😭

Sorry to hear that. But on the other hand my PR is already 3 years old and probably does not align very well with todays expectations for ESP-IDF components. So feel free to extend this PR or notify me if I should close this because you created a more up to date PR.


Inject Crashing

My game crash after i inject the dll even i havent change anything in hack files. Already verified the game

Fixxed btw, i have to delete the config file. Sorry for forgetting reading the FAQs


About precision

Hello, why is the F1 value I reproduced only 55%, which can not reach the accuracy stated in the paper. I make sure I use your code directly. Can you answer it? Thank you very much

my MRN replication result on the docred dataset is 55%


[README Enhancement]: Chocolate Classification using DL #526

Pull Request for DL-Simplified 💡
Issue Title : [README Enhancement]: Chocolate Classification using DL #526

Info about the related issue (Aim of the project) : The aim is to enhance the README file and make it eye pleasing, well documented using the given README template.
Name: Mahi Singh
GitHub ID: mahi13singh2004
Email ID<EMAIL_ADDRESS>Idenitfy yourself: GSSoC'24 Contributor
Closes: #526

Describe the add-ons or changes you've made 📃
I've enhanced the README by incorporating visually appealing emoticons and providing concise explanations of the content.
Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested? ⚙
Visual Inspection: Ensured correct formatting and working links.
Markdown Preview:  Verified layout and appearance.
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[ ] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

There is some error with 'visualisation' section, it says the image is no longer available!

@abhisheks008 , Kindly check once. I found the image in /images section so directly used its link.


Missing parsing of flow_manager return codes

Currently, the mef_eline napp is missing support for parsing the messages that it receives from the flow manager. Because of this, users can't really tell without looking at logs or elsewhere, if there is any problems with the flows or switches.
This new feature will be a great tool in troubleshooting, and obtaining as much information as possible from the mef_eline.

We have two scenarios here. In the first one, the EVC was created with a schedule, so it is not going to be deployed upon creation. In this scenario, there is no way to give a response to the user saying the deployment failed, as it is going to happen sometime in the future. That information can be logged and could also be sent to to user by e-mail or any other kind of message.
The second scenario is when the EVC has no schedule, so it will be deployed when created. In this case, it would be possible to tell the user if the deploy fails before sending the flows to the switches.


flow-typed install --help doesn't tell you about all the options

When you do flow-typed install --help, it doesn't tell you about the --skip or --overwrite options. (And maybe others, I don't know.)

Ignore this, looks like I was on an old version


Broken links in "GitHub-hosted runners" GitHub Actions documentation

Code of Conduct

[x] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
What changes are you suggesting?
Just fixing two broken links:

https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md

The pull request documentation said that I should open an issue first and reference it in the pull request.
Additional information
No response

This has been internally fixed 💖


Sokol + ANGLE

I was thinking about slapping ANGLE onto Sokol to see what the performance is with the different backends. ANGLE requires ES2/3 but Sokol uses Core on desktop. What would you recommend as the easiest path to getting Sokol desktop to be ES2/3 compliant?

For sokol_gfx.h you can try building the GLES3 code path on desktop (define SOKOL_GLES3 instead of SOKOL_GLCORE33 before including the implementation), you just need matching GL headers somewhere (and include them first).
It's not that easy for sokol_app.h though, does ANGLE have its own GL context initialization functions, or does it offer something like EGL?
I would probably start with one of the ANGLE demos, initialize sokol_gfx.h after the GL context has been initialized, and then replace all the GL calls with sokol_gfx.h calls.
The next steps depend on whether you want to use sokol_app.h for window creation and input (this would need changes to sokol_app.h)

Thanks! I’ll give it a go. I’m using SDL so I won’t have any issues with Sokol app. ANGLE provides all the GL functions as well so that’s all covered.


Romanian Language Translation

Added Romanian Language translation in addition to  #2198
Test: Change the default language of the game to Romanian via config files.
Affected by #2205

Can one of the admins please verify this patch?

Merged!
I went ahead and also took off the ! at the end of "Uber" and "Insane" in the graphic presets for all languages. They were causing warnings in Weblate. There are still a few like that where we have ... in other places.


potential infinit recursions within compile in regexp.c in clang+asan build with some invalid inputs

Our fuzzing tool found an invalid seed that results in a stackoverflow which is caused by recursively calling compile in regexp.c.
mujs is compiled in sanitizer mode (make build=sanitize) with clang-4.0/clang-5.0/clang-6.0 on Linux. Therefore the actual compilation commands are:
clang -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-code -ffunction-sections -fdata-sections -pipe -g -fsanitize=address -fno-omit-frame-pointer  -o build/sanitize/libmujs.o -c one.c
clang -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-code -ffunction-sections -fdata-sections -pipe -g -fsanitize=address -fno-omit-frame-pointer  -o build/sanitize/pp.o -c pp.c
clang -Wl,--gc-sections -fsanitize=address -o build/sanitize/mujs-pp build/sanitize/libmujs.o build/sanitize/pp.o -lm
clang -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-code -ffunction-sections -fdata-sections -pipe -g -fsanitize=address -fno-omit-frame-pointer  -o build/sanitize/main.o -c main.c
clang -Wl,--gc-sections -fsanitize=address -o build/sanitize/mujs build/sanitize/libmujs.o build/sanitize/main.o -lm

However in debug/release modes or CC=gcc (5.41, 4.8, 4.9) there is no such an issue.
I'm not sure whether this is an issue for mujs/gcc/clang/address sanitizer, but it's better to point out it.
000000,sig:6,sm,src:001392.input.txt
addressSanitizer:DEADLYSIGNAL
=================================================================
==15924==ERROR: AddressSanitizer: stack-overflow on address 0x7fff9e15cf18 (pc 0x00000056f0b4 bp 0x7fff9e15d350 sp 0x7fff9e15cf20 T0)
    #0 0x56f0b3 in compile /home/hongxu/tests/mujs/mujs-git/./regexp.c:641:3
    #1 0x56f0b8 in compile /home/hongxu/tests/mujs/mujs-git/./regexp.c:641:3
    #2 0x56f0b8 in compile /home/hongxu/test/mujs/mujs-git/./regexp.c:641:3
...
    #248 0x56f0b8 in compile /home/hongxu/tests/mujs/mujs-git/./regexp.c:641:3
    #249 0x56f0b8 in compile /home/hongxu/tests/mujs/mujs-git/./regexp.c:641:3
SUMMARY: AddressSanitizer: stack-overflow /home/hongxu/tests/mujs/mujs-git/./regexp.c:641:3 in compile
==15924==ABORTING

The sanitizer runs with a ridiculously small stack, which is why you often see stack overflow segfaults due to recursive programs much more often. I'll look into reducing the stack depth when compiling, the issue is the left recursive nature of the syntax tree.


Always use the latest npm qooxdoo version

change qooxdoo-sdk version so that the newest alpha version will be used.

merging thank you @oetiker !

it wasn't me :) ... go @hkollmann

oops, sorry @hkollmann :)


Update README.md

Added the introduction, installation instructions, code examples, feature list and project goals.

@rultor merge

@rultor merge

@suseika OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@suseika Done! FYI, the full log is here (took me 3min)


pytest xdist internal error

[2020-11-06T23:42:35.171Z] ============================= test session starts ==============================
[2020-11-06T23:42:35.171Z] platform linux -- Python 3.6.9, pytest-5.3.5, py-1.9.0, pluggy-0.13.1 -- /opt/rh/rh-python36/root/usr/bin/python
[2020-11-06T23:42:35.171Z] cachedir: .pytest_cache
[2020-11-06T23:42:35.171Z] rootdir: /work/mxnet, inifile: pytest.ini
[2020-11-06T23:42:35.171Z] plugins: cov-2.8.1, flaky-3.6.1, timeout-1.3.4, forked-1.3.0, env-0.6.2, xdist-1.31.0
[2020-11-06T23:42:35.171Z] timeout: 1200.0s
[2020-11-06T23:42:35.171Z] timeout method: signal
[2020-11-06T23:42:35.171Z] timeout func_only: False
[2020-11-06T23:42:35.171Z] gw0 I / gw1 I / gw2 I / gw3 I
[2020-11-06T23:42:35.171Z] [23:42:32] /work/mxnet/src/engine/engine.cc:55: MXNet start using engine: NaiveEngine
[2020-11-06T23:42:35.171Z]
[gw0] linux Python 3.6.9 cwd: /work/mxnet
[2020-11-06T23:42:35.171Z]
[gw1] linux Python 3.6.9 cwd: /work/mxnet
[2020-11-06T23:42:35.171Z]
[gw2] linux Python 3.6.9 cwd: /work/mxnet
[2020-11-06T23:42:35.171Z]
[gw3] linux Python 3.6.9 cwd: /work/mxnet
[2020-11-06T23:42:43.267Z]
[gw0] Python 3.6.9 (default, Nov 11 2019, 11:24:16)  -- [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
[2020-11-06T23:42:43.267Z]
[gw1] Python 3.6.9 (default, Nov 11 2019, 11:24:16)  -- [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
[2020-11-06T23:42:43.267Z]
[gw2] Python 3.6.9 (default, Nov 11 2019, 11:24:16)  -- [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
[2020-11-06T23:42:43.524Z]
[gw3] Python 3.6.9 (default, Nov 11 2019, 11:24:16)  -- [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
[2020-11-06T23:42:47.713Z] gw0 [327] / gw1 [327] / gw2 [327] / gw3 [327]
[2020-11-06T23:42:47.713Z]
[2020-11-06T23:42:47.713Z] scheduling tests via LoadScheduling
[2020-11-06T23:42:47.713Z]
[2020-11-06T23:42:47.713Z] tests/python/unittest/test_autograd.py::test_operator_with_state
[2020-11-06T23:42:47.713Z] tests/python/unittest/test_operator.py::test_concat
[2020-11-06T23:42:47.713Z] tests/python/unittest/test_attr.py::test_operator
[2020-11-06T23:42:47.713Z] INTERNALERROR> Traceback (most recent call last):
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/_pytest/main.py", line 197, in wrap_session
[2020-11-06T23:42:47.713Z] INTERNALERROR>     session.exitstatus = doit(config, session) or 0
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/_pytest/main.py", line 247, in _main
[2020-11-06T23:42:47.713Z] INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in __call__
[2020-11-06T23:42:47.713Z] INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec
[2020-11-06T23:42:47.713Z] INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pluggy/manager.py", line 87, in <lambda>
[2020-11-06T23:42:47.713Z] INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
[2020-11-06T23:42:47.713Z] INTERNALERROR>     return outcome.get_result()
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
[2020-11-06T23:42:47.713Z] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
[2020-11-06T23:42:47.713Z] INTERNALERROR>     res = hook_impl.function(*args)
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/xdist/dsession.py", line 112, in pytest_runtestloop
[2020-11-06T23:42:47.713Z] INTERNALERROR>     self.loop_once()
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/xdist/dsession.py", line 135, in loop_once
[2020-11-06T23:42:47.713Z] INTERNALERROR>     call(**kwargs)
[2020-11-06T23:42:47.713Z] INTERNALERROR>   File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/xdist/dsession.py", line 177, in worker_workerfinished
[2020-11-06T23:42:47.713Z] INTERNALERROR>     assert not crashitem, (crashitem, node)
[2020-11-06T23:42:47.713Z] INTERNALERROR> AssertionError: ('tests/python/unittest/test_operator.py::test_RNN_float64', <WorkerController gw2>)
[2020-11-06T23:42:47.713Z] INTERNALERROR> assert not 'tests/python/unittest/test_operator.py::test_RNN_float64'

https://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/mxnet-validation/pipelines/centos-cpu/branches/PR-19488/runs/1/nodes/175/steps/250/log/?start=0

Closing based on https://github.com/apache/incubator-mxnet/pull/19491
Please reopen if issue persists


DOC: Addition of Contributor's logo's

What's wrong with the existing documentation
Ntg , addition of Contributor's logo's.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Duplicate of #59