Make safeParse always return a data property

Make safeParse always return a data property
Why? Because everytime I use safeParse I have to do this:
const handle = (data: any) => {
  // Can't destructure `data` here 😔
  const parsed = mySchema.safeParse(data)

  if (!parsed.success) {
    return
  }

  // Have to destructure again here 😔
  const { email, password } = parsed.data
}

I would like to do this instead:
const handle = (payload: any) => {
  // Can destructure everything here 😎
  const { success, data, error } = mySchema.safeParse(payload)

  if (!success) {
    /**
     * In this case:
     * - `data` is `null`
     * - `error` is a `ZodError` instance
     * - `success` is `false`
     */
    return
  }

  /**
   * In this case:
   * - `data` is the parsed value
   * - `error` is `null`
   * - `success` is `true`
   */
  const { email, password } = data
}

This way, all the properties on the return value of safeParse can be destructured and used directly instead of having to do the if check and then destructuring the data property.

perhaps this would be helpful:
https://github.com/JacobWeisenburger/zod_utilz#spr

I can work on that @JacobWeisenburger.

perhaps this would be helpful: https://github.com/JacobWeisenburger/zod_utilz#spr
Could we add this zod lib to the repo, to avoid code duplication?

Fixed in Zod 3.23


Feature Request: Custom quota messages by attribute

It would be nice to have the ability to update the quota exceeded message on certain endpoints via an attribute or as part of the xml configuration.

Closing as abandoned


Keep Header Photo but have hyperlink on text

Hi everyone, I am trying to change the header section for Github and LinkedIn specifically. Currently, we are able to put in our handles and the hyperlink to the website is automatically created. I want to have the image and then say "Github" and "LinkedIn" which would then be hyperlinked to my profiles.
Thank you for the advice!

If you want to do this in your local copy, in awesome-cv.cls swap
\href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}%

to
\href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@ Github}%


Someone have test result on VOC2007 ?

I run train.py on VOC2007 dataset and run test.py but I don't have an other test result on VOC to compare
Someone have it ?

@nththanh Can you please share your results ??

this is my result

Result
Final

aeroplane
0.526

bicycle
0.522

bird
0.289

boat
0.335

bottle
0.107

bus
0.557

car
0.625

cat
0.498

chair
0.254

cow
0.373

diningtable
0.445

dog
0.419

horse
0.645

motorbike
0.574

person
0.536

pottedplant
0.135

sheep
0.392

sofa
0.392

train
0.645

tvmonitor
0.376

Mean AP
0.432

Thanks @nththanh . I will update you on my results soon.

79.88% = aeroplane AP
90.25% = bicycle AP
69.46% = bird AP
62.76% = boat AP
50.18% = bottle AP
84.41% = bus AP
87.49% = car AP
83.97% = cat AP
53.00% = chair AP
79.05% = cow AP
69.53% = diningtable AP
84.65% = dog AP
85.32% = horse AP
83.41% = motorbike AP
75.41% = person AP
34.76% = pottedplant AP
69.08% = sheep AP
69.06% = sofa AP
89.85% = train AP
78.13% = tvmonitor AP
mAP = 73.98%

79.88% = aeroplane AP
90.25% = bicycle AP
69.46% = bird AP
62.76% = boat AP
50.18% = bottle AP
84.41% = bus AP
87.49% = car AP
83.97% = cat AP
53.00% = chair AP
79.05% = cow AP
69.53% = diningtable AP
84.65% = dog AP
85.32% = horse AP
83.41% = motorbike AP
75.41% = person AP
34.76% = pottedplant AP
69.08% = sheep AP
69.06% = sofa AP
89.85% = train AP
78.13% = tvmonitor AP
mAP = 73.98%

Would you kindly provide the config file? I trying to reproduce your result.


Snapcraft version don't allow to import/export file into/from Journal

When Sugarizer is installed from the Snapcraft the import local file to journal and export journal item to file buttons don't work.
Steps to reproduce:

Install Sugarizer from the Snapcraft store
Launch it
Create a user
Launch an activity then quit it
Go to journal view, try to export Journal item to file, nothing happen
Try to import file into Journal, nothing happen

Fixed in https://github.com/llaske/sugarizer/commit/d6a0951ef3b6d3cd2f7591c5dead42d5829dbdec

https://github.com/llaske/sugarizer/commit/dd3c58d56981e4dfa6d94601b95d7117a3bc9241


Two pointers active in scene occasionally

Overview
This one is a little hard to track. But every now and then I have two cursors / pointers in my scene active. One is the DefaultCursor I assigned to the Gaze provider on the camera and the other one is my mouse basically in 3D space. I can then use the mouse to select UI elements e.g. but the gaze cursor won't do anything.
Expected Behavior
Not sure what to expect here to be fair. The least I'd expect is, that the mouse pointer is available always when I hit play and not sometimes because it is handy for selecting things and testing in editor.
Actual Behavior
Mouse pointer is sometimes not available and only restarting play mode until it appears will help.
Unity Editor Version
2018.3.0f1
Mixed Reality Toolkit Release Version
mrtk_development

Still thinking about how to support customizing the input experience. Ideally I think that having the mouse input by default is the way to go (even in vr, and it works on the HoloLens with Holographic Emulation as well!) but we've got to keep in mind that the MRTK is cross platform and a standalone platform target is valid.

I agree. The mouse input seems pretty handy as a default.

Looks like we can close this issue as by design?


Label rotation does not work with Line Chart

I added below Label properties to rotate labels. this properties works on ColumnChart, but doesn't work on Line chart
labelProperties = LabelProperties(
                enabled = true,
                textStyle = MaterialTheme.typography.labelMedium.copy(color = MaterialTheme.colorScheme.onSurface),
                labels = investmentMap.keys.toList(),
                rotationDegreeOnSizeConflict = -45f,
                forceRotation = true
            )

Thankyou for adding it as a feature. Waiting for this feafure eagerly

Hi @visittoravi1 , now in the 0.1.0 version label rotation is implemented for line charts.


Missing social media sites

lunchclub
telegram
discord

Thanks for this Andrew @AndrewtheCanon.
Both Telegram and Discord don't strike me as "social media" sites.  Full disclosure: I use both Telegram and Discord very superficially, always as a software developer with questions for specific support communities.
Am I wrong about that?
I've never seen Lunchclub.  A superficial scratch indicates this might be a candidate.  Does anyone have insight into Lunchclub?
Ping @sinfonietta, one of our social media curators....

Closing this because it doesn't appear actionable.


Date Conversion Issue

Hi
I am using Tableexport version(5.0.0),i have date in the table and while export to excel i am facing below issue
Html table data

and excel data is

please help me how to resolve this issue,Thanks in Advance

Now I'm thinking this could be related to what I mentioned in https://github.com/clarketm/TableExport/issues/124#issuecomment-376320828

Before you call an instance of TableExport to the following:
TableExport.prototype.typeConfig.date.assert = function(value){return false;};
I had a similar issue with P.O. Box numbers being converted to dates.

I've had a similar problem with text that was being converted to date without reason.
But @StuffieStephie answer fixed my code, thanks a lot!

yeah - I just disabled it trying to convert dates as well as described by @StuffieStephie

Hi,
I am having the same issue in date conversion. It seems that solution from StuffieStephie is working for all, however, I am a bit confused where to add this in the code. My code looks like below.
$(function(){
$('#').tableExport({
formats: ["xlsx", "csv"],
bootstrap: true,
sheetname: "sheet1",
position: top,
ignoreRows: null
});
});


Addressing tasks in included builds

The latest version of Gradle doesn't provide any way to reference tasks from the included build. Gradle recommends using included builds for more and more use-cases, which makes the missing feature more and more painful.
This pull request modifies the task lookup so that now tasks from composite builds can be directly addressed. A couple of implementation details:

It only works on the command-line. Tooling API is out-of-scope for now.
Task selectors are available. If there are :included:mytask and :included:sub:mytask tasks available and the user executes included:mytask then only :included:mytask will be executed.

I'll implement task exclusion and update the user guide in a different PR.

🎉 🎉 🎉


Plot heatmap of durations between addresses

Median and max, in case one location severely punishes one person.


Bug@ionic 2: alert generates z-index and/or hidden error on navigation to page

I'm showing an alert when i go into a nested page, that alert breaks navigation, sometimes it is presented bad and the z-index of the alert is lower than the page, thus not showing, and if clicked in the back button while the alert is still opened it breaks the navigation, just closes the alert and set the page index 1 lower respect the parent page, thus displaying something like:

Yes I'm addressing these issues. Are you changing pages before animations have completed?

I'm playing with timeouts to try and fix this, i have basically this flow:

show alert 1 busy indicator after 200 ms for the animation of the root page.
close alert 1 and show the user the root page
upon click in one of the subpages push the component you see in the image
upon entering the child page, i show another alert 1
Heres where it breaks, i make some process and then trigger a timeout that should close the child page alert 1, doesn't matter if the alert 1 gives the page 1-2 sec before appearing, the close function just triggers 200 ms after, and inside the function it has another timeout with 200 extra ms.

Extra info: i use the same function in root and child page for showing alert 1 after timeout of 200ms, timeout the close after 200ms extra to give time to alert 1 animations, and the close function calls dismiss 200 ms after, in total it is a process of at least 600ms or more.

New intel:
Watching the z-index of the 2 components and the alert, component 1 gets z-index 10.
Comp 2 gets z-index 11, for some reason the presented alert gets z-index 10 and after the close the comp 2 gets z-index 9.
I think the issue is here in the z-index function: https://github.com/driftyco/ionic/blob/2.0/ionic/components/nav/nav-controller.ts#L1089-L1109
I think there's an error when presenting the alert that does the alert get z-index 10 instead of 12, maybe the nav is setting wrong the direction for the present when in child component.

Ok it seems i have to put a 400 ms timeout in the child page constructor for it to work, is it because of the time it takes to transition?

With no other option i will have to make a custom loading/busy indicator that doesn't rely on the nav component.

Hello all! Is this still an issue with the latest version of ionic? Thanks!

This appears to have been fixed since this issue was created. If you're still have problems please create another issue, thanks

Fixed? more like worked around with the lifecycle hook for onPageDidEnter() {}, still at least is a solution.

Hi @Luchillo,
Are you using promises and chaining the transitions together?
Thanks,
Dan

Yes i do, that seems to be the way the alerts are intended to work, the only issue left was i had to time up the code in constructor or either it will break as stated above, that's where the hooks come along.

Yep, ill happily explain why this happens. The constructor of a class actually fires before anything in the dom has happened, so then when the alert tries to do dom related stuff before the dom is ready it will give errors. Putting it in a timeout will technically work, but timeouts are very inefficient and inconsistent way to handle async stuff in javascript. This is why we have lifecycle hooks and use promises throughout ionic 2. Hope this explains everything! (:

Actually here is a good video explaining this a little better than i can: https://www.youtube.com/watch?v=MYympIG00Pk

@jgw96 Wow the recent beta.7 made a big breaking change for me, i was using the IonicApp.getComponent() method to get the navigation from a service (Injectable), Now will i be able to do the same with @angular/core -> ViewChild from an Injectable?

Ok forget it, i found how to do it, just using the IonicApp.getActiveNav() did the trick in my service.


Charts: YesNo, Categorical shares and dai volume are different

In the UI 1 DAI === 1 Share. why aren't the values the same in dropdown of candlestick chart?

shares can be traded over and over which doesn't escrow more dai. closing


Remove constructor

Codecov Report

Merging #54 (6aaf80d) into boba-fee (58f992f) will increase coverage by 30.78%.
The diff coverage is 100.00%.

:exclamation: Current head 6aaf80d differs from pull request most recent head 2d54a54. Consider uploading reports for the commit 2d54a54 to get more accurate results

@@              Coverage Diff              @@
##           boba-fee      #54       +/-   ##
=============================================
+ Coverage     47.88%   78.67%   +30.78%
=============================================
  Files            98       38       -60
  Lines          3926     1294     -2632
  Branches        754      195      -559
=============================================
- Hits           1880     1018      -862
+ Misses         2046      276     -1770

Flag
Coverage Δ

boba-contracts
?

contracts
78.67% <100.00%> (+0.62%)
:arrow_up:

core-utils
?

data-transport-layer
?

message-relayer
?

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

Impacted Files
Coverage Δ

...ts/contracts/L2/predeploys/Boba_GasPriceOracle.sol
68.18% <100.00%> (+11.03%)
:arrow_up:

packages/core-utils/src/common/test-utils.ts

packages/core-utils/src/external/index.ts

...boba/contracts/contracts/DiscretionaryExitBurn.sol

packages/data-transport-layer/src/utils/eth-tx.ts

...kages/data-transport-layer/src/utils/validation.ts

packages/core-utils/src/external/geth/index.ts

...cts/contracts/libraries/CrossDomainEnabledFast.sol

packages/core-utils/src/optimism/index.ts

...a/contracts/contracts/standards/L1CustomERC721.sol

... and 52 more

Continue to review full report at Codecov.

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


Icon request: British Computer Society (BCS)

URL for the brand / site / app
https://www.bcs.org
Logo resources for the icon
https://sts.bcs.org/bcs-logo.svg
Proof of the Aegis-compatible 2FA
https://imgur.com/a/GLV0syF
All the help documentation appears to be after login.  As such, here's a screenshot.
Anything else?
No response
Confirmation

[X] I have read and followed the issue guidelines & issue form.

Here you go!
https://github.com/aegis-icons/aegis-icons/blob/master/icons/1_Primary/British Computer Society.svg

:question: How to add icon(s) to Aegis?
:star: Support this project by giving a star! Just adding like to this comment is also appreciated.


Reference fixes and adding good books

@CsatariGergely Thank you! Could you please add a DCO to your commit message? We have just enforced the Developer Certificate of Origin https://developercertificate.org/  on Pull Requests, but this requirement start to apply to PRs started from now on, so we should really appreciate it if you could add the following message, replacing "your name" and "exaple.org": Signed-off-by: your name<EMAIL_ADDRESS>🙏

@anajsana I have sign off for both of the commits in this branch: https://github.com/todogroup/ospology/pull/271/commits


Allow element/component resolution at runtime

What problem does this feature solve?
In NativeScript we have a default set of elements, but plugins are allowed to register new elements - this results in most elements not being known at compile time, thus all unknown elements are treated as components in the render functions.
There's isNativeTag that's meant to solve this, however in our use-case it's not straight-forward. My initial approach was to treat everything as native elements, however this wouldn't work as all user-created components would stop working.
  // ParserOptions
  isNativeTag: tag => {
    if (isBuiltInComponent(tag)) {
      return false
    }
    // in case we encounter an element that is not a built-in component
    // we will assume it's a plugin provided element
    return true
  },

Is there a possibility to optionally transfer this responsibility to the runtime?
What does the proposed API look like?
type NewParserOptions = ParserOptions & { hasUnknownElements: boolean = false }

That would replace resolveComponent calls with a different resolver (perhaps resolveUnknownElement) that we could export from our runtime.
export function resolveUnknownElement(name: string): Component | string | undefined {
  if(isKnownElement(name)) {
    // we would return a string for known native elements to be treated as normal elements
    return name
  }
  // fall back to resolveComponent for the rest
  return resolveComponent(name)
}

I tried to export a custom resolveComponent function from our runtime, but the problem is the children are then treated as slots. This would still need solving with the resolveUnknownElement replacement, but I can't think of a solution yet.
Example of the issue
Render function when we have unknown elements treated as components
import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
  const _component_NativeElement = _resolveComponent("NativeElement")
  const _component_CustomComponent = _resolveComponent("CustomComponent")
  const _component_StackLayout = _resolveComponent("StackLayout")

  return (_openBlock(), _createBlock(_component_StackLayout, null, {
    // treated as slots, even though it should be a simple array of vnodes
    default: _withCtx(() => [
      _createVNode(_component_NativeElement),
      _createVNode(_component_CustomComponent)
    ]),
    _: 1
  }))
}

Versus when the element is treated as a native element (replaced with div)
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
  const _component_NativeElement = _resolveComponent("NativeElement")
  const _component_CustomComponent = _resolveComponent("CustomComponent")

  return (_openBlock(), _createBlock("div", null, [
    _createVNode(_component_NativeElement),
    _createVNode(_component_CustomComponent)
  ]))
}

📢 I'm very open for discussion, as I may be solving the wrong problem here.

I think f529dbd happens to address the issues you have here:

Native element calls were made to work with compiled slots (auto calls default() slot and use as children)
resolveDynamicComponent falls back to native strings if component is not found

We can simply replace resolveComponent with resolveDynamicComponent when hasUnknownElements is true. Does that solve your problem?

That sure sounds like the way to go!
So with hasUnknownElements set to true the following templates would produce the same render function:
<StackLayout>
  <Label/>
</StackLayout>
<!-- would be the same as -->
<component is="StackLayout">
  <component is="Label" />
</component>

Is that correct?

Yes, that's correct

Actually, since element vnodes can now accept slots as children, your approach of exporting a custom resolveComponent from your runtime should already work, maybe we don't need the option at all.

I'll give it a try and report back!

That seems to be working with alpha.10, thanks!


wlroots doesn't keep mode set via video= kernel cmdline

I want to run a wayland compositor on a device with a fixed screen resolution, and to ease debugging, want to provide a similar environment in a qemu VM.
I used the kernels cmdline option to configure a resolution:
video=Virtual-1:2280x800@60me

During boot, I see this custom resolution being configured. However, as soon as my compositor (cage in that case) starts, it seems to fall back to 1024x768.
I'm running qemu with -vga std, -m 2048 and -smp 2, if that helps.
I experienced this bug in sway as well, so assume it's a wlroots problem, and not cage-specific.

video is a kernel option for framebuffer devices. fbdev isn't used on wlroots, DRM/KMS is used instead, so this option won't work. You should configure your compositor to set a custom mode instead (e.g. output XXX mode --custom YYY in Sway).

we're using a modeline in the config file for that https://source.puri.sm/Librem5/phosh/blob/master/data/rootston.ini#L12

I went generating a custom edid with my custom mode, added it to the initrd, and passed it as kernel cmdline:

drm_kms_helper.edid_firmware=Virtual-1:edid/1280x800.bin

That way, I don't need to rely on the compositor providing a way to add/set custom modes.


Fix "Mouse Events" button tooltip

PR #1046 changed the "Mouse Clicks" panel/button to "Mouse Events" instead, since mouse-related events could now be visible without clicking; a sensible change. However, the PR missed a few references to *.MouseClicks in the code, resulting in the tooltip for the button not showing up correctly.
This PR switches all references to *.MouseClicks to their respective *.MouseEvents versions in all language .xaml files in /Resources/Localization. Additionally, it updates the values for the text itself from "Mouse clicks" to "Mouse events" within the tooltip for English and French (because those are the two languages that I know).
It may be a good idea to let those on the localization teams know that "Mouse clicks" should be changed to "Mouse events" for consistency. I also noticed several references in the other files to S.MouseClicks.Warning.None—this string no longer appears, since it's not really possible for a recording not to have any generic "mouse events" like it is for clicks. It can probably be removed from the language files. I don't think either of these last two points are particularly urgent, though.
This PR fixes #1200.
Screenshots
Before

After

Cheers,
-- Matt

Thanks Matt!


switch to the docker compose as a plugin

related ticket https://github.com/zebrunner/community-edition/issues/587

done. testing should include deployment CE from develop branch using aws s3 and minio storage. start/stop/down/shutdown/restart commands should be retested

Verified.


Better way to fetch results

Could there be e better way to fetch results ?
Like
var rows = db.fetch_assoc()
then to access it as
for row in rows:
    print(row['id'])

and
var row = db.fetch_one()
print(row['id'])

Thanks

Thanks! :D


E2E service tests

To ensure Hegel does in-fact function it would be useful to have some sort of e2e test that merely launches the Hegel image and hits a few endpoints.
This could be by using a mock back-end or a light weight Kubernetes cluster implementation - something that can run on the CI in a reasonable time frame.
At a minimum, ensuring we can launch the service would be useful.

Is there a way to test that the ec2 metadata endpoints are compliant to the standard in any way? that might be a nice addition too.

Compliance tests are a good thought although I'm not sure how different they'd be vs normal e2e tests. I mention that because we don't support all AWS EC2 endpoints, for example, and never will as they aren't all relevant.
Do you have a particular train of thought on a differentiating factor between typical E2E tests and compliance tests in this case?

Addressed in #157 and #158


Update the preview1 adapter

Change the shell script to remove the right files in lib, and run it to update the preview1 adapters.

Thanks for the PR! This should be superseded by https://github.com/bytecodealliance/jco/pull/120 now.


Either support external secret plugins in community or make it very clear in the docs that community doesn't support it

There is nothing that I can see on https://docs.drone.io/secret/ or any of the child pages that would indicate that external secret plugins don't work. However, https://github.com/harness/drone/blob/master/plugin/secret/external_oss.go is a no-op and would never actually attempt to look up a secret from an external plugin, nor would it ever give any indication that it's not going to work: it just silently fails.
I spent a lot of time writing a secret plugin for a secret management solution that I've been working on and it's extremely frustrating to now find out that it won't work as expected because that functionality is locked behind a paywall. It's doubly frustrating that I chose Drone as one of the two systems to integrate with specifically because you indicated you had support for external secret plugins and now it turns out that's not the case :/
Please either mv external_oss.go external.go or update the docs to make it clear that external secrets are an enterprise thing.

Hi @cweagans thanks for raising the issue. I have taken this for discussion to the internal team and I will revert ASAP


Release cobigen-eclipse-v4.1.2

This issue has been automatically created. It serves as a container for all release related commits

Automatically processed.
The decisions taken by the developer and the context of the decisions throughout the script:

User confirmed that tests are running on CI and the build is not failing.


[util] Set hideIntegratedGraphics = True for The Talos Principle 2

On my system with AMD Radeon RX 6800S and AMD Radeon 680M the game picks integrated card by default.
It is literally unplayable on 680M (like much less than 1 fps).
The hideIntegratedGraphics = True option fixes the issue.
Other users also reported the problem, for example you can read about it on Proton issue tracker: https://github.com/ValveSoftware/Proton/issues/7237#issuecomment-1798124091

I don't know the root case of the problem, but maybe it is similar to https://github.com/doitsujin/dxvk/issues/3725?

Also you can see many reports from people about the game selecting integrated GPU on protondb: https://www.protondb.com/app/835960.
And the game don't work well for some users with  both integrated and discrete cards there, maybe those users didn't try to disable integrated graphics.

I'm generally very hesitant to do workarounds like this since it doesn't typically affect all systems, e.g. on my own laptop the game works fine as-is. Not sure why the game would default to integrated either after all the various things we've done to ensure our adapter / monitor enumeration etc matches Windows as closely as possible, so this needs some investigation.


Add support for elasticsearch domains

For example:
es = t.add_resource(ElasticSearchDomain(         "MySearchDomain",         DomainName="mysearchdomain",         AccessPolicies={                         "Version": "2012-10-17",                         "Statement": [                             {                               "Effect": "Allow",                               "Principal": {                                 "AWS": "arn:aws:iam::12345:root"                               },                               "Action": "es:*",                               "Resource": "*"                             },                         ]                     }     ))

@irvined1982 it looks like there is a blank line at the end of the commit that is breaking pep8, can you fix that?
Also can you add this example to the examples directory (be sure to put its output in tests/examples_output as well): http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#d0e51584
Thanks for submitting this!

Going to go ahead and close this since #415 seems to be further along.  Thanks for the submission!


Provider: Strapi

https://strapi.io/
I can contribute as well.
Regards and Thanks for this great project.

https://strapi.io/
I can contribute as well.
Regards and Thanks for this great project.

Hey, any news about a Strapi connector?

i have picked it up. can expect a PR in a few weeks

Interesting any updates on this? Willing to help.

Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: #966

godspeed!


Commands related to spaces not working

Macos version: 13.6.6 (22G630)
yabai-v7.1.0
skhd-v0.3.9
Configs looks like this
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - h : yabai -m window --focus west
alt - l : yabai -m window --focus east

# Change focus between external displays (left and right)
alt - s : yabai -m space --focus prev
alt - g : yabai -m space --focus next

# Manage spaces
alt - c : yabai -m space --create
alt - d : yabai -m space --destroy

# Modifying the Layout
# rotate layout clockwise
shift + alt - r : yabai -m space --rotate 270
# flip along y-axis
shift + alt - y : yabai -m space --mirror y-axis
# flip along x-axis
shift + alt - x : yabai -m space --mirror x-axis
# toggle window float
shift + alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2

# maximize a window
shift + alt - m : yabai -m window --toggle zoom-fullscreen

# balance out tree of windows (resize to occupy same area)
shift + alt - e : yabai -m space --balance

# swap windows
shift + alt - j : yabai -m window --swap south
shift + alt - k : yabai -m window --swap north
shift + alt - h : yabai -m window --swap west
shift + alt - l : yabai -m window --swap east

# move window and split
ctrl + alt - j : vabai -m window --warp south
ctrl + alt - k : yabai -m window --warp north
ctrl + alt - h : yabai -m window --warp west
ctrl + alt - l : yabai -m window --warp east

# move window to display left and right
shift + alt - s : yabai -m window --display west; yabai -m display --focus west;
shift + alt - g : yabai -m window --display east; yabai -m display --focus east;

# move window to prev and next space
shift + alt - p: yabai -m window --space prev;
shift + alt - n: yabai -m window --space next;

# move window to space #
shift + alt - 1 : yabai -m window --space 1;
shift + alt - 2 : yabai -m window --space 2;
shift + alt - 3 : yabai -m window --space 3;
shift + alt - 4 : yabai -m window --space 4;
shift + alt - 5 : yabai -m window --space 5;
shift + alt - 6 : yabai -m window --space 6;
shift + alt - 7 : yabai -m window --space 7;

yabai -m config layout bsp

yabai -m config window_placement second_child

yabai -m config top_padding 12
yabai -m config bottom_padding 12
yabai -m config left_padding 12 yabai -m config right_padding 12
yabai -m config window_gap 12

# mouse settings
yabai -m config mouse_follows_focus on
yabai -m config mouse_modifier alt
# left click + drag
yabai -m config mouse_action1 move
# right click + drag
yabai -m config mouse_action2 resize
yabai -m mouse_drop_action swap

yabai -m rule --add app="Системные настройки" manage=off
yabai -m rule --add app=" Karabiner-Elements$" manage=off
yabai -m rule --add app="Калькулятор" manage=off
yabai -m rule --add app="Finder" manage=off
yabai -m rule --add app="Red Shield VPN" manage=off
yabai -m rule --add app="Telegram" manage=off
yabai -m rule --add app="Transmission" manage=off

When I press alt-c nothing happens. alt-s also. Done everything according to installation.

I have all that and it used to work on my machine, but now the windows just vanish if I move them to 'east' or 'west'. If I do the opposite motion they reappear.

I haven't experienced this issue so i would need a bit more context to help you out.
Have you tried running yabai -V and trying to see if you get any error messages?

How do I use -V ?
🍎 ❯ yabai -V -m window --display east
yabai: '-m' is not a valid option!

~
🍎 ❯ yabai -m window -V --display east
unknown command '-V' for domain 'window'

~
🍎 ❯ yabai -m window --display east -V
unknown command '-V' for domain 'window'

~
🍎 ❯

I think I got it... I ran yabai -V in one split and ran yabai -m window --display east on another.
These are the logs after the command: https://pastebin.com/pUcXP2xf

Just looked at the pastebin, but still unsure of the issue, have you installed the scripting additions and disabled SIP
as per these wiki instructions?
https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition

Have you installed the scripting additions? i had a similar problem and this helped me out a lot
https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
make sure to also uncomment last line from the sudoers file so that you can include the updates from the wiki
it should look like this #includedir /private/etc/sudoers.d
after that reboot your mac and you should be good to go.

I can't believe I'm saying it but after whole year of disappointment and frustration it worked. Big appreciations my man, you're legend.

That is amazing to hear that really warms my heart, and i feel good that i have been able to pay it forward and assist another developer.
I legit reformatted my entire computer and built it up from scratch live on youtube, just to find this answer.
Hope you build some awesome software and build an awesome dev workflow 😎

Have you installed the scripting additions? i had a similar problem and this helped me out a lot
https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
make sure to also uncomment last line from the sudoers file so that you can include the updates from the wiki
it should look like this #includedir /private/etc/sudoers.d
after that reboot your mac and you should be good to go.

I can't believe I'm saying it but after whole year of disappointment and frustration it worked. Big appreciations my man, you're legend.

I believe so:
🍎 ❯ csrutil status
System Integrity Protection status: unknown (Custom Configuration).

Configuration:
	Apple Internal: disabled
	Kext Signing: enabled
	Filesystem Protections: disabled
	Debugging Restrictions: disabled
	DTrace Restrictions: enabled
	NVRAM Protections: disabled
	BaseSystem Verification: enabled
	Boot-arg Restrictions: disabled
	Kernel Integrity Protections: enabled
	Authenticated Root Requirement: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

That is amazing to hear that really warms my heart, and i feel good that i have been able to pay it forward and assist another developer.
I legit reformatted my entire computer and built it up from scratch live on youtube, just to find this answer.
Hope you build some awesome software and an awesome dev workflow 😎

You have 1 more sub now

@0xAquaWolf  As soon as I said it worked, new bug appeared:) Now separate windows goes underneath main one. It means if I open browser tab in separate window, it goes in foreground, preventing me to click it. The only place I see it is in mission control. I can move it to different space, but if they are on same, one overlap other.

@0xAquaWolf As soon as I said it worked, new bug appeared:) Now separate windows goes underneath main one. It means if I open browser tab in separate window, it goes in foreground, preventing me to click it. The only place I see it is in mission control. I can move it to different space, but if they are on same, one overlap other.

This sounds like the layout might be set to floating can you confirm with by stoping the yabai service and then debugging with yabai -V then try opening the windows and see if you can get some logs or some more context

Have you installed the scripting additions? i had a similar problem and this helped me out a lot
https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
make sure to also uncomment last line from the sudoers file so that you can include the updates from the wiki
it should look like this #includedir /private/etc/sudoers.d
after that reboot your mac and you should be good to go.

I can't believe I'm saying it but after whole year of disappointment and frustration it worked. Big appreciations my man, you're legend.

I believe so:
🍎 ❯ csrutil status
System Integrity Protection status: unknown (Custom Configuration).

Configuration:
	Apple Internal: disabled
	Kext Signing: enabled
	Filesystem Protections: disabled
	Debugging Restrictions: disabled
	DTrace Restrictions: enabled
	NVRAM Protections: disabled
	BaseSystem Verification: enabled
	Boot-arg Restrictions: disabled
	Kernel Integrity Protections: enabled
	Authenticated Root Requirement: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

I looked over the logs but i don't see anything that stands out, i'm not using multiple displays so i don't know how to debug or help you here, sorry 😞

This sounds like the layout might be set to floating can you confirm with by stoping the yabai service and then debugging with yabai -V then try opening the windows and see if you can get some logs or some more context
Yeah, it was floating, my bad.

Awesome glad you were able to resolve everything :)


sqlite3 not found on ubuntu 14.04

I was following the Getting Started on Linux for ef at https://ef.readthedocs.org/en/latest/getting-started/linux.html and when I run the command
$ dnx ef database update
i get the following error.
System.DllNotFoundException: Unable to load DLL 'sqlite3': The specified module could not be found.
 (Exception from HRESULT: 0x8007007E)
   at Microsoft.Data.Sqlite.Interop.NativeMethods.sqlite3_open_v2(IntPtr filename, Sqlite3Handle& ppDb, Int32 flags, IntPtr vfs)
   at Microsoft.Data.Sqlite.Interop.NativeMethods.sqlite3_open_v2(String filename, Sqlite3Handle& ppDb, Int32 flags, String vfs)
   at Microsoft.Data.Sqlite.SqliteConnection.Open()
   at Microsoft.Data.Entity.Storage.RelationalConnection.Open()
   at Microsoft.Data.Entity.Storage.Internal.SqliteRelationalConnection.Open()
   at Microsoft.Data.Entity.Storage.Internal.RelationalCommand.Execute[T](IRelationalConnection connection, Func`3 action, String executeMethod, Boolean openConnection, Boolean closeConnection)
   at Microsoft.Data.Entity.Migrations.HistoryRepository.Exists()
   at Microsoft.Data.Entity.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.Data.Entity.Design.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
   at Microsoft.Data.Entity.Commands.Program.Executor.Execute(Action action)
Unable to load DLL 'sqlite3': The specified module could not be found.
 (Exception from HRESULT: 0x8007007E)

$ dnx --version
Microsoft .NET Execution environment
 Version:      1.0.0-rc1-16202
 Type:         CoreClr
 Architecture: x64
 OS Name:      Linux
 OS Version:   ubuntu 14.04
 Runtime Id:   ubuntu.14.04-x64

@natemcmaster any thoughts on this one?

It's a goofy quirk in the Ubuntu 14 packaging. See https://github.com/aspnet/Microsoft.Data.Sqlite#ubuntu. I'll add this to the tutorial since Ubuntu 14 is one of the most popular Linux distros.

Thank you. running the following command fixed the problem
$ sudo apt-get install libsqlite3-dev

Added a note to the walkthrough https://github.com/aspnet/EntityFramework.Docs/issues/77


Trusted bech32 decoding

We should use this to speedup operations with decoding addresses in Osmosis.
I'd expect a .3% sync speedup from just using this in the CL module.

Summary by CodeRabbit

New Features

Introduced new functions for trusted Bech32 address conversion, enhancing address validation and error handling.
Added a function for decoding Bech32 encoded strings to base64 encoded bytes without checksum verification for safer execution.

Tests

Implemented test cases for the new Bech32 decoding function, including standard and fuzzing tests to ensure reliability.

For tracking purposes, is this something that is upstreamed to the sdk already?


Is 5.4.0 released or not?

Description
It is unclear whether or not 5.4.0 has been released or not.  There is a v5.4.0 tag, but it doesn't show up on releases list or itk.org.  But the only 5.4.X open milestone is for 5.4.1.  Could this be cleared up?  Thanks.

Seems like a duplicate to me.  Not sure how I missed that.


GROOVY-10473: add stream getAt(int) and getAt(IntRange) extension methods for quick access

IntStream, LongStream, and DoubleStream do not have sensible default for getAt(int) except maybe NaN for DoubleRange unless they return boxed types.  They could have getAt(IntRange) added safely.  I don't think getAt(Range), getAt(EmptyRange) or getAt(ObjectRange) are necessary.
https://issues.apache.org/jira/browse/GROOVY-10473
spread-dot syntax (aka stream*.property) is already supported through Stream#iterator() as noted

https://issues.apache.org/jira/browse/GROOVY-10666 discusses the possibility of supporting multiple-assignment for streams via getAt(IntRange)

+1


Added Spinnaker Operator support for v1.21.2

Signed-off-by: vkvamsiopsmx<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[Y] Does your operator have nested directory structure?
[Y] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[Y] Are you familiar with our contribution guidelines?
[Y] Have you packaged and deployed your Operator for Operator Framework?

[Y] Is your submission signed?

Updates to existing Operators

[ ] Is your new CSV pointing to the previous version with the replaces property?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[ ] Modify more than one operator
[ ] Modify an Operator you don't own
[ ] Rename an operator - please remove and add with a different name instead
[ ] Submit operators to both upstream-community-operators and community-operators at once
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description about the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@vkvamsiopsmx can you please rebase to current master. We did some fixes in build system. Thanks

@vkvamsiopsmx Closing due to no acctivity and conflict with master (probably it is in git alreade). Reopen or create new PR when needed


2.3/rc1 bash operator properties - boolean value is not handled properly

Describe the issue
Likely not specific to this operator and a general problem:
To Reproduce
Steps to reproduce the behavior:

Create AA RTC
Create AA pipeline
Add bash operator
Configure required properties without changing anything else
Note that xcom checkbox is selected by default

Save the pipeline
Open the pipeline in a text editor and locate the bashoperator_xcom_push property. It is set to false

This seems to be generating the proper common properties field definition, but the issue seems to be with the control. If you force an update to the value, then it seems to work properly.
      {
        "parameter_ref": "bashoperator_xcom_push",
        "control": "custom",
        "custom_control_id": "BooleanControl",
        "label": {
          "default": "xcom_push"
        },
        "description": {
          "default": "If xcom_push is True, the last line written to stdout\n        will also be pushed to an XCom when the bash command completes. (type: bool)",
          "placement": "on_panel"
        },
        "data": {
          "required": false,
          "format": "bool"
        }
      }


Allow for the request policy to be changed when triggering manual queries

https://spectrum.chat/urql/general/would-it-be-possible-to-add-a-cache-interaction-panel-to-the-dev-tools~69e57921-a5ab-411e-a52b-758735fb99bc
This would allow people to more easily query data directly when debugging what data the cache contains in edge case scenarios where random pieces of queries don't correspond with the UI 1:1, by flipping the policy to cache-only

Thanks for the suggestion @kitten <3
I think this would be a nice addition


docker最新的版本还是上传不了文件

看到更新说支持上传了，看docker也更新了，就更新了下docker，试了下还是不能上传，请问大佬需要什么信息来调试呢？
docker镜像id是：cb969dcc5b23
webdav是：RaiDrive

没用过 RaiDrive，贴一下 docker 容器的日志吧，注意脱敏 refresh token.

没用过 RaiDrive，贴一下 docker 容器的日志吧，注意脱敏 refresh token.

Sep 27 08:46:43.444  INFO aliyundrive_webdav::drive: refresh token succeed refresh_token=**** nick_name=iqVa8z
Sep 27 08:46:43.445  INFO aliyundrive_webdav::drive: found default drive drive_id=8466882
Sep 27 08:46:43.446  INFO aliyundrive_webdav: listening on <IP_ADDRESS>:8080
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31

这个上传的文件大小是？

就一个txt文件，只有几k

看起来是没有获取到上传地址，得具体看下原因。

Sep 27 09:10:12.273  INFO aliyundrive_webdav: listening on <IP_ADDRESS>:8080
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
Sep 27 09:11:18.687 ERROR aliyundrive_webdav::vfs: refresh directory file list failed error=HTTP status client error (429 Too Many Requests) for url (https://api.aliyundrive.com/adrive/v3/file/list)
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
[root@centos7-16 ~]# docker logs 9d2
Sep 27 09:10:12.266  INFO aliyundrive_webdav::drive: refresh token succeed refresh_token=1b17de40b94244a09ac1f5e86c9665fc nick_name=maxd
Sep 27 09:10:12.270  INFO aliyundrive_webdav::drive: found default drive drive_id=1196115
Sep 27 09:10:12.273  INFO aliyundrive_webdav: listening on <IP_ADDRESS>:8080
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
Sep 27 09:11:18.687 ERROR aliyundrive_webdav::vfs: refresh directory file list failed error=HTTP status client error (429 Too Many Requests) for url (https://api.aliyundrive.com/adrive/v3/file/list)
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31

Sep 27 09:10:12.273  INFO aliyundrive_webdav: listening on <IP_ADDRESS>:8080
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
Sep 27 09:11:18.687 ERROR aliyundrive_webdav::vfs: refresh directory file list failed error=HTTP status client error (429 Too Many Requests) for url (https://api.aliyundrive.com/adrive/v3/file/list)
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is<PHONE_NUMBER>3709551615', src/vfs.rs:438:31

@raydoom 你这个也是 RaiDrive 吗？

Blocked by https://github.com/miquels/webdav-handler-rs/issues/17

RaiDrive 不兼容，我试了 macOS 下 ForkLift 是好的。

可以试下 0.4.0：https://github.com/messense/aliyundrive-webdav/releases/tag/v0.4.0

我上传没有问题了

还有问题的话，可以贴下日志 reopen 这个 issue 或者建新的 issue.

大佬又来麻烦你了，我在debian 10上直接挂载，然后往里复制文件，非常不稳定，没有报错却实际没有成功，或者报目录不存在。
挂载命令：
mount -t davfs http://<IP_ADDRESS>:8080 /mnt
复制命令：
就是简单的cp几个文件或目录，文件也不大，不超过50M。

@PHCSJC 可以试一下 0.4.2，修正了创建文件夹之后缓存没有更新的问题，可能和你的问题相关。

Hello 我使用Docker版本，macOS原生Finder挂载后，无法上传文件。返回错误-36.
https://user-images.githubusercontent.com/6239057/137106480-b2d20097-0e29-4be3-86a7-0e796b2ed195.mov
报错为
Oct 13 09:34:09.877 ERROR aliyundrive_webdav::vfs: delete file before upload failed file_name=SuspiciousPackage.dmg error=HTTP status client error (429 Too Many Requests) for url (https://api.aliyundrive.com/v2/recyclebin/trash)

@qinyuhang 不建议用 macOS Finder 挂载，Finder 的行为比较怪异，会发很多 ._ 开头的文件名请求，导致请求量过多被 ratelimt.
可以用 forklift 等支持 WebDAV 的软件。


OS detection error on raspberry pi 3B

As the topic says, I am getting this error when starting the installation. I have installed osmc on it and a plex server.

Could you add Linux mint in supported OS ? Of adding an alert saying it not officialy suported ? It debian based..

I have the same problem with another OS based on debian :(
Linux pihole-server 4.19.0-9-686 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) i686 GNU/Linux
pihole@pihole-server:~$ cat /etc/os-release
PRETTY_NAME="SparkyLinux 5.11 (Nibiru)"
NAME="SparkyLinux"
VERSION_ID="5.11"
VERSION="5.11 (Nibiru)"
ID=sparky
ID_LIKE=debian
HOME_URL="https://sparkylinux.org/"
SUPPORT_URL="https://sparkylinux.org/forum/"
BUG_REPORT_URL="https://sourceforge.net/p/sparkylinux/tickets"


Points re moving microfab to hyperledger-labs

Prime motivation to move to Labs is that it can then be freely referenced in Hyperledger Fabric documentation; whereas with an IBM OS project it's not so appropriate to refer to it.

Adding to the Fabric ecosystem in Hyperledger Labs...
Would it ever graduate? Maybe - but I think we're happy with it's place.
Relation to minifab - needs to be acknowledged?  Yes started comments to position it in the readme
Should all the samples be deployable to microfab?
Build for ARM64 and AMD64 with publishing to the ghcr.io repos..  DONE

Well we're in hyperledger-labs now so... yeah!


Update management-group-and-subscription-organization.md

Updated two design recommendations for MG organization, added references (links) to articles describing how to protect MG hierarchy

@pazdedav : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@pazdedav : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@BrianBlanchard : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@BrianBlanchard : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

#sign-off

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Unused struct is being generated into models.go

sqlc.yaml
version: "1"
packages:
  - name: "authors"
    path: "generated/repo/authors"
    queries: "./files/queries/authors.sql"
    schema: "./files/schema/"
    engine: "postgresql"
    emit_json_tags: true
    emit_prepared_queries: false
    emit_interface: false
    emit_exact_table_names: false
  - name: "books"
    path: "generated/repo/books"
    queries: "./files/queries/books.sql"
    schema: "./files/schema/"
    engine: "postgresql"
    emit_json_tags: true
    emit_prepared_queries: false
    emit_interface: false
    emit_exact_table_names: false

The ./files/schema/ directory contains golang-migrate files.
000001_authors.up.sql
CREATE TABLE authors (
    id   BIGSERIAL PRIMARY KEY,
    name text      NOT NULL,
    bio  text
);

000002_books.up.sql
CREATE TABLE books (
    id SERIAL PRIMARY KEY,
    title VARCHAR(120) NOT NULL
);

And directory ./files/queries contains sql queries for sqlc.
authors.sql
-- name: ListAuthors :many
SELECT * FROM authors
ORDER BY name;

books.sql
-- name: ListBooks :many
SELECT * FROM books;

When I run sqlc generate, it will generate ./generated/repo/authors/ and ./generated/repo/books as expected.
When I see the ./generated/repo/authors/models.go and ./generated/repo/books/models.go, both have 2 struct types which is Author and Book.
models.go
// Code generated by sqlc. DO NOT EDIT.

package books

import (
	"database/sql"
)

type Author struct {
	ID   int64          `json:"id"`
	Name string         `json:"name"`
	Bio  sql.NullString `json:"bio"`
}

type Book struct {
	ID    int32  `json:"id"`
	Title string `json:"title"`
}

In books package, Author type in unused, and in authors package Book type is unused.
I assumed it's generated from database schema because both package use the same schema in sqlc.yaml.
Is it possible not to generate unused struct in models.go?

Is it possible not to generate unused struct in models.go?

Yes, we could change the code generation to not output models for unused tables. Note that you still may run into issues if your a query in books.sql returns results from the authors table.

Hi @kyleconroy are you still considering adding this? I am asking because this has an older milestone set.


Adds support of organization certificate

Added organisation certificate data extraction and appropriate tests.
Signed-off-by: Erkki Arus<EMAIL_ADDRESS>

Abandoned. Needs to be re-implemented.

I cherry-picked the relevant commit from this branch to #28.


Set request version in ListAcls ClusterAdmin method

I have encountered a problem with unavailability to set the request version other than 0 in DescribeAclsRequest when using ListAcls method. So it is not possible to get use of ResourcePatternTypeFilter in AclFilter or get the pattern types in response.
Setting Version in AclFilter itself has no effect because this value is being rewritten in encode method in acl_describe_request.go.
So this PR contains the obvious fix and allows to request pattern types in ListAcls.

Thanks for your contribution; could you please rebase your PR, looks like there's a conflict.

There is no need anymore - PR #1452 was first to do the trick and I am happy with it.
But I suppose that PR could break the backward compatibility. For example before it in order to list all ACLs one should provide such AclFilter:
AclFilter{
        ResourceType: sarama.AclResourceAny,
        Operation:    sarama.AclOperationAny,
        PermissionType: sarama.AclPermissionAny,
}

But after the fix this won't be enough for Kafka 2.0+ because
ResourcePatternTypeFilter: sarama.AclPatternAny
will also be required and the code above will return empty set of ACLs.
My PR expects AclFilter to have Version field explicitly set to 1. So could you please decide whether this is really needed. Otherwise I can just close the PR without resolving the conflict.


OpenFunctions-v2: How to get prompt for multiturn conversation in inference_local.py?

In inference_local.py, get_prompt func just supports single query, so how to get prompt for multiturn conversation?
def get_prompt(user_query: str, functions: list = []) -> str:
    """
    Generates a conversation prompt based on the user's query and a list of functions.

    Parameters:
    - user_query (str): The user's query.
    - functions (list): A list of functions to include in the prompt.

    Returns:
    - str: The formatted conversation prompt.
    """
    system = "You are an AI programming assistant, utilizing the Gorilla LLM model, developed by Gorilla LLM, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer."
    if len(functions) == 0:
        return f"{system}\n### Instruction: <<question>> {user_query}\n### Response: "
    functions_string = json.dumps(functions)
    return f"{system}\n### Instruction: <<function>>{functions_string}\n<<question>>{user_query}\n### Response: "

I try to concat multi-turns as follow:
"Instruction: <>    Response:  Instruction: <>    Response:  ",
but model reject to give an answer.
The outputs is ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"


added search return_type functionality and unit testing

closes: #314

What

Adds functionality to RubiconJSON.search that now allows users to retrieve rubicon objects as well (previously json strings only)
Adds unit testing for 100% file coverage

How to Test

run python -m pytest tests/unit/client/test_rubicon_json_client.py

idk whats up with whitesource, don't worry about it


Private classes   - name 'SerialPortOsdpConnection' is not defined

Following your example code python throws a name error:
conn = SerialPortOsdpConnection(port='/dev/tty.wchusbserial1420', baud_rate=9600)
NameError: name 'SerialPortOsdpConnection' is not defined
I'm not python expert but it seems that all classes in the packare are private (due to the underscore naming)
also tried different import methods but failed - any help welcome

Problem found: do not name the test class like the package ....


Bump Dependencies #2250364729

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/2250364729

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

These changes are merged with the PR https://github.com/wso2/product-is/pull/13604


[gql_websocket_link] uuid package version conflict

Hello, is it possible to update uuid package to ^4.0.0 that the latest graphql package uses & release a new version? Currently, we cannot upgrade graphql version because of this.
I know that I can use dependency overriding but I have a modular project, so I have to use overriding in too many places :/

Sure! A PR would be appreciated, it's probably a small change, maybe even just a version bump if the breaking change does not affect us.
Otherwise I'll have a look, but it could take one or two weeks


[gulp] is still green when colors is false

Even when I pass { colors: false } the log start that says [gulp] is still green. This is because that vlaue is not checked, and the log head is always colored:
https://github.com/alexgorbatchev/gulp-print/blob/master/lib/gulp-print.js#L12

Published in v1.2.0


[k8s-spot-termination-handler] Adding host network option.

Signed-off-by: Alexey Shabalin<EMAIL_ADDRESS>
What this PR does / why we need it:
This PR allows a pod to stick to the host's network which means it doesn't have to go through the network overlay to query the metadata.
This might also be useful when you have a security solution that is filtering requests to the metadata endpoint.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @kierranm

/ok-to-test

/approve

/lgtm


[Mining] Respawn timers often don't appear for wet Calcified rocks

Type
Incorrect behavior
Operating System
Linux
OS Version
Arch Linux
Bug description
When mining Calcified rocks in Cam Torum, the Mining plugin frequently does not show a respawn timer overlay for depleted rocks. This mostly seems to happen when a rock with water oozing down it depletes while you are not mining it. Sometimes if you are mining a wet rock and it depletes, both wet rocks in the area will have a timer, and sometimes only the one you were mining will have a timer.
Screenshots or videos
Water oozing down rocks on the East and West walls, timer on the dry rock I just finished mining

Water veins depleted without respawn timers

RuneLite version
RuneLite version: <IP_ADDRESS>
Launcher version: 2.6.10
Logs
No response

Probably relevant PR: https://github.com/runelite/runelite/pull/17728
Needs to be fixed before it can be merged though (addressing reviewer feedback, probably rebase/changes based on Alex's recent mining commits).


Missed a file from the prototype, so it's not loading

Fix it so the extension starts properly.

False alarm - it was because the extension was untrusted.


Fix xcopy waits confirmation for overwrite & Fix mischeck for event existence

Fix that xcopy on Windows stops and waits for confirmation for overwrite.
exists('#Event') checks if an autocommand for Event is defined, not whether Event is an autocommand event. The correct expression is exists('##Event').

Thank you so much! Cheers 🍻


Array bounds are not checked in jupyter

The jupyter kernel appears not to check array bounds at runtime. This allows buffer overflows to expose memory segments.
Example:
x = [1][1];

should raise an error like
error: argument #1 of "_sel_VxA_" should be legal index into argument #2; types
error: found: int[1]{1}  and  int[1]{1}

However, in jupyter I get
Dimension:  0
Shape    : < >
 0

I can see that this is dumping memory by using it to initialize an array:
reshape([100],[])

Dimension:  1
Shape    : < 100>
< 0  0  0  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 -1 -1  0  0 520192  0 -146381216 1564  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 >

BTW, I noticed this because Example 5 doesn't give an error for reshape([3,0,5], [])[[1,0]] as I had expected.

This might be a more general problem of not detecting runtime errors. For instance, dimensional mismatch is not detected either:
[[1]]+[1]

In jupyter gives
Dimension:  1
Shape    : <  1>
< 2 >

Not
error: Shape of argument #1 of "_sel_VxA_" should match dimensionality of
error: argument #2; types found: int[1]  and  int[1,1]

you can activate the checks.
if you enter %flags, you will see the currently set flags:
-v0 -O0 -noprelude -noinl -specmode aud

which in essence disables all optimisations and does not include any checks.
One can change this manually using %setflags <new-flags>, e.g.,
%setflags -v0 -O0 -noprelude -noinl -specmode aud -check tc

Having said that...... I just tried it. It turns out that our checking for the AUD case is faulty :-(
So in order to get that error checked, one currently needs to enable specialisation to AKD, e.g. by using
%setflags -v0 -O0 -noprelude -noinl -specmode akd -check tc

I tried using AKD but it causes some errors for valid code, e.g.
reshape([], [1])
*** SAC runtime error
*** Assignment with incompatible types found!

shift([0, -22], 0, mat)
*** SAC runtime error
*** Non-negativity constraint violated for scalar SACp_emal_4945__uprf_3517 in /tmp/jup-sac5yx8d6um/tmp0tfljh0r.exe.c:1742.

I don't know enough about AKD specialization to know whether these errors are expected, but it seems like the jupyter default flags should accept the same language as the sac2c default flags. (I'm using glot.io to compare, if that makes a difference.)

wow, amazing!
Goes to show that our testing is primarily done with the standard options enabled......
Here are several things at play.
case 1: [[1]]+[1]   and -check tc.    The reason why this does not flag up the error ultimately lies in the suppression of  all inlining (-noinl) in combination with the module system. Currently, we compile all modules without any checks. Since we inline all of the core functions, compilation with -check tc normally works fine, even if we use functions from our modules.
If, however, we compile with -noinl, then our only chance to get runtime checks for functions from modules happens, when we specialise functions as this leads to new compilations.... if we suppress specialisations (-specmode aud), then we end up calling the precompiled functions which do not contain any checks; even if we compile with -check tc.
The only proper solution to this problem (that I can see :-) is to make the compilation with -check its own SBI (SaC Binary Interface). That way, we would have different versions of modules around, one with checks and one without checks. The main reason this has not been done yet is that we already have quite a few SBIs around (multi-threading / cuda / mpi / ....) and we would need to now create a cross-product of them all .....
case 2: reshape([], [1]) Here we seem to hit a bug in -check t which seems to be triggered by -noinl. Further investigation is needed here.
case 3:shift([0, -22], 0, mat) This is a bug in the constraint generation.... and a nasty one. What we have here boils down to a with-loop with an empty generator where the upper bound is negative. A smaller example is
   a = with {
          ( [0] <= iv < [-5]) : 42;
       } : genarray( [12], 0);

By the time -check c was implemented this was illegal code. Later, we made this legal through a transformation in phase 9 (ewl). Since the check are injected in phase 8 (popt), this is flagged as an error despite the transformation in phase 9 modifying the upper bound to a positive number..... I will file a bug which should be trivial to fix.


Id not set until after hydrate

Due to the TId stuff the repository class doesn't set the entity's Id field until after hydration - which doesn't matter too much, but is a little odd.
There is also a related issue of Id not being set when resolving conflicts

Fixed in version 0.6.0


Add CODEOWNERS file

CODEOWNERS allows github to automatically require code review from the right set of people. Start with defaulting to myself for all files

Let's see how that works first


Events fire but data not yet changed

Here's a simplified example: http://jsfiddle.net/b126tu8L/
<script type="text/ractive" id="foo">
    <select on-change="foo" value="{{ rar }}">
        <option value="1">1</option>
        <option value="2">2</option>
    </select>
</script>

new Ractive({
    template : '#foo',
    el : 'body',
    oninit : function(){
        this.on('foo',function(event){
            debugger;
        });
    }
});

The event fires before any data is modified. In this case, this.data.rar is still 1 after I have selected 2. I expect that on change, the change has already happened, rar should now be 2 by the time the event fired. I need to encapsulate the inner workings, like shadow DOM and only get the values via data or via values sent as attributes.
Thoughts?

Is there any reason you can't use an observer? They are essentially wrapped on-change events.
this.observe('rar', function(n,o,k) {
  debugger;
});

Also here is a filed issue for the exact same thing. Looks like this is a known behavior: https://github.com/ractivejs/ractive/issues/1371

@Madgvox Sorry for the late reply. I'm not using two-way binding and observers (avoiding two-way magic at the moment). Also creating components like custom select boxes which can also work in non-two-way mode.


[gitlab] Add 14.10

https://about.gitlab.com/releases/2022/04/22/gitlab-14-10-released/

Converted to draft because the sorting is not okay yet...


Stacking columns on mobile

Hello everyone,
Is it possible to change the stacking order of the columns in the MJML framework. For example I have in my template the following structure:
"image""text"
"text""image"
"image""text"
I would like to structure it on mobile so that it is always "image" first and then "text". Is this possible?

Hi @ketschi-max
You can do it with the direction attribute on section, you can find the usecase here : https://medium.com/mjml-making-responsive-email-easy/mjml-reaches-another-level-with-the-release-of-v3-945d0d988d97#6d77

Hi @iRyusa
Thank you for your quick reply, works like a charm!


Yield issue after Sunset with Battery

Describe the bug
I use the integration with Inverter and Battery. Unfortunately, Daily Yield seems to calculate Battery (and Inverter) consumption.  So, after sunset*, when Battery is delivering power, Daily Yield is decreasing and causes an error in the solar production graph of Home Assistant.
On FusionSolar web and app, we can see Yield decreased while Battery delivers current.
*Check this post : https://forums.moneysavingexpert.com/discussion/comment/80098608/#Comment_80098608
Debug information
Answer the questions below before submitting a new issue.

Are you using the latest version of Home Assistant? Yes
Are you using the latest version of this integration? Yes
Have you looked into the closed issues and did not find a similar issue. Yes
Are you using Kiosk or Northbound / OpenAPI mode? OpenAPI mode
If you are using Kiosk mode. Have you checked that the url is still valid? See I am using the kiosk mode, but the data is not updating
If you ar using Northbound / OpenAPI mode. Check if your credentials are still valid. See How can I verify my Northbound API / OpenAPI credentials? Still valid
Have you checked the logs for any info? Yes

To Reproduce
Steps to reproduce the behavior:

Go to 'Energy Dashboard'
See error on Solar Production graph

Expected behavior
As sensor.xxx_total_current_day_energy is used as solar panel sensor, it should have another sensor that doesn't take count of Battery and Inverter consumption.
Screenshots

The integration does not do any calculations. It uses the data received from the Huawei Fusion Solar API.

If anyone else get stuck with this, solution seems be done at https://github.com/wlcrs/huawei_solar/wiki/Daily-Solar-Yield


Some panics found by fuzzing

Reproducer
This case panicked at 'internal error: entered unreachable code'
    let data=[1,0,0,0];
    let _local0 = lofty::id3::v2::Id3v2Tag::new();
    let _local1_param0_helper1 = &(_local0);
    let _local1 = lofty::id3::v2::Id3v2Tag::original_version(_local1_param0_helper1);
    let _local2_param0_helper1 = &mut (&data[..]);
    let _: lofty::error::Result::<std::option::Option::<lofty::id3::v2::ExtendedTextFrame>> = lofty::id3::v2::ExtendedTextFrame::parse(_local2_param0_helper1, _local1);

Panic information:
thread 'main' panicked at 'internal error: entered unreachable code', /home/jjf/Fuzzing-Target-Generator/experiments/lofty-rs/src/id3/v2/items/extended_text_frame.rs:94:22
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: lofty::id3::v2::items::extended_text_frame::ExtendedTextFrame::parse
             at ./src/id3/v2/items/extended_text_frame.rs:94:10
   4: replay_lofty16::test_function16
             at ./fuzz_target/build/replay_lofty16/src/main.rs:16:95
   5: replay_lofty16::main
             at ./fuzz_target/build/replay_lofty16/src/main.rs:48:5
   6: core::ops::function::FnOnce::call_once
             at /home/jjf/Fuzzing-Target-Generator/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

This case panicked at 'attempt to add with overflow'
    let data=[57, 25, 25, 0, 4, 1, 54, 0, 51, 6, 6, 6, 25, 25, 25, 129, 6, 151, 28, 25, 25, 0, 51, 51, 50, 5, 5, 5, 26, 5, 5, 25, 6, 6, 25, 26, 246, 25, 25, 129, 6, 151, 3, 252, 56, 0, 53, 56, 55, 52];
    let _local0 = <lofty::ParsingMode as std::default::Default>::default();
    let _local1_param0_helper1 = &mut (&data[..]);
    let _: lofty::error::Result::<std::option::Option::<lofty::id3::v2::RelativeVolumeAdjustmentFrame>> = lofty::id3::v2::RelativeVolumeAdjustmentFrame::parse(_local1_param0_helper1, _local0);

panic information:
thread 'main' panicked at 'attempt to add with overflow', /home/jjf/Fuzzing-Target-Generator/experiments/lofty-rs/src/id3/v2/items/relative_volume_adjustment_frame.rs:130:47
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: lofty::id3::v2::items::relative_volume_adjustment_frame::RelativeVolumeAdjustmentFrame::parse
             at ./src/id3/v2/items/relative_volume_adjustment_frame.rs:130:35
   4: replay_lofty11::test_function11
             at ./fuzz_target/build/replay_lofty11/src/main.rs:14:107
   5: replay_lofty11::main
             at ./fuzz_target/build/replay_lofty11/src/main.rs:46:5
   6: core::ops::function::FnOnce::call_once
             at /home/jjf/Fuzzing-Target-Generator/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Summary
Hi, I am fuzzing this library with afl.rs, and I have found some panics. The version I test is 0.17.1. I hope you can check whether these cases are bugs.
Expected behavior
The first case should not reach unreachable code. Instead it should be reasonable to return an Result::Error.
The second case should not panic at 'attempt to add with overflow'.
Assets
No response

Thanks for the response, do you think these panics are really bugs? I think unreachable and overflow panics should not appear in any situation.

Yes, they are bugs. I had not accounted for these situations, so there are instances of unchecked math and broken assumptions from time to time.


Issue running multiple test client tests: Route already registered

Hello,
I have an app that looks something like this:
app.py
from core.routes import add_core_routes
from sanic import Sanic

app = Sanic(__name__)

@app.listener('before_server_start')
async def add_routes(app, loop):
    await add_core_routes(app, loop)

if __name__ == '__main__':
    app.run(host='<IP_ADDRESS>', port=8080, workers=4, debug=True)

core/routes.py
def get_healthcheck(loop):
    async def healthcheck(request):
        # Some healthcheck that uses the loop
    return healthcheck

async def add_core_routes(app, loop):
    app.add_route(get_healthcheck(loop), '/healthcheck/', methods=['GET'])

tests/test_healthcheck.py
import unittest
from app import app

class HealthcheckTestCase(unittest.TestCase):

    def test_success(self):
        req, resp = app.test_client.get('/healthcheck/')
        self.assertEqual(resp.status, 200)

    def test_fail(self):
        req, resp = app.test_client.get('/healthcheck/')
        self.assertEqual(resp.status, 500)

Whenever I try to run the tests using python -m unittest discover I get the error sanic.router.RouteExists: Route already registered: /healthcheck/ [GET] on the second test.
Is this a bug or am I doing something wrong?
Your help is much appreciated.

usually, you should not use the global app for testing.
You may also need Setup/TearDown in your TestCase.

I'd suggest you to use pytest https://docs.pytest.org/en/latest/

BTW, it errors out because the app.test_client calls app.run in each single call. https://github.com/channelcat/sanic/blob/master/sanic/testing.py#L69

Are you suggesting that I wrap
app = Sanic(__name__)

@app.listener('before_server_start')
async def add_routes(app, loop):
    await add_core_routes(app, loop)

in a function and call it in app.py and also in a setUp method on my tests? What if I want to do multiple client calls in the same test? Do I have to create a new app for every one?

you can try initialize app in Setup, and clean it up in teardown. Also share the same app inside your TestCase.

That still doesn't allow me to make multiple client calls in the same test function.

This feels like a bug to me. I'm happy to make a PR if you can point me in the right direction? Perhaps test_client needs to be a function that sets up an app that runs once and is shared amongst all calls to that client?

i tried
def test_sync():
    app = Sanic('test_text')

    @app.route('/')
    def handler(request):
        return text('Hello')

    request, response = app.test_client.get('/')

    assert response.text == 'Hello'

    request, response = app.test_client.get('/')

    assert response.text == 'Hello'

works fine for me.

But yes, i agree, just running once is good.

This issue stagnated and I'm pretty sure current testing has only one setup/teardown.


Scala 2.13 cross-build upgrade

Scala 2.13 port of scalanet is a blocker to Mantis backlog task.
A library can be built now against both - 2.12 and 2.13 targets.
Further advice is needed regarding documentation and publishment.

Thank you for figuring out the cross build, good job!
Thanks :) I hope my effort will make this project even better.

Are all commands the same, does it automatically publish both versions?
No, the pull request is still draft, hope I can finish the work in 2-3 days.
Documentation update is not ready as well

I wonder why we don't have any build show up in https://app.circleci.com/pipelines/github/input-output-hk/scalanet
Can't remember if it happens for draft PRs. Maybe you have to be part of some group to have your commits trigger builds?

Closed in favor of https://github.com/input-output-hk/scalanet/pull/113


Multi stage queries are failing

I am trying to do the hello world multi stage query, and I'm getting the following error
com.datastax.driver.core.exceptions.SyntaxError: line 8:0 missing EOF at 'CREATE' (... KEY (id))-- stage: 2[CREATE] TABLE...)

-- description: creates users and groups tables
-- authoredAt:<PHONE_NUMBER>000
-- up:

-- stage: 1
CREATE TABLE groups (
  id uuid,
  name text,
  PRIMARY KEY (id)
)

-- stage: 2
CREATE TABLE users (
  id uuid,
  group_id uuid,
  username text,
  password text,
  PRIMARY KEY (id)
)

-- down:

-- stage: 1
DROP TABLE users

-- stage: 2
DROP TABLE groups

Is there any reason this query should be failing?
c* 3.0.9
cqlsh 5.0.1
CQL spec 3.4.0

Are you sure that the pillar version we're using here already supports multiple stages?

it does not, ill close this issue.


gitu: 0.23.1 -> 0.24.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/altsem/gitu/releases.
meta.description for gitu is: TUI Git client inspired by Magit
meta.homepage for gitu is: https://github.com/altsem/gitu
meta.changelog for gitu is: https://github.com/altsem/gitu/blob/v0.24.0/CHANGELOG.md
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.24.0 with grep in /nix/store/60qmdjba5xd1hdz6bq2ysv3854rx3cij-gitu-0.24.0
found 0.24.0 in filename of file in /nix/store/60qmdjba5xd1hdz6bq2ysv3854rx3cij-gitu-0.24.0

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

gitu

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/60qmdjba5xd1hdz6bq2ysv3854rx3cij-gitu-0.24.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gitu https://github.com/r-ryantm/nixpkgs/archive/2b86917e7a7738a98f8687a23460350c75a4b63a.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/2b86917e7a7738a98f8687a23460350c75a4b63a#gitu

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/60qmdjba5xd1hdz6bq2ysv3854rx3cij-gitu-0.24.0
ls -la /nix/store/60qmdjba5xd1hdz6bq2ysv3854rx3cij-gitu-0.24.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gitu

Maintainer pings
cc @evanrichter for testing.

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

@NixOS/nixpkgs-merge-bot merge


WSL bash crashes (0x800704c8) over WSL ssh to Windows 10 OpenSSH server

Your Windows build number:  (Type ver at a Windows Command Prompt)
Microsoft Windows [Version 10.0.16299.192]

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)

Install WSL and Windows OpenSSH Server (beta)
start WSL bash
ssh to localhost
run WSL bash
Note that bash crashes

What's wrong / what should be happening instead:

Using bash over ssh with the Windows 10 OpenSSH server, if you ssh in you get a cmd.exe shell. If you then run bash you get:
C:\Users\aaron>bash
Error: 0x800704c8
Press any key to continue...

If you run cmd.exe locally, and the run bash, no problem. It only crashes like this over ssh.
Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\aaron>bash
aaron@foo:/mnt/c/Users/aaron$

Strace of the failing command, if applicable:  (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here)

Not really possible? Because I can't get into bash to trace it.

@jstarks Can I get a build # for this fix? I just recently upgraded to V 10.0.16299.402 and the issue is still persisting. Has the fix not made it to production yet?

The fix is in the Windows 10 April 2018 update, which will be publicly available on April 30.

Great news @jstarks, thanks again for the fix.
Four-month waits for a bug fix like this show why WSL should be unbundled from Windows 10. It should be an application download you can install separately and update weekly if you want.
Remember when we used to have to live with heinous builds of IE because it was 'part of Windows'. Why are we going back to that @jstarks?  You guys did the good work and fixed this bug months ago, why can't Microsoft let you release even a bug fix more often that 2-3 times a year?

Hello, I got this identical problem when trying to launch bash on my Windows server running Windows 10 version 10.0.16299.726, which is the October 9, 2018 version. Is this known?


Turbine Valve + RFTool's Power Monitor = Crash

Issue description:
When I broke a block of my fully formed Turbine that was being monitored by an RFTools' RF Power Monitor the server got locked into a crash loop.
Steps to reproduce:

Form a Turbine
Use RFtool's power monitor on turbine valve
Break a block of the turbine

Version (make sure you are on the latest version before reporting):
Minecraft: 1.11.2
Forge: 2388
Mekanism: <IP_ADDRESS>7
RFTools: 6.10
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
crash-2017-07-10_15.51.58-server.txt
https://github.com/aidancbrady/Mekanism/issues/4522

Can be closed ;) It's a Mekanism issue.


MacOS - cannot fetch event from a worker thread (OS X restriction)

sweep firmware version
1.4
libsweep version + affected bindings
1.2.1
libsweep/examples/viewer.cc
operating system
macOS Sierra 10.12.5
Platform/Hardware Setup
MacBook pro 12,5 (2015)
Description:

In /libsweep/examples/ when i run example-viewer, it repeatedly gives me the message:
"cannot fetch event from a worker thread (OS X restriction)"

Seems like a macOS limitation we're hitting with sfml2 here:
https://github.com/SFML/SFML/blob/bd479c4454c0322f60386e5644495400703e41f3/src/SFML/Window/OSX/SFViewController.mm#L243-L261
which means we can not handle events in the worker thread here. We could work around that by scanning in the worker thread and doing all event polling and rendering in the main thread.


Can you pass tracID from the front end to the back end to form a complete chain of calls?

RT

I think you don't mean front end. Front end is still a server.
We don't support tracing from browser. Read the document, https://github.com/apache/skywalking-client-js
It is very clear.

How can I understand this sentence

Search WIP?
https://www.google.com/search?q=WIP&oq=WIP&aqs=chrome..69i57j0j46i131i199i291i433j0l2j0i131i433j69i61l2.602j0j7&sourceid=chrome&ie=UTF-8

ok. thank you

may i know when a version well be released ? i'll try it

It depends on contributors. We don't set the deadline. If you are urgent, try to contribute, this is how open source works.


Zuul proxy rewrites POST body for x-www-form-urlencoded Content-Type

With Zuul proxy, POST body of a x-www-form-urlencoded Content-Type the url encoded characters changed from lowercase to upper case
For example:
The following curl request to the zuul instance
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'c_date=08%2f16%2f2016+08%3a36%3a09.258' "http://localhost"
Is proxied and received with the following body: c_date=08%2F16%2F2016+08%3A36%3A09.258
Tried both with org.springframework.cloud:spring-cloud-starter-parent:Brixton.SR4 version and with org.springframework.cloud:spring-cloud-netflix:1.2.0.BUILD-SNAPSHOT.
Also tried to configure RibbonCommandFactory to HttpClientRibbonCommandFactory but still get the same result.
Thanks!

That's because the request is decoded in the proxy and reencoded in FormBodyWrapperFilter (the buildContentData() method more precisely).
I'm curious as to why this is a problem? I believe percentage encoding should not be case sensitive per this rfc https://tools.ietf.org/html/rfc3986#section-2.1.

We receive webhooks from a 3rd party, after receiving the POST request we need to verify the authenticity of it by sending the exact body to a verification url.
Any way to proxy the request as is?

I guess your verification endpoint should only check the decoded output? This way you're not sensitive to these kind of issues.
As of today, there is no easy way to do this. The only was I see is to disable the FormBodyWrapperFilter by setting the key zuul.FormBodyWrapperFilter.pre.disable to true in Archaius and by coding your own filter that doesn't decode/encode the form params (I'm not sure there is an easy way to fetch those in HttpServletRequest, I might be wrong though).

Closing with a 👍 to @jebeaudet comments.


Possible bug?

let _checkParameters = function (sab, loc, truth, who) {
    if (!(sab instanceof SharedArrayBuffer &&
	  loc|0 == loc &&
	  loc >= 0 &&
	  loc % truth.ALIGN == 0 &&
	  loc + truth.NUMBYTES <= sab.byteLength))
    {
	throw new Error("Bad arguments to " + who + ": " + sab + " " + loc);
    }
}

== has a higher priority then |. Thus loc|0 == loc means loc | (0 == loc), which is always non-zero ( effectively true )

Thank you, will fix this.


MEG file format "KRISS" mentions *_digitizer.txt file (and suffix) which is not defined in the spec

See title.
https://bids-specification.readthedocs.io/en/latest/appendices/meg-file-formats.html#kriss

Each experimental run on the KRISS system produces a file with extension .kdf. Additional files can be available in the same directory: the digitized positions of the head points (_digitizer.txt), the position of the center of the MEG coils (.chn) and the event markers (.trg).

(emphasis by me)
How I read it, _digitizer.txt should be _headshape.<ext>, which is defined in the spec, and which fulfills exactly that use case (digitizing head points, and optionally electrodes).
Unfortunately, digitizer is defined in the bids-validator, see:

https://github.com/bids-standard/bids-validator/blob/d6d2f9d7ac00e6b21f7fca6fcad3d9a5878868e0/bids-validator/bids_validator/rules/file_level_rules.json#L476
https://github.com/bids-standard/bids-validator/blob/d6d2f9d7ac00e6b21f7fca6fcad3d9a5878868e0/bids-validator/tests/type.spec.js#L270

Was there a reason to name this _digitizer.txt for the KRISS MEG data format, and _headshape.<ext> for all other MEG data formats? Or was this simply an oversight? Either way, we need to clarify this and either:

properly introduce _digitizer in the spec
completely remove _digitizer from (i) the appendix in which it is mentioned, (ii) the bids-validator

Related to:

https://github.com/bids-standard/bids-specification/issues/20
https://github.com/bids-standard/bids-specification/issues/1550

cc @robertoostenveld your opinion would be valuable here

Disclaimer: I don't know details about the KRISS system and file format.
I don't recall having discussed in the development of the MEG specification that the digitized head shape information for the KRISS format should be stored in the _digitizer.txt file. To me it would also make more sense if the file were called _headshape.txt.


Persistence implementation incomplete

It looks like the persistance implementation is at least in the light_eth example not complete. Storing seems to work when this line is changed, but loading is not implemented. Persistence works in the onoff_light example of rs-matter.

Yes, unfortunately. I'm neck deep into implementing memory optimizations and some commissioning-related improvements to the underlying rs-matter. I hope in a month or so to be able to get back to this.
In the meantime, you could try to fix it and open a PR.


Deprecation of jcenter()

jcenter is deprecated, and will stop working on Feb 1, 2022. Will this library move to mavenCentral?

I think the project has been abandoned.


Create page for viewing survey data when clicking on a row in the admin survey view

Forgot to close this!


chore(deps): bump https://github.com/jenkins-x/jx-cli to 3.0.148

Update jenkins-x/jx-cli to 3.0.148
Command run was ./promote/main

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign hferentschik
You can assign the PR to them by writing /assign @hferentschik in a comment when ready.
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


Tidy up script.

Read the contribution guidelines
Include a reference to a related issue in this repository
A description of the changes proposed in the pull request
Replace exit_on_failure calls with set -e
Add set -o pipefail for extra checks
minify cleanup function
remove redundant reschedule env var (wrong version of swarm!)

@amouat can you rebase this please?

Snuck in some docs at the same time, which may be bad form.

@amouat Can you please rebase this PR?

Rebased - sorry about delay; conferences then holiday got in the way.


docs: environment variables supported by v0.33

Add a page to the documentation for environment variables added in #1439

Looks good! We'll merge after 0.33 goes out.


Add molecule status functional test

Added a status functional test for the openstack driver.  This
test caught a bug, where the inventory_file was attempting to be
read, when it did not yet exist.

  syntax: commands succeeded
  py27-ansible19-unit: commands succeeded
  py27-ansible19-functional: commands succeeded
  py27-ansible20-unit: commands succeeded
  py27-ansible20-functional: commands succeeded
  py27-ansible21-unit: commands succeeded
  py27-ansible21-functional: commands succeeded
  docs: commands succeeded
  congratulations :)

What happens if there is no inventory file?

What happens if there is no inventory file?

Reports a proper status.  See the functional tests.
not_created

Looks fine:+1:


Description doesn't allow linebreaks

Just pasted a longer list of items. In the preview the line-breaks are already gone, rendering the list almost unreadable, which is rather bad if we want people to add longer descriptions in that field.

The linebreaks are there in the textDescription variable. The problem is that without using <pre> or parsing the text (to insert <p>s instead of the \ns), the linebreaks get swallowed as part of the default html-rendering-behaviour.

implemented and deployed on master