Demo failure. Not able to close loops on Muesuem data(Paper)

Greetings,
I am unable to run demo launch successully. Installations has been completed as per instructions.
Console output.txt

Please advice.
Rgds,

Looks to me like the background optimization fell severely behind. Reminds me of #87.
Could you try calling the finish_trajectory service and see what happens? If it takes a long time to return, then I think you've somehow not compiled everything in optimized mode. Building and running in a Docker container (as in #87) should fix it.
That said, I'd like to understand what about your system has caused this to happen. Could you give us some specs?

I am using Ubuntu16.04 (x86_64) on Intel Xeon processor with 8GB RAM and 8GB swap space.
I will try out listed option and share my findings.
Thank you.

Hi,@nitin5
I get the same problem before,I think it should be not installed successfully. Then I reinstall it , and get a good result now. hope helpful!

On your 14.04 system, it seems that your version of Eigen is incorrect. The correct version of Eigen for 14.04 is 3.2.0-8. Perhaps you manually installed a different version?
The required hardware for real-time performance is any relatively modern PC.
Optimizations happen in the background after a fixed number of scans have been added to the map. Multiple optimizations may pile up if they're not fast enough. This should happen rarely on a properly configured system. Since optimizations only occur every n-scans, you can use the /finish_trajectory service to perform a final optimization after all bag data has been consumed.

Greetings,
I have completed installation after a fresh installation on Ubuntu 16.04.
On my laptop, it still misses optimization. After call to finish_trajectory service, correct map is generated.

I assume your laptop is the system running 16.04. How long does /finish_trajectory take before the map is generated? If it's only a second or so, I don't see any issues.
On the 14.04 system, it's clear your libraries do not match the system defaults. You can try building and running in a Docker container (documentation coming, see googlecartographer/cartographer:#53) if you don't want to make changes to your system.

Closing this issue as stale, please reopen if you're still having issues.

Hi
I am able to manage to establish on Ubuntu16.04 as fresh install.
I am still trying to establish on Ubuntu 14.04 . I am getting following output

[ INFO] [1476807937.395538142]: I1018 21:55:37.000000 10710 configuration_file_resolver.cc:40] Found '/home/nn/catkinws_cartographer2/install_isolated/share/cartographer/configuration_files/sparse_pose_graph.lua' for 'sparse_pose_graph.lua'.
[ INFO] [1476807937.473734569]: I1018 21:55:37.000000 10710 submaps.cc:176] Added submap 1
[ WARN] [1476807938.166291116,<PHONE_NUMBER>.571113643]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.515060600 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.167838210,<PHONE_NUMBER>.571113643]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.541367100 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.169188727,<PHONE_NUMBER>.571113643]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.567927400 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.188909978,<PHONE_NUMBER>.591298103]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.594163800 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.215239634,<PHONE_NUMBER>.621556255]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.620664000 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.241669558,<PHONE_NUMBER>.641745641]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.647110500 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.268083028,<PHONE_NUMBER>.672007442]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.673534700 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.294317872,<PHONE_NUMBER>.692175222]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.699776800 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.320257834,<PHONE_NUMBER>.722432559]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.725666600 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.346209740,<PHONE_NUMBER>.752699465]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.751525900 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.371948825,<PHONE_NUMBER>.772888794]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.777363600 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.397711838,<PHONE_NUMBER>.803218137]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.803045400 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.433175424,<PHONE_NUMBER>.833527555]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.838595000 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.459618459,<PHONE_NUMBER>.863803382]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.865022800 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.486370530,<PHONE_NUMBER>.884001634]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.891547700 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.512674794,<PHONE_NUMBER>.914248588]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.917971100 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.551814574,<PHONE_NUMBER>.954657042]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.944392600 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807938.566000834,<PHONE_NUMBER>.964752690]: W1018 21:55:38.000000 10710 tf_bridge.cc:51] Lookup would require extrapolation into the past.  Requested time<PHONE_NUMBER>.971389900 but the earliest data is at time<PHONE_NUMBER>.982251246, when looking up transform from frame [horizontal_laser_link] to frame [base_link]
[ WARN] [1476807952.191568995,<PHONE_NUMBER>.589847365]: W1018 21:55:52.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807953.922806679,<PHONE_NUMBER>.328990956]: W1018 21:55:53.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807955.658688254,<PHONE_NUMBER>.060726237]: W1018 21:55:55.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807957.390312956,<PHONE_NUMBER>.791026622]: W1018 21:55:57.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807959.067907115,<PHONE_NUMBER>.474279189]: W1018 21:55:59.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807960.728535549,<PHONE_NUMBER>.131880130]: W1018 21:56:00.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807962.342034445,<PHONE_NUMBER>.744309019]: W1018 21:56:02.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807963.956308581,<PHONE_NUMBER>.355824944]: W1018 21:56:03.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807965.569268365,<PHONE_NUMBER>.970149870]: W1018 21:56:05.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.
[ WARN] [1476807967.211948343,<PHONE_NUMBER>.616847356]: W1018 21:56:07.000000 10710 ordered_multi_queue.h:165] Queue (0, echoes) exceeds maximum size.

I have pre-installed Ceres solver which I am using, not one downloaded from net. I have modified CMakeList file to reflect the same. The above listed error do not appear to originate because of existing Ceres pkg.
Thanks and Rgds
Nitin

This looks like a different issue. Some of your topics are not wired up correctly or you've configured Cartographer to expect some type of data that it's not receiving.
Try running roswtf and see which topics it claims are disconnected. Double check your configuration and see that odometry and IMU data are either provided or disabled.


Incorrect table alias name in translated sql

Steps to reproduce
Using Linq to generate sql running in sql server 2012.
var query =
    from app in _context.CandidateApplications
    from ive in _context.Interviewees
        .Where(ive => ive.ApplicationId == app.CandidateApplicationId)
        .DefaultIfEmpty()
    from iv in _context.Interviews
        .Where(iv => iv.Id == ive.InterviewId)
        .DefaultIfEmpty()
    from ivr in _context.Interviewers
        .Where(ivr => ivr.InterviewId == ive.InterviewId)
        .DefaultIfEmpty()
    join s in _context.ApplicationStatuses on app.ApplicationStatusCode equals s.Code
    join c in _context.Users on app.CandidateId equals c.Id
    join j in _context.Jobs on app.JobId equals j.JobId
    join ip in _context.InternalPositions on j.PositionCode equals ip.Code
    join id in _context.InternalDepartments on j.InternalDepartmentCode equals id.Code
    select new {
        ApplicationId = app.CandidateApplicationId,
        ApplicationCode = app.ReferenceCode,
        AppliedDate = app.AppliedDate.Value,
        ApplicationStatusCode = app.ApplicationStatusCode,
        CandidateId = app.CandidateId,
        JobId = app.JobId,
        CandidateCode = c.ReferenceCode,
        FirstName = c.FirstName,
        LastName = c.LastName,
        JobCode = j.ReferenceCode,
        InternalPositionCode = j.PositionCode,
        InternalDepartmentCode = j.InternalDepartmentCode,
        InternalPosition = ip.Name,
        InternalDepartment = id.Name,
        ApplicationStatus = s.Status,
        InterviewId = iv.Id,
        InterviewDate = iv.InterviewDate,
        InterviewStartTime = ive.StartTime,
        InterviewEndTime = ive.EndTime,
        InterviewLocation = iv.Location,
        InterviewRemark = iv.Remark,
    };

The translated sql query:
SELECT [app].[CandidateApplicationId], [app].[ReferenceCode], [app].[AppliedDate], [app].[ApplicationStatusCode], [app].[CandidateId], [app].[JobId], [c].[ReferenceCode], [c].[FirstName], [c].[LastName], [j].[ReferenceCode], [j].[PositionCode], [j].[InternalDepartmentCode], [ip].[Name], [id].[Name], [s].[Status], [t3].[Id], [t3].[InterviewDate], [t1].[StartTime], [t1].[EndTime], [t3].[Location], [t3].[Remark]
      FROM [CandidateApplications] AS [app]
      CROSS APPLY (
          SELECT [t0].*
          FROM (
              SELECT NULL AS [empty]
          ) AS [empty0]
          LEFT JOIN (
              SELECT [ive0].*
              FROM [Interviewees] AS [ive0]
              WHERE [ive0].[ApplicationId] = [app].[CandidateApplicationId]
          ) AS [t] ON 1 = 1
      ) AS [t1]
      CROSS APPLY (
          SELECT [t20].*
          FROM (
              SELECT NULL AS [empty]
          ) AS [empty10]
          LEFT JOIN (
              SELECT [iv0].*
              FROM [Interviews] AS [iv0]
              WHERE [iv0].[Id] = [t1].[InterviewId]
          ) AS [t2] ON 1 = 1
      ) AS [t3]
      CROSS APPLY (
          SELECT [t40].*
          FROM (
              SELECT NULL AS [empty]
          ) AS [empty20]
          LEFT JOIN (
              SELECT [ivr0].*
              FROM [Interviewers] AS [ivr0]
              WHERE [ivr0].[InterviewId] = [t1].[InterviewId]
          ) AS [t4] ON 1 = 1
      ) AS [t5]
      INNER JOIN [ApplicationStatuses] AS [s] ON [app].[ApplicationStatusCode] = [s].[Code]
      INNER JOIN [Candidates] AS [c] ON [app].[CandidateId] = [c].[CandidateId]
      INNER JOIN [Jobs] AS [j] ON [app].[JobId] = [j].[JobId]
      INNER JOIN [InternalPositions] AS [ip] ON [j].[PositionCode] = [ip].[Code]
      INNER JOIN [InternalDepartments] AS [id] ON [j].[InternalDepartmentCode] = [id].[Code]

The issue
The  alias name or table name is translated with a 0 at the end of name. It caused columns in the table could not be found.

[t] => [t0]
[t2] => [t20]
[t4] => [t40]

fail: Microsoft.EntityFrameworkCore.Query.Internal.SqlServerQueryCompilationContextFactory[1]
      An exception occurred in the database while iterating the results of a query.
      System.Data.SqlClient.SqlException: The column prefix 't0' does not match with a table name or alias name used in the query.
      No column name was specified for column 1 of 't1'.
      Invalid column name 'InterviewId'.
      The column prefix 't20' does not match with a table name or alias name used in the query.
      No column name was specified for column 1 of 't3'.
      Invalid column name 'InterviewId'.
      The column prefix 't40' does not match with a table name or alias name used in the query.
      No column name was specified for column 1 of 't5'.
      Invalid column name 'Id'.
      Invalid column name 'InterviewDate'.
      Invalid column name 'StartTime'.
      Invalid column name 'EndTime'.
      Invalid column name 'Location'.
      Invalid column name 'Remark'.
         at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__107_0(Task`1 result)
         at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
         at System.Threading.Tasks.Task.Execute()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__20.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.<MoveNext>d__8.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.SelectAsyncEnumerable`2.SelectAsyncEnumerator.<MoveNext>d__4.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.SelectAsyncEnumerable`2.SelectAsyncEnumerator.<MoveNext>d__4.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.<MoveNext>d__5.MoveNext()

Further technical details
EF Core version: "1.0.1"
Operating system: MacOS
Visual Studio version: n/a
Other details about my project setup:
Working with sql server 2012

fixed via #6706 & #6730


Add default params_to_tune for LabelEncoderTransform

Before submitting (must do checklist)

[x] Did you read the contribution guide?
[x] Did you update the docs? We use Numpy format for all the methods and classes.
[x] Did you write any new necessary tests?
[ ] Did you update the CHANGELOG?

Proposed Changes

Look at https://github.com/tinkoff-ai/etna/issues/1222
Closing issues

Closes issue https://github.com/tinkoff-ai/etna/issues/1222

Codecov Report

:exclamation: No coverage uploaded for pull request base (automl-2.0@28d8fb7). Click here to learn what that means.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##             automl-2.0   #1242   +/-   ##
============================================
  Coverage              ?   7.62%
============================================
  Files                 ?     177
  Lines                 ?   10706
  Branches              ?       0
============================================
  Hits                  ?     816
  Misses                ?    9890
  Partials              ?       0

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Cannot read table records after column(struct) update

(If table is empty, it doesn't matter.)
Once a or some records has been written into table and table struct is updated, table iterator doesn't work.
It seems the size of one record of "Before" and the iterator of "After" table index is different, and it seems natural in C++ side.
But, in EOS.io world, I think table record migration need to be supported because many struct update would be occurred during dApp development.
The ultimate solution seems to be getting discussed in https://github.com/EOSIO/eos/issues/354 , so I kindly ask for current and next progress with roughly fixed date.
Or could you please share a workaround?
Thanks in advance!
Before
struct actions_rec {
    uint64_t       id;
    time           executed_at;

    eosio::asset   issued_token;
    uint64_t       issued_point;

    uint64_t       primary_key()const { return id; };
    account_name   get_user() const { return user; };
};

After
struct actions_rec {
    uint64_t       id;
    time           executed_at;
    eosio::asset   issued_token;
    uint64_t       issued_point;
    uint64_t       sentence_id;

    uint64_t       primary_key()const { return id; };
    account_name   get_user() const { return user; };
};

Member function
void token::getwholeact(uint64_t page){
    auto itr = _action_index.rbegin();
    for (uint64_t i=0; i < 20*(page-1); ++i) itr++;

    eosio::print("[");
    for (uint64_t i=0; i < 20; ++i){
        eosio::print("{");
        eosio::print("    \"time\": ", itr->executed_at);

        eosio::print("  , \"sentence_id\": ", itr->sentence_id);
        eosio::print("  , \"issued_token\": \"", itr->issued_token, "\"");
        eosio::print("  , \"issued_point\": ", itr->issued_point);
        eosio::print("}");

        itr++;

        if (itr == _action_index.rend() ) break;
        if (i != 19) eosio::print(", ");
    }
    eosio::print("]");
}

Symptom
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: read

Name your new struct actions_rec_v2 and/or rename old to actions_rec_v1 or something similar. Then copy from old to new.

The current release doesn't support dynamic table nor modification of struct member layout. Please consider rename your table name or create different table instead.

@taokayan this is just to clarify your statement above.
Does that mean that if we want to update the smart contract by adding or removing struct properties, that won't work?

Correct. You can make another struct/table and migrate your data from old table to new table.

A follow up question: is this also apply when adding new index on the struct?


use pure code instead of xib file, allow using with pure code so the storyboard is not necessary

Good job bro! Now we can use PSCarouselView both with Storyboard and Pure Code.
The last one thing is give it a NS_DESIGNATED_INITIALIZER.I'll merge this PR later,and add NS_DESIGNATED_INITIALIZER.

@DeveloperPans I don't know is it OK to add NS_DESIGNATED_INITIALIZER like a882ab1.
Please review. Thanks.

@gonghao nope. we shouldn't public UICollectionViewLayout API to users,cause it will forever be FlowLayout.
Change

- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout NS_DESIGNATED_INITIALIZER;

to
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;

and override all super designated initializer is the correct way.
BTW, implement cell both with pure code and xib are ok. it won't have any difference for users.
I prefer xib and wanna keep it. : )

@DeveloperPans Yes, both pure code and xib are ok, but I think the situation here is too simple, so the pure code is enough. And with pure code, it also helps to reduce file numbers in project and reduce a nib IO. So I prefer to use pure code in such situation.

I've checked some articles about the NS_DESIGNATED_INITIALIZER and override the superclass's NS_DESIGNATED_INITIALIZER
And I've made some modifications to fix some warnings in Xcode 7
http://stackoverflow.com/questions/29639040/warning-method-override-for-designated-initializer
https://github.com/pinterest/PINCache/pull/25/files

cool. thanks, @gonghao

:beers: @DeveloperPans


Export from Oracle in DBUnit format skips a table name

System information:

Operating system (distribution) and version Win10
DBeaver version 7.2.0 EA

Connection specification:

Database name and version Oracle

Steps to reproduce, if exist:
Export a table in DbUnit format (e.g. HR.EXPORT_F)
Actual result:  there is not the table name in the exported file.

And XML file is no in valid XML format

Fixed

Verified


Is there possible to calculate the size of child view on each row/column?

[x] I have searched existing issues and confirmed this is not a duplicate

Issues and steps to reproduce
I want to calculate the size of the child's view before its wrapped.
I've tried to use isWrapBefore() attribute on the view like
((FlexboxLayout.LayoutParams) flexView.getLayoutParams()).isWrapBefore()
so I thought I could get the last index of the child before it wrapped while using loops but it returns false.
I notice that the layout_wrapbefore attribute doesn't work if it wrapped automatically.
Expected behavior
I hope I can explain my issue better, but here is what I want to achieve.
I just want to get the size of the children on each row before its wrapped.
Ex:
[original list] a, b, c, d, e, f, g
[0] | a b c d |
[1] | e f g  .  |
1st row will return 4 and the 2nd one will return 3.
Any way to do that?
Version of the flexbox library
2.0.1

After all views are laid out, it's possible but it's not possible to calculate that beforehand because it depends on the size of the device.


Refactor is_free hook to use state and side-effects

thanks Guy, bah sorry I should have just done it but didn't want to waste your time pr'ing


Add conditional check to prevent redefining existing custom stream source element

This Pull Request introduces a safeguard in the start.js file to prevent the redefinition of existing custom elements. The issue was observed when legacy JQuery page-refresh events or jest-dom testing caused anycable to reinitiate the start function. This led to an unnecessary re-triggering of the custom stream element definition, even when the element was already present in the window.
The proposed solution involves a conditional check before defining the custom element:
if (customElements.get(tagName) === undefined) {
  customElements.define(tagName, C)
}

This approach is consistent with the convention used in the hotwired turbo library.

Thanks!


httpFileStorage is not taken into account, XZCompressedLocalFileStorage is set by ORT scanner

Hello
After a rebuilt of the new docker image basing on the most recent master branch (commit b70e3f4366d1401bc0f22493ff81a674060bc16e) ORT is not taking into account the settings configured in /root/.ort.conf file which points to httpFileStorage -> artifactory
{
"ort": {
  "scanner": {
    "fileBasedStorage": {
      "backend": {
        "httpFileStorage": {
          "url": "https://xxxxxxxxx.xxxxxxxxxxx.xxxxxxxxxxx/",
          "headers": {
              "X-JFrog-Art-Api": "xxxxxxxxxxxxxxxxxxxxxxxxx"
          }
        }
      }
    }
  }
}
}

Instead it takes:  XZCompressedLocalFileStorage
Executing a command:
/opt/ort/bin/ort -c /root/.ort.conf --info scan -i /project/ort/analyzer/analyzer-result.yml -o /project/ort/scanner/

I obtain a following output:
20:57:48.848 [main] INFO  org.ossreviewtoolkit.scanner.ScanResultsStorage - ScanResultStorage has been configured to FileBasedStorage with XZCompressedLocalFileStorage backend.
Using scanner 'ScanCode' with storage 'FileBasedStorage with XZCompressedLocalFileStorage backend'.
Local file storage has 0 scan results files.

Did you change something in the code? Is that change documented somewhere?

@oheger-bosch can you please take care of this?


Search in PDF

Hi, I'll like to know how can I search in the PDF file like Google PDF viewer.
Thank you.

Hi, @EricPoonXYZ any luck regarding this issue please guide.

Hi, @EricPoonXYZ any luck regarding this issue please guide.


Fixed poolboy dependency in erldns.app.src

This emits errors when building releases by relx

Thank you for the PR


Support more select entity

By now, this component still missing following feature:

Fan position control(vertical) for climate
Motion detection for climate
Indicator light mode for climate

We should support these in upcoming release.

While we still work on improving UX, fan position control will not include in next release.


What is Structured Logging, and why should I care?

Current state of text-based logging
Concepts of structured logging
Introducing Serilog & Seq
A quick example of searching logs easily using Seq
Links to Serilog/Seq and related articles for follow-up

I'll post this if the need arises but thankfully the trend has caught on at this point.


Handle non-OK HTTP status in gRPC responses.

Currently, if a gRPC client gets a non-OK HTTP status, it fails with a cryptic error when trying to deframe the non-gRPC response body. Now, it gets the correct status instead.
Just copied the function as-is from upstream.

On the other hand, all LINE devs are at workshop until Friday, so our availability may be scarce. :-)


Spec contradicts to itself in one of the examples with type guards

In the section about type guards, the last example seems to be invalid:
class NamedItem {
    name: string;
}

function getName(obj: any) {
    return obj instanceof NamedItem ? obj.name : "unknown";
}

It is stated that the inferred type of the 'getName' function is string, but actually 'any' type won't be narrowed, according to the same spec, and compiler doesn't do that either:

A bug in the spec?

Yes, that is a bug in the spec.


0.2.9 devnet restart breaks the devnet

Describe the bug
After upgrading from 0.2.6 my unit tests fail completely.
My before hook restarts the devnet before anything else is done. If that line is active, all devnet invokes fail. After that, the devnet is terminally broken, until it is manually stopped and restarted - even if the restart line is removed.
I use the lite-mode in a venv.
Not reproducible on alpha-goerli

[ x ] This issue is only present on Devnet and cannot be reproduced on alpha-goerli (check the box if true).

To Reproduce
Steps to reproduce the behavior:

Get the example repo branch: https://github.com/eqlabs/starknet-multisig/tree/feature/devnet_bug/contracts (the branch is a simplified branch of a bigger project)
Start devnet
Run tests

Error message in devnet console
[2022-08-15 11:28:17,978] ERROR in app: Exception on /gateway/add_transaction [POST] Traceback (most recent call last):   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app     response = self.full_dispatch_request()   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request     rv = self.handle_user_exception(e)   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function     return cors_after_request(app.make_response(f(*args, **kwargs)))   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request     rv = self.dispatch_request()   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/asgiref/sync.py", line 218, in __call__     return call_result.result()   File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result     return self.__get_result()   File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result     raise self._exception   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/asgiref/sync.py", line 284, in main_wrap     result = await self.awaitable(*args, **kwargs)   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/starknet_devnet/blueprints/gateway.py", line 35, in add_transaction     contract_address, transaction_hash = await state.starknet_wrapper.deploy(transaction)   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/starknet_devnet/starknet_wrapper.py", line 253, in deploy     state_update = await self.__update_state()   File "/home/laurip/src/eqlabs/starknet-multisig/contracts/.venv/lib/python3.8/site-packages/starknet_devnet/starknet_wrapper.py", line 120, in __update_state     assert previous_state is not None AssertionError "<IP_ADDRESS> - - [15/Aug/2022:11:28:17 +0100] "POST /gateway/add_transaction HTTP/1.1" 500 290 "-" "Python/3.8 aiohttp/3.8.1"
Devnet version

I am using Devnet version: 0.2.9
[ ] This happens with a dockerized Devnet (check the box if true).
This does not appear on the following Devnet version: 0.2.6

Machine specifications

OS: Windows, in WSL2

Fixed with https://github.com/Shard-Labs/starknet-devnet/pull/219. A new version that includes this fix (probably 0.2.10) will be released soon (today or tomorrow).


Access to S3 is denied

Access to S3 is denied. Can you provide the access to S3?

Looks like S3 access is denied again

Thanks. Looking into it.

Facing the same issue.

Thanks. I am hoping this will be resolved soon.

Template URLs should be changed to:
https://https://s3-${AWS::Region}.amazonaws.com//${TemplateBucket}/templates/xxx.yaml

@kkalavantavanich @carter3d It should be fixed now!
@romafederico The path was not the issue. It's the s3 permissions.

Am getting "Template validation error: S3 error: Access Denied". Can you please help for this.

@vijay-khanna At what point are you getting this and what region? I just launched it in Virginia. Thanks.

@vijay-khanna At what point are you getting this and what region? I just launched it in Virginia. Thanks.

I get this just when i click "Deploy"- "Rocket Launcher Icon" for any region on this page. https://github.com/awslabs/ecs-refarch-continuous-deployment
the error is :
Error
Template validation error: S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

@vijay-khanna Does your user have s3 permissions?

@tiffanyfay : I have logged in as Administrator, and have been able to launch other CloudFormation Templates.
This is the one i just launched for testing the access issue : https://github.com/awslabs/aws-full-stack-template.
It got deployed fine.
I guess your S3 bucket hosting this code is possibly disabled for Reads at Global level, with new S3 Permissions coming in recently.
i tried the command from CLI and get below error "fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden"
Can you please check your S3 bucket if the "Block all public access" has been enabled.

@vijay-khanna It's not my bucket and belongs to another team. I'll look into it. Thanks.

@vijay-khanna Can you try now? And yes, that amongst a few other things were enabled.

@ tiffanyfay : This is working fine. Thanks for your help.

@vijay-khanna Great thanks!

@tiffanyfay  I'm getting the same error.

@smrutiranjantripathy Ugh not again :(. I left Amazon and don't have the contact of the people who got this fixed before.
@jpignata Could you contact the people you had referred me to previously? I didn't keep their emails. Thanks.

Looks like the issue is back.

back to the old access denied issue looks like...  anyone has a different location for the template?

@tiffanyfay The bucket has not access. Can you help us?

This bucket is no longer provided online. Note that this reference architecture is 7 years old at this point, and you should consider using a more modern version of it. For example:

https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/automatically-build-ci-cd-pipelines-and-amazon-ecs-clusters-for-microservices-using-aws-cdk.html
https://docs.aws.amazon.com/codepipeline/latest/userguide/ecs-cd-pipeline.html

That said, you can find the template source code here: https://github.com/awslabs/ecs-refarch-continuous-deployment/tree/master/templates

@pedrofurtado I don't work at Amazon anymore so I am not sure about how to fix the bucket. I talked to Nathan and would go with what he sent.


[i2c] Split the target and controller FSMs

Split the target and controller FSMs both to simplify the code for better maintainability / readability and to lay the groundwork for multi-controller support. Note that there will likely be some increase in area for duplicated structures here, but it turns out that much of the state was already independent.
Also fix a bug where the controller-mode stretch counter would continue counting cycles even when the target had already released SCL.

At least for now, this is just a draft to show how it could be done.

Added a commit to implement the controller halt events CSR as described before. It also at least attempts to eliminate some race conditions with software modifying CSRs during automatic Stop generation.
I did switch back to having SCL held low. If the Stop is going to happen automatically anyway, this seems acceptable, since it puts SCL in the correct place to prepare for a Stop (or Start, if software handles it and prefers).

For a gauge of the area impact, here are the FPGA results:

Resource
Before
After

Flops
1029
1102

LUTs
1612
1588

The LUTs decrease as the FSMs get a little simpler, and the flops increase. Most likely, the flop increase is largely due to the duplication of 2 counters:

20-bit tcount_q

Used to count out hold times on driven bits and setup times for stretching on the target.
Used extensively on the host.
This counter is larger than necessary: It only need to be capable of a max count of 5 us.

Even if we support up to a 1 GHz core clock, 13 bits would be enough.

32-bit stretch_idle_cnt

For the target, used to count a timeout for bus idle
For the host, used to count how long a target has stretched the clock
This counter is needlessly large: It only need to be capable of counting to 35 ms.

Even if we support up to a 1 GHz core clock, 26 bits would be enough.

The DV failure is unrelated (in LC_CTRL block level in the VOLATILE_UNLOCK_RAW configuration).

Code changes LGTM, glad this task ended up being not too difficult, as there wasn't too much shared state after all. I only have one meta question before merging. Do we want to merge these changes into master? I understood there was some discussion about derisking by keeping the M2 design for some instances, and then working on all extensions as a separate block. In that case, maybe we want to target these changes into a separate branch, or maybe even a new copy of the block itself? @andreaskurth @mundaym may have some input here.

I don't think that strategy makes sense, since it suggests the current i2c block is acceptable in any way. There isn't some proven IP to fall back on here. Make no mistake: The current code has numerous bugs that I have started fixing, and the regression results reveal an IP that just is not at tape-out quality.
Trying to have two separate IPs only adds overhead in a time when we can't afford it. We don't have the resources.
Instead, I am cleaning up the IP in ways that make it more robust for single controller environments. In the series of PRs that follow, there are fixes to existing features we targeted for D2 sign-off, and the DV tests substantially improve. Splitting the FSM into two simplifies the code and makes it easier to work with, and it enables us to share fixes.
Meanwhile, it looks like area will not be significantly impacted, as the following cleanup PRs reduce it from here (have to check the area usage again after the last commit for the target mode cleanups, though).
In any case, please don't hold up my PRs for that discussion if it needs to continue. The older version can be retrieved from the git history if necessary.

I'm happy to merge this, and we can discuss the meta items later and change the workflow if needed. Approved.

Thanks @a-will for this work and @hcallahan-lowrisc for reviewing. :+1:
These changes can go into the i2c HW IP block on master.


Generic union types don't print the value in FSI

When I define or use a generic union type with more than one union case (and one generic case isn't known when requesting the value) the value doesn't get printed out in FSI.
Repro steps
Ok "hello"

Expected behavior
val it : Result<string,'a> = Ok "hello"

Actual behavior
val it : Result<string,'a>

Known workarounds
Define all types of the generic parameters, see below.
Related information
This issue does only apply when one of the generic args isn't resolved to an actual type.
The following version of the code does print out the respective value:
> let x: Result<string, string> = Ok "hello";;
val x : Result<string,string> = Ok "hello"

This issue does only apply to a multi union case with generic parameters.
The problem doesn't occur with single case union types or with union types with no generic parameters.
This issue is a regression. When using fsi v4.0 the value gets printed.

Windows 10
RC3 and master
.NET Runtime
Visual Studio 2017 RC4
fsi.exe, fsiAnyCpu.exe
Regression

This is actually a general change in behaviour inn F# 4.1 when printing generic values of any kind.  For example:
> [];;
val it : 'a list
> (3.14, []);;
val it : float * 'a list

This will apply to any value that is not subject to the "value restriction" and is generaized by the F# compiler.  Roughly speaking that means any generic value made up of

literal records
literal union cases
null
function values
other raw data

The mechanism to print these values was really awkward - basically we instantiated the generics of the value at type obj and printed that using some really horrid code.  We changed this in FCS somewhere along the way and the change got integrated here.
I'm not certain we should rush to change it back, though I agree the problem is a usability glitch
The problem doesn't apply except at the top-level of F# Interactive, e.g. this is ok:
> sprintf "%A" (3.14, []);;
val it : string = "(3.14, [])"

Closing as by-design, though I agree the problem is a usability glitch


GroupLogFile.scala does not split files on Windows

The regex does not recognize the tags and places all lines in the OTHER bucket.
Obviously caused by the Windows eol not fully matching the line separator.

Thanks for reporting. Would you like to submit a PR to address this? Seems like a simple fixup.

In progress

Great, thanks!

This is still (or again) a problem on Windows.  The current version uses System.lineSeparator as a delimiter but the line separator is determined by the creator of the file not the system it is run on.  Replacing System.lineSeparator with "\n" gets it to work on Windows and would presumably work on other OS's as well.  The only problem with "\n" is when a user creates (or edits) a file themselves.

I'll have a look afterwards. Do you have some specific solution in mind @gitbm?

It works if you are not concerned about the \r that remains.

The defect was originally noticed using GroupLogFile.scala with its logfile.txt converted to dos eol.
Only the last line was correctly deposited into the log-INFO.txt; simply because it has no eol.
All the other lines are placed in log-OTHER.txt; since the trailing \r  was not matched by LoglevelPattern.
One could adjust the regex or trim every line, but that does not seem to be optimal.

I just had this issue myself and took me a while to figure it out. As this is just an example, maybe a well documented call to a function that replaces the eol of the file with the system's correct eol before any of the streams action happens will be a good way to go. That will leave the important code clean and concise, but will prevent Windows users from being confused by this

The quick fix is to change it to "\n" since the logfile,txt file is created with "\n" delimiters so that should work across all OS's.  This would mean that a new user running it up out of activator would get the desired behaviour.  Maybe a comment saying that they should be careful with the delimiter depending on their OS if they change the input file.
However, ideally it should be done "right" as it would be reasonable for users to also use this code as a template for their own code rather than see it as just a demo.  What does doing it right mean ?  That is of course a matter for debate but I can't help but feel the conversion to String should occur before (or at the same time as) looking for a delimiter since the end of line is a String concern not a ByteString concern.  The readLine() method in BufferedReader allows for all end of line possibilities and we need something similar here.

In my opinion a converter function that happens beforehand will leave the important part of the code doing it "right" as you were saying, however having the quick "\n" on the code and a nice and small comment recommending to use the system's eof if they were to use a different file or reuse the example

I was thinking more about this and have come up with an alternative approach that leverages the existing Scala methods of reading from a file
First attempt was to do:
Source(() => scala.io.Source.fromFile(fileName).getLines())
instead of Source.synchronousFile(...).via(Framing...)
This should work on all platforms and also should not read the file at once since getLines() uses a demand driven Iterator.  It would be reasonable code for an Activator example but I don't think it closes the file whereas  Source.synchronousFile() does.  So what we need is an iterator driven Source that allows one to pass in a function to run when complete.  The following code is what I cam e up with (use and abuse as you desire) :
import akka.stream.actor.ActorPublisher
import scala.io.BufferedSource
import akka.stream.actor.ActorPublisherMessage.Request
import akka.stream.actor.ActorPublisherMessage.Cancel
import akka.actor.ActorLogging
import akka.event.LoggingReceive
trait SafeResource[T] {
def iterator: Iterator[T]
def close: Unit
}
class SafeBufferedSource(buf_src: BufferedSource) extends SafeResource[String] {
def iterator = buf_src.getLines()
def close = buf_src.close()
}
object SafeBufferedSource {
def apply(buf_src: BufferedSource) = new SafeBufferedSource(buf_src)
}
case class SafeBufferedFromFile(name: String) extends SafeBufferedSource(scala.io.Source.fromFile(name))
class SafeResourceActorPublisher[T](safe_res: SafeResource[T]) extends ActorPublisher[T] with ActorLogging {
override def postStop() {
safe_res.close
}
def receive: Receive = {
// call to iterator method in Receive rather than preStart as Actor lifecycle is a bit
// easier to understand than when an exception is thrown in preStart
// Can't call self ! msg since ActorPublisher intercepts messages and ends up processing initial Request call twice
case msg =>
val recv = withIter(safe_res.iterator)
context.become(recv)
recv(msg)
}
def withIter(iter: Iterator[T]): Receive = {
case Request(amount) =>
while (isActive && totalDemand > 0 && iter.hasNext) {
onNext(iter.next)
}
  if (!iter.hasNext)
    onCompleteThenStop

case Cancel =>
  context.stop(self)

}
}
implicit class PimpSource(src: Source.type) {
def safeResource[T](res: SafeResource[T]): Source[T, ActorRef] =
Source.actorPublisher[T](Props(new SafeResourceActorPublisher(res)))
def safeFileLines(name: String): Source[String, ActorRef] =
safeResource(SafeBufferedFromFile(name))
}
Then use as follows:
val logFileName = "src/main/resources/logfile.txt"
Source.safeFileLines(logFileName).
// parse chunks of bytes into lines
// group them by log level
groupBy {
case LoglevelPattern(level) => level
case other                  => "OTHER"
}.
// etc


Is it possible to make 'dotnet framework missing' a warning rather than error on mac/linux?

From @CaulyKan on July 31, 2018 16:7
Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version:   2.1.302
Commit:<PHONE_NUMBER>
Runtime Environment:
OS Name:     Mac OS X
OS Version:  10.13
OS Platform: Darwin
RID:         osx.10.13-x64
Base Path:   /usr/local/share/dotnet/sdk/2.1.302/
Host (useful for support):
Version: 2.1.2
Commit:  811c3ce6c0
.NET Core SDKs installed:
2.1.302 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
VS Code version: 1.25.1
C# Extension version: 1.15.2
Steps to reproduce
Create a project:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>net461;net452;netstandard2.0</TargetFrameworks>
    <DebugType>Full</DebugType>
  </PropertyGroup>

</Project>

Expected  behavior
Omnisharp gives a warning rather than error for "The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. ";
Functions such as codelens should still be functional.
Actual behavior
Omnisharp gives an error for "The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. ";
Functions such as codelens no longer works.
Copied from original issue: OmniSharp/omnisharp-vscode#2444

The issue here is that OmniSharp picks the first target framework when there are multiple TFMs. So, it's MSBuild is trying process your project as net461, but that isn't installed on your Mac. There are a couple of options here:

Reorder the TFMs so that netstandard2.0 is first.
Install reference assemblies for .NET Framework 4.6.1 in a place that MSBuild can discover them. The easiest way to do this is by installing the latest Mono MDK from http://www.mono-project.com/download/stable/.

From @CaulyKan on July 31, 2018 17:35
After changed the csproj to <TargetFrameworks>netstandard2.0;net461;net452</TargetFrameworks> it worked.
But however is it possible to try the next TFM in order when the current one fails? or more easily, write the instruction in error message?
Thanks a lot.
PS. Current error message: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

It's harder than you might think to detect this scenario. The message actually comes from MSBuild as part of the process of building your project. However, I think we should probably try to do something. I'll move this over to the omnisharp-roslyn repo where that work would need to happen.

Could there be some mechanism (environment variable, configuration file, etc) that allows me to specify the framework that I want to use?


YAML File Loader

As discussed in #6,  a YAML file loader would be really helpful since a lot of swagger users are using YAML.
This can probably use the symfony/yaml component and add it to the composer 'suggest' section.

<?php

namespace League\JsonReference\Loader;

use League\JsonReference\JsonDecoder\JsonDecoder;
use League\JsonReference\JsonDecoderInterface;
use League\JsonReference\LoaderInterface;
use League\JsonReference\SchemaLoadingException;
use Symfony\Component\Yaml\Yaml;

/**
 * Parses YAML files instead of the standard json
 */
class YamlFileLoader implements LoaderInterface
{
    /**
     * @var JsonDecoderInterface
     */
    private $jsonDecoder;

    /**
     * @param JsonDecoderInterface $jsonDecoder
     */
    public function __construct(JsonDecoderInterface $jsonDecoder = null)
    {
        $this->jsonDecoder = $jsonDecoder ?: new JsonDecoder();
    }

    /**
     * Load the json schema from the given path.
     *
     * @param string $path The path to load, without the protocol.
     *
     * @return object The object resulting from a json_decode of the loaded path.
     * @throws \League\JsonReference\SchemaLoadingException
     */
    public function load($path)
    {
        if (!file_exists($path)) {
            throw SchemaLoadingException::notFound($path);
        }

        $parsedYaml = Yaml::parse(file_get_contents($path));

        return $this->jsonDecoder->decode(json_encode($parsedYaml));
    }
}

Here's a good starting point.  I would have made the PR myself, but I didn't have time to look into how to refactor/update the tests.

YAML support was added by @peterpostmann in #18 👏


Create a new webpage for the new post

Creating a new webpage for posting. It can be used as a link or button in the main page to pop up a new webpage to input all information of this pet.

The script.js file is in this PR as a delete action so merging would delete the file from the project, can you make sure to remove the file from the PR? if it becomes too complicated with git feel free to start a new branch and PR and include only the html file


503 Service Unavailable - Changes of configuration in action/ghcr is down?

Hi, I have a question. We are using the trivy action, however there has been showed the 503 Service Unavailable:
The configuration for the trivy action in the workflow is the following:
- name: Run Trivy vulnerability scanner         uses: aquasecurity/trivy-action@master         env:           TRIVY_OFFLINE_SCAN: true         with:           image-ref: ${{ steps.login-ecr.outputs.registry }}/${{ inputs.service-domain }}/${{ inputs.service-name }}:git-sha-${{ github.event.pull_request.head.sha }}           vuln-type: 'os,library'           severity: 'CRITICAL,HIGH'           format: 'template'           template<EMAIL_ADDRESS>         ignore-unfixed: true           output: ${{ env.TRIVY_OUTPUT_FILENAME }}
Build container for action use: '/home/runner/work/_actions/aquasecurity/trivy-action/master/Dockerfile'.   Sending build context to Docker daemon  644.6kB   Step 1/5 : FROM ghcr.io/aquasecurity/trivy:0.37.2   Head "https://ghcr.io/v2/aquasecurity/trivy/manifests/0.37.2": received unexpected HTTP status: 503 Service Unavailable   Warning: Docker build failed with exit code 1, back off 8.788 seconds before retry.   /usr/bin/docker build -t 49859c:6e9e7b94a9924235b6dd4a634a825dd0 -f "/home/runner/work/_actions/aquasecurity/trivy-action/master/Dockerfile" "/home/runner/work/_actions/aquasecurity/trivy-action/master"   Sending build context to Docker daemon  644.6kB
Do you have any idea why is that? Is that an error from the ghcr or its related to some configuration?

Same issue here. Please advise

It has started working (after around 30min/1h) - I predict some issue with the ghcr.io, but couldnt find the maintenance time scheduled by github. I think it can be closed.


TEVA-3436 Implement jobseeker-side changes to draft applications past deadline

Jira ticket URL
https://dfedigital.atlassian.net/browse/TEVA-3436
Changes in this PR:
Deadline-passed job applications
  when an application is in “draft” status and the deadline for application has passed
    on the “my applications“ page
      shows a status “tag” of “deadline passed”
      has a link to view the application
    on the application page
      removes the “submit application” section
      has the application status of “deadline passed”
      does not allow the jobseeker to edit or update any sections
      does not show the section status indicators

6 examples, 0 failures

Not sure about the name of the spec spec/system/job_applications/deadline_passed_spec.rb, if it starts with jobseekers_can_.... it will be picked up among the jobseekers specs of the matrix. At the moment is among other system specs together with accessibility. It's a very minor problem, and it might even be better as they take 2 minutes ATM, whereas jobseekers spec take 5.

@cesidio I've added a commit to move the new file a bit and change the CI config so they're still grouped together.

@elliotcm this looks good to me, tried this as a jobseeker and all worked as expected


Fix several issues in "Using sysctls in a Kubernetes Cluster"

Replace net.ipv4.route.min_pmtu with net.core.somaxconn in the
example of using unsafe sysctls in containers, since the former is not
accessible within container namespace at all.

Not all net.* sysctls are namespaced. Explain the correct way to
identify the namespaced networking sysctls.

Fixes https://github.com/kubernetes/kubernetes/issues/77546

/assign @squeed

These are good changes - min_pmtu doesn't even seem to exist in non-root network namespaces! Best of all, the kernel documentation doesn't tell you anything about which sysctls are namespaced.
/lgtm

/approve


Update README with proper installation steps

Current README talks about gluster-k8s having installation script.. Provide Install section in readme, and then also detail out what the repo is about. (or explain first, and then give detail about installation etc.). I prefer to have table of content etc, so people can choose to jump ahead if they know what the project is.

With #19 this can be closed!


chore(ci): enable PyPI trusted publishing

Description
This PR updates the Python SDK's GitHub publishing workflow to enable trusted publishing with the Python Package Index.
References

Generated from https://github.com/openfga/sdk-generator/pull/297

Review Checklist

[ ] I have clicked on "allow edits by maintainers".
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected

This seems very weird as I don't get what is tying the github action to PyPi, but this is what their documentation says, so let's merge!


Windows Version Fails to Load

When I try to load the Windows version on a fresh install of WIndows 10, I get the following error messages. Is there a fix for this?

Thanks,
Kyle

Hello Kyle,
Sorry for the delay in response. I was experiencing the same exact issue as you and I do believe I found a solution that may work.

In Windows 10, search for "Control Panel"
Once in Control Panel, look for "Network and Sharing Center"
Click "Change adapter settings"
Select the adapter for your current connection (Should be either "Ethernet" or "Wi-Fi"
Click on Properties
Uncheck "Internet Protocol Version 6 (TCP/IPv6).


TypeError on login: cannot make memory view

I can no longer login using PRAW.
Using username/password:
Traceback (most recent call last):
  File "countdown.py", line 25, in update_countdown
    reddit.login(username, password)
  File "<decorator-gen-49>", line 2, in login
  File "/usr/lib/python2.7/site-packages/praw/decorators.py", line 75, in wrap
    return function(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 1418, in login
    self.request_json(self.config['login'], data=data)
  File "<decorator-gen-8>", line 2, in request_json
  File "/usr/lib/python2.7/site-packages/praw/decorators.py", line 113, in raise_api_exceptions
    return_value = function(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 612, in request_json
    retry_on_error=retry_on_error)

Using OAuth:
Traceback (most recent call last):
  File "countdown.py", line 25, in update_countdown
    reddit.refresh_access_information(access_info)
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 1311, in get_access_information
    retval = super(AuthenticatedReddit, self).get_access_information(code)
  File "<decorator-gen-9>", line 2, in get_access_information
  File "/usr/lib/python2.7/site-packages/praw/decorators.py", line 285, in require_oauth
    return function(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 675, in get_access_information
    retval = self._handle_oauth_request(data)
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 650, in _handle_oauth_request
    response = self._request(url, auth=auth, data=data, raw_response=True)

The rest of the traceback is common to both methods:
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 444, in _request
    response = handle_redirect()
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 425, in handle_redirect
    verify=self.http.validate_certs, **kwargs)
  File "/usr/lib/python2.7/site-packages/praw/handlers.py", line 136, in wrapped
    return function(cls, **kwargs)
  File "/usr/lib/python2.7/site-packages/praw/handlers.py", line 57, in wrapped
    return function(cls, **kwargs)
  File "/usr/lib/python2.7/site-packages/praw/handlers.py", line 103, in request
    allow_redirects=False, verify=verify)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
    body=body, headers=headers)
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib64/python2.7/httplib.py", line 1053, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.7/httplib.py", line 1093, in _send_request
    self.endheaders(body)
  File "/usr/lib64/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 893, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 869, in send
    self.sock.sendall(data)
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 216, in sendall
    data = memoryview(data)
TypeError: cannot make memory view because object does not have the buffer interface

After some digging it seems to me that this is related to shazow/urllib3#717 (some more background info at kennethreitz/requests#2818).

Can you use pip to see what version of requests you are using?

Sounds like we either need to restrict the version of requests that can be used (set a smaller maximum number), or fix the unicode headers that PRAW sends. The former approach is much simpler.

I used 2.8.0, but it works when I downgraded requests to 2.7.0.


Expose individual RPC Services via Connection

The SDK is undergoing a rewrite/refresh and this issue applied to a previous version and is no longer applicable


Tiny fix to indentation in Function delaration

This was buggin me a little bit 😂

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Ha! Thanks for cleaning it up! I'll merge as soon as you sign the CLA :)

Cheers - should be all good

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review.


Update Catch version to v2.0.1

After upgrading Catch to 2.0.1, then compiling and running tests, I get:
All tests passed (1517 assertions in 172 test cases)
which is the same as with the old version.

Coverage remained the same at 35.697% when pulling 7619a7b488dd112970593701820d749c75df8d52 on kmws:master into dd156d00fff11425b21f82be24df93dc45f9756c on newsboat:master.

Coverage remained the same at 35.697% when pulling 7619a7b488dd112970593701820d749c75df8d52 on kmws:master into dd156d00fff11425b21f82be24df93dc45f9756c on newsboat:master.

Coverage remained the same at 35.697% when pulling 7619a7b488dd112970593701820d749c75df8d52 on kmws:master into dd156d00fff11425b21f82be24df93dc45f9756c on newsboat:master.

Coverage remained the same at 35.697% when pulling 7619a7b488dd112970593701820d749c75df8d52 on kmws:master into dd156d00fff11425b21f82be24df93dc45f9756c on newsboat:master.

Cool! Thank you very much!


C# Unity auto complete hints are wrong

VSCode Version:  0.10.11
OS Version: 10.11

Steps to Reproduce:

As shown in the following image, the autocompletion hints are wrong. It shows raw xml instead of formatted method information.

This issue was moved to OmniSharp/omnisharp-vscode#97


added MyPerfectWeather.eu inspired notebook

could we have more specific file name? like Data_analysis_at_MyPerfectWeather (didn't look at the snb file contents).
also, it's certainly nice to see the output, but it's rather big - 3MB.

@radek1st yes! this is exciting.
Per @vidma comment, it would be great to have a more explicit name (even with spaces ^^), but the most important would be to clean the outputs so the file is smaller and then leave the user redoing it on his own.
thanks !!!!

@vidma @andypetrella I've addressed the comments. Please let me know if you have any other comments or questions. Cheers

:fireworks: \o/


fix: resolve sonar warnings

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


moment().format() throwing TypeError: date.clone is not a function

Description of the Issue and Steps to Reproduce:
I am making a simple calendar widget for a search engine in React. I have in my constructor as follows:
this.state= {     startDate: moment(),     endDate: moment() }
This compiles fine and the calendar renders correctly. However, when I try to format the date as follows:
this.state = {     startDate: moment().format(),     endDate: moment().format() }
I am getting a TypeError: date.clone is not a function.
This TypeError is also thrown when I format the date outside of the constructor (initialize it as moment() and then try to format the object in another function).
Using Chrome 67.0.3396.99 on Windows 10, Moment 2.22.2, Node 8.11.3.
Thanks in advance!

Has anyone solved this issue yet? I've been looking for a solution

@leonoratelford solved it by saving the date to a different state property like so
this.state = { startDate: moment(), newstartDate:  moment().format()}

Thanks for opening this request.
This is a great question for Stack Overflow.


Conversations + Boards + Questions tabs

These are similar, so maybe there could be one tab that accommodated all three options in one?
-Boards and public questions are the same
-Conversations + private questions can go under chat (since there is group chat also)

This is a lower priority now that we've simplified the mobile experience.
As we create more workflows for the desktop.. we can revisit how to organize the data.


Refactor importBlock and persistence along finality rules

Description
Currently when shomei imports blocks, we persist to database storage directly.  There is a specific option --enable-finalized-block-limit that prevents the import of blocks that are not finalized.  Currently the finalized block limit/hash is updated via rollup_forkChoiceUpdated
In order to be more performant and offer additional functionality, this ticket aims to

refactor the finalized block limit feature to be an 'always on' import block limit condition, and the --enable-finalized-block-limit cli option should implement a condition similar to today by hash/number.  The default behavior should just return true.  We will refer to this as the "block limit" in this issue

import all blocks as they arrive, using the persisted worldstate if the block limit rule returns true, and an in memory worldstate if the block limit returns false.  Additionally, we want to use persistent storage for trace generation so that if we generate the trace against an in-memory worldstate we persist the trace in the db along with the trie log.

refactor the ZkWorldStateArchive such that it expects to cache all ZkWorldStates as they arrive.

on persisted state rolling, ensure we aggregate all of the in-memory changes into a single commit in order to move to the finalized worldstate as efficiently as possible, meaning no additional state root calculation, no trace generation , and no cryptographic overhead.

modify rollup_forkChoiceUpdated to not only change the block limit, but also to persist the latest finalized block if it already exists in ZkWorldStateArchive as an in-memory worldstate

The net result should be that we:

speculatively import shomei blocks
persist only finalized blocks
persist traces for all blocks (if configured to trace)
can quickly roll to any worldstate that is at or ahead of the most recent finalized block.

It's my understanding that Shomei has 2 operation modes:

A: for serving rollup_getZkEVMStateMerkleProofV0(startBlockNumber, endBlockNumber) with state transition that is proven the prover
B: rollup_getProof(address, ...) (similar of eth_getProof), which is public exposed to the daps/protocols.

At deployment time we need to choose either A or B, IIRC --enable-trace-generation=true runs A,  otherwise is B.
The flag --enable-finalized-block-limit=true and rollup_forkChoiceUpdated methods are at the moment used only in B mode.
I am not familiar with Shomei internals to fully understand what are the implications of points 1..4, but my understanding is that:

in both modes A and B, shomei will "optimistically" import blocks as they arrive;
AFIR atm, rollup_forkChoiceUpdated only allow to set the finalizedBlockNumber/Hash and move it forward. To support rollback, will this method now have extra parameters headBlockNumber/Hash ? How will the rollback be done?
Is there any operational implications of the mode A, will coordinator now need to call engine_forkchoiceUpdated with finalized block number as well?

@matkt implemented the current finalized-block-limit feature used for rollup_getProof operation.  What it does is prevent importing anything optimistically by preventing trielogs/blocks PUSHED from besu that are after the finalized block hash/number.
when a new finalized block is set, any subsequent PUSHED block triggers shomei to PULL all of the blocks up until the latest finalized block.  So in this mode, besu is optimistically importing, but shomei is not .
I think this PR is an opportunity to make shomei operate optimistically and faster in the rollup_getProof  mode, rather than having to replay all of the blocks in a burst on every finalized block.
I suspect we might be able to use a single shomei node type for both rollup_getProof and rollup_getZkEVMStateMerkleProofV0 operation.  If we structure the worldstate persistence in this way, I don't think we actually need the distinction between the two modes, and would always operate in the "B" mode (unless there is no forkchoice provider).   I will defer to @matkt to check me on this though.

similarly, if we only persist finalized states, but optimisitcally import all blocks, that should prevent needing to resync shomei if we optimistically import bad blocks.  There would be no rollback, just a new optimistic block that rolls-forward from the last finalized state.

I suspect we might be able to use a single shomei node type for both rollup_getProof and rollup_getZkEVMStateMerkleProofV0 operation

If we can achieve that and make it work reliably, it would be great! It would simplify the architecture and maintenance costs.

Yes, the idea of the ticket is to have the same behavior for both shomeis, thus eliminating the need for two modes. However, there will be a flag to indicate whether we want to generate zk traces or not (because size of the zktrace is really big), and that will be the only difference. I think by default it will be set to false, and if we want to enable it, we will need to add that.
However, to implement this, the shomei generating the zk traces must receive a rollup_forkChoiceUpdated, which is currently not the case if I remember correctly .
Indeed, the finalized-block-limit prevents shomei from importing a block and its trielog after this limit while waiting for the new limit. The change will therefore be to always import after this limit but only in memory, waiting for the new limit to persist those in memory.
I would say that the proposal we are making will require some refactoring in the sync logic but could address the various needs related to shomei that we have received recently.

The change will therefore be to always import after this limit but only in memory, waiting for the new limit to persist those in memory.

What are the memory consumption and performance implications of this?
We aim to have Finalization on L1 within 36 Hours, however we can be multiple days behind the L2 chain head, especially if have a bug in the system where we have already been 4+ days behind. We must be careful of this scenario.

What are the memory consumption and performance implications of this?
We aim to have Finalization on L1 within 36 Hours, however we can be multiple days behind the L2 chain head...

We can recreate the in memory states fairly cheaply, so the expectation is that we would only keep a limited number of states in memory.  Just like besu, we only keep 512 states in memory but since we persist trielogs, we can still roll the head to any arbitrary point by applying trielogs on top of the persisted state.  The only difference is that shomei will only be able to roll forward rather than backward like besu.
Memory should not be a concern and performance should be better for finalization if we:

do not create traces at each block
Roll the state in batches rather than persisting at each block as we reapply the trielog.


package-lock update

Failed to release due to CI error

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:


NIFI-11004 Add documentation for OIDC groups claim property

Summary
NIFI-11004 Updates the Administrator's Guide with documentation for the OIDC groups claim property and also updates the standard nifi.properties configuration with the default value of groups, matching the current internal behavior.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[ ] Build completed using mvn clean install -P contrib-check

[ ] JDK 8
[ ] JDK 11
[ ] JDK 17

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[X] Documentation formatting appears as expected in rendered files

Why do we need to update nifi-resources.pom?

Thanks for the feedback @Lehel44. The updates to pom.xml in nifi-resources sets the default value for the nifi.properties configuration included in the standard distribution. This follows the convention of other default property values, and also allows custom builds to set different default values using Maven properties.

Thank you. LGTM+1


parallelize create_region_input.py

This script is kind of annoyingly slow for creating input sets over long time periods. It might be pretty easy to get it to run in parallel. Maybe python's multiprocessing library and using 4 cores/threads, one for each of the climate variables would be a good start.

Fixed with #273


Settings crashing and incorrect positioning

The media controls used to be on the left of my top bar and few days ago they started sitting at the center.
I opened the extension settings from the gnome extension app but the pop-up disappears after one second and cannot be opened again afterwards.
I tried disabling every extension but this one, but this does not fix the issue.
I have no idea on how to get debug logs or something like that, apologies.
Config
OS: EndeavourOS 2022.08.28 64-bit (Linux 6.7.0-arch3-1)
Gnome: 45.3

Thanks for reporting the issue, what is the extension version, you can see this in the extensions app.

Do you mean the extension popup disappears?

Do you mean the extension popup disappears? If yes, your issue is related to https://gitlab.gnome.org/GNOME/gjs/-/issues/598 . You can temporarily fix this by downgrading the gjs package to 1.78.1
Downgrade the package in Arch-based systems: sudo pacman -U https://archive.archlinux.org/packages/gjs/gjs-2:1.78.1-1-x86_64.pkg.tar.zst

This fixes my issue, thank you very much for your quick response!


*: move the codec function together

What is changed and how it works?

Issue Number: Ref #13433.
What's Changed:
This PR moves the codec functions from tikv_util to codec package and renames them to v1. For the original codec function in that package, rename them to v2.

Release note
None

v1 and v2 should produce same results. Do you have further interest to reduce the usage of v1? :)

v1 and v2 should produce same results. Do you have further interest to reduce the usage of v1? :)

I have the same confusion. For example, the only difference of number_v1::decode_u64 and number_v2::decode_u64 is whether to panic or return result when length is too small. We can unify them instead of defining two versions.

v1 and v2 should produce same results. Do you have further interest to reduce the usage of v1? :)

I have the same confusion. For example, the only difference of number_v1::decode_u64 and number_v2::decode_u64 is whether to panic or return result when length is too small. We can unify them instead of defining two versions.

I agree, but maybe we can do it later? Right now, it's not clear to us which codec function should be used.


two rapid sequential transitions display wrong

Vue version
3.2.35
Link to minimal reproduction
https://codesandbox.io/s/vue-3-fade-in-transition-forked-rgechd
Steps to reproduce
When you click the button, you can see that both "A" and "B" show. The catalyst to this behavior is the "setTimeout" in the file. Without it, things function normally.
What is expected?
Only "B" should show
What is actually happening?
Both "A" and "B" continue to show
System Info
Seems that this behavior started on 3.2.34, doesn't happen on 3.2.33
Any additional comments?
No response

Simplified reproduction:
https://codesandbox.io/s/vue-3-fade-in-transition-forked-rgechd

related: https://github.com/vuejs/core/commit/59cf2958e7bae5f1e13953373fcdbb4ad988be6c


API Editor UI Round II

Trello card: https://trello.com/c/q73yIflP/8-m-api-provider-editor

PR Storybook available here

PR Storybook available here

PR Storybook available here

PR Storybook available here

PR Storybook available here

PR Storybook available here

Select Method:

Review Actions Page:

Operations Page:

PR Storybook available here

I may be biased, but I think this looks pretty good (enough).. 🤷🏻♀


Error in :filename.join generating .tar

I have an error which occurs after a successful build, it would seem, I think when it tries to create the .tar file
 % MIX_ENV=dev mix release
==> dashboard
Compiling 30 files (.ex)
warning: variable headers is unused
  web/oauth/oauth2client.ex:13

warning: unused alias Path
  web/controllers/path_controller.ex:4

Generated dashboard app
==> woodpecker
Compiling 9 files (.ex)
Generated woodpecker app
Building release with MIX_ENV=dev.
==> The release for dashboard-0.0.1 is ready!
==> You can boot a console running your release with `$ rel/dashboard/bin/dashboard console`
Building release with MIX_ENV=dev.
** (FunctionClauseError) no function clause matching in :filename.join/2
    (stdlib) filename.erl:407: :filename.join({:error, :bad_name}, 'templates')
    (stdlib) filename.erl:394: :filename.join/1
    /Users/bradurani/src/bumbershoot/deps/relx/src/rlx_util.erl:180: :rlx_util.find_priv_templates/0
    /Users/bradurani/src/bumbershoot/deps/relx/src/rlx_util.erl:177: :rlx_util.template_files/0
    /Users/bradurani/src/bumbershoot/deps/relx/src/rlx_prv_assembler.erl:645: :rlx_prv_assembler.render/2
    /Users/bradurani/src/bumbershoot/deps/relx/src/rlx_prv_assembler.erl:642: :rlx_prv_assembler.include_nodetool/1
    /Users/bradurani/src/bumbershoot/deps/relx/src/rlx_prv_assembler.erl:354: :rlx_prv_assembler.write_bin_file/4
    /Users/bradurani/src/bumbershoot/deps/relx/src/rlx_prv_assembler.erl:59: :rlx_prv_assembler.do/1
    /Users/bradurani/src/bumbershoot/deps/relx/src/relx.erl:308: :relx.run_provider/2
    (stdlib) lists.erl:1262: :lists.foldl/3
    /Users/bradurani/src/bumbershoot/deps/relx/src/relx.erl:291: :relx.run_providers_for_actions/2
    lib/exrm/utils/utils.ex:105: ReleaseManager.Utils.relx/5
    lib/mix/tasks/release.ex:339: anonymous fn/4 in Mix.Tasks.Release.do_release/1
    lib/ex_unit/capture_io.ex:146: ExUnit.CaptureIO.do_capture_io/2
    lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.do_capture_io/3
    lib/mix/tasks/release.ex:338: Mix.Tasks.Release.do_release/1
    lib/mix/tasks/release.ex:78: Mix.Tasks.Release.do_run/1
    (mix) lib/mix/project.ex:211: Mix.Project.in_project/4
    (elixir) lib/file.ex:1145: File.cd!/2
    lib/mix/tasks/release.ex:57: anonymous fn/3 in Mix.Tasks.Release.run/1

This is building from an umbrella app with 2 phoenix apps in the apps folder. Thanks!

Looks like an issue in relx, but I'll need some details to help determine that for sure. Could you run with --verbosity=verbose?
In the meantime, take a look at distillery. It's what I've been working on to replace exrm, and this issue shouldn't be present there.

I have been getting this lately too here is the verbose output
===> tarball /var/www/scotchy/rel/scotchy/scotchy-0.0.11.tar.gz successfully created!
===> Provider successfully run: tar

==> Generating nodetool...
==> Packaging release...
** (FunctionClauseError) no function clause matching in :filename.join/1
    (stdlib) filename.erl:395: :filename.join([])
    (stdlib) erl_tar.erl:471: :erl_tar.split_filename/4
    (stdlib) erl_tar.erl:400: :erl_tar.create_header/3
    (stdlib) erl_tar.erl:323: :erl_tar.add1/4
    (stdlib) erl_tar.erl:1000: :erl_tar.foreach_while_ok/2
    (stdlib) erl_tar.erl:132: :erl_tar.create/3
    lib/mix/tasks/release.ex:420: Mix.Tasks.Release.update_release_package/1
    lib/mix/tasks/release.ex:82: Mix.Tasks.Release.do_run/1

full Gist https://gist.github.com/joshuaswilcox/4e74d56c8e24e768155b6d4cfa4b0c7c
Going to take a look at distillery now, though


Use UnitOfReactivePower class enum

2024-08-28 12:14:46.197 WARNING (ImportExecutor_0) [homeassistant.const] POWER_VOLT_AMPERE_REACTIVE was used from solaredge_modbus_multi, this is a deprecated constant which will be removed in HA Core 2025.9. Use UnitOfReactivePower.VOLT_AMPERE_REACTIVE instead, please report it to the author of the 'solaredge_modbus_multi' custom integration

related to: #680

I'm not planning to merge this PR until HA 2024.10 or 2024.11 because I don't want to force a minimum version of HA for everyone who doesn't want to be on the latest HA just to get a bug fix in the integration.


[stable/prometheus-pushgateway] Fix missleading documentation about metrics.enabled in values documentation

Is this a new chart
nope
What this PR does / why we need it:
The documentation for the values states that metrics.enabled=true must also be set to deploy the servicemonitor which is not true.
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

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

/ok-to-test
/assign
/lgtm


Fixes forks contribution count

Closes #1478
Problem
Registration widget shows None Contributions:

despite there being contributions listed on the project overview page

Cause
The nodes are not rendered correctly in the function "get_registrations" and "get_forks." The "user" argument is not passed in.
Solution
Gets "auth" from keyword arguments in "get_registrations" and "get_forks" and pass into _render_nodes
Side effects
Not that I can think of

Thanks @huangginny . Once the CI build passes, this should be good to merge


web api hardcoded to port 5000

PROBLEM: The new web API controller is hardcoded to run on port 5000. And the new admin UI is hardcoded to http://<IP_ADDRESS>:5000/api/apps. Unfortunately this conflicts with my configuration (running in a docker container on my Synology NAS which already has the admin UI on port 5000)

SOLUTION: Allow overriding the port via env variable like the rest of the configuration. e.g. NETDAEMON__WEBAPIPORT=5001

Happy to put together a PR if you want it

yea will fix this...

@jvert This should only be an issue if you run the container on the host network, which you should not do.
If you want access to the Admin UI, you should add a port map for the internal :1337 port, as shown in the documentation instead of running it on the host network.
https://netdaemon.xyz/docs/started/installation#example-docker-run-configuration

it is fixed in dev and will be available in next release


Undefined property: W3TC\Extension_Amp_Plugin::$is_amp_endpoint

Hello,
I looked at the issues and it seems this hasn't been reported yet.
The error log is filled with the following notices:
[Thu Jun 29 09:42:07.473748 2017] [:error] [pid 27221] [client <IP_ADDRESS>:53172] PHP Notice:  Undefined property: W3TC\\Extension_Amp_Plugin::$is_amp_endpoint in /wp-content/plugins/w3-total-cache/Extension_Amp_Plugin.php on line 28, referer: https://www.google.gr/
[Thu Jun 29 09:42:07.474463 2017] [:error] [pid 27221] [client <IP_ADDRESS>:53172] PHP Notice:  Undefined property: W3TC\\Extension_Amp_Plugin::$is_amp_endpoint in /wp-content/plugins/w3-total-cache/Extension_Amp_Plugin.php on line 32, referer: https://www.google.gr/
Is there anything that can be done to fix this?
Here are all the details:

Apache/2.4.7 (Ubuntu)
PHP 5.5.9-1ubuntu4.21 (Apache 2.0 Handler)
MySQL 5.5.55-0ubuntu<IP_ADDRESS> (Ubuntu)
WordPress 4.7.5
W3 Total Cache (Fixed) Version <IP_ADDRESS>.2 | By W3TC (Fixed) Community

Thanks in advance! :)

thanks, fixed in https://github.com/szepeviktor/w3-total-cache-fixed/pull/510


120 simplestaking should also collect interest from reward tokens

#120

@aliberkhsl resolve conflicts. still comments open


CONTRIBUTING.md references npm scripts that don't exist

Search terms
test:visual, test:visual:accept, CONTRIBUTING.md
Expected Behavior
I should be able to follow the directions in CONTRIBUTING.md and successfully run the commands it mentions.
Actual Behavior
CONTRIBUTING.md mentions npm scripts that don't exist on the repo: test:visual and test:visual:accept. These are mentioned in 2 places:

Under #### Installation, step 8
Under #### Testing, near the end of paragraph 1

Steps to reproduce the bug

Follow instructions from CONTRIBUTING.md:

fork repo
clone fork
install dependencies
build
Set up a baseline for visual theme testing <-- THIS IS THE PROBLEMATIC STEP

EXPECT npm run test:visual to launch a test suite
OBSERVER npm erroring out saying npm error Missing script: "test:visual"
EXPECT npm run test:visual:accept to launch a test suite which accepts the produced visual artifacts
OBSERVER npm erroring out saying npm error Missing script: "test:visual:accept"

Environment

Typedoc version: 0.27.5
TypeScript version: 5.7.2
Node.js version: 22.12.0
OS: macOS Monterey 12.7.6

Thanks, updated


Update Docs with List? previousPageKeys

Custom example in docs https://github.com/quantosapplications/riverpod_infinite_scroll/blob/710a4d939593a9114b99772d1225ef816cce8e19/README.md?plain=1#L233
Needs to have
List? previousPageKeys
https://github.com/quantosapplications/riverpod_infinite_scroll/blob/710a4d939593a9114b99772d1225ef816cce8e19/example/lib/custom/custom_example_provider.dart#L21

Thank you, I have updated the docs!


Handle unknown channels

Checklist

[x] I have run nox and all the pipelines have passed.
[x] I have made unittests according to the code I have added/modified/deleted.

Also this would still break all the cases of assert isinstance(channel, channel_models.GuildChannel) we have lying around in the entity factory deserialize

Also this would still break all the cases of assert isinstance(channel, channel_models.GuildChannel) we have lying around in the entity factory deserialize if it was a new guild channel type

I was running my bot with -O which is why I wasn't getting the assertion errors. Furthermore, this seems to also break with the cache, so will have to rethink a better way of doing this


Onload show list of uploaded files?

Is there any possible way to show what users have already uploaded when the go the uploader page? This way they can remove files already uploaded from days in the past and add more files?
This is an excellent uploader btw and I would greatly appreciate any help than anyone can provide me.

https://github.com/blueimp/jQuery-File-Upload/blob/master/application.js#L32

bluimp - yes I have found the same code just minutes before your post. So what do I have to call or initiate in order to load all files that have been uploaded? Basically once I upload a file and save it. If I go to a different page and then come back to the uploader I would like the files to show that I previously uploaded? Any advice?

Actually, if you follow the Setup Guide (first part) you should have that functionality out of the box.

bluimp - I have all of those same files in step one uploaded for PHP.
The issue that I'm having is the upload directory is dynamic on the user that is logged in using the form. So do I have to pass a certain variable to the upload page when they revisit it?
Basically when they first go to the upload page they add files and they are saved to the correct folder I have specified. It does show the files that have been uploaded with a preview at this time. But as soon as they leave this page and go to another page in the members are that has nothing to do with the uploader and they go back to the uploader page it just shows a blank form as if nothing has ever been uploaded. How can I make it show all the files that were uploaded previously?
Thank you sooo much for your time.... I dont mind paying a donation for your support on this either. :)

Well, just keep the user-specific directory in the session and use that session variable to adjust the upload directory.

Do I need to call that session then from within the index.php file? I'm guessing that I have to. But not sure how to pass that session I'm planning on adding session_start() to the index.php to pass that session variable then insert the session. Correct?

RESOLVED :) that worked... thanks a million....


Infinite HMM joint segmentation

Passing locally but Travis is doing silly stuff.  Will assign @samuelklee to review once that's cleared up.

Note that there is definitely tweaking to be done, especially in terms of performance on copy ratio data, but I think it is best to do this after hooking it up to the new coverage model.

Restarted the Travis build and that seems to have cleared up.  Not sure what is up with coveralls.  Will review as soon as I get a chance!

That was new to me -- the drop to 12% coverage has shown up many times, but I haven't seen a +0.2% show up as a -2.5% before.

Apologies, @davidbenjamin, for letting this sit so long!  I've still got some things on my plate, but I think it might be useful for @achevali to review as well so he can gain some familiarity with the code.  What do you guys think?

@samuelklee Sounds good.  @achevali I would recommend looking at the infinite HMM section of the methods pdf, then we can go over them together.  After that let's sit down together to read through the code because this is not an easy PR.

@achevali have you started looking at this?

About halfway through my review.  @achevali, I think you should still take a pass through so you can get familiar with the code.  @davidbenjamin mentioned that he'll give you an overview of the HMM at some point; feel free to grab me for that if I'm around, I'd like to join in case I have any questions of my own!

Another thing to note: I am currently running PerformJointSegmentation on matched WES/WGS for a TCGA sample with moderate CNV activity (~185 and ~585 ACNV segments in WES and WGS, respectively, using relatively aggressive smoothing).  I set the number of initial states for both CR and AF to 20 (which is relatively low).
There are ~215k targets and ~1.3m hets for the WGS.  It has been running for 24 hours and has just gotten to the first iteration of joint segmentation.  CR segmentation only took ~30 minutes to go through 31 iterations, but AF segmentation took about ~23.5 hours and went through the maximum 50 iterations without reaching convergence.
WES seems to be faring better with ~130k targets and only ~18k hets.  After 4 hours, it is through 17 iterations of joint segmentation.  However, it also reached the maximum of 50 iterations for AF segmentation.
Keep in mind that this joint segmentation will need to be followed by one round of MCMC fitting for both CR and AF, and that the latter takes about ~1 hr on WGS.
So, takeaways:
-We need to do some experimentation to find good convergence thresholds and typical numbers of states.
-Perhaps we should optimize the AF model or be more clever about using the hets in WGS (hopefully we can avoid just downsampling...).
-We should check runtime against TITAN, for starters.  @achevali can you comment?
-Are there any low hanging optimizations to the HMM that can be made?
-What should be Sparkified, if anything?

Hey guys, I've been loosely following this review. A few things about the HMM:

GATK's implementation of the forward-backward algorithm is in pure java and as lots of for loops. Perhaps a native HMM backend or at least using native linalg instead of loops could be beneficial.
This: https://github.com/broadinstitute/gatk-protected/issues/711 though, it is probably less of an issue here since the emission probabilities are Gaussian and the hidden states change after each iteration.
It is impossible to Sparkify FB and Viterbi completely, but calculating and caching the emission probabilities can be definitely Sparkified (which is likely to be the most expensive part)
Whether or not the new coverage model fixes hypersegmentation could be tested by using a Gaussian emission model:
$P(n | CR) \sim N(\log(pcov) | mean = log(CR), var = 1/n + \Psi)$
where $\Psi$ is typically in range $0-0.05$.

Thanks for the comments, @mbabadi.  I think looking into native/linalg HMM implementations would be a good start.
If you guys are interested in looking at the WES result, it can be found at /dsde/working/slee/joint-seg-test/wes/plots/TCGA-05-4396-01A-21D-1855-08_ACNV.png.  The corresponding ACNV results can be found at /dsde/working/slee/purity-ploidy-tcga-*/acnv_plots/TCGA-05-4396-01A-21D-1855-08_ACNV.png, where *=wes and wgs, respectively.  You'll notice some (possibly?) funky stuff in the CR segmentation and the large bias in the AF balanced segments.

@samuelklee I think that's almost everything you wanted.  I asked to put off exposing some stuff in the CLI because pruning and initialization are two things I expect to overhaul soon and I believe this would be wasted effort.
One particular thing I have decided is that the segmenter is much too sensitive to initialization.  I think that the current initialization should be replaced by an unsupervised pretraining step of non-segmented clustering, CRP for example, to get a liberal set of candidate states, which could then be pruned via a single forward-backward step.

Back to @samuelklee

OK, thanks!  Just saw a few things you might have skipped (either on accident or on purpose).  Good to merge after you take a look.  Let's discuss next steps with @achevali in person.

@samuelklee all accidents -- I went through once, made all the changes, commented "done", and then tests failed so I had to start over, but the comments were still there.

whoops.  done.
On Mon, Jan 23, 2017 at 11:59 AM, samuelklee<EMAIL_ADDRESS>wrote:

@samuelklee commented on this pull request.
In src/main/java/org/broadinstitute/hellbender/tools/exome/segmentation/
TargetOrHetDatum.java
https://github.com/broadinstitute/gatk-protected/pull/753:

@@ -0,0 +1,39 @@
+package org.broadinstitute.hellbender.tools.exome.segmentation;

+import org.broadinstitute.hellbender.tools.exome.alleliccount.AllelicCount;
+
+import java.util.Optional;
+
+/**

Holds either the {@link org.broadinstitute.hellbender.tools.exome.alleliccount.AllelicCount} data

Think you might have missed this?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/broadinstitute/gatk-protected/pull/753, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AIDEanMtsiqhKF-CaTSTwO7nVzTpZhxOks5rVNxagaJpZM4KdgXI
.

@samuelklee I done did all the stuffs.