text:
Update screen five to add tested parent tree pct on frontend

The tested_parent_tree_pct information should be stored in the seedlot_genetic_worth table for each trait calculated for the seedlot. Also, the parent_tree_number should be saved on seedlot_parent_tree and smp_mix tables whenever data is stored on those tables.

The following script adds a new tested_parent_tree_pct column to seedlot_genetic_worth table and parent_tree_number column to seedlot_parent_tree and smp_mix tables. It recreates the tables so that the tested_parent_tree_pct and the seedlot_number can be created in a specific position at those tables. Recreation can only be done because we are not yet using the tables to store data in any environment, not even for testing purposes.
The script should be added to the flyway folder with the name V19__pt_number_pt_tested_pct.sql.
-- All tables in the script need to be recreated as there is no other way to add columns in a specific position. Once a table is being used by the application, it will only be possible to add columns at the end of the table.
-- Moving tested_parent_tree_cont_pct column from seedlot table to seedlot_genetic_worth table.
alter table spar.seedlot drop column tested_parent_tree_cont_pct;

drop table spar.seedlot_genetic_worth;

create table spar.seedlot_genetic_worth (
	seedlot_number				varchar(5) not null,
	genetic_worth_code			varchar(3) not null,
	genetic_quality_value			decimal(4, 1) not null,
	tested_parent_tree_cont_pct		decimal(6, 2),
	entry_userid				varchar(30) not null,
	entry_timestamp				timestamp not null,
	update_userid				varchar(30) not null,
	update_timestamp			timestamp not null,
	revision_count				int not null,
	constraint seedlot_genetic_worth_pk
		primary key(seedlot_number, genetic_worth_code),
	constraint seedlot_genet_worth_seedlot_fk
		foreign key(seedlot_number) references spar.seedlot(seedlot_number)
);

comment on table spar.seedlot_genetic_worth is 'A subclassification of Genetic Quality for "A" class Seedlots.';
comment on column spar.seedlot_genetic_worth.seedlot_number is 'The unique number (key) assigned to a quantity of seed of a particular species and quality from a given location collected at a given time.';
comment on column spar.seedlot_genetic_worth.genetic_worth_code is 'A code which represents a subclassification of Genetic Quality for "A" class seedlots.';
comment on column spar.seedlot_genetic_worth.genetic_quality_value is 'The rating for a subclassification of Genetic Quality for "A" class seedlots.';
comment on column spar.seedlot_genetic_worth.tested_parent_tree_cont_pct is 'Percentage of parent trees that were tested for the trait and contributed to the seedlot';
comment on column spar.seedlot_genetic_worth.entry_userid is 'The userid of the individual that entered the Seedlot Genetic Worth.';
comment on column spar.seedlot_genetic_worth.entry_timestamp is 'The time and date a Seedlot Genetic Worth was entered onto the system.';
comment on column spar.seedlot_genetic_worth.update_userid is 'The userid of the individual that changed the Seedlot Genetic Worth.';
comment on column spar.seedlot_genetic_worth.update_timestamp is 'The time and date a Seedlot Genetic Worth was last updated on the system.';
comment on column spar.seedlot_genetic_worth.revision_count is 'A counter used to ensure data integrity. This item should be incremented during each update.';

-- Adding parent_tree_number to seedlot_parent_tree table. Need to recreate the tables that references seedlot_parent_tree (seedlot_parent_tree_smp_mix and seedlot_parent_tree_gen_qlty).
drop table spar.seedlot_parent_tree_smp_mix;
drop table spar.seedlot_parent_tree_gen_qlty;
drop table spar.seedlot_parent_tree;

create table spar.seedlot_parent_tree (
	seedlot_number 			varchar(5) not null,
	parent_tree_id 			int not null,
	parent_tree_number		varchar(5) not null,
	cone_count 			decimal(20, 10) not null,
	pollen_count 			decimal(20, 10) not null,
	smp_success_pct 		int,
	non_orchard_pollen_contam_pct 	int,
        entry_userid			varchar(30) not null,
        entry_timestamp			timestamp not null,
        update_userid			varchar(30) not null,
        update_timestamp		timestamp not null,
	revision_count			int not null,
	constraint seedlot_parent_tree_pk
		primary key(seedlot_number, parent_tree_id),
	constraint seedlot_parent_tree_seedlot_fk
		foreign key(seedlot_number) references spar.seedlot(seedlot_number)
);

comment on table spar.seedlot_parent_tree is 'The contribution of Parent Trees (with their cone and pollen quantity of each Parent Tree) to an Orchard Seedlot (Genetic Class = "A")';
comment on column spar.seedlot_parent_tree.seedlot_number is 'The unique number (key) assigned to a quantity of seed of a particular species and quality from a given location collected at a given time.';
comment on column spar.seedlot_parent_tree.parent_tree_id is 'A unique identifier for each Parent Tree.';
comment on column spar.seedlot_parent_tree.parent_tree_number is 'The original registration number given to a Parent Tree in conjunction with a Species Code.';
comment on column spar.seedlot_parent_tree.cone_count is 'The number of cones counted or estimated from each Parent Tree for a Seedlot.';
comment on column spar.seedlot_parent_tree.pollen_count is 'The amount of pollen counted or estimated for each Parent Tree in the Seedlot.';
comment on column spar.seedlot_parent_tree.smp_success_pct is 'The estimated success (percent) of the supplemental mass pollination mix on the Parent Trees in the Orchard.';
comment on column spar.seedlot_parent_tree.non_orchard_pollen_contam_pct is 'Non-orchard pollen contamination (%).';
comment on column spar.seedlot_parent_tree.entry_userid is 'The userid of the individual that entered the Seedlot Parent Tree.';
comment on column spar.seedlot_parent_tree.entry_timestamp is 'The time and date a Seedlot Parent Tree was entered onto the system.';
comment on column spar.seedlot_parent_tree.update_userid is 'The userid of the individual that changed the Seedlot Parent Tree.';
comment on column spar.seedlot_parent_tree.update_timestamp is 'The time and date a Seedlot Parent Tree was last updated on the system.';
comment on column spar.seedlot_parent_tree.revision_count is 'A counter used to ensure data integrity. This item should be incremented during each update.';

create table spar.seedlot_parent_tree_gen_qlty (
	seedlot_number 			varchar(5) not null,
	parent_tree_id 			int not null,
	genetic_type_code 		varchar(2) not null,
	genetic_worth_code 		varchar(3) not null,
	genetic_quality_value		decimal(4, 1) not null,
	estimated_ind 			boolean,
	untested_ind 			boolean,
        entry_userid			varchar(30) not null,
        entry_timestamp			timestamp not null,
        update_userid			varchar(30) not null,
        update_timestamp		timestamp not null,
	revision_count 			int,
	constraint seedlot_parent_tree_gen_qlt_pk
		primary key(seedlot_number, parent_tree_id, genetic_type_code, genetic_worth_code),
	constraint sl_ptree_genqly_sl_ptree_fk
		foreign key(seedlot_number, parent_tree_id) references spar.seedlot_parent_tree(seedlot_number, parent_tree_id)
);

comment on table spar.seedlot_parent_tree_gen_qlty is 'The Genetic Worth value(s) for an Orchard Seedlot (Genetic Class = "A") calculated from the Genetic Quality (Breeding Values) of the Parent Trees contributing to the Seedlot.';
comment on column spar.seedlot_parent_tree_gen_qlty.seedlot_number is 'The unique number (key) assigned to a quantity of seed of a particular species and quality from a given location collected at a given time.';
comment on column spar.seedlot_parent_tree_gen_qlty.parent_tree_id is 'A unique identifier for each Parent Tree.';
comment on column spar.seedlot_parent_tree_gen_qlty.genetic_type_code is 'Describes the comparative measure of genetic value for a specific genetic trait of a Parent Tree.  Examples are BV (Breeding Value) and CV (Clonal Value).';
comment on column spar.seedlot_parent_tree_gen_qlty.genetic_worth_code is 'A code describing various Genetic Worths.';
comment on column spar.seedlot_parent_tree_gen_qlty.genetic_quality_value is 'The Genetic Quality value based on the test assessment for a Parent Tree from a test no. and series.';
comment on column spar.seedlot_parent_tree_gen_qlty.estimated_ind is 'Indicates whether or not the test result was estimated. A Genetic Quality value of 2.0 is estimated for Untested Parent Trees (i.e. Parent Trees without an Area of Use) or for Tested Parent Trees (i.e. Parent Trees with an Area of Use) without a Genetic.';
comment on column spar.seedlot_parent_tree_gen_qlty.untested_ind is 'Indicates whether or not the test result was estimated for an untested Parent Tree.';
comment on column spar.seedlot_parent_tree_gen_qlty.entry_userid is 'The userid of the individual that entered the Seedlot Parent Tree Genetic Quality.';
comment on column spar.seedlot_parent_tree_gen_qlty.entry_timestamp is 'The time and date a Seedlot Parent Tree Genetic Quality was entered onto the system.';
comment on column spar.seedlot_parent_tree_gen_qlty.update_userid is 'The userid of the individual that changed the Seedlot Parent Tree Genetic Quality.';
comment on column spar.seedlot_parent_tree_gen_qlty.update_timestamp is 'The time and date a Seedlot Parent Tree Genetic Quality was last updated on the system.';
comment on column spar.seedlot_parent_tree_gen_qlty.revision_count is 'A counter used to ensure data integrity. This item should be incremented during each update.';

create table spar.seedlot_parent_tree_smp_mix (
	seedlot_number			varchar(5) not null,
	parent_tree_id			int not null,
	genetic_type_code		varchar(2) not null,
	genetic_worth_code		varchar(3) not null,
	genetic_quality_value		decimal(4, 1) not null,
        entry_userid			varchar(30) not null,
        entry_timestamp			timestamp not null,
        update_userid			varchar(30) not null,
        update_timestamp		timestamp not null,
	revision_count			int not null,
	constraint seedlot_parent_tree_smp_mix_pk
		primary key(seedlot_number, parent_tree_id, genetic_type_code, genetic_worth_code),
	constraint sl_ptree_smp_mix_sl_ptree_fk
		foreign key(seedlot_number, parent_tree_id) references spar.seedlot_parent_tree(seedlot_number, parent_tree_id)
);

comment on table spar.seedlot_parent_tree_smp_mix is 'Supplemental Mass Polination for a given Seedlot, Parent Tree, Genetic Type and Genetic worth combination.';
comment on column spar.seedlot_parent_tree_smp_mix.seedlot_number is 'The unique number (key) assigned to a quantity of seed of a particular species and quality from a given location collected at a given time.';
comment on column spar.seedlot_parent_tree_smp_mix.parent_tree_id is 'A unique identifier for each Parent Tree.';
comment on column spar.seedlot_parent_tree_smp_mix.genetic_type_code is 'Describes the comparative measure of genetic value for a specific genetic trait of a Parent Tree. Examples are BV (Breeding Value) and CV (Clonal Value).';;
comment on column spar.seedlot_parent_tree_smp_mix.genetic_worth_code is 'A code describing various Genetic Worths.';;
comment on column spar.seedlot_parent_tree_smp_mix.genetic_quality_value is 'The Genetic Quality value based on the test assessment for a Parent Tree from a test no. and series.';
comment on column spar.seedlot_parent_tree_smp_mix.entry_userid is 'The userid of the individual that entered the Parent Tree SMP mix';
comment on column spar.seedlot_parent_tree_smp_mix.entry_timestamp is 'The time and date a Parent Tree SMP mix was entered onto the system.';
comment on column spar.seedlot_parent_tree_smp_mix.update_userid is 'The userid of the individual that changed the Parent Tree SMP mix.';
comment on column spar.seedlot_parent_tree_smp_mix.update_timestamp is 'The time and date a Parent Tree SMP mix was last updated on the system.';
comment on column spar.seedlot_parent_tree_smp_mix.revision_count is 'A counter used to ensure data integrity. This item should be incremented during each update.';

-- Adding parent_tree_number to seedlot_parent_tree table. Need to recreate the table that references smp_mix (smp_mix_gen_qlty).
drop table spar.smp_mix_gen_qlty;
drop table spar.smp_mix;

create table spar.smp_mix (
	seedlot_number 			varchar(5) not null,
	parent_tree_id 			int not null,
	parent_tree_number		varchar(5) not null,
	amount_of_material		int not null,
	proportion			decimal(20,10),
	entry_userid			varchar(30) not null,
	entry_timestamp			timestamp not null,
	update_userid			varchar(30) not null,
	update_timestamp		timestamp not null,
	revision_count			int not null,
	constraint smp_mix_pk
		primary key(seedlot_number, parent_tree_id),
	constraint smp_mix_seedlot_fk
		foreign key(seedlot_number) references spar.seedlot(seedlot_number)
);

comment on table spar.smp_mix is 'A table listing the individual Parent Trees that contributed to the Supplemental Mass Pollination mix of an Orchard Seedlot (Genetic Class = "A").';
comment on column spar.smp_mix.seedlot_number is 'The unique number (key) assigned to a quantity of seed of a particular species and quality from a given location collected at a given time.';
comment on column spar.smp_mix.parent_tree_id is 'A unique identifier for each Parent Tree.';
comment on column spar.smp_mix.parent_tree_number is 'The original registration number given to a Parent Tree in conjunction with a Species Code.';
comment on column spar.smp_mix.amount_of_material is 'The amount of Parent Tree material used for calculating the proportion of mix. Usually a volume recorded in mL.';
comment on column spar.smp_mix.proportion is 'The proportion of each Parent Tree material used for calculating SMP mix.';
comment on column spar.smp_mix.entry_userid is 'The userid of the individual that entered the SMP mix.';
comment on column spar.smp_mix.entry_timestamp is 'The time and date a SMP mix was entered onto the system.';
comment on column spar.smp_mix.update_userid is 'The userid of the individual that changed the SMP mix.';
comment on column spar.smp_mix.update_timestamp is 'The time and date a SMP mix was last updated on the system.';
comment on column spar.smp_mix.revision_count is 'A counter used to ensure data integrity. This item should be incremented during each update.';

create table spar.smp_mix_gen_qlty (
	seedlot_number 			varchar(5) not null,
	parent_tree_id 			int not null,
	genetic_type_code 		varchar(2) not null,
	genetic_worth_code 		varchar(3) not null,
	genetic_quality_value 		decimal(4, 1) not null,
	estimated_ind 			boolean,
        entry_userid			varchar(30) not null,
        entry_timestamp			timestamp not null,
        update_userid			varchar(30) not null,
        update_timestamp		timestamp not null,
	revision_count			int not null,
	constraint smp_mix_gen_qlty_pk
		primary key(seedlot_number, parent_tree_id, genetic_type_code, genetic_worth_code),
	constraint smp_mix_gen_qlty_smp_mix_pk
		foreign key(seedlot_number, parent_tree_id) references spar.smp_mix(seedlot_number, parent_tree_id)
);

comment on table spar.smp_mix_gen_qlty is 'The calculated Genetic Worth value(s) for the Supplemental Mass Pollination mix that contributed to an Orchard Seedlot (Genetic Class = "A") the Parent Trees contributing to a Seedlot.';
comment on column spar.smp_mix_gen_qlty.seedlot_number is 'The unique number (key) assigned to a quantity of seed of a particular species and quality from a given location collected at a given time.';
comment on column spar.smp_mix_gen_qlty.parent_tree_id is 'A unique identifier for each Parent Tree.';
comment on column spar.smp_mix_gen_qlty.genetic_type_code is 'Describes the comparative measure of genetic value for a specific genetic trait of a Parent Tree. Examples are BV (Breeding Value) and CV (Clonal Value).';
comment on column spar.smp_mix_gen_qlty.genetic_worth_code is 'A code describing various Genetic Worths.';
comment on column spar.smp_mix_gen_qlty.genetic_quality_value is 'The Genetic Quality value based on the test assessment for a Parent Tree from a test no. and series.';
comment on column spar.smp_mix_gen_qlty.entry_userid is 'The userid of the individual that entered the SMP mix Genetic Quality.';
comment on column spar.smp_mix_gen_qlty.entry_timestamp is 'The time and date a SMP mix Genetic Quality was entered onto the system.';
comment on column spar.smp_mix_gen_qlty.update_userid is 'The userid of the individual that changed the SMP mix Genetic Quality.';
comment on column spar.smp_mix_gen_qlty.update_timestamp is 'The time and date a SMP mix Genetic Quality was last updated on the system.';
comment on column spar.smp_mix_gen_qlty.revision_count is 'A counter used to ensure data integrity. This item should be incremented during each update.';

investigated in #761

authors: craigyu thiagosanchezenc

repo: bcgov/nr-spar


text:
TFRS - Two approved transfers showing incorrect category in the UI

Describe the Bug

Two transactions are assigned the correct category in the database, but are showing a different, incorrect category in the UI: two impacted transactions identified in Prod, ID #1895, #1879
Showing category B in the UI (6-12 months between agreement date & approval date) whereas the database (and downloaded spreadsheet of transactions) has the correct category A (approved within 6 months of the agreement date).

Expected Behaviour
The category in UI should align with the category in the database / downloaded spreadsheet
Actual Behaviour
The category in UI is different than the category in the database / downloaded spreadsheet.
Implications
Inaccurate information in Prod; conflict between UI & database.
Steps To Reproduce
See two impacted transactions identified in Prod, ID #1895, #1879

Hey team! Please add your planning poker estimate with Zenhub @AlexZorkin @hamed-valiollahi @jig-patel @kevin-hashimoto @prv-proton

confirmed locally that these now correctly show category A.

Confirmed to be working locally. Closing out and will confirm fix is applied to impacted transactions when released to Prod

source: gharchive/issue

authors: AlexZorkin justin-lepitzki prv-proton

repo: bcgov/tfrs

license_type: permissive

license_source: github-api


text:
Summary calculation fix

#1316
This should fix the calculation of values when loading a compliance report with user-input credits
Changelog:

Broke down populateSchedules so it's not too massive
Remove confusing parameter calculatePart3Payable
Fix proper triggers for recalculating the Payable

@plasticviking Hey rob, if this causes quite the conflict with your upcoming PR, we can delay this to later.

 Compliance Report | Summary section penalty payable updating when adjusting value in Line 26 |2|

source: gharchive/pull-request


text:
ZEVA - ICBC data processing for March datafile

Describe the task
Process the ICBC data for March so that it can be uploaded into ZEVA.
Purpose
The field from ICBC is too large to be uploaded into ZEVA without pre-processing.
Acceptance Criteria
File is processed so that it is small enough for the ZEVA system to accept.
Additional context
File is stored in Teams under the files tab in the ZEVA channel.
See Alex for questions.

Data successfully uploaded on prod.

repo: bcgov/zeva


text:
session id validation when using php7.1

Hi :)
issue bug #371
Workaround, according to the new system.
reference ;
bcit-ci/CodeIgniter@2f76087

Coverage decreased (-0.005%) to 61.435% when pulling 7e07cb9f8de6dab4c5597bf0c74b60fdf111f1c0 on byazrail:develop into e69777b7c4573c9407348168202bbd917bab9ed5 on bcit-ci:develop.

Coverage decreased (-1.03%) to 60.977% when pulling 1acaa67202af621cd7c69a0c91d95ef1872bde96 on byazrail:develop into 0634ac6ded920af689d027f5058a561062f54336 on bcit-ci:develop.

Coverage decreased (-0.09%) to 61.91% when pulling 1acaa67202af621cd7c69a0c91d95ef1872bde96 on byazrail:develop into 0634ac6ded920af689d027f5058a561062f54336 on bcit-ci:develop.

Coverage decreased (-0.09%) to 61.91% when pulling 5beecd78e1d570f46ec3f619feb2811881c2fbfc on byazrail:develop into 0634ac6ded920af689d027f5058a561062f54336 on bcit-ci:develop.

Coverage decreased (-0.09%) to 61.91% when pulling 5beecd78e1d570f46ec3f619feb2811881c2fbfc on byazrail:develop into 0634ac6ded920af689d027f5058a561062f54336 on bcit-ci:develop.

Coverage decreased (-0.09%) to 61.914% when pulling c198b0651dd8eca1e92805b948d913e6cadae1cd on byazrail:develop into 0634ac6ded920af689d027f5058a561062f54336 on bcit-ci:develop.

Coverage increased (+0.01%) to 62.013% when pulling cab349ea13f8f1eb7708cc697d265d30f6fd66d2 on byazrail:develop into 0634ac6ded920af689d027f5058a561062f54336 on bcit-ci:develop.

Looks good. Thanks!

authors: byazrail coveralls lonnieezell

license: mit

license_source: bigquery


text:
How can I use node-crawler with JSDOM? It's doesn't work like this.

const Crawler = require("crawler");
const jsdom = require('jsdom');

const cl = new Crawler({
    jQuery: jsdom,
    maxConnections : 100,
    callback : function (err, res, done) {
      const $ = res.$;
      const urls = $('#list a');
      console.log(urls)
    }
});

Originally posted by @mayinghan in https://github.com/bda-research/node-crawler/issues/360#issuecomment-703649404

It's outdated, use default cheerio for static xml file, and puppeteer for dynamic or ajax page.

It's outdated, use default cheerio for static xml file, and puppeteer for dynamic or ajax page.

Oh... Thanks!

repo: bda-research/node-crawler


text:
Add support for interruptible ROS processes

By default, rclpy will install signal handlers for SIGINT and SIGTERM upon global context initialization. These handlers shutdown ROS 2 contexts. process-wide, making it impossible for ROS 2 aware processes to use most ROS 2 interfaces during  shutdown. E.g. a simple example script cannot command a robot to adopt a safe configuration on Ctrl + C,
This patch adds the notion of an interruptible ROS process. An interruptible ROS process will not shutdown when interrupted (SIGINT or SIGTERM) but raise a suitable exception (KeyboardInterrupt or SystemExit). When using process-wide APIs, the global context will eventually be shutdown accordingly. This is an opt-in feature.

With green CI, getting this one in.

license: MIT


text:
On Windows, the XDG_CONFIG_HOME and XDG_CACHE_HOME are not sensible default environment variables

XDG_CONFIG_HOME -> APPDATA
XDG_CACHE_HOME -> LOCALAPPDATA

Resolved in v0.0.2

repo: bdazl/note


text:
Create tr_TR.lang

ッ

The mod has been recently updated to MC 1.16, older versions are no longer supported.
I'm mass closing older issues to clear up clutter in the bug tracker.
If you are willing to update this to the new language file format (and changes to localization strings introduced by the port) please open a new update PR.

authors: RoCoKo bdew

repo: bdew-minecraft/bdlib


text:
Using panes and contents in NavigationView

I tried to add NavigationPane to NavigationView and TabView to the content of the view, but I got the message "Either pane or content must be provided". Can't the pane and content of the view be used at the same time? Thank you.

it can't. you must use either one or other

Okay. Thanks. I'll close the issue.


text:
transfer Gcode via USB

Bdurbrow
Is it possible to transfer Gcode via USB from Programs on a PC that supports GRBL?
For me, all GRBLPanel functions work ...... not only the G-code transmission over the cable does not work: (((((

That’s odd... I didn’t think I messed with that. It was working from the Arduino serial monitor... I will investigate.

bdurbrow!
THANK YOU FOR YOUR TIME

Excuse me ! I had some errors in the NC code. Today, I once again connected the driver via USB cable. I was sending the code from the programs to the Machine:
GRBLPanel - connects without problems works OK!
Lightburn - connects without problems works OK!
LaserGRB - harder to connect to USB, but eventually connects and transmits OK!

authors: bdurbrow qulet

repo: bdurbrow/grbl-Mega


text:
Add CodeQL Workflow for Code Security Analysis

Summary
This pull request introduces a CodeQL workflow to enhance the security analysis of this repository.
What is CodeQL
CodeQL is a static analysis tool that helps identify and mitigate security vulnerabilities. It is primarily intra-function but does provide some support for inter-function analysis. By integrating CodeQL into a GitHub Actions workflow, it can proactively identify and address potential issues before they become security threats.
For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).
What this PR does
We added a new CodeQL workflow file (.github/workflows/codeql.yml) that

Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
Runs daily.
Excludes queries with a high false positive rate or low-severity findings.
Does not display results for git submodules, focusing only on our own codebase.

Validation
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.
Using the workflow results
If this pull request is merged, the CodeQL workflow will be automatically run on every push to the main branch and on every pull request to the main branch. To view the results of these code scans, follow these steps:

Under the repository name, click on the Security tab.
In the left sidebar, click Code scanning alerts.

Is this a good idea?
We are researchers at Purdue University in the USA. We are studying the potential benefits and costs of using CodeQL on open-source repositories of embedded software.
We wrote up a report of our findings so far. The TL;DR is “CodeQL outperforms the other freely-available static analysis tools, with fairly low false positive rates and lots of real defects”. You can read about the report here: https://arxiv.org/abs/2310.00205
Review of engineering hazards
License: see the license at https://github.com/github/codeql-cli-binaries/blob/main/LICENSE.md:
Here's what you may also do with the Software, but only with an Open Source Codebase and subject to the License Restrictions provisions below:

Perform analysis on the Open Source Codebase.

If the Open Source Codebase is hosted and maintained on GitHub.com, generate CodeQL databases for or during automated analysis, CI, or CD.

False positives: We find that around 20% of errors are false positives, but that these FPs are polarized and only a few rules contribute to most FPs. We find that the top rules contributing to FPs are: cpp/uninitialized-local, cpp/missing-check-scanf, cpp/suspicious-pointer-scaling, cpp/unbounded-write, cpp/constant-comparison, and cpp/inconsistent-null-check. Adding a filter to filter out certain rules that contribute to a high FP rate can be done simply in the workflow file.

Is this spam or is this someone real? It looks like spam.

@jadonk I'm real. We have forked over two hundred repositories to study the benefits of static analysis tools. We actually opened three PRs a few months ago https://github.com/beagleboard/librobotcontrol/pull/222 https://github.com/beagleboard/librobotcontrol/pull/223 and https://github.com/beagleboard/librobotcontrol/pull/224 that were bugs found with CodeQL.
After forking each repository, manually building and analyzing each one, and presenting the results in the paper, we decided to reach out to devs and provide them with a CodeQL configuration to their respective repositories. While the process in which PRs was raised was automated, I can assure you that our intents are genuine and our biggest concern is improving code quality. If you have any questions, please feel free to follow up.

k. how to get it to run now?

@jadonk You can see the results of the analysis in the Security tab under Code Scanning alerts. We recognize that CodeQL may flag errors that are false positives, or even errors that you may choose not to fix (e.g. runtime considerations). For these errors, you can dismiss them with a note in the interface.

nothing there. just says configure scanning tool.

@jadonk Do you mind sharing a screenshot? (this is what it looks like on our fork)

And if you click 'Configure scanning tool'?

If I had to guess, it's because there haven't actually been any runs of this workflow yet. The workflow is currently set to run nightly and on a PR (notice the commented-out trigger for a push to the main branch).

I simply am not sure what I'm turning on and worry it will incur charges, etc. I am clearly being overly trusting to enable this. This doesn't feel like "security" to click to turn on features you don't understand.

Yes, I have just forked this repository again, changed the CodeQL workflow to run on every push, and here is before the workflow gets run:

And after the workflow finishes running:

The workflow needs to be run at least once, first, before it will upload to Code Scanning.

@jadonk Any update?

working.

Great!

repo: beagleboard/librobotcontrol


text:
0xFFFFFFFF doesn't work

Bsh does not understand integer constant 0xFFFFFFFF,
Java does.
Reported by: yozh
Original Ticket: "beanshell/bugs/132":https://sourceforge.net/p/beanshell/bugs/132

Works as expected in current master bsh-3.0.0-SNAPSHOT.jar

Closed: Works as expected

repo: beanshell/beanshell


text:
Feature request：I would like it to be used in the template.

I would like it to be used in the template.
It would be nice if it could be used in the templater plugin.

I use it with the templater plugin, after the file is created it will trigger the plugin. The only thing that I do is ignore the template directory (see plugin option) so the template don't have the created and ubdate time

authors: beaussan solowhale

repo: beaussan/update-time-on-edit-obsidian


text:
Feature/brc 19 add login as user functionality

This should be it.

name has been fixed, gonna go ahead and merge it

repo: bedrockio/bedrock-core


text:
pointer-events: none for :after pseudo

Hi, if I use for example title in .chip it doesn't work but after adding pointer-events: none for ::after everything works as it should.
code example

    text
    event

will_expire in 2 days.

Hi, for buttons and chips, we don't have access to child elements by default. To enable access to child elements you need to bring the element to front, using front helper. Try this:

    text
    event

will_expire in 2 days.

Hi, yes, thank you, works, I need to read the documentation better 😄

authors: jsupa leonardorafael

repo: beercss/beercss


text:
fixed content

please fix the content.

fixed

authors: Mundisamug beigeworm

repo: beigeworm/Powershell-Tools-and-Toys


text:
Verwendung dokumentieren

Die Verwendung des Tools sollte in der README.md dokumentiert werden.

Die Dokumentation bitte auf englisch angeben.


text:
Memory peak when UI is used

Hi,
I’m using the db-scheduler UI extension and have developed a Ktor plugin for Kotlin based on this library. I haven’t tried the Spring Boot version yet.
In my Kotlin application, I utilize TaskLogic. During load testing with the showData option enabled, I observed that simply refreshing or accessing the /db-scheduler page causes memory usage to peak. I believe this is because db-scheduler eagerly populates a list through a consumer instead of exposing a Flux, as seen in Caching.java (Lines 48-53). Whereas pageSize should be considered before executing the query or limiting the Flux before it is collected.
For example, with 10k scheduled tasks each containing 150KB of data, the UI attempts to retrieve 150MB of data on every refresh and mouse hover unless showData is disabled. Even when showData is turned off, the UI still fetches task names and dates for all 10k items, effectively ignoring the pageSize setting.
Have you encountered this issue before, or is there a configuration option available to modify this behavior?
Thanks!

I have the same issue myself. I suspect db-scheduler must be updated to support paging, alternatively db-scheduler-ui must implement a direct fetch from the databse, though that would be more brittle and DB-specific.

In general, I try to keep the tasks as small as possible, and rather use IDs as data, with each tasks fetching the data it needs. We still run into an issue when we have 3 million tasks scheduled though 😅

authors: geirsagberg osoykan

repo: bekk/db-scheduler-ui


text:
Как работать с блоком next-tick?

У меня есть json файл, в который прилетают данные и формируют массив [id1, id2, id3] и так далее, мне необходимо следить за изменениями в этом массиве и при появлении в нем очередного значения, выполнять функцию. Как я предполагаю, для отслеживания необходим блок next-tick, но документация по нему очень маленькая и совсем не понятно, как с ним работать в данной ситуации. Можете помочь и направить?

next-tick — это кроссплатформенная реализация https://nodejs.org/api/process.html#process_process_nexttick_callback_arg и, кроме как отложить выполнение функции до конца текущего событийного цикла, этот модуль не делает.
Решение нужно искать где-то в районе слов «данные прилетают». Как именно они прилетают?

Ок, значит не правильно понял его предназначение, решил, что next-tick, это выполнение функции с определенными временными промежутками.
По поводу задачи: данные прилетают с сервера в json файл и формируют массив [id1, id2, id3]. То есть запросив один раз данные из json`a можно получить одни значения и запросив через пол часа, можно получить другие значения. Вот мне и нужен инструмент, который переодически будет проверять файл json на наличие изменений. Если в bem-core такого нет, тогда буду искать во вне.

Я правильно понял, что речь о том, что браузер просто запрашивает данные c сервера по HTTP и нужно организовать поллинг по временному интервалу?
Если так, то должно хватить чуть ли не
setInterval(function() {
    $.get('http://site.com/data.json').then(function(data) {
        // забираем данные
    });
}, 60 * 1000);

authors: Jekins tadatuta

repo: bem/bem-forum-content-ru


text:
Как получить данные этого метода в requeste? Дабы использовать в другом модуле

modules.define('clients', function(provide){
provide({
getClients: function(){

  /* Получаем список суб-клиентов агенства (или представителей) */

    var sendQ = {
       "method": "GetClientsList",
       "token": ""
    };

    var options = {
      url: "САЙТ",
      method: "POST",
      headers: {
          'Content-Type': 'application/json; charset=utf-8',
          'Authorization': 'Bearer'
      },
      json: true,
      body: sendQ
    };

    var clients = '';

    request(options, function (err, res, body) {
      var clients = body["data"];
      var client = clients.map(function(a){
        return a.Login;
      });
      // console.log(body);

      if(client[0] != false){
        console.log('Client list getty - OK - '+client[0]);
      }else {
        console.log('some problems');
      };
      return
    });

  return

  /* Список получен переходим к дальнейщим действиям */
}

});
});
не судите строго я только начинаю понимать эти технологии :В

@bemdev удалось разобраться?

ну как сказать, через промис прикидывая дальше но как то это не нравится
почему я немогу сделать модуль который при вызове вернет мне сразу
значение и в другом модуле я его уже как нить обработаю, а сам модуль
зарекваирить не проблема же.
и еще есть вопрос, может будет время посмотрите
https://ru.bem.info/forum/1137/

authors: bemdev tadatuta


text:
Create test1

add test1 file

Review completed

repo: benardop/github-slideshow


text:
issue #225 : add collectionSizeRange method in preference to minColle…

…ctionSize and maxCollectionSize
This makes the EnhancedRandomBuilder API consistent with dateRange and timeRange parameters

Coverage decreased (-0.4%) to 91.395% when pulling db587776d0fc576dee32e55f9ec0cc68011bdb4b on issue-225 into d33d799c3543a5dcc578b89150b3a0f7d2dac427 on master.

authors: benas coveralls

repo: benas/random-beans


text:
New UI is Broken

New UI is broken on some chrome versions.

Is there a fix? I can't update chrome due to this laptop being managed by my school.

dupe #1934

repo: benawad/dogehouse


text:
set session_replication_role = 'replica';

Hi @benawad , I am not sure if this is the right place to ask you this, but I got a bug and it is tricky to kill it.
I am on the 36th minute of the tutorial, I am trying to run the app, do the first migration, and insert the first post.
I am getting this error:

For some reason, it tries to execute select statement two times and just looks like a lot of funny business with the SQL.
Any ideas, thoughts?

2 fixes I found. #1 is probably the most preferable

make sure the postgres user has superuser privileges - ALTER USER myuser WITH SUPERUSER;
in the mikro-orm.config, in the migrations section, add the disableForeignKeys option
export default {
migrations: {
path: path.join(__dirname, './migrations'),
pattern: /^[\w-]+\d+.[tj]s$/,
disableForeignKeys: false,
},
...

@kurtzilla Looks like a clean and elegant solution, thanks for the info

@kurtzilla Thanks! the #1 worked for me.

authors: kurtzilla livike nenadSavovic1

repo: benawad/lireddit


text:
Add option to convert markdown files in collections

Implements #5 which can be enabled with the following configuration:
optional_front_matter:
  collections: true

This option allows markdown files in collections to be converted to html without requiring front matter.
Note: It is important to set the collection's output: true to convert markdown files to html. Otherwise, html files will not be created.
collections:
  foo:
    output: true

Note: By default, both markdown files and html files will be created. However, you can use remove_originals: true option to only create html files.
optional_front_matter:
  remove_originals: true
  collections: true

@benbalter can we look at getting this merged?
BR,
Kyle

@kylekirkby if you're willing to re-submit the PR, implement any feedback, etc. I'd be glad to review it.

also missing this functionality...

authors: benbalter kimbaudi kylekirkby vadimkantorov

repo: benbalter/jekyll-optional-front-matter


text:
Question: why not use sprites?

Hey @bendiksolheim ! Great work you are doing on the emojiarea! I was just wondering why you don't use png sprites instead of separate png files? this looks like it results in a LOT of requests and slows down page loading.
cheers!
Wolfgang

okay, I just saw you forked from a version which already converted the sprites into individual images. the original version uses sprites! might be worthy of considering.

Hello @wstoettinger !
That is a valid question. I have to admin that this repository is more or less dead, I have no intention of continuing with it. It was more of a test to see if it was possible at all to render emojis in a textarea in a predictable manner. Sadly, the project I was going to use it in decided not to implement this, so I stopped developing on it.

Hey @bendiksolheim! Thanks for the info! I found your repo because it was the fork that seemed to have the most recent development of the original repo. I then decided to develop one from scratch inspired by OneSignal/emoji-picker and diy/jquery-emojiarea because nothing I could find offered the flexibility and functionality I was looking for while still maintaining some light weight (as far as this is possible with emoji libraries).
In case you need something similar in the future or you are curious, feel free to check out my repo here: https://github.com/wstoettinger/jquery.emojiarea.js
I'm still working on the browser support, especially when it comes to copy, paste, undo and redo actions (As usual IE is a pain in the ass here!).

Glad you got things sorted :)  I’ll definitely keep your respository in mind!
Closing this, as you seem to have found a solution.

authors: bendiksolheim wstoettinger

repo: bendiksolheim/emojiarea


text:
Proof by Induction/ Logically Defined Loops Module

implement module

cancelled

repo: benedictvs/FOCS-Calculator


text:
Starting the websocket server fails due to permission errors

Hi!
I've been trying to get this running. When running sbt run inside docker exec i get permission denied errors.
The following code works only if the UID of the user running docker is 1000. Otherwise future commands fail with permission denied errors.
https://github.com/benediktwerner/lichess-docker/blob/d6cd401135fa72064d8ce26231fdfd200a8a0fa8/README.md?plain=1#L15
Could you clarify the documentation on how to ensure the UID's match?

Not sure what the best/proper way to do this is but I guess you can add -u <userid> to https://github.com/benediktwerner/lichess-docker/blob/master/Dockerfile/#L5 where <userid> is the id of the user owning the directory on the docker host (which you can find out by running id as that user).
In general, I'd currently recommend https://github.com/lichess-org/lila-gitpod for an easy Lichess Dev setup to get started though.

authors: TheZXCVQ benediktwerner

repo: benediktwerner/lichess-docker


text:
Provide API for phrase retrieval

Using keywords provide well-known urls for emoji phrases

Initial option:

use Google sheets and API spark to serve phrases

repo: benfortuna/emojistrip


text:
🛑 tilde.team is down

In 65c2b56, tilde.team (https://tilde.team) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tilde.team is back up in d9619e0 after 12 minutes.

repo: benharri/upptime


text:
automatic wrappers for grid search and grid search with optimization

Many of our functions are a grid search, or a grid search followed by optimization.
I would like to abstract these with unctions that you pass a loss function and sample_dict and it will do the grid search and optimization appropriately.
One point to consider is how to handle the names of parameters that we are BFGS-ing over (ie flux), and which are coordinates to be fixed (dra, ddec) - these functions should be fully general. The implementation is easy either way but what API do we pick - perhaps loss_param = 'flux' or some syntax like that to pick out which one we are optimizing?

Not sure I fully follow the problem here. If we aren't grid-searching/optimising some parameters, they wouldn't be in the sample_dict right? Everything else that is static should just be taken from as the value within the object no?
This would be the same way numpyro works, you don't have to specify what is fixed you only specify what is sampled over, everything else is treated as static and its value is used by the model object implicitly.

An automatic grid search with optimization is now implemented, for cartesian grids.
I want to suggest that a model object has an attribute which lists which parameters are considered as coordinates to be mapped over in grid searches, because they may have many other parameters to be inferred but which are not in general going to require grid searches (and which would scale badly at high dimension).
I suggest a syntax we just do
self.coords = ['dra', 'ddec'] # ['sep', 'pa'], or disk spatial params, etc

The other parameters, frozen at grid search time, would be in sample_dict as scalars. Is there anything wrong with doing this?
I also suggest that we have a helper attribute self.contrast whose getter returns 1/self.flux (which is a mandatory keyword for all sources), but whose setter actually updates self.flux = 1/contrast so that we can interface with this nicely.

I'm not really convinced of this, or maybe I don't really understand where things are happening.
Where is this inference of the other parameters happening? Are these other parameters being inferred inside this grid search function? If not I can't see why they should live in the sample_dict as they are already inside the class? Bit hard to say much more on this without actually knowing what these functions are doing and how they fit into the wider workflow.
I am in general not a fan of having leaves within a class that are used to refer to other leaves within the class, I've not really found a situation where that is warranted, but again, I don't have the context to be able to provide any concrete examples of where this might be troublesome. You could hold the sample_dict as part of the model itself, but I would tend to lean towards creating a Grid or ParametersGrid class, that stores the sample dict and grid_likelihood or whatever, than can be a leaf of an arbitrary model. This lets you more rigidly define the parameters that are inferred (within the model class) and those that are grid searched (in the Grid class), providing a concrete boundary between them and without any self-referential stuff. This would be a more more equinox'y approach IMO and gives you more flexibility in terms of how they interact with each other.

Parametric getter method for contrast 👍
Parametric setter method for contrast 👎
The getter methods are totally fine and just make working with classes easier. However, if you create a setter method that completely breaks with how everything else is done. That one (faux) leaf requires its whole own setter method, that you then won't be able to update using zodiax methods. This is a fundamental limit because equinox updates leaves based on a where function, and you obviously can't point it to something that doesn't exist. You can use a __getattr__ method to point it to flux, but then you have no way to apply the inverse, which again leave you at either creating a specific setter function for that leaf alone, and just breaking from the whole ability to use zodiax.
I think you could mayyyybe get this behavior by taking a similar approach to eqx.nn.Shared layer and having custom behavior in the __setattr__ method of the shared class equivalent, but I can neither confirm nor deny this.

Oh and looking at #20, I think the potential parametric setter solution would also break methods like __mul__, __add__ etc, unless you hard-code specific behavior. You can kind of see how this gets out of hand from a code and maintenance perspective when you can simply just do model.set('flux', 1/contrast)

authors: LouisDesdoigts benjaminpope

repo: benjaminpope/drpangloss


text:
Canvas size ,self-loops ,large graphs?

1.Is there a way to change the canvas size?
2.Is there a way to display self-loops?
3.Are visualizations of 12.000.000+ edges supported in freeze mode?
Nice and easy package to use though..great work!
Thanks!

For self-loops I figured I can use extra nodes connected to the node I want to display a self-loop on and then hiding these extra nodes. But it makes my graph complicated for no reason.

Self loops are not yet implemented, but that is for sure a feature we should add. If you wan't you can go ahead and use the development version of the new netwulf version, it scales the canvas to the full window size. If you find any bugs we'd be happy to head about them.

authors: g-ioannou ulfaslak

repo: benmaier/netwulf


text:
Webpack: don't require resolve.root

Context: https://github.com#issuecomment-217644542
Need to allow resolve.root not to be defined and make whatever default assumption Webpack makes, if any.

Link fail, attempt two: https://github.com/benmosher/eslint-plugin-import/issues/238#issuecomment-217644542 #mobile #FTL

repo: benmosher/eslint-plugin-import


text:
feature(import/default): support default export in TSExportAssignment.

Possible duplicate of #1528 (but uses tsconfig.json)
Aims to fix #1527
For example, I want to import React as import React from "react". I can do this by using esModuleInterop: true in tsconfig.json, but eslint doesn't know about that.
This is a draft PR as I'm not really familiar with the codebase. I want to share my approach and receive feedback.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

Coverage decreased (-0.08%) to 97.715% when pulling 80f1a66a215f1afe3d9701fa61c9edaa01c5468c on Maxim-Mazurok:master into 1a3a12869651bec54d567af8dc0e7cb2a801d41f on benmosher:master.

@Maxim-Mazurok this seems fine, but is hard to review without tests. Could you add some?

Sure, @ljharb, I will first test if https://github.com/benmosher/eslint-plugin-import/issues/1527 was actually resolved and then will add some tests.
Also, as I've mentioned here that we should consider the case when there are multiple tsconfig.json files. Anyway, supporting one root config would be a good starting point, I think.

Created reproduction repo: https://github.com/Maxim-Mazurok/eslint-plugin-import-1689-reproduction
The issue is still present in 2.20.2 and on master branch.

Thanks for confirming. I'd love to review and land this PR; could you modify your repro case to tests in this repo?

Sure, creating a repro was the first step :) Now I'm going to add tests.

@ljharb I fixed my code and added tests, please, take a look.
I also had to fix import ReactDOM from 'react-dom'; case in my last commit to make it work on real-world app, where you import both React and ReactDOM.

Tests are failing on native because of this: https://github.com/nickmerwin/node-coveralls/issues/80
But pass on WSL

@ljharb thanks for your comments and fixes. I added fix for JSON.parse. Please, don't force-push your commits that overwrite my commits, because I have no visibility as to what was changed by you. I understand that I did more commits than necessary, but you can "squash and merge" at the end to fix this problem. Thanks :)

@Maxim-Mazurok "squash and merge" is not viable - it leaves the PR ref cluttered with the old commits, and orphaned from the master branch.
I'm going to force push this one again before landing it; while you can uncheck the "allow edits" box to prevent me from doing that, that has the unfortunate consequence of meaning I'll never merge the PR on any repo I manage, so I hope you won't do that :-)

Oh, right, I totally forgot that, now it makes sense :)
Thanks!

Thank you for the PR!

authors: Maxim-Mazurok coveralls ljharb


text:
ubuntu 22.04 signed kernels not recognized

I have installed Ubuntu 22.04 with kernels 5.15.0-33 and 5.15.0-30, which are signed by Canonical.  However with Secure Boot Enabled, these kernels are not recognized.  I get the message vmlinuz is not signed, must load kernel first.  I have created a MOK.der but am not sure that signing these kernels will solve the problem since they are already signed.  My system is ASROCK AB350 Pro  4 with Debian 11 (KickSecure) and Ubuntu 22.04.   KickSecure Debian 11 boots OK with Secure Boot Enabled and Ubuntu used to boot before I added KickSecure Debian.

Hi Kendal,
If you are indeed using the default kernels installed by Ubuntu and APT, it should work just fine without user signing or using any scripts in this repository.  I believe when you installed Ubuntu it should add the Canonical certificate. I'm wondering if this key was removed from the UEFI signature database somehow?
You should be able to see which keys are registered, here is the first key (not my user keys), you should see the Canonical cert in there i fit's registered correctly.
sudo mokutil --list-enrolled
[key 1]
SHA1 Fingerprint: 76:a0:92:06:58:00:bf:37:69:01:c3:72:cd:55:a9:0e:1f:de:d2:e0
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            b9:41:24:a0:18:2c:92:67
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=GB, ST=Isle of Man, L=Douglas, O=Canonical Ltd., CN=Canonical Ltd. Master Certificate Authority
        Validity
            Not Before: Apr 12 11:12:51 2012 GMT
            Not After : Apr 11 11:12:51 2042 GMT
        Subject: C=GB, ST=Isle of Man, L=Douglas, O=Canonical Ltd., CN=Canonical Ltd. Master Certificate Authority
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:bf:5b:3a:16:74:ee:21:5d:ae:61:ed:9d:56:ac:
                    bd:de:de:72:f3:dd:7e:2d:4c:62:0f:ac:c0:6d:48:
                    08:11:cf:8d:8b:fb:61:1f:27:cc:11:6e:d9:55:3d:
                    39:54:eb:40:3b:b1:bb:e2:85:34:79:ca:f7:7b:bf:
                    ba:7a:c8:10:2d:19:7d:ad:59:cf:a6:d4:e9:4e:0f:
                    da:ae:52:ea:4c:9e:90:ce:c6:99:0d:4e:67:65:78:
                    5d:f9:d1:d5:38:4a:4a:7a:8f:93:9c:7f:1a:a3:85:
                    db:ce:fa:8b:f7:c2:a2:21:2d:9b:54:41:35:10:57:
                    13:8d:6c:bc:29:06:50:4a:7e:ea:99:a9:68:a7:3b:
                    c7:07:1b:32:9e:a0:19:87:0e:79:bb:68:99:2d:7e:
                    93:52:e5:f6:eb:c9:9b:f9:2b:ed:b8:68:49:bc:d9:
                    95:50:40:5b:c5:b2:71:aa:eb:5c:57:de:71:f9:40:
                    0a:dd:5b:ac:1e:84:2d:50:1a:52:d6:e1:f3:6b:6e:
                    90:64:4f:5b:b4:eb:20:e4:61:10:da:5a:f0:ea:e4:
                    42:d7:01:c4:fe:21:1f:d9:b9:c0:54:95:42:81:52:
                    72:1f:49:64:7a:c8:6c:24:f1:08:70:0b:4d:a5:a0:
                    32:d1:a0:1c:57:a8:4d:e3:af:a5:8e:05:05:3e:10:
                    43:a1
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                AD:91:99:0B:C2:2A:B1:F5:17:04:8C:23:B6:65:5A:26:8E:34:5A:63
            X509v3 Authority Key Identifier:
                AD:91:99:0B:C2:2A:B1:F5:17:04:8C:23:B6:65:5A:26:8E:34:5A:63
            X509v3 Basic Constraints: critical
                CA:TRUE
            X509v3 Key Usage:
                Digital Signature, Certificate Sign, CRL Sign
            X509v3 CRL Distribution Points:
                Full Name:
                  URI:http://www.canonical.com/secure-boot-master-ca.crl
    Signature Algorithm: sha256WithRSAEncryption
    Signature Value:
        3f:7d:f6:76:a5:b3:83:b4:2b:7a:d0:6d:52:1a:03:83:c4:12:
        a7:50:9c:47:92:cc:c0:94:77:82:d2:ae:57:b3:99:04:f5:32:
        3a:c6:55:1d:07:db:12:a9:56:fa:d8:d4:76:20:eb:e4:c3:51:
        db:9a:5c:9c:92:3f:18:73:da:94:6a:a1:99:38:8c:a4:88:6d:
        c1:fc:39:71:d0:74:76:16:03:3e:56:23:35:d5:55:47:5b:1a:
        1d:41:c2:d3:12:4c:dc:ff:ae:0a:92:9c:62:0a:17:01:9c:73:
        e0:5e:b1:fd:bc:d6:b5:19:11:7a:7e:cd:3e:03:7e:66:db:5b:
        a8:c9:39:48:51:ff:53:e1:9c:31:53:91:1b:3b:10:75:03:17:
        ba:e6:81:02:80:94:70:4c:46:b7:94:b0:3d:15:cd:1f:8e:02:
        e0:68:02:8f:fb:f9:47:1d:7d:a2:01:c6:07:51:c4:9a:cc:ed:
        dd:cf:a3:5d:ed:92:bb:be:d1:fd:e6:ec:1f:33:51:73:04:be:
        3c:72:b0:7d:08:f8:01:ff:98:7d:cb:9c:e0:69:39:77:25:47:
        71:88:b1:8d:27:a5:2e:a8:f7:3f:5f:80:69:97:3e:a9:f4:99:
        14:db:ce:03:0e:0b:66:c4:1c:6d:bd:b8:27:77:c1:42:94:bd:
        fc:6a:0a:bc

By  switching the order of my distros, putting Ubuntu 22.04 first, I was
able to turn back on Secure Boot.  I think the more recent kernel in
Ubuntu, 5.15.0 was not recognized under Debian 11 Kicksecure kernel 5.10.
I learned a lot creating a MOK.der
On Sun, Jun 5, 2022 at 5:31 PM berglh @.***> wrote:

Hi Kendal,
If you are indeed using the default kernels installed by Ubuntu and APT,
it should work just fine without user signing or using any scripts in this
repository. I believe when you installed Ubuntu it should add the Canonical
certificate. I'm wondering if this key was removed from the UEFI signature
database somehow?
You should be able to see which keys are registered, here is the first key
(not my user keys), you should see the Canonical cert in there i fit's
registered correctly.
sudo mokutil --list-enrolled
[key 1]
SHA1 Fingerprint: 76:a0:92:06:58:00:bf:37:69:01:c3:72:cd:55:a9:0e:1f:de:d2:e0
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
b9:41:24:a0:18:2c:92:67
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=GB, ST=Isle of Man, L=Douglas, O=Canonical Ltd., CN=Canonical Ltd. Master Certificate Authority
Validity
Not Before: Apr 12 11:12:51 2012 GMT
Not After : Apr 11 11:12:51 2042 GMT
Subject: C=GB, ST=Isle of Man, L=Douglas, O=Canonical Ltd., CN=Canonical Ltd. Master Certificate Authority
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:bf:5b:3a:16:74:ee:21:5d:ae:61:ed:9d:56:ac:
bd:de:de:72:f3:dd:7e:2d:4c:62:0f:ac:c0:6d:48:
08:11:cf:8d:8b:fb:61:1f:27:cc:11:6e:d9:55:3d:
39:54:eb:40:3b:b1:bb:e2:85:34:79:ca:f7:7b:bf:
ba:7a:c8:10:2d:19:7d:ad:59:cf:a6:d4:e9:4e:0f:
da:ae:52:ea:4c:9e:90:ce:c6:99:0d:4e:67:65:78:
5d:f9:d1:d5:38:4a:4a:7a:8f:93:9c:7f:1a:a3:85:
db:ce:fa:8b:f7:c2:a2:21:2d:9b:54:41:35:10:57:
13:8d:6c:bc:29:06:50:4a:7e:ea:99:a9:68:a7:3b:
c7:07:1b:32:9e:a0:19:87:0e:79:bb:68:99:2d:7e:
93:52:e5:f6:eb:c9:9b:f9:2b:ed:b8:68:49:bc:d9:
95:50:40:5b:c5:b2:71:aa:eb:5c:57:de:71:f9:40:
0a:dd:5b:ac:1e:84:2d:50:1a:52:d6:e1:f3:6b:6e:
90:64:4f:5b:b4:eb:20:e4:61:10:da:5a:f0:ea:e4:
42:d7:01:c4:fe:21:1f:d9:b9:c0:54:95:42:81:52:
72:1f:49:64:7a:c8:6c:24:f1:08:70:0b:4d:a5:a0:
32:d1:a0:1c:57:a8:4d:e3:af:a5:8e:05:05:3e:10:
43:a1
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
AD:91:99:0B:C2:2A:B1:F5:17:04:8C:23:B6:65:5A:26:8E:34:5A:63
X509v3 Authority Key Identifier:
AD:91:99:0B:C2:2A:B1:F5:17:04:8C:23:B6:65:5A:26:8E:34:5A:63
X509v3 Basic Constraints: critical
CA:TRUE
X509v3 Key Usage:
Digital Signature, Certificate Sign, CRL Sign
X509v3 CRL Distribution Points:
Full Name:
URI:http://www.canonical.com/secure-boot-master-ca.crl
Signature Algorithm: sha256WithRSAEncryption
Signature Value:
3f:7d:f6:76:a5:b3:83:b4:2b:7a:d0:6d:52:1a:03:83:c4:12:
a7:50:9c:47:92:cc:c0:94:77:82:d2:ae:57:b3:99:04:f5:32:
3a:c6:55:1d:07:db:12:a9:56:fa:d8:d4:76:20:eb:e4:c3:51:
db:9a:5c:9c:92:3f:18:73:da:94:6a:a1:99:38:8c:a4:88:6d:
c1:fc:39:71:d0:74:76:16:03:3e:56:23:35:d5:55:47:5b:1a:
1d:41:c2:d3:12:4c:dc:ff:ae:0a:92:9c:62:0a:17:01:9c:73:
e0:5e:b1:fd:bc:d6:b5:19:11:7a:7e:cd:3e:03:7e:66:db:5b:
a8:c9:39:48:51:ff:53:e1:9c:31:53:91:1b:3b:10:75:03:17:
ba:e6:81:02:80:94:70:4c:46:b7:94:b0:3d:15:cd:1f:8e:02:
e0:68:02:8f:fb:f9:47:1d:7d:a2:01:c6:07:51:c4:9a:cc:ed:
dd:cf:a3:5d:ed:92:bb:be:d1:fd:e6:ec:1f:33:51:73:04:be:
3c:72:b0:7d:08:f8:01:ff:98:7d:cb:9c:e0:69:39:77:25:47:
71:88:b1:8d:27:a5:2e:a8:f7:3f:5f:80:69:97:3e:a9:f4:99:
14:db:ce:03:0e:0b:66:c4:1c:6d:bd:b8:27:77:c1:42:94:bd:
fc:6a:0a:bc
—
Reply to this email directly, view it on GitHub
https://github.com/berglh/ubuntu-sb-kernel-signing/issues/6#issuecomment-1146887063,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEE7TPPOTUBYJ7BFG7JBFLVNUMEBANCNFSM5X46B65A
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Kendall B. Green 5B2761669EF47F65

I'm going to go ahead and close this off as it sounds like you have got a handle on it. It's possible that if different grub EFI images where booted they may not be compatible with secure boot or enrolled in the key database in the expect way.

authors: berglh kendallgreen

repo: berglh/ubuntu-sb-kernel-signing


text:
Go Worker

Hi Bernd,
I've written the Worker in Go. So far without any dependencies except the Zeebe pkg. I'm not sure how your test setup looked so I have not added the benchmark results to the repo.
Sneak preview:
2021/07/18 13:41:19 ...completed (Current throughput (jobs/s): 76, Max: 76).
If I find the time I may rewrite the worker and use RxGo 😄 .
https://github.com/ReactiveX/RxGo

Awesome - great addition - thx! I try to run it against my scenario/environment to be able to add logs - but sure if I find the time before my upcoming holidays :-/

authors: Sijoma berndruecker


text:
spark dependencies

What do we need to put into the requirements.txt file to make the PySpark and sparklyr code run? e.g. pyspark>=2.4.0, sparklyr >=1.7.4

data: https://jupyterbook.org/en/stable/advanced/html.html?highlight=background#manually-specify-extra-files-folders-to-be-included-in-a-website

repo: best-practice-and-impact/ons-spark


text:
Upgrade @typescript-eslint/parser to latest

Goal
Fix warning message when running the lint command:
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.2.0

YOUR TYPESCRIPT VERSION: 5.2.2

Please only submit bug reports when using the officially supported version.

How to test
Run pnpm -F bestofjs-nextjs lint and ensure there is no warning message

Checking the behavior to ignore build
This PR is also a way to check the setup introduced here: https://github.com/bestofjs/bestofjs/issues/244 and described here: https://vercel.com/docs/projects/overview#ignored-build-step
bestofjs-classic failed because only commits made in app/bestofjs-webui are supposed to trigger build.
Build Failed

Command failed with exit code 128: git diff HEAD^ HEAD --quiet ./app/bestofjs-webui

It's not very clean as it looks like something went wrong, but it works as expected.

repo: bestofjs/bestofjs


text:
Column Chart - Small Tick Interval Won't Save

If you are working with a small set of decimals (e.g. 1.01 - 1.25), you can change the Tick Interval on the Value Axis to a small number (e.g. 0.04) and it previews well, but when you try to save it you get an error saying the two nearest values are 0 and 1.
(https://www.drupal.org/node/2724295)

related to (and fixed in) #20

repo: bestuurszaken/easychart


text:
Bug affichage ajout nouvel ingrédient n'apparaissant pas dans la bdd lors d'une décla

Lors de la création d'un nouvel ingrédient "Forme Apport" et "Ingrédient actifs", le nouvel ingrédient n'apparait pas dans la page Composition. La manip doit être renouvelée plusieurs fois pour qu'il s'affiche. Il peut apparaitre en doublon ensuite.

Normalement fixé avec https://github.com/betagouv/complements-alimentaires/pull/934

authors: alemangui amandinegueg

repo: betagouv/complements-alimentaires


text:
[Draft] Import des données sans écraser les modifications manuelles ou automatiques

[x] ajoute les mixins correspondant à nos différents champs déjà existants
[x] modifie nos anciens champs en champs préfixés par  siccrf_
[x] supprime des champs SICCRF très peu utilisés (cf notebook d'analyse)
[x] la relation Part porte les 2 types de champs siccrf_ et CA_
[x] explicitation des relations entre ingrédients et substances
[ ] ajout automatique du contenu des champs SICCRF peu utilisés et supprimés dans public_comments lors de l'import
[x] ajoute les champs compl'alim utilisables par notre outil
[x] property pour unifier les champs CA_<field> et les siccrf_<field> pour les property name et is_obsolete j'ajoute aussi une annotation au ModelManager pour pouvoir filtrer sur ces "champs proprietés" (cf https://stackoverflow.com/questions/53705551/emulate-filtering-by-property-in-django-using-property-and-queryset-annotation)
[ ] modifie l'importer CSV en conséquence

Objectifs

Il est maintenant possible de faire des scripts de transformation automatique des données qui vont remplir les champs CA_* à partir des champs siccrf_*
Il est maintenant possible de faire des modifications manuelles des données dans l'interface d'admin : les champs modifiés sont enregistrés dans CA_* pour ne pas écraser les données sources siccrf_*
Lors d'un nouvel import de csv siccrf, les champs siccrf_* sont écrasés

Difficultés
L'admin django n'utilise pas les property comme champs du Form.
Piste explorée mais pas poursuivie (à la place de 12a28fa9cb56fbf97b2579c78c8383a24d674134)
Transformation des relations entre ingrédients et substances en une table unique, dans models/substance.py, en utilisant le framework dj ContentType pour faire une relation générique
mais cela semblait nous engoufrer dans une modèlisation assez peu flexible pour le futur.
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType

class IngredientSubstanceRelation(WithCreationAndModificationDate, WithHistory):
    """
    Cette relation est une "generic-relation" django qui permet de faire une table unique pour tous les types d'ingrédients (plante, micro-organisme, ingredient)
    """
    ingredient_type = models.ForeignKey(ContentType, limit_choices_to={"model__in": ("Ingredient", "Plant", "Microorganism")}, on_delete=models.CASCADE)
    ingredient_id = models.PositiveIntegerField()
    ingredient = GenericForeignKey('ingredient_type', 'ingredient_id')
    substance = models.ForeignKey(Substance, on_delete=models.CASCADE)
    siccrf_is_related = models.BooleanField(default=False, verbose_name="substance associée à l'ingrédient (selon la base SICCRF)")
    CA_is_related = models.BooleanField(default=False, verbose_name="substance associée à l'ingrédient")

    class Meta:
        # pour le moment il faut forcer l'indexation des GenericForeignKey
        # cela changera à l'avenir https://code.djangoproject.com/ticket/23435
        indexes = [
            models.Index(fields=["ingredient_type", "ingredient_id"]),
        ]

closes #174

L'admin django n'utilise pas les property comme champs du Form

Nouvelle Piste depuis django 5.0 à peut-être explorer : https://docs.djangoproject.com/en/5.0/ref/models/fields/#generatedfield
Cela permet de générer des champs qui sont toujours calculés à partir d'autres champs (comme des properties), sauf que c'est utilisable comme un champ normal partout car il est fourni par la DB.
Autre article intéressant : https://medium.com/@pysquad/generated-fields-in-django-a-powerhouse-for-data-efficiency-4e9606f872f6

L'admin django n'utilise pas les property comme champs du Form

Nouvelle Piste depuis django 5.0 à peut-être explorer : https://docs.djangoproject.com/en/5.0/ref/models/fields/#generatedfield Cela permet de générer des champs qui sont toujours calculés à partir d'autres champs (comme des properties), sauf que c'est utilisable comme un champ normal partout car il est fourni par la DB.
Autre article intéressant : https://medium.com/@pysquad/generated-fields-in-django-a-powerhouse-for-data-efficiency-4e9606f872f6
Merci ! J'avais commencé à explorer avec https://github.com/schinckel/django-shared-property mais les Generated Fields semblent correspondre tout à fait à notre usage !

authors: ddahan pletelli


text:
Précision à apporter

Manque une information sur le bio/local pour l'alimentation
Manque des questions sur le seconde main pour le numérique (j'achète personnellement tout sur BackMarket, le produit n'est pas neuf)
La consommation numérique au travail est oublié, perso je travail sur ordinateur et serveur, mon travail pollue.

Concernant l'alimentation bio/local, des réponses sont apportées dans la F.A.Q. De plus voir #185 pour une amélioration du modèle de calcul du poste alimentation
Sur la seconde main, nous allons tacher de la prendre en compte sur le volet action
La consommation numérique au travail relève de l'aspect professionnel et n'est donc pas à prendre en compte (cela rentre dans le périmètre de comptabilité de l'entreprise). Nos Gestes climat s'intéresse à l'aspect personnel.

Concernant l'alimentation bio/local, des réponses sont apportées dans la F.A.Q. De plus voir #185 pour une amélioration du modèle de calcul du poste alimentation
Sur la seconde main, nous allons tacher de la prendre en compte sur le volet action
La consommation numérique au travail relève de l'aspect professionnel et n'est donc pas à prendre en compte (cela rentre dans le périmètre de comptabilité de l'entreprise). Nos Gestes climat s'intéresse à l'aspect personnel.

authors: Benjamin-Boisserie-ABC publicodes

repo: betagouv/ecolab-data


text:
Fiabiliser le suivi legislatif

À mesure que notre couverture législative augmente #714, il devient nécessaire d'améliorer notre suivi des évolutions législatives afin de limiter le risque d'informations obsolètes dans notre base de règle.
Actuellement le process de suivi est peu automatisé, et la plupart des informations sont dans notre esprit. Nous savons par exemple qu'au 1er janvier il faut mettre à jour le SMIC, ou bien que le gouvernement a annoncé une baisse de charge applicable à partir de telle date.
Pour rendre plus systématique la vérifications des évolutions, je propose d'utiliser une application type TODO-list (ou équivalent) qui propose les fonctionnalités suivantes :

Possibilité de définir un rappel et une périodicité (exemple taux versement transport tous les 1er juillet)
Possibilité de valider le TODO (la vérification a été effectuée et la règle éventuellement mise à jour) ou de “snoozer” si l'information n'a pas encore été publiée (exemple: la CIPAV qui n'a pas encore communiqué sur les nouveaux barème de l'année).
Application collaborative, on voit les actions effectuées par les autres membres
Board public
Intégration Github ?

Qu'en pensez-vous sur le principe ? Je n'ai pas encore investigué les applications qui pourraient le mieux convenir, mais je pense qu'il y a un besoin et qu'une simple application de TODO pourrait convenir (personnellement j'utilise Microsoft To-Do que je trouve pas mal, mais pas de religion sur le sujet). Cela permettrait aussi à l'avenir de faciliter l'intégration d'une nouvelle personne chargée de ce suivi.

Ca me semble une bonne solution :+1:. Je n'ai pas non plus de religions sur le sujet, et je doute qu'il existe des intégrations github native. Il est sans doute possible de bricoler quelque chose via zappier.

Oui, ceci dit il me semble plus structuré de mettre les contraintes de dates dans la base de code elle-même. Ce sera moins évident comme processus de mise-a-jour juridique, mais est-ce que ce n'est pas une garantie plus solide pour le futur?
Cas pathologiques que je peux imaginer: la todo-list en question pourrait référencer des règles qui sont outdated (car évidemment la synchro avec la base de code ne sera pas faite, et serait discutable), ou bien les règles nouvelles ne sont pas intégrées à la todo-list par oubli.
J'ai l'impression qu'une bonne intégration avec un logiciel extérieur nécessiterait tout au moins un mapping type db SQL (avec des contraintes bien définies) avec des external ids. Sinon c'est la porte ouverte...

Je ne suis pas sûr qu'on ait besoin d'avoir une forte intégration avec les règles en elles-mêmes. L'idée c'est d'avoir un rappel "vérifier le montant du SMIC", et à la limite peu importe que la règle correspondante ait été renommée ou ré-organisée. D'accord avec toi dans l'autre sens en revanche, il y a un gros risque d'oublier de mettre à jour la TODO list lorsqu'on intègre un nouveau dispositif.

Je trouve que la question de la forte intégration est un débat intéressant en fait, ca me semble toucher à la raison d'être de ce genre de travaux.
En particulier, sur la question de la sémantique: que veut dire "SMIC" dans ta phrase? La réponse n'est pas si simple qu'elle n'en a l'air, tout dépend de ton référentiel: la loi? le bofip? la base de règles mon-entreprise? Est-on sur qu'il n'y a pas d'ambiguite et que les correspondances se font facilement entre les differents referentiels / langages?
Justement est-ce que la formalisation des règles n'est-elle pas sensée apporter la meilleure désambiguation possible à ce genre de questions? Les règles pourraient aussi avoir l'ambition d'être des références en dehors du monde des simulateurs pour lesquelles elles sont utilisées maintenant (mais à revoir le sens de règle dans ce cas, il vaudrait mieux parler des "entités" ou "concepts" (j'aime pas trop) ou encore simplement "variable"?).
Dans le cas du SMIC c'est sans doute simple et sans ambiguite. Mais attention à se mettre dans les shoes de la personne du futur qui viendra lire la todo "mettre à jour le plafond de CA des entrerprises trucbidulisées par la loi 231241" et qui devra retrouver dans la base de code une variable du genre "entreprise . loi 231241 . revenu total" et y modifier un cas qui correspond à une autre variable "trucmachin" (car évidemment rien ne s'écrit pareil partout, c'est bien le pb que je soulève).

Pour info, l'idée de Catala d'annoter directement la base de textes juridiques est l'extension logique de cette réflexion. J'ai même pu coder en utilisant l'API Legifrance un petit bot qui vérifie la date d'expiration de tous les articles de loi utilisés dans un programme Catala (sous réserve de bien avoir mis dans le code l'id Legifrance à chaque fois), et affiche un warning pour les articles expirés ou arrivant bientôt à expiration.
https://twitter.com/DMerigoux/status/1255804492471287808
https://twitter.com/DMerigoux/status/1252914283836473345

authors: denismerigoux johangirod lajarre mquandalle

repo: betagouv/mon-entreprise


text:
Mécanisme recalcul

En travaillant sur l'implémentation du quotient familial, j'ai découvert que l'implémentation de son plafonnement nécessite de lancer un nouveau calcul avec des paramètres différents, cf. https://bofip.impots.gouv.fr/bofip/2494-PGP
Je ré-ouvre donc l'issue consacrée à un mécanisme de "sous-simulation" (ex #764) car il y a maintenant 3 cas d'usages :

Calculer le SMIC net imposable (sans le coder en dur)
Calculer le plafonnement de l'exonération JEI (correspondant à 4,5 SMIC)
Calculer le plafonnement du quotient familial

Ce mécanisme permet de calculer un objectif en amendant localement certaines variables (contrairement au mécanisme remplace dont le but est précisément de remplacer globalement une variable).

J'ai retiré le commit non finalisé qui implémentait le quotient familial (à continuer ultérieurement).


text:
🛑 API Camino is down

In 40d4fc2, API Camino (https://api.camino.beta.gouv.fr/titres) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API Camino is back up in df71711.


text:
Salaire net après impôts

La réforme de l'impôt à la source introduira sur les fiches de paie un nouveau salaire. Il faut qu'on l'intègre avant l'automne.
On introduirait une version ultra simple à calculer : l'impôt neutre. Il est pertinent et nous évite de dérouler la complexité de la situation du ménage et des rémunérations autres que le salaire.
Il remplacerait alors le 4ème élément de l'écran d'accueil, les aides employeur, que l'on intégrerait intelligemment dans le "salaire chargé", auquel elles se retranchent (elles en sont aujourd'hui trop éloignées).
Exemple artisanal mais qui me semble intuitif et suffisant pour attirer l'attention :
Salaire chargé -------------  3500 €  :heavy_minus_sign:    180 € :gift: :hourglass_flowing_sand:

Barème du taux neutre : https://www.legifrance.gouv.fr/affichCode.do?cidTexte=LEGITEXT000006069577&idSectionTA=LEGISCTA000033780155&dateTexte=20190101

Attention aux exceptions pour l'Outr-Mer

repo: betagouv/syso


text:
phone number + password login mechanism

since the phone number plugin login the user by default on verification i don't see a reason why the mechanism isn't there yet
and if not planned for the soon future i think removing "allowing users to sign in" from the docs would be better, since i spent a good amount of time implementing the phone number functionality thinking that i will be able to sign users in using it just to get surprised that i can't lol

well that shouldn't be the case you can try it on 0.8.4-beta.1. Will be merged soon!
await authClient.signIn.phoneNumber({
    phoneNumber: "+123456789",
    password: "password",
    remeberMe: true //optional defaults to true
})

authors: Bekacru oYwyh

repo: better-auth/better-auth


text:
Product management

CRUD for product.

Written by @xqliu
Created at 2014-12-30T21:40:40.000+0800
Link to http://betterlife.atlassian.net/browse/BE-52

Product should be linked to a supplier

Written by @xqliu
Created at 2014-12-30T21:42:09.031+0800

repo: betterlife/psi


text:
Problems with updating lock screen capture

Is there an existing issue for this?

[X] I have searched the existing issues

Operating system
Ubuntu 20.04
Installation method
Manual (please specify in the description!)
Betterlockscreen & Dependency-Versions
[B] Betterlockscreen

Betterlockscreen: version: v4.0.3 (dunst: false, feh: true)
i3lock: version 2.13.c.4-33-g380a10a (2022-02-03) © 2010 Michael Stapelberg, © 2015 Cassandra Fox, © 2021 Raymond Li
/usr/local/bin/betterlockscreen: line 937: convert: command not found
feh version 3.8-6-g125556c
Compile-time switches: curl verscmp xinerama

Also, i add dunst version:
Dunst - A customizable and lightweight notification-daemon 1.4.1 (2019-07-03)

Bug description
I cant set background for lock-screen. It return me errors. I think, this can be related with dunst, but im ont sure.
I installed all dependencies from your man
Also, i facing with weird systemctl output.
Steps to reproduce
.
Relevant log output
Problem with lock-screen background:

> file kosmo_gui.png
kosmo_gui.png: PNG image data, 1600 x 900, 8-bit/color RGB, non-interlaced
[I] [16:06:21] valera@valera-thinkpad /home/valera/Downloads
> betterlockscreen -u kosmo_gui.png
[B] Betterlockscreen
Error org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.dunstproject.cmd0”
Failed to communicate with dunst, is it running? Or maybe the version is outdated. You can try 'dunstctl debug' as a next debugging step.
[*] Updating image cache...
[=] Detected 3 display(s) @ 6720x1440 total resolution
[=] Original image(s): kosmo_gui.png kosmo_gui.png kosmo_gui.png
[=] Processing display: eDP-1 (1)
[=] Resolution: 1600x900
[*] Resizing base image...
/usr/local/bin/betterlockscreen: line 447: convert: command not found
[*] Rendering 'dim' effect...
/usr/local/bin/betterlockscreen: line 460: convert: command not found
[*] Rendering 'blur' effect...
/usr/local/bin/betterlockscreen: line 474: convert: command not found
[*] Rendering 'dimblur' effect...
/usr/local/bin/betterlockscreen: line 491: convert: command not found
[*] Rendering 'pixel' effect...
/usr/local/bin/betterlockscreen: line 507: convert: command not found
[*] Rendering 'dimpixel' effect...
/usr/local/bin/betterlockscreen: line 519: convert: command not found
[*] Rendering 'color' effect...
/usr/local/bin/betterlockscreen: line 531: convert: command not found
[=] Processing display: DP-2-1 (2)
[=] Resolution: 2560x1440
[*] Resizing base image...
/usr/local/bin/betterlockscreen: line 447: convert: command not found
[*] Rendering 'dim' effect...
/usr/local/bin/betterlockscreen: line 460: convert: command not found
[*] Rendering 'blur' effect...
/usr/local/bin/betterlockscreen: line 474: convert: command not found
[*] Rendering 'dimblur' effect...
/usr/local/bin/betterlockscreen: line 491: convert: command not found
[*] Rendering 'pixel' effect...
/usr/local/bin/betterlockscreen: line 507: convert: command not found
[*] Rendering 'dimpixel' effect...
/usr/local/bin/betterlockscreen: line 519: convert: command not found
[*] Rendering 'color' effect...
/usr/local/bin/betterlockscreen: line 531: convert: command not found
[=] Processing display: DP-2-2 (3)
[=] Resolution: 2560x1440
[*] Resizing base image...
/usr/local/bin/betterlockscreen: line 447: convert: command not found
[*] Rendering 'dim' effect...
/usr/local/bin/betterlockscreen: line 460: convert: command not found
[*] Rendering 'blur' effect...
/usr/local/bin/betterlockscreen: line 474: convert: command not found
[*] Rendering 'dimblur' effect...
/usr/local/bin/betterlockscreen: line 491: convert: command not found
[*] Rendering 'pixel' effect...
/usr/local/bin/betterlockscreen: line 507: convert: command not found
[*] Rendering 'dimpixel' effect...
/usr/local/bin/betterlockscreen: line 519: convert: command not found
[*] Rendering 'color' effect...
/usr/local/bin/betterlockscreen: line 531: convert: command not found
[*] Creating canvas: 6720x1440
[*] Rendering final wallpaper images...
[*] Rendering final lockscreen images...
/usr/local/bin/betterlockscreen: line 541: convert: command not found
/usr/local/bin/betterlockscreen: line 542: convert: command not found
/usr/local/bin/betterlockscreen: line 545: composite: command not found
/usr/local/bin/betterlockscreen: line 547: convert: command not found
rm: cannot remove '/home/valera/.cache/betterlockscreen/current/shadow.png': No such file or directory
rm: cannot remove '/home/valera/.cache/betterlockscreen/current/rectangle.png': No such file or directory
[+] Done

Problem with systemctl:
> systemctl status betterlockscreen@$USER
● betterlockscreen@valera.service - Lock screen when going to sleep/suspend
     Loaded: loaded (/etc/systemd/system/betterlockscreen@.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2022-03-17 15:58:07 MSK; 10min ago
    Process: 208090 ExecStart=/usr/bin/betterlockscreen --lock (code=exited, status=203/EXEC)
    Process: 208091 ExecStartPost=/usr/bin/sleep 1 (code=exited, status=0/SUCCESS)
   Main PID: 208090 (code=exited, status=203/EXEC)

мар 17 15:58:06 valera-thinkpad systemd[1]: Starting Lock screen when going to sleep/suspend...
мар 17 15:58:06 valera-thinkpad systemd[1]: betterlockscreen@valera.service: Main process exited, code=ex>
мар 17 15:58:07 valera-thinkpad systemd[1]: betterlockscreen@valera.service: Failed with result 'exit-cod>
мар 17 15:58:07 valera-thinkpad systemd[1]: Failed to start Lock screen when going to sleep/suspend.
lines 1-11/11 (END)

If convert is missing, you need to install ImageMagick.

Thanks, mate! Thats worked. Problem was, that i just downloan ImageMagick bin-file and put it in /bin directory.
Now i found manual, how to install it on Ubuntu. And problem solved)
Link on manual, maybe it will be usefull 2 someone:
https://www.tecmint.com/install-imagemagick-on-debian-ubuntu/

authors: HappyCthulhu jeffmhubbard

repo: betterlockscreen/betterlockscreen


text:
Make Field 25 compatible with specification

The implementation for field 25 was assuming a Bank dependent format,
not directly compatible with the MT940 specification. It does additional
parsing by splitting the field into bank_code, account_number and
account_currency.
This patch introduces a new, specification compatible Class for field
25. It only provides the account_identifier field.
Backward compatibility on the API level is provided by falling back to
the original class when requested. It prints a deprecation warning in
this case.
The change is not compatible when dumping the objects as class names
and directly available fields have changed.

This is the first commit in a series to tackle one part of #11.
@tordans @averell23 could you review these changes so I can tackle the issues and then progress with the other classes?
Thanks

Hi @huerlisi sorry for the late response. We plan to look into this next week. Thanks for your contribution!
Tobias

Looks good. Test failures were due to bugs in travis... betterplace tests also pass.

@huerlisi - merged and released version 1.5.0

authors: averell23 huerlisi tordans


text:
🛑 Esra BULUT is down

In 0b0b994, Esra BULUT (https://esrabulut.com.tr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Esra BULUT is back up in ae562f4 after 16 minutes.

repo: betterwithagency/status-page


text:
Fixes #7 - sync DOM with scope.model

Only one problem I see here... if some use filtered ngRepeat. In such case DOM element index will differ from model index. I will solve this another time.

Looks great

I made you a collaborator so you can push to angular-dragula directly.

authors: bevacqua luckylooke

repo: bevacqua/angular-dragula


text:
Option to drop an item on top of an existing one

I really like the simplicity of dragula, respects for this.
However, I have a use-case that would require an extension to the drop behaviour. I am trying to build something that resembles the app-launcher on iOS (and also some Android) devices.
That means: I want to drag an item and drop it either in-between two existing items or on-top of an existing item.
If I drop it between items, it should be placed in this new position, just like the existing dragula behaviour.
But if I place it on top of another item, I want to react on this by creating a folder item containing both items (which would be functionality I would implement in a custom JS function).

You could easily do this .on('drop') modifying the DOM.

@bevacqua yea we can handle this by modifying the DOM in .on('drop', function (el, target, source, sibling) {}); but how we will detect on which div the item has been dropped?

using sibling ?
but if we use sibling to detect on which div the item has been dropped then there are some cases         in which sibling will be passed as null even though mouse pointer is on div in that case there will be no way to detect on which div it has been dropped.

what is suggest is we can pass elementBehindCursor in .on('drop') this will make it easy to detect on which div item has been droped. In this case if item is been dropped on specific div elementBehindCursor will be that div.

what do you think?

Suppose each ---- is an item and the box is a container. When you drop an item in it, you get target as the container, sibling as the previous sibling or null if its the last item in the container. You could get the item itself by doing $(sibling).prev().add($(container).children().last()).first().
 _____
|-----       |
|-----       |
|-----       |
|_____|

I tried this approach, but it did not work reliable enough for me. I ended up with putting each drop target in its own container. This worked, but I'm not sure how good the performance will be if there are tons of potential drop targets. It would be much more helpful in this case if the drop targets would react directly on hover.

@bevacqua yeah that good i guess we can achieve what @derwaldgeist want from the suggestion you gave but consider following scenario :
 _____
|-----|
|---- |<--
|-----|<~~
|_____|

suppose i want to add an item to the div indicated with <-- now suppose i start to drag div from source move it over div indicated with <~~ and then over div above it so it goes from bottom to top.
Now my cursor is over <-- and the shadow element created will be between <~~ and <--
so now when i drop the element supposedly over <-- but in .on(drop) i will get sibling = <~~ and not sibling = <--
understood?
any idea how we can handle this?

@bevacqua any updates?

I was able to accomplish this by dropping it inside of the item and setting the item's css to hide things of that class inside of it.
Then, I accessed the container in the drop event to have something happen on drop.
The only difference is you need to make the container the element you want to drop it on, instead of the element containing the thing you want to drop it on.

Use Slack for support requests. See #248.

How to solve this please.. http://stackoverflow.com/questions/34584931/how-to-change-elements-being-copied-on-dragging-using-dragula-js-plugin

authors: beatfreaker ben-pr-p bevacqua derwaldgeist goper-leo

repo: bevacqua/dragula