[EasyTesting] Add Check Fixture suffix

Fixes https://github.com/rectorphp/rector/issues/5349

@TomasVotruba this may need a way to exclude specific part to not be checked like the following fixture in rector:
https://github.com/rectorphp/rector/blob/024ec4ba9378ebf685a01307e7a1f114a54fcf81/utils/project-validator/src/Command/ValidateFixtureSuffixCommand.php#L79-L83
what do you think?

@TomasVotruba this may need a way to exclude specific part to not be checked like the following fixture in rector:
https://github.com/rectorphp/rector/blob/024ec4ba9378ebf685a01307e7a1f114a54fcf81/utils/project-validator/src/Command/ValidateFixtureSuffixCommand.php#L79-L83
what do you think?

@TomasVotruba with this handling, it got error already, any idea?
1) Error
The data provider specified for Symplify\ConfigTransformer\Tests\Converter\ConfigFormatConverter\YamlToPhp\YamlToPhpTest::testNormal is invalid.
Symplify\SymplifyKernel\Exception\ShouldNotHappenException: "empty_parameters.yaml" has invalid suffix, use "*.yaml" suffix instead
/home/runner/work/symplify/symplify/packages/easy-testing/src/DataProvider/StaticFixtureFinder.php:43
/home/runner/work/symplify/symplify/packages/easy-testing/src/DataProvider/StaticFixtureFinder.php:18

@TomasVotruba with this handling, it got error already, any idea?
1) Error
The data provider specified for Symplify\ConfigTransformer\Tests\Converter\ConfigFormatConverter\YamlToPhp\YamlToPhpTest::testNormal is invalid.
Symplify\SymplifyKernel\Exception\ShouldNotHappenException: "empty_parameters.yaml" has invalid suffix, use "*.yaml" suffix instead
/home/runner/work/symplify/symplify/packages/easy-testing/src/DataProvider/StaticFixtureFinder.php:43
/home/runner/work/symplify/symplify/packages/easy-testing/src/DataProvider/StaticFixtureFinder.php:18

@TomasVotruba I added $enableValidation flag to make allow disable validation on specific fixture directory, after the directory scanned, $enableValidation set to true again.

@TomasVotruba I added $enableValidation flag to make allow disable validation on specific fixture directory, after the directory scanned, $enableValidation set to true again.

All checks have passed 🎉 @TomasVotruba it is ready for review.

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba this may need a way to exclude specific part to not be checked like the following fixture in rector:
<EMAIL_ADDRESS>what do you think?

That would probably kill the idea of strict design here. Use has 2 method to choose, one lousy and one strict (the new one). That should be enough
More options and exclussion might be very confusing and hard to understand.

@TomasVotruba this may need a way to exclude specific part to not be checked like the following fixture in rector:
<EMAIL_ADDRESS>what do you think?

That would probably kill the idea of strict design here. Use has 2 method to choose, one lousy and one strict (the new one). That should be enough
More options and exclussion might be very confusing and hard to understand.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

rebased.

rebased.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

rebased.

rebased.

All checks have passed 🎉 @TomasVotruba I think it is ready.

All checks have passed 🎉 @TomasVotruba I think it is ready.

Thank you :+1:

Thank you :+1:


Fetch Contacts and Photos

I use K-9 for my work Gmail, and I notice It doesn't seem to fetch contacts that my server provides. Also their Google photos.
For example, if I go on Gmail, I can start typing "Joh" and I should see all names in my business. John, Johnny, etc.
Without them being in my local contacts.
And on Gmail, people have their profile pictures.
In K-9, it doesn't fetch those if you have photos enabled.
It only fetches stuff from local contacts.
Also I think if this is introduced, a clear distinction between your saved/local contacts and the server contacts is important.

K-9 Mail doesn't manage contacts. It uses Android's contact database.
If you want to sync Google contacts, add the Google account to your device (under Android settings, "Passwords & accounts" or similar), then enable sync for "Contacts".

That's a very unfortunate situation for users who are using K-9 for privacy reasons and do not wish to have the Google account logged into their phone.
It also does not resolve the issue that it cannot pull the same from Outlook as well.


Defect: GCC C extensions used in multiple locations

Avg response time

Defect/Bug Report

OpenCoarrays Version: master
Fortran Compiler: GFortran 8.1
C compiler used for building lib: clang
Installation method: cmake
Output of uname -a: x86_64 macOS (high sierra)
MPI library being used: Doesn't matter, MPICH & OpenMPI
Machine architecture and number of physical cores: x86_64 4 hw cores 8 HT
Version of CMake: latest

Observed Behavior

A struct in libcaf_mpi has a variable length member component that is not the last element in the struct: This causes warnings when compiling with clang because it is a GCC C extension
iso_fortran_binding.h uses variable length arrays (VLAs) inside structs which is a GCC C extension

See also discussion at https://github.com/Homebrew/homebrew-core/pull/28534
SEE ALSO: #485 these issues are nearly duplicates.
Expected Behavior
Be able to compile all components written in C because the C code is standards conforming
Steps to Reproduce
compile using clang instead of gcc
Discussion
@dcelisgarza:

Is there no option other than enumerating every possible rank?
Could this be done with a macro?
Could you point from within the struct to an external VLA?

I don't want you to have to do anything that is "tedious as hell" but it would be nice to get standard complying C code. Otherwise I can just test for the ability to compile the code in question and if it fails exclude the iso_fortran_binding stuff.

“Variable Length Array's in Structs (VLAIS) and why they don't belong in your C code” https://blog.linuxplumbersconf.org/2013/ocw/system/presentations/1221/original/VLAIS.pdf

FX,
The student who worked on this did so as part of an 11-week visit to
Sourcery Institute that ended yesterday.  He's unlikely to be able to work
on OpenCoarrays going forward other than writing up his work.  He's also on
vacation for all of June.  It sounds like you might have the expertise to
fix this and I'm hoping you might pitch in.  Very nearly all OpenCoarrays
development going forward will be from community contributions as there are
no related contracts and the few people who have related funding have very
specific objectives that don't relate to this file.
Damian
On Fri, Jun 1, 2018 at 7:55 AM, FX Coudert<EMAIL_ADDRESS>wrote:

“Variable Length Array's in Structs (VLAIS) and why they don't belong in
your C code” https://blog.linuxplumbersconf.org/2013/
ocw/system/presentations/1221/original/VLAIS.pdf
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sourceryinstitute/OpenCoarrays/issues/549#issuecomment-393906044,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMgGhL7n-DBIoreGnYZQbePvPUzur7aAks5t4VXfgaJpZM4UWwSj
.

Hi @rouson I personally have no use for Opencoarrays, and though I wish the project well, I have no time to contribute. I also would not like to contribute to a project were certain contributors are paid, and myself (with what I would consider to be similar expertise, academic background and software skills) doing it on my free time.
It is sad that development is contract-based and does not include producing standard code. This could have been caught during review of the project, if GCC was called with a standard-compliance option (-std=c99), or if multiple compilers were tested (in this case, clang/llvm).
Regarding Homebrew, if there is no incentive to commit to cross-platform code, given this is the second release of Opencoarrays that is broken, I will recommend simply removing it unless there is a commitment from the Opencoarrays team to make a release which fixes the issue.

Hi @rouson,
fyi if you'd like this is something that I could start working on tomorrow. On my flight I'll try to take a look at it.
-Soren

Thanks, @scrasmussen.  That would be great!

I have thought about this and there might be a solution.
I don't know if you can include if statements in macros, or perhaps pounded ifs? That would make it so C can declare a variable according to a given an explicitly typed struct. That would solve our issue, we'd only have to define explicitly typed structs and the function-like macro.

@fxcoudert We are committed to fixing this and using standard conforming code.
Most of the development of OpenCoarrays is unfunded with very sporadic funding here and there. The goals of OpenCoarrays and SourceryInstitute are to (as best we can) advance support for the latest modern Fortran language standards in the broader community. Any funding for OpenCoarrays is usually from donations, and most work is performed by volunteers. We are committed to open source and supporting and enhancing the open source computing and broader scientific computing community.
The first issue that broke OpenCoarrays was due to a sloppy commit to the GFortran code base right before the 8.1 release, that was completely out of our control. In fact it can cause ICEs with any coarray code, even when using the serial testing backend that ships with GFortran.
We agree that OpenCoarrays should be portable and standards conforming and will ensure that OpenCoarrays can build cleanly on MacOS with Homebrew ASAP.
Thanks for your contributions to Homebrew, GFortran and your patience in working with us as we resolve this issue.
Best,
Zaak

In general, we are not C99 or C11 compliant AFAICT. The first errors show up compiling mpi_caf.c in macros for type conversion:
OpenCoarrays/src/mpi/mpi_caf.c:7180:70: error: expected ';' before 'opr'
               type ## _t_by_value = (typeof (VALUE_FUNC(type ## _t)))opr; \
                                                                      ^~~

My C macro wrangling fu is not quite strong enough to see what the obvious solution to this is, but it seems like it should be fairly trivial. Perhaps an additional ##?

PR #557 excludes ISO_Fortran_binding.h when the C compiler is not GCC. This is a work around for now... in the long run we should plan to remove VLAs

I'm closing this. We're back down to only two warnings about structs with arrays that are not the final component. I should open a new issue for that.


Incorrect participation data

Tan asked me to raise an issue here in Discord when reported here.
This is the only instance I've seen, though I haven't looked too hard at the data overall just yet. This example (see attached image) is referencing Washington as the possession team, but for a game ID which is related to NYG v TEN. The code to pull the data and subsequent filters is pasted below.
participation_pbp <- nflreadr::load_participation(seasons = 2022:2022, include_pbp = TRUE)

data <- participation_pbp %>%
  filter(
    yardline_100 <= 20,
    special_teams_play == 0
    ) %>%
  select(play_id, game_id, week, qb_dropback, yardline_100, possession_team, offense_formation, offense_players)

Resolved in nflreadr 1.3.1
participation_pbp <- nflreadr::load_participation(seasons = 2022, include_pbp = TRUE)

participation_pbp |>
  dplyr::filter(!stringr::str_detect(nflverse_game_id, possession_team))

#> ── nflverse play-by-play participation ─────────────────────────────────────────
#> ℹ Data updated: 2022-11-17 10:26:08 CET
#> # A tibble: 0 × 383
#> # … with 383 variables: nflverse_game_id <chr>, play_id <int>,
#> #   possession_team <chr>, offense_formation <chr>, offense_personnel <chr>,
#> #   defenders_in_box <int>, defense_personnel <chr>,
#> #   number_of_pass_rushers <int>, players_on_play <chr>, offense_players <chr>,
#> #   defense_players <chr>, n_offense <int>, n_defense <int>, old_game_id <chr>,
#> #   home_team <chr>, away_team <chr>, season_type <chr>, week <int>,
#> #   posteam <chr>, posteam_type <chr>, defteam <chr>, side_of_field <chr>, …

Created on 2022-11-17 with reprex v2.0.2


fix:  Under mobile mode Github link under Highlights are not properly inside card if link is longer #1052

Under mobile mode Github link under Highlights are not properly inside card if link is longer #1052

What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[x] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Description
Under mobile mode Github link under Highlights are not properly inside card if link is longer #1052

Related Tickets & Documents
Fixes https://github.com/open-sauced/insights/issues/1052

Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

@bdougie could you review it

@OgDev-01
Before making changes:

After making changes:


JOIN- Can't join via Log in or Sign Up

Expected behavior
When you get to Log in and enter in your email address and password (when already a TS Registered user) I should be able to click next and it should take me to the Whats in my Kit page.
OR if you were to click to Sign up-
You should be able to to enter your First name, Last name, email address, password and re-enter password and click next it should be
Actual behavior
My attempt at log in, when I click next nothing happens- no error- doesn't go anywhere

So I tried to click on Sign up instead... the flip switched over, but that is it- it didn't not flip to the other screen for me to enter in my sign up details.

here is what I should see, (screen shot via mock) image
Steps to reproduce behavior
TS,com
Join US
Get Started
Log in/ Sign up
when you try to do Log in OR Sign up they are currently not working

closing, able to get in via log in/ sign up


Over13 Yoti, after receiving the 3 cards, the app is frozen

sometimes we receive 1 or 2 cards, but app must be restart


JSX removes semicolon in edge case

Reason 3.4.2 @ 3c6a9ca9
let v =

      ...{_ => {
        let renderX = x => {
          let y = x ++ x;

;
        };
        renderX("foo");
      }}

  ;

gets refmted to
let v =

      ...{_ => {
        let renderX = x => {let y = x ++ x

};
        renderX("foo");
      }}

  ;

which is invalid. it seems that nesting has something to do with it because the following gets formatted as expected
let v =

    ...{_ => {
      let renderX = x => {
        let y = x ++ x;

;
      };
      renderX("foo");
    }}
  ;

Thanks @bloodyowl for debugging my problem 🙏

cc @IwanKaramazow as you worked on the original fix

I am trying to upgrade some stuff to reason-react 0.7 with bs-platform 5 and I am facing this again on some simpler example and I cannot do anything as a workaround... (or at least I don't find any lol)
<EMAIL_ADDRESS>let make = (~currentLocation, ()) =>
  ReactCompat.useRecordApi({
    ...component,
    render: _self =>
      <SafeAreaView style=styles##wrapper>
        <View style=styles##container>
          Consts.menuLinks->Belt.Array.map
          (
            item =>
              {let isActive =
                 item.isActive(currentLocation##pathname, item.link);
               <ViewLink
                 key={item.link} href={item.link} style=styles##itemWrapper>
                 <View style=styles##item>
                   {item.icon(
                      ~width=24.,
                      ~height=24.,
                      ~fill=isActive ? colorActive : colorInActive,
                      (),
                    )}
                   <Text
                     style=Style.(
                       concat([
                         styles##itemText,
                         isActive ? styles##itemTextActive : style([]),
                       ])
                     )>
                     item.text->ReasonReact.string
                   </Text>
                 </View>
               </ViewLink>}
          )
          ->ReasonReact.array
        </View>
      </SafeAreaView>,
  });

get turned into
<EMAIL_ADDRESS>let make = (~currentLocation, ()) =>
  ReactCompat.useRecordApi({
    ...component,
    render: _self =>
      <SafeAreaView style=styles##wrapper>
        <View style=styles##container>
          Consts.menuLinks->Belt.Array.map
          (
            item =>
              {let isActive =
                 item.isActive(currentLocation##pathname, item.link)
               <ViewLink
                 key={item.link} href={item.link} style=styles##itemWrapper>
                 <View style=styles##item>
                   {item.icon(
                      ~width=24.,
                      ~height=24.,
                      ~fill=isActive ? colorActive : colorInActive,
                      (),
                    )}
                   <Text
                     style=Style.(
                       concat([
                         styles##itemText,
                         isActive ? styles##itemTextActive : style([]),
                       ])
                     )>
                     item.text->ReasonReact.string
                   </Text>
                 </View>
               </ViewLink>}
          )
          ->ReasonReact.array
        </View>
      </SafeAreaView>,
  });

Which break parser :'(


Remove flakehell now that it's no longer being maintained

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2520
Originally created by @DouweM on 2021-01-13 22:09:47

https://github.com/life4/flakehell was added in https://gitlab.com/meltano/meltano/-/merge_requests/1970, but the maintainer has now archived the project: https://github.com/wemake-services/wemake-python-styleguide/issues/1817.
Since it's no longer being maintained, we should move away from it and start using flake8 --diff directly.
The docs at https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/legacy.html will likely come in handy as well.

View 12 previous comments from the original issue on GitLab


Input field size should match word limit

The text input field smaller where the word limit is shorter, this would make it more indicative of the word limit.
Applies to application form, but potentially also review form.
Priority

Low priority

Affected roles

Applicants
Reviewers

Ideal deadline
By July

@frjo is this possible to implement? This idea makes a lot of sense - the size of the input field gives the person an indication of how much they have to write.
The size of the field doesn't have to be exact, just an approximation.

Possible, but it would it would be far from exact since text size depends on font used, browser settings etc.
I would most likely make e.g. three fixed sizes and set these for different spans of allowed characters.

TinyMCE (WYSIWYG HTML editor) in rich fields increase the scope of this issue behind our current capacity.


No module named "huepy"

Please follow the guide below

Issues submitted without this template format will be ignored.
You will be asked some questions and requested to provide some information, please read them carefully and answer completely.
Put an x into all the boxes [ ] relevant to your issue (like so [x]).
Use the Preview tab to see how your issue will actually look like.

Before submitting an issue, make sure you have:

[x ] Updated to the latest version
[x ] Read the README and docs
[x ] Searched the bugtracker for similar issues including closed ones

Purpose of your issue?

[ ] Bug report (encountered problems/errors)
[ ] Feature request (request for a new functionality)
[x ] Question
[ ] Other

The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.

For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Paste the output of python -V here:
Code:
# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue
Every time I try to run an example file, I get the same error: "No module named huepy." How can I fix this?

pip install -U instabot

On Mac OS Catalina, had a similar issue. Turns out I needed to install huepy among other modules for python 3 specifically:
sudo python3 -m pip install huepy


Update for java-operator-sdk 3.0.0

A new version of the java-operator-sdk was released and this starter should be updated to comply with changes for that version.
Details for migration can be found https://javaoperatorsdk.io/docs/v3-migration

@robzienert  @csviri Is there a plan and estimate for updaing the starter to use v3 of the java-operator-sdk ?


No response on Windows 11 powershell

Environment: Windows 11 powershell
Python version: 3.10.1
My powershell administrator session:
PS C:\dev\Codex-CLI> .\scripts\powershell_setup.ps1 -OpenAIOrganizationId '*****' -OpenAIEngineId 'code-davinci-002'

cmdlet powershell_setup.ps1 at command pipeline position 1
Supply values for the following parameters:
OpenAIApiKey: ***************************************************
Checking OpenAI access...
Removed previous setup script from C:\Users\Kurren\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1.
Added plugin setup to C:\Users\Kurren\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1.
Updated OpenAI configuration file with secrets.
Codex CLI PowerShell (v5) setup completed. Please open a new PowerShell session, type in # followed by your natural language command and hit Ctrl+G!

I open a new powershell and do # what is my pc name? hit Ctrl + G, no response.
Any help would be much appreciated

Facing same issue :(

same issue bump

Same issue here

Same issue here
+1

Same issue
+1

another one

Ran into this issue until I realized I hadn't installed the pip dependencies. If you haven't yet, make sure python is installed and run python -m pip install -r requirements.txt at the root of the repo. That fixed it for me.

THANK YOU! 🙂 This was the issue for me, I too was missing the dependencies such as the OpenAI package. Learned to watch for a requirements.txt in cloned projects for a PIP run. and if this was in the installation instructions I missed them. Suspect that might be the case for others here.

@jtschuster This did the trick! It wasn't in the installation instructions unfortunately.


DWD download fails due to files specified which aren't in the data directory

python3 sim2real/preprocess/dwd.py fails because it specifies some file names that aren't present in the DWD data directory, names the first two PDFs here:
https://github.com/jonas-scholz123/sim2real-downscaling/blob/0161881d6034026a0a5789eae9d0ff458518a423/sim2real/preprocessing/dwd.py#L18-L19
Deleting the PDF lines allowed the download to run for me.
To guard against file name changes it could be better to get urllib to just download all files in the folder rather than specifying the file names. I'm not sure how to do this but I assume it would be straightforward. Although the cybersecurity of that is another issue...

You're right, that is annoying. Very low priority until I've got time - this was a quick and dirty way to get data!

Definitely very low priority!

Also low priority, but I presume this should by default be the historical/ rather than recent/ directory, otherwise only the last couple years of data is downloaded: https://github.com/jonas-scholz123/sim2real-downscaling/blob/0161881d6034026a0a5789eae9d0ff458518a423/sim2real/preprocessing/dwd.py#L528


UnnecessaryBracesAroundTrailingLambda false positive on vararg

Expected Behavior

It should pass the case where the last function parameter on call site (that is not the last one by definition) cannot be a trailing lambda (placed outside the parentheses).
Observed Behavior

Reported "Braces around trailing lambda can be removed."
Steps to Reproduce

fun takeLambdaFollowedByVararg(f: () -> Unit, vararg x: Unit) = f()

// This is detected noncompliant with UnnecessaryBracesAroundTrailingLambda.
takeLambdaFollowedByVararg({})
// Failed to compile if removed braces.
takeLambdaFollowedByVararg {}

Context

A real world example you could pass a lambda as the last parameter on call site but not replaceable with a trailing lambda:
https://github.com/micrometer-metrics/micrometer/blob/2e0fa1b2dbcd1b93402fe99141c125ba417713ee/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/grpc/MetricCollectingServerInterceptor.java#L85
Your Environment

Version of detekt used: 1.23.1
Version of Gradle used (if applicable):
Gradle scan link (add --scan option when running the gradle task):
Operating System and version: Ubuntu 22.04.3
Link to your project (if it's a public repository):

Hi, @sulume I have added the TC for this https://github.com/detekt/detekt/pull/6596 and it is working fine the test. Is this happening only with certain Kotlin version or even for the latest version?

Thank you for your quick response and for looking into this.
Sorry that my report wasn't sufficient to reproduce the issue. What I thought about the cause and reported seems missing the point.
The issue is in a private repository and I'm still trying to extract and make an example from it (because of a complex build setup) so I don't have correct steps now. I'm not sure if this is actually a bug or some other kind, so please let me know if I should reopen or open another when I could make a sufficient report.
I'm wondering which parts of my environment are related but trying to give some more info anyway.
I build it with bazel 6.3.0, rules_kotlin 1.8, kotlin 1.8.21, and then run detekt-cli-1.23.1 with jre zulu-17 on local mac and on ubuntu with github actions (both work almost the same).
The problematic expression of actual code is following, depending on micrometer-core 1.10.8 via maven:
MetricCollectingServerInterceptor(
    meterRegistry,
    UnaryOperator.identity(),
    { timer -> timer.publishPercentileHistogram() },
)

and the command to run detekt-cli is following:
curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.1/detekt-cli-1.23.1.zip
unzip detekt-cli-1.23.1.zip
# here several steps to build things for type resolution.
./detekt-cli-1.23.1/bin/detekt-cli \
  --config detekt-config.yml \
  --build-upon-default-config \
  --input java/ \
  --classpath $(find -L bazel-bin \
    -name '*.jar' \
    -not -path '*.runfiles/*' \
    -not -name '*-src.jar' \
    -not -name '*-gensrc.jar' \
    -not -name '*_deploy.jar' \
    -printf "%p;") \
  --report xml:detekt_report.xml

I'd be grateful for any help.

If you can reproduce the bug with the smaller reproducible example and then try to use that example with gradle setup then that will help in figuring out the root cause. Also, currently in the rule UnnecessaryBracesAroundTrailingLambda I am simply checking the Kotlin warning and surfacing that warning in the detekt. So this rule itself doesn't have any logic to it.

This issue is waiting for authors feedback since 30 days. Please comment providing the requested feedback or this issue will be closed in 7 days.

Closing as there is no way to reproduce it. Don't hesitate to open a new issue or comment here if you can provide a reproducer.


Race condition in routing.Map

Reported here
routing.Map.update() has race condition.

FWIW this actually uses locks now: https://github.com/mitsuhiko/werkzeug/commit/48037c155b8f0ae74a5f906b38fec170b9b78e69
Just for somebody who comes by to review this.


Make the url attribute an absolute URL in returned hits

Fixes #61

I just ran some manual tests, and this seems to work fine with the latest version of the PR on quarkusio.github.io: https://github.com/quarkusio/quarkusio.github.io/pull/1825
The only downside is that search results now have links that point to quarkus.io (prod) instead of localhost (dev instance), but well... you can't have your cake and eat it.

Ah, now I remember: @marko-bekhta tried to do this, but it fails in native tests... Now why does it :/ I'll have a look


Support AWS Cfn/CDK output of AppMonitor properties/code snippet

https://github.com/aws/aws-cdk/issues/17939 adds support for the AppMonitor Cfn resource within CDK. Is there any way to use that or will there be any future way to output the CW RUM JS snippet (or the properties needed for the snippet) to inject into webapps during deployments?

The CloudWatch RUM console currently generates the snippet independently of the service.
I think the only variable needed from RUM to build a snippet is the AppMonitor ID. It looks like CloudFormation outputs the name of the AppMonitor only, and does not output the AppMonitor ID.
We will need to add the AppMonitor ID as output of AWS::RUM::AppMonitor. After this is done, I think a snippet could be manually constructed in CloudFormation in a similar manner to how the RUM console does it.

Sweet, I came to this understanding as well and implemented it with an AWS SDK call in a custom resource like this in my CDK:
  private getAppMonitorId() {
    const awsRUMSDKCall: AwsSdkCall = {
      service: 'RUM',
      action: 'getAppMonitor',
      parameters: { Name: this.rumMonitor.name },
      physicalResourceId: PhysicalResourceId.of(
        '7854f358-6c0a-4ed4-8863-2d5bf35d7062'
      ),
    };

    const customResource = new AwsCustomResource(
      this,
      'Custom::GetAppMonitorId',
      {
        policy: AwsCustomResourcePolicy.fromSdkCalls({
          resources: [this.rumMonitorArn],
        }),
        installLatestAwsSdk: true,
        onCreate: awsRUMSDKCall,
        onUpdate: awsRUMSDKCall,
        functionName: 'GetAppMonitorCustomResourceHandler',
      }
    );

    customResource.node.addDependency(this.rumMonitor);

    return customResource.getResponseField('AppMonitor.Id');
  }

It would be awesome to have AppMonitor ID by default in AWS::RUM::AppMonitor though!

Aha, thanks for sharing this!
I checked and adding the AppMonitor ID as a CloudFormation output is in our backlog. I am closing this issue here. I've referenced it in the internal issue tracking for the relevant components.

Hi @qhanam, I see you've closed this issue because you're tracking it internally within something, but obviously, I can't see that, and I have no way of being notified when you've added the feature.
It would be great if you left issues like this open until you've implemented it.
In Github you can subscribe to issues, to get notified when there are updates.
So ideally, when you've added this reference, someone in your team would add a link to the documentation and close this issue, and everyone who subscribed would get a notification that it's done.
My goal is to export the AppMonitor ID as a CloudFormation export from CDK, because it's required to bundle the client-side application, but I haven't been able to work out how to use the snippet provided by @ckifer to do that.

Hi @a-h!
Totally agree with the value of leaving issues like this open. It can be tricky to track things two places at once though so in understanding why things get closed. If they don't re-open this I'd be glad to comment back here once I know that feature is out :).
In the meantime, what issues are you having with the above snippet? It's still working like a charm for me (CDK 2.17 or so).

Thanks @ckifer, I wasn't sure where to add the function, or where the value of the physical resource ID would come from.
I used the L1 construct detailed here in https://github.com/aws/aws-cdk/issues/17939#issuecomment-997152155
export interface RumProps {
    domainName: string;
    siteSubDomain: string;
}

export class Rum extends Construct {
    constructor(parent: Construct, name: string, props: RumProps) {
        super(parent, name);

        const siteDomainName = `${props.siteSubDomain}.${props.domainName}`;

        // The identity pool and role are usually created automatically by the UI-based wizard.
        // I generated one via the wizard to determine the proper settings.
        // See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html
        const identityPool = new cognito.CfnIdentityPool(this, 'RumAppIdentityPool', {
            identityPoolName: `${siteDomainName}-rum-monitor`,
            allowUnauthenticatedIdentities: true,
        });

// ... etc

I just wasn't sure where the function would get added to that construct in order for me to export a CloudFormation CfnExport containing the App Monitor ID, which I can then feed into the build step of my application.

@a-h Sweet yeah so you'd just add the snippet to the construct class. For the physicalId you can use anything as long as it doesn't changed. I generated a random UUID and used it hardcoded.
This is my full construct:
export type Telemetries = 'errors' | 'performance' | 'http';

export interface CloudwatchRUMProps {
  stage: StageName;
  monitorDomain: string;
  telemetries?: Telemetries[];
}

export class CloudwatchRUM extends Construct {
  public unauthenticatedRoleArn: string;
  public readonly rumMonitor: CfnAppMonitor;
  public readonly identityPoolId: string;
  public readonly appMonitorId: string;
  private rumMonitorArn: string;

  constructor(scope: Construct, id: string, env: DeploymentEnvironment, props: CloudwatchRUMProps) {
    super(scope, id);

    this.rumMonitorArn = `arn:aws:rum:${env.region}:${env.account}:appmonitor/${id}`;
    this.identityPoolId = this.createIdentityPool(id);
    this.rumMonitor = this.createRUMMonitor(id, props);
    this.appMonitorId = this.getAppMonitorId();
  }

  private createRUMMonitor(id: string, props: CloudwatchRUMProps): CfnAppMonitor {
    const { stage, monitorDomain, telemetries } = props;
    const monitor = new CfnAppMonitor(this, id, {
      name: id,
      appMonitorConfiguration: {
        allowCookies: true,
        enableXRay: true,
        sessionSampleRate: stage === 'prod' ? 1 : 0.5,
        telemetries: telemetries || ['errors', 'performance', 'http'],
        guestRoleArn: this.unauthenticatedRoleArn,
        identityPoolId: this.identityPoolId,
      },
      cwLogEnabled: true,
      domain: monitorDomain,
    });
    return monitor;
  }

  private createIdentityPool(id: string) {
    const identityPool = new CfnIdentityPool(this, `${id}-IdentityPool`, {
      identityPoolName: `${id}-IdentityPool`,
      allowUnauthenticatedIdentities: true,
    });
    const identityPoolId = identityPool.ref;

    /**
     * Role associated with RUM users.
     * RUM can only accept requests from our domain and the only permissions this role gives is rum:PutRumEvents
     */
    const unauthenticatedRole = new Role(this, `${id}-RUMCognitoUnauthenticatedRole`, {
      assumedBy: new FederatedPrincipal(
        'cognito-identity.amazonaws.com',
        {
          StringEquals: {
            'cognito-identity.amazonaws.com:aud': identityPoolId,
          },
          'ForAnyValue:StringLike': {
            'cognito-identity.amazonaws.com:amr': 'unauthenticated',
          },
        },
        'sts:AssumeRoleWithWebIdentity'
      ),
      inlinePolicies: {
        PutRumEvents: new PolicyDocument({
          statements: [
            new PolicyStatement({
              effect: Effect.ALLOW,
              actions: ['rum:PutRumEvents'],
              resources: [this.rumMonitorArn],
            }),
          ],
        }),
      },
    });
    this.unauthenticatedRoleArn = unauthenticatedRole.roleArn;

    const roleAttachment = new CfnIdentityPoolRoleAttachment(this, `${id}-IdentityPoolRoleAttachment`, {
      identityPoolId: identityPoolId,
      roles: {
        unauthenticated: unauthenticatedRole.roleArn,
      },
    });
    roleAttachment.node.addDependency(identityPool);
    return identityPoolId;
  }

  private getAppMonitorId() {
    const awsRUMSDKCall: AwsSdkCall = {
      service: 'RUM',
      action: 'getAppMonitor',
      parameters: { Name: this.rumMonitor.name },
      // this can be anything, as long as it stays the same. I just generated a UUID.
      physicalResourceId: PhysicalResourceId.of('xxx-xxx'),
    };

    const customResource = new AwsCustomResource(this, 'Custom::GetAppMonitorId', {
      policy: AwsCustomResourcePolicy.fromSdkCalls({
        resources: [this.rumMonitorArn],
      }),
      installLatestAwsSdk: true,
      onCreate: awsRUMSDKCall,
      onUpdate: awsRUMSDKCall,
    });

    customResource.node.addDependency(this.rumMonitor);

    return customResource.getResponseField('AppMonitor.Id');
  }
}

From here you can access the appMonitorId on the construct
const rum = new CloudwatchRUM({ ...props  });
new CfnOutput(this, 'RUMAppMonitorId', { value: rum.appMonitorId });

@ckifer Hi, when I try to read rum.appMonitorId with above code I still get ${Token[TOKEN.4086]} is it what is expected or should it be reading an actual MonitorId?
Thanks!

@BulletBored that is a token that will resolve to your monitor ID at deploy time. It doesn't know the AppMonitorId until the app monitor is actually created so that value will be a token until the monitor finishes deploying and the custom resource can retrieve the ID.

Ah, I see, that makes sense now, thanks! Appreciate the prompt response!

@BulletBored that is a token that will resolve to your monitor ID at deploy time. It doesn't know the AppMonitorId until the app monitor is actually created so that value will be a token until the monitor finishes deploying and the custom resource can retrieve the ID.

Similar to CDK workaround above, I've put together a customer resource in a cloudformation template which extracts both the RUM App Monitor ID and Cognito Guest Role Arn which allow you to construct the Javascript snippet:
---
AWSTemplateFormatVersion: 2010-09-09

Description: >
    Deploys a Cloudwatch RUM App Monitor

Parameters:
  CognitoIdentityPoolId:
    Type: String
    Description: ID of the Amazon Cognito identity pool that is used to authorize the sending of data to CloudWatch RUM.
  ApplicationDomain:
    Type: String
    Description: The domain that the application is hosted on - for instance xxxxxxxxx.cloudfront.net
  AppMonitorDesc:
    Type: String
    Description: The desired name of the App Monitor stack

Resources:

  # Create the App Monitor
  RumAppMonitor:
    Type: 'AWS::RUM::AppMonitor'
    Properties:
      AppMonitorConfiguration:
        AllowCookies: true
        EnableXRay: true
        IdentityPoolId: !Ref CognitoIdentityPoolId
        SessionSampleRate: 1
        Telemetries:
          - 'performance'
          - 'errors'
          - 'http'
      CwLogEnabled: true
      Domain: !Ref ApplicationDomain
      Name: !Ref AppMonitorDesc

  # The custom resource allows Cloudformation to call the Lambda function which fetches the RumAppMonitorID and CognitoGuestRoleArn
  FetchAppMonitorId:
    Type: Custom::FetchAppMonitorId
    Properties:
      ServiceToken: !GetAtt FetchAppMonitorIdFunction.Arn
      AppMonitorName: !Ref RumAppMonitor

  # The RUM AppMonitorID and CognitoGuestRoleArn are not returned by Cloudformation when creating the App Monitor.
  # The lambda function below fetches both after creation to allow them to be used to create the Javascript snippet
  FetchAppMonitorIdFunction:
    Type: "AWS::Lambda::Function"
    Properties:
      Description: 'Retail Demo Store deployment utility function that fetches the Cloudwatch RUM AppMonitor ID'
      Role: !GetAtt FetchAppMonitorIdLambdaExecutionRole.Arn
      Code:
        ZipFile: |
          import boto3
          import cfnresponse

          def handler(event, context):
              response_data = {}
              response_status = cfnresponse.FAILED

              if event['RequestType'] == 'Delete':
                  response_data['AppMonitorId'] = ''
                  response_data['CognitoGuestRoleArn'] = ''
                  response_data['Message'] = "Delete OK"
                  response_status = cfnresponse.SUCCESS
              else:
                try:
                    rum = boto3.client('rum')
                    app_monitor_name = event['ResourceProperties']['AppMonitorName']

                    app_monitor_details = rum.get_app_monitor(
                        Name=app_monitor_name
                    )

                    app_monitor_id = app_monitor_details['AppMonitor']['Id']
                    identity_pool_id = app_monitor_details['AppMonitor']['AppMonitorConfiguration']['IdentityPoolId']

                    response_data['Message'] = "App Monitor ID Fetched OK"

                    cognito = boto3.client('cognito-identity')
                    identity_pool_roles = cognito.get_identity_pool_roles(
                        IdentityPoolId=identity_pool_id
                    )
                    cognito_guest_role_arn = identity_pool_roles['Roles']['unauthenticated']

                    response_data['AppMonitorId'] = app_monitor_id
                    response_data['CognitoGuestRoleArn'] = cognito_guest_role_arn

                    response_data['Message'] = "All information fetched OK"
                    response_status = cfnresponse.SUCCESS
                except Exception as e:
                    print("Error: " + str(e))
                    response_data['Message'] = "Resource {} failed: {}".format(event['RequestType'], e)

              cfnresponse.send(event, context, response_status, response_data)
      Handler: index.handler
      Runtime: python3.9
      Timeout: 30

  FetchAppMonitorIdLambdaExecutionRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Principal:
              Service: lambda.amazonaws.com
            Action:
              - 'sts:AssumeRole'
      Policies:
        - PolicyName: LoggingPolicy
          PolicyDocument:
            Version: 2012-10-17
            Statement:
              - Effect: Allow
                Action:
                  - logs:CreateLogGroup
                  - logs:CreateLogStream
                  - logs:PutLogEvents
                Resource: '*'
        - PolicyName: RumPolicy
          PolicyDocument:
            Version: 2012-10-17
            Statement:
              - Effect: Allow
                Action:
                  - rum:GetAppMonitor
                Resource:
                  - '*'
        - PolicyName: CognitoIdentityPoolsPolicy
          PolicyDocument:
            Version: 2012-10-17
            Statement:
              - Effect: Allow
                Action:
                  - cognito-identity:GetIdentityPoolRoles
                Resource:
                  - '*'

Outputs:

  RumAppMonitorId:
    Description: The id of the RUM App Monitor
    Value: !GetAtt FetchAppMonitorId.AppMonitorId

  CognitoGuestRoleArn:
    Description: The ARN of the guest Cognito role used by Cloudwatch RUM
    Value: !GetAtt FetchAppMonitorId.CognitoGuestRoleArn

For anyone still looking for this, can't seem to find much on the open issues
You can now get the app monitor ID from attrid. CDK doco of the property
const monitor = new CfnAppMonitor(this, id, {...props});
const appMonitorId = monitor.attrId;

@haydster7 thank you!! Time to remove some custom resources


[Language Text] Support warnings

The service returns warnings in a warn-code and warn-text headers, design the SDK experience for exposing those warnings.

This issue has been resolved


Misc fixes

Fix clang-format
Improve thread synchronization (only lock on critical sections and use condition_variable to notify the waiting thread)
Introduce GitHub Actions to the repository (clang-format checking and CI)

Great! So can I merge this?


Added variable declaration for content

Fixes issue when compiling with webpack.

It's been a while that I haven't work on this project. Thanks for the fix.

No problem. Could you also update the npm package please :)

Hi @dijs , sorry for the delay, version has been bumped.


Mode is deprecated, subnet-mode instead

Duplicate of #259, which itself is a duplicate of #256.

Fixed on master


Move AnnotationValidationAdapter.Factory -> AnnotationValidatorFactory

Ok, I'm done with this PR now.

If you are ok with this @SentryMan  I'll merge this in.  If there are changes we want to reverse we can do that too.

LGTM


Only allowed to compile under JDK22?

I noticed that the project is currently only allowed to compile under JDK22?

https://github.com/chdb-io/chdb-java/blob/ea2d84799c2792d51994b9a6008a0ed4e6e01cd6/pom.xml#L12

Is there a possible contributor guide describing how to compile? Although this looks like a standard Maven 3 project, seeing cmake is unfamiliar to me.

Basically you can compile in any version which greater than JDK8 , and I will add the doc on how to compile later.


Mxnet official website before the search function area ran where? Updated?

Hi @mifan0208 Could you provide more information for your question?

mifan0208’s question may be ‘where is the search box in the main page of MXNet website’.
The search box only exists in the documents pages, like http://mxnet.incubator.apache.org/api/python/docs/api/
Some users report that they could not find the search box in the new website, and the old search box is more convenient than the new one. I also hope that the search box exists on the right-top of the main page of the new website.


Printer configured, but not visible

Hi,
I've got a Laptop running Fedora 33, with cups-filters 1.28.7:
    [jwi@tarqeq ~]$ rpm -qi cups-filters | grep Source
    Source RPM  : cups-filters-1.28.7-2.fc33.src.rpm

The Cups server is uptodate with regards to the configuration. I did ensure that by running
   sudo systemctl restart cups

I have a default printer configured in my printers.conf
So, I'd expect "lpstat -p" to show my printer. Which it doesn't:
    [jwi@tarqeq ~]$ lpstat -p
    lpstat: No destinations added.

If I visit the Cups administration instead ( http://<IP_ADDRESS>:631/printers/?QUERY= ), then I get the message "No printers"  (More precisely, I get the german equivalent: "Keine Drucker")
Error log here.
Edited by zdohnal.

hi
Could you please confirm whether the driverless command is working on your system or not.

And please state the results here.

The problem might be occurring because:

CUPS server is only listening to localhost and not able to read printers. To fix this, configure the /etc/cups/cupsd.conf file to listen on an external IP address, i.e, change
Listen localhost : 631
to
Listen  : 631
and then restart cups and cups-browsed.

OR

Configure the ~/.cups/client.conf file, as the work network defined in it has made the lpstat -s freeze and the system is not able to read the printers.

The problem might be occurring because:

CUPS server is only listening to localhost and not able to read printers. To fix this, configure the /etc/cups/cupsd.conf file to listen on an external IP address, i.e, change
Listen localhost : 631
to
Listen  : 631
and then restart cups and cups-browsed.

OR

Configure the ~/.cups/client.conf file, as the work network defined in it has made the lpstat -s freeze and the system is not able to read the printers.

I did the following:

Completely removed all Cups packages. (While doing so, I noticed that some of them have been installed twice, which might explain all kinds of strange behaviour.)
Reinstalled the same packages, resulting in a basically empty /etc/cups/printers.conf.
Opened the "printers" dialog in the GNOME control center. Noticed, that there is a printer, most likely detected automatically.
Used this printer successfully for printing.

Closing this issue, thank you all very much!


Implement proper checkpointing for dataset uploading with resume function that does not require remapping shards that have already been uploaded

Context: issue #5990
In order to implement the checkpointing, I introduce a metadata folder that keeps one yaml file for each set that one is uploading. This yaml keeps track of what shards have already been uploaded, and which one the idx of the latest one was. Using this information I am then able to easily get the push_to_hub function to retrieve on demand past history of uploads and continue mapping and uploading from where it was left off.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@lhoestq Reading the filenames is something I tried earlier, but I decided to use the yaml direction because:

The yaml file name is constructed to retain information about the shard_size, and total number of shards, hence ensuring that the files uploaded are not just files that have the same name but actually represent a different configuration of shard_size, and total number of shards.
Remembering the total file size is done easily in the yaml, whereas alternatively I am not sure how one could access the file size of the uploaded files without downloading them.
I also had an issue earlier with the hashes not being consistent with which the yaml helped -- but this is no longer an issue as I found a way around it.

If 1 and 2 can be achieved without an additional yaml, then I would be willing to make those changes. Let me know of any ideas. 1. could be done by changing the data file names, but I'd rather not do that as to prevent breaking existing datasets that try to upload updates to their data.

If the file name depends on the shard's fingerprint before mapping then we can know if a shard has been uploaded before mapping and without requiring an extra YAML file. It should do the job imo

I also had an issue earlier with the hashes not being consistent with which the yaml helped -- but this is no longer an issue as I found a way around it.

what was the issue ?

You are right. I was having some other issue earlier that I need more input from you guys to overcome, and when I overcame it the yaml was just legacy from before. I'll update the PR.

If the file name depends on the shard's fingerprint before mapping then we can know if a shard has been uploaded before mapping and without requiring an extra YAML file. It should do the job imo

I also had an issue earlier with the hashes not being consistent with which the yaml helped -- but this is no longer an issue as I found a way around it.

what was the issue ?

I remembered what it was, and why I needed the yaml. I needed it so it could remember the progress for a particular num_shards setup, as different num_shards would lead to different number of splits, and a user might switch between them while uploading, and I did not want the index to be conflated with one of another num_shards setup.
Any idea how we deal with that without a yaml?


custom login mapping doesn't work

On Rainloop <IP_ADDRESS> the plugin custom-login-mapping doesn't work. After setting up the plugin i can't login in webmail by the user i set. The error is: Authentication failed.
Thanks you

I'm using that version and have no issue with the user mapping.

yes, but if it's enable i can't login with my e-mail address or the username i set. I'm not using the whitelist

Please enable RainLoop logging and post your logs.

The plugin does not work for me either. First i have found issue #1012 , so i added the comment there, but this one seems more appropriate, since OP problem seems identical to mine and I have the logs requested. Here goes slightly edited copy of my reply in the other issue. I hope it can help or you guys can tell me what I am doing wrong:
The situation:
My e-mail address is in the form of<EMAIL_ADDRESS>IMAP username is in the form<EMAIL_ADDRESS>(actual email and user differs). The e-mail server is in fact outlook.com corporate account. I have added settings for the example.com domain.
Without using the plugin, I am able to get into my account and read and send e-mails, if I actually use<EMAIL_ADDRESS>as e-mail address when adding the account to RainLoop. But in this case<EMAIL_ADDRESS>is also the From: address in the sent e-mails. I can set the Reply-To: to the correct address, but many e-mail clients do not respect this and even in cases when they do, the recipient still sees my email as received from nonexistent address<EMAIL_ADDRESS>With the plugin
So I ins
log-2020-10-23.txt
log-2020-10-23.txt
talled the plugin and set the rule according the hint in the window (email:user) to:
Jan.Novak<EMAIL_ADDRESS>But when I try to add the account by the address<EMAIL_ADDRESS>with the plugin configured, I always get authentication failed, so it seems the plugin just does not work as stated in the issue title. If I use the username<EMAIL_ADDRESS>to create the account (but it surely is not right, since you are asked to fill e-mail, not username), then the situation is exactly the same as without the plugin as described above, i.e. wrong from: address - so the plugin has no effect either.
I also enabled logging during attempt to add the account with the<EMAIL_ADDRESS>email and the jano1234 string is not in the logs anywhere. It seems the e-mail is being sent to the imap server as login name (email changed,plain text password or row of stars replaced by "HIDDEN"):
`[09:19:22.594][7d49b9df] INFO[DATA]: [DATE:23.10.20][OFFSET:-00][RL:1.12.1][PHP:7.3.19-1~deb10u1][IP:::1][PID:4008][nginx/1.14.2][fpm-fcgi]
[09:19:22.594][7d49b9df] INFO[DATA]: [Suhosin:off][APC:off][MB:on][PDO:mysql][Streams:tcp,udp,unix,udg,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2]
[09:19:22.594][7d49b9df] REQUEST[NOTE]: [POST] http://localhost/rainloop/?/Ajax/&q[]=/_jyaic-lxRaQGmcaiKhZfyL63GmujeLyomb_11rcN-E-sM5YtQlSRzi5jNcjhrU-plEPvwdFYwH572FEbsOV7tTnlQQj051jdR8K72qS4EmhstEmxNTEtb9h-ZTDWJ_GI6LybjkQ9k8zh809JnDC5Bs-TSWYoBZntM1-ZMyj6rYZqKpMU7eTZe7BPJLwtJ9xWI8kTFKCv3vrei6UcYW2zxVM9cx8joX5LyKWWzgSVJgrviIXnh9IjlKqhLCtN9mVc88yyDCBbODJvBk9X2H8g_4tv6W3peq4iAmS-QvnGPRtr8GzmNV0X-Lx6SN2uW6evKyC9THjt-LIPs-fkZi8uUVoVe55KbtFKTgh72iPf_2DJDwXfojgiyE9WreoIWCkV/
[09:19:22.594][7d49b9df] AJAX[NOTE]: Action: DoAccountSetup
[09:19:22.594][7d49b9df] POST[DATA]: {"Email":"Jan.Novak@upce.cz","Password":"HIDDEN","New":"1","Action":"AccountSetup","XToken":"c4e6607fb4129d203ec2292b13470009"}
[09:19:22.595][7d49b9df] PLUGIN[NOTE]: Hook: filter.login-credentials
[09:19:22.595][7d49b9df] IMAP[NOTE]: Start connection to "ssl://imap-mail.outlook.com:993"
[09:19:22.652][7d49b9df] IMAP[NOTE]: Connected (success)
[09:19:22.701][7d49b9df] IMAP[DATA]: < * OK The Microsoft Exchange IMAP4 service is ready. [QQBNADAAUABSADAAMgBDAEEAMAAxADAAMgAuAGUAdQByAHAAcgBkADAAMgAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]\r\n
[09:19:22.701][7d49b9df] IMAP[DATA]: > TAG1 CAPABILITY\r\n
[09:19:22.718][7d49b9df] IMAP[DATA]: < * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+\r\n
[09:19:22.718][7d49b9df] IMAP[DATA]: < TAG1 OK CAPABILITY completed.\r\n
[09:19:22.718][7d49b9df] IMAP[DATA]: > TAG2 AUTHENTICATE PLAIN\r\n
[09:19:22.734][7d49b9df] IMAP[DATA]: < + \r\n
[09:19:22.735][7d49b9df] IMAP[SECURE]: > HIDDEN\r\n
[09:19:23.794][7d49b9df] IMAP[DATA]: < TAG2 NO AUTHENTICATE failed.\r\n
[09:19:23.794][7d49b9df] IMAP[WARNING]: MailSo\Imap\Exceptions\NegativeResponseException: MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1874) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:1874
Stack trace:
#0 /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php(1951): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php(281): MailSo\Imap\ImapClient->parseResponseWithValidation()
#2 /usr/share/rainloop/app/libraries/MailSo/Mail/MailClient.php(92<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#3 /usr/share/rainloop/app/libraries/RainLoop/Model/Account.php(451<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#4 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2078): RainLoop\Model\Account->IncConnectAndLoginHelper(Object(RainLoop\Plugins\Manager), Object(MailSo\Mail\MailClient), Object(RainLoop\Config\Application))
#5 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2329): RainLoop\Actions->CheckMailConnection(Object(RainLoop\Model\Account), true)
#6 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2861<EMAIL_ADDRESS>'HIDDEN', '', '', false, true)
#7 /usr/share/rainloop/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAccountSetup()
#8 /usr/share/rainloop/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#9 /usr/share/rainloop/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#10 /usr/share/rainloop/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#11 /usr/share/rainloop/app/handle.php(94): RainLoop\Service::Handle()
#12 /usr/share/rainloop/include.php(228): include('/usr/share/rain...')
#13 /usr/share/rainloop/index.php(13): include('/usr/share/rain...')
#14 {main}
[09:19:23.794][7d49b9df] IMAP[NOTICE]: MailSo\Imap\Exceptions\NegativeResponseException: MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1874) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:1874
Stack trace:
#0 /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php(1951): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php(281): MailSo\Imap\ImapClient->parseResponseWithValidation()
#2 /usr/share/rainloop/app/libraries/MailSo/Mail/MailClient.php(92<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#3 /usr/share/rainloop/app/libraries/RainLoop/Model/Account.php(451<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#4 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2078): RainLoop\Model\Account->IncConnectAndLoginHelper(Object(RainLoop\Plugins\Manager), Object(MailSo\Mail\MailClient), Object(RainLoop\Config\Application))
#5 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2329): RainLoop\Actions->CheckMailConnection(Object(RainLoop\Model\Account), true)
#6 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2861<EMAIL_ADDRESS>'HIDDEN', '', '', false, true)
#7 /usr/share/rainloop/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAccountSetup()
#8 /usr/share/rainloop/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#9 /usr/share/rainloop/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#10 /usr/share/rainloop/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#11 /usr/share/rainloop/app/handle.php(94): RainLoop\Service::Handle()
#12 /usr/share/rainloop/include.php(228): include('/usr/share/rain...')
#13 /usr/share/rainloop/index.php(13): include('/usr/share/rain...')
#14 {main}
Next MailSo\Imap\Exceptions\LoginBadCredentialsException: MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 312) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:312
Stack trace:
#0 /usr/share/rainloop/app/libraries/MailSo/Mail/MailClient.php(92<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#1 /usr/share/rainloop/app/libraries/RainLoop/Model/Account.php(451<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#2 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2078): RainLoop\Model\Account->IncConnectAndLoginHelper(Object(RainLoop\Plugins\Manager), Object(MailSo\Mail\MailClient), Object(RainLoop\Config\Application))
#3 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2329): RainLoop\Actions->CheckMailConnection(Object(RainLoop\Model\Account), true)
#4 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2861<EMAIL_ADDRESS>'HIDDEN', '', '', false, true)
#5 /usr/share/rainloop/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAccountSetup()
#6 /usr/share/rainloop/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#7 /usr/share/rainloop/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#8 /usr/share/rainloop/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#9 /usr/share/rainloop/app/handle.php(94): RainLoop\Service::Handle()
#10 /usr/share/rainloop/include.php(228): include('/usr/share/rain...')
#11 /usr/share/rainloop/index.php(13): include('/usr/share/rain...')
#12 {main}
[09:19:23.795][7d49b9df] INFO[ERROR]: MailSo\Imap\Exceptions\NegativeResponseException: MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1874) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:1874
Stack trace:
#0 /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php(1951): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php(281): MailSo\Imap\ImapClient->parseResponseWithValidation()
#2 /usr/share/rainloop/app/libraries/MailSo/Mail/MailClient.php(92<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#3 /usr/share/rainloop/app/libraries/RainLoop/Model/Account.php(451<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#4 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2078): RainLoop\Model\Account->IncConnectAndLoginHelper(Object(RainLoop\Plugins\Manager), Object(MailSo\Mail\MailClient), Object(RainLoop\Config\Application))
#5 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2329): RainLoop\Actions->CheckMailConnection(Object(RainLoop\Model\Account), true)
#6 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2861<EMAIL_ADDRESS>'HIDDEN', '', '', false, true)
#7 /usr/share/rainloop/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAccountSetup()
#8 /usr/share/rainloop/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#9 /usr/share/rainloop/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#10 /usr/share/rainloop/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#11 /usr/share/rainloop/app/handle.php(94): RainLoop\Service::Handle()
#12 /usr/share/rainloop/include.php(228): include('/usr/share/rain...')
#13 /usr/share/rainloop/index.php(13): include('/usr/share/rain...')
#14 {main}
Next MailSo\Imap\Exceptions\LoginBadCredentialsException: MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 312) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:312
Stack trace:
#0 /usr/share/rainloop/app/libraries/MailSo/Mail/MailClient.php(92<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#1 /usr/share/rainloop/app/libraries/RainLoop/Model/Account.php(451<EMAIL_ADDRESS>'HIDDEN', '', true, false)
#2 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2078): RainLoop\Model\Account->IncConnectAndLoginHelper(Object(RainLoop\Plugins\Manager), Object(MailSo\Mail\MailClient), Object(RainLoop\Config\Application))
#3 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2329): RainLoop\Actions->CheckMailConnection(Object(RainLoop\Model\Account), true)
#4 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2861<EMAIL_ADDRESS>'HIDDEN', '', '', false, true)
#5 /usr/share/rainloop/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAccountSetup()
#6 /usr/share/rainloop/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#7 /usr/share/rainloop/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#8 /usr/share/rainloop/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#9 /usr/share/rainloop/app/handle.php(94): RainLoop\Service::Handle()
#10 /usr/share/rainloop/include.php(228): include('/usr/share/rain...')
#11 /usr/share/rainloop/index.php(13): include('/usr/share/rain...')
#12 {main}
Next RainLoop\Exceptions\ClientException: AuthError[102] in /usr/share/rainloop/app/libraries/RainLoop/Actions.php:2097
Stack trace:
#0 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2329): RainLoop\Actions->CheckMailConnection(Object(RainLoop\Model\Account), true)
#1 /usr/share/rainloop/app/libraries/RainLoop/Actions.php(2861<EMAIL_ADDRESS>'HIDDEN', '', '', false, true)
#2 /usr/share/rainloop/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAccountSetup()
#3 /usr/share/rainloop/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#4 /usr/share/rainloop/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#5 /usr/share/rainloop/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#6 /usr/share/rainloop/app/handle.php(94): RainLoop\Service::Handle()
#7 /usr/share/rainloop/include.php(228): include('/usr/share/rain...')
#8 /usr/share/rainloop/index.php(13): include('/usr/share/rain...')
#9 {main}
[09:19:23.795][7d49b9df] AJAX[DATA]: {"Action":"AccountSetup","Result":false,"ErrorCode":102,"ErrorMessage":"","ErrorMessageAdditional":"","Time":1213}
[09:19:23.796][7d49b9df] INFO[MEMORY]: Memory peak usage: 2MB
[09:19:23.796][7d49b9df] INFO[TIME]: Time delta: 1.2145619392395
[09:19:23.797][7d49b9df] IMAP[NOTE]: Disconnected from "ssl://imap-mail.outlook.com:993" (success)
`

A little late to the party, but this is still the top result for this issue, so this is to contribute to a clear answer towards this.
The plugin allows the admin to define two values; a nice friendly email people can use to log in with, and a corresponding ugly mx server username. These are separated by a colon ( : ) respectively.
 Let's say mine is 'mydomain4', and my domain is 'mydomain.com'.
In order to login normally, I'd have to login with<EMAIL_ADDRESS>But this plugin allows me to predefine<EMAIL_ADDRESS>to login with instead.
TL;DR
Email I need to log in with =<EMAIL_ADDRESS>My domain = mydomain.com
MX Server username = mydomain4
Email I want to log in with =<EMAIL_ADDRESS>Login mapping to use = hello@mydomain.com:mydomain4
I made this pull request #2147 to append a simple usage explanation to the readme/tooltip for the plugin


background-sync: spread node updates over time.

Before, depending on cluster-size we were triggering node update for
each node at fixed intervals depending on cluster-size. This resulted in
high cpu usage spike in agent. While the intent is to fix state that got
stale and shouldn't be the primary source of updates, it makes sense to
spread these updates over time to average out cpu usage.
Also, reenable backgroundSync test.
GC CPU usage on 100-node cluster with IPSec enabled before:

After:

Improved background resynchronization of nodes. Before all nodes were being updated at the same time, now we spread updates over time to average out CPU usage.

/test

Removing @danehans due to https://github.com/cilium/community/pull/118

/test


PDB2CoordsOrdered

Loading pdb with the same order of atoms as in FullAtomModel and also constructing atomic mask to account for missing atoms/residues in pdb.

Done


Remove #datbots IRC notifications

You've been so busy! It makes #datbots pretty noisy =)

@martinheidegger i think react is the correct base branch, we haven't done anything on #master yet
@joehand thank you for reporting and i take it as a compliment for sure!


[MiLight] Update to address correct bulbs and implement all features

This should be feature-complete for all types of lamps now. Except the disco features. Can't think of a way to cleanly implement them, and who really wants them anyway?

Cool, thanks!


Ingress-controller to k8s template

WIP till rancher/ingress-controller:0.1.0 is released

Image is released, so the PR is good to merge


Publish checksums of release binaries

Would you be open to a PR that adds .sha256sum files for the GitHub release artifacts? These are useful for detecting a partial or corrupted transfer. For example:

https://github.com/starship/starship/releases
https://github.com/neovim/neovim/releases

Without a checksum or signature the best I can do is check the size of the artifact in the GitHub API, but that won't catch corruption in transit. The checksum is also useful for telling if an already-downloaded artifact is valid.

Sure, that would be great!

Fixed in #2323. Thank you @casey! :heart:


SQLSRV Driver: Update getFullName function to add dynamic schema support

This commit allows one to set the schema for the table in the query builder. For example we can do:
$this-db->table("myschema.users")->select("userid")
to create
SELECT "userid" FROM "myschema"."users"
rather than the default
SELECT "userid" FROM "dbo"."users"
Each pull request should address a single issue and have a meaningful title.
Description
Explain what you have changed, and why.
Checklist:

[ ] Securely signed commits
[ ] Component(s) with PHPdocs
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

---------Remove from here down in your description----------
Notes

Pull requests must be in English
If the PR solves an issue, reference it with a suitable verb and the issue number
(e.g. fixes 12345)
Unsolicited pull requests will be considered, but there is no guarantee of acceptance
Pull requests should be from a feature branch in the contributor's fork of the repository
to the develop branch of the project repository

That sounds fair enough. I can try taking a stab at the postgres drivers, but I don't have a local instance right now so it might take some time.
Is there documentation for how to run a specific test, or on how to debug tests? It would help me out a lot when writing them.

Is there documentation for how to run a specific test, or on how to debug tests? It would help me out a lot when writing them.

You can take a look at the Builder tests in tests/system/Database/Builder/ folder and see which particular tests suit your proposed changes.

It seems the base branch of this PR must be changed to develop.

Hi, and thanks for your contribution! As this PR has been standing for a couple of months now and no effort has been seen to add the necessary unit testing to confirm the patch, we can conclude that there's no more interest in moving this forward.
We love to see and appreciate all contributions coming in from the community. However, please make it an effort to make it easy for maintainers to verify your code (that you want to be part of the framework core) through unit testing. You cannot (and we cannot, either) expect to write only source code and delegate the testing part to others. Unfortunately, that's not how OSS works.
Closing this for now. We'd still love to see you around contributing to the framework. Feel free to open a new PR once all necessary testing is in place. Thanks!


Update validation.py script

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Closes: #1
Fixes

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

This is done by Me


Camera in home app does not refresh not on lan

Hi,
While in my LAN, on WiFi in home app cameras are working.
But when i leave my home, on cellular network or other wifi - cameras in home app not working.
why?

I presume you that your other devices are working remotely, and just the camera isn’t.

On Oct 21, 2017, at 3:43 PM, andriuskr<EMAIL_ADDRESS>wrote:
Hi,
While in my LAN, on WiFi in home app cameras are working.
But when i leave my home, on cellular network or other wifi - cameras in home app not working.
why?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Yes, other devices are working remotely.

I have the same problem but the opposite.
First Configuration: Mac & Phone connected through home wifi
I have Homebridge and homebridge-camera-ffmpeg running on a Mac OS High Sierra, when it's connect via Wifi, still images refresh every 11 seconds but stream stops working.
Second Configuration: Mac connected through home wifi & phone on cellular network.
still images refresh every 50 seconds but stream works for a few seconds then fails.
Third Configuration: Mac connected through ethernet & phone on cellular network or wifi.
still images & stream stops working.
Any ideas why this is happening? I just stared putting things together and stubble upon theses issues.
however it stops working when Mac  is connected via Ethernet.

@andriuskr Can you describe your setup where your running homebridge and share your config.json.  Also what device are you running as a homehub.
Sent from my iPad

On Oct 21, 2017, at 11:42 PM, andriuskr<EMAIL_ADDRESS>wrote:
Yes, other devices are working remotely.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I'm going to try the Raspberry Pi3 b running Jessie route. Is there a good link to install ffmpeg?

Since your running on Raspberry Pi you need the omx version of ffmpeg and use the omx flag.

On Oct 22, 2017, at 11:22 AM, jeylites<EMAIL_ADDRESS>wrote:
I'm going to try the Raspberry Pi3 b running Jessie route. Is there a good link to install ffmpeg?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Homebridge is running on raspberry pi 3,  homehub is apple TV 3. Home router is mikrotik.
All Operating Systems are up to date.
Previously i was running on iOS and tvOS 10, cameras was working remotely.
Recently, my raspberry pi SD card crashed, i have installed everything from scratch. And upgraded all apple devices to newest version. After this cameras from homebridge works only while i am on the same lan. Connect to home by VPN does not solve the problem.
my config:
     "platforms": [
{
"platform": "Camera-ffmpeg",
"cameras": [
{
"name": "Front Camera",
"videoConfig": {
"source": "-rtsp_transport tcp -re -i rtsp://user:password@ipaddress:554/Streaming/Channels/101",
"stillImageSource": "-i http://user:password@ipaddress/Streaming/channels/101/picture",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
},
{
"name": "Backyard Camera",
"videoConfig": {
"source": "-re -i rtsp://user:password@ipsaddress:554/Streaming/Channels/101",
"stillImageSource": "-i http://user:password@ipaddress/Streaming/channels/101/picture",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
}
]

Thanks for the details
First a raspberrypi is not fast enough for streaming video unless you are running the omx version of ffmpeg.  That version is available here
https://www.npmjs.com/package/homebridge-camera-ffmpeg-omx
Second, for remote access an atv3 is not supported for cameras or automation..  You need an atv 4 or greater.
Sent from my iPad

On Oct 22, 2017, at 1:21 PM, andriuskr<EMAIL_ADDRESS>wrote:
Homebridge is running on raspberry pi 3, homehub is apple TV 3. Home router is mikrotik.
All Operating Systems are up to date.
Previously i was running on iOS and tvOS 10, cameras was working remotely.
Recently, my raspberry pi SD card crashed, i have installed everything from scratch. And upgraded all apple devices to newest version. After this cameras from homebridge works only while i am on the same lan. Connect to home by VPN does not solve the problem.
my config:
"platforms": [
{
"platform": "Camera-ffmpeg",
"cameras": [
{
"name": "Front Camera",
"videoConfig": {
"source": "-rtsp_transport tcp -re -i rtsp://user:password@ipaddress:554/Streaming/Channels/101",
"stillImageSource": "-i http://user:password@ipaddress/Streaming/channels/101/picture",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
},
{
"name": "Backyard Camera",
"videoConfig": {
"source": "-re -i rtsp://user:password@ipsaddress:554/Streaming/Channels/101",
"stillImageSource": "-i http://user:password@ipaddress/Streaming/channels/101/picture",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
}
]
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

with appleTV i made mistake, i own atv4.
installed and tried homebridge-camera-ffmpeg-omx, with no luck. Still not getting snapshots or video stream remotely :(

@NorthernMan54
sorry to ask a vague question, I know the resolution size, fps play a role as well but what is the camera limitation amount running on Raspberry Pi 3. For an 8 camera setup will it be better to run on a Mac / PC setup as appose to RPI running OMX?
The other thing is, I tried running the install which is giving me a failed service.
pi@raspberrypi:~ $ sudo wget goo.gl/gMGA81 -O ffmpeg.deb
--2017-10-22 22:50:20--  http://goo.gl/gMGA81
Resolving goo.gl (goo.gl)... failed: Name or service not known.
wget: unable to resolve host address ‘goo.gl’
pi@raspberrypi:~ $

@jeylites I just tried the command line, and it works fine.  See below
In regards to the number of camera's, I have 2 connected to my RPI 2, with no issues.  It only uses CPU when you are streaming video, so I would expect 3 to 8 cameras to be okay, as long as you are not streaming video to several at the same time.
sudo wget goo.gl/gMGA81 -O ffmpeg.deb
Password:
--2017-10-24 21:53:38--  http://goo.gl/gMGA81
Resolving goo.gl... <IP_ADDRESS>, 2607:f8b0:400b:80d::200e
Connecting to goo.gl|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/legotheboss/YouTube-files/raw/master/ffmpeg_3.1.4-1_armhf.deb [following]
--2017-10-24 21:53:38--  https://github.com/legotheboss/YouTube-files/raw/master/ffmpeg_3.1.4-1_armhf.deb
Resolving github.com... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to github.com|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/legotheboss/YouTube-files/master/ffmpeg_3.1.4-1_armhf.deb [following]
--2017-10-24 21:53:39--  https://raw.githubusercontent.com/legotheboss/YouTube-files/master/ffmpeg_3.1.4-1_armhf.deb
Resolving raw.githubusercontent.com... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43464346 (41M) [application/octet-stream]
Saving to: ‘ffmpeg.deb’

@andriuskr For mine, I'm using this config.json and it works properly remotely.   Have you tried looking at the logs to ensure that is it getting the request to stream video remotely.  Mine has this line when streaming video
Oct 24 22:00:51 howard homebridge[581]: -f mjpeg -i http://alice:8080/video -threads 0 -vcodec h264_omx -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 299k -bufsize 299k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params bWCSbhnFwUXr0sOLwnbi9VR6446+ijZFFPTXDtdO srtp://<IP_ADDRESS>:52706?rtcpport=52706&localrtcpport=52706&pkt_size=1378
"platform": "Camera-ffmpeg",
  "cameras": [
    {
      "name": "Front Porch Camera",
      "uploader": true,
      "videoConfig": {
        "source": "-f mjpeg -i http://alice:8080/video",
        "stillImageSource": "-i http://alice:8080/shot.jpg",
        "maxStreams": 2,
        "maxWidth": 1920,
        "maxHeight": 1080,
        "maxFPS": 30,
	"vcodec": "h264_omx"
      }
    },
    {
      "name": "Spare Camera",
      "uploader": true,
      "videoConfig": {
        "source": "-f mjpeg -i http://kaitlin:8080/video",
        "stillImageSource": "-i http://kaitlin:8080/shot.jpg",
        "maxStreams": 2,
        "maxWidth": 1920,
        "maxHeight": 1080,
        "maxFPS": 30,
	"vcodec": "h264_omx"
      }
    }

  ]
}

@NorthernMan54
My honest mistake. The raspberry Pi I was installing in was connected to the local network but not the internet.  After fixing it, it ran like a champ.

Glad you figured it out.  I have the opposite issue, while on my WiFi at home, I cannot stream, but when I am off my Wifi (LTE) it streams just fine.
I can see on my Mac's resource monitor that ffmpeg starts and then stops when I'm on WiFi...
Any help appreciated.

@felsmann I have the same issue, always streams fine on 4G!

@felsmann @cbarratt Same here ! did you ever figure it out ? i think iv tried everything.

When stuff like his happens, I just build everything from scratch. It has
never failed on me.
On Sat, Mar 28, 2020 at 6:29 PM tumekee<EMAIL_ADDRESS>wrote:

@felsmann https://github.com/felsmann @cbarratt
https://github.com/cbarratt Same here ! did you ever figure it out ? i
think iv tried everything.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/KhaosT/homebridge-camera-ffmpeg/issues/118#issuecomment-605533261,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGDVQH5TX223OMT5LD4IG3RJ2B5LANCNFSM4EAGYNBA
.

--
Sent from Iphone Mobile


Enhancement - Additional Awake Interval - Until Next Reboot/Restart

Description of the new feature / enhancement
An additional option under the existing Awake Interval option (30min, 1hr, 2hr) be added for until next reboot/restart.
Scenario when this would be used?
Provides another option for those needing to keep the computer awake longer then 2hrs but only for the current session.
Supporting information
I find myself setting awake to indefinite as I am update or installing pc game as this will take longer then 2 hours, but find myself forgetting to turn it off.

Dupe of #23944


Blog authors

Closes #239
Changes

blog layout with authors displayed below the title
e2e tests
docs page section about blog authors

@rufuspollock Unfortunately the error still persists

Do you want to give it a try 🙂? You can find a more detailed error log in the CI job details.


fix: Don't capture window titles by default with ElectronBreadcrumbs integration

Fixes #459
To re-enable:
init({
  dsn: '__DSN__',
  integrations: [new ElectronBreadcrumbs({ includeWindowTitles: true })]
})

includeWindowTitles 🤔
Maybe captureWindowTitles would be better?


Language-specific OpenType Feature Names for Programming Ligatures

Given the fact that in different languages, the symbol combination should be combined into a ligature are different, is it possible to provide a language-specific feature name to distinct them? For example, in C++, >>= should not be combined together, and we can assign a feature XCPP to combine >> only. In Haskell, >>= should be combined, and feature XHS_ will be applied. The default calt can be restricted to "most-common" languages only.
cf. tonsky/FiraCode#192, atom/atom#11846, Microsoft/vscode#6918, chrissimpkins/Hack#211, larsenwork/monoid#155

for Code, this feature can be impelmented in CSS only: Assign font-feature-settings to token.<type>, like:
token.js{
    --webkit-font-feature-settings: "XJS_" 1;
    font-feature-settings: "XJS_" 1;
}

Perhaps it can be automated...

A preview:

Code is injected with this CSS:
token.haskell{ font-feature-settings: "XHS_" 1 }

Therefore the ligature for >>= is only enabled in Haskell, not in C++.

Is there a place where one can write some custom CSS to be added to the editor? Maybe a "user_css" file?
I'm asking because there are many tweaks that need custom CSS, for example custom font feature sets (such as -webkit-font-feature-settings: "zero" on; to have slashed zeros in some fonts)

@tobia my plugin
https://github.com/be5invis/vscode-custom-css
https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css

@tobia @be5invis prettify-symbls-mode might also meet your needs.

If we standardize on the font feature settings name (language id -> font feature setting name table), this is something we could add to our language configurations (in the API) and then the editor could dynamically create these styles with the right selectors to pass on the setting to fonts.
Is there a limit on these things? Why are they all 4 letters wide?

@alexandrudima All font “tags” are exactly four ASCII letters. Feature name is a kind of “Tag”. And as purposed in OpenType Spec, all custom feature names should use capital letters only.

@alexandrudima Spec

Feature List Table
The headers of the GSUB and GPOS tables contain offsets to Feature List tables (FeatureList) that enumerate all the features in a font. Features in a particular FeatureList are not limited to any single script. A FeatureList contains the entire list of either the GSUB or GPOS features that are used to render the glyphs in all the scripts in the font.
The FeatureList table enumerates features in an array of records (FeatureRecord) and specifies the total number of features (FeatureCount). Every feature must have a FeatureRecord, which consists of a FeatureTag that identifies the feature and an offset to a Feature table (described next). The FeatureRecord array is arranged alphabetically by FeatureTag names.

Note: The values stored in the FeatureIndex array of a LangSys table are used to locate records in the FeatureRecord array of a FeatureList table.

FeatureList table

Type
Name
Description

uint16
FeatureCount
Number of FeatureRecords in this table

struct
FeatureRecord[FeatureCount]
Array of FeatureRecords-zero-based (first feature has FeatureIndex = 0)-listed alphabetically by FeatureTag

FeatureRecord

Type
Name
Description

Tag
FeatureTag
4-byte feature identification tag

Offset
Feature
Offset to Feature table-from beginning of FeatureList

Source: https://www.microsoft.com/typography/otspec/chapter2.htm

@alexandrudima And according to Adobe, a Tag is a four-letter identifier. In feature files (used by MakeOTF) it should follow the glyph name specification (section 2.f). For tags shorter than four characters, it will be extended to four with spaces (so DEU is identical to DEU ).

@alexandrudima My proposals:

Language
File Extensions
Proposal 1
Proposal 2

C
.c, .h
XC__
C    *1

C++
.cpp, .cc,  .hh
XCPP
CPP

Java
.java
JAVA
JAVA

JavaScript
.js
XJS_
JS

C#
.cs
XCS_
CS

HTML
.htm, .html
XHTM
HTML

CSS
.css
XCSS
CSS

Less
.less
LESS
LESS

Stylus
.styl
STYL
STYL

Haskell
.hs
XHS_
HSKL

Python
.py
XPY_
PYTH

Scala
.scala
SCAL
SCAL

Ruby
.rb
XRB_
RUBY

JSON
.json
JSON
JSON

Swift
.swift
SWFT
SWFT

Objective-C
.m
OBJC *2
OBJC

x86 Assembly (AT&T)
.s
XS86
SX86

x86 Assembly (Intel & NASM)
.asm
XASM
AX86

TypeScript
.ts
XTS_
TS

Notes

All tags are exactly four letters. The trailing spaces are not shown, but present in fonts.
.m is used for multiple languages, including Matlab and Objective-C. Therefore the feature tag of the corresponded languages is not named using the file extension.

@alexandrudima @be5invis The feature names being proposed are nonstandard, so I think fixing them is a bad idea because some fonts may use them for other [private] features now or in the future.

@siegebell I know, there is a better way is to use the OpenType’s script-language system. That is, assign calt to languages like code/DFLT or code/CPP.
But Electron (and Chrome) does not support customized OT script/language assignment, so using custom feature tags is necessary. All of them are capital to avoid conflict with existing or future tags.

@alexandrudima @be5invis It should be up to the user to select the appropriate font and font-features per language.
I propose the following two features be added to settings.json:

Add "editor.fontFeatureSettings": string as a setting.
2a. Allow certain editor settings to be configured per language. E.g. "editor.language-specific" : [{"language": "java", "fontFeatureSettings": "JAVA ordn"}, {"language": ["haskell","**/*.ks"], "fontFeatureSettings": "HSKL", "fontFamily": "'Courier New'"}]
or optionally
2b. Support a general mechanism for language-specific configuration. Settings, provided by vscode or extensions, may specify whether they are allowed to be language specific in their schema. Let workspace.getConfiguration take an optional language-id argument (where the default behavior is to return the language-agnostic setting). E.g. "language-specific" : [{"language": "java", "editor.fontFeatureSettings": "JAVA ordn"}, {"language": ["haskell","**/*.ks"], "editor.fontFeatureSettings": "HSKL", "editor.fontFamily": "'Courier New'", "myextension.foo": true}]

@siegebell For the feature tag, I think exporting an API to extension makers is enough. They can register the tag to the file type and users can actually not focusing on these configurations. Once someone REALLY want to override, use things like this:
{ "editor.languageSpecificFontFeatureSettings": {"source.haskell" : "XHS_"}}

@be5invis Custom feature tags are specific to the font family. An extension that specifies a [nonstandard] feature tag will break any user-selected font that happens to define a conflicting tag -- this will be highly confusing and unintuitive for the user to diagnose. How are they supposed to figure out that they need to either override the feature settings, choose another font, or else uninstall the extension?
Thus this setting should be provided by the user. If you really want, I believe an extension can contribute arbitrary settings, e.g. "editor.language-specific": [{"language": "haskell", "fontFeatureSettings": "XHS_"}], so the user still does not have to focus on  configuring such subtleties. The advantage here is that the user can check the default settings.json to see what the extension did if their font breaks.

@siegebell I've investigated all existing programming fonts I can find and there is no conflict with the purposed feature tags (actually most of them do not support any ligature). I know your consideration, and it can be simplified into a bool setting which turn on/off the entire L-S thing:
{
    "editor.languageSpecificFontFeatures": true,
    "editor.languageSpecificFontFeatureOverride": {"source.haskell" : "XHS_"}
}

cc. @larsenwork @tonsky

@be5invis If an override is added to the configuration options and an extension is already able to contribute configuration options, why not just have everything specified in the configuration options instead of providing an extension API that is redundant, OpenType-standards-breaking*, and opaque to the user?
*OpenType allows nonstandard tags, but my interpretation is that they should only be invoked by users that know what they're doing or programs/interfaces that do not use arbitrary fonts. I do not believe that "all existing programming fonts I can find" is a sufficient metric, although I do agree that encountering a conflict is unlikely.

@siegebell There is an option to turn off the entire thing, and it is off by default. So it is an opt-in, not an opt-out. I do not think that standardizing a “non-standard” tag set is a bad idea.
A better solution is that when Chrome and Electron get support of font-language-override, then move these tags to sub-languages under latn script (or maybe code if they support), and the conflicts will gone.

@be5invis can you be clear: are you proposing that this feature be off by default by providing "editor.languageSpecificFontFeatures" with default value false, such that the user must explicitly enable the feature? If so, then I have no more technical objections. (I'm only against adopting nonstandard font feature tags when it is done opaquely to the user.)

@siegebell Yes.

@be5invis @larsenwork @tonsky Can multiple language ligature support be implemented via font fallbacks?
For example, given a base font myfont and a font that only defines a subset of necessary characters and ligatures for a particular language, e.g. myfont Haskell defines only characters - and > with a ligature converting -> into a nice arrow, add this setting:
"editor.fontFamily": "'myfont Haskell', 'myfont', monospace"

(I'm not necessarily advocating this approach, but I do wonder if it is feasible and what its drawback may be.)

@siegebell I'd prolly use stylistic alternates within a font for programming-language-specific custom ligatures — so you'd only have the haskell ligature with e.g. ss01 turned on.
I've never used vscode so I don't know how a font stack there behaves

As a potential user of this feature, I would like to add my 2¢, because I've seen some wild ideas in this thread that don't make much practical sense.
First things first: Font features are 4-byte tags that are chosen and/or invented by the font designer and are baked into the font file. They allow the user to choose among stylistic variations of the font, mixing and matching the variations they like the best, or that are most appropriate for the task at hand. These features are usually small things that don't warrant creating an entirely different font file, such as empty vs. slashed zero, or fixed-width vs. proportional decimal digits, or increased character spacing. The name of a feature is a 4-byte ASCII string and the value is a small integer (not just true and false!)
The font standard defines names for common features, such as zero denoting alternative shapes for the zero digit. What particular styles are selected with the various integer values of the features is partly specified in the standard, partly left to the font designer. Tag names with lowercase letters are reserved for standard features, while names in all caps are reserved for the font designer, if they can't find a standard feature name that denotes what they are trying to do.
More and more fonts are supporting features, especially those managed as open source projects, because different people have different ideas on what the best shape for something is, such as which (if any) common character combinations that are usually read together, such as ->, should be rendered as a single symbol (a ligature.)
My original post in this thread was asking whether there is a user setting for font features, because I wanted to turn on the slashed zero feature for the particular font I'm using.
Given what features are, I'm pretty sure the best place for them would be a user setting right among the other font-related ones:
"editor.fontFamily": "My cool font",
"editor.fontSize": 12,
"editor.fontFeatures": {"zero": 1, "salt": 3, "COOL": 1},
"editor.fontLigatures": true,

In particular, I fail to see what the table posted by @be5invis is supposed to represent. Font features are chosen by the font designer, so it makes no sense at all for an editor to come up with its own custom names.
As far as language-specific configuration, there might be value in configuring different editor settings depending on the current language, but it's not limited to font features. I'm pretty sure it should be split into a specific issue.
For example, I might want to use different values for editor.useTabStops, editor.trimAutoWhitespace, and the proposed editor.fontFeatures when I'm editing Python code vs. JSON files. I think this would make a lot of sense and is already provided by most programming editors, including Sublime Text. (Maybe it's already possible in VSCode? I'm a newbie so I might have missed it!)
Hope this helps to clear things up.

@tobia
My proposal is that, we can standardize a series of tags for programming-language-specific ligatures, so that type designers (like @larsenwork) can instantly create these features to solve the ligature conflict problem.
The best solution will be using the script/language system of OpenType, so that we can assign a feature to a special language like latn/HSKL, but currently Electron does not support this mechanism.

@tobia since font feature settings don't seem to be implemented as yet, could you please advise how you added the -webkit-font-feature-settings: "zero" on; to workbench.main.css? What css selector do you use? Thanks!

See https://github.com/tonsky/FiraCode/issues/628

I'm happy to let you know that different font features per language now works on Insiders with the work done for https://github.com/microsoft/vscode/issues/82153
With the following settings:
    "editor.fontFamily": "Fira Code"
    "editor.fontLigatures": true,
    "[cpp]": {
        "editor.fontLigatures": "'ss06', 'ss19'",
    },
    "[javascript]": {
        "editor.fontLigatures": "'ss06'",
    },

The editor is configured to turn on ss19 only for C++ (https://github.com/tonsky/FiraCode/releases):

And here is switching between the files:


ValueError: '2020' is not a valid entry for year in data set ['10.1038/s41591-020-0944-y']

Question
sfaira test-dataloader --doi 10.1038/s41591-020-0944-y
ValueError: '2020' is not a valid entry for year in data set ['10.1038/s41591-020-0944-y']
thanks!

The year entry has to be an integer and not a string.


I can't run to train model

Hello, I am trying to launch run_common_voice.py but I got this error "argument --gradient_checkpointing: conflicting option string: --gradient_checkpointing". I ran stript like finetune.sh

https://discuss.huggingface.co/t/gradient-checkpointing-true-results-in-error/10744

Hi @Elvares ! This repository is now deprecated in favor of https://github.com/jonatasgrosman/huggingsound. So you can try to reproduce this error on that new tool, and if it's still happening, please open an issue there, and I'll try to help you to fix it.


Values of m, n, t??

I need m>8, n>20 and t>3
I run the following command to generate keys:
python3 mceliece.py -v gen 8 20 3 PRIV_KEY_FILE PUB_KEY_FILE
I get below error:
Traceback (most recent call last):
File "/root/mceliece/mceliece.py", line 147, in
generate(int(args['M']), int(args['N']), int(args['T']), args['PRIV_KEY_FILE'], args['PUB_KEY_FILE'])
File "/root/mceliece/mceliece.py", line 44, in generate
mceliece.generate_random_keys()
File "/root/mceliece/mceliece/mceliececipher.py", line 37, in generate_random_keys
self.S_inv = self.S.inv()
File "/root/mceliece/mceliece/mathutils.py", line 503, in inv
eye = flint.nmod_mat(self.arr.shape[0], self.arr.shape[1],
IndexError: tuple index out of range
How to set the correct combination of m,n,t?

Hi, I see that you have got the same problem like me. I found out that there is a few options to generate the pair of the keys but only one is giving fine plainText after decryption.  Is there any solution to use the parametrs like from article which I am attaching belove?
https://eprint.iacr.org/2010/271.pdf

Hi @byAhro , in the paper you attached, the value of parameters are huge. My machine is unable to accept that.  I tried with comparatively smaller value as follows:
m=20; n = 1024; t=50
It falls into infinite loop and eventually I had to terminate the program.

Was this ever figured out?


Heatzy Onyx (v5.9.0)

          Hello,

sur la version 5.9 plus de climate sensor

Originally posted by @lugio in https://github.com/cyr-ius/hass-heatzy/issues/43#issuecomment-1781116353

Fix in 5.9.1