Why are the reporters for gulp-stylelint instead of just stylelint?

I would like to start promoting gulp-stylelint as the preferred way to use stylelint with gulp (instead of as part of the chain of PostCSS plugins), especially because of the ability for stylelint-specific reporting.
However, my initial concern about this plugin is that it has its own reporters instead of using stylelint's extendability. There is probably duplicated effort now between gulp-stylelint-checkstyle-reporter and stylelint-checkstyle-reporter. So I'm wondering: Why use gulp-stylelint reporters instead of standard stylelint reporters, which could then be available to stylelint users that don't use gulp?

I created those reporters because at the time there was no alternative and I had to deliver a functioning linting system for a project at work in a limited time frame.
Also, consider the following code: gulp.src('*.css').pipe(foo);
The foo will not be given an array of files. It will be spoon-fed every matched file individually – first a.css, then b.css, then c.css, etc. Not all files at once.
So, what will happen if I pass stylelint-checkstyle-formatter as an option? If I understand it correctly, it will generate as many xml-formatted strings as there are files in the project. Not too useful.
By the way, there is already a checkstyle-formatter so there's no need to roll out another implementation based on string concatenation.
I'm open to change and welcome any suggestions.

Thanks for suggested checkstyle-formatter. Didn't know about that --- will look into it.

The foo will not be given an array of files. It will be spoon-fed every matched file individually – first a.css, then b.css, then c.css, etc. Not all files at once.

That's a good point. Ideally we could share code between formatters but maybe that's not too realistic given this detail about gulp usage ...
At some point I will see if I can think of anything. And if you come up with any suggestions to modifying the stylelint formatters so that they work in this context, please let us know.

When thinking about https://github.com/olegskl/gulp-stylelint/pull/5 and reading your code I realized that I'm not sure that there is actually a problem. If you use the Node API to process stylesheet code get a stylelint result object, one for each file; and you accumulate those result objects into an array as files stream through; then you finally run that array of results through a reporter --- doesn't that actually feed really nicely into the signature of a standard stylelint "formatter"?
Like, isn't it almost the same as what stylelint's Node API does when it receives a bunch of files? https://github.com/stylelint/stylelint/blob/master/src/standalone.js#L55
A stylelint formatter should receive an array of stylelint results and output something (http://stylelint.io/developer-guide/formatters/). In the plugin you are already accumulating such an array and sending it to your reporters. So if you modify the reporters to accept stylelint result objects instead of PostCSS warning objects (which you'd have to do anyway if you switch to the Node API), your "reporters" and stylelint's "formatters" should be interoperable, right?
It would be cool if this is right, but please correct me if I'm wrong :)

I think that reporters can be entirely replaced with configuration objects. This will allow to avoid code duplication because the write logic will be contained only in gulp-stylelint.
import gulp from 'gulp';
import gulpStylelint from 'gulp-stylelint';
import textFormatter from 'stylelint-text-formatter';
import checkstyleFormatter from 'stylelint-checkstyle-formatter';

gulp.task('lint-css', function () {
  return gulp
    .src('src/**/*.css')
    .pipe(gulpStylelint({
      outputDir: 'reports/lint', // base folder
      failAfterError: true, // will emit error if results have errored
      reporters: [
        // text formatter will be used to write output to console:
        {formatter: textFormatter, show: true, save: false},
        // checkstyle formatter will be used to write output to reports/lint/checkstyle.xml:
        {formatter: checkstyleFormatter, show: false, save: 'checkstyle.xml'},
      ]
    });
});

That's looking good! A couple of ideas:

How about reportOutputDir instead of outputDir? I think that way less people will think that their CSS files are going to be output somewhere after the check.
How about changing show to log, since that's a little more precise in describing what's happening?
What do you think about having the standard test formatter run by default?

How about reportOutputDir instead of outputDir? I think that way less people will think that their CSS files are going to be output somewhere after the check.

Good point.

How about changing show to log, since that's a little more precise in describing what's happening?

log: true might also mean "write output to a .log file". Maybe console: true?

What do you think about having the standard test formatter run by default?

Assuming you meant "standard text formatter". I'm hesitant to add this feature because I'd like to keep the code and the documentation minimalistic, and let the users decide which formatters they want or don't want to use.

Maybe console: true?

Yeah, sounds good.

I'd like to keep the code and the documentation minimalistic

I understand. But am I right in thinking that this means that out of the box if you include gulp-stylelint in your pipeline you will get no report at all? I feel like that's not an ideal UX, especially not for some of the kind of devs that use stylelint (more into CSS than JS and put off by accumulating npm deps). Also, would it really involve that much additional complexity to the code, since the formatter would be drawn from stylelint?

Sorry for responding late. Is there still interest in this?
To answer you concern about:

But am I right in thinking that this means that out of the box if you include gulp-stylelint in your pipeline you will get no report at all? I feel like that's not an ideal UX...

By default the pipeline will throw an error if any error-level issues are detected. Also, if I'm not mistaken, stylelint itself is a noop if you don't provide any rules, so the behavior is consistent.

Yeah, still interested :) I had a flash of excitement for another possibility for a minute there (https://github.com/stylelint/stylelint/issues/917) but I don't think that will work unless someone has a great idea for generically solving the very problem that your plugin solves for gulp --- which is to produce reports applicable to all files even though the runner processes each file individually.

Also, if I'm not mistaken, stylelint itself is a noop if you don't provide any rules, so the behavior is consistent.

That's true, but the CLI uses the text reporter as default, and the Node API uses the JSON reporter as default. I just think that for gulp-stylelint especially such a huge number of people are going to want the text reporter that it's worth a default. But it's not a big deal if you're not convinced, because it's easy enough to document what needs to be done :)
Just to recap where we are: I think we agreed that your new example configuration exemplified above was great with a couple of tweaks. That right?

Just prepared a v1 release. There's an issue though – I can't find any text formatter, so it's pretty useless at the moment ^_^.

I can help out. Should I look at that PR #6?

If you wish so. I've tried it with your checkstyle formatter and it worked well.
As far as I know, there's no separate repository for a console or text formatter, so it needs to be created. I can temporarily reuse code from my console reporter.

What about these? https://github.com/stylelint/stylelint/tree/master/src/formatters
The string formatter right now taps into postcss-reporter and does some customization. The JSON formatter is super straightforward.

Oh, I guess that might work if the user can somehow import them.

Since gulp-stylelint depends on styelint, and those are part of stylelint,
couldn't gulp-stylelint expose them, saving the need for a separate
package? E.g.
var gulpStylelint = require('gulp-stylelint');

gulpStylelint.formatter.string ...
gulpStylelint.formatter.json ...

On Tue, Mar 15, 2016 at 2:19 PM, Oleg Sklyanchuk<EMAIL_ADDRESS>wrote:

Oh, I guess that might work if the user can somehow import them.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/olegskl/gulp-stylelint/issues/3#issuecomment-197024415

That is a possibility. For JSON formatter the user can simply pass JSON.stringify :) although that's kinda weird I think.
By the way, I've just noticed that, compared to these three formatters, checkstyle formatter expects a different input.

The rule warnings should be the same (right?). But the deprecation and invalid option warnings have indeed changed and I have not yet modified checkstyle formatter. I removed those two types from the main warnings array so they could be treated specially.

I guess it makes sense exposing available stylelint formatters on gulpStylelint.
Another possibility is to allow passing formatter names as strings.
reporters: [
  {formatter: 'verbose', console: true},
  {formatter: 'json', save: 'report.json'},
  {formatter: myCustomFormatterFunction, save: 'custom-report.foo'}
]

Yeah, that would work, too.

It's done.

This has been released in 1.0.0. Feel free to re-open the issue if necessary. Thank you for your advice and contribution!


toggleExpandedKeyboard not running android

i use this repo's demo project.
function toggleExpandedKeyboard ios is running well. but,  is not running on android.
RN Version: 0.49.0

any updates about this issue ?


Title won't change?

I already have title: 'xxxxx' on my _config.yml but it won't update on my GitHub repository wepage. It works fine with some other themes but not with this one. Am I doing something wrong?

Hi @MaherDaoud1, I had the same issue, and the cause was a top level header overwriting the value in _config. To solve that, I just removed the top title in my index.md
Example of a wrong index.md

# Title that overwrites your _config.yaml

website content.....

A working example:

#### Title that does not overwrites your _config.yaml
because it has 4 #s, so it is not considered as a "title" to overwrite your config.

website content.....

Another working example:
content over your top level header also blocks the title overwrite

# Title that does not overwrites your _config.yaml

website content.....


Create a functional test for batch overloading

User Story
As a developer, I want a way to reproduce overloading the batch function so that we can work on debugging and fixing the issue.
Description/Use Case
See https://github.com/CDCgov/prime-reportstream/issues/10305 for full context, but essentially when a large number of messages are sent to RS, the batch function starts to time out. Eventually the messages get processed, but they are noisy in the interim. We do not want to have the batch function timing out and we need a way to reproduce this with a functional test case.
Risks/Impacts/Considerations
Dev Notes
Acceptance Criteria

[ ] A functional test exists that reproduces the timeout

We will prefer to set up and monitor azure dashboards to track performance improvements with the Batch function instead of implementing this ticket. If dashboard does not meet our needs, we will reconsider this ticket.


[Task] Communication about URL changes to existing users.

Valid for both cloud and self hosted.
This could just be a temporary popup box with message about new url formats and how they affect apps.

Design Handoff File link :
https://www.figma.com/file/b3tHFXEoghB4xCbo6FIRnH/Manual-Updates---Clean-URLs?node-id=2%3A1
cc @arunvjn


A new List.map that is both stack-safe and fast

I came across this and thought it was worth sharing: https://discuss.ocaml.org/t/a-new-list-map-that-is-both-stack-safe-and-fast/865

Fixed by #135 / #157.


Add Air Quality Cluster to All Clusters Example (#26765)

📖 Description
This PR adds the air quality cluster to the all clusters example app.
🔎 Details

adds the Air Quality Cluster to the examples/all-clusters-app/all-clusters-common/all-clusters-app.zap file.
adds the Air Quality Cluster to the src/app/zap_cluster_list.json file.

🧪 How Has This Been Tested
all-clusters-example-app built and paired with chip-tool.
requested air-quality attribute, featuremap, etc. from the air quality cluster of the all-clusters-example-app
🔗 Links/References
closes #26765

 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.


Issue 144 CheckoutService Test

PR Checklist

[x] Read the contribution guidelines
[x] Added a brief description of these changes to the top of the changelog
[x] Changes in code meet test criteria (running mvn test returns exit code 0, without errors)

PR Type

[x] Test-related

Summary
Provide more coverage to the existing test specially handling exceptions as well as private methods

Please review @bglamadrid

This looked good to me, you did cover every branch, line and statement for the service, and it ran without errors. So I merged it.
Thank you @NyorJa ! ✌


cog.py: make the command hidden

I don't really like bucket disabling the command like this. I'm going to do a push in a bit that'll allow you to hide the command via environment variable or through commands (jsk hide/jsk show).


Is Red_Lipstick is the same class as Wearing_Lipstick in the original attribute annotation format of CelebA?

Hi,
I wonder if Red_Lipstick is the same attribute as Wearing_Lipstick in the original attribute annotation format of CelebA here?
https://drive.google.com/drive/folders/0B7EVK8r0v71pOC0wOVZlQnFfaGs?resourcekey=0-pEjrQoTrlbjZJO2UL8K_WQ
if not, how did you get that annotation?
Thank you for sharing an interesting work to the community.

@a7b23 might be able to answer this question.

Hi,
We had manually curated this small dataset. SInce we required only 50 images so it was easily doable.


[proposal]: Add sensitivity check to prefetcher

Description
Proposing to add a sensitivity check to Prefetcher. This allows us to trigger prefetching with a little more accuracy by ensuring the mouse over is intentional. We can use the change in mouse position to calculate whether or not the user intends to navigate to said url.
Heavily inspired by: https://github.com/natelindev/react-use-hoverintent/blob/master/src/index.ts
Demo/Explanation
https://user-images.githubusercontent.com/9765013/220665662-5ae03a51-8cba-4fd0-a6e1-1f60e5c3dc4e.mp4
🎩 'ing instructions
Spin URL

Go to admin
Hover over sidebar navigation menu items
You shouldn't see network requests being fired if you hover over items quickly
You should see network requests being fired if you stop on an item for more than 2 seconds

Rolling your own instance ⬇

How to work with Quilt packages
Some steps to work with Quilt packages or any other package locally/in your spin instance.

Create a constellation which includes the repo Quilt

schema: v1
extend: shopify
repos:
  - web
  - argus-server
  - quilt

spin up constellation.yml

Open the quilt repo in spin and make your changes to the package
Publish the package locally with publish:local script. this puts the package in the yalc store

PKG_NAME=react-async yarn publish:local

Install yalc globally: yarn global add yalc, if yalc command is not found, export the path to global node_modules.

export PATH="$(yarn global bin):$PATH"

yalc add @shopify/react-async && restart  will grab the package from the yalc store and add it to your web repo then restart web.

Slowing things down ⬇

Go to packages/react-async/src/Prefetcher.tsx
Increase the INTENTION_DELAY_MS to 2000
On line 122 add a console.log('prefetching')
On line 123 add a console.log('not prefetching')

Then publish the package, add it into web (Follow rolling your own instance instructions), and navigate to the admin. When hovering over an item, and pausing on it, you should see prefetching in the console after 2 seconds. If you hover over quickly, prefetching shouldn't fire.

I am available to pair or demo this at anytime! 🍐
Before this can be implemented

[x] Test mousemove event and ensure prefetch is triggered/not triggered when threshold is reached/not reached
[x] Ensure all cases work as expected in web
[x] Remove console logs/ cruft
[ ] Discuss configuration, do we need to expose the sensitivity prop to consumers of this package?

/snapit

@devisscher Is there any way to reload your spin instance?  I couldn't find it in the Spin Control dashboard, or I would have done it myself.

Thank you for the reviews! @atesgoral I've updated the code to address your comments, thank you for the suggestions! 🙇♂ I also updated the tests, and the condition for calling the compare function. (Instead of checking for MouseEvent instance, we can check for the existence of clientX and clientY.


update high end of Tsfc color scale in specs.py

From Tanya:
Brian and Craig, will it be possible to change the color table on the temperature plots towards the right end when T > 90 F on the right plot and T>314K on the left plot. The current color table is confusing because it is impossible to say if temperature in the very southern part of Texas on the border with Mexico is 100F or 72F. Thank you!

I changed the colors at the top end to a brown scale.  Waiting for Tanya to make sure it satisfies the need.  Sample before/after below.
Passed pylint and pytest.

Overcome by events.


Support for Layers, Ellipses and Events

Added support for different layers and layer groups drawn in the map control
Added support for drawing ellipses with size in different units (meters, yards, pixels)
Enabled map to zoom to a certain layer
Extended documentation for new functions and objects
Added simple event handling for Enter, Leave and Click events on map elements

Added event handling feature which could be useful for other users too.


Home-assistant configuration problem

Hi,
I just tried to configure the Home Assistant component and received the error message "Invalid config for [bmw_connected_drive]: [name] is invalid option for [bmw_connected_drive]
What am I doing wrong when configuring? What am I supposed to put as name?

You have to remove the name line completely. See a working example below.
A change for the documentation is on it’s way.
 # Example configuration.yaml entry
 bmw_connected_drive:
   mycar:
     username: USERNAME_BMW_CONNECTED_DRIVE
     password: PASSWORD_BMW_CONNECTED_DRIVE
     country: COUNTRY_BMW_CONNECTED_DRIVE


[WIP] Add initial filtering page and tagging extension infrastructure

@GiudGiud once the initial tagging PR is in, this is the base needed to add your own keys (in config.yml) and have an HTML filter page available (with the base CSS and JS @friedmud provided).
Current limitations with the site as-is:

The entries do not have clickable links and do not have context beyond the name.
The current filtering logic also never down-selects when multiple filters are added (i.e., clicking one tag gets a filtered list, but the second doesn't further filter. It might even add to the list if hits are found for that tag alone).

We'll need to pursue improvements on these points within Derek's Tagview repository. For readability at the moment, I recommend that you first attempt to set up a given tag as a normal title string, instead of a simple ID as in the extension examples:
!tag name='High Temperature Gas Reactor (HTGR)' pairs=foo:baz bar:foobar

This will at least make the initial non-clickable entries usable against the current manual list of pages.
Refs #254, idaholab/moose#25388

ah I should have used this PR. Oh well.

Yeah, thought I had pointed it out in the MOOSE PR. No big deal though. I generated that JS file using Derek's tagview repo (linked in the description). Reach out if you have an issue. I was able to create a conda environment, install node, and then build using npm.

The important data portion of that file is replaced by the extension, with the rest of it governing how the filtering is done.

Closing this work moved to #283


[REQ] Craft More Than One Weapon Or Knife

i think it would be nice if you can have the option to craft multiple knifes or guns. maybe and option to have all the weapons or knifes random wear, float, or pattern but that really doesn't matter because you can change it in the edit menu anyway but still be cool.

The idea of crafting is to compose a unique weapon. Stickers, cases, etc. have quantity because they don't have attributes. And you already can have random weapons by opening cases, so this feature really does not make sense right now.

The idea of crafting is to compose a unique weapon. Stickers, cases, etc. have quantity because they don't have attributes. And you already can have random weapons by opening cases, so this feature really does not make sense right now.

I understand thankyou tho


Fix: create a shared pointer for RTP packet and pass it upwards

Fixes a bug present in XXXTransport.cpp here: https://github.com/nazar-pc/mediasoup/blob/memory-optimizations/worker/src/RTC/WebRtcTransport.cpp#L1028
A shared_ptr is being created in that scope and passing the owned RtpPacket pointer upwards. When that shared_ptr in XXXTransport.cpp goes out of scope it will decrement the ref-counter, destruct the RtpPacket instance and return the buffer to the pool while we are still using all around the pointer that is already invalidated but present in the object pool.
Inmplicit bonus: avoids cloning every original RTP packet for retransmissions. The original packet which is contained in a shared_ptr since it's parsed is used instead.

Ok, this is NOT valid.., as we are using the buffer provided by libuv to hold the RtpPacket..

Fixing the issue in another ongoing PR


Fix sign mismatch in NEON mean

Fixes native compilation on aarch64 Ubuntu 18.04.
Signed-off-by: Matthew Bentham<EMAIL_ADDRESS>

@abattery, as you recently added this file, could you help w/ this review? Thx!


Gradient norm

Hi author,
Thanks for your exciting paper!
I want to ask you how you have calculated the gradient norm in Figure 2.d. Did you run it on batch size 1 for estimating the gradient and its corresponding entropy?
Thank you!

Hi, thank you for your interest! Yes, Figure 2 d ran on batch size = 1.

Thank you for your quick response,
I am also curious about calculating the gradient norm for each sample, is it just a sum of gradients from all network parameters after each backward step?
Thank you!

Yes.
total_grad_norm = 0
for name, param in model.named_parameters():
if param.grad is not None:
grad_norm_cur = torch.norm(param.grad.flatten())
total_grad_norm += grad_norm_cur

Thank you so much!


How to shut down this issue while opening ini file

Description
What steps will reproduce the problem?

This screen keeps coming even i try to delete the file from spyder system
Traceback
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\widgets\sourcecode\codeeditor.py", line 171, in paintEvent

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\widgets\sourcecode\codeeditor.py", line 213, in paintEvent
    self.code_editor.scrollflagarea_paint_event(event)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\widgets\sourcecode\codeeditor.py", line 1445, in scrollflagarea_paint_event
    painter.fillRect(event.rect(), self.sideareas_color)
TypeError:   fillRect(self, QRectF, Qt.BrushStyle): argument 1 has unexpected type 'QRect'
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\widgets\sourcecode\codeeditor.py", line 171, in paintEvent
    self.code_editor.linenumberarea_paint_event(event)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\widgets\sourcecode\codeeditor.py", line 1178, in linenumberarea_paint_event
    painter.fillRect(event.rect(), self.sideareas_color)
TypeError:   fillRect(self, QRectF, Qt.BrushStyle): argument 1 has unexpected type 'QRect'
WARNING:spyder.widgets.github.backend:Failed to send bug report on Github. response={'code': 401, 'json': {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}}

Versions

Spyder version: 3.3.3
Python version: 3.7.2
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies
pyflakes >=0.6.0  :  2.0.0 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.2 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.13.2 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
pandas >=0.13.1   :  0.25.0 (OK)
numpy >=1.7       :  1.17.0 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.2 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.2.0 (OK)
matplotlib >=2.0.0:  3.1.1 (OK)
pylint >=0.25     :  2.2.2 (OK)

Thanks for reporting. @goanpeca, please take a look at this one.

@goanpeca, I meant in the 3.x branch. This issue was reported before and I don't know what's causing it.

This screen keeps coming even i try to delete the file from spyder system

@jhonti034, what do you mean by this?

Will take a look at it!

@goanpeca, I'll create one if you manage to reproduce and fix this bug.

I have not been able to reproduce this 🤷♂

Closing then. @jhonti034 this is probably fixed in Spyder 4, so please update to it when it comes out (in about a month or so).


Update build to use latest schema for each registry

Remove hardcoding for each Registry's schema version.
Note line 589 in build.js.

Speaking with @palemieux, we definitely DO NOT want to remove schema version number, so that build doesn't break.


Entities of same name present in subpackages are ignored

Builder generator doesn't respect relative subpackage structure of the src model when generating builders. This can cause problems when buildergenerator encounters entities of the same name but in different subpackages.
Thanks.

This presents an interesting challenge as any classes with the same name will result in builders with the same name being written into the same package.  The problem (I think) is that both builders are being generated but one is overwriting the order.
I think there are a few solutions to this problem:

provide capability to specify a custom name for the builder of a target class
provide capability to specify a specific package for the builder of a target class
provide capability to configure BG to write individual builders into same package as target class

... and probably many others.
What do you think?

As a workaround, BG can be configured to ignore one of the properties causing this multiple generation, then generate again from that node in the object graph but into a different package.


Querying relations with extra conditions in Eager Loading not working

My regular data fetching issue has been solved by this issue.
But when I need to fetch this relationship in eager loading, it always return null.
For example-
public function allMatches()
{
     return $this->hasMany('Match', 'visitant_id')->orWhere('local_id', $this->id);
}

If I need to fetch with() method, its not working.
$team = Team::where('id', 2)->with('allMatches')->first();

your relation is defined wrongly

@Dylan-DPC
Haha. I believe, you didn't read the whole things. Take a look very carefully before submitting your comment again that, @taylorotwell gave this solution here...
https://github.com/laravel/framework/issues/1272
I M NOT WRONG. I just follow him.

its not working.

Closing for lack of activity.

I am using laravel 5.2

@tisuchi For laravel 5.4 or greater, you may use https://github.com/topclaudy/compoships to solve this issue.


missing 2 bank holidays?

my understanding is that there are 8 bank holidays in a year?
this package gives 6
>>> bank_holidays_2024 = [x for x in BankHolidays().get_holidays() if x["date"].year == 2024]
>>> len(bank_holidays_2024)
6
>>> [print(x["title"]) for x in bank_holidays_2024];
New Year’s Day
Good Friday
Early May bank holiday
Spring bank holiday
Christmas Day
Boxing Day

looks like:

summer bank holiday
easter monday

missing according to google ...?

2 things!
while there is a cached file of bank holidays in the library, by default they are looked up from gov.uk:
https://github.com/ministryofjustice/govuk-bank-holidays/blob/main/README.rst?plain=1#L4-L8
you aren't specifying the division attribute so the dates coming back are common to all parts of the UK:
https://github.com/ministryofjustice/govuk-bank-holidays/blob/main/README.rst?plain=1#L40-L41
e.g. summer bank holiday 26 aug in england, northern ireland and wales, but 5 aug in scotland

amazing - thanks!


Integrate with Opengraph

https://www.opengraph.xyz/
https://github.com/wpilibsuite/sphinxext-opengraph
First image (can be under one or more paragraphs of text) is natively displayed in Discord but doesn't support this extension. See if there's a way to make it work.

Idea:

Don't use Imgur API anymore. I don't use image titles/descriptions here.
Temporarily download small image (with correct aspect ratio) during build (happens only in CI).
Replace .. imgur-image:: with native .. image:: to take advantage of native image support for opengraph and other things.
Finally at the end replace image src URL to remote Imgur URL and delete the local temporary image files.

No need to download anything. Implemented the rest.


Unexpected number error

While try use in local like:
<magic-portal src="http://localhost:xx"
It throws VM12698:1 Uncaught (in promise) SyntaxError: Unexpected number
at eval (&ltanonymous>)
at evalWithEnv (index.esm.js:1018)
at Sandbox.execScript (index.esm.js:3988)
At execute (0, eval)(internalizeString);
And the internalizestring seems magic's code as: ;(function(0,1,2,3,4,5,6,window){/*

ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
This devtool is neither made for production nor for readable output files.
It uses "eval()" calls to create a separate source file in the browser devtools.
If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
or disable the default devtool with "devtool: false".
If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
/
// (() => { // webpackBootstrap
/*/ 	var webpack_modules = ({

//<EMAIL_ADDRESS>/!!
<EMAIL_ADDRESS>!
*/
/*/ ((__unused_webpack_module, webpack_exports, webpack_require) => {

#3
There are some error in our sandbox， we will fix them later

Bug is fixed in the latest version, you may check it out later! :)

Thanks,it work~
wish this project better.

Thanks,it work~
wish this project better.

Very glad to hear this from you, appreciated it! XD


Add more details to the deadline command output?

Also, add what details you'd want to see and what format you'd want to see it in.

Yeah i supposed just using vouchers is a good alternate.
and really I'm just saying to add the persons name to it so you don't mistake your deadline for theirs's. You can see it kind happen to Extenze here https://discord.com/channels/487285826544205845/944976053821120572/975072536758992976
With 0 context its easy to mistake that as being theirs's, when its yours :P
whether that would be pinging the person, putting their discord name or IGN in plain text, or something along those lines. Up to y'all to decide what would be best.


CMake absolute paths

Currently getting a lot of warning like this when building against ROOT with CMake:
 CMake Warning at /usr/share/root/cmake/ROOTConfig-targets.cmake:1275 (message):
244   The imported target "ROOT::Fumili" references the file
245      "/usr/lib64/root/libFumili.so.6.20.04"
246   but this file does not exist.  If this target is used you need to install
247   the package that provides this file
248      dnf install /usr/lib64/root/libFumili.so.6.20.04
249   If this target is not used this warning can be ignored.

It then breaks:
Make Error at root-dict/CMakeLists.txt:13 (include):
1714   include could not find load file:
1715     /usr/share/root/cmake/modules/RootNewMacros.cmake
1716 -- Found ROOT: 6.20.04 at /usr/share/root/cmake

This is in CI which has been working until very recently.

Does this have anything to do with conda?

I thought I was using conda-forge to install, but actually let me check!

Wow, no it doesn't, I'm using the ROOT docker image. Oops!


Add a quality setting for avoiding using bbox in point group matching

Motivation and context

In some cases point groups do not represent a single object or a bounding box attached to the group does not represent the object. A new quality check option is added for such cases. The new option allows to control whether to use the bbox for point group comparisons or not.

Added a new quality setting to enable or disable using of group bbox for point group comparisons

How has this been tested?

Checklist

[ ] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit
Release Notes

New Features

Introduced a quality setting allowing users to compare point groups without bounding boxes, enhancing flexibility in point comparison methods.
Added a new checkbox in the Quality Settings Form for toggling the use of image space in point group comparisons, complete with a tooltip for guidance.

Bug Fixes

Improved handling of point comparisons by integrating the new image space setting into existing logic, ensuring accurate distance calculations.

Documentation

Updated changelog to reflect new features and settings related to point group comparisons.

Codecov Report
Attention: Patch coverage is 25.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 74.29%. Comparing base (ceba1b7) to head (b2cbc05).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8634      +/-   ##
===========================================
- Coverage    74.30%   74.29%   -0.02%
===========================================
  Files          401      401
  Lines        43419    43433      +14
  Branches      3951     3951
===========================================
+ Hits         32263    32267       +4
- Misses       11156    11166      +10

Components
Coverage Δ

cvat-ui
78.62% <60.00%> (-0.03%)
:arrow_down:

cvat-server
70.57% <27.27%> (-0.01%)
:arrow_down:


is there anyway to stop roblox from switching to shadowmap? (question)

hello again and i was wondering if there is any way for me to stop roblox from using shadowmap and start using future is bright or is my system is too outdated? (i was in the #274 and showed my specs there)

or is my system is too outdated?

Yeah, we said in that thread that your specs definitely were not enough to be running Roblox with Future lighting.


Strange link to stylesheet. Get's 404 error

I get a 404 error on the stylesheet, running the site on localhost. When checking it with the web inspector, it looks like this:
https://<IP_ADDRESS>:3001/layout.theme.styleLiquid.scss.css
The file name seems a bit odd? (It's my first time with Slate v1, so it's maybe correct?)
It's a fresh installation of the latest beta 14 and I run yarn start to upload

@Magnusvb can you please check and paste the contents of your dist/snippets/style-tags.liquid file?

@t-kelly Here are the content:
{%- if layout == 'theme' -%}
      <link type="text/css" href="https://<IP_ADDRESS>:3001/layout.theme.styleLiquid.scss.css" rel="stylesheet">
    {%- else -%}
      <link rel="prefetch" href="https://<IP_ADDRESS>:3001/layout.theme.styleLiquid.scss.css" as="style">
    {%- endif -%}

(Now I understand from where the href comes...)

Was getting the same issue in package.json I had
"@shopify/slate-tools": "1.0.0-beta.12"
updated to  "@shopify/slate-tools": "1.0.0-beta.14"
re ran npm install and the bug seems to be resolved.
@Magnusvb

@937aaron Thanks for the tip.
I also did a rerun (yarn install). Now I don't get a 404 on the stylesheet, and the link look like this:
<link type="text/css" href="//cdn.shopify.com/s/files/1/0093/8265/8107/t/3/assets/layout.theme.styleLiquid.scss.css?14630494240141035077" rel="stylesheet">
Should it not be loaded from localhost, or am I miss understand?

Anything .liquid needs to be uploaded to Shopify's servers so it's normal that you see the CDN url. Only your CSS (not .scss.liquid) and JS assets are served locally.


Why is imagePlaneOld Mesh necessary? in reconstruction.html

In addition to imagePlane Mesh
Why is it necessary to use imagePlaneOld Mesh?
And when dispose the material and geometry of imagePlane
Why not remove imagePlane Mesh?

When moving from one image to another, imagePlaneOld is the mesh for the previous image. That is needed to do a smooth transition between the two textures.
The geometry and material are disposed right before being replaced by the geometry and material of the new image. The Mesh object, which uses the geometry and material, is reused.

Sincerely yours.
thank you.


Rename to prism

[x] Rename the GitHub repository
[x] Update code to use "prism" package, not "frankenstein"
[x] Update prometheus branch to use "prism" package
[x] Update code  to use "prism", not "frank"
[x] Revise README to ensure naming makes sense
[x] Create new repository on Docker Hub
[x] Update CI to work with new names
[x] Update deployment config for new image names
[ ] Roll out new image names

[ ] to dev
[ ] to prod

[x] Update prism to depend on prometheus branch w/ prism rename

While testing on Weave Cloud, I saw:
error reading base template: Asset web/ui/templates/_prism_base.html not found

Ah! You'll need to make assets.

(in the Prometheus fork, that is)

Thanks @juliusv, that saved me a lot of time! Just posted https://github.com/tomwilkie/prometheus/pull/79 which does what you suggest.


Undoing consecutive commands on different lists results in wrong list view

If we do:
delete 1 i/ int
delete 2 i/ res
undo
undo
We will end up in list view of resume. Expected: list view of int.

Fixed with the latest PR

Also happened to redo but they share the same fix.


Is there a simple way to integrate and use app_framework in wasm app ?

App Framework is a very useful library that provides message queues, timers, subscribe/publish, and I'm trying to use it.
I found an example, but it requires WAMR-SDK to be compiled and uses some unexported APIs.
https://github.com/bytecodealliance/wasm-micro-runtime/blob/1e22d1a9e545f6efc8d793bdbe6d75165b62adf4/samples/gui/wasm-runtime-wgl/linux-build/CMakeLists.txt#L23-L29
It would be even better if it could be quickly integrated and used with some simple work like socket_wasi_ext.

Set set(WAMR_BUILD_APP_FRAMEWORK 1) on the host program
WASM APP linked with the app_framework static library

Thanks.

I made app_sdk code for C++ referring to assembly-script/wamr_app_lib and it works fine.


[docs] Amend "primaryColor" usage in "Example rendering icons (FontAwesome, regular Images)"

@nicotroia Shouldn't the primaryColor be accessed on the menuState passed to the renderItemIcon callback instead of on this.state ?

@509dave16 ah actually no, but this is a confusing example. The "primaryColor" can be any constant in-line or imported from somewhere. When I made this example, I must have had it in my state. I'll update the readme example
This would be a more real-world example:
const items = [...];
const primaryColor = '#09f';

const renderItem = () => {
  const iconColor = isPressed ? '#fff' : primaryColor;
}

Going to close this. Feel free to ask other questions though


scripts: tests: sanitycheck: Added testcases for TestCase class

These two testcases are failing for me. Please check.
FAILED test_testinstance.py::test_subcases[testcases/tests/test_a-Found a test that does not start with test_-expected_subcases1] - AssertionError: assert ['1a', '1c', ...
FAILED test_testsuite_class.py::test_get_all_testcases - AssertionError: assert 19 == 7

These two testcases are failing for me. Please check.
FAILED test_testinstance.py::test_subcases[testcases/tests/test_a-Found a test that does not start with test_-expected_subcases1] - AssertionError: assert ['1a', '1c', ...
FAILED test_testsuite_class.py::test_get_all_testcases - AssertionError: assert 19 == 7

Above tests are fixed and running.


[Core] New DiagnosticScope test and removing bug workarounds that are no longer needed

I added a test that checks the experimental feature switch is respected in the case when there are existing ActivityListeners. Adding this after I put a netcoreapp2.1 preprocessor directive around the static ActivityExtensions constructor. This created a bug where the feature switch could be off but if there were existing ActivityListeners then experimental diagnostics were being written to the listeners.
While working on this I noticed there were a couple tests with a workaround for a bug where the W3C format could not be set. This was fixed a couple years ago when W3C was set as the default for NET5+: https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/5.0/default-activityidformat-changed. The tests still have the assertions checking that the id format is W3C, which is a good sanity check.

API change check
API changes are not detected in this pull request.


Add Sampling QNN

Summary
The goal of this PR is to add a new QNN that brings in sampling functionality on top of primitives. A new SamplingQNN closed this gap.
Details and comments
Changes:

a new SamplingQNN that extends SamplerQNN. Since direct sampling is not possible with current primitives, the QNN samples samples from quasi-distributions returned by Sampler. To be revised once new primitives are introduced.
Some fixes in SamplerQNN to allow circuits without inputs and/or weights.
Some tweaks in the backward pass of EstimatorQNN to make it aligned with SamplerQNN.
Removed unnecessary normalization in SamplerQNN.
Some other tweaks in the QNNs.

Updates in the QGAN tutorial to follow in a separate PR.
Closes #556.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

78 of 82 (95.12%)  changed or added relevant lines in 5 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.07%) to 90.786%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit_machine_learning/neural_networks/estimator_qnn.py
18
20
90.0%

qiskit_machine_learning/neural_networks/sampling_qnn.py
45
47
95.74%

Files with Coverage Reduction
New Missed Lines
%

qiskit_machine_learning/neural_networks/estimator_qnn.py
2
93.68%

Totals

Change from base Build<PHONE_NUMBER>:
0.07%

Covered Lines:
3419

Relevant Lines:
3766

💛  - Coveralls

@ElePT I'm kindly asking to review the PR since you are familiar with QNNs very well. Thanks.

Do we really need to create another new class for "sampling" functionality? We can make a sampling: bool option to SamplerQNN, right?


Remove proxy from FeedRouter

Description

Function to remove (removeProxyBulk) proxy address from FeedRouter
Keep track of registered feeds (feedNames) in FeedRouter

Type of change
Please delete options that are not relevant.

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

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] If it is a core feature, I have added thorough tests.

Deployment

[ ] Should publish npm package
[ ] Should publish Docker image

Summary by CodeRabbit

New Features

Enhanced feed management in the application with the ability to add, update, and remove proxy addresses for different feed names.
Introduced a new array, feedNames, for better organization and retrieval of feed information.

Refactor

Improved event management by replacing a single event with more specific events for proxy address additions, removals, and updates.

Tests

Added comprehensive test cases to validate the functionality of adding, updating, and removing proxy addresses, ensuring robust feed management.

@coderabbitai review


Fix ONBUILD COPY

the source was missing from the second dispatch
Signed-off-by: Daniel Nephin<EMAIL_ADDRESS>(cherry picked from commit 3f2604157790408acf5ad05c74cebe105f2b6979)

Cherry pick of moby/moby#33500

LGTM
integration and unit tests are green


Make recorded file URLs public in NodeRecorder.swift

This allows us to access the recorded files from our main class.

TL;DR
Consider making it private(set) static var recordedFiles = [URL]() instead.
Or would you need a public setter as well?
I think it general it makes sense to make it accessible, in the current state I am also not sure for what the recordedFiles are used for anyway. The newly recorded URLs are appended but nothing is done with them (apart from removing them via that cleanup method)
I'm actually only using record() which creates an internalAudioFile if needed. And access it's URL via audioFile and I never bothered about this array but it still might make sense to have it accessible.

Just seeing this PR from December, sorry it slipped through the cracks @NickCulbertson! Got a notification for it this morning thanks to @misteu's comment.


Long decimals from slider value when steps are .1

Bug, feature request, or proposal:
Bug
What is the expected behavior?
The value displayed in the from to be only 1 decimal when using 1 decimal steps
What is the current behavior?
Sometimes it is one decimal, sometimes it is many more.

This can also be observed in the Material Angular documentation

What are the steps to reproduce?

Create a slider
Create a text box
Set the slider steps to .1
Bind the value of the slider to the textbox
Slide the slider around
Observe intermittent issues with long decimals

Editor URL: https://stackblitz.com/edit/angular-material2-example
App URL: https://angular-material2-example.stackblitz.io
What is the use-case or motivation for changing an existing behavior?
The existing behavior seems incorrect.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.2.8
Material 5.2.5
Is there anything else we should know?
It looks there have been attempts to address this in other areas like the thumb label. Not sure if it has come back or just never got fully addressed or if there is just something I am doing wrong.
Previous issue: https://github.com/angular/material2/issues/2511 , https://github.com/angular/material2/pull/2527

Hi with the new angular/material stack the issue is fixed for mouse event but not keybord. Try with the previous example with new angular stack : https://stackblitz.com/edit/angular-material6-example?file=app/app.component.html
Use keyboard arrow you will see the same kind of problem.

Thanks for the heads-up @H3llK33p3r, I've submitted #11574 to sort it out.

hassio 0.73.0 - this is still a problem, even using the mouse.
my input_numbers are defined in input_number.yaml as:
the High slider has this bug - the values ending with .2 .4 and .7 .8 get values like
1.2000000000000002, etc...
#max comfort for climate control
comfortctrl_high:
  name: Comfort High
  initial: 1.5
  min: 1.1
  max: 1.8
  step: 0.1

the Low slider behaves correctly.
#min comfort for climate control
comfortctrl_low:
  name: Comfort Low
  initial: 0.9
  min: 0
  max: 1
  step: 0.1

sorry - by mistake i missed to see this is angular and not [directly] relevant to home assistant/hassio issue tracker.
for now, please ignore my reporting that this is still an issue.
I'm not even sure what angular version used by home assistant (and in fact, not even certain the 2 issues / projects are related - although the behavior is clearly similar).
thanks
-a


Deeplink nonce order

What it solves
Resolves #
How this PR fixes it
How to test it
Screenshots

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 14 (35.71%)  changed or added relevant lines in 5 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.003%) to 32.191%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/logic/safe/store/reducer/gatewayTransactions.ts
0
2
0.0%

src/routes/safe/components/Transactions/TxList/TxSingularDetails.tsx
0
2
0.0%

src/routes/safe/components/Transactions/TxList/hooks/useQueueTransactions.ts
3
8
37.5%

Files with Coverage Reduction
New Missed Lines
%

src/routes/safe/components/Transactions/TxList/TxSingularDetails.tsx
1
1.79%

Totals

Change from base Build<PHONE_NUMBER>:
-0.003%

Covered Lines:
3083

Relevant Lines:
8509

💛  - Coveralls


Solder error

Hello everyone!
I just setted up solder, and when i connect to it, i get an error:
Live error: http://solder.mcwownetwork.net
Someone haves a fix?

That doesn't look like a solder install...

What do you actually mean..? It is!

The error page is not an error generated by solder. Something else in your setup is producing that error.

I see no error - and while using Internet Exploder


[Hotfix][connector-clickhouse] fix get clickhouse local table name with closing bracket from distributed table engineFull

Purpose of this pull request
close #4482

Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

@hailin0

Do you know why it used '//)' before and will it introduce regression bug?


Erro na instalação dos requirements no venv

Rodei todos os comandos normalmente. Até que um erro surgiu no meu Xubuntu 17.
Rodando o comando:

(venv) mazuh@mazuh-n4050:~/Projects/planilha_amortizacao$ pip install -r requirements.txt

A saída é:

Collecting cairocffi==0.8.0 (from -r requirements.txt (line 1))
Downloading cairocffi-0.8.0.tar.gz (79kB)
100% |████████████████████████████████| 81kB 358kB/s
Complete output from command python setup.py egg_info:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc'     to the PKG_CONFIG_PATH environment variable     No package 'libffi' found     Package libffi was not found in the pkg-config search path.     Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc'     to the PKG_CONFIG_PATH environment variable     No package 'libffi' found     Package libffi was not found in the pkg-config search path.     Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 161, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 147, in call_command
    self.run_command(cmdname)
  File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build
    self.run_command('build_ext')
  File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 75, in run
    _build_ext.run(self)
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 158, in save_modules
    yield saved
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
    yield
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 254, in run_setup
    _execfile(setup_script, ns)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 49, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-fhzgb3ev/cffi-1.10.0/setup.py", line 232, in <module>
  File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1104, in run_setup
    run_setup(setup_script, args)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 257, in run_setup
    raise
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
    yield
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 170, in save_modules
    saved_exc.resume()
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 145, in resume
    six.reraise(type, exc, self._tb)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/pkg_resources/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 158, in save_modules
    yield saved
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
    yield
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 254, in run_setup
    _execfile(setup_script, ns)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/sandbox.py", line 49, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-fhzgb3ev/cffi-1.10.0/setup.py", line 232, in <module>
  File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-se8pjqaf/cairocffi/setup.py", line 44, in <module>
    extras_require={'xcb': ['xcffib>=0.3.2']},
  File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/dist.py", line 336, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/dist.py", line 419, in fetch_build_eggs
    replace_conflicting=True,
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 854, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1126, in best_match
    return self.obtain(req, installer)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1138, in obtain
    return installer(requirement)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/dist.py", line 491, in fetch_build_egg
    return cmd.easy_install(req)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 698, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-se8pjqaf/cairocffi/

Imediatamente após isso executei os outros seguintes comandos ainda dentro do venv:
python --version

Python 3.5.3

virtualenv --version

15.1.0

pip --version

pip 9.0.1 from /home/mazuh/Projects/planilha_amortizacao/venv/lib/python3.5/site-packages (python 3.5)

Tentando rodar python ./main.py resulta em erro de "no module named 'weasyprint'".

Se não souber o que é e tiver com preguiça de rodar numa máquina virtual, tenta escrever um Dockerfile. Como é só um python sem dependências fica easy easy. Algo como:
FROM python:3.5
ADD . /planilha_amortizacao
WORKDIR /planilha_amortizacao
RUN pip install -r requirements.txt

Isso no mesmo diretório do requirements.txt vai, ao rodar um docker build, irá:

Baixar a imagem do Python direto do Dockerhub, que é fornecida pelos próprios desenvolvedores core do Python
Associar o local atual (por isso o ponto .) (repare que tem um espaço após ele) a um container que terá uma "pasta" chamada /planilha_amortizacao dentro dele.
Irá mandar o Docker entrar nessa "pasta" (que, repetindo, é uma espécie de alias pra o diretório atual)
Irá rodar os requirements.

Além dos comandos acima, creio que seja necessário adicionar mais uma linha ao Dockerfile: RUN main.py pra já rodar após o build.


Add support for any webpack assets

Hello! Thanks for your great lib, it greatly simplified route-based code splitting with SSR for me.
I would like to use it not just for React components, but for any modules Webpack can import. In the code below I use it to load the texts of markdown files. Whereas it works fine client-side, I get empty string when rendering server-side.
Is it hard to implement? Or maybe you can suggest a workaround?
if (useMarkdown) {
  const pathNoExt = sourcePath.replace(/\.md$/, '');
  return {
    component: loadable(() => import(`content/${pathNoExt}.md`), {
      render: ({ Component, loading, ownProps }) => {
        if (loading || !Component) return null;
        const { default: source } = Component;
        return (
          <MarkdownArticlePage {...ownProps} source={source} />
        );
      }
    })
  };
}

How do you bundle serverside? What webpack-loader do you use for clientside?
In case you are using pure node.js for SSR - then you may have to specify custom extension handlers to convert files to the desired format.

@theKashey thanks for your quick reply!

How do you bundle serverside?

I have a module with the only function which prerenders HTML by route’s url. This module uses react-dom/server and loadable-components/server internally. I transpile it with webpack prior to using.
export const prerender = url => {
  const app = (
    <StaticRouter location={url} context={{}}>
      <App />
    </StaticRouter>
  );
  return getLoadableState(app).then(loadableState => ({
    body: renderToString(app),
    scriptTag: loadableState.getScriptTag(),
    helmet: Helmet.renderStatic()
  }));
};

What webpack-loader do you use for clientside?

I use raw-loader to import markdown contents as is and feed it as a source property to react-markdown component.
I’m afraid I can not render markdown as react components directly using any webpack loader, as I use my existing components for that:
import React from 'react';
import Heading from 'components/Heading';
import ReactMarkdown from 'react-markdown';

const isH1 = ({ type, depth }) => type === 'heading' && depth === 1;

const renderers = {
  root: React.Fragment,
  heading: ({ level, ...rest }) => <Heading {...rest} type={`h${level}`} />
};

const Markdown = props => (
  <ReactMarkdown
    {...props}
    renderers={renderers}
    allowNode={node => !isH1(node)}
  />
);

export default Markdown;

This thing is, it works fine client-side, which is why I would expect it to work server-side as well.
Current workaround
My current workaround for now is to import markdown into JS modules and export wrapped markdown component out of there.
import source from './index.md';
import { markdownArticle } from 'components/markdownArticle';

export default markdownArticle({ source });

It works but this way I need to have both JS and md files, whereas it would be nice to have md only and work with it directly.

@theKashey Thanks! It’s working as expected and it does work fine client-side, the only problem is when I’m pre-prendering it server-side – I get nothing in this case instead of component markup.
Your snippet will log to console { default: '... markdown contents ...' }. If it was a react component (a function of props) then everything would work as expected server-side. The point of my initial question to make it work server-side even if it’s not a react component, but any module webpack can import.

Loadable components does not carry about what to render, and how you load it (more or less).
If you want to render something, what is not a renderable (ie not a react component) - use render prop to wrap it with something renderable - https://github.com/smooth-code/loadable-components#custom-loading

I seem to found the reason. It’s inconsistency between implementations of dynamic imports. I use babel plugin dynamic-import-node server-side and webpack 4 build-in dynamic import client-side.
In both cases module.__esModule is as expected undefined for markdown file, but webpack put markdown contents into the module.default, whereas dynamic-import-node right into the module.
More info and workaround: https://github.com/airbnb/babel-plugin-dynamic-import-node/issues/47
To fix it locally I have to replace this code
const { default: source } = Component;

with this:
const source = Component.default || Component;

To avoid this hacks I suggest this PR to be merged: https://github.com/smooth-code/loadable-components/pull/104

Yep, webpack is creating default exports even if they does not exists.


Mobile friendly

This PR makes this app slightly more mobile friendly by:

Automatically hiding the sidebar on smaller screens
Hiding the AGRC logo for smaller screens
Zooming to the state level was really back on a small screen so I switched it to randomly zoom to one of the four more populous city areas (SLC, Provo, Farmington & Ogden). I then made the map extent persist between sessions (on the same browser).

This PR also updates the code to take advantage of es6 language features.
I've pushed this version to the test server at: http://test.mapserv.utah.gov/atlas

Does the mime type for web assembly need to be added to IIS machines for this app to work properly?

SHould we use view padding when we identify?

Does the mime type for web assembly need to be added to IIS machines for this app to work properly?

Great catch. Do you think that this should be added to web.config or just globally to the entire server? I'm thinking globally, but maybe both just to make sure that we're covered when/if we deploy to someone else's server?

I like the idea of both. iis chokes if you duplicate them which is pretty simple to catch.

SHould we use view padding when we identify?

I'm not sure how this would apply to an identify. I can see it when loading a specific extent or setting an extent. But it doesn't seem to fit when opening a popup. Maybe I'm missing something?

In regard to the identify, i clicked a point in the upper right corner and the popup covered the graphic and it made me think of the viewport padding.
An override class would work for that media query for sure.

I started down the road of a media query and it ended up being much more complex than the simple JS solution. I was probably doing it wrong. Can we merge this for now? I thought that I saw you approve this PR but can't find a record of it. Perhaps because I've added a new commit?

Ok, How about we make the js and css methods have the same width and then we can merge.


Crop frame before encoding it

Hi Saki,
First, thank you for your share. I would like to know if there is a way to crop/manipulate each frame before encoding it.

Hi,
I add some code to apply mvp matrix to recording images.
You can change mvp matrix as you want(as you can see some sample matrix in updateViewport method in CameraGLView.java).
saki


Add Piral

Thanks for this awesome project! 👍
ℹ Repository information
The repository has:

[x] At least three issues with the good first issue label.
[x] At least 10 contributors.
[x] Detailed setup instructions for the project.
[x] CONTRIBUTING.md
[x] Actively maintained.

Here's the link to issues - https://github.com/smapiot/piral/issues :beers:

Is this repo still active @jai-deepsource ?

Is this repo still active @jai-deepsource ?

Yes, it is. :D
Thanks for adding Piral. 🙌

Hey @FlorianRappl  ! I tried to contribute to this repo as well but I haven't seen any activity in the last few months. I decided to fork it to keep it alive. Please see https://github.com/lucavallin/gfi and feel free to open a pull request there. At this time I am setting up the hosting and cleaning up the code. If you're up for it, I could use some help to convert the app from Nuxt.js & Python to Next.js & Typescript.


📃: Countdown Timer

🔴 Title: Countdown Timer
🔴 Tech stack:
HTML
CSS
JavaScript
🔴 Objective:
To create a dynamic countdown timer that counts down to a specified event or date and time, displaying the remaining days, hours, minutes, and seconds.
🔴 Summary:
The countdown timer is a basic web project that provides a visual timer counting down to a specific date or event. When the page loads, JavaScript calculates the time difference between the current time and the target time, updating the display every second. It shows a real-time countdown with intuitive design, and optionally, additional features like notifications or celebratory messages can be displayed when the countdown completes. This project helps to practice JavaScript’s setInterval function, date manipulation, and DOM manipulation skills.
📸 Screenshots
N/A

✅ Details to Include When Taking the Issue:
Name : Haseeb Zaki
Participant Role: GSSOC, Hacktoberfest

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

Someone is already working on it, so do not demotivate raise a new issue


fix: allow empty branch on sonar-scan so tag pipelines wont error

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/ankorstore/toolbelt?version=dev:4ac046ea50e09a213faab1313148a4784c1183eb


Move config from mods/ to config/ folder

Also move it automatically if needed
Resolves #64

Fixed in 3.0.21


usage help needed

I think I followed the readme correctly... I copied / updated the .env file, ran npm start. accessed the 3000 port instance from my web browser. when I do a Connect, i get:
{"code":20107,"status":401,"message":"Invalid Access Token signature"}
get the same / similiar message using the twilio chat laravel / php example.
I am pretty sure that my .env file is correct.

jack

my bad... thought that I had a good api key/secret pair. generated another set and it worked with new, valid api key / secret.


added e2e test cases for fn render cmd

This PR adds some new e2e test cases (especially negative testcases) for kpt fn render
Note for reviewers: The PR includes mostly negative testcases that causes the fn render to fail. The tests currently tests ensures exitCode is non-zero and no changes are made to the resources in the pkg. I think checking for actual error message will make the tests even more useful, but will do that in a separate PR.

Closes #1631

I think having static datasets for each test case is not scalable. There are several duplicate resources here. Instead we can have standard set to resources and use PkgBuilder to generate packages and test expected results similar to update_test.go. It is more readable IMO and consistent with pkg tests.

I think having static datasets for each test case is not scalable. There are several duplicate resources here. Instead we can have standard set to resources and use PkgBuilder to generate packages and test expected results similar to update_test.go. It is more readable IMO and consistent with pkg tests.

I kind of disagree.
Having data-driven declarative tests like is preferred over programmatic test currently used in packaging today:

Adding new tests requires no coding, just data (as we're into the whole declarative thing)
Test packages are not only useful for internal testing, they can be fetched with kpt get and provided to end-user if need be.
In the future, we will have regression testing for user issues by adding their minimum reproduce package here.
It's just more readable than writing hundreds of lines of Go code that obfuscate what the generated package actually looks. PkgBuilder and related fixtures are hundreds of lines of logic that essentially duplicate many of the production logic. This amount of logic also means there could be bugs in the test fixtures itself.

I think having static datasets for each test case is not scalable. There are several duplicate resources here. Instead we can have standard set to resources and use PkgBuilder to generate packages and test expected results similar to update_test.go. It is more readable IMO and consistent with pkg tests.

I kind of disagree.
Having data-driven declarative tests like is preferred over programmatic tests currently used in packaging:

Adding new tests requires no coding, just data (as we're into the whole declarative thing)
Test packages are not only useful for internal testing, they can be fetched with kpt get and provided to end-user if need be.
In the future, we will have regression testing for user issues by adding their minimum reproduce package here.
It's just more readable than writing hundreds of lines of Go code that obfuscate what the generated package actually looks like. PkgBuilder and related fixtures are hundreds of lines of logic that essentially duplicate many of the production data structures and logic. This amount of logic and obfuscation also means there could be bugs in the test fixtures itself leading to lower fidelity tests (Typical issue you see in unit testing)
Duplication in test data is less evil than duplication in code. We can do bulk transformation and refactoring using well ....(drum roll)...kpt!

I would recommend thinking about how to move pkg tests to this model as much as possible.

Agree with everything @frankfarzan said above. Initially I also had similar concerns about the scalability, but they faded as I wrote more tests and realized the benefits outweighs the negatives (duplication in this case) by a huge margin (re-using the same pkg in other flows such as repro, manual testing, sharing the test-case and eventually bug reporting can be done by just adding a test as a pull-request). It brings our e2e tests more closer to the end-users workflows. And starting with new tests requires copying an existing test (duplication) and it can be done by anyone (as opposed to only kpt developers can add tests today). In a way, it felt like dog fooding the `config as data' paradigm.

@frankfarzan @phanimarupaka This PR also gave me a test of negative side of config-as-data. Data seems to be verbose and any sort of bulk changes (or refactor) is going to produce large set of changes which isn't very practical for human review (works against the review/approval workflow).


VisibilitySensor onChange triggers on render

My component looks something like this
class MyComponent extends Component {
   onChange(isVisible){
       this.setState({visCount : this.state.visCount + 1}) //
   }
   render(){
       return
<VisibilitySensor onChange={(v)=>this.onChange(v)} />

   }
}

The issue is onChange is getting triggered on every render, which then triggers another render so visCount keep auto-incrementing. Am I doing something wrong here? How are you supposed to use setState in onChange?

maybe you can filter with isVisible === true because in render, isVisible is false in my case

@JadSayegh can you tell us a little more about what you're hoping to do with this example?

Hey @joshwnj , I'm trying to use it to trigger an animation on a component (animated using javascript, with setInterval) once that component becomes visible.
I haven't looked at the code since I posted this (gave up on the animation in the interest of deadlines), but I will take a look at it again tonight and elaborate the issue.

This is happening to me as well.

This still seems to be affecting me on v3.10.1.
onChange is getting called when component scrolls out of viewport, which triggers an action/reducer, state gets mapped to a prop, component gets rerendered... and onChange gets called with true again. After this onChange no longer gets triggered when scrolling the component in/out of the viewport.


How do I flash a new image or update file on a FAT storage partition using the esptool.py command line for a secure boot device? (IDFGH-14310)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
We have used custom partition tables and need to update file on storage FAT partition via command line.
# Espressif ESP32 Partition Table,,,,,
# Name,   Type, SubType, Offset,   Size,      Flags
nvs,      data, nvs,,   0x4000,
otadata,  data, ota,,  0x2000,
phy_init, data, phy,,  0x1000,
priv,     data, nvs,, 0x4000,     encrypted
storage,data,fat,,0x20000,
ota_0,0,    ota_0,,  0x170000,
ota_1,0,    ota_1,, 0x170000,

And  initialized wearleveling to FAT partition.

    esp_vfs_spiffs_conf_t conf = {.base_path = "/spiflash",
 .partition_label = "storage", .max_files = 6, .format_if_mount_failed = true};

    err = esp_vfs_spiffs_register(&conf);

    //Reading File
    FILE *fptr = fopen((const char *)file_path, "rb");

    //Writing File
    FILE *fptr = fopen((const char *)file_path, "wb");

First create spiffs folder with add files
spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)

this line add into CMakeList.txt and build project to generate stroage.bin

Then stroage.bin file flash on secureboot


Slider scroll support using mouse scroll

Before opening the issue, have you...?

[X] Searched for existing issues

Is your feature request related to a problem? Please describe
Please provide slide scroll support using mouse scroll Similar as in system volume slider from status bar.
Describe the solution you'd like
Please provide slide scroll support using mouse scroll Similar as in system volume slider from status bar.
Describe alternatives you've considered
Please provide slide scroll support using mouse scroll Similar as in system volume slider from status bar.
Anything else?
Hi,
Please provide slide scroll support using mouse scroll Similar as in system volume slider from status bar.

I'll look into it. We could use this one as somebody already implemented such a thing: https://github.com/thompsonate/Scrollable-NSSlider

This is added to , works beatifully.


RFC: Users

Users should have

unique id
set of private/public keys
username
avatar (optionally auto-generated from id)

These fields can be stored in an IPFS object referenced by an IPNS key
Ideally keys can be abrogated, username is unique and dynamic
Usernames
Decentralized unique usernames are difficult as described by Zooko's triangle. Could be achieved using

blockchain (eg Ethereum / Namecoin / Filecoin?)
Relatively slow to create and requires spending some resources / money to get a username
Federated model
Similar to how email addresses work, where a username is attached to a domain eg<EMAIL_ADDRESS>The domain takes care of ensuring uniqueness, authentication, and password recovery etc
Domain is somewhat centralized
Nicknames
User chooses a username, and if there's a conflict on some page (eg two users with the same username make comments on a PR), UI highlights the difference (eg different avatars or colours) and possibly allows the client to assign her own nickname to that user.
Spoofing can be somewhat mitigated by the UI using unique visual cues (eg auto-generated avatar, append shortened id to username)

Authentication

hash(username || password) => secret key => IPNS key
Username and password are static
No password recovery mechanism or abrogation
Federated model
username@domain
Authenticate against domain, responds with secret key => IPNS key
Private key is kept at domain
Username and password can be dynamic
Attestation
Public key is stored in some publicly accessible place with an associated username (eg keybase.io, github gist, tweet, blockchain)
Username format is eg<EMAIL_ADDRESS>or<EMAIL_ADDRESS>Private key must be manually transferred between devices

How about a model where user has 2 sets of keys:

'Account Key' - generated from entropy, kept locally (even offline), basically defines the account
'Name+password' - from hash(username || password)`

In this setup we should be able to change passwords, the hard part though is ensuring we can revoke access from the name+password keys. This could be implemented as a mix of blockchain (or federated, or with acl-crdt - https://github.com/ipfs/dynamic-data-and-capabilities/issues/25) and name/password key approach.
cc @pgte - Is there related research I missed?

@magik6k could you explain a little more what each key would be used for, and how to update passwords?

Ah I think I understand what you're saying - the Account Key is used as the "master", for example it is used to derive an IPNS key that points to an IPFS record containing the other keys.
Revoking access should be fairly straightforward if the other keys are stored with associated data indicating whether they are still valid (for example they may have expired or have been revoked)
For example let's say a user wants to sign a comment she has written on a Pull Request.
The comment signature could be composed of cert sig + cert ref where

cert sig is the cryptographic signature of the data using a Certificate key
The Certificate key is derived from

username
password
create timestamp

cert ref is the IPFS hash of a Certificate record
The certificate record contains

username
create timestamp
expiry
(Account key).public
(Certificate key).public

The Account key derives an IPNS key that points to an Account record on IPFS. The Account record contains a list of tuples certificate IPFS hash / isRevoked.
In the case where a user wants to

change their password
They create a new certificate and add it to the Account record using the Account key.
revoke their certificate
They set the isRevoked flag in the Account record for that certificate.
make changes to their comment from a different device
They either

enter the username, password and create timestamp to recreate the certificate key
create a new certificate and add it to the Account record using the Account key (they must have access to the Account key on the new device)

The renderer of any signed data (eg a Pull Request comment) must

Fetch the associated certificate
Check if the certificate is expired
Fetch the associated Account record
Verify that the certificate has not been revoked
Verify the Certificate signature over the data

This system depends on ensuring that the Account key is never compromised. This could be mitigated by having an expiry and renewal mechanism for the Account key.

I'm planning to read through a bunch of these for more ideas:
https://github.com/WebOfTrustInfo/rwot7

The peer-star team are working on peer-star-identity which should take care of a lot of the requirements for Users on IGiS.
Unique usernames would still be an outstanding issue. Filecoin will likely have naming, or alternatively we could go with local names

With respect to the unique usernames issue, the handshake project is attempting to replace DNS root servers / zone files with a blockchain. The project paper mentions a strategy for mitigating squatting that we could make use of - they reserve the top 100k domains in Alexa for entities that can prove ownership using DNSSec (eg coke.com). We could similarly reserve usernames that existed before a certain date on github / twitter / etc for users who can prove ownership through verifiable claims (attestations). peer-star-identity will provide verifiable claims management for DID


Inference in Tensorflow C++

Has anyone tried to do inference of these models in the Tensorflow C++ API?
I am using the code provided in this repository https://github.com/bitbionic/keras-to-tensorflow to freeze the model but I am struggling a bit on parsing the output (It is a re-implementation of the yolo_head function, but it is not so straightforward). I will post an update if I am able to obtain something.
Thanks.

i am，but dont get success

@rosaliabq  I have the same problem, Do you saved it?


Add LICENSE, NOTICE, README and such

Stuff and things.
🎩

@Treora updates made.

@Treora looks like the header text is a SHOULD--so we'll skip that one for now:
http://www.apache.org/dev/apply-license.html#new


fix: sqlite pragma order for auto_vacuum

Setting the auto_vacuum pragma must come before setting the journal mode otherwise it won't apply.
Simple test app:
use sqlx::sqlite::SqliteAutoVacuum;
use sqlx::sqlite::SqliteJournalMode;
use sqlx::sqlite::SqliteSynchronous;
use sqlx::Connection;
use sqlx::SqliteConnection;

#[tokio::main]
async fn main() {
    let options = sqlx::sqlite::SqliteConnectOptions::new()
        .create_if_missing(true)
        .filename("./test.sqlite")
        .synchronous(SqliteSynchronous::Off)
        .auto_vacuum(SqliteAutoVacuum::Full)
        .journal_mode(SqliteJournalMode::Wal);
    let mut conn = SqliteConnection::connect_with(&options).await.unwrap();
    let auto_vacuum: u8 = sqlx::query_scalar("PRAGMA auto_vacuum")
        .fetch_one(&mut conn)
        .await
        .unwrap();
    println!("auto_vacuum = {auto_vacuum}");
}

In current git main, if journal_mode option is set, auto_vacuum will not take affect.  Work-around is to execute a PRAGMA auto_vacuum = 1; VACUUM on the connection, but that shouldn't be needed for a newly created database.

The SQLite docs don't say anything about the relative ordering with journal_mode, but they do say the following: https://www.sqlite.org/pragma.html#pragma_auto_vacuum

The database connection can be changed between full and incremental autovacuum mode at any time. However, changing from "none" to "full" or "incremental" can only occur when the database is new (no tables have yet been created) or by running the VACUUM command. To change auto-vacuum modes, first use the auto_vacuum pragma to set the new desired mode, then invoke the VACUUM command to reorganize the entire database file. To change from "full" or "incremental" back to "none" always requires running VACUUM even on an empty database.

Yeah, I went looking for the docs on this but it's not mentioned. But this issue is visible with the SQLite command line tool as well.
For example:
$ rm -f ./new.db && sqlite3 ./new.db
SQLite version 3.42.0 2023-05-16 12:36:15
Enter ".help" for usage hints.
sqlite> pragma auto_vacuum = 1;
sqlite> pragma auto_vacuum;
1

Now enable wal mode first:
$ rm -f ./new.db && sqlite3 ./new.db
SQLite version 3.42.0 2023-05-16 12:36:15
Enter ".help" for usage hints.
sqlite> pragma journal_mode = 'wal';
wal
sqlite> pragma auto_vacuum = 1;
sqlite> pragma auto_vacuum;
0

So by choosing the ordering that SQLx is choosing, auto_vacuum may be enabled, but not always. Which is probably not expected behavior.  If I'm opening a new database and select the options for auto_vacuum  of FULL, and journal_mode of wal, I wouldn't expect to also have to go run a vacuum immediately - which is what I'm doing as a workaround, but only if the database file doesn't exist already on startup.

I can reproduce that, but going back to what the SQLite docs say, if I then run a vacuum it actually updates the auto_vacuum pragma:
$ sqlite3 ./test.db
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
sqlite> pragma auto_vacuum;
0
sqlite> pragma journal_mode = 'wal';
wal
sqlite> pragma auto_vacuum = 1;
sqlite> pragma auto_vacuum;
0
sqlite> vacuum;
sqlite> pragma auto_vacuum;
1

I think this is SQLite behaving as documented: changing the journal mode marks the database as "dirty" and so it needs an explicit vacuum for the change to the auto_vacuum pragma to apply.

The exact same behavior occurs when doing anything else in the database that marks it as dirty (using a fresh database file here):
$ sqlite3 ./test.db
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
sqlite> create table foo(bar integer, baz text);
sqlite> pragma auto_vacuum;
0
sqlite> pragma auto_vacuum = 1;
sqlite> pragma auto_vacuum;
0
sqlite> vacuum;
sqlite> pragma auto_vacuum;
1

I think there is an expecation that if I'm only setting options, and creating a new database, then I don't need to follow the note about existing databases.  I'd expect to if I had created tables.
Perhaps a documentation update on auto_vacuum:

For existing databases, or new databases combined with options such as setting a journal mode, a change to this value does not take effect unless a VACUUM command is executed.

Yeah, I suppose there's no reason not to send the auto_vacuum pragma first either way.


Use new cursor class to for marker axis navigation.

Signed-off-by: Bernd Hufmann<EMAIL_ADDRESS>Signed-Off-By: Will Yang<EMAIL_ADDRESS>

needs https://github.com/eclipse-cdt-cloud/timeline-chart/pull/237

replaced by #927. Closing it.


REQUESTING TERMINAL CODE: Remapping Caps Lock to Delete (Backspace) and vice versa

Hi,
I've just downloaded Karabiner Elements to remap my Caps Lock Key to my Delete (Backspace on PCs) Key, and vice versa if possible too (however, not essential), but I don't know what to type into terminal to achieve this. I can open up the .json file no problem, but I'm lost as to what to type.
Any help is much appreciated.
Thanks in advance!
Jamie.

They already have you covered :)
Follow their directions to open your karabiner.json from ~/.karabiner.d/configuration/ and just copy the text in that file.

Hi skarekrow,
Thank you so much for your help mate! Fixed my issue in two seconds :D Can't thank you enough, as I'm typing this with complete ease and true functionality.
Thanks again.
Jamie.

@surfingoz Please close this issue, if it is resolved.


Null value cannot be unpacked into *[16]uint8

When the value ProjectId is value is null in the database, I get these errors:
1:22AM ERR could not get by surfer email<EMAIL_ADDRESS>1:22AM ERR can not unmarshal X uuid into *[16]uint8

Here is the code. SurfersStruct was generated using schemagen:
type SurfersStruct struct {
	Email           string
	Name            string
	ProjectId       [16]byte
	SurferId        [16]byte
}

func (surfer *SurfersStruct) GetByEmail(session *gocqlx.Session, email string) {
	stmt, names := qb.Select("brain.surfers").Where(qb.Eq("email")).Limit(1).ToCql()
	res := session.Query(stmt, names).Bind(email)
	if err := res.GetRelease(surfer); err != nil {
		uy.Error("could not get by surfer email " + email)
		uy.Error(err.Error())
	}
}

I'm using github.com/scylladb/gocqlx/v2 v2.8.0.
The two fixes I see are to change ProjectId to a pointer *[16]byte or to make sure project_id is never null in the database.
This seems like the most common use case, so I'm not sure if this is a bug, if I'm doing something wrong, or if this is expected behavior for a reason.
For now I think I'll fork schemagen to replace [16]byte with *gocql.UUID or gocql.UUID.

New gocqlx release is out: https://github.com/scylladb/gocqlx/releases/tag/v3.0.1


call/cc

ref:

https://dkandalov.github.io/call-with-current-continuation
https://ds26gte.github.io/tyscheme/index-Z-H-15.html
https://www.sczyh30.com/posts/Functional-Programming/call-with-current-continuation/
https://jlongster.com/Whats-in-a-Continuation

The idea is:
-- convert current
eval :: Env -> ScmValue -> IOThrowsError ScmValue
-- to
eval :: Env -> ScmValue -> Continuation -> IOThrowsError ScmValue

-- probably?
newtype  Continuation = Continuation [ScmValue]

(+ 1 (call/cc (lambda (k) (k 2))))
;;; now, we can see it as (+ 1 []). [] stands for a hole
;;; so our continuation is (+ 1)
;;; then we invoke it by (k 2)
;;; note: convert (+ 1) => (lambda (x) (+ 1 x))
;;; so the CPS style should be:
((lambda (k) (k 2)) (lambda (x) (+ 1 x)))
;;; result: 3

Note that call/cc would return at it execute! So any other expression would not be relevant anymore after we invoke continuation.

And:
(+ 2 (+ 1 (call/cc (lambda (c) (set! r c) (c 2)))))
(r 1)
;;; => 4

The continuation is the rest of program!

Environment: https://repl.it/languages/scheme

CPS-convertion: http://churchturing.org/y/90-min-scc.pdf

replace this with # 41, CPS conversion seems easier than do it directly in Interpreter.


Add support for adding container port in OpcUa broker pod

We plan to host an Asp.Net core API inside the OPCUA broker. It will be exposed on 5000 port.
Current Helm chart does not allow adding the below under PodSpec.
    brokerPod:
      ports:
      - containerPort: 5000
      -

Please help in getting this added as this is a blocker for us.

Can we expect this change sometime soon? :) We are in urgent need of this. Please help :)

I actually do not understand this request. There is already instance level service for each broker pod, and also a configuration level service for all broker pods created by a single configuration. You can define targetports for both instance level and configuration level service. That is enough for accessing your broker's API.
From Kubernetes document, containerport is just informational, please check the below quote from Kubernetes official website:
ports ([]ContainerPort)
Patch strategy: merge on key containerPort
Map: unique values on keys containerPort, protocol will be kept during a merge
List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed.

Where should I start with this issue?

I actually do not understand this request. There is already instance level service for each broker pod, and also a configuration level service for all broker pods created by a single configuration. You can define targetports for both instance level and configuration level service. That is enough for accessing your broker's API.
From Kubernetes document, containerport is just informational, please check the below quote from Kubernetes official website:
ports ([]ContainerPort)
Patch strategy: merge on key containerPort
Map: unique values on keys containerPort, protocol will be kept during a merge
List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed.

Yes, you are right. When I opened the issue, I was unaware that it is informational, and it will work without adding the container port. So, we were actually able to move further as it worked without adding the container port. So, I would say, priority can be reduced further unless we want to allow the users to add information of ports also and this is how generally use and not sure how many are aware that it's informational only! :) Thank you