Partialy staged hunks are not reported as accurately

Description
When partially staging a hunk (e.g: only staging the middle line of a 5-line hunk), the whole hunk's sign changes to the "staged" (dimmer) sign.
The unstaged lines should keep their "unstaged" sign, and the staged one the "staged" sign.
A similar problem that I've noticed is when staging a hunk, then modifying it (e.g: staging a 5-line hunk, then adding a line in the middle).
I remember this not being an issue in a previous version of gitsigns.nvim (haven't tried bisecting it yet).
Neovim version
0.10.0
Operating system and version
NixOS unstable
Expected behavior
No response
Actual behavior
Only the middle line (3) has been staged in the following screenshot:

It looks like the whole hunk has been staged.
I would expect to instead have 2 "unstaged" (bright green), one "staged" (dull green), and two "unstaged".
Minimal config
for name, url in pairs{
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} do
local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
end
vim.opt.runtimepath:append(install_path)
end

require('gitsigns').setup{
  debug_mode = true, -- You must add this to enable debug messages
  -- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}

-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE

Steps to reproduce

git init test
cd test
Emulate partial staging:

echo '3' > test
git add test
printf "1\n2\n3\n4\n5\n" > test

nvim test

Gitsigns debug messages
No response
Gitsigns cache
No response

Is it the same as #929?

@gegoune ah yes thank you, I'd tried searching for it but didn't find it. Closing as dupe.


Сonnection not occuring if json have blackslash

I have this config
{
	"name": "local.vagrant",
	"cmd": "ssh<EMAIL_ADDRESS>-i /Volumes/Data/Virtual\\ Machines/Vagrant/.vagrant/machines/default/parallels/private_key"
}

Shuttle parsing it correctly. But there is no reaction if I click menu item "local.vagrant"

Hi @indapublic, This is because your path has a space. See https://github.com/fitztrev/shuttle/issues/86, you want to escape your space using 4qty \\\\ like this:
/Data/Virtual\\\\ Machines/Vagrant/
Let us know if that works for you!

@thshdw, yes, it works! Thank you very much

@indapublic You're Welcome! :smile:


Removed TS troubleshooting sections

These troubleshooting sections have been solved by typegen, so we can remove them.

@davidkpiano I was thinking about this, but I'm not sure they are - if the official advice of the library is to 'use typegen', which fixes these problems, then it doesn't make sense to keep around detailed explanations of lesser solutions.

@davidkpiano I was thinking about this, but I'm not sure they are - if the official advice of the library is to 'use typegen', which fixes these problems, then it doesn't make sense to keep around detailed explanations of lesser solutions.

But there currently are situations where using typegen is not possible (different IDEs, CodeSandbox, etc.)
IMO, if the answer to the question "Is it possible for a user to run into these problems under normal usage?" is "yes", then the troubleshooting advice should still stay there. Removing it has, at best, a net-zero benefit for the user, and at worst, it's removed so they will inevitably ask for troubleshooting help instead of referring to the documentation.
Using XState without typegen should still be considered normal usage.

@davidkpiano Agreed, maybe when we release the CLI we can ditch this.
I do think removing excessive documentation is a positive for the user. I.e. why have things on the docs site if they're not useful?

@davidkpiano Agreed, maybe when we release the CLI we can ditch this.
I do think removing excessive documentation is a positive for the user. I.e. why have things on the docs site if they're not useful?

That's a good discussion point (cc. @laurakalbag) - IMO, troubleshooting information is not read like normal docs. Users typically won't read through an entire troubleshooting section; they're likely going to just find (ctrl-f) the exact problem they're having.
In that case, having more troubleshooting info is much better than having less. Not finding the thing you're trying to troubleshoot is much more frustrating than thinking "there is too much troubleshooting info".

@davidkpiano Yes, though maybe we should present it in a different way - i.e. in an accordion or on a separate page.

@davidkpiano Yes, though maybe we should present it in a different way - i.e. in an accordion or on a separate page.

Good idea, maybe <summary><details>?


Removed repeated meta tags, renamed java class, headings changed

**Analysis of the program.**

The project appears to be an application for hotel or overnight stay management.
Was the program available in UC Github on time?
Yes the program was available.
Is the program documented/commented well enough for you to understand?
The program was understandable from the code available.
Does the program compile?
The program does compile.

Linting failed. See the error logs. Especially for CSS / HTML one. We have a coding rule and you need to follow that.


Ambiguous occurrence ‘Rec’ on plutus-ir/src/PlutusIR/Generators/AST.hs

Summary
plutus-ir/src/PlutusIR/Generators/AST.hs:41:31: error:
    Ambiguous occurrence ‘Rec’
    It could refer to
       either ‘PlutusIR.Rec’,
              imported from ‘PlutusIR’ at plutus-ir/src/PlutusIR/Generators/AST.hs:16:1-25
              (and originally defined in ‘PlutusIR.Core.Type’
                 at plutus-ir/src/PlutusIR/Core/Type.hs:64:29-31)
           or ‘Hedgehog.Rec’,
              imported from ‘Hedgehog’ at plutus-ir/src/PlutusIR/Generators/AST.hs:23:1-55
              (and originally defined in ‘barbies-<IP_ADDRESS>:Data.Generics.GenericN’)
   |
41 | genRecursivity = Gen.element [Rec, NonRec]

Steps to reproduce the behavior

Build a plutus project like:

cabal build plutus-core -w ghc

It barks like:

plutus-ir/src/PlutusIR/Generators/AST.hs:41:31: error:
    Ambiguous occurrence ‘Rec’
    It could refer to
       either ‘PlutusIR.Rec’,
              imported from ‘PlutusIR’ at plutus-ir/src/PlutusIR/Generators/AST.hs:16:1-25
              (and originally defined in ‘PlutusIR.Core.Type’
                 at plutus-ir/src/PlutusIR/Core/Type.hs:64:29-31)
           or ‘Hedgehog.Rec’,
              imported from ‘Hedgehog’ at plutus-ir/src/PlutusIR/Generators/AST.hs:23:1-55
              (and originally defined in ‘barbies-<IP_ADDRESS>:Data.Generics.GenericN’)
   |
41 | genRecursivity = Gen.element [Rec, NonRec]

Actual Result
plutus-ir/src/PlutusIR/Generators/AST.hs:41:31: error:
    Ambiguous occurrence ‘Rec’
    It could refer to
       either ‘PlutusIR.Rec’,
              imported from ‘PlutusIR’ at plutus-ir/src/PlutusIR/Generators/AST.hs:16:1-25
              (and originally defined in ‘PlutusIR.Core.Type’
                 at plutus-ir/src/PlutusIR/Core/Type.hs:64:29-31)
           or ‘Hedgehog.Rec’,
              imported from ‘Hedgehog’ at plutus-ir/src/PlutusIR/Generators/AST.hs:23:1-55
              (and originally defined in ‘barbies-<IP_ADDRESS>:Data.Generics.GenericN’)
   |
41 | genRecursivity = Gen.element [Rec, NonRec]

Expected Result
It shouldn't bark that error.
Describe the approach you would take to fix this
No response
System info
Debian GNU/Linux 10.11
cabal-install version <IP_ADDRESS>
compiled using version <IP_ADDRESS> of the Cabal library
The Glorious Glasgow Haskell Compilation System, version 8.10.4

Add  build-depends: base >= 4.9 && < 5


Inaccuracy in comparisons guide (Ember)

In https://vuejs.org/v2/guide/comparison.html we can read:

Performance-wise, Vue outperforms Ember by a fair margin, even after the latest Glimmer engine update in Ember 2.0.

This is no longer the case with Glimmer 2 which landed in Ember 2.10. I'm not sure what the figures are now, but I'm pretty sure that "outperforms Ember by a fair margin" is an inaccuracy.

It's still true, unfortunately. According to this 3rd-party benchmark, Ember is still more than 40% slower overall and some operations, such as element creation, are even twice as slow. Startup time is even more than 400% slower. The Glimmer update has improved things, but not significantly enough and Vue has also continued to improve.

I just added a link to that benchmark in the ember section of the comparisons page.

Thanks.

@miguelcobain Thanks for helping us keep the docs up-to-date! The JavaScript world moves fast, so we do sometimes miss things - and this page is especially important to keep an eye on, to avoid accidentally starting a flame war!

@chrisvfritz no problem! :)
I'm pretty sure this sentence will become inaccurate when glimmer.js components land in ember. But we're not there yet.
I'll try to remember to revisit this issue when that time comes. Thanks!


Auto relaunch game mode

Add a mode where game launched will always be relaunched if it crashes.
Should be put in the configuration of the game

Implemented with https://github.com/MrEliptik/game_launcher/pull/22, thanks @Loxtir !


How to get nested values without writing boilerplate code?

Is there a way to avoid writing boilerplate nested classes to get deeply nested values? Having json object like this:
{
  name: {
    first: "Taras",
    last: "Shevchenko"
  }
  ...
}

To just get first name of the user I'm forced to create another class:
class User {
  final UserName name;
  ...
}

class UserName {
  final String first;
  final String last;
}

It would be great if It could be written with json pointer syntax like following:
class User {
  @JsonKey(name: "name/first")
  final UserName name;
   ...
}

Duplicate of https://github.com/dart-lang/json_serializable/issues/490


Unable to redefine video source

I wanted to change the video source from my camera to a Nest cam public link. I tried to change the source argument to a URL but it didn't work out. Does anyone know how to do this? I'm kind of new to React so any help would be nice.

I haven’t used nest before, but I assume you would need to intercept a udp/rtp stream of some sort and pipe it to the browser as hls or mpeg dash. An easier approach might be to create a chrome extension that runs object detection on the actual nest website

Yes, I can generate a public link (.m3u8) which can view the video stream. The thing is that I wanted to integrate this video to be processed natively by the code. Like the other branch you have, the stand alone video.

Oh okay cool, I was actually working on a project last weekend that uses .m3u8 I ended up using https://github.com/video-dev/hls.js/ I can try do upload the project here when I get a chance. Would you mind sharing the public link for testing purposes?

It would be great if you could upload this project. I'd be very helpful.
About the public Nest link, I'd rather not share it for privacy reasons; it records my house 24/7. But there's a lot of free and public MPEG-DASH and HLS example test streams links, like this one.

Yea, of course, no problem :) I'll check those out and upload the code when I have something working

@bourdakos1 any news on this code? I'd like to start using it with the Nest cam for some projects :)

Oh sorry, yea I got something working but I forgot to upload the code. Do you mind re-opening this issue on the “training” repo?

code available at https://github.com/cloud-annotations/object-detection-live-stream


[BUG] - How can I defined custom breakpoints in createTheme?

Describe the bug
Hello, how can I define custom breakpoints. I am not finding any documentation about custom breakpoints. I am trying with this-
theme.ts-
export const darkTheme = createTheme({
    type: 'dark',
    theme: {
        colors: {
            background: "#363449",
            text: '#fff',
            primary: '#87ef17',
            myDarkColor: '#ff4ecd',
            primarySolidHover: '#fff316',
        },
        space: {},
        fonts: {},
        breakpoints: {
            xxs: 360,
            ...........,
            xxl: 1920
        }
    }
});

And then in Container component
<Container xxl>
     ....
</Container>

Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Then after running my site, I can see custom breakpoints width not working as well.
Expected behavior
It should be capable to define custom breakpoints in createTheme and then it should work anywhere search as container tag.
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome

<Container css={{ maxWidth: '$breakpoints$xxs' }}>

Then how can I do responsive css

Not working. Please tell me the actual way

look at this example maybe it can help u
https://codesandbox.io/s/nextui-custom-breakpoints-media-queries-demo-ixiy3h

Then responsive css not working-
export const theme= createTheme({
    type: 'light',
    theme: {
        colors: {
            background: "#363449",
            text: '#fff',
            primary: '#87ef17',
            myDarkColor: '#ff4ecd',
            primarySolidHover: '#fff316',
        },
        space: {},
        fonts: {},
        breakpoints: {
            xxl: "120px",
            smd: "768px",
        }
    }
})

Then css for responsiveness -
<Text css={{
  color: "yellow",
  "@smd": {
    color: "red"
  }
}}>Hello World</Text>

This is not working. Can you describe briefly about custom breakpoints with responsive css.

https://codesandbox.io/s/nextui-styledcomponent-demo-ixiy3h
use styled components using stitches css
https://nextui.org/docs/theme/override-styles#using-the-styled-function
https://stitches.dev/docs/variants

This is disappointing. I hope you will make it easier.

If it can be done with css props. Then it will be easier. Styled component is disappointing.

is this what u want to do?
      <Text
        css={{
          color: "yellow",
          "@media(max-width: 320px)": {
            color: "red"
          }
        }}
      >
        Hello World
      </Text>

It will be more user friendly when we can add custom breakpoints and we can use that in css, props.

I believe this is a duplicate of https://github.com/nextui-org/nextui/issues/855
but I will paste my answer here as well
@siamahnaf198   I was able to easily make my own custom breakpoints by forking nextui project, then editing the default breakpoints https://github.com/nextui-org/nextui/blob/f85a569b4782e99124c752269867272dc91f6313/packages/react/src/theme/common.ts line 154
yarn install && yarn build:nextui
cd packages/react && yarn pack
//then in your project
npm i ~/path/to/package.tgz

I know it's not ideal, but it's an easy and quick workaround for now.
If you look at https://github.com/nextui-org/nextui/blob/f85a569b4782e99124c752269867272dc91f6313/packages/react/src/theme/stitches.config.ts
The nextui project seems to need to hold a ref to the stitches theme object which is created at lib initialization.
The feature we need would probably require quite a bit of work, I'm just getting into nextui and stitches so I can't tell.

I want to create custom breakpoints directly in theme object. Is this possible yet?

Hey please update to v2 https://nextui.org/blog/nextui-v2 and use TailwindCSS built-in breakpoints


Reference broken

The reference to AsRandomAccessStream broken.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: eef8d8f8-37d6-391d-3c67-9fbcf9cfd8ca
Version Independent ID: d2b48dc4-4f60-a8e5-847d-311485809301
Content: BitmapSource.SetSourceAsync(IRandomAccessStream) Method (Windows.UI.Xaml.Media.Imaging) - Windows UWP applications
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.ui.xaml.media.imaging.bitmapsource.yml&version=GBlive&_a=contents
Product: uwp
Git Login: jwmsft
Microsoft Alias: jimwalk

The link seems to be working now, can you try again?


Mixing two videos causes memory warning and crash

I'm trying to add some video overlay on video from phone's library but if my video is more than 30 sec I get memory warning and crash after that.
My code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  NSString *media_type = [info objectForKey:UIImagePickerControllerMediaType];
  if ([media_type isEqualToString:(NSString*)kUTTypeImage])	{
    UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
    if (!image) {
      [[[UIAlertView alloc] initWithTitle:@"Can't load the image"
                                  message:@"Error has been occured during loading image."
                                 delegate:nil
                        cancelButtonTitle:@"Dismiss"
                        otherButtonTitles:nil] show];
      [picker dismissViewControllerAnimated:NO completion:nil];

      return;
    }

    [picker dismissViewControllerAnimated:YES completion:^{

    }];
  } else if ([media_type isEqualToString:(NSString*)kUTTypeMovie]) {
    NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];

    if (!videoURL) {
      [[[UIAlertView alloc] initWithTitle:@"Can't load the clip"
                                  message:@"Error has been occured during loading video."
                                 delegate:nil
                        cancelButtonTitle:@"Dismiss"
                        otherButtonTitles:nil] show];
      [picker dismissViewControllerAnimated:NO completion:nil];

      return;
    }

    self.videoURL = videoURL;
    [picker dismissViewControllerAnimated:YES completion:^{

      self.gpuIM = [[GPUImageMovie alloc] initWithURL:videoURL];
      self.gpuIM.playAtActualSpeed = YES;
        self.gpuIM.delegate = self;

      NSURL *url2 = [[NSBundle mainBundle] URLForResource:@"overlay" withExtension:@"mov"];
      self.movie2 = [[GPUImageMovie alloc] initWithURL:url2];
      self.movie2.playAtActualSpeed = YES;
        self.movie2.shouldRepeat = YES;

      filter0 = [GPUImageColorDodgeBlendFilter new];

      [self.gpuIM addTarget:filter0];
      [self.movie2 addTarget:filter0];

      [filter0 addTarget:_view0];

      [self.gpuIM startProcessing];
      [self.movie2 startProcessing];

      isRecording = NO;
    }];
  }
}

- (void)didCompletePlayingMovie {
    [self.gpuIM removeAllTargets];
    self.gpuIM = nil;

    [self.movie2 endProcessing];
    [self.movie2 removeAllTargets];
    self.movie2 = nil;

    [filter0 endProcessing];
    [filter0 removeAllTargets];
    filter0 = nil;
}

Could anybody give me a hand or suggest how can I resolve this issue? Thanks in advance!

See the #2021


Update nc-fltkernel-pflt_filter_unload_callback.md

The supplied "Loading and unloading" link does not provide the specific details about when and why the mandatory flag would be set nor its relationship to the FLTFL_REGISTRATION_DO_NOT_SUPPORT_SERVICE_STOP flag.  I was going to submit an edit for that page but then I found the 'When the FilterUnLoadCallback Routine Is Called' page and felt it better addressed the topic of minifilter unloading.

Good call, @jeffbromberger - thanks for the PR!


Cxollationmode

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

@dbatomic so do you think we should proceed with this approach?


Ember-Data 2.12 compat

We should track this and follow suit:

[ ] Investigate: ember-data compat with factoryFor (#4737)
[ ] Investigate: Deprecation "cannot pass class to store method" (#229).

I'll be taking a look into these issues in the next week or so. For reference, we should be able to follow the pattern @cibernox used here: https://github.com/jamesarosen/ember-i18n/pull/431 .

Alright, I think it's high time I shipped this point release. ember-data-2.12.0-beta.3 has settled. I'm going to release 2.11.1 to be compatible.


Investigate: Multistream isn't working for Beem

https://discord.com/channels/423160867534929930/1031685017342054462/1033375540868026399
Although Catalyst should be handling multistream in the medium term, we need to unblock Beem in the short term. Need to know:

What is the cause of the issue
How long do we expect a fix to take

I'd vote to close this. Next steps here are to push for Mist to dig into this issue.


Set /bigobj option on MSVC to fix object limit error.

This fixes downstream build errors tracked at https://github.com/iree-org/iree/issues/18785.
Sample error message when building on Windows with MSVC:
FAILED: llvm-external-projects/stablehlo/stablehlo/dialect/CMakeFiles/obj.VhloOps.dir/VhloOps.cpp.obj
C:\ProgramData\Chocolatey\bin\ccache C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -D_HAS_EXCEPTIONS=0 -D_USE_MATH_DEFINES -ID:\a\iree\iree\third_party\llvm-project\llvm\include -ID:\a\iree\iree\build-windows\llvm-project\include -ID:\a\iree\iree\third_party\llvm-project\mlir\include -ID:\a\iree\iree\third_party\stablehlo -ID:\a\iree\iree\build-windows\llvm-external-projects\stablehlo -ID:\a\iree\iree\third_party\llvm-project\lld\include -ID:\a\iree\iree\build-windows\llvm-project\tools\lld\include -external:I\..\mlir\include -external:ID:\a\iree\iree\build-windows\llvm-project\tools\mlir\include -external:W0 /DWIN32 /D_WINDOWS /EHsc /Z7 /O2 /Ob1  -std:c++17 -MD  /EHs-c- /GR- /showIncludes /Follvm-external-projects\stablehlo\stablehlo\dialect\CMakeFiles\obj.VhloOps.dir\VhloOps.cpp.obj /Fdllvm-external-projects\stablehlo\stablehlo\dialect\CMakeFiles\obj.VhloOps.dir\ /FS -c D:\a\iree\iree\third_party\stablehlo\stablehlo\dialect\VhloOps.cpp
cl : Command line warning D9025 : overriding '/EHs' with '/EHs-'
cl : Command line warning D9025 : overriding '/EHc' with '/EHc-'
D:\a\iree\iree\third_party\stablehlo\stablehlo\dialect\VhloOps.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

I think our downstream Windows builds worked with https://github.com/openxla/stablehlo/pull/2573 but they do not work with https://github.com/openxla/stablehlo/pull/2575, without this change. Hooray for compiler options whack-a-mole.

cc @bjacob

I think our downstream Windows builds worked with #2573 but they do not work with #2575, without this change. Hooray for compiler options whack-a-mole.


Line by line file compare

Hi!
Added the ability to compare files line by line, one line - one json object.

Hi e11it,
Thanks for the PR!
A couple of things that could be improved:

What this does is compare JSON streams, so the option should be --stream
It should not be limited to values encoded on a single line. "encoding/json".Decoder supports JSON streams where the values are encoded on multiple lines.

Hi!
I rewrote to use json.Decode instead of json.Unmarshal by default. So option --stream doesn't required.
And keeped option json-lines because I need guarante: one line - one json obejct. Json.Decode doesn't provide it.

Fix golangci-lint recommendations. Add more test

@e11it I have taken the liberty of implementing the JSON stream and line-by-line support so that it integrates directly into the diff mechanisms  (github.com/yazgazan/jaydiff/diff package). Feel free to review #23 .

Hi @yazgazan!
I have tested #23 and it's exactly what I need. Thanks!
I have also find very useful when one of file are stream-lines and another is simply stream. Is it possible to add two more options like:
StreamLinesLeft    bool `long:"stream-lines-left" description:"read Left file as JSON stream line by line (expecting 1 JSON value per line) and Right file as JSON stream"`
StreamLinesRight   bool `long:"stream-lines-right" description:"read Left file as JSON stream and Right file as JSON stream line by line (expecting 1 JSON value per line)"`

I'm already implemented it and can send you pull request tomorrow.
But I'm unsure with options names =).

I am not convinced by the line-by-line JSON support for jaydiff. It feels like it would have its place in a validation tool more than a diff tool 🤔
For your use-case, doesn't logstash support multiline JSON anyway ?


fixes #10

provides fallback when disable backups is true

Pardon me asking, as I do not know this info, but after this PR when does this make it to composer require installs?

Thanks :)

When does it hit composer/packagist? It fails to resolve there.

It doesn't. The repo should be pointed at github in your composer file. It should hit the repo directly.

Ah yes, confirmed. Before it was reading from Composer directly, added the VCS repo.
Thanks


Plugin throws Cannot read property 'split' of undefined when using files references

When splitting config into different files and referencing them through the following pattern —see below—  plugin throws Cannot read property 'split' of undefined.
...
resources:
    - ${file(resources/cognito-user-pool.yml)}

Full stacktrace:
TypeError: Cannot read property 'split' of undefined
    at _.values.map.map.h (/Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/src/typescript.ts:53:31)
    at Array.map (<anonymous>)
    at Object.extractFileNames (/Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/src/typescript.ts:52:6)
    at TypeScriptPlugin.get rootFileNames [as rootFileNames] (/Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/src/index.ts:71:23)
    at TypeScriptPlugin.<anonymous> (/Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/src/index.ts:132:51)
    at Generator.next (<anonymous>)
    at /Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/dist/src/index.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/dist/src/index.js:3:12)
    at TypeScriptPlugin.compileTs (/Users/glenn/Dev/Freelancing/Haloha/haloha-api/node_modules/serverless-plugin-typescript/dist/src/index.js:103:16)
    at BbPromise.reduce (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/classes/PluginManager.js:390:55)
From previous event:
    at PluginManager.invoke (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/classes/PluginManager.js:390:22)
    at PluginManager.spawn (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/classes/PluginManager.js:408:17)
    at Deploy.BbPromise.bind.then.then (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:123:50)
From previous event:
    at Object.before:deploy:deploy [as hook] (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:113:10)
    at BbPromise.reduce (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/classes/PluginManager.js:390:55)
From previous event:
    at PluginManager.invoke (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/classes/PluginManager.js:390:22)
    at PluginManager.run (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/classes/PluginManager.js:421:17)
    at variables.populateService.then.then (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/Serverless.js:157:33)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)
    at process.topLevelDomainCallback (domain.js:121:23)
From previous event:
    at Serverless.run (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/lib/Serverless.js:144:8)
    at serverless.init.then (/Users/glenn/.nvm/versions/node/v10.8.0/lib/node_modules/serverless/bin/serverless:43:50)

@abetaev I'm in the same trouble!

I'm facing similar issue as well. Did anyone resolve it ?

Any ideas of how to fix this?

Had the same issue, but it was just misprint in handler keyword under function name.


[FEAT] - Edit previous post

Feature Request
Is your feature request related to a problem? Please describe:
Add a command that takes a message link and allows a camper to edit their previous 100 days of code post.

Describe the solution you'd like

Additional context

Resolved in #7


Unable to handle Shift with Ternary operator

Shift-Ternary Bug
Using Surelog plugin, with Yosys, Yosys gives the following bug
ERROR: Unsupported expression in mark_as_unsigned!
Yosys parser is able to compile the program without using Surelog
The error is caused by a shift operator followed by a ternary operator. Shifting either directions causes the bug. So does the <<< or >>> shift operator.
Problem Statement : (0)<<(0)?(0):(0);
Simplified code that causes error:
module top();
logic x;
assign x = (0)<<((0)?(0):(0));
endmodule

Source code generated using Verismith

If the Ternary operation is not in parenthesis, the bug will not occur

I've retested this bug with the latest install and have verified that it is fixed.

@Zach227 the environment for xc7 was updated very few hours ago: https://github.com/chipsalliance/f4pga-examples/commits/main. Did you fetch and pull the latest changes from the main branch 2h ago (when you wrote the comment)?

I retested this with the latest update and the issue is now resolved.


I got TypeError: Cannot read property 'value' of undefined

Hi,
It's me again. I have just done installed your plugin and it gives me error on homebridge and also crashes my homebridge. The error said "TypeError: Cannot read property 'value' of undefined". I'm not sure which value is undefined but I think you might be able to help.
Describe The Bug:
The "TypeError: Cannot read property 'value' of undefined" error preventing homebridge from restarting.
To Reproduce:
Installed the plugin. configured everything up. Restarted the homebridge then the error occurs.
Expected behavior:
Homebridge should be able to startup with plugin installed.
Logs:
[26/01/2021, 10:56:40] TypeError: Cannot read property 'value' of undefined
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/src/airconditionAccessory.ts:75:43
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/q/q.js:2055:17
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at runSingle (/usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/q/q.js:137:13)
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at flush (/usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/q/q.js:125:13)
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at processTicksAndRejections (internal/process/task_queues.js:75:11)
Jan 26 10:56:40 raspberrypi homebridge[6597]: [26/01/2021, 10:56:40] TypeError: Cannot read property 'value' of undefined
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/src/airconditionAccessory.ts:85:48
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/q/q.js:2055:17
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at runSingle (/usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/q/q.js:137:13)
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at Timeout.flush [as _onTimeout] (/usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/q/q.js:125:13)
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at listOnTimeout (internal/timers.js:554:17)
Jan 26 10:56:40 raspberrypi homebridge[6597]:     at processTimers (internal/timers.js:497:7)

Plugin Config:
 {
            "clientId": "8c251f40-9cf3-48d4-ad5b-XXXXXXXXXXXXXXX",
            "clientSecret": "acb328de-3c81-427a-XXXXXXXXXXXXXXX",
            "username"<EMAIL_ADDRESS>            "password": "XXXXXXXXXXXXXXX",
            "showFeedbacks": true,
            "accessories": [
                {
                    "roomName": "Bedroom",
                    "locationName": "Home"
                },
                {
                    "roomName": "Home-Theater",
                    "locationName": "Home"
                }
            ],
            "platform": "AmbiClimatePlatform"
        }

Screenshots:

Environment:

Plugin Version: v1.0.5
Homebridge Version: 1.3.0-Beta47
Node.js Version: v14.15.4
NPM Version: 6.14.8
Operating System: Raspbian

Could you please try whether it's cause by multiple devices? Because I only have one device, please test if it works when there's only one device.

Could you please try whether it's cause by multiple devices? Because I only have one device, please test if it works when there's only one device.

Tried with plugin version 1.0.6 but still it doesn't work even with 1 device.
I'm using Ambi Climate 2 and Ambi Climate Mini. Tried on both products one by one and it doesn't work. Hope it could help.

Tried with plugin version 1.0.6 but still it doesn't work even with 1 device.
I'm using Ambi Climate 2 and Ambi Climate Mini. Tried on both products one by one and it doesn't work. Hope it could help.

I add error log to the package. Please install v1.0.7 and paste the error message. It would be something like 'Get current relative humidity failed.'

I add error log to the package. Please install v1.0.7 and paste the error message. It would be something like 'Get current relative humidity failed.'

I did update to v1.0.7 but I'm not sure where would I be able to find the error log since the homebridge log doesn't show anything like "Get current relative humidity failed". What I did is uncommenting "#DEBUG=*" in /etc/default/homebridge. If what I've done is right, then I can't seem to find the error like what you said.
If it's not the right way, please kindly tell me how to so I can do it and inform you the error log.

I did update to v1.0.7 but I'm not sure where would I be able to find the error log since the homebridge log doesn't show anything like "Get current relative humidity failed". What I did is uncommenting "#DEBUG=*" in /etc/default/homebridge. If what I've done is right, then I can't seem to find the error like what you said.
If it's not the right way, please kindly tell me how to so I can do it and inform you the error log.

It seems to me the both the temperature and the humidity doesn't load up so it crashes the Homebridge. I tried configuring the plugin multiple times and some times it loads up for few minute showing 0.0 on both temperature and humidity but the power state and fan is displaying correctly. Once I tried to reload the app but switching between room and then switching back again, the homebridge crashes with ambiclimate-platform error I posted above.
Because of this, I believe it's both the temperature and the humidity data that don't feed up correctly.

It seems to me the both the temperature and the humidity doesn't load up so it crashes the Homebridge. I tried configuring the plugin multiple times and some times it loads up for few minute showing 0.0 on both temperature and humidity but the power state and fan is displaying correctly. Once I tried to reload the app but switching between room and then switching back again, the homebridge crashes with ambiclimate-platform error I posted above.
Because of this, I believe it's both the temperature and the humidity data that don't feed up correctly.

I updated the package to v1.0.8, can you try again and check whether it shows detailed error message?

I updated the package to v1.0.8, can you try again and check whether it shows detailed error message?

Updating now. Will get back to you the soonest.

Updating now. Will get back to you the soonest.

Here is the error
Jan 26 13:35:52 alex-home homebridge[30019]: [26/01/2021, 13:35:52] [AmbiClimatePlatform] Get current relative humidity failed.[object Object]
Jan 26 13:35:52 alex-home homebridge[30019]: [26/01/2021, 13:35:52] [AmbiClimatePlatform] Get current tempature failed.[object Object]
It's both Temperature and Humidity as suspected.
Testing this, I disabled Show Feedback and HeaterCooler Mode. And for some reason, version 1.0.9 doesn't crash Homebridge even when the data is not feeding correctly.
Please let me know if I could do anything next in order to help you diagnose the issue.

Here is the error
Jan 26 13:35:52 alex-home homebridge[30019]: [26/01/2021, 13:35:52] [AmbiClimatePlatform] Get current relative humidity failed.[object Object]
Jan 26 13:35:52 alex-home homebridge[30019]: [26/01/2021, 13:35:52] [AmbiClimatePlatform] Get current tempature failed.[object Object]
It's both Temperature and Humidity as suspected.
Testing this, I disabled Show Feedback and HeaterCooler Mode. And for some reason, version 1.0.9 doesn't crash Homebridge even when the data is not feeding correctly.
Please let me know if I could do anything next in order to help you diagnose the issue.

Sorry for the inconvenience. Seems that the format is different between your device data and mine. I pushed v1.1.10 for more detailed log. Could you try again?

Sorry for the inconvenience. Seems that the format is different between your device data and mine. I pushed v1.1.10 for more detailed log. Could you try again?

Of course, I'm doing it right away.

Of course, I'm doing it right away.

Here is the error produced from v.1.0.10
[26/01/2021, 13:46:10] [AmbiClimatePlatform] Get current tempature failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}
[26/01/2021, 13:46:10] [AmbiClimatePlatform] Get current relative humidity failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}
[26/01/2021, 13:46:11] [AmbiClimatePlatform] Get current relative humidity failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}
[26/01/2021, 13:46:11] [AmbiClimatePlatform] Get current tempature failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}

Hope this helps.

Here is the error produced from v.1.0.10
[26/01/2021, 13:46:10] [AmbiClimatePlatform] Get current tempature failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}
[26/01/2021, 13:46:10] [AmbiClimatePlatform] Get current relative humidity failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}
[26/01/2021, 13:46:11] [AmbiClimatePlatform] Get current relative humidity failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}
[26/01/2021, 13:46:11] [AmbiClimatePlatform] Get current tempature failed.{"error_code":400,"errors":[{"message":"The request is not valid"}]}

Hope this helps.

Huh, this is weird actually. As the log shows, the request is not valid. In general, it caused by your account configs. However, if you can change the status of the device, then your config should be correct...
Did you use the old Ambi Climate homebridge plugin before? Did it work?

Huh, this is weird actually. As the log shows, the request is not valid. In general, it caused by your account configs. However, if you can change the status of the device, then your config should be correct...
Did you use the old Ambi Climate homebridge plugin before? Did it work?

I did use the old version before and it works nicely. It's only that Homebridge keeps telling me that the plugin is kinda slow and it slows down the whole homebridge so I wish to switch to a newer one like this.
I did try creating new app in ambiclimate web for new Client ID and Client Secret but it doesn't seem to work as well. Just my 2 cent question though, what you need to do is only to create the new app in Ambi Climate and use the Client ID and Client Secret that ambi gives you, am I right? The quick start has 5 steps but in order to get the Client ID and Client Secret, we just have to do the first step right?
Thank you and looking forward to hearing from you.

I did use the old version before and it works nicely. It's only that Homebridge keeps telling me that the plugin is kinda slow and it slows down the whole homebridge so I wish to switch to a newer one like this.
I did try creating new app in ambiclimate web for new Client ID and Client Secret but it doesn't seem to work as well. Just my 2 cent question though, what you need to do is only to create the new app in Ambi Climate and use the Client ID and Client Secret that ambi gives you, am I right? The quick start has 5 steps but in order to get the Client ID and Client Secret, we just have to do the first step right?
Thank you and looking forward to hearing from you.

Tried to power on and off the Air Conditioner in my room but it doesn't work. Sorry my bad. I thought it works as first dew too what I see as a status in Homekit.

Tried to power on and off the Air Conditioner in my room but it doesn't work. Sorry my bad. I thought it works as first dew too what I see as a status in Homekit.

I just use the same clientID, clientSecret, username and password before. I also tried to create a new app and it still works. And yes, you only need to use the client ID and client secret that ambi gives to you. Also, the callback URL of the application is : https://httpbin.org/get

I just use the same clientID, clientSecret, username and password before. I also tried to create a new app and it still works. And yes, you only need to use the client ID and client secret that ambi gives to you. Also, the callback URL of the application is : https://httpbin.org/get

I reversed back to Homebridge Ambi Climate with the same Client ID and Client Secret still working great. Perhaps you might hardcoded something that is relying on your credential somehow that it rejects my credential once when I try your plugin?

I reversed back to Homebridge Ambi Climate with the same Client ID and Client Secret still working great. Perhaps you might hardcoded something that is relying on your credential somehow that it rejects my credential once when I try your plugin?

I didn't hardcode something like that. Is it possible for you to change your account password and provide your account for me to test? My email is<EMAIL_ADDRESS>

I didn't hardcode something like that. Is it possible for you to change your account password and provide your account for me to test? My email is<EMAIL_ADDRESS>

I have sent you and email with my credential (and a password for you). Thank you very much for wanting to look into this.
Please let me know if I can be of any help.

I have sent you and email with my credential (and a password for you). Thank you very much for wanting to look into this.
Please let me know if I can be of any help.

Thank you so much for your kindly help!
I already fix the bug: it's caused by a silly typo which would break this plugin if you have multiple device registered.

Thank you so much for your kindly help!
I already fix the bug: it's caused by a silly typo which would break this plugin if you have multiple device registered.

I seem to have new error after updated the plugin to 1.1.0. Here is the error
Jan 26 15:28:18 raspberrypi homebridge[13921]: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at validateString (internal/validators.js:124:11)
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at Url.parse (url.js:160:3)
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at Object.urlParse [as parse] (url.js:155:13)
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/node-ambiclimate/ambi-auth.js:114:24
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at processTicksAndRejections (internal/process/task_queues.js:93:5) {
Jan 26 15:28:18 raspberrypi homebridge[13921]:   code: 'ERR_INVALID_ARG_TYPE'
Jan 26 15:28:18 raspberrypi homebridge[13921]: }
Jan 26 15:28:18 raspberrypi homebridge[13921]: Access Token Error The "url" argument must be of type string. Received undefined
Jan 26 15:28:18 raspberrypi homebridge[13921]: ReferenceError: nil is not defined
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/node-ambiclimate/ambi-auth.js:135:9
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at processTicksAndRejections (internal/process/task_queues.js:93:5)
Jan 26 15:28:18 raspberrypi homebridge[13921]: ReferenceError: nil is not defined
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/node-ambiclimate/ambi-auth.js:135:9
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at processTicksAndRejections (internal/process/task_queues.js:93:5)

Note that I'm still using your password to try =)

I seem to have new error after updated the plugin to 1.1.0. Here is the error
Jan 26 15:28:18 raspberrypi homebridge[13921]: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at validateString (internal/validators.js:124:11)
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at Url.parse (url.js:160:3)
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at Object.urlParse [as parse] (url.js:155:13)
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/node-ambiclimate/ambi-auth.js:114:24
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at processTicksAndRejections (internal/process/task_queues.js:93:5) {
Jan 26 15:28:18 raspberrypi homebridge[13921]:   code: 'ERR_INVALID_ARG_TYPE'
Jan 26 15:28:18 raspberrypi homebridge[13921]: }
Jan 26 15:28:18 raspberrypi homebridge[13921]: Access Token Error The "url" argument must be of type string. Received undefined
Jan 26 15:28:18 raspberrypi homebridge[13921]: ReferenceError: nil is not defined
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/node-ambiclimate/ambi-auth.js:135:9
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at processTicksAndRejections (internal/process/task_queues.js:93:5)
Jan 26 15:28:18 raspberrypi homebridge[13921]: ReferenceError: nil is not defined
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at /usr/local/lib/node_modules/homebridge-ambiclimate-platform/node_modules/node-ambiclimate/ambi-auth.js:135:9
Jan 26 15:28:18 raspberrypi homebridge[13921]:     at processTicksAndRejections (internal/process/task_queues.js:93:5)

Note that I'm still using your password to try =)

I think you might now be debugging the plugin since the console shows error about duplicate Room and Location device is currently using. In this case, I will just quit testing for now to make sure that I'm not interfering your debugging process.
Please let me know when it's okay to test and I will jump in to try out =)
Thank you very much.

I think you might now be debugging the plugin since the console shows error about duplicate Room and Location device is currently using. In this case, I will just quit testing for now to make sure that I'm not interfering your debugging process.
Please let me know when it's okay to test and I will jump in to try out =)
Thank you very much.

Ahh, sorry didn't see the updated message. Does it work now? Because I tested it and it works. Now I deleted your config in my config.json so you can change password if it works.

Ahh, sorry didn't see the updated message. Does it work now? Because I tested it and it works. Now I deleted your config in my config.json so you can change password if it works.

This is the latest error I've got. The error is not the same now.
Jan 26 16:11:03 raspberrypi homebridge[4385]: {
Jan 26 16:11:03 raspberrypi homebridge[4385]:   reason: 'Duplicate devices having the location_name/room_name combination'
Jan 26 16:11:03 raspberrypi homebridge[4385]: }
Jan 26 16:11:03 raspberrypi homebridge[4385]: {
Jan 26 16:11:03 raspberrypi homebridge[4385]:   reason: 'Duplicate devices having the location_name/room_name combination'
Jan 26 16:11:03 raspberrypi homebridge[4385]: }
Jan 26 16:11:03 raspberrypi homebridge[4385]: [26/01/2021, 16:11:03] Got SIGTERM, shutting down Homebridge...

Note that I only add 1 device in, not 2 at the same time. I am now only running your plugin. I uninstalled the ambi climate plugin already. Not really sure why it's reporting duplicate devices having the same name.

This is the latest error I've got. The error is not the same now.
Jan 26 16:11:03 raspberrypi homebridge[4385]: {
Jan 26 16:11:03 raspberrypi homebridge[4385]:   reason: 'Duplicate devices having the location_name/room_name combination'
Jan 26 16:11:03 raspberrypi homebridge[4385]: }
Jan 26 16:11:03 raspberrypi homebridge[4385]: {
Jan 26 16:11:03 raspberrypi homebridge[4385]:   reason: 'Duplicate devices having the location_name/room_name combination'
Jan 26 16:11:03 raspberrypi homebridge[4385]: }
Jan 26 16:11:03 raspberrypi homebridge[4385]: [26/01/2021, 16:11:03] Got SIGTERM, shutting down Homebridge...

Note that I only add 1 device in, not 2 at the same time. I am now only running your plugin. I uninstalled the ambi climate plugin already. Not really sure why it's reporting duplicate devices having the same name.

This is my config that I tested for your account. Could you try whether this works?
        "platform": "AmbiClimatePlatform",
        "clientId": "8c251f40-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "clientSecret": "acb328de-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "username"<EMAIL_ADDRESS>        "password": "xxxxxxxxxxxxx",
        "accessories": [
            {
                "roomName": "Bedroom",
                "locationName": "Home"
            },
            {
                "roomName": "Home-Theater",
                "locationName": "Home"
            }
        ]
    }```

This is my config that I tested for your account. Could you try whether this works?
        "platform": "AmbiClimatePlatform",
        "clientId": "8c251f40-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "clientSecret": "acb328de-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "username"<EMAIL_ADDRESS>        "password": "xxxxxxxxxxxxx",
        "accessories": [
            {
                "roomName": "Bedroom",
                "locationName": "Home"
            },
            {
                "roomName": "Home-Theater",
                "locationName": "Home"
            }
        ]
    }```

It works until I pressed on turning off the air conditioner switch. Doing so will then crashing homebridge with "reason: 'Duplicate devices having the location_name/room_name combination'".
Also, if trying to enable HeaterCooler Mode, homebridge would crash immediately.

It works until I pressed on turning off the air conditioner switch. Doing so will then crashing homebridge with "reason: 'Duplicate devices having the location_name/room_name combination'".
Also, if trying to enable HeaterCooler Mode, homebridge would crash immediately.

Updated to v1.1.1. Fixed the issues you mentioned. Thanks!

Updated to v1.1.1. Fixed the issues you mentioned. Thanks!

Thanks. The On/Off is now working correctly.
However, the HeaterCooler Mode is still throwing the same error as On/Off previously did when trying to switch the HeaterCooler Mode
Jan 26 16:43:50 raspberrypi homebridge[8130]: {
Jan 26 16:43:50 raspberrypi homebridge[8130]:   reason: 'Duplicate devices having the location_name/room_name combination'
Jan 26 16:43:50 raspberrypi homebridge[8130]: }
Jan 26 16:43:50 raspberrypi homebridge[8130]: {
Jan 26 16:43:50 raspberrypi homebridge[8130]:   reason: 'Duplicate devices having the location_name/room_name combination

Do you think it might be the same issue that happened to On/Off previously?

Thanks. The On/Off is now working correctly.
However, the HeaterCooler Mode is still throwing the same error as On/Off previously did when trying to switch the HeaterCooler Mode
Jan 26 16:43:50 raspberrypi homebridge[8130]: {
Jan 26 16:43:50 raspberrypi homebridge[8130]:   reason: 'Duplicate devices having the location_name/room_name combination'
Jan 26 16:43:50 raspberrypi homebridge[8130]: }
Jan 26 16:43:50 raspberrypi homebridge[8130]: {
Jan 26 16:43:50 raspberrypi homebridge[8130]:   reason: 'Duplicate devices having the location_name/room_name combination

Do you think it might be the same issue that happened to On/Off previously?

Yes. Sorry my bad. Now it's fixed too

Yes. Sorry my bad. Now it's fixed too

Wow! Everything is now working correctly and working very good as well.
Thank you very much for the fix, Hiraku!
I will change the password back now. You are awesome!

Wow! Everything is now working correctly and working very good as well.
Thank you very much for the fix, Hiraku!
I will change the password back now. You are awesome!

Thanks for your patience and help. Wish you have a nice day!

Thanks for your patience and help. Wish you have a nice day!


Missing from lean 4: simp [*], simp [<- lem]

Lean 3 supports * and <- lem as simp arguments:
def foo := @id
def bar := @id
theorem foo_eq {α} (x : α) : foo x = bar x := rfl
example {p : nat → Prop} {x} (h : x = bar 1) : p x :=
begin
  simp [*, ← foo_eq],
  guard_target p (foo 1),
  sorry
end

<- lem is a lean 3 community addition, but * was there since the original implementation. Lean 4 has the simp_all tactic, but this seems to replace the tactic written simp * at * (which is special cased) in lean 3.

This feature has been added to Lean 4.


Different result between Clipper1 and Clipper2

Hello
I have this list , one polyline and lines
polyline:
{-1.316901, -8.133803, 0}
{17.119718, -8.133803, 0}
{17.119718, 10.302817, 0}
{-1.316901, 10.302817, 0}
{-1.316901, -8.133803, 0}
line:
{-1.316901, 1.084507, 0}
{5.196095, -8.133803, 0}
line:
{7.901408, -8.133803, 0}
{17.119718, -1.481573, 0}
line:
{17.119718, 1.084507, 0}
{14.335384, 10.302817, 0}
line:
{-1.316901, 3.458583, 0}
{4.2904, 10.302817, 0}
line:
{15.001097, -8.133803, 0}
{6.10826, 10.302817, 0}
In clipper1 the result is different at the end, here the same settings used except miter limit

The expected result :

P.S.
A misprint in the documentation : Bebel
https://www.angusj.com/clipper2/Docs/Units/Clipper/Types/JoinType.htm

A misprint in the documentation : Bebel

Thanks! And now fixed 😁.

In clipper1 the result is different at the end, here the same settings used except miter limit

That's because Clipper1 isn't correctly offsetting your polyline, in that it is joining the ends rather than butting them, as per your parameters. In Clipper2, if you want the ends of your polyline joined, then you'll need to do that separately, and then you'll need to union the results of your two separate offset operations.

Thanks, i see
I thought that i miss something
Is there any way to create to offsets and combine them? for example one for closed polylines and the second for opened polylines

Is there any way to create to offsets and combine them?

Sure, as I said above, just Union them after offsetting.

Thanks, i will try with union


inference: memory runtime error

Hi @magnumye !
I'm using a GTX 940MX GPU to reproduce the results using the run_inference.lua.
Everything works great until the num_test param is larger than 2 000.
I've noticed there is not a single call to the garbagecollector and the image data list is loaded onto GPU using local inputs_test = ldata:cuda(). If the available memory isn't enough, the code throws the memory runtime error.
Do you have handy workarounds? Otherwise could you share the disparity images of the training set (since I'm trying to build up on that)? Thanks!

A workaround for this would be to run inference multiple times by separating the dataset into small sets, and load them to GPU one by one for inference.
Yup I've already tried with increments of 2 000, the disparities though do not seem to work (must be doing someting wrong).

You can try to modify inside this function evaluate_disp(). Try to use opt.batch_size_test when loading the small set to GPU for inference, and run the for-loop beyond this.
What do you mean by try to use the batch_size_test? Do you mean a smaller batch size?

The Model_no version should not matter too much in this case. I meant creating a for-loop to call evaluate_disp() and using opt.batch_size_test to go over the dataset that you want to run inference.


Support for Very High Resolution Monitors (4K)

Support for High Resolution Monitors - I have a 4K monitor (3840 x 2160) - this results in much of the Archi interface being very small - specifically the palette and ribbon/toolbar - ideally a size consistent with other Windows Apps?

e.g. Office.  Image attached for comparison

The toolbar will appear smaller if your display is set to 150% (or 125%). See #757

150% is the (Windows) recommended size in Display settings for my monitor 100% is tiny (effectively Archi is in this mode anyway), 200% is way too large and effectively losing "real estate" for bigger diagrams  - 150% is fine for all normal use in all other apps.
Noting that I have a Surface book (3000 x 2000) driving the main 4K monitor, so 200% is recommended on that and means the two screens aren't too dissimilar is scale, but since my monitor is the primary display Archi starts up seeing 150% as the display magnification and selects small icons?  If I start Archi up "undocked" it see 200% in the Surface and pulls in the 2x icons - redock it stays running with 2x icons on the 4K monitor and it looks better - at least for the palette - toolbar still a bit small
Maybe a manual override for the Palette/Toolbar icon size and a set of 4x icons (toolbar only?) to add to the 2x options would be sufficient without going down the rabbit hole for full scaling - have no idea how hard/easy/portable that is.

4x icons are not supported in the Eclipse framework.
I think that perhaps the (Eclipse) toolbar is of a fixed height. I'm not aware of any changes I can make to the code to make it any bigger.

You could try the workaround there, renaming the manifest to "Archi.exe.manifest"?

but an override in Archi to ignore the monitor default would be useful?

Not possible. Toolbar rendering is internal to Eclipse.

In Archi, no, but in Windows, yes. You can edit app shortcut properties and fix the scaling. See this: https://www.windowscentral.com/how-change-high-dpi-settings-classic-apps-windows-10-april-2018-update (you should try "System (enhanced)". in addition to what is described in this page, note that in recent version of Windows, you can event override the scaling itself)

Tried a few options with the App Scaling settings, which has helped toolbar and palette - I think it's using the 2x icons - so that's much more usable - so happy with that.
But adding the manifest file (regardless of the reg setting 1 or 0!)  the toolbar gets garbled - presume this due to a difference between Eclipse and Archi icon resources?  Anyway not needed with the App Scaling trick working...  Thx

I'll close this issue.

Wait....
@pcmanning Could you please describe your workaround a bit more (which setting, screenshot...) here or, best, in a wiki page ?


Downloading failed on Sony Xperia Z3 compact (Androd 4.4.4)

Error log:
11-30 03:54:30.975 1306-1317/? W/Binder: Caught a RuntimeException from the binder stub implementation.
11-30 03:54:30.975 1306-1317/? W/Binder: java.lang.NullPointerException
11-30 03:54:30.975 1306-1317/? W/Binder:     at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
11-30 03:54:30.975 1306-1317/? W/Binder:     at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
11-30 03:54:30.975 1306-1317/? W/Binder:     at android.os.Binder.execTransact(Binder.java:404)
11-30 03:54:30.975 1306-1317/? W/Binder:     at dalvik.system.NativeStart.run(Native Method)

Actually, It may be not about the plugin. It crashes when start UnityDownloaderActivity.
I'm investigating about this issue.

Could you share the entire logcat - these messages seem completely unrelated to me? Thanks!

Have been inactive for some time, I assume the issue is not confirmed.


Weird behavour on first click.

Clicking any of the tabs for the first time would show the new tab and then instantly return to the default tab. ( the one initially set with .active  class ).
After some investigation I changed
var current = $( e.target ).context.id.replace( /collapse-/g, "#" );

to
var current = $( e.target ).context.id.replace( /#collapse-/g, "#" );

which seems to have solved to problem.
located at aprox. line 165
fakewaffle.bindTabToCollapse = function() {
 ...
 collapse.on( "shown.bs.collapse", function( e ) {
  ...
  var current = $( e.target ).context.id.replace( /#collapse-/g, "#" );
  ...
 }
 ...
}

I don't know if anyone else was having this issue, but I hope this helps.

Was there something besides the first tab set as the .active tab? Was it happening to you on the demo page? Did you have multiple tab sets? I'm guessing this is on the Bootstrap 3.0 version since it's the one with var current = $( e.target ).....

Only the first tab was set to .active and there was only one tab set on the page. Yes it is the Bootstrap 3.0 version. I didn't actually check the demo page, but I was using Chromium Version 41.0.2272.76 Ubuntu 14.10 (64-bit) in case that helps.

Closing due to inactivity.
Also it doesn't make sense that any if the ids would start with a #.


Association

Association, Aggregation and Composition
In this project, I did the following to achieve the connection between the classes.

[ ] Add the has relationship for one-many and many-many connection
[ ] Add the belongs to the relationship
[ ] Modify the constructor for the relationship
[ ] Modify the initialization.
[ ] Add the method

@dasileker Can I interact with you? Thanks.

@dasileker Can I interact with you? Thanks.

Anytime on slack

@dasileker Kindly provide your slack


Add /testK8s route & component

Adds a very crude test page to check if the token is properly pulled and used when calling the DevSandbox backend.
Do yarn start:k8s to use this functionality.
Note: You'll need to get verified first before these calls are properly authed on your user.
Crude Page Screenshot (on .../hac/testK8s route):

/hold
This won't cover a prod bundle fix... needs more work.

/unhold


The captcha time is running out immediately

On the client side, the captcha time is displayed incorrectly.

Hmm, I can't really reproduce that bug. I tested it on Chromium, Edge, Firefox and, Chrome and Brave for android. What error does JavaScript report on the console?


Crash on accessing missing index in proto.IsIPv4

Describe the bug
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: panic: runtime error: index out of range [0] with length 0
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: goroutine 152 [running]:
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/producer/proto.IsIPv4(...)
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/producer/proto/producer_sf.go:211
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/producer/proto.ParseEthernetHeader(0xc0071a6d20, {0xc006d184b0, 0x40, 0x1e78}, 0x0)
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/producer/proto/producer_sf.go:265 +0x1dbc
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/producer/proto.ParseSampledHeaderConfig(0x4?, 0x6?, 0x6?)
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/producer/proto/producer_sf.go:384 +0x2d
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/producer/proto.SearchSFlowSampleConfig(0xc0071a6d20, {0xace180?, 0xc0032242d0?}, 0xc00511f908?)
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/producer/proto/producer_sf.go:414 +0x75c
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/producer/proto.SearchSFlowSamplesConfig({0xc00304e280?, 0x6, 0xc00511f950?}, 0x4524e9?)
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/producer/proto/producer_sf.go:473 +0xf4
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/producer/proto.ProcessMessageSFlowConfig(0x9f7360?, 0xc00511f860?)

Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/metrics/decoder.go:53 +0x63c
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: github.com/netsampler/goflow2/v2/utils.(*UDPReceiver).decoders.func1()
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/utils/udp.go:215 +0x249
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]: created by github.com/netsampler/goflow2/v2/utils.(*UDPReceiver).decoders in goroutine 1
Dec 06 12:30:42 flop-goflow-1 goflow2[2464383]:         /buildir/utils/udp.go:200 +0x32
Dec 06 12:30:42 flop-goflow-1 systemd[1]: goflow2.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

To Reproduce
Steps to reproduce the behavior:

Unfortunately I don't have the problematic packet captured yet.

Expected behavior
No crash
Captures
If applicable, add output (JSON, protobuf), packet captures and device configuration.
Sampler device:
N/A for now

Brand: [e.g. Cisco, Juniper, Arista, Mikrotik]
Model: [e.g. MX, QFX]
Version: [e.g. 22]
Estimated flow traffic: 32K

GoFlow2:

Version: v2

Thank you for reporting, could you check if  https://github.com/netsampler/goflow2/pull/252 works for you?


C++ compilation support?

I know it's a C project, not C++.
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:58:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  route_add("/json", on_request_json);
            ^
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:59:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  route_add("/plaintext", on_request_plain_text);
            ^
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:81:24: error: non-constant-expression cannot be narrowed from type 'int' to 'int16_t' (aka 'short') in initializer list [-Wc++11-narrowing]
  fio_start(.threads = fio_cli_get_i("-t"), .workers = fio_cli_get_i("-w"));
                       ^~~~~~~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:954:58: note: expanded from macro 'fio_start'
#define fio_start(...) fio_start((struct fio_start_args){__VA_ARGS__})
                                                         ^~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:81:24: note: insert an explicit cast to silence this issue
  fio_start(.threads = fio_cli_get_i("-t"), .workers = fio_cli_get_i("-w"));
                       ^~~~~~~~~~~~~~~~~~~
                       static_cast<int16_t>(
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:954:58: note: expanded from macro 'fio_start'
#define fio_start(...) fio_start((struct fio_start_args){__VA_ARGS__})
                                                         ^~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:81:56: error: non-constant-expression cannot be narrowed from type 'int' to 'int16_t' (aka 'short') in initializer list [-Wc++11-narrowing]
  fio_start(.threads = fio_cli_get_i("-t"), .workers = fio_cli_get_i("-w"));
                                                       ^~~~~~~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:954:58: note: expanded from macro 'fio_start'
#define fio_start(...) fio_start((struct fio_start_args){__VA_ARGS__})
                                                         ^~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:81:56: note: insert an explicit cast to silence this issue
  fio_start(.threads = fio_cli_get_i("-t"), .workers = fio_cli_get_i("-w"));
                                                       ^~~~~~~~~~~~~~~~~~~
                                                       static_cast<int16_t>(
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:954:58: note: expanded from macro 'fio_start'
#define fio_start(...) fio_start((struct fio_start_args){__VA_ARGS__})
                                                         ^~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:94:67: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  http_set_header(h, HTTP_HEADER_CONTENT_TYPE, http_mimetype_find("json", 4));
                                                                  ^
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:108:67: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  http_set_header(h, HTTP_HEADER_CONTENT_TYPE, http_mimetype_find("txt", 3));
                                                                  ^
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:109:3: error: no matching function for call to 'http_send_body'
  http_send_body(h, "Hello, World!", 13);
  ^~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/http/http.h:197:5: note: candidate function not viable: no known conversion from 'const char [14]' to 'void *' for 2nd argument
int http_send_body(http_s *h, void *data, uintptr_t length);
    ^
/Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:149:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
      database = "localhost";
                 ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:3768:14: error: cannot initialize a variable of type 'fio_str_s *' with an rvalue of type 'void *'
  fio_str_s *str = FIO_MALLOC(sizeof(*str));
             ^     ~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:3769:3: error: no matching literal operator for call to 'operator""__FILE__' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
  FIO_ASSERT_ALLOC(str);
  ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:498:45: note: expanded from macro 'FIO_ASSERT_ALLOC'
    FIO_LOG_FATAL("memory allocation error "__FILE__                           \
                                            ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:3868:14: error: assigning to 'char *' from incompatible type 'void *'
    i.data = tmp;
             ^~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:3878:16: error: assigning to 'char *' from incompatible type 'void *'
      i.data = tmp;
               ^~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4024:5: error: no matching literal operator for call to 'operator""__FILE__' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
    FIO_ASSERT_ALLOC(tmp);
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:498:45: note: expanded from macro 'FIO_ASSERT_ALLOC'
    FIO_LOG_FATAL("memory allocation error "__FILE__                           \
                                            ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4027:5: error: no matching literal operator for call to 'operator""__FILE__' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
    FIO_ASSERT_ALLOC(tmp);
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:498:45: note: expanded from macro 'FIO_ASSERT_ALLOC'
    FIO_LOG_FATAL("memory allocation error "__FILE__                           \
                                            ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4042:3: error: no matching literal operator for call to 'operator""__FILE__' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
  FIO_ASSERT_ALLOC(tmp);
  ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:498:45: note: expanded from macro 'FIO_ASSERT_ALLOC'
    FIO_LOG_FATAL("memory allocation error "__FILE__                           \
                                            ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4077:9: error: assigning to 'char *' from incompatible type 'void *'
  tmp = fio_realloc(s->data, s->len + 1);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4078:3: error: no matching literal operator for call to 'operator""__FILE__' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
  FIO_ASSERT_ALLOC(tmp);
  ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:498:45: note: expanded from macro 'FIO_ASSERT_ALLOC'
    FIO_LOG_FATAL("memory allocation error "__FILE__                           \
                                            ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4230:5: error: cannot jump from this goto statement to its label
    goto at_end;
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4234:15: note: jump bypasses variable initialization
  char *const end = state.data + state.len;
              ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4233:9: note: jump bypasses variable initialization
  char *p = state.data;
        ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4232:11: note: jump bypasses variable initialization
  int32_t c = 0;
          ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4228:5: error: cannot jump from this goto statement to its label
    goto error;
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4234:15: note: jump bypasses variable initialization
  char *const end = state.data + state.len;
              ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4233:9: note: jump bypasses variable initialization
  char *p = state.data;
        ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4232:11: note: jump bypasses variable initialization
  int32_t c = 0;
          ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4340:5: error: cannot jump from this goto statement to its label
    goto zero;
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4342:12: note: jump bypasses variable initialization
  uint64_t l = 0;
           ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4496:14: error: assigning to 'char *' from incompatible type 'void *'
      path = FIO_MALLOC(path_len + 1);
             ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:3097:26: note: expanded from macro 'FIO_MALLOC'
#define FIO_MALLOC(size) fio_malloc((size))
                         ^~~~~~~~~~~~~~~~~~
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4497:7: error: no matching literal operator for call to 'operator""__FILE__' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
      FIO_ASSERT_ALLOC(path);
      ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:498:45: note: expanded from macro 'FIO_ASSERT_ALLOC'
    FIO_LOG_FATAL("memory allocation error "__FILE__                           \
                                            ^
In file included from /Users/brandonros/Desktop/j2534-http/vehicle/j2534-http-vehicle.cpp:168:
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4516:5: error: cannot jump from this goto statement to its label
    goto finish;
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4527:16: note: jump bypasses variable initialization
  const size_t org_len = fio_str_len(s);
               ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4511:5: error: cannot jump from this goto statement to its label
    goto finish;
    ^
/Users/brandonros/Desktop/j2534-http/deps/facil.io/lib/facil/fio.h:4527:16: note: jump bypasses variable initialization
  const size_t org_len = fio_str_len(s);
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.
make[2]: *** [CMakeFiles/j2534-http-vehicle-x64.dir/vehicle/j2534-http-vehicle.cpp.o] Error 1
make[1]: *** [CMakeFiles/j2534-http-vehicle-x64.dir/all] Error 2
make: *** [all] Error 2

Hi @brandonros ,
Thanks for opening the issue, I know it would be nice if facil.io could compile to C++.
I am working on making it as close to possible as I can for the future 0.8.x version... but I won't back port C++ compatibility fixes to the 0.7.x releases.
One of my main issues with C++ compilation is actually the API...
C99 allows to use the preprocessor together with a struct in order to emulate "named arguments", something that the facil.io API leans on heavily. This allows for a very flexible API and simplifies complex function calls.
However, C++ does not allow for variadic macros nor out-of-order designated initializers / compound literals, making it impossible to use named macros without GNU extensions (if at all). C++20 seems a step forwards, but there are still issues when trying to bridge the differences.
I am making slow progress on C++ compilation support for the 0.8.x release (which I have been working on for a few years and seem to constantly re-write). Right now the facil.io C STL, which provides core functionality for the upcoming 0.8.x version, should compile even when used as a C++ header library... but unless there will bridge these two differences between C and C++ (variadic macros and designated initializers) we might have an issue with implementing a comfortable API.
Anyway, thanks for the thought.
Cheers.
Bo.

P.S.
AFAIK, there is nothing preventing you from adding a C compilation unit to your project (compiling a C file) and calling the C functions from C++... although it's sub-optimal, it allows you to use facil.io within a C++ project.
B.


cluster backup very small file

Hi there,
When I try flynn cluster backup --file myfile.tar the created file is about 3 MB large.  There are some releases which report a much higher size on git push flynn master and even a simple flynn -a oneofmyapps pg dump creates a larger file than a full cluster backup.
Is this normal behaviour?  I use s3 blobstore like in production and a 3 droplet cluster.
Thanks

Hi,
that sounds reasonable. It contains a dump from the Postgres and a few KB of Metadata. The app releases stay in S3.

Does that mean, a restore to a testing environment with working on that, maybe remove apps, could destroy the stability of the production system?

If you use an external blobstore backend, then yes, you'd need to migrate to a new backend if you didn't want to impact an existing cluster with the same backend configured.


Remove the Further Setup and Troubleshooting section

I believe most of the content of Further Setup and Troubleshooting can be split into other sections (or outright removed), allowing us to remove this top-level section and further declutter the website.
I will list out each page and propose a new home, (or explain why it should be removed):

Deploying Kubeflow behind a proxy server:

REMOVE
discusses kfctl, which is no longer used as of 1.3 (if distributions want to support kfctl docs, they can do it in their distribution docs)

Kubeflow On-prem in a Multi-node Kubernetes Cluster:

REMOVE
discusses how to setup "dyanmic volume provisioning" (this is effectively a doc for Kuberenetes itself, there is no reason to have it on the Kubeflow website)

~Troubleshooting:~

REMOVE
discusses (very outdated) information about installing Kubeflow

Frequently Asked Questions:

REMOVE
only has 1 question (which is really not very useful)

Support:

MOVE to Getting Started / Support
most of the information is out of date, but I think we only need to keep "Support from the Kubeflow community" section

Integrations:

REMOVE
only contains one section, which references Rok (a proprietary tool, specific to Arrikto's distributions of Kubeflow)

/priority p1

@RFMVasconcelos what do you think of this proposal?

I am in favour of this proposal

We need to re-write the Support page before moving it to Getting Started

Sorry, haven't had time to work on this lately, I will eventually get to it, but if someone else wants to pick it up and make a PR, I am happy to review.

@Arhell do want to take a crack at the rest of the removals since you did https://github.com/kubeflow/website/pull/2768?

/assign

@thesuperzapper  done

@Arhell there are still two outstanding things:

The /docs/other-guides (Further Setup and Troubleshooting) section should be deleted (it's just an empty section now)
We should clean up the Support page (which was moved under Getting Started)

NOTE: I am not sure what we should do with the content, but its clearly way to verbose, and not really helpful for directing users towards the right support channels

Got it, I'll fix it, but I won't touch the content on the Support page. Not sure what to remove or add.

@thesuperzapper ready, it remains to fix the Support section

I am closing this issue, we can discuss updating the Support page in:

https://github.com/kubeflow/website/issues/2855


CRLF to LF endings

git hub automatically changes line endings, we need to keep LF endings

Change external scripts to in-program functions?


Amount of instances within video restricted to 1000?

Is the annotation format limited to the fact that it only allows 1000 instances within 1 video? Because otherwise you get troubles with the class id and object instance id.
According to your txt format:

time frame 52
object id 1005 (meaning class id is 1, i.e. car and instance id is 5)
class id 1
image height 375
image width 1242
rle WSV:2d;1O10000O10000O1O100O100O1O100O1000000000000000O100O...1O1N

Hence, can this be easily changed in your code to 10000 e.g. ? Or is it better to cut the videos into multiple pieces?
Thanks in advance!

Hi,
yes, the file format restricts it to 1000 instances per video, but this is a lot, it's distinct instances in the whole video (the same id is used for the same object in different frames). I think it's unlikely to have a video with more than 1000 distinct objects.
If this is really needed, it should be relatively easy to change it to 10000.

Closing this for now, please reopen if needed


Add "Output Enable" gpio for FTDI Gpio driver

Since the FTDI is hot-pluggable, the output lines can be protected for unwanted changes by a supplementary GPIO that allows the FTDI gpio output to be enabled.

Is this a real usecase for that, or pure observation?

It is for the new debug boards, we have a hack off-tree to handle this already but it's time to make it formal

ack


Graph only shows up after navigating to different dashboard and back again

Checklist

[x] I updated the card to the latest version available
[x] I cleared the cache of my browser
[x] I verified that I'm really running the lastest version in my browser console
[x] I checked if there is another issue opened with the same problem

Describe the bug
Whenever I first go to a specific dashboard (or whenever I force-reload that dashboard), my chart won’t populate data.
I need to navigate to a different dashboard and back in order for the data to show up (see video):
This is 100% consistent.
It doesn’t work with navigation to a different view in the same dashboard, and it works 100% of he time if I navigate to ANY other dashboard and back. Also, 100% of the times I force-reload while on the page, the graph disappears again until after I change dashboard.
Version of the card
Version: 2.0.4
To Reproduce
This is the configuration I used:

 This is the lovelace card in question:
type: custom:tabbed-card
options: {}
tabs:
  - label: Electricity prices
    card:
      type: custom:apexcharts-card
      header:
        show: true
        title: Electricity Prices (Total)
        show_states: false
      graph_span: 2d
      now:
        show: true
        color: red
      span:
        start: day
      series:
        - entity: sensor.electricity_price_total
          name: Total
          data_generator: |
            return entity.attributes.total_today.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
        - entity: sensor.electricity_price_total
          name: Total
          data_generator: |
            return entity.attributes.total_tomorrow.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
        - entity: sensor.nordpool_kwh_dk2_dkk_3_095_0
          name: Raw
          data_generator: |
            return entity.attributes.raw_today.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
        - entity: sensor.nordpool_kwh_dk2_dkk_3_095_0
          name: Raw
          data_generator: |
            return entity.attributes.raw_tomorrow.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
      yaxis:
        - min: 0
    attributes:
      icon: mdi:currency-eur
      show_name: false
      show_icon: true
      show_state: false
  - label: Electricity use
    card:
      type: custom:sankey-chart
      show_names: true
      sections:
        - entities:
            - entity_id: sensor.home_power_consumption
              name: Total
              children:
                - sensor.dishwasher_power_consumption_w
                - sensor.dryer_power_w
                - sensor.openevse_current_power_usage
                - sensor.basement_media_power_electric_consumption_w
                - sensor.office_electric_consumption_w
                - sensor.shed_power_electric_consumption_w
                - sensor.wemo_outdoor_current_power
                - sensor.all_lights_power_w
                - sensor.all_speakers_power_w
                - sensor.all_switches_power_w
                - sensor.server_power_w
        - entities:
            - sensor.dishwasher_power_consumption_w
            - sensor.dryer_power_w
            - sensor.openevse_current_power_usage
            - sensor.basement_media_power_electric_consumption_w
            - sensor.office_electric_consumption_w
            - sensor.shed_power_electric_consumption_w
            - sensor.wemo_outdoor_current_power
            - sensor.all_lights_power_w
            - sensor.all_speakers_power_w
            - sensor.all_switches_power_w
            - sensor.server_power_w
    attributes:
      icon: mdi:lightning-bolt
      show_name: false
      show_icon: true
      show_state: false
  - label: Electricity chart
    card:
      type: vertical-stack
      cards:
        - type: gauge
          entity: sensor.home_power_consumption
          min: 0
          name: Current Electricity Usage
          max: 5000
          needle: true
          severity:
            green: 0
            yellow: 750
            red: 2500
        - type: custom:config-template-card
          variables:
            - entity: sensor.openevse_current_power_usage
              name: Car Charger
            - entity: sensor.all_lights_power_w
              name: Lights
            - entity: sensor.all_speakers_power_w
              name: Speakers
            - entity: sensor.all_switches_power_w
              name: Switches
            - entity: sensor.basement_media_power_electric_consumption_w
              name: Basement Media
            - entity: sensor.office_electric_consumption_w
              name: Office
            - entity: sensor.shed_power_electric_consumption_w
              name: Shed
            - entity: sensor.dishwasher_power_consumption_w
              name: Dishwasher
            - entity: sensor.dryer_power_w
              name: Dryer
            - entity: sensor.espresso_electric_consumption_w
              name: Espresso
            - entity: sensor.wemo_outdoor_current_power
              name: Chicken Coop
            - entity: sensor.server_power_w
              name: Server & Network
          entities:
            - sensor.openevse_current_power_usage
            - sensor.all_lights_power_w
            - sensor.all_speakers_power_w
            - sensor.all_switches_power_w
            - sensor.basement_media_power_electric_consumption_w
            - sensor.office_electric_consumption_w
            - sensor.dishwasher_power_consumption_w
            - sensor.dryer_power_w
            - sensor.espresso_electric_consumption_w
            - sensor.shed_power_electric_consumption_w
            - sensor.wemo_outdoor_current_power
            - sensor.server_power_w
          element:
            type: custom:bar-card
            entities: >-
              ${vars.filter(v => states[v.entity].state > 0).sort((v1,v2) =>
              states[v2.entity].state-states[v1.entity].state)}
            direction: right
            entity_row: true
            min: 0
            max: ${ Math.max(...vars.map(v => states[v.entity].state))}
            height: 20px
            stack: vertical
            decimal: 1
            icon: mdi:flash
            positions:
              icon: 'off'
              indicator: outside
              name: inside
              value: inside
            severity:
              - color: '#a1a1a18a'
                from: 0
                to: 2
              - color: '#3ea8328a'
                from: 2
                to: 10
              - color: '#85a8328a'
                from: 10
                to: 50
              - color: '#a8a4328a'
                from: 50
                to: 200
              - color: '#a887328a'
                from: 200
                to: 500
              - color: '#a867328a'
                from: 500
                to: 1000
              - color: '#a846328a'
                from: 1000
                to: 3000
              - color: '#a832328a'
                from: 3000
                to: 10000
            style: "states > * {\n  margin: 1px;\n}\nbar-card-name,\nbar-card-value {\n  font-size: 0.9rem;\n  color: '#ffffffaa';\n  font-weight: bold;\n}\nbar-card-value\t{\n  font-weight: bolder;\n}\nbar-card-indicator {\n  margin-top: 4px;\n  transform: scaleY(-1);\n}"
    attributes:
      icon: mdi:gauge-low
      show_name: false
      show_icon: true
      show_state: false

Screenshots
In this video, I:

Load the dashboard (no graph)
Navigate to the Energy dahsbaord and back again (graph appears)
Force reload (no graph)
Navigate to a different dashboard and back (graph appears again)

Expected behavior
Shows the graph without having to navigate to another dashboard and back first
Desktop (please complete the following information):

Browser Firefox and Chrome. In Safari, it also happens after clearing cache, but after a "reload" (apparently there's no "force-reload" keyboard combination?), it seems to work without navigating to a different dashbaord. But every time I clear cache, the problem is also present in Safari.
Version Firefox v116.0.2 (and several previous), Chrome v115.0.5790.170, Safari v16.6 (186<IP_ADDRESS>.2)

Smartphone (please complete the following information):

Device: Android
OS: EMUI 12.0.0
Browser: Using App.
Version: 2023.7.5-full

Additional context
Also described here.

Does it happen when the card is outside of the custom:tabbed-card?

Hmm, this does indeed seem to be related to the tabbed-card.
But probably the combination with the Apexcharts, since data from e.g. the sankey-chart in the same "tabbed card" doesn't have this issue.
I've added a "crossover" issue at the tabbed-card repo.

I'm pretty sure, because apexcharts-card is quite heavy, that the hass object is not assigned to the card and the issue is probably in those lines:
https://github.com/kinghat/tabbed-card/blob/main/src/tabbed-card.ts#L92-L101 (missing waiting for the createCard promise to be resolved?)
To show the javascript console, it depends on your browser, check on Google ;)

I noticed something trying to troubleshoot for the issue in the tabbed-card repo; it is only a problem if I add more data series to a graph.
So this (simplified with only 2 of the series) doesn't work:
type: custom:tabbed-card
options: {}
tabs:
  - label: Electricity prices
    card:
      type: custom:apexcharts-card
      header:
        show: true
        title: Electricity Prices (Total)
        show_states: false
      graph_span: 2d
      now:
        show: true
        color: red
      span:
        start: day
      series:
        - entity: sensor.electricity_price_total
          name: Total
          data_generator: |
            return entity.attributes.total_today.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
        - entity: sensor.nordpool_kwh_dk2_dkk_3_095_0
          name: Raw
          data_generator: |
            return entity.attributes.raw_today.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
      yaxis:
        - min: 0
    attributes:
      icon: mdi:currency-eur
      show_name: false
      show_icon: true
      show_state: false

but this (with only one of the series) does work, also inside the tabbed-card:
type: custom:tabbed-card
options: {}
tabs:
  - label: Electricity prices
    card:
      type: custom:apexcharts-card
      header:
        show: true
        title: Electricity Prices (Total)
        show_states: false
      graph_span: 2d
      now:
        show: true
        color: red
      span:
        start: day
      series:
        - entity: sensor.electricity_price_total
          name: Total
          data_generator: |
            return entity.attributes.total_today.map((entry) => {
              return [new Date(entry.start), entry.value];
            });
          type: column
          show:
            legend_value: false
            in_header: false
      yaxis:
        - min: 0
    attributes:
      icon: mdi:currency-eur
      show_name: false
      show_icon: true
      show_state: false

Update: An alpha release of the tabbed-card (here) seems to have fixed, so I'm assuming the issue was there, not in the apexcharts-card.
I'll close this issue.


wip add reserve mapping for pool key, store tL, tU

WIP, tests passing
motivation was to have better interface standardization for ERC721s
(functions dont require PositionConfig to be passed in)

& you get an onchain lookup of poolKey, tickLower, tickUpper
& position descriptor can read from config

I personally was against this for gas reasons (mint is 40-50K more expensive) but that should go down with mints on the same pool, and overhead for other ops is around 4-5K.

(mint is 40-50K more expensive

so its like 8k more for mints on the same pool right? which is the "normal" case?

(mint is 40-50K more expensive

so its like 8k more for mints on the same pool right? which is the "normal" case?

not sure I can add a test but sounds about right it definitely wont be 40-50K

reminder: consider SB-86, hasSubscriber should revert if the token does not exist
stance: probably ugly to enforce, and adds gas. BUT should be natspec'd in hasSubscriber function


django.utils.connection.ConnectionDoesNotExist: The connection 'channels_postgres' doesn't exist.

I followed the wiki instructions but I keep running into this exception when a user tries connecting to the websocket. Note that the following database connection parameters I'm using are the same ones I use to successfully connect to my Postgres database. Does anything standout to you?
My settings file:

My routing file:

My asgi file:

My consumer file:

Looks like you're missing a channels_postgres key in your DATABASES dictionary in settings.py
adding this:
DATABASES['channels_postgres'] = DATABASES['default']
to your settings.py should be enough in your case

I just checked the README and it's not in the setup instructions can you open a PR? :slightly_smiling_face:

Looks like you're missing a channels_postgres key in your DATABASES dictionary in settings.py
adding this:
DATABASES['channels_postgres'] = DATABASES['default']
to your settings.py should be enough in your case

Thank you, this resolved my issue.

I just checked the README and it's not in the setup instructions can you open a PR? 🙂
Also, I just created a new release (0.0.4) so you should probably upgrade to the latest version unless you're using aiopg<1.3.1

Sure. I went ahead and created a local branch and then updated the README file accordingly, but I require permission to push my branch and make a PR.

No you should make a fork and then open the PR from your fork.


Include step to create new card

Tutorial URL: https://developers.sap.com/tutorials/cai-bot-shipping-3-price-parcel.html
Step 4: Add requirements to skill
While adding the card, click on add card and then click on create new card.
Please include these steps in the tutorial.
Best Regards,
Priyanka

Labels to be attached:
Landscape label: trail1, trail2
Sprint Label: SCPTest-2008A
Scenario Labels: SCPTest-cai
Best Regards,
Priyanka

I do not think someone needs to be told to press the Create New Card button, but I did add instruction to click "Add Card" at the end, otherwise they may forget and it won't be saved.
https://github.com/SAPDocuments/Tutorials/commit/226c4a995ddfcdba40c4bbd1ef9877cb329f8636


Update Istio dependencies

@jwendell: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gencheck_cni
d56f62407d5277e9b595035a2da9fc38701e79d3
link
/test gencheck_cni

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.