Getting error 500 when visiting root (/) on CI but works perfectly in local

Hello,
I tried to make this work last week and I was successful in having green tests in local but when I tried to this up in GitHub actions  I was getting error 500 when visiting the root directory after loading the scenarios.

Here is my setup
#e2e_helper.rb

require "factory_bot_rails"
require "cypress_on_rails/smart_factory_wrapper"

# I added this because our factoryBot have a custom strategy called cache
class CustomCypressOnRails < CypressOnRails::SmartFactoryWrapper
  def self.cache(*args) end
  def cache(*args) end
end

factory = FactoryBot

CustomCypressOnRails.configure(
  always_reload: false,
  factory: factory,
  files: [
    Rails.root.join("spec", "factories", "*.rb"),
    Rails.root.join("spec", "factories", "**", "*.rb")
  ]
)

# scenarios/common.rb
currency = FactoryBot.create(:currency)
user_group = FactoryBot.create(:user_group)
market_feed = FactoryBot.create(:market_feed_nz, currency: currency)
user = FactoryBot.create(:quentin, user_group: user_group)
supplier_group = FactoryBot.create(:supplier_group_nz)
community = FactoryBot.create(:community1)
product_type = FactoryBot.create(:product_type)
site = FactoryBot.create(:site, user_group: user_group, site_market_feed: market_feed, business: user,
                                supplier_group: supplier_group, community: community, default_currency: currency,
                                default_product_type: product_type)

FactoryBot.create(:site_domain2, site: site)

// vueBackofficeLayout.spec.cy.ts
describe('Vue Backoffice Layout', () => {
  before(() => {
    cy.appScenario('common')
    cy.login({ username: 'quentin', password: 'secret' })
  })

  beforeEach(() => {
    cy.visit('/profile/index?vue=3')
  })

  it('renders vue backoffice components', () => {
    cy.get('div.navbar').within(() => {
      cy.get('svg.is-active.hamburger')
      cy.get('div.el-select.select-vue')
      cy.get('div.el-dropdown').contains('Quentin Quet')
      cy.get('span.el-avatar')
    })
    cy.get('div.has-logo.sidebar-container').within(() => {
      cy.contains('Local Retail Host')
      cy.get('ul[role="menubar"]')
    })
    cy.get('div.main-container')
  })
})

I'm guessing Cypress was not able to load the scenarios but it should at least return a 404 instead of 500.
Can you guys point me to what I miss here? It's kinda tricky if it can't be replicated locally.

Looks like cy.login({ username: 'quentin', password: 'secret' }) is failing

Looks like cy.login({ username: 'quentin', password: 'secret' }) is failing

Yes, but it fails right on the first line which is the visit to the root.
// spec-cypress/support/commands.ts
Cypress.Commands.add('login', (user: UserCredentials) => {
  const { username, password } = user
  cy.session([username],
    () => {
      cy.visit('/')
      cy.get('nav.navbar.hidden-xs a').contains('Login/Sign up').click()
      cy.get('#main-content').find('#user_name').type(username)
      cy.get('#main-content').find('#password').type(password)
      cy.get('#main-content').contains('Login and Checkout').click()
      cy.get('p#flash_success').contains('You are logged in as Local Retail Host')
    },
    {
      validate() {
        cy.request('/api/v1/current_user', {
          method: 'GET'
        }).its('status').should('equal', 200)
      }
    }
  )
})

maybe if you store the log folder as an artifact you can look at the logs and see why it's giving a 500 error.

maybe if you store the log folder as an artifact you can look at the logs and see why it's giving a 500 error.

@grantspeelman Sorry for the late update but thanks for the tip. I added the logs in the artifacts and I was able to see the problem which is when the Database Cleaner is triggered Paper Trail is querying versions table which does not exist.
But paper trail is disabled in the initializers and this only happens in CI.
Started POST "/__e2e__/command" for <IP_ADDRESS> at 2024-01-16 05:54:39 +0000
[CY_DEV] handle_command: {"name"=>"log_fail", "options"=>{"error_message"=>"`cy.visit()` failed trying to load:\n\nhttp://localhost:5173/\n\nThe response we received from your web server was:\n\n  > 500: Internal Server Error\n\nThis was considered a failure because the status code was not `2xx`.\n\nIf you do not want status codes to cause failures pass the option: `failOnStatusCode: false`\n\nThis error occurred while creating the session. Because the session setup failed, we failed the test.", "runnable_full_title"=>"Bin Settings \"before each\" hook"}}
[CY_DEV]   ActiveRecord::SessionStore::Session Load (5.1ms)  SELECT `sessions`.* FROM `sessions` LIMIT 100
[CY_DEV]   PaperTrail::Version Load (1.6ms)  SELECT `versions`.* FROM `versions` LIMIT 100
[CY_DEV] fail to execute /app/spec-cypress/e2e/app_commands/log_fail.rb: Mysql2::Error: Table 'app_test.versions' doesn't exist
[CY_DEV] /app/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:131:in `_query'
/app/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:131:in `block in query'
/app/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:130:in `handle_interrupt'
/app/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:130:in `query'

Anyway, this is not a problem with cypress-on-rails gem but if you guys have some tips or ideas to solve my issue, I would appreciate it. Thank you very much.

worth checking if it's disable also for the test environment, because maybe on your local you running cypress against your development environment and on CI you run against the test environment.
Hope that helps.


Add an Admin page

Add an Admin dashboard with stats like total # of users, total # of game purchases, total # of games with covers, games with PCGW IDs, games with Wikidata IDs, etc.
It'll eventually also have stuff like the Wikidata ID blacklist.

I added an empty dashboard and the blocklist in #678.

Good enough.


You might be interested in my additional configs.

Thanks!
I’m not gonna pull this in as-is (for obvious reasons; just look at the diff!) but those sure are some interesting additions.
I’ll look into them and merge what I like.
# Disable internal Laptop Display when external Display is attached (pre-10.7 behavior)
sudo nvram boot-args="iog=0x0"
# Enable Resume for Safari to restore Tabs
defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -int 0
# Disable Sudden Motion Sensor in a portable Mac with a SSD
sudo pmset -a sms 0
# Change Hibernation Mode (0:RAM, 1:HDD, 3:RAM+HDD) and delete last image (Standard: 3)
sudo pmset -a hibernatemode 0; sudo rm /var/vm/sleepimage

Oh, yeah my mistake :) Just merge what you like.


[feature] Add a copy button to the monitoring center

What's changed?

Add a copy button to the monitoring center，And realize internationalization。issus is #1727
Checklist

[x]  I have read the Contributing Guide
[x]  I have written the necessary doc or comment.
[x]  I have added the necessary unit tests and all cases have passed.

Add or update API

hi 👍 lgtm. Recommended that merge this after releasing version 1.6.0.

hi, i have a test for this, it seem not copy the monitor params when click copy button.
before:

copy:

I will make the necessary changes as soon as possible.
------------------ 原始邮件 ------------------
发件人:                                                                                "apache/hertzbeat"                                                                                @.>;
发送时间: 2024年6月16日(星期天) 下午3:16
@.>;
<EMAIL_ADDRESS>主题: Re: [apache/hertzbeat] [feature] Add a copy button to the monitoring center (PR #2060)
hi, i have a test for this, it seem not copy the monitor params when click copy button.
before:
image.png (view on web)
copy:
image.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

I will make the necessary changes as soon as possible.

👍 thanks.


fix(net/ghttp/): fix  the issue of using application/octet stream to upload large files causing excessive memory and crashing

The reason for this problem is that when creating RouterFunc initializes the request, it calls the MakeBodyRepeatableRead method to write the r.body to memory and change it to Repeatable. However, pure binary files do not require formatting of either the form or the body
So the solution is to detect the application/octet stream type and exit it early in the formatted form and body methods
Fixes #3692

@TotoroZuo Any updates?


AccessViolationException with Page Seg Mode SingleColumn

Code:

Try
         Const dataPath As String = "C:\Users\Administrator\Documents\Visual Studio 2015\Projects\AgentStat2\AgentStat2\tessdata"
         Using engine As Tesseract.TesseractEngine = New TesseractEngine(dataPath, "eng", EngineMode.Default)
            Using img As Pix = Pix.LoadFromFile(filePath)
                Using pageItem As Tesseract.Page = engine.Process(img, PageSegMode.SingleColumn)
                    Dim result As String = pageItem.GetText
                    File.WriteAllText("c:\temp\out.txt", result)
                End Using
            End Using
        End Using
    Catch ex As Exception
        Debug.Print(ex.Message)
    End Try

I get an access violation error when calling the method 'GetText' when using SingleColumn mode.
I don't believe it is related to the image I'm parsing. I have encountered the same error on many other images in the same environment.
Exact error thrown:
"An unhandled exception of type 'System.AccessViolationException' occurred in InteropRuntimeImplementer.TessApiSignaturesInstance"
Visual Studio 2015. VB.Net (same issue occurs in c#). Tesseract <IP_ADDRESS>.. Framework 4.5.1.

Thanks for the bug report I'll have a look tomorrow
On Sep 15, 2015 6:06 AM, "Mort5000"<EMAIL_ADDRESS>wrote:

Code:
[image: 23tened]
https://cloud.githubusercontent.com/assets/4890709/9860413/eebfb324-5b23-11e5-94c1-e2a5ed2b1ee0.png
Try
Const dataPath As String = "C:\Users\Administrator\Documents\Visual Studio 2015\Projects\AgentStat2\AgentStat2\tessdata"
Using engine As Tesseract.TesseractEngine = New TesseractEngine(dataPath, "eng", EngineMode.Default)
Using img As Pix = Pix.LoadFromFile(filePath)
Using pageItem As Tesseract.Page = engine.Process(img, PageSegMode.SingleColumn)
Dim result As String = pageItem.GetText
File.WriteAllText("c:\temp\out.txt", result)
End Using
End Using
End Using
Catch ex As Exception
Debug.Print(ex.Message)
End Try
I get an access violation error when calling the method 'GetText' when
using SingleColumn mode.
I don't believe it is related to the image I'm parsing. I have encountered
the same error on many other images in the same environment.
Visual Studio 2015. VB.Net (same issue occurs in c#). Tesseract <IP_ADDRESS>..
Framework 4.5.1.
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/209.

Sorry I'm not going to have time to be able to get around to looking at
this tonight. I'll let you know how it goes when I do.
On Sep 15, 2015 8:04 PM, "Charles Weld"<EMAIL_ADDRESS>wrote:

Thanks for the bug report I'll have a look tomorrow
On Sep 15, 2015 6:06 AM, "Mort5000"<EMAIL_ADDRESS>wrote:

Code:
[image: 23tened]
https://cloud.githubusercontent.com/assets/4890709/9860413/eebfb324-5b23-11e5-94c1-e2a5ed2b1ee0.png
Try
Const dataPath As String = "C:\Users\Administrator\Documents\Visual Studio 2015\Projects\AgentStat2\AgentStat2\tessdata"
Using engine As Tesseract.TesseractEngine = New TesseractEngine(dataPath, "eng", EngineMode.Default)
Using img As Pix = Pix.LoadFromFile(filePath)
Using pageItem As Tesseract.Page = engine.Process(img, PageSegMode.SingleColumn)
Dim result As String = pageItem.GetText
File.WriteAllText("c:\temp\out.txt", result)
End Using
End Using
End Using
Catch ex As Exception
Debug.Print(ex.Message)
End Try
I get an access violation error when calling the method 'GetText' when
using SingleColumn mode.
I don't believe it is related to the image I'm parsing. I have
encountered the same error on many other images in the same environment.
Visual Studio 2015. VB.Net (same issue occurs in c#). Tesseract <IP_ADDRESS>..
Framework 4.5.1.
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/209.

Thanks. Appreciate it.
On 16 Sep 2015 11:51, "Charles Weld"<EMAIL_ADDRESS>wrote:

Sorry I'm not going to have time to be able to get around to looking at
this tonight. I'll let you know how it goes when I do.
On Sep 15, 2015 8:04 PM, "Charles Weld"<EMAIL_ADDRESS>wrote:

Thanks for the bug report I'll have a look tomorrow
On Sep 15, 2015 6:06 AM, "Mort5000"<EMAIL_ADDRESS>wrote:

Code:
[image: 23tened]
<
https://cloud.githubusercontent.com/assets/4890709/9860413/eebfb324-5b23-11e5-94c1-e2a5ed2b1ee0.png

Try
Const dataPath As String = "C:\Users\Administrator\Documents\Visual
Studio 2015\Projects\AgentStat2\AgentStat2\tessdata"
Using engine As Tesseract.TesseractEngine = New
TesseractEngine(dataPath, "eng", EngineMode.Default)
Using img As Pix = Pix.LoadFromFile(filePath)
Using pageItem As Tesseract.Page = engine.Process(img,
PageSegMode.SingleColumn)
Dim result As String = pageItem.GetText
File.WriteAllText("c:\temp\out.txt", result)
End Using
End Using
End Using
Catch ex As Exception
Debug.Print(ex.Message)
End Try
I get an access violation error when calling the method 'GetText' when
using SingleColumn mode.
I don't believe it is related to the image I'm parsing. I have
encountered the same error on many other images in the same environment.
Visual Studio 2015. VB.Net (same issue occurs in c#). Tesseract
<IP_ADDRESS>..
Framework 4.5.1.
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/209.

—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/209#issuecomment-140704011.

Can you try this using the latest development version which uses Tesseract 3.04 and see if it's still an issue? I've added some testcase and these seem to be working as expected.
Note: You can create a nuget package and\or dlls by running build.bat.

Will do. I'll give it a try this evening when I get home.
On 17 Sep 2015 10:40, "Charles Weld"<EMAIL_ADDRESS>wrote:

Can you try this using the latest development version which uses Tesseract
3.04 and see if it's still an issue? I've added some testcase and these
seem to be working as expected.
Note: You can create a nuget package and\or dlls by running build.bat.
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/209#issuecomment-141024527.

Actually just confirmed that there is a bug with x64 build. When I ran the unit test originally I only ran it for x86 version which works fine. I'll see if I can have a better look into this over the weekend but no promises as it's probably something wrong with the actual tesseract dll that I built.

Thanks for the update. I'll try v3.04 in x86 and let you know if I still
have issues.
On 17 Sep 2015 13:15, "Charles Weld"<EMAIL_ADDRESS>wrote:

Actually just confirmed that there is a bug with x64 build. When I ran the
unit test originally I only ran it for x86 version which works fine. I'll
see if I can have a better look into this over the weekend but no promises
as it's probably something wrong with the actual tesseract dll that I built.
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/209#issuecomment-141060307.

Downloaded the develop version. Built. But not having much luck getting it into my project.

Checkout: http://stackoverflow.com/questions/10240029/how-to-install-a-nuget-package-nupkg-file-locally

Closing due to inactivity, please reopen if it's still relevant bug


python310Packages.devolo-plc-api: 0.9.0 -> 1.0.0

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 209206 run on x86_64-linux 1

1 package failed to build:

home-assistant-component-tests.devolo_home_network

2 packages built:

python310Packages.devolo-plc-api
python39Packages.devolo-plc-api


Watching a subset of a table or using join doesn't update with results

I'm not sure if this is similar to #55 . When I update columns in a table, update only,delete and insert works fine, the stream builder doesn't receive the changes.
Here's my query. I've tried two approaches, one using join and the other using where
Stream<JournalWithEntries> watchJournalWithEntries(int id) {
    final _journalQuery =
        (select(journals)..where((journal) => journal.id.equals(id)));

    final _contentQuery = select(journals).join(
      [
        innerJoin(
          entries,
          entries.journalId.equalsExp(journals.id),
        ),
      ],
    )..where(journals.id.equals(id));

    final _journalStream = _journalQuery.watchSingle();
    final _contentStream = _contentQuery.watch().map((rows) {
      return rows.map((row) => row.readTable(entries)).toList();
    });

    return Observable.combineLatest2(_journalStream, _contentStream,
        (Journal journal, List<Entry> entries) {
      return JournalWithEntries(
        journal: journal,
        entrys: entries,
      );
    });
  }

Stream<List<Entry>> watchAllJournalEntries({@required int id}) {
    return (select(entries)
          ..where((t) => t.journalId.equals(id))
          ..orderBy(
            ([
              (t) => OrderingTerm(expression: t.id, mode: OrderingMode.asc),
            ]),
          ))
        .watch();
  }

We have something very similar to your second snippet in the example app, we load a list of entries for a category: https://github.com/simolus3/moor/blob/b1e6d931d5987e267c64efb5f96f95815b38c143/moor_flutter/example/lib/database/database.dart#L116-L135
I just tried that one out and couldn't reproduce the problem. If you can give me your table definitions (you can omit columns that don't appear in your example), I can try to track it down.
And, just to be sure, can you give me the moor version you're using (you can find the exact version in your pubspec.lock).

Here's my table definitions
@DataClassName("Journal")
class Journals extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get name => text().withLength(min: 1, max: 50)();
  TextColumn get description => text().withLength(min: 1, max: 100)();
  DateTimeColumn get createdOn => dateTime().withDefault(currentDateAndTime)();
  DateTimeColumn get updatedOn => dateTime().withDefault(currentDateAndTime)();
  TextColumn get backgroundImage => text().nullable()();
}

@DataClassName("Entry")
class Entries extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get entry => text().map(const RichTextConverter()).nullable()();
  DateTimeColumn get addedOn => dateTime().withDefault(currentDateAndTime)();
  IntColumn get journalId => integer()();
}

I'm using
moor_flutter: ^1.7.0
moor_generator: ^1.7.0

Thanks for the detailed response. Unfortunately, I still can't reproduce your issue. I tried to use your second snippet in this gist: https://gist.github.com/simolus3/78706375bd1a9c4376e2f00ec393c18c
In the stream builder, I display the amount of entries for the journal with id 1. When the floating action button is pressed, I add another entry (with journal id 1). When I run the app and press the button, the counter increases, as intended.
Is there anything major you're doing differently here? I'll try the first snipped with Observable.combineLatest2 tomorrow, but I recently tested a similar case which worked.

Everything seems fine with the gist. Could you try an update on the entry field/column? The one with the type converter. Inserts and Deletes seem to work fine for me. I'm getting the issue when updating. Thanks.

Still no luck :( I've added this method to the database:
Future updateEntry(int id) async {
    final updated = await (update(entries)..where((e) => e.id.equals(id)))
        .write(EntriesCompanion(
            entry: Value(DateTime.now().millisecondsSinceEpoch)));
    print('updated: $updated');
  }

And I'm calling that method when the floating action button is pressed. This prints "updated: 1" and the StreamBuilder does get rebuilt.

Might be something wrong with my view. I'll try and see if I can replicate the issue with your gist. Thanks

I've done a few more tests on this and I can confirm It's not an issue with moor. It's a problem with state management in my custom view/widget.


[release/1.7] fix: shimv1 leak issue

// Delete the initial process and container
func (s *Service) Delete(ctx context.Context, r *ptypes.Empty) (*shimapi.DeleteResponse, error) {
        p, err := s.getInitProcess()
        if err != nil {
                return nil, err
        }
        if err := p.Delete(ctx); err != nil {
                return nil, errdefs.ToGRPC(err)
        }

	// The client might canceled the request but the shim service still
	// moved on. The `delete(s.processes, s.id)` was executed
	// successfully. So the next Delete call will return `container
	// must be created` error. The client side should ignore this
	// issue.

        s.mu.Lock()
        delete(s.processes, s.id)
        s.mu.Unlock()
        s.platform.Close()
        return &shimapi.DeleteResponse{
                ExitStatus: uint32(p.ExitStatus()),
                ExitedAt:   protobuf.ToTimestamp(p.ExitedAt()),
                Pid:        uint32(p.Pid()),
        }, nil
}

introduced by #9003
fixes: #9309

ping @mikebrow @kiashok
It can address the issue you mention in https://github.com/containerd/containerd/pull/9326#issuecomment-1791695302


Recommend pod-install for setup instructions

Summary
We've been recommending devs use npx pod-install since it will attempt to install CocoaPods CLI if it's not available on the computer (cite React Navigation setup guide). This has proved very useful for Expo users who are now migrating to the bare workflow and want to use community packages in their projects.
Checklist

[x] I have tested this on a device and a simulator
[x] I added the documentation in README.md

thanks!


Wrong route parameter binding

Laravel Version: 10.5.1
PHP Version: 8.1.5

Description:
I have simple route binding in web.php:
Route::controller(CalendarController::class)->middleware('year.validate')->group(function() {
    Route::get('calendar-{month}-{year}', 'month')->where('month', '[a-z]{3,9}')->name('month');
});

Simple controller:
class CalendarController extends Controller
{
    public function month(Request $request): MonthResponse
    {
        return new MonthResponse($request->route('year'), $request->route('month'));
    }
}

Light middleware:
class YearValidate
{
    public function handle(Request $request, Closure $next)
    {
        $year = $request->route('year');

        return $next($request);
    }
}

And easiest classes of responses:
abstract class AbstractResponse implements Responsable
{
    protected int $year;

    public function __construct(int $year)
    {
        $this->year = $year;
    }
}

class MonthResponse extends AbstractResponse
{
    protected string $month;

    public function __construct(int $year, string $month)
    {
        $this->month = $month;

        parent::__construct($year);
    }
}

When i open url /calendar-may-2023 i got error 404.
And in my YearValidate i got full url string in $resuest->route('year'), not year only...
dd($request->route()->parameters) returns this:
array:1 [▼ // app\Http\Middleware\YearValidate.php:13
  "year" => "calendar-may-2023"
]

I tried clear all cache, but error do not go out :(

Can you try this ?
Route::controller(CalendarController::class)->middleware('year.validate')->group(function() {     Route::get('calendar-{month}-{year}', 'month')->where([         'month' => '[a-z]{3,9}',         'year' => '[0-9]{4}'     ])->name('month'); });
add year parameter to where clause |

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.

Can you try this ?

Same :(

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Hello. Why close :( ?
Probably, its framework bug Route::controller (relatively new feature) and users not see this issue in fresh opened list of issues.
Declaring from just Route:get working fine:
Route::get('calendar-{month}-{year}',  [CalendarController::class, 'month'])
    ->middleware('year.validate')
    ->where('month', '[a-z]{3,9}')
    ->name('month');

In route group not working:
Route::group(['middleware' => 'year.validate'], function() {
    Route::get('calendar-{month}-{year}', [CalendarController::class, 'month'])
        ->where('month', '[a-z]{3,9}')
        ->name('month');
});

Outside route group working:
Route::get('calendar-{month}-{year}', [CalendarController::class, 'month'])
    ->where('month', '[a-z]{3,9}')
    ->name('month');

//web.php
Route::controller(CalendarController::class)->middleware('year.validate')->group(function() {
    Route::get('some-url/{year?}', 'year')->name('year');
});

//app\Http\Middleware
class YearValidate
{
    public function handle(Request $request, Closure $next)
    {
        dd($request->route('year')); //got `some-url`, not null (as expected)
    }
}

If i visit url /some-url, i got some-url as {year} parameter.


Fix DJV URL

Hi,
Thanks for including DJV in the ASWF Landscape. I wanted to correct the "crunchbase" URL which points to the company "unexpected", which has supported some work on DJV but is not the developer of it. That's me. :)
Thanks, Darby
PS. Unfortunately "crunchbase" has my name misspelled in the URL, but the information on the page is correct.

Thanks @darbyjohnston for doing this update!
Unfortunately, the crunchbase requires pointing to a company versus a person. Can you add a company entry for yourself and put in that URL?

I updated to create a new JDV organization in Crunchbase, showing you as the founder.
https://www.crunchbase.com/organization/djv
Please let us know whether you need any more updates. Note that you can email<EMAIL_ADDRESS>if you want them to fix the URL.
Separately, congrats on the software. To help promote it, I would encourage you to consider creating a GitHub Pages website for it (which could have its own domain and be served by https). And, you might consider creating a DJV Twitter account to announce new releases and such.

Hi Dan,
Wow, thanks! I had that on my todo list after John's message but got sidetracked by some other work. Also great suggestion about the GitHub pages, I've been slowly moving away from sourceforge and it's probably about time to move the web page over as well.
Thanks, Darby


Explain the different Devnets

Description
Describe how simple it is to setup a local Devnet.
Talk deeper about the different ways how to create a devnet for development (using lisk init or the provided genesisblog and config for devnet), also mention passphrase for the genesis account
Motivation
When I use lisk init with Lisk-Commander, it says that it is using the local devnet in docs, but the parameters being passed in app.ts aren’t genesisBlockDevnet or configDevnet so is it still running in devnet?

And another one: who can help me with the faucet plugin? The "receive" button is not clickable ... and also the "Faucet address" does not display anything.... Since I am using the genesisBlockDevnet, all registered accounts start with balance=0 . Might this be the reason, because obviously the faucet account also has a 0 balance
Additional information

This should be explained in #1297 with the section Update Building a blockchain application


[gitignore] Update for android build

Update gitignore for android build to ignore *.o.d and downlaoded iniparser
Self evaluation:

Build test: [x]Passed [ ]Failed [ ]Skipped
Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #593. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.


Games - Create Game

Create a game with the following associated attributes:
#:game{
   :name "New Game",
   :max-players 10,
   :type :round,
   :round-intermission 1200000,
   :num-rounds 3,
   :is-private false}

Game is being created as expected, but we're not able to see rounds, round intermission time, and other game types reflected in gameplay. We should also cap the max-players at 8 and set a minimum of 1 - not sure if we want to handle this on the API or client side.
Moving to blocked for further discussion. Likely need to determine reqs and create stories for the issue mentioned above.

Moving back to QA after discussion, need to create several (3) tickets around this.


Intermittent problem picking files using filepicker

Hi
I am using your FilePicker for an app I am building.
I followed your instructions on github and have my container set up correctly.
I am using an iPhone 6s running iOS 10.2.1.
I am getting an intermittent error. Sometimes it works sometimes it doesn't.
My Code:
function buttonYes(){
FilePicker.isAvailable(function (avail) {
console.log(avail ? "YES" : "NO");
});
window.FilePicker.pickFile(filePickSuccessCallback,filePickErrorCallback);
}
function filePickSuccessCallback(path){
var fName = path.substr(path.lastIndexOf('/') + 1);
console.log(fName);
var fileDir = cordova.file.tempDirectory + 'com.dearle-Inbox/';
var timestamp = Math.floor(Date.now());
timestamp = formatTimeStamp(timestamp);
console.log("You picked this file: " + path);

    for(j = 0; j < jobs.jobs.length; j++){
        var job = jobs.jobs[j];
        if(job.jobId == jobid){
            console.log('job.jobId :'+ job.jobId + ' jobid : '+ jobid);

            if(docUpload.length == 0){
                docUpload.push({fileName: fName, job: jobid, documentId: documentId, filePath: path});
                saveDocUpload(docUpload);
            }
            else{
                var docIsThere = false;
                for(du = 0; du < docUpload.length; du++){
                    var docForUpload = docUpload[du];
                    if(docForUpload.fileName == fName){
                        docIsThere = true;
                    }
                }
                if(!docIsThere){
                    docUpload.push({fileName: fName, job: jobid, documentId: documentId, filePath: path});
                    saveDocUpload(docUpload);
                }
            }

            console.log(docUpload);

            if(!job.docUpload || job.docUpload.length == 0){
                job.docUpload = [];
                job.docUpload.push({fileName: fName, job: jobid, documentId: documentId, filePath: path});
                saveJobs(jobs);
            }
            else{
                var isDocAlreadyThere = false;
                for(d = 0; d < job.docUpload.length; d++){
                    var doc = job.docUpload[d];
                    if(doc.fileName == fName ){
                        isDocAlreadyThere = true;
                    }
                }
                if(!isDocAlreadyThere){
                    job.docUpload.push({fileName: fName, job: jobid, documentId: documentId, filePath: path});
                    saveJobs(jobs);
                }
            }
        }
    }

window.resolveLocalFileSystemURL(cordova.file.tempDirectory+'com.dearle-Inbox/+fName, function(fileEntry){
    console.log(fileEntry);
}, function(e){console.log(e);});

}
The output always tells me I have picked a file and have a successful call back.
console log from success callback:
You picked this file: /private/var/mobile/Containers/Data/Application/A9025397-8E84-4BF8-91AC-DAF42B06E27B/tmp/com.dearle-Inbox/4156345_How_to_get_started.pdf.
This seems to suggest that I have successfully transferred the file.  However when I check for the file using the window.resolveLocalFileSystemURL call I will get 1 of 2 outputs.
1:   I will get a successful callback as it finds the file or
2:  I will get an FILE_NOT_FOUND_ERROR from Cordova-Plugin-File
I have tried various different things, but to no avail.
Unfortunately I am not an objective C programmer (it baffles me!!).
I would appreciate your help.

On further investigation it seems the issues are with cordova-plugin-file-transfer which seems to have intermittent problems identifying the path supplied in the '/temp/cortainer-indox'.
Although I haven't solved that issue I made a work around by simply moving the picked file to a directory that file-transfer does recognise consistently and was then able to upload files using file-transfer without errors.

@tonyxrmdavidson is the file-transfer plugin a known issue? (reported on Cordova JIRA).
If not, can you report it on issues.cordova.io?

I don’t think it is a known issue, so yes I will report it.

On 16 Feb 2017, at 13:50, jcesarmobile<EMAIL_ADDRESS>wrote:
@tonyxrmdavidson https://github.com/tonyxrmdavidson is the file-transfer plugin a known issue? (reported on Cordova JIRA).
If not, can you report it on issues.cordova.io?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin/issues/24#issuecomment-280334996, or mute the thread https://github.com/notifications/unsubscribe-auth/AKH5q2HCk7KPsFPDlyFWVJHg6-p2A_xaks5rdFQ6gaJpZM4L9s5_.

Issue reported.
https://issues.apache.org/jira/browse/CB-12463

thanks!

JIRA closed this issue and told me to report it here.  They say they wont look at it as it is a 3rd party app.
I have commented that the issues is not with filepicker, but with cordova-plugin-file-transfer.
I have not re-opened it, but I would be happy to try and replicate it in a simple app as opposed to using my clients app, which I am not free to share .  Perhaps you have an example app already prepared demonstrating filepicker that I could adapt to try and replicate the error?

Hi Tony,
I'm facing similar issue and I am new to cordova.
if it is possible than request your to please share your work around.
Regards-
Deejo


nest_sdfg_subgraphs fails on interstate symbols

The helper function nest_sdfg_subgraphs from dace.transformation.helpers assumes symbols in interstate edges' assigments dictionary are present in symbols (but they not necessariliy are). E.g. this snippet reproduces the error.
import dace
from dace.transformation.helpers import nest_sdfg_subgraph

sdfg = dace.SDFG('testsdfg')
sdfg.add_loop(
        sdfg.add_state('before_state'),
        sdfg.add_state('loop_state'),
        sdfg.add_state('after_state'),
        loop_var='k',
        initialize_expr='0',
        condition_expr='1<2', # <- avoid having k on the value side of the assignments dict
        increment_expr='1',# <- avoid having k on the value side of the assignments dict
)
sdfg.validate()

subgraph = dace.sdfg.graph.SubgraphView(sdfg, sdfg.states())
nest_sdfg_subgraph(sdfg, subgraph=subgraph)

The main question is whether k should be in symbols in the first place, which is very unclear in SDFG semantics. For example, the Python frontend will add the for-loop iteration variable to symbols, but I don't know what other frontends do. It is also unclear what should happen in this case. Should the method ignore the symbol completely or assume a default type? Perhaps we should start with why k is not added to the SDFG. Is there any constraint here?


EPOLL - decouple schedule tasks from epoll_wait life cycle

Motivation:
EPOLL supports decoupling the timed wakeup mechanism from the selector call. The EPOLL transport takes advantage of this in order to offer more fine grained timer resolution. However we are current calling timerfd_settime on each call to epoll_wait and this is expensive. We don't have to re-arm the timer on every call to epoll_wait and instead only have to arm the timer when a task is scheduled with an earlier expiration than any other existing scheduled task.
Modifications:

Before scheduled tasks are added to the task queue, we determine if the new
duration is the soonest to expire, and if so update with timerfd_settime. We
also drain all the tasks at the end of the event loop to make sure we service
any expired tasks and get an accurate next time delay.
EpollEventLoop maintains a volatile variable which represents the next deadline to expire. This variable is modified inside the event loop thread (before calling epoll_wait) and out side the event loop thread (immediately to ensure proper wakeup time).
Execute the task queue before the schedule task priority queue. This means we
may delay the processing of scheduled tasks but it ensures we transfer all
pending tasks from the task queue to the scheduled priority queue to run the
soonest to expire scheduled task first.
Deprecate IORatio on EpollEventLoop, and drain the executor and scheduled queue on each event loop wakeup. Coupling the amount of time we are allowed to drain the executor queue to a proportion of time we process inbound IO may lead to unbounded queue sizes and unpredictable latency.

Result:
Fixes #7829

In most cases this results in less calls to timerfd_settime
Less event loop wakeups just to check for scheduled tasks executed outside the event loop
More predictable executor queue and scheduled task queue draining
More accurate and responsive scheduled task execution

more testing / analysis is required, but figured I would push this upstream to see if everyone is on board.
@carl-mastrangelo - would you mind running the same benchmarks you ran for PR https://github.com/netty/netty/pull/7816?

@Scottmitch Thanks for this... in general this looks ok. That said I would be interested to see how it compares to  #7816 and if it worth it compared to the "easier" solution that was used in  #7816

@carl-mastrangelo - thanks for review! would you be able to run the same benchmark you did in PR #7816? I'm also planning on doing some analysis, but the more data points the better.

Sorry I didn't have a chance to review your PR yet, @Scottmitch. Will find some time soon.

How can we get this artifact jar or artificatId for a maven dependency?

@M-AJ I can build one for you if you are interested otherwise you would just apply the patch and build it yourself.

@normanmaurer If you can build one, that'd be great! Really appreciate it! I've tried building it locally but the process takes a while for me.

I just rebased to make getting recent fixes easier ... sorry super busy at the moment ... this is still on the backlog and hopefully will get to this soon. However it would be much appreciated if others could also try this out though 🤒

@M-AJ you want a netty-all jar or just the epoll jar ?

Sorry it took me some time :(
Try this one:
https://drive.google.com/open?id=1S4Ro2xJu0Mf2NepbaFR4zM75wKXdMhDx

@M-AJ ^^

Thanks man, I'm going to be running some benchmarks. Will report how well it goes.

@M-AJ any update ?

@normanmaurer Our server was running version 4.0.36.Final; therefore, I had to update our pipeline handlers, attribute keys and bytebuf wrappers to this new version. Unfortunately, after successful compilation, the server did not receive any packets after the upgrade. I'm planning on fixing the issue and bench marking early June when I finish these last few weeks of school.

@Scottmitch also can you please update the description as it still contains the details for your "old approach"

@normanmaurer - I updated the commit message. let me know if it makes more sense now.

@netty-bot test this please

This is sitting here for a long time now... Let me merge this.

Want to do a PR to show the ideas ?

Am 15.08.2019 um 22:48 schrieb Nick Hill<EMAIL_ADDRESS>@njhill commented on this pull request.
@Scottmitch @normanmaurer apologies for the belated review of this. I think the general change is great, as well as much of the impl.
I made a few comments inline but in general have some reservations regarding the new abstractions exposed by the superclasses to allow EventLoop impls to integrate with the common timed-task scheduling logic.
I'll put more detail as a comment directly in the PR but my immediate concern is that once these APIs ship we can't easily change them, and I think they could be simpler.
In transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoop.java:

             // Just ignore as we use ET mode for the eventfd and timerfd.

             //
             // See also https://stackoverflow.com/a/12492308/1074097

       } else if (fd == timerFd.intValue()) {

           // consume wakeup event, necessary because the timer is added with ET mode.

           Native.timerFdRead(fd);

May be my misunderstanding, but wouldn't ET imply this read isn't needed?
In common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java:

@@ -397,6 +455,55 @@ protected final boolean runAllTasksFrom(Queue taskQueue) {
}
}

/**

* What ever tasks are present in {@code taskQueue} when this method is invoked will be {@link Runnable#run()}.

* @param taskQueue the task queue to drain.

* @return {@code true} if at least {@link Runnable#run()} was called.

*/

private boolean runExistingTasksFrom(Queue taskQueue) {

   return taskQueue.offer(BOOKEND_TASK) ? runExistingTasksUntilBookend(taskQueue)

I was thinking the same as @carl-mastrangelo's earlier comment here - that the bookend could be easily avoided by just polling size() times. It would be cheaper and simpler, e.g. there's no need to deal specially with the bounded/full case. The JCTools impls won't involve any iteration when called from the consumer.
In transport-native-epoll/src/main/c/netty_epoll_native.c:

@@ -186,6 +186,31 @@ static jint netty_epoll_native_epollCreate(JNIEnv* env, jclass clazz) {
return efd;
}

+static void netty_epoll_native_timerFdSetTime(JNIEnv* env, jclass clazz, jint timerFd, jint tvSec, jint tvNsec) {
Did you ever consider changing to use TFD_TIMER_ABSTIME? We could just measure/store the offset of System.nanoTime() from the system clock during initialization and then use deadlines rather than delays across the board to further avoid continual absolute/relative conversion.
In transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoop.java:

}

private void trySetTimerFd(long candidateNextDeadline) throws IOException {

   for (;;) {

       long nextDeadline = nextDeadlineNanos.get();

       if (nextDeadline - candidateNextDeadline <= 0) {

           break;

       }

       if (nextDeadlineNanos.compareAndSet(nextDeadline, candidateNextDeadline)) {

           setTimerFd(deadlineToDelayNanos(candidateNextDeadline));

           // We are setting the timerFd outside of the EventLoop so it is possible that we raced with another call

           // to set the timer and temporarily increased the value, in which case we should set it back to the

           // lower value.

           nextDeadline = nextDeadlineNanos.get();

           if (nextDeadline - candidateNextDeadline < 0) {

               setTimerFd(deadlineToDelayNanos(nextDeadline));

I'm not sure that this fully addresses the race condition. I think access to setTimerFd probably needs to be synchronized.
In transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollTest.java:

@Test(timeout = 5000)

public void testEpollWaitWithTimeOutMinusOne() throws Exception  {

   final EpollEventArray eventArray = new EpollEventArray(8);

   try {

       final FileDescriptor epoll = Native.newEpollCreate();

       final FileDescriptor timerFd = Native.newTimerFd();

       final FileDescriptor eventfd = Native.newEventFd();

       Native.epollCtlAdd(epoll.intValue(), timerFd.intValue(), Native.EPOLLIN);

       Native.epollCtlAdd(epoll.intValue(), eventfd.intValue(), Native.EPOLLIN);

       final AtomicReference<Throwable> ref = new AtomicReference<Throwable>();

       Thread t = new Thread(new Runnable() {

           @Override

           public void run() {

               try {

                   assertEquals(1, Native.epollWait(epoll, eventArray, timerFd, -1, -1));

Instead of removing this test why not just adjust it to use the new equivalent Native.epollWaitNoTimeout method?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@normanmaurer sure, stand by :)

@normanmaurer see #9470


Is it possible to set cache-store duration="" parameter to "never expire" equivalent value?

[Enter feedback here]

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

ID: 5e5bd93e-e2cb-1dfb-77c9-10d8f7932bda
Version Independent ID: 7eb8bc62-0f4e-ee56-24bb-cb4876ea9b7b
Content: Sample API management policy - Set response cache duration - Azure API Management
Content Source: articles/api-management/policies/set-cache-duration.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

Hello @pomorsen,
Thank you for your feedback! We will review and update as appropriate.

kindly reminder

Hello @pomorsen, apologies for the delay.
The maximum cache-store duration value can be<PHONE_NUMBER> seconds, which is roughly 68 years. But there is no guarantee that any stored value in cache will stay there for the duration mentioned above, for multiple internal reasons like service restart may wipe the cached data. I hope this helps resolve your query, please tag me in your response if there are any additional concerns. Thank you!

Hello @pomorsen, We will now proceed to close this issue out. Please tag me in your response if there are any additional concerns, I will gladly continue with our discussion. Thank you!

Thank you!


Project on sagemaker studio lab not working

Describe the bug
I've been using a project on
https://studiolab.sagemaker.aws/
for months in spare time, but since a couple of days ago when I try to start the project I've got the error:
There was a problem when loading your project. This should be resolved shortly. Please try again later.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Start project
page says
See error

Expected behavior
The project is not started as expected and has it has done for weeks
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Linux ubuntu 22.04
Browser [e.g. chrome, safari]Fireox 129.0.2 (64-bit)  and also chrome

Additional context

I can voucher that this happens occasionally for me personally, not for weeks on end but occasionally throughout the time I have the account

The solution for this fix is to delete the account and recreate it since it's already approved, the waiting time is short
https://github.com/aws/studio-lab-examples/issues/136
This one said, but it doesn't say anything about the phone number and whether or not it stays, most likely gone.

The friend above,I have also encountered the same problem. Has it been resolved now?

The friend above,I have also encountered the same problem. Has it been resolved now?

No, I haven't touched my account in ages and I just gave up, I came back and it still didn't work
I had to use the "delete account and redo it" way and it did approve fast, almost instantly and it removed my phone number so I can add it again
Sadly, you can't fix it any other way


Implement more validation checks

The types of biom attributes are checked in the setter functions. TypeErrors are thrown if there is a mismatch. As the constructor uses the setters types are also checked in the constructor. But there are other possible inconsistencies that are not yet checked:

[ ] when setting rows, columns or data the dimensions have to be concordant with shape
[ ] format_url is really an url and not only a string
[ ] date is really date time in ISO 8601 format
[ ] data has to be concordant with matrix_type
[ ] all elements of rows and columns are objects containing id and metadata
[ ] ids in rows and columns are unique

There are relationships between rows, columns, shape, data, matrix_type and matrix_element_type (and nnz). So updating one via a setter should either update the others or fail if the change is incompatible. Initialization is a special case because many values are set simultaneously so order of setting is important if there are incompatibilities.


What to edit?

Which class do I have to edit to change the color/looks of each tags?

.selectize-control.multi .selectize-input [data-value] {
   ...
}


CMake is failing to build Proton due to filesystem operations copying C sources around

Error copying directory from "/home/runner/work/skupper-router/skupper-router/qpid-proton/c/include" to "include".

https://github.com/skupperproject/skupper-router/actions/runs/4075507316/jobs/7021992696#step:17:129
Parallel build is likely to blame, https://issues.apache.org/jira/browse/PROTON-2679

There was commit that was supposed to fix something similar, https://github.com/apache/qpid-proton/commit/833bf2ffa8796a313e5c43c4276229eddeb0affd. Either it did not work, or this is in different place.

Is this a Proton build issue? If so shouldn't this be in the Proton jira or github?

I've never seen an issue like this when building Proton itself.
Another thing - typically I recommend using ninja as the buildsystem a rather than gmake as I find that it's faster and more reliable.

Thanks, I'll use this issue to switch CI to ninja; I'll also switch the container image, hopefully @ajssmith / @mcressman (whoever now does the builds) will also approve.

Thanks, I'll use this issue to switch CI to ninja; I'll also switch the container image, hopefully @ajssmith / @mcressman (whoever now does the builds) will also approve.

Actually, this is not so simple. ninja-build is not part of ubi8, so it is necessary to either pick it from CentOS, or subscribe the RHEL image and enable CodeReady Builder channel. Neither of which looks particularly palletable to me. In addition, ninja rpm depends on Python 3.6, so now there is multiple versions of Python in the build image, opening opportunities for confusion in the future.
Example of going the CentOS route is https://serverfault.com/a/1121861/116739 and this is what the Containerfile used to do before all necessary deps were added to ubi8. We could try requesting ninja-build in ubi8, as it was done with the other packages, see bugzillas linked in comments on https://issues.redhat.com/browse/SKUPPER-6.

I've never seen an issue like this when building Proton itself.
I'm not saying that this isn't the same underlying issue I fixed in PROTON-2679 - it certainly looks like it just that ninja is more featureful and hence a bit more reliable when expressing dependencies for CMake. We should make the build work for all buildsystems ideally, but it seems that CMake is pretty finicky when expressing dependencies between custom_targets and everything else.

Actually when I made the change for PROTON-2679 I wasn't sure it would fix the issue - looks like it didn't completely - I hate the unintuitive (to me at least) way that dependencies work with custom targets and custom commands

I found another issue with the python build dependencies and fixed it - hopefully this should make this problem go away.


Add multi-stage Dockerfile for production builds

Modified the Dockerfile and added a build stage. Update the final image to use alpine:3.10.
I am a little bit unsure about this line and what is does:
RUN go get github.com/RubenHoms/maxscale_exporter
I am not really a go expert. Is this needed as you already inject the source by the COPY step? What does it exactly add? I see the build fails without it.

I'm no expert in Go myself but how I understand it is that it first go get's and go install's the packages included in the source, then this package itself. (go get github.com/RubenHoms/maxscale_exporter). Anyway I was able to successfully build an image with this so I'm merging this and setting up an auto build on docker hub for commits to master.

Ok, great. Please also create and setup a tag and setup an auto build of the tag.

Set it up, and tagging the release as latest on every commit on master. :ok_hand:


Fix #1065 - light level stuck at max

fix light level report, which was stuck at max due to the inappropriate assignment operator.
:recycle: Current situation
See #1065 - ambient light level reported to HomeKit is stuck at 6000 lux despite light level report being accurate. Debugging revealed an accidental assignment operator ("=") where a comparison ("===") was required.
:bulb: Proposed solution
This PR contains a one-line patch to fix the above.
:gear: Release Notes
No change required.
Testing
Not aware of any relevant tests
Reviewer Nudging
Observe the ambient light level of a connected hub 2 in home bridge UI before and after the patch.

merged into beta. New beta release has it as part of it.


Add commands to interact with reports

The bot should have commands to interact with reports

[ ] View a report by ID
[ ] View all reports by playername
[ ] Create a report

Creating a report should present options to select from categories with autocompletion, so users don't need to remember their filters by numeric index or ID.

Implemented in f0ca8fa7b2510c410efecd45e3694d7590ca9ee6, 45f9d1834f36193dd7af5db2c5d487d4c54a8ea5


ML Kit for Android fails to load valid TFLite model

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

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: BLU Vivo XI
TensorFlow installed from (source or binary): Source
TensorFlow version: ('v1.13.1-0-g6612da8951', '1.13.1')
Python version: 2.7
Bazel version (if compiling from source): 0.24.0
GCC/Compiler version (if compiling from source): 7.3.0
CUDA/cuDNN version: N/A
GPU model and memory: NVIDIA GeForce GTX 1050, ~5 GB

Describe the current behavior
I am currently attempting to use Firebase ML Kit to run a Tensorflow-Lite model that was converted to the .tflite format from Keras. I have been following this tutorial to host a custom model locally.
Every attempt thus far has ended with the same error: "ByteBuffer is not a valid flatbuffer model" (full stack trace shown below).
The .tflite model has been created correctly; running the Interpreter (from the Python Tensorflow module) to allocate tensors and get the input and output details returned the proper information without error.
Furthermore, the iOS version of the app (using the same model, stored locally and loaded with Firebase ML Kit) is working properly. It used a custom build of Tensorflow (following this tutorial) that started by forking  Tensorflow 12.0.0 and then cherry-picked future commits to include the additional ops required. I did not write any custom ops myself; all of the required ops had already been added to Tensorflow at one time or another.
First, I attempted to use the same build by following this tutorial with Bazel version 0.18.0, which failed. I also attempted this tutorial to import TFLite as a module rather than publish it to my local maven repository. This had the same result.
Then, under the assumption that the latest release of Tensorflow would have all the necessary ops anyway, I built Tensorflow 1.13.1 using Bazel version 0.24.0. This failed with the same error.
Here are my questions, as succinctly as possible:

Is ML Kit currently unequipped to handle the most recent versions of Tensorflow-Lite? (If so, why would the iOS version still work?)
Is Tensorflow-Lite for Android currently not working for Tensorflow 1.13.1? I'm no expert in machine learning, so this may be nonsensical, but are there operations/features created for Tensorflow that Tensorflow-Lite is unable to handle? (And again, if this was the case, why would the iOS version still work?)
Are the tutorials for ML Kit missing any essential information?
Has anyone else been able to get a custom model converted to .tflite and have it work with ML Kit?

Other info / logs
E/ModelResourceManager: Error preloading model resource
com.google.firebase.ml.common.FirebaseMLException: Local model load failed:
at com.google.android.gms.internal.firebase_ml.zzpe.zza(Unknown Source:129)
at com.google.android.gms.internal.firebase_ml.zzpe.zzlp(Unknown Source:104)
at com.google.android.gms.internal.firebase_ml.zznx.zzf(Unknown Source:56)
at com.google.android.gms.internal.firebase_ml.zznz.zzls(Unknown Source:7)
at com.google.android.gms.internal.firebase_ml.zznz.call(Unknown Source:24)
at com.google.android.gms.internal.firebase_ml.zznn.zza(Unknown Source:29)
at com.google.android.gms.internal.firebase_ml.zzno.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.google.android.gms.internal.firebase_ml.zzi.dispatchMessage(Unknown Source:6)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model
at org.tensorflow.lite.NativeInterpreterWrapper.createModelWithBuffer(Native Method)
at org.tensorflow.lite.NativeInterpreterWrapper.(NativeInterpreterWrapper.java:69)
at org.tensorflow.lite.Interpreter.(Interpreter.java:175)
at org.tensorflow.lite.Interpreter.(Interpreter.java:163)
at com.google.android.gms.internal.firebase_ml.zzpe.zzc(Unknown Source:224)
at com.google.android.gms.internal.firebase_ml.zzpf.zzd(Unknown Source:0)
at com.google.android.gms.internal.firebase_ml.zzpe.zzb(Unknown Source:150)
at com.google.android.gms.internal.firebase_ml.zzpe.zza(Unknown Source:118)
at com.google.android.gms.internal.firebase_ml.zzpe.zzlp(Unknown Source:104)
at com.google.android.gms.internal.firebase_ml.zznx.zzf(Unknown Source:56)
at com.google.android.gms.internal.firebase_ml.zznz.zzls(Unknown Source:7)
at com.google.android.gms.internal.firebase_ml.zznz.call(Unknown Source:24)
at com.google.android.gms.internal.firebase_ml.zznn.zza(Unknown Source:29)
at com.google.android.gms.internal.firebase_ml.zzno.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.google.android.gms.internal.firebase_ml.zzi.dispatchMessage(Unknown Source:6)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)

Issue was fixed using these gradle dependencies together:
implementation 'com.google.firebase:firebase-ml-model-interpreter:18.0.0'
implementation 'org.tensorflow:tensorflow-lite:1.13.1@aar'


WIP: Fix creating new org teams

regression from #18518
TODO

[ ] didn't check yet for uses of other changed function signatures in the templates, there may be more.

replaced by #19288


Refresh does not reload Key Vault referenced secrets

I was trying Key Vault reference feature and it looks like refresh doesn't work with referenced secrets.

If the secret is changed in Key Vault, the App Config would not know. This is the scenario a sentinel key would be useful to signal the application to reload configuration including secrets from the Key Vault.


jni: set JVM config options from a JSON string

let’s discuss this PR when I come back next week? I assume this is not blocking or urgent?
sent from my Mac

On Aug 22, 2017, at 5:57 PM, alex-koren<EMAIL_ADDRESS>wrote:
You can view, comment on, or merge this pull request online at:
https://github.com/jpmorganchase/swblocks-baselib/pull/43 https://github.com/jpmorganchase/swblocks-baselib/pull/43
Commit Summary
jni: set JVM config options from a JSON string
File Changes
M src/include/baselib/jni/JavaVirtualMachineConfig.h https://github.com/jpmorganchase/swblocks-baselib/pull/43/files#diff-0 (77)
M src/utests/utf_baselib_jni/TestJni.h https://github.com/jpmorganchase/swblocks-baselib/pull/43/files#diff-1 (53)
M src/utests/utf_baselib_jni/notes.txt https://github.com/jpmorganchase/swblocks-baselib/pull/43/files#diff-2 (1)
Patch Links:
https://github.com/jpmorganchase/swblocks-baselib/pull/43.patch https://github.com/jpmorganchase/swblocks-baselib/pull/43.patch
https://github.com/jpmorganchase/swblocks-baselib/pull/43.diff https://github.com/jpmorganchase/swblocks-baselib/pull/43.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/jpmorganchase/swblocks-baselib/pull/43, or mute the thread https://github.com/notifications/unsubscribe-auth/AYEbW60TDAt7femlQujcX5i-n84bCzJvks5sa063gaJpZM4O_POa.


Subaccount module part4

Description

Type of change
Please check the options that are relevant. This PR introduces

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

Features Description

[ ] NA

Test Cases

[ ] NA

Documentation

Checklist:

[ ] I have added change type (major|minor|patch) in the PR
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

@faultytolly please resolve conflicts


[feature] Markdown format for Posts

Support using Markdown format when creating a Post.

Add per User setting for "Default post format"
Add "Post format" drop down when drafting/editing a post
Add content_raw and content_format fields to Post that only apply to local == True

Questions:

@andrewgodwin is this a feature you want to support?
Is it worth breaking consistency to save space and only store html formatted posts in Post.content and leave Post.content_raw = None?

So the thing here is - what format would you apply? Mastodon only accepts links, newlines, and paragraphs - no bold, italic, custom styling, etc. Adding any other formatting would get stripped away by the large majority of clients, and I don't really want to have a separate local format that works only locally as it might mislead people into thinking their formatting works everywhere.

I didn't realize it sanitized the html as aggressively as it does [1]. Without those, the only remaining formatting that I'd use regularly is [text](link), but that's easy enough to type out as html.
Closing issue.
[1] ActivityPub HTML Sanitization


Missing Snowflake commands from the Query Analyser

Description
The query analyzer stops working when met an unexpected command. The Snowflake has a special command for values not equal, but can be null: "IS DISTINCT FROM". The query analyzer do not recognize this and will not analyze the rest of the code.

There might be other snowflake commands, I didn't collect them yet.
DBeaver Version
Community Edition <IP_ADDRESS>402181738
Operating System
Windows 10
Database and driver
Snowflake DB
Steps to reproduce
No response
Additional context
No response

Thank you for bug report


Update to docs to deprecate package and allow build in Ska3

This does not impact installed code at all apart.  Merging without independent review.

Is this enough to drive a cmd_states release or just ride along until there is another reason to cut one?

Just ride along.  It won't change the installed package or tarball at all.


Application authentication using Spring Cloud Vault

What did you expect to happen?
I wanted to use my spring based app to access the vault secret using spring cloud vault. I have setup approle based on https://www.vaultproject.io/docs/auth/approle.html and and my spring brootstrap.yaml has following. I was expecting authenticate.
spring.cloud.vault:
      uri: https://<IP>:8200
      authentication: APPROLE
      app-role:
        role-id: 5ff1c241-.....
        secret-id: de6580de-....
        role: app-role
        app-role-path: approle

What actually happened?
I/O error on POST request for "https://:8200/v1/auth/approle/login": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target;
Additional context
Do I need to pass TLS cert path to "tls/ca.pem" somewhere in spring config (bootstrap.yml), I do not see any option to pass cert ? Isn't that double auth 1. approle and 2. SSL ?

do I need to use http://cloud.spring.io/spring-cloud-vault/single/spring-cloud-vault.html#vault.config.ssl ?
spring.cloud.vault:     ssl:         trust-store: ca.pem
Am I in right path ?

Hi @uasaigoli
You'll need to ask this question on the spring-cloud-vault repository. I'm not familiar with that tool. The error does seem to indicate that you don't have the CA included.


[ZEPPELIN-4393] Support for '--' comment in Cassandra interpreter

What is this PR for?
Cassandra Query Language (CQL) supports 2 types of end-of-line comments - // and --, but Cassandra interpreter supports only first one, resulting in error when using -- comment in the query.
What type of PR is it?
Bug
What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-4393

How should this be tested?

2 unit tests were added - for both comments types
Tested manually
Travis build: https://travis-ci.org/alexott/zeppelin/builds/603532433

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? Documentation was updated

Thanks @alexott  LGTM


how to call static methods

Hi, how can I call static methods on constructs?
For example, say I want to import a Lambda Layer using its ARN rather than creating one from scratch, in CDK I would do this:
const powertoolsLayer = lambda.LayerVersion.fromLayerVersionArn(
      this,
      'PowertoolsLayer',
      `arn:aws:lambda:${cdk.Stack.of(this).region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:23`
    );

How can I do this in the tool?

Hi,
You cannot create a layer by using fromLayerVersionArn directly. However, if you select a Lambda function, then navigate to the 'layers' property, you have the option to utilize the fromLayerVersionArn function from there.
By the way. We are considering adding Lambda code editor that utilizes Powertools by default


New authentication method: OIDC (OpenID connect)

The purpose of this issue is to add a new authentication method to secure access to the Permify instance. This authentication method will integrate with existing IDP solutions to validate JSON Web Tokens (JWTs) using JSON Web Keys (JWKs). By doing so, only trusted tokens from the IDP will be accepted for authentication, making the Permify instance more secure.
Must to have

AuthClaims should contain claims that are included in the OpenID Connect (OIDC) standard claims.

The implementation of this authentication method should be located in a specific folder, such as internal/authn/oidc.

The OIDC authentication method should be able to use JWKs provided by the IDP to validate JWTs.

The settings related to integrating with the IDP and validating JWTs using JWKs should be adjustable via configuration flags or files.

Predicted config fields:

name
type
default

authn-oidc-audience
string
empty string

authn-oidc-issuer
string
empty string

Implementation Steps

The first step is to send an HTTP request to the issuer's well-known endpoint. This is a standardized endpoint that allows applications to discover information about the OpenID Connect provider. The endpoint is located at {issuer_url}/.well-known/openid-configuration. The response from this endpoint should include the issuer and jwks_uri values, which will be used in subsequent steps.

The issuer is the unique identifier for the OpenID Connect provider. It should be a URL that uniquely identifies the provider, and should match the iss claim in any JWTs that are issued by the provider.
The jwks_uri is the location of the JSON Web Key Set (JWKS) that the provider uses to sign its JWTs.

The next step is to send an HTTP request to the jwks_uri that was obtained in step 1. This will retrieve the JWKS, which is a collection of public keys that can be used to verify the signatures on JWTs issued by the provider.

The JWKS is a JSON object that contains an array of key objects. Each key object represents a public key that can be used to verify a JWT signature. The kid property in each key object is used to identify the key that was used to sign a particular JWT.

The next step, for each incoming request (whether it's a unary or stream request), the application should use an OidcAuthenticator (or similar struct) to parse the JWT and verify its claims. The claims in the JWT will depend on the specific implementation of the OpenID Connect provider, but they might include things like the subject (i.e. the user ID), the audience (i.e. the intended recipient of the JWT), and various other metadata.

If the JWT is invalid (i.e. if it has an invalid signature, is expired, or has other invalid claims), the OidcAuthenticator should return an error. Otherwise, the application can proceed with handling the request.

Finally, the new method must be registered as middleware (unary and stream) in the 'internal/servers/server.go' file.

The codebase of where the new option will be added:

Note
To use or test this OIDC authentication method, you will need to obtain two pieces of information from your OpenID Connect provider:

The OIDC issuer URL: This is the URL of the provider that is responsible for authenticating users. You will use this URL to discover information about the provider in step 1 of the authentication process.
The audience: This is the client ID of the application you're developing. It is a unique identifier that is assigned to your application by the OpenID Connect provider, and it should be included in the JWTs that are issued by the provider.

Can you assign the issue to me?

Done! Happy Hacking @mtyazici 🚀


Fixed #1627 Continue classpath scan on AccessControlException

Some environments (like the Google App Engine Jetty Dev Server) pull
in JAR's from the host system that are not allowed to be scanned at
runtime.  This causes an AccessControlException to be thrown by
java.security, which aborts the classpath scan completely and causes
Flyway to fail.  These JAR's will never have DB migrations in them,
so the failure is unnecessary.  Let's catch this exception and just
warn the user instead.

Thanks for the pull request. I ended up fixing this slightly differently.


OpenTest custom test actors

I'm really impressed with OpenTest project. Found it highly intriguing how many ideas this project is sharing with some of my own. Like your epic architecture with actors pulling tasks.. and many others :)
Did you think about including other automation technologies to base Actors on? I could see two main groups:
1 Established test automation tooling like TestCafe (support for non-selenium gui testing could leverage the whole solution a lot)
2 Custom tooling needed for specific tasks. Would be great to have an actor with some domain-specific capabilities. Now as I can see this could be achieved by introducing another layer of execution worker called by an actor using rest api. What I mean is the possibility of using/including them as new 'actor types' with custom keywords related.
(asked this also here https://stackoverflow.com/questions/52576008/opentest-actors-technology)

Hey @galegor, thank you for your nice words. We spent a lot of time thinking though the architecture and implementation of OpenTest and it's very rewarding to see that people understand and appreciate the design.
Implementing new keywords (test actions) can be done without creating custom/dedicated test actors, by creating a new Java class that inherits from the TestAction base class and override its run method. For a simple example, you can take a look at the implementation of the Delay test action. You can then package the new test action in a JAR and you drop it (along with any dependencies) in a user-jars subdirectory in your test actor's working directory. The test actor will dynamically load all the JARs it finds in there and will find the new test action class (using reflection) so you can make use of it in your tests. Some useful info and things to look out for:

Your Java project is going to have to define a dependency on the opentest-base project (which is where the TestAction base class is implemented).
When you copy the JAR to where your test actor is, make sure to copy any dependency JARs along with it. Please note that a lot of the dependencies that you might need are already included with the core test actor binaries (you can have a look at the POM.xml to see what they are).
If you have any dependencies that conflict with the other JARs that included with the core test actor binaries, you can apply a technique called shading to "hide" the conflicting classes under a different package name. Most of the times you're not going to need this, but if you do and you get stuck let me know and I'll give you some pointers.

Let me know if you need more information.

Hi Adrian
Thanks for your response.
Do you have a sample user-jar I could use as an example here?

I created a simple Java project that shows how to build an OpenTest extension to add new keywords: https://github.com/adrianth/opentest-extension-sample. The repo's readme file gives you detailed information on the steps, but let me know if I missed anything.

@galegor There is now a video tutorial available that shows the whole process for creating custom keywords on the project's website: https://getopentest.org/tutorials/custom-keywords.html

I'll check this out, however opentest-extension-sample worked for me and I created few extensions based on this repo's readme and the project itself.
Thanks!


⚠ Bofrost.be has degraded performance

In d333099, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1211 ms

Resolved: Bofrost.be performance has improved in 0e5aeb3.


Add hints and feedback for optional layers tree usage

An attempt to make usage of the optional layers tree more clear, see #211, while keeping the behavior for now:

help message on top (using button tooltip): "Add or remove optional layers"
icon tooltips as hints and feedback for add/remove and preview actions
"Preview" label on the map
lower opacity and default cursor for disabled root node checkboxes

@Phyks what do you think?

Looks really nice! Can you only show the "+ / -" icon tooltips when hovering the checkbox?

I could, this is where I started, but apparently not the preview tooltip when only hovering the text part, as the text is not wrapped in an element:

  OpenStreetMap

CSS select for the checkbox in the browser console:
document.querySelector('.jstree-default .jstree-checked .jstree-checkbox')

But text only seems not to be selectable in CSS (?):
Is there a CSS selector for text nodes? - Stack Overflow
And I don't want to get into overriding the text rendering in JSTree right now:
Wrap text of  (jstree-anchor) into  · Issue #1930 · vakata/jstree
So I thought it would make sense and be more consistent to have them both behave the same way? And I guess always showing both is also a better immediate hint at the two different actions for an entry?

But text only seems not to be selectable in CSS (?):

You probably cannot do it from within the querySelector call (no CSS selector for text nodes), but you might be able to post-filter it. See https://stackoverflow.com/a/10730777 for instance (if using JS here is fine).

And I don't want to get into overriding the text rendering in JSTree right now:

:+1:

So I thought it would make sense and be more consistent to have them both behave the same way? And I guess always showing both is also a better immediate hint at the two different actions for an entry?

In case there is an easy way to do it, I think this would be a nice improvement. But definitely :+1: for me for not spending too much time hacking around JSTree so current behavior is fine as well.

Hovering is now separate for checkbox and text.
As the text property accepts HTML (and I actually already use this for the language/country code prefix), wrapping it in an element was actually quite simple, no need for a plugin.


Sim10k dataset

The link for the sim10k dataset seems to be unavailable. Do you have a copy or any other URL? Thanks.

Hi @RuiPSilva , you could download sim10k at here.


High Priority one! BitfinexOrderStatusResponse cannot handle the ID returned by the exchange.

This is quite a big issue. Since march 24, order ID generated by Bitfinex is > Integer.MAX_VALUE. This means, orders are executed on the exchange but we cannot process the response due to json parsing exception. This puts the user at risk in many ways like hedging and trade reconciliation as the user doesn't even know that he just executed an order. Please note that this can happen to all the Exchange Packages that uses INTEGER for ID instead of LONG or whichever is appropriate.

forgot to mention that this impacts also order cancellation and retrieval of order status etc.... anything that references to the order id.

already fixed in develop. please pull latest version before reporting
issues.
On 7 Apr 2017 7:35 am, "kisapmata"<EMAIL_ADDRESS>wrote:
forgot to mention that this impacts also order cancellation and retrieval
of order status etc.... anything that references to the order id.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/timmolter/XChange/issues/1430#issuecomment-292453849,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABnXOGahaVf8q3vMc7V1f2l05EkHnDCHks5rtdk7gaJpZM4M2gmB
.

i see. gotcha. I've been having problem syncing my forked version recently so I missed out this changes. But I have to say that Bitstamp (and others) is going the same path but is not critical at this moment.

closing this issue


Please add Ideal QR code as new payment method

Hi, can we add the new ideal QR code as a payment option?
I just saw it working with Multi Safe Pay: https://www.ideal.nl/ontvangen/aan-de-slag/qr-code/
and a good example can be found here: megekko.nl
this is supposed to really increase conversion, also for mobile
also see the attachments (see under bancontact)

Hi @shirtsofholl,
Our platform does not support this at this moment. I talked to our internal team and it is not an easy implementation and at the moment we do not have a good business case to implement this into our core system. When it is implemented it will be automatically shown in Magento through the Directory Lookup feature that we have implemented so there is no need for code changes in our extension. I close this issue because it is not requiring any code changes in our code of the extension. If you have any other questions regarding this you can contact us on<EMAIL_ADDRESS>Regards,
Rik
Adyen


Dependencies

Make a list of dependencies explicitly in the README.md including clang instead of just listing a line straight from the Makefile.
It's not necessary, but definitely makes the project look cleaner.

Honestly though, I was going to rewrite the build script using zig build, so the current Makefile is easier to read and translate over. I don't know if you'd want zig as a dependency though. It's not fully released yet.


TestInvalidNegativeSerialNumberTest15 failed

This is the test result
Expected: True
But was:  False
in NUnit.Framework.Assert.That(Object actual, IResolveConstraint expression, String message, Object[] args)
in NUnit.Framework.Assert.IsTrue(Boolean condition)
in Org.BouncyCastle.Tests.Nist.NistCertPathTest.DoExceptionTest(String trustAnchor, String[] certs, String[] crls, Int32 index, String mesStart, String mesEnd) in C:\Users\andrea\Documents\GitHub\bc-csharp\crypto\test\src\test\nist\NistCertPathTest.cs:riga 627
in Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidNegativeSerialNumberTest15() in C:\Users\andrea\Documents\GitHub\bc-csharp\crypto\test\src\test\nist\NistCertPathTest.cs:riga 184
the error is somewhere in the test I think, not in the library, at line 627 of NistCertCertPathtest.cs, in my italian system e.Message is
"Certificate revocation after gio apr 19 14:57:20 Z 2001, reason: keyCompromise"
but it's tested startwith against
"Certificate revocation after Thu Apr 19 14:57:20"
Andrea

Thanks for the report, I've removed the date-time part of the string comparison.


Update the image

Update the image used as base
Extract needed tool description to a yaml file
Add some tools for training
Modify the README (similarly to training one)

:100:


Turtleparser throw error with relative Iri whereas it shouldn't

Hello, i was testing rio_turtle to see if it's usable for one of my project and i get trouble when my rdf contain a relative iri. When the TurtleParser encounter a relative iri, it return an error about missing scheme whereas it shouldn't because it's a relative iri and relative iri are allowed in turtle.
Worst, Seems there is no way to skip an error and continuing to parse. I tried to do it with a iterator, an when i encounter an error, the iterator stuck on it (try my joined code with my joined ttl). i didn't find a way to get the content of faulty iri either. In a general context, these two elements doesn't permit to be error tolerant when parsing.
I think the origin of this issue is the iri datatypes, it doesn't allow relative iri. In more general, I think you should allow the existence of unchecked or invalid iri and let the user check it if it's needed, or maybe the check should be done by the parser itself ?
lv2core.ttl.txt
main.rs.txt

Hi! Thank you for your interest in the library and sorry for the bug you encounter.
I have not implemented parse error recovery yet in the Turtle/TriG parser. It's already done for the NTriples/NQuads parser.
The IRI parser was very strict and not allowing relative IRIs when the base IRI has a path without "/" (like in the invalid "file:foo"). I just pushed a change that allows to resolve such IRIs. Your file should parse without problems now.
Please close the issue if it works for you too.


MacOS Onboarding Instructions

Establish the MacOS onboarding instructions, including software, utilities, and links to them.

Hey @bellanov
check #24 it should resolve this.

Will do!


Release 0.3.5

Changes

add a dbtcloud_partial_notification resource to allow different resources to add/remove job notifications for the same Slack channel/email/user

Fixes

#257 - Force new resource when the project_id changes for a dbtcloud_job.
Creating connection for adapters (e.g. Databricks and Fabric) was failing when using Service Tokens following changes in the dbt Cloud APIs

Behind the scenes

change the User Agent to report what provider version is being used

Documentation

add import block example for the resources in addition to the import command

CI passed! 🚀


improve scala compile support #1470

What this PR does / why we need it?
improve scala compile support #1470
Summary of your change
add function put in JSONObject
Please indicate you've done the following:

[ ] Made sure tests are passing and test coverage is added if needed.
[ ] Made sure commit message follow the rule of Conventional Commits specification.
[ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

你在执行下mvn test修复下单测的问题
#507
#518
fastjson2需要支持非string的key的put是吧，如果是的话，那还不能我这些的取改。

你在执行下mvn test修复下单测的问题
#507
#518
fastjson2需要支持非string的key的put是吧，如果是的话，那还不能我这样改。

是的，要支持non-string key

你在执行下mvn test修复下单测的问题
#507
#518
fastjson2需要支持非string的key的put是吧，如果是的话，那还不能我这样改。

是的，要支持non-string key

那non-string key，是一个jsonobject实例里都是一个类型的key，还是可以多个类型的key,，比如"a"，1，2.0l 这样的key


False Negative, unsure, Geronimo-jms

DependencyCheck returns this as one entry:
geronimo-jms_1.1_spec-1.0.jar	cpe:/a:apache:geronimo:1.0	org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.0	High	3	HIGHEST	9
Downloading the 1.x series of Apache Geronimo I was not sure if the CPE was for this as this is the only jar used?

Do you mean False Positive? This is one of the tough questions with the use of dependency-check; if there are larger bundles of components under a single main identifier. My suggestion is go read the CVE description, go look for the CVE reference in the bugtrack, and if you still can't determine what in Geronimo was actually vulnerable - post a question to the libraries mailing list.
This is the current intended functionality of dependency-check. If a geronimo library is being used any geronimo related CVEs will be listed.


modules/audio/sof: Merge INT_MIN patch from upstream

This PR includes an upstream patch avoiding a conflicting use of INT_MAX
Signed-off-by: Keith Packard<EMAIL_ADDRESS>

Fixed upstream and west manifest was updated on main.


Disaster dashboard - Add more disaster charts

A first pass at adding more charts. Definitely shows data sparsity issues, many more aggregations are needed.
Add the route to local configs so we can use autopush mixer while we are iterating.
Also uses the LOCAL flag to hot-reload the configs so it's faster to iterate.
For now, adds a default fallback to Earth for all places so we can see what the data looks like quickly.
screenshot for country/USA

thanks! will merge this and happy to address comments in follow on pr's


feature: add ability for plugins to make parts of their config collapsible

How about an addition to SERVERPLUGINS.md about how to use this?


Multiple Double Answer Format

Creation of a new Answer Format called Multiple Double Answer Format. This answer format shows in display more than 1 text field for insert double values.

The answer format was based on other two answer formats, multiple choice answer format and double answer format, mixing the logic of this two to make this new answer format. The result of this answer is a object called MultiDouble that store a list of texts and values.

I am waiting for this.. Tks

me too


add spec and Data type for EMV

What:

describe spec for ICC field containing EMV chip data
provide structure to marshal/unmarshal EMV chip data

This creates an error if the fields are not defined. Wouldn't it be better to parse them into Tag => Value pairs if it is unknown?


eye-tracking in openbrush

needed to adapt vrsdk.cs to start tobii manually in 'onstart'. Would prefer a better solution in future


what is the DEEPTHOUGHT_DATA_PATH？

Hi, when I ran the code, it showed ValueError: Unrecognized environment variable "DEEPTHOUGHT_DATA_PATH". Did you mean PATH?
which means I should set the DEEPTHOUGHT_DATA_PATH by myself? Like DEEPTHOUGHT_DATA_PATH: C:\Users\asus\Downloads\deepthought-master\deepthought-master\deepthought ?
Thanks~

Hi,
the DEEPTHOUGHT_DATA_PATH environment variable is analogous to the
PYLEARN2_DATA_PATH variable as explained here:
http://deeplearning.net/software/pylearn2/#data-path
It is used as the root path to access your datasets. Set this variable
to point to wherever you store them, e.g. "C:\Users\asus\datasets".
Cheers,
Sebastian
On 05/10/16 11:05, 哈哈 wrote:

Hi, when I ran the code, it showed ValueError: Unrecognized environment variable "DEEPTHOUGHT_DATA_PATH". Did you mean PATH?
which means I should set the DEEPTHOUGHT_DATA_PATH by myself? Like DEEPTHOUGHT_DATA_PATH: C:\Users\asus\Downloads\deepthought-master\deepthought-master\deepthought ?
Thanks~


KafkaConsumerProperties and KafkaProducerProperties configuration randomness

Hello,
In the attachement you'll find anexample of a configuration file who produce some random results, I'm having three kafka.streams.bindings with different custom configuration values in order to configure my custom Kafka Serde.
I've noticed that the "input" configuration is the only one taken into account the others are simply ignored and replaced by the "input" configuration.
In my understanding we can give each binding a proper set of properties, maybe I'm wrong.
Thank you in advance for all your efforts.
kafka_binder.txt

@mehdizyane Which version of the binder are you using? Can you try it on the 3.0 version which will be GA released next week? If you are still seeing issues, can you provide a small sample application?

@sobychacko The version is 2.2.1.RELEASE.
I will try with the 3.0 and I'll get back to you with a sample application.
Thanks.

Hello,
In the attachement you'll find a sample application that reproduces the issue with 3.0.0.RC2 version.
In this example I start 2 producers and 1 consumer, the three CustomSerde initiated receives the consumer configuration, the custom producer configuration is just ignored. I've also noticed that all the producers configurations are ignored in all cases.
You'll need a broker started locally.
spring-cloud-stream-properties-issue.zip

@mehdizyane Thanks for the explanation and the example. When you use producer.configuration, the way you are using, it may not work as you expect. Each Kafka Streams processor is attached to a single StreamsBuilder by the binder and this StreamsBuilder can only be mapped to a single configuration at the individual binding level.
The binder offers to pass configuration at the binder level (spring.cloud.stream.kakfak.streams.binder.configuration) or binding level (as you have in the example) but if there are multiple bindings in a single processor, usually, the configuration provided at the first binding takes precedence, usually the first consumer binding. This is the reason, why you are seeing that the consumer configuration always takes effect.
Are you trying to provide different Serde implementations for the various producers?
It is not clear if that is what you are trying to accomplish as I don't see any Serde values
in those configurations. Nonetheless, if that is your use case, then you can set those at the producer binding without using the configuration.
For e.g.
spring.cloud.stream.kafka.streams.bindings.output1.producer.keySerde: org.apache.kafka.common.serialization.Serdes$StringSerde
spring.cloud.stream.kafka.streams.bindings.output1.producer.valueSerde: com.randomgroupid.serde.SpecialSerde1
spring.cloud.stream.kafka.streams.bindings.output12.producer.keySerde: org.apache.kafka.common.serialization.Serdes$StringSerde
spring.cloud.stream.kafka.streams.bindings.output2.producer.valueSerde: com.randomgroupid.serde.SpecialSerde2

The bottom line here is to use the binder level configuration or binding configuration for only providing common elements that will be applied to the StreamsBuilder.  For e.g. if you have a single StreamListener, use the binder configuration approach, but multiple StreamListener methods, use the first input binding to pass the configuration.
Hope this helps.

@sobychacko Thanks for your explanation.
Actually I was trying to put different meta-data to different events comming out from different producers, something like :

Branch isValid : eventName = validContract
Branch notValid : eventName = rejectedContract

I was hoping to do so without writing it and just relying on the producer configuration part, the Serde gets the configuration map and passes it to the Serialiazer who puts the metadata on my event before serialization.
Thanks again.


RefreshCPUList can throw a DivideByZeroException on Linux

Library version
<IP_ADDRESS>
OS, version, architecture (32 bit / 64 bit)
Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1025-gcp x86_64)
Describe the bug
Sometimes one or several consecutive calls RefreshCPUList(includePercentProcessorTime: true) can throw a System.DivideByZeroException on Linux machines.
To Reproduce
Unfortunately, there are no specific steps to reproduce the issue.
Expected behavior
No exception.
Additional context

Thank you for reporting this!
Can you copy paste the whole call stack where the exception occurres?
Does the exception still occur if you set includePercentProcessorTime to false?

Hi!
System.DivideByZeroException: Attempted to divide by zero.
   at Hardware.Info.Linux.HardwareInfoRetrieval.GetCpuPercentage(String cpuStatLast, String cpuStatNow)
   at Hardware.Info.Linux.HardwareInfoRetrieval.GetCpuUsage(List`1 processorList)
   at Hardware.Info.Linux.HardwareInfoRetrieval.GetCpuList(Boolean includePercentProcessorTime)

We always set the includePercentProcessorTime flag to true, as we need to monitor CPU usage.

Thank you for the call stack, that helped a lot!
Fixed in https://github.com/Jinjinov/Hardware.Info/releases/tag/v<IP_ADDRESS>
The DivideByZeroException was happening because the delay of 500 milliseconds between two CPU measurements was too small in your case, so I also added a int millisecondsDelayBetweenTwoMeasurements parameter.
I fixed the DivideByZeroException but now you might get 0 instead of DivideByZeroException.
If you get too many 0 results, try setting millisecondsDelayBetweenTwoMeasurements to 1000.
Read about it here: https://github.com/Jinjinov/Hardware.Info?tab=readme-ov-file#refresh-methods-settings


Add resources to classpath

This PR addresses issues with loading of resources into the classpath. Previously only the wildcards were used so only jar or JAR was loaded and all other resources like logging properties and other configuration yaml/json/.. files were omitted. By appending /function/app to classpath all resources in this directory will be loaded.

Or should that be function/app/resources? WDYT?

Or should that be function/app/resources? WDYT?