Memory leak when using MoonPhaseFinder

> What steps will reproduce the problem?
I've made a menu item in my android app to allow the user to find the next full
moon from the current date.
So, on menu item click, I call MoonPhaseFinder.findFullMoonFollowing(cal)

> What is the expected output ? What do you see instead ?
When I use this functionnality on my PC there is no problem, but when I use it
on android plateform, it is not working well, it takes a long time to find the
result and it forces the GC to run. I get this kind of logcat :
...
07-06 10:33:28.405: DEBUG/dalvikvm(509): GC_CONCURRENT freed 4688K, 23% free
18428K/23751K, paused 7ms+19ms
07-06 10:33:29.484: DEBUG/dalvikvm(509): GC_CONCURRENT freed 24K, 14% free
20452K/23751K, paused 7ms+21ms
...

> What version of the product are you using ? On what operating system ?
Last zip downloaded, running on Google Nexus S android v4.1.2

> Please provide any additional information below.
N/A

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 5 May 2014 at 1:28

Will be fixed in version 0.2.0, which has Android optimisations.


Export usePlotBandLine to be used as extension point

This allows library users to extend plotline within their own components.
As discussed in https://github.com/whawker/react-jsx-highcharts/issues/228#issuecomment-536346559

Codecov Report

Merging #237 into master will decrease coverage by 14.77%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master     #237       +/-   ##
===========================================
- Coverage    90.9%   76.13%   -14.78%
===========================================
  Files          68       11       -57
  Lines         869      176      -693
  Branches      158       34      -124
===========================================
- Hits          790      134      -656
+ Misses         66       35       -31
+ Partials       13        7        -6

Impacted Files
Coverage Δ

...-highcharts/src/components/WithHighcharts/index.js

.../src/components/HighchartsChart/HighchartsChart.js

...x-highcharts/src/components/Options3d/Options3d.js

...src/components/PlotBandLine/PlotBandLineContext.js

...ghcharts/src/components/Axis/createProvidedAxis.js

...x-highcharts/src/components/UseHighcharts/index.js

...react-jsx-highcharts/src/components/YAxis/YAxis.js

.../components/Highcharts3dChart/Highcharts3dChart.js

...t-jsx-highcharts/src/components/Loading/Loading.js

...react-jsx-highcharts/src/components/Chart/Chart.js

... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0689aeb...7d8fd8b. Read the comment docs.

Should the usePlotBandLineLifecycle.js file begin with a capital 'U' for consistency?

Should the usePlotBandLineLifecycle.js file begin with a capital 'U' for consistency?

I can rename all these. I just named it after a function name, as react kind of forces hook functions to start with uncapitalized 'use'.
During the rewrite I also thought about flattening the src directory structure, because most of the components don't need index.js anymore. Decided to suggest that later, as now it is still easy to see changes from classes to hooks on git.


Wiki Updates

Go through and edit wiki to be as understandable as possible. Add a simple tutorial that can link out to longer descriptions instead of having everything inline.

Resolved with the new docusaurus website.


⚠ Jenkins Plugins Artifactory has degraded performance

In 793da8d, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1348 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 8fa4bd2 after 12 minutes.


support ios

Category
how i can support for ios  ?

[ ] Bug
[x] Feature Request
[x] Question

Brief Intro

More Details

Not sure what you mean.


As a swodlr UI user, I want to have a convenient tool to get scene ID so that I can use it to submit the raster request

In v1 of swodlr UI, an user puts in cycle/pass/sceneID to submit a request to generate customized L2 raster products.  The scene ID can be found from the SDP SWOT_L2_HR_Raster granule in its file naming convention, iso metadata, CMR, or is calculated using an equation.
The code that calculates the scene ID via an equation is already developed in the backend service. Create a convenient tool that leverage the existing backend code to provide the end user the scene IDs using the equation.

I believe the exact issue was whether or not EDS would be handing off a concept id or a granule id for the smart handoff on SDPs. The API would then be expected to extract the cycle/pass/scene from the granule/concept id and hand it back.
The endpoint would also provide the area the granule covers which is taken from CMR.

The smart handoff capability will be in v2 UI. For v1 UI, an user will enter cycle/pass/sceneID directly without going through EDS and thus the request for a convenient tool.


Feature/issue 256 eigen 3.2.8

Submisison Checklist

[x] Run unit tests: ./runTests.py src/test/unit
[ ] Run cpplint: make cpplint [n/a]
[x] Declare copyright holder and open-source license: see below

Summary:
Upgrade from 3.2.4 to 3.2.8 Eigen.
Intended Effect:
Match latest Eigen and RcppEigen in R.
How to Verify:
Run tests.
Side Effects:
No.
Documentation:
Changed top-level readme for new library.
Reviewer Suggestions:
Anyone.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Looks good. Thanks, Bob.


Open Cosmics

[ Project Lead ] @RaoOfPhysics
[ GitHub Repo ] https://github.com/OpenCosmics/opencosmics.github.io
[ Track ] Tools: you are building a tool others can help you build, Open Data: you have data others can use and play with during the sprint
[ Level ] Beginner
Description
The aim of Open Cosmics is to build a foundational structure for the many cosmic-ray projects around the globe by providing:
a standard data format and schema for cosmic-ray data,
a repository for storing the data and
the software tools for analysing the data.

Note to the Project Lead
Congrats, @RaoOfPhysics! This is your official project listing for the Mozilla Science Global Sprint 2016. To confirm your submission, please complete the following:

[x] Provide a GitHub repository for work and discussion on your project
[ ] Confirm in a comment that at least one person will be available to review and answer questions on this project from 9-5 in their timezone on both June 2 & 3.

I will be available! :)
(Also, part of the description appears as code: can you perhaps delete the spaces or make them bullets? Thanks!)

This looks lie for for a jaded physicist like me... count me in.

@brucellino: I've updated the OP with links to the Gitter and Vidyo rooms! Hope to chat with you tomorrow.

I would also love to lend a hand if needed! Another physicist on the room, by the way ;).
I'm available UTC+1 from 10 to 5.

@tanah: Great to see you in the Vidyo room earlier. :) We're having a discussion in https://gitter.im/OpenCosmics/opencosmics.github.io/ if you want to join. I'll also re-open our dedicated Vidyo room: https://vidyoportal.cern.ch/flex.html?roomdirect.html&key=yfrN8TbpzMBl8ntNCbkqqd5s4o

@RaoOfPhysics Thanks! It's awesome to see so much people invested in the project. I'm going through the repository, reading the threads and setting everything up. I hope to get it done soon to start contributing.


warnmeldung?!

adapter.getMessage is deprecated and will be removed in js-controller 2.3. Please report this warning to the developer of this adapter!

I have the same problem after updating the js controller

for now, it's not a problem - it's an info ;)
Could it be fixed?

It already is fixed in latest version. Just not in stable repo


import from 1password error.

tools/1password_import.rb:153:in block in <main>': unimplemented: "system.folder.SavedSearch" (RuntimeError) 	from tools/1password_import.rb:85:in each'
from tools/1password_import.rb:85:in `'

Erasing the smart folders inside 1Password and then re-creating the .1pif seems to fix this error.

these 2 also need to be added to ignore:
"wallet.financial.BankAccountUS",
"wallet.government.SsnUS"


Node: Concurrent connections cause "File exists" error

Describe the bug
When triggering multiple connect() calls simultaneously, Valkey rejects the second attempt with a Error: File exists (os error 17) error. The first connection succeeds.
Expected Behavior
All connections should connect in parallel (or at least without errors, eventually).
Current Behavior
The connection attempt errors with
➜  ~ ✗ node concurrent.js
2024-10-11T04:55:37.587666Z  INFO logger_core: listen_on_socket - failed with error: File exists (os error 17)
2024-10-11T04:55:37.588198Z DEBUG logger_core: connection - new socket listener initiated
connect 2 errored [Error: File exists (os error 17)] { code: 'Unknown' }
2024-10-11T04:55:37.590424Z  INFO logger_core: Client lifetime - construct client
2024-10-11T04:55:37.590925Z  INFO logger_core: Connection configuration -
Addresses: <IP_ADDRESS>:6379
TLS mode: No TLS
Standalone mode
Read from Replica mode: Only primary
database ID: 0
Protocol: RESP3
2024-10-11T04:55:37.590960Z DEBUG logger_core: connection creation - Attempting connection to Host: `<IP_ADDRESS>`, Port: 6379
2024-10-11T04:55:37.590972Z  INFO redis::aio::connection: Creating TCP connection for node: "<IP_ADDRESS>:6379", IP: <IP_ADDRESS>
2024-10-11T04:55:37.592741Z DEBUG logger_core: connection creation - Connection to <IP_ADDRESS>:6379 created
2024-10-11T04:55:37.593183Z  INFO logger_core: connection - new connection started
2024-10-11T04:55:37.593632Z  INFO logger_core: Client lifetime - connected to server

Reproduction Steps
const { GlideClient, Logger } = require('@valkey/valkey-glide');

Logger.setLoggerConfig('debug');

(async () => {
  GlideClient.createClient({
    addresses: [{ host: '<IP_ADDRESS>', port: 6379 }],
  }).catch((err) => {
    console.log('connect 1 errored', err);
  });

  GlideClient.createClient({
    addresses: [{ host: '<IP_ADDRESS>', port: 6379 }],
  }).catch((err) => {
    console.log('connect 2 errored', err);
  });
})();

Possible Solution
No response
Additional Information/Context
No response
Client version used
1.1.0
Engine type and version
Redis 7.0
OS
macOS
Language
TypeScript
Language Version
Node 18.20.4
Cluster information
No response
Logs
No response
Other information
No response

Hi, thanks for opening the issue.
I was able to reproduce the issue on macOS, but on Linux the issue is not reproducing, hence the issue is probably with how macOS create socket file.
We will do the research and will fix ASAP.
In the meanwhile —

Generally, it is not advised to create more than one connection if no special need exist, under the hood Glide manage a multiplexed connection, and there's no need for you to manage more than one, we do it for you.
If you have a special case please share and we will advise.
Adding a short delay between the connections creation is solving the issue.
The bellow code worked without any issue:

const { GlideClient, Logger } = require('@valkey/valkey-glide');

Logger.setLoggerConfig('debug');

(async () => {
    GlideClient.createClient({
        addresses: [{ host: '<IP_ADDRESS>', port: 6379 }],
    }).catch((err: string) => {
        console.log('connect 1 errored', err);
    });
    await new Promise(resolve => setTimeout(resolve, 100));
    GlideClient.createClient({
        addresses: [{ host: '<IP_ADDRESS>', port: 6379 }],
    }).catch((err: string) => {
        console.log('connect 2 errored', err);
    });
})();

@Sebmaster A RC was released with a bug fix to this issue — you can get it using npm i @valkey/valkey-glide@next.
Note that it did pass the testing, but hasn't gone through the code freeze and stabilizing as a regular release, so running your use case tests is recommended.
A stable version is planned to be release at the end of next month.

@avifenesh Can confirm this has fixed the startup issues for our local dev.


MSeedScan  - Inode numbers from dirent and stat do not match

Hello, Chad!
Trying to set up ringserver for our seismic data archive. Got an issue around MSeedScan operation. Here is some part from ring.log
Sat Apr 04 11:05:22 2020 - ringserver version: 2020.075
Sat Apr 04 11:05:22 2020 - Ring initialized, ringsize:<PHONE_NUMBER>, pktsize: 632 (512)
Sat Apr 04 11:05:22 2020 - [MSeedScan] Inode numbers from dirent and stat do not match for /home/max/DATA/2019/SP2019/DATA/mseed2/ALFA/NT.ALFA..HHE.D.2019.100

Sat Apr 04 11:05:22 2020 -   dirent: 48883  VS  stat: 1054

And the same for the rest of the data records in data directory.
Those data was acquired via seiscom3 system. What's wrong with it? Meanwhile it's no problem reading this miniseed data with obspy library and other software dealing with miniseed.

Hello @znamy.  Well, that's strange.  The system readdir() call does the programmatic equivalent of listing a directory's contents.  While scanning the file entries, a stat() is done.  There is a sanity check that compares the inode values returned from readdir(), giving a 'dirent' and stat().  It is odd that these do not match.
What kind of file system are the files on (NFS? provided by a VM?  Docker?).  Are there any symbolic links involved?  I would appreciate learning under what scenario this is occuring.
This sanity check is not actually needed, and can probably be safely removed.  I can remove it from future releases if it seems like the scenario is going to be more common.
You may remove the check by commenting out the following code and see if the files are scanned as expected:
mseedscan.c:
    /* Sanity check that the dirent inode and stat inode are the same */
    if (st.st_ino != ede->d_ino)
    {
      lprintf (0, "[MSeedScan] Inode numbers from dirent and stat do not match for %s\n", fkey->filename);
      lprintf (0, "  dirent: %llu  VS  stat: %llu\n",
               (unsigned long long int)ede->d_ino, (unsigned long long int)st.st_ino);
      continue;
    }

Here's a test for the same thing in GNU coreutils (where the ls command comes from for many systems):
https://github.com/coreutils/coreutils/blob/master/tests/ls/stat-vs-dirent.sh
The error that comes out if the inode values do not match:
This may indicate a flaw in your kernel or file system implementation.
The flaw isn't serious for coreutils, but it might break other tools,
so you should report it to your operating system vendor.

Ok, it looks like you turned me to right direction and I've got the clue!

What kind of file system are the files on (NFS? provided by a VM? Docker?). Are there any symbolic links involved? I would appreciate learning under what scenario this is occuring.

I compiled and started ringserver under UBUNTU 18 SERVER inside VIRTUALBOX VM. And the access to the data archive was organized through shared folders system of VIRTUALBOX originally residing on NTFS volume of the host OS WIN10. It looks bit unusual, I assume. So I made a copy of some part of our data and located it on native LINUX ext4 FS of the guest OS. Since then it's all fine! May be I should change the way the data is shared between systems to SMB and try again.
Thank you for your rapid response! Your help was much appreciated!


0.10.3 doesn't work - for example in the web test page official test

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
macos
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
JS
MediaPipe version
No response
Bazel version
No response
Solution
Vision
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
go to https://codepen.io/mediapipe-preview/pen/ZEqzpRg and change 0.10.0 to 0.10.3 in both places. console shows different errors. like Uncaught (in promise) Error: StartGraph failed: $while processing the output streams of subgraph node mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph: Tag "QUALITY_SCORES" does not exist in the subgraph config

Describe the expected behaviour
it should work :) / this is happening in the last version too. using NPM and tried with the url cdn sample to be sure it wasn't an NPM problem

Standalone code/steps you may have used to try to get what you need
NA

Other info / Complete Logs
No response

@UXDart,
Could you please let us know the complete details such macOS you are using is intel Or Silicon based, In which browser you are observing the behaviour to understand the issue better from our end. Thank you!

sure, macOS 13.5 / Chrome (all last versions) / just tried on Firefox and it doesn't work also / M1 processor. the console is full of errors, there is no segmentation done. the errors are crash of the framework. 0.10.1 works... after that it never worked. thanks. same using npm or cdn urls

tested sample also on macOS Intel (not M1) / Chrome and same errors. 0.10.0 and 0.10.1 works after that the sample is missing a change or something is broken. thanks

Note that the error you are seeing is due to a mismatched version between the JS and WASM files. You should be able to get past this error by reloading the Colab. I just noticed that there is another error though. Will publish a new version.

Thanks! the other error is the one that shows using npm "Uncaught (in promise) Error: No registered object with name: mediapipe.RenderData; MakeProtoPacket failed". Thanks


Move the database wrapper into a custom new package

It was already copied like 3 times from other projects and makes the whole project and the others unnecessarily complicated (with all the tests).
It would be much better to isolate the implementation for the future to more easily detect bugs and update features.

Implemented in version v1.0.27 (4ac036334da19c5be020f7217341a7f54f465959)


Forking form: Move forking message above invalid market rules. Forking message should be top priority

It should use the same background styling as the invalid rules, same width, padding etc. 16px spacing between these two content boxes

done. closing


upgrade addon-framework to fix the issue pre-delete manifestwork is recreated

fix issue: https://issues.redhat.com/browse/ACM-9297

Thanks @zhiweiyin318!
The CI will pass after this PR:
https://github.com/stolostron/governance-policy-framework/pull/705


Forbid empty string values for container id in commands

Currently container_id is a required argument for all commands that require container_id, but there is no restriction that empty string value cannot be provided as container_id. For example :
youki --root (root_path) create --bundle (bundle path)

gives error, but
youki --root (root_path) create --bundle (bundle path) ""

does not, as (at least bash) passes "" as an empty string argument, and clap allows it, as it is a valid string value.
This PR adds forbid_empty_value to all container_id fields, which forces it to give an error message whenever empty string is provided.

Please take a look @utam0k @Furisto

Codecov Report

Merging #305 (54811bb) into main (71ddb34) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
+ Coverage   77.17%   77.19%   +0.01%
==========================================
  Files          43       43
  Lines        6139     6139
==========================================
+ Hits         4738     4739       +1
+ Misses       1401     1400       -1

Also, here changes job is not run even though there are changes in src/* file. this is probably due to
https://github.com/containers/youki/blob/main/.github/workflows/main.yml#L20
where the src/* is in quotes ('') due to which it does not match any path.
@utam0k  Should I try updating the workflow file in this PR only, or should I open a new PR for that?

Also, here changes job is not run even though there are changes in src/* file. this is probably due to
https://github.com/containers/youki/blob/main/.github/workflows/main.yml#L20
where the src/* is in quotes ('') due to which it does not match any path.
@utam0k @Furisto Should I try updating the workflow file in this PR only, or should I open a new PR for that?

Can I ask you for another PR?


Allow validating messages

Description of changes:
GroupInfo, KeyPackage and Welcome can now be validated using process_message, the same way as MlsCiphertext was validated by ExternalGroup.
Callout
The CI fails because of the aws-lc-sys problem on main.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.

Codecov Report
Attention: 86 lines in your changes are missing coverage. Please review.

Comparison is base (d9d9e2e) 91.65% compared to head (db1ad5c) 91.77%.
Report is 2 commits behind head on main.

Files
Patch %
Lines

mls-rs/src/group/message_processor.rs
0.00%
83 Missing :warning:

mls-rs/src/group/group_info.rs
0.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
+ Coverage   91.65%   91.77%   +0.12%
==========================================
  Files         169      169
  Lines       30851    31290     +439
==========================================
+ Hits        28275    28715     +440
+ Misses       2576     2575       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


DPoP for Wallet Attestation

This proposal represent an important breaking change.
https://github.com/vcstuff/draft-ietf-oauth-attestation-based-client-auth/pull/67/files

a similar discussion was proposed here
https://github.com/vcstuff/draft-ietf-oauth-attestation-based-client-auth/issues/45

Given that this proposal is still under discussion, I move the milestone to 0.7.0

Is this issue still pending? @peppelinux can we consider it closed based on this PR #138

untill the dicussion won't be closed in IETF I would not close this otherwise we lost the ref and we might lose an important breakking change
the PR is still (unfortunately) opened in the oauth attestation based client-auth repository

the client based attestation auth is changed with customized http headers
https://github.com/oauth-wg/draft-ietf-oauth-attestation-based-client-auth/pull/74/files
this issue must be closed and a new one must be open

The thread continues here: https://github.com/italia/eudi-wallet-it-docs/issues/289


Show the number of rows returned after a query in the UI

suggested here: https://evals-workspace.slack.com/archives/C055R8EUUR1/p1727115739118329

Tried solving it here:
https://github.com/METR/vivaria/pull/442


Felixstow 28524 w/ 2 sp. is s duplicate of Felixstowe 28436. Can be merged.

We now have only 28524 Felixstow United Kingdom


Add 'PROXY' to environment

Alternative use process.env.PROXY as proxySetting

@leecjson Great idea. I was going to report and solve the issue. Do you know what when wrong, cause I can not see logs from that build that fails? To the CRA maintainers can you give us feedback what do you think? @iansu @mrmckeb

@sztadii The build are stale, can't open it anymore. I think the reason is the master branch were unstable.


Element is visible but not clickable

var EC = protractor.ExpectedConditions;
var button = $('#xyz');
browser.wait(EC.elementToBeClickable(button), 5000);
button.click()

Doing browser.wait(EC.elementToBeClickable(button, 5000); when waiting for elements to be clickable isn't a safe way to go. elementToBeClickable checks if the element is visible and enable, but even if these evaluate true, the element could be 'unclickable'. I have figured out that button.click() does a mousemove to the center of the element and then a mousedown and a mouseup and while an element can be visible, its centerpoint could be outside the viewport. I then get this error doing button.click():

Failed: unknown error: Element is not clickable at point (150, -25)

I got this for example when waiting for animating elements to be clickable, because they are outside the viewport from the start and when sliding into the viewport and visible, Protractor tries to click on the element. But this can sometime give me that error printed above. Not always, because the timing varies.

Duplicate of #2139


feat(feature_flags): Allow bring your own logger to Feature Flags

Issue #, if available:
Description of changes:

Added logger parameter to initialization routines with a default of None.
If defaulted, a logger will be created.
Checklist

[x] Meet tenets criteria
[ ] Update tests
[x] Update docs
[x] PR title follows conventional commit semantics

Breaking change checklist

RFC issue #702:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks a lot for this! I'm adding type annotations so it's easier to understand that it can be either a standard logging OR our own Powertools Logger (Also std logging compliant)


Send MeterValues

Hello,
I'm trying to send meter values using ocpp_addMeterValueInput in C, but I don't know how to use this function.
Does anyone know how to use this function?

The MeterValueInput is a callback function which returns the current meter reading when it is executed. For example:
//this register is always 42Wh, but in a real world scenario, the electricity meter would update it
float dummy_energy_register = 42.f;

//defined in your user code, but the library will call it later to fetch the energy register value
float get_energy_callback() {
    return dummy_energy_register;
}

void app_main() {
    //setup code ...

    ocpp_addMeterValueInput(get_energy_callback, "Energy.Active.Import.Register", "Wh", NULL, NULL);

    //...
}

When the library is configured with a MeterValueInput, it will automatically send MeterValues messages regularly. To test this, start a transaction and wait for 60 seconds.
Feel free to reopen if you have follow-up questions.

hi @matth-x


Add job handlers for image scanning jobs.

job handler will pull manifest and send request to Clair for image scan, update the scanning state, and consolidate the scan result.

This may be delayed to Sprint 10 or 11.

fixed in #2506


Fixed an issue #12b9dd0 relating to the recent filename renaming

I guess ideally we should have something that goes through all the files grabs all the
Required() values and then test if that file exists.

Yes, this would be great. As you wrote, jpm does that already, but not sure how to utilize it within a test. Any ideas?
Honza


billing - UI - Delete test data button

BE: Provide the information to the dashboard to enable the "Delete test data" button
FE: enable the "test data deletion" only when targeting a test account

@ClaudeROSSI PR still in Requested Change on purpose?

Closing this one - changes have been made differently with another PR.

Closing this one - changes have been made differently with another PR.


Send telemetry when create and add cluster

Send telemetry when create and add cluster

Hi there! Modifying telemetry is something we do very slowly. Can you exclaim the precise purpose you have here?

@squillace For now we send telemetries when use click create kubernetes, but it does not mean they really compete the creation, we want to know how many users really create and use it, so i add telemetries when we finished create operation and add clusters.

Who is 'we' please?  You've described what your changes do, but we knew that from the Code - 'purpose' means who wants to use this information and for what?  Telemetry has a cost in terms of community acceptance and trust; any new telemetry really needs to be discussed and agreed with program managers who can factor in that cost vs. the value of what we learn from it.

@itowlson I come from VSCode Java Team, the goal of my team is to win more Java developers using Azure, and one of the BI task is to get the number of Java developer attaching Azure in VS Code.  I add this telemetry is to get the number of user who really create and use kubernetes provided by Azure and found the java user among them.

Needed a couple of tweaks and a rebase, otherwise good to go if CI passes.


Error during migration run: QueryFailedError: function uuid_generate_v4() does not exist

I'm facing the following error while executing the step number 5 in the "How to run" section on README, i.e, yarn run-migrations command.
Error and stack trace
query failed: CREATE TABLE "users" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "email" varchar NOT NULL, "password" varchar NOT NULL, "created_at" timestamp NOT NULL DEFAULT now(), "updated_at" timestamp NOT NULL DEFAULT now(), CONSTRAINT "UQ_97672ac88f789774dd47f7c8be3" UNIQUE ("email"), CONSTRAINT "PK_a3ffb1c0c8416b9fc6f907b7433" PRIMARY KEY ("id"))
error: error: function uuid_generate_v4() does not exist
    at Parser.parseErrorMessage (/home/lparolari/Projects/wellets-backend/node_modules/pg-protocol/src/parser.ts:357:11)
    at Parser.handlePacket (/home/lparolari/Projects/wellets-backend/node_modules/pg-protocol/src/parser.ts:186:21)
    at Parser.parse (/home/lparolari/Projects/wellets-backend/node_modules/pg-protocol/src/parser.ts:101:30)
    at Socket.<anonymous> (/home/lparolari/Projects/wellets-backend/node_modules/pg-protocol/src/index.ts:7:48)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:290:12)
    at readableAddChunk (internal/streams/readable.js:265:9)
    at Socket.Readable.push (internal/streams/readable.js:204:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
  length: 207,
  severity: 'ERROR',
  code: '42883',
  detail: undefined,
  hint: 'No function matches the given name and argument types. You might need to add explicit type casts.',
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'parse_func.c',
  line: '621',
  routine: 'ParseFuncOrColumn'
}

Solution
Create the extension on the database.

start the docker with docker-compose up -d

login to the container

$ docker ps
docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED         STATUS         PORTS                                       NAMES
661ea02b85eb   bitnami/postgresql:latest   "/opt/bitnami/script…"   5 seconds ago   Up 5 seconds   <IP_ADDRESS>:5432->5432/tcp, :::5432->5432/tcp   wellets-backend_postgres_1
1d68f86b57ae   bitnami/redis:latest        "/opt/bitnami/script…"   5 seconds ago   Up 5 seconds   <IP_ADDRESS>:6379->6379/tcp, :::6379->6379/tcp   wellets-backend_redis_1
$ docker exec -it 661ea02b85eb bash
I have no name!@661ea02b85eb:/$

login to postgres database

I have no name!@661ea02b85eb:/$ psql -U postgres
postgres=#

move to your database, i.e., the value of env variable POSTGRES_DATABASE (in my case, it was wellets)

postgres=# \c wellets
You are now connected to database "wellets" as user "postgres".
wellets=#

create the "uuid-ossp" extension

wellets=# CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION
CREATE EXTENSION

Please note that in order to login as postgres user on docker container I had to add the POSTGRESQL_POSTGRES_PASSWORD environment variable under the environment variables section of postgres service in docker-compose.yml file:
...

postgres:
    image: bitnami/postgresql:latest
    environment:
      - POSTGRESQL_POSTGRES_PASSWORD=myrootpassword
      - POSTGRESQL_PASSWORD=mypassword
      - POSTGRESQL_USERNAME=wellets
      - POSTGRESQL_DATABASE=wellets

...

I'm sorry but I don't know how to fix this within code, so I posted the issue for in order to help other users.
Reference

Extension exists but uuid_generate_v4 fails

It was just easy as that!
Thank you!


[NL] First start for HassGetState

Mainly a translated version of the EN sentences to get things rolling

Some parts are not tested yet (cover states) and not translated yet (cover device_classes). I will add on this in the coming days (either in this PR, or in additional ones).
Especially the cover classes might be tricky.

added a first attempt for cover class translations


Preserve Operands in Bias Fusion into FP8 GEMMs in XLA

Fixes an issue which can cause the erroneous deletion of operands when fusing a matrix bias into an FP8 GEMM.

CC @reedwm.


Refactor code to fit latest neli best practises

Refactor code to fit latest neli best practises:

https://github.com/jbaublitz/neli/pull/103
https://github.com/jbaublitz/neli/pull/110

I won't do this until the second half of january. The deadline of my uni project comes closer and I focus on that

I won't do this until the second half of january. The deadline of my uni project comes closer and I focus on that


Warning: Class __PHP_Incomplete_Class has no unserializer

Note: all the problems below completely disappear when front end is in prod mode, so this bug is related to #541. However, this is another aspect of it.

Reproduction steps:
Follow procedure here. Make sure front end is in dev (it will be, if you followed procedure).

I keep getting this error on and off (more on than off), but only on the front end. I am completely unable to debug it, don't know where to begin. Google results mostly point to cache clearing but that doesn't help - I have tried restarting the server, clearing APC cache, and clearing cache with console. I have also disabled boostrap.php.cache and load via app/autoload.php.
Other things I have tried:

Commenting out APC caching - no effect
Commenting out $kernel->loadClassCache(); - no effect

The moment of death happens in $response->send() but that's too deep down the rabbit hole for me to reliably debug further. It seems to be caused by something in AsseticBundle, but I'm not sure.

The one thing I've found that does "help" is running composer run-script post-install-cmd, which will change the situation into #541.

Screenshot of full debug screen with expanded stack trace:

Please check if the solution suggested in #541 also fixes that.

It does. :+1:


Sometimes some functions will fail and need to be restarted.

Some functions will fail after running for a period of time. For example, drop-down and zoom code intelligently prompts TAB key space not to

Please provide exact reproducable steps. From your descirpitoin I have no clue what you are refering to.
Thanks

I have not been able to recreate at will however basic's are

create a function in VS Code using powershell extension
Call that function later in script

Here's my named function : function Man_Port {
Heres result when I call itMan_Port : The term 'Man_Port' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At Z:\VSCODE\Data\Promote_apps.ps1:55 char:1

Man_Port

  + CategoryInfo          : ObjectNotFound: (Man_Port:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException


[Bug] MSI is not working in net core 2.2 Web App

Describe the bug
Unable to use MSI on net core 2.2 windows web app.
i have tried to follow tutorial on setting up MSI to access data in Azure SQL Server Database
First, i created app service and assigned system managed identity

Second i have created Azure AD Group and added  system managed identity to a group

Then  i connected to azure database right way(tm) and added Azure AD Group and granted it admin rights db_datareader db_datawriter db_ddladmin

Then i took a connection string from azure admin panel and modified it to be usable for MSI(see code below)
Then i tried to run code and it seems like it produces valid jwt token(checked under debugger)

The code giving me following problem
Exception message:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Stack trace:
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at GraphQL.WebApi.Startup.<>c.<ConfigureServices>b__4_7(IServiceProvider serviceProvider)

To reproduce
var provider = new AzureServiceTokenProvider();
var token = provider.GetAccessTokenAsync("https://database.windows.net/", "xxxxxxxxx.onmicrosoft.com").Result;
 var sqlConnection = new SqlConnection("Data Source=xxxxx.database.windows.net;Initial Catalog=testing");
sqlConnection.AccessToken = token;
sqlConnection.Open()

And when i execute following command
use master;
SELECT *
FROM sys.event_log
where event_type = 'connection_failed'

on sql server im getting following result
testing	2019-07-12 18:30:00.0000000	2019-07-12 18:35:00.0000000	connectivity	connection_failed	4	login_failed_for_user	2	2	Login failed for user.

Expected behavior
I should be able to open sql connection with this setup, but i dont
Further technical details
Microsoft.Data.SqlClient version: (4.6.1)
Microsoft.Azure.Services.AppAuthentication version: (1.2.0)
.NET target: (Core 2.2.4)
SQL Server version: (Azure SQL)
Operating system: (Azure Managed, no idea)
Additional context
Im have an app that can connect to multiple databases and i need MSI to dont share username/password and make app more secure and manageable

Hi @IdeaHunter
I'm not sure of AzureServiceTokenProvider is the correct way to acquire Managed Identity token. Please refer Microsoft documentation here on how to do the same: Get a token using C#
Also, you can try this sample app (msi-netcore-sample) that has been tested and works with Microsoft.Data.SqlClient - latest preview version.

Hi @cheenamalhotra
Thanks for help!
I Tried this code on App Service and got exception:

An attempt was made to access a socket in a way forbidden by its access permissions

However i when i tried code just for testing on a vm - it was working.
Im digging in and trying to find what may have caused it

Hi @IdeaHunter
Yes I just recalled, on app service/functions you'd have to modify the API to use MSI_ENDPOINT environment variable as host and pass MSI_SECRET to HTTP Request. App Service/Function Apps still use the old version of API. You can look at this document for more info: https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity
I will update my sample to also connect universally. I somehow was focusing only on Azure VM.

Hi @IdeaHunter
I've updated the Console App to add functionality to fetch tokens on App Service/Function.
Also, I created a new ASP.NET Sample App for deploying directly on Azure App Service: cheenamalhotra/msi-netcore-web-sample.
Everything works with Microsoft.Data.SqlClient. Let us know if you have any further questions.

@cheenamalhotra Thanks a lot for help!
I can confirm that code provided works fine for a AppService and SqlClient works as expected!
The thing that doesnt work with same configuration is Microsoft.Azure.Services.AppAuthentication
Can we please move this ticket to https://github.com/Azure/azure-sdk-for-net ?

@IdeaHunter We don't have access to transfer issues to other GitHub repositories. You'll need to file the issue there yourself.


fixed typo in scrollCollectionViewToClosetSectionToCurrentTimeAnimated

change method name from scrollCollectionViewToClosetSectionToCurrentTimeAnimated to scrollCollectionViewToClosestSectionToCurrentTimeAnimated
PTAL @erichoracek

@erichoracek any update on this?


Is this project still maintained?

@schollz Just wanted to check if this project is still being actively maintained?
Or are you perhaps looking for people to help maintain it?
(It's a really neat piece of software, would be shame to see it get abandoned - let us know if there's anything other people could do).
Thanks!
Victor

I'm here! Just been busy with other things.
I am happy to add someone else who wants to help maintain this project. Are you offering? :)


fix(FormField): missing conditions to apply container classes

🔗 Linked issue

❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

If the label prop is not passed but the label slot is used, or if a description is put but no label, the container class is ignored.
📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Thanks @Akryum! 😊


How does a Partner set this up on their tenant??

The article shows the feature exists and how to use it, but NO Steps/Links/etc on How to Set it up.
What needs to be done in Azure/on client's tenant, etc?
Thanks!

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

ID: 7b378de4-ca71-a16b-6669-369e3e3ff9d4
Version Independent ID: 1a1a6ec6-8c04-2172-7afa-49d268191687
Content: Manage multiple tenants - Microsoft 365 admin
Content Source: microsoft-365/admin/multi-tenant/manage.md
Service: microsoft-365-business
GitHub Login: @KwekuA
Microsoft Alias: kwekua

@Cloud-Monkey5000 Thank you for your feedback.  If you're a partner who has a delegated admin role and manages multiple tenants, this would automatically set up.
To gain delegated admin role, You can check - https://learn.microsoft.com/en-us/partner-center/dap-faq
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @Cloud-Monkey5000 Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


test: Add test to cover fail described by @jordan-stone

This is a continuation from #51. @jordan-stone discovered an issue with syncing of folders with symbolic links. Part of the issue has been resolved. This is a test case he discovered which still exists.

If I create a link in my local BitPocket directory and then sync to master,
unlink the link, but then create a normal file with the same name in my local Bitpocket directory
sync to master again.

After the last step, the local content has been replaced with the link again.
This patch confirms the issue still exists in Bitpocket. A fix has yet to be discovered

I added a commit which fixes the issue: it syncs local permission and file-type changes properly in the pull/push. However, it introduces a change to the format of the state files which must be addressed for graceful upgrading before it can be merged.

when will this be merged?

@aggsol I am still working to arrive at a solution which will upgrade nicely. That is, if I start with the current version of bitpocket, create some files, folders, and links; sync a few times; and then apply this patch; then the state of the system is not upgraded cleanly and there is potential for some data loss--I think anyway.

Are there more issues like this? Maybe planning a breaking 2.0 release might be in order. Sometimes there is no practical way to upgrade in a secure manner.

@aggsol ok, I was able to get it to gracefully upgrade the state file without making everything appear as new!


stable/hl-composer Hyperledger images gone from Dockerhub; redeploy

What this PR does / why we need it:
The Hyperledger Composer tools was deprecated, and eventually the Docker images on DockerHub have disappeared. Some are still using HL Composer for POCs, hence I am hosting the Docker images in my own DockerHub.
Special notes for your reviewer:
N/A
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

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

@unguiculus, I might need some help here. The original reviewers Diego and Inzamam are no longer working on this, so I will need someone else to review/approve these instead :(


useElementSize returns 0 width/height on initial render

It is only after resizing the browser window that the size is correct. This means initial render you get size 0 and can't style it in a custom way. How do you work around this?

Oh, good catch, it's weird. Thanks @lancepollard, I will check it and I'm come back to you.

I've just tried (using this example). Indeed, at the initial render, the width/height has size 0. It's the default value, and it's because until the component is mounted, we can't calculate his size.
But, when the component is mounted, the useEffect in the hook is triggered and give you the element size.
It works as expected.

I think your problem is coming from utilization of the ref given to the hook.
Can you share your code to be able to fix it ?


feat(deployment): adds support for host subpath uid/gid/perm

Description
This PR supports specifying a device volume sub-path's uid, gid, and permissions. Please see the updated JSONSchema spec below
  deviceVolumeAttachSpec:
    type: object
    properties:
      execName:
        type: string
      mountPath:
        type: string
        pattern: '^\/$|(^(?=\/)|^\.|^\.\.)(\/(?=[^/\0])[^/\0]+)*\/?$'
      subPath:
        type: string
        pattern: '^\/$|(^(?=\/)|^\.|^\.\.)(\/(?=[^/\0])[^/\0]+)*\/?$'
      uid:
        type: integer
      gid:
        type: integer
      perm:
        type: integer
    additionalProperties: false

Depends

https://github.com/rapyuta-robotics/rapyuta-io-sdk/pull/75

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


Support for retrieval of linked items

Would it be possible and easy or hard to support retreival of linked items?

I can see there's code in the serializer to handle payload.includes, but it's not clear how I should indicate to the adapter that they should be included.

It looks to me that the serializer _normalizeResponse method is expecting the call to this.normalize() to return and object with data and included, but this only returns data.

@aexmachina sorry, been very busy lately. Referenced items are included by default to help with rate limits from contentful, and are accessible if your ember model has a relationship defined. If you have a different use case then this, please let me know (maybe a demo app?) and we can work on the solution. Thanks

Thanks. Hmmn, that wasn't working for me. Maybe I was doing it wrong. I've already changed to using the Contentful lib directly because I didn't need the ember-data functionality.


Allow schema modification using hooks and configurable media assets

My motivation for this PR was to investigate how this library could be extended to accomodate dynamic schema definitions (ie: populating a select dropdown based on dynamic content). I initially attempted to use custom JS, so I made the form media assets configurable to allow extra JS and CSS as field parameters.
However, I encountered a lot of complexity when attempting to modify the React components this way, so I looked into a Python solution.
The new solution was to include an on_render parameter to provide a function that can modify the schema and ui_schema values at render-time. I have included some trivial examples in the test code and example app, but if this seems like a good fit for this library then I can look into more example cases and create proper tests.
Here is an example of the admin interface for the Todo model. The dropdown selection is populated by the database lookup performed in the hook method. It also demonstrates the custom CSS and JS usage.

I left the extra_js and extra_css fields as well in case these might be useful additions regardless of the dynamic field use-case, and I refactored the testing structure and test files.
I can update the PR to include any of the changes individually as well.

@jordaneremieff
Thanks for working on this PR.
I like both the tests configuration improvements you made and the features that were added as well. That's an awesome idea and a cool feature.
If that would be possible I'd like to do the following before we merge it:

Squash commits. Git history doesn't look clean.
There is one more TODO item in the test. Not sure how feasible it is, but I think it should be possible to finish it.
Some files don't have an empty line at the end of the file. Sorry for the nit-pick, but it's nice to fix.
Add examples for the new features in the README.md.

Closing in favour of a clean PR


Login to network

It would be useful if we would be navigated to a network's login page when it's required or be notified about this (like in Firefox or Chrome).

What do you mean by a network's login page? Is the problem that login redirects aren't happening consistently?

Maybe the problem's with the network here, but there are no redirects at all. In Firefox and Chrome I get a prompt that takes me to the login page. If I don't click on the button and I try to access a website I don't get redirected.

@kodedninja Sounds like it's related to a redirect issue that electron has had, but fixed in electron3 (which we're updating to now). When you say 'network', is this like a wifi network?

Yes, sorry. It's the wifi network of the university :)

Okay gotcha. If you're comfortable building from source, you might try the electron3 branch. Otherwise we can test this again when the next release comes out.


Trailing Spaces In Decrypted Message

Hi, how are you?
When I execute the program, the decrypted message prints into the console with the trailing spaces of the algorithm.
My solution was to create a function inside an anonymous namespace to remove the trailing spaces from the decrypted vector of ints. I call that function just before the return of decrypted_message inside the method decrypt.
Here is the function and where I call it:

I will open a Pull Request with the solution so you can check it out.
Best regards,
Ignacio

Approved your pull request, thanks :)


md-tabs indicator does not work by API

Hi,
The examples in the doc for md-tabs works.
 http://aurelia-ui-toolkits.github.io/demo-materialize/#/samples/tabs-api

But the the gist.run linked from the above page does not work. "SELECT TAB 2" button does not move the indicator.
https://gist.run/?id=6a238e618806289a3800dd4560cf1959

This issue seems like #392 but 'tabs_2' is correct.

Hi @HIRANO-Satoshi.
It's because of md-waves on tabs. The workaround mentioned in "basic use" is not applied to the gist but it is globally applied in the bridge app.
If you add this css it should work:
[md-tabs] .waves-effect {
  position: static;
}

Or, remove waves from tabs.
Unfortunately, there are some more problems with waves on tabs since (I think) the last Materialize version. For example in the "basic use" sample, the tabs show no waves effect at all. And in the code preview tabs, the effect position is wrong.

Thanks for reply.
I tried to add the [md-tabs] code to the gistrun, the indicator worked.
I agree with you about the waves. I gave up waves in our app.

All works in the demo now

Thanks!


isMounted

Is there a way to check isMounted? Specifically I am trying to follow the pattern where you check isMounted to determine if the result of an async call should handled, as documented here. I could not find isMounted, either I am looking in the wrong place or it is not exposed to Dart?

You can use better pattern. I will asume that your ajax library return Future than you can do this:
StreamSubsctiption initialLoad;
componentDidMount() {
  inialLoad = ajaxCallReturningFuture(...).asStream().listen((val) {
     //setState or anything what you want to do with result of ajax call
  })
}
componentWillUnmount() {
  // clear all subsctiption you make
  // as future return only one value your code has already been called
  // or will not be called anymore so you cleand up everything
  initialLoad.cancel();
}

That way you are not relying that code inside parsing result of ajax have to check if comoponent is still mounted or not.

You're absolutely right. This pattern is much better. In fact I'm already using a subscription like this. I guess I was just to tired to realize that the isMounted check becomes redundant in this case. Thanks for setting me straight :-).


Can't integrate Porcupine into python

I tried to integrate it into python but i got this error:
Traceback (most recent call last):
  File "SpeechRecognition.py", line 14, in <module>
    handle = Porcupine(library_path, model_file_path, keyword_file_paths=keyword_file_paths, sensitivities=sensitivities)
NameError: name 'Porcupine' is not defined

And this is my code:
# WAKE WORD
library_path = ['WakeWord/lib/${SYSTEM}/${MACHINE}/']
model_file_path = ['WakeWord/lib/common/porcupine_params.pv']
keyword_file_paths = ['WakeWord/resources/keyword_files/alexa_windows.ppn']
sensitivities = [0.5, 0.4]
handle = Porcupine(library_path, model_file_path, keyword_file_paths=keyword_file_paths, sensitivities=sensitivities)
# WAKE WORD END

def get_next_audio_frame():
    pass

while True:
    pcm = get_next_audio_frame()
    keyword_index = handle.process(pcm)
    if keyword_index >= 0:
        # detection event logic/callback
        pass

(Just the default from github)

Fredrik :)

You need to import the Porcupine class. Have a look at the Python demo here and hopefully it will clear things up: https://github.com/Picovoice/Porcupine/blob/master/demo/python/porcupine_demo_offline.py

How do you mean about that. I tried to do this from porcupine import Porcupine but i don't know if that's the right way to do it. Sorry i'm a lille new to python

that is correct. also, you need to make sure the file containing the definition of Porcupine is in your sys path. If you read the beginning of the link of the demo I've sent above I think it all will make sense.

I can't figure it out... Is there a tutorial how to do it... Maybe a video or something? @kenarsa (Just so you don't have to write what i need to do) :)

I now have this problem because i tried to integrate it into my code...
This is my code:
# WAKE WORD
import sys
import soundfile
import os

sys.path.append(os.path.join(os.path.dirname(__file__), 'WakeWord/binding/python/porcupine.py'))

library_path = 'WakeWord/lib/windows/amd64/'
model_file_path = 'WakeWord/lib/common/porcupine_params.pv'
keyword_file_paths = 'WakeWord/resources/keyword_files/alexa_windows.ppn'
sensitivities = [0.5, 0.4]
handle = Porcupine(library_path, model_file_path, keyword_file_paths=keyword_file_paths, sensitivities=sensitivities)
# WAKE WORD END

def get_next_audio_frame():
    pass

while True:
    pcm = get_next_audio_frame()
    keyword_index = handle.process(pcm)
    if keyword_index >= 0:
        # detection event logic/callback
        pass

And this is my error:
Traceback (most recent call last):
  File "test.py", line 12, in <module>
    handle = Porcupine(library_path, model_file_path, keyword_file_paths=keyword_file_paths, sensitivities=sensitivities)
NameError: name 'Porcupine' is not defined

Fredrik

you still need to import it. add:
from porcupine import Porcupine
after sys.path.append(
would be nice if you can make a video tutorial after this and share your learnings with the community.

I tried to put it over it... But I got this error:
Traceback (most recent call last):
  File "Test.py", line 8, in <module>
    from porcupine import Porcupine
ModuleNotFoundError: No module named 'porcupine'

my guess is that the path here is not set correctly:
sys.path.append(os.path.join(os.path.dirname(file), 'WakeWord/binding/python/porcupine.py'))
print the result of join and see if it is a valid path

I fixed the file... But now got this error:
Traceback (most recent call last):
  File "Test.py", line 22, in <module>
    handle = Porcupine(library_path, model_file_path, keyword_file_paths=keyword_file_paths, sensitivities=sensitivities)
  File "WakeWord/binding/python\porcupine.py", line 69, in __init__
    library = cdll.LoadLibrary(library_path)
  File "C:\Python\lib\ctypes\__init__.py", line 426, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

What can I do to fix that problem? @kenarsa

it is hard to say from the information you provided ...


Improve design of OAuth success HTML page

Description
Currently, when you successfully get through an OAuth flow, you're met with this page:

Good stuff:

it's small and simple
it's fast to load
it's clear about what to do next

Bad stuff:

it's black Times New Roman on white background (not Sigstore branding)

I think we have an opportunity to make this page feel really cohesive with the rest of the Sigstore brand. We shouldn't take this as an opportunity to load the page down with a bunch of CSS/JS/images, but I think there's improvements we could make, like:

add a Sigstore logo
use Sigstore's font/coloring
add a button to close, or maybe even "press space to close" -- JS won't let you close a window without some user action, but I think keyboard event should work. edit: browsers no longer allow this

After https://github.com/sigstore/sigstore/pull/425 we'll only have one copy of this HTML, here:
https://github.com/sigstore/sigstore/blob/9a39e97a01521211a31ecc8c29ecf4545be3a73f/pkg/oauth/interactive.go#L19-L25

Would like to work on this

Duplicate of #732


Tooltip trigger, is it possible?

Hi to all
I'm searching, how to launch a tooltip without the mouse hover the element?
Any idea?
Thanks

Just add ref on tooltip component and call open() method
codepen

great!!
I didn't know that
thanks

@fortil just look at the source code.

I will create a better trigger function later, but for now this is the best approach. Thank you @VicarEscaped !


Adding Trace attribute Scope to store tracing info

If we want to add opentrace or newrelic trace to gorm queries, application side we have to wrap every query with the trace function. This looks somewhat ugly.
We can use callbacks here. But the trace should be shared between before query callback function and after query callback function. Since scope is available to both fucntions, i am adding one more attribute to scope to store trace info.
Now we can start tracing in before callback and store that at Trace and we can end that trace in after callback function.

Hello @lokanadham100
You should use Set, Get to shares a value in callbacks


ci: use --codecov flag on llvm-cov

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 14.84%. Comparing base (ed1fb9a) to head (0480c22).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #159       +/-   ##
===========================================
- Coverage   15.68%   14.84%    -0.85%
===========================================
  Files        1485     1485
  Lines      130718   130718
  Branches        0   130718   +130718
===========================================
- Hits        20509    19409     -1100
+ Misses     110209   110203        -6
- Partials        0     1106     +1106

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


pull request for e2e test at 11/15/2016 14:45:09

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[FEATURE]: Add cpu and memory usage

What would you like to be added?
cpu and memory usage
Why is this needed?
cpu and memory usage
Any implementation details that are not related to source code may be included here.
No response

Currently, this isn't possible. The OPNsense team has not made the dashboard values accessible via the API. Refer to https://github.com/opnsense/core/issues/7031.
Although I initially considered creating a plugin for this, I think there are better courses of action than this one, like fixing the dashboard values to be retrieved via an API endpoint. Introducing a plugin to this exporter will be one more dependency just for a few metrics. We don't have the time to argue and present the ideas with the OPNsense team.
I strongly believe their implementation of the dashboard widgets is inconvenient, but I will not blame them or spam them with this. They have more important work. We should also be grateful for their vision and dedication. When they rework the dashboard widgets API, we will introduce these metrics to the exporter.

@raydoom if you are open to having another exporter alongside, node_exporter is available in opnsense repositories and does what you're looking for


Update Jetson Orin AGX, Orin NX and Orin Nano examples to L4T 36.3 - …

using Jetpack 6
Change-type: patch
Fibery pitch: https://balena.fibery.io/Work/Project/Update-all-Jetson-Orin-boards-to-L4T-35.5.0-BSP,-start-work-on-L4T-36.3-538

@balena-ci I self-certify!


Replace require() with import where possible.

The import command from ES6 gets transpiled by Babel to require().
Babel is enabled for the src/ directory. Since we use import wherever
Babel is enabled, replace the few stray instances of require() in src/.

Thanks @roberthoenig for the cleanup and @borisyankov for the detailed (on the scale of the PR's size :) ) review -- merged!


Build manylinux wheels

[ ] ~Build manylinux wheels in Github actions~
[x] Add nightly release process in Github actions

As rayfed is python only, there is no need to build manylinux wheels.

This is done in https://github.com/ray-project/rayfed/pull/103


Make html test

This is identical to #71 except that (since it said there were merge conflicts) I went ahead and merged master into it locally.  Strangely I didn't get any conflicts; I'm guessing that nbdime was able to resolve things better than ordinary diff could.

Okay, the rasterized graphics are gone now.  See a working copy of the acoustics notebook here:
http://nbviewer.jupyter.org/gist/ketch/e167193a920f32308ab32535bc70ba56

We have two different approaches to plotting stripes; one is in Euler_equations.ipynb and the other is in Shallow_tracer.ipynb.  We should probably pick one and move it into riemann_tools.  One issue with the version in Euler_equations.ipynb is that it rescales the axes for each frame.
I think we can merge the present PR before dealing with this issue.  This PR is already a monster...

It would be really helpful if we could avoid all the noise we've been getting in our commits.  A large portion of the "changes" in the present PR are just modifications to the "collapsed" and "deletable" metadata values.  I try to avoid committing changes to those (though I have messed up, and will do better), by always doing git add -p and then not committing the meaningless stuff.
The conflicts present in #71 are also due entirely (I think) to these meaningless metadata changes.

This PR seems to clobber many changes I made to the Traffic flow notebook.  I haven't finished reviewing the rest of it yet...


NXP/MIMXRT1062.svd: Duplicate enumeration identifiers/names for different values

Issue
Several enumeratedValue items have duplicated name fields – albeit different enumerated value – in NXP/MIMXRT1062.svd (which is the same MCU used on the popular PJRC Teensy 4.0/4.1 boards).
Recommend updating the names to use a conventional index suffix similar to other enumeratedValue fields in this same SVD.
Use case
Any naive API generator using this SVD as source will produce ambiguous, if not illegal, enumerated value definitions.

Unfortunately, due to the license on the SVD files, we don't directly change SVD files as part of this project. We might be able to convince the vendor (in this case Freescale/NXP) to make the change.


TLS handshake to upstream fails on CLIENT_HELLO

Title: TLS handshake to upstream fails on CLIENT_HELLO
Description:
We are examining currently the usage of Ambassador on one of our Kubernetes clusters.
The cluster will run the WhatsApp business clients (https://developers.facebook.com/docs/whatsapp) and we need to expose endpoints for each WhatsApp business number running on the cluster.
While we're testing we faced the issue, that we can't access the exposed service.
When requesting the exposed URL we get this response
upstream connect error or disconnect/reset before headers. reset reason: connection failure

On the envoy logs we do see
[2020-09-01 17:59:25.483][20][debug][connection] [source/extensions/transport_sockets/tls/ssl_socket.cc:197] [C2] handshake error: 1
[2020-09-01 17:59:25.483][20][debug][connection] [source/extensions/transport_sockets/tls/ssl_socket.cc:225] [C2] TLS error: 268436496:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE 268435610:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO

and on the WhatsApp Web instance the logs stating
SSL: 1 error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher

In comparison, when accessing the service via kubectl port-forward and using curl -k we receive back the expected webpage
Envoy version 1.15.0
WhatsApp Business client version v.2.29.3
When using nginx this problem doesn't appear and TLS is correctly terminated on the proxy.
Repro steps:
Requirements
docker compose needs to be installed
WhatsApp installation
git clone https://github.com/WhatsApp/WhatsApp-Business-API-Setup-Scripts.git
cd WhatsApp-Business-API-Setup-Scripts/installation
export WA_API_VERSION=2.29.3
docker-compose up

Envoy
Attached is a zip with the config (windows machine, you may need to adapt the socket_address.address
envoy-tls.zip
docker build -t envoy:v1 .
docker run --rm -d --name envoy -p 9901:9901 -p 10000:10000 envoy:v1

Breaking call via envoy
curl http://localhost:10000

Working call directly to the installation
curl -k https://localhost:9090

Logs:
trace.logs.txt
Thank you in advance
Peter

@ggreenway @lizan @PiotrSikora any thoughts?

I think the key is the server error message: no shared cipher. The server is saying that it has no cipher suites in common with what the client advertised as supported.
To understand why it's not working, look at the configured cipher suites on both the client and the server. Probably one of them is very restrictive. Also, check the version of TLS being used. TLS 1.3 has different rules for cipher suite negotiation (and different supported cipher suites) from TLS 1.2 and earlier.

Hi,
thank you for the swift reply.
I made a quick test to see which cipher suite is agreed between curl and the service.
My findings so far are
cipher suite used : ECDHE-RSA-AES256-GCM-SHA384
TLS version : 1.2
using curl -k --ciphers ECDHE-RSA-AES256-GCM-SHA384 https://localhost:9090 works completely fine
in contrast using envoy with this
admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address:
      protocol: TCP
      address: <IP_ADDRESS>
      port_value: 9901
static_resources:
  listeners:
  - name: listener_0
    address:
      socket_address:
        protocol: TCP
        address: <IP_ADDRESS>
        port_value: 10000
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
          stat_prefix: ingress_http
          route_config:
            name: local_route
            virtual_hosts:
            - name: local_service
              domains: ["*"]
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: whatsapp_service
          http_filters:
          - name: envoy.filters.http.router
  clusters:
  - name: whatsapp_service
    connect_timeout: 0.25s
    type: LOGICAL_DNS
    # Comment out the following line to test on v6 networks
    dns_lookup_family: V4_ONLY
    lb_policy: ROUND_ROBIN
    load_assignment:
      cluster_name: whatsapp_service
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: host.docker.internal
                port_value: 9090
    transport_socket:
      name: envoy.transport_sockets.tls
      typed_config:
        "@type": type.googleapis.com/envoy.api.v2.auth.UpstreamTlsContext
        common_tls_context:
          tls_params:
            cipher_suites: ["ECDHE-RSA-AES256-GCM-SHA384"]
            tls_maximum_protocol_version: TLSv1_2

is breaking
accordingly to the TCP Dump both calls do propose the Cipher Suite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030).
If tested it again with nginx and the agreed cipher suite is the same (TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030) ).
Please find attached a tcp dump with the following order

curl against NGINX proxying to the https://localhost:9090
curl -k --ciphers ECDHE-RSA-AES256-GCM-SHA384 https://localhost:9090
curl against envoy proxing to the https://localhost:9090

nginx_curl_envoy.zip
Thank you

It's hard to say what's wrong without knowing how your upstream (nginx) is configured. Check for things like whether you require SNI, supported EC curves, and any other TLS config. If that fails, I'd compare the working and non-working clienthello in wireshark and look for differences, and maybe cross-reference it with the serverhello to see what is being selected in the working case, to figure out which bit is incompatible.

hi,
thanks for the hints, we will investigate on this direction further :)

Per your description, both curl and NGINX are connecting to localhost:9090, but Envoy is configured to connect to host.docker.internal:9090. Maybe that's the issue?

Adding my experience on this. The same behavior was observed in my testing, but the logs were not helpful. This configuration was working on some websites, but failing on others. As the working websites are huge organizations and failed are the smaller ones, I guessed it to be shared servers and issue related to SNI. Adding the appropriate sni configuration fixed it.


Is There any way to keep the composition of a crystal same , and just predict the structure ?

I've trained the model on carbon_24 dataset, but i don't want add noise to the atom_types and get any change in composition while sampling.

Need to add a feature for Post precessing the pytorch objects.


Document montgomeryAdd and montgomerySub

Context: EcAdd.yul, EcMul.yul, EcPairing.yul
Description: Function documentations is missing

[ ] EcAdd.yul
[ ] EcMul.yul
[ ] ecPairing.yul

The docstrings were already there for EcPairing.yul.


Fix CSS display specificity issues

We were previously preventing p-mod-hidden from setting display: None properly.

Wow, I didn't realize there was a :not selector... Nice!

I think that instead of modifying many of our selectors to specifically watch out for p-mod-hidden, this is one of the very few cases I can think of where we should use the CSS override. We can resolve this issue by adding this rule:
.p-mod-hidden {
  display: none !important;
}

I'm very reluctant to use !important, but I believe it's warranted in this case.
cc: @sccolbert

👍

Yeah, I should add !important to the base rule in Phosphor.
On Aug 12, 2016 11:58 AM, "Afshin Darian"<EMAIL_ADDRESS>wrote:

Merged #628 https://github.com/jupyter/jupyterlab/pull/628.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jupyter/jupyterlab/pull/628#event-754255533, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIYSUo1JDguLl8nA_ZM9aVZVupv1u1Pks5qfKYygaJpZM4JhYXG
.


Aggregation service job showed "Service Error"

Hi, I was testing the Aggregation Service deployed in AWS (version 2.5.0). I met an error shows:
"result_info": {
        "return_code": "REPORTS_WITH_ERRORS_EXCEEDED_THRESHOLD",
        "return_message": "Aggregation job failed early because the number of reports excluded from aggregation exceeded threshold.",
        "error_summary": {
            "error_counts": [
                {
                    "category": "SERVICE_ERROR",
                    "count": 1,
                    "description": "Internal error occurred during operation."
                },
                {
                    "category": "NUM_REPORTS_WITH_ERRORS",
                    "count": 1,
                    "description": "Total number of reports that had an error. These reports were not considered in aggregation. See additional error messages for details on specific reasons."
                }
            ],
            "error_messages": []
        },
        "finished_at": "2024-07-01T22:02:32.089351102Z"
    },

I was testing only 1 reports in the batch, tried local-testing with the cleartext version, which works fine.
Without the additional information, I wasn't able to identify the problem.
By any chance I am not the only one who met this problem? What else should I check? Thanks

Hi @evazkj, can you retry the job and update here if you're still facing the error? SERVICE_ERROR can be an intermittent internal error within the Aggregation Service service during operation.

Still facing this error. I even tried destroy and redeploy the instance.

I sent an email containing the details to<EMAIL_ADDRESS>Thanks!

The problem has been resolved. The problem is we used un-updated coordinator id. Fixed it by destroy/reboot. Thanks!


ciao-deploy: Allow overriding name controller is reachable with

When the HTTPS certificate uses a FQDN it is necessary to let the user of ciao-deploy specify the name the controller's certificate specifies so that the invocations of ciao-cli will work.
Fixes: #1459

@kaccardi let me know if this works for you

Coverage increased (+0.004%) to 65.937% when pulling 5c72e04cfbb53e708ddf39615e03f7aea0f7e6c9 on rbradford:ciao-deploy-fqdn-fix into cf2e779166b422dc85d28c733ee8442e597bb810 on ciao-project:master.

Coverage increased (+0.004%) to 65.919% when pulling 86ffcf025d8ca10d027166fcd5e80e3d8d5e7631 on rbradford:ciao-deploy-fqdn-fix into 086750f820eead4f154a78f726995ec1751ef5ed on ciao-project:master.

Coverage decreased (-0.004%) to 65.925% when pulling 9542e4ec3cf04bc038f4f0023b51dfe6ec88bc4c on rbradford:ciao-deploy-fqdn-fix into 5e46ceea6ee49bc81cfe546b68b21aa4b2c62f46 on ciao-project:master.


Add onClick prop to Legend component

Can we add an onClick prop to Legend component which is invoked with the name/value of the clicked series?

Hi @sabarnix thanks for checking out vx!
Yes absolutely, surprised I forgot to add this. Will add in v0.0.150

How to do it in the current version?

@pisharodySrikanth see https://vx-demo.now.sh/legends for an example
<LegendItem
  onClick={() => {
    alert(`clicked: ${JSON.stringify(label)}`);
  }}
>

Hey, thanks for the prompt reply. Wondering how I missed that.


python3Packages.dask-gateway: add setuptools as native build input

Description of changes

Fixes the broken dask-gateway build
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

2 packages built:

python310Packages.dask-gateway
python39Packages.dask-gateway


mam-3942-blockquotes-have-no-line-breaks

this breaks block quotes after paragraphs, making it two line breaks.


HttpResponse pause and resume not in TS doc

Judging by the wrapper code these should be available in js land?https://github.com/uNetworking/uWebSockets.js/blob/master/src/HttpResponseWrapper.h#L43

Needs to be added to docs see https://github.com/uNetworking/uWebSockets.js/issues/661

Please add it


Feedback for ch02

Shouldn't there be an introduction for the chapter?
chapter02_supervised-learning/linear-regression-scratch.ipynb

Instructions for installing matplotlib but notebooks in ch01 used it without describing how to install. Just put those preqeqs somewhere at the beginning?
"Train a model means making" >> "Training..."
Need explanation for this choice: "In this case, we'll use the squared distance between our prediction and the true value."
This needs elaboration: "It turns out that linear regression actually has a closed-form solution. "

chapter02_supervised-learning/linear-regression-gluon.ipynb
chapter02_supervised-learning/perceptron.ipynb

Perceptron == E. coli?? I do not see the analogy
This page is much more math-intensive than what has preceded. Rework to provide text-oriented explanation with subsequent deep dive on math?

chapter02_supervised-learning/softmax-regression-scratch.ipynb

What is the basis for this claim? Maybe just say it's widely used. "The relevant loss function here is called cross-entropy and it may be the most common loss function you'll find in all of deep learning. That's because at the moment, classification problems tend to be far more abundant than regression problems."
Inappropriate tone (defined as mild oath by Merriam Websters): Jeepers.
Authorial voice of book is "we" in Ch01: "I reviewed"

chapter02_supervised-learning/softmax-regression-gluon.ipynb

Peculiar turn of phrase: "We won't suck up too much wind"

chapter02_supervised-learning/regularization-scratch.ipynb

no prior mention in book of decision trees: "decision trees versus neural networks"
typo: formulizes

chapter02_supervised-learning/loss.ipynb

Raw math formula: $$\mathop{\mathrm{minimize}}_f \sum_i |y_i - f|$$

chapter02_supervised-learning/environment.ipynb

Needs elaboration: "he click-through rate for NOKIA phone ads"
authorial voice: " I had"
typo: bild
raw math formula: $$\mathop{\mathrm{minimize}}w \frac{1}{m} \sum{i=1}^m l(x_i, y_i, f(x_i)) + \frac{\lambda}{2} |w|_2^2$$
No navigation to the first section of chapter 3

Thanks! This is extremely helpful. I've been making a pass turning sections from sketches into full first drafts (see the introduction in crash course as an example) over the past week. Also doing the hard work of folding contributed sections that I didn't write into the style of the rest of the book. This feedback is clear, precise, and actionable. I hope you have the bandwidth to provide more of it.  👍


querying status of congestion before sending

i seem to be hitting the maximum bandwidth of the BLE connection, and am getting the following:

E (2202025) BT: L2CAP - CID: 0x0004 cannot send, already congested             xmit_hold_q.count: 200 buff_quota: 200
E (2202026) BT: ATT   failed to pass msg:0x1b to L2CAP

is it possible to query the status of the send queue so that i can programmatically back off the send rate if we get close to this point?

quick update:
I've started experimenting with this, and one first attempt was to look at issuing a callback from the BLEServer's handleGATTServerEvent for the ESP_GATTS_CONGEST_EVT. I am able to receive the callback right when the above error happens. However, I realize that this is actually too late because by the time we see this, the send queue is already full and packets are being dropped already.
Ideally, it would be nice to poll the current size of the queue (xmit_hold_q.count?) once in a while, and then react preemptively before the queue reaches a certain size. But I haven't managed to navigate through the layers of APIs to see how this can be done.
Any pointers would be greatly appreciated!

This is what i think, when you get ESP_GATTS_CONGEST_EVT means your packets are sending too fast and last packet has not been send. So you should have ie to resend it after some small delay from onCongest callback, or set some flag that will let know the rest of your code whats going on.
Im not 100% sure, but as far as i know congest is raised when you send packets too fast, and you can try to optimise it by sending bigger packets if its possible.

Thanks for the comment!
Yes, because our data rate is around or possibly more than the available BLE bandwidth*, our approach is indeed to slow things down when we hit this stage. But wasn't sure if it is possible to try and detect this before we hit the wall and seeing that congestion event. Poking at the size of the transmit queue (if possible) seems like one preemptive method. Otherwise may also have to just keep track of the current sending rates based on data we try to push out and then making a guess at a better (slower) rate... Will poke around further... :)
*for an idea: we're seeing a max of around 5-6kBps throughput going to Mac OSX, which seems to be in the ballpark based on this article, when using connection interval of 11.25ms. In this case we also want to have low latency, so its like the worst of both worlds... :P


also discarded "The Specified character does not exist."

also discarded "The Specified character does not exist." when outgoing message sent.

its not MT fault, coz sometimes player wrote with another nickname (ask to GGG)


process of making rpm

Hello, can you describe your detailed process of making rpm with a document, thank you

Please see https://github.com/MartinWeindel/kudu-rpm#building-the-rpm-package
You have first to build kudu, similar as done in https://github.com/MartinWeindel/kudu-docker


Pod Template for Task

Feature request
PodTemplate for task
Use case
I want a certain task (kaniko build) to always run in a pod with certain memory and cpu allocated. Currently, I have to specify it for every taskrun or pipelinerun separately which is not DRY.

Acutally, resources can be specified within a step template. That solves the problem:

I have another use case. If I want a task to always run on a node with certain labels, currently I will have to specify the node selector in every taskRun/pipelineRun. Is there a way to specify node constraint at the task level?

Hi @skk2142,
I saw your issue and you wrote that the resources could be configured using pipelinerun, Task Step template.
I tried to look through the Tekton docs and couldn't find an example.
Could you, please, share examples for specifying requests.cpu, request.memory, limits.cpu, limits.memory in PipelineRun, Task step?
Thank you in advance.

You can specify container resources in the step of a task:
steps:
  - name: build-and-push
    workingDir: "$(resources.inputs.source.path)"
    image: "$(params.BUILDER_IMAGE)"
    resources:
      requests:
        memory: 16Gi
        cpu: 1800m

You can also specify pod level template for a task in pipelinerun under taskPodTemplate
- apiVersion: tekton.dev/v1beta1
  kind: PipelineRun
  metadata:
    generateName: frontend-deploy-run-
    annotations:
      kollate.tekton.dev/commitSha: "$(tt.params.commitSha)"
      kollate.tekton.dev/repoFullName: "$(tt.params.repoFullName)"
      kollate.tekton.dev/githubNotify: "true"
  spec:
    pipelineRef:
      name: frontend-deploy
    serviceAccountNames:
      - taskName: build-and-push
        serviceAccountName: github-sa
      - taskName: update-helm-chart
        serviceAccountName: github-sa
      - taskName: helm-deploy
        serviceAccountName: helm-upgrade
    params:
      # - name: newImageUrl
        # value: gcr.io/{{ $.Values.googleProjectId }}/$(tt.params.helmImageKey):$(tt.params.commitsha)
      - name: repoName
        value: $(tt.params.repoName)
      - name: repoFullName
        value: $(tt.params.repoFullName)
      - name: commitSha
        value: $(tt.params.commitSha)
      - name: gitRevision
        value: $(tt.params.gitRevision)
    taskRunSpecs:
    - pipelineTaskName: build-and-push
      taskPodTemplate:
        {{- $.Values.taskPodTemplate | toYaml | nindent 12 }}
    {{- range $i, $browser := tuple "firefox" "chrome" }}
    {{- range $j, $index := tuple 1 2 3 4 5 6 7 8 }}
    - pipelineTaskName: cypress-{{ $browser }}-{{ $index }}
      taskPodTemplate:
        {{- $.Values.taskPodTemplate | toYaml | nindent 12 }}
    {{- end }}
    {{- end }}

Thank you @skk2142 for your examples!

@skk2142 does this remain an issue for you or did you manage to find a workaround?

It's all good from my side, I was able to find workarounds! Thanks :)

/close


Add Qrcode Maker Cog

this legit just adds the qrcode maker cog from rin. feel free to edit this pr if needed

There's the easybot plugins repo, can you push it there?

yeah sure. i'll push it there instead


Caused by: org.apache.doris.flink.exception.DorisException: Load status is Label Already Exists and load job finished, change you label prefix or restore from latest savepoint!

Search before asking

[X] I had searched in the issues and found no similar issues.

Java Version
1.8
Scala Version
2.12.x
StreamPark Version
2.1
Flink Version
1.16.0
deploy mode
None
What happened
When I use flink-doris-connector, there will be an exception that the label is already occupied. In this way, I must declare the parameter sink.label-prefix every time I use sql. If this parameter is not configured, the first execution will be successful. Then re-execute the task again and report an error
Error Exception
Caused by: org.apache.doris.flink.exception.DorisException: Load status is Label Already Exists and load job finished, change you label prefix or restore from latest savepoint!

Screenshots

Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

[X] I agree to follow this project's Code of Conduct

The test case is a normal insertion test
The first run is successful when the parameter sink.label-prefix is not carried, and the error is reported again after cancel，If you add parameters, you don't need to worry about this problem
CREATE TABLE flink_doris_sink (
    event_id STRING,
    guid INT,
    propJson STRING
    )
    WITH (
      'connector' = 'doris',
      'fenodes' = 'localhost:8030',
      'table.identifier' = 'gaotest.mall_app_events_detail1',
      'username' = 'root',
      'password' = 'root'
);


increase timeout on local push sv ping

The GET request to the DUT supervisor endpoint has a timeout of 5 seconds  - when doing this request to the tx2 DUT, there is a high chance of this timeout being exceeded, causing the pushContainerToDut() function to fail.
Increased it - currently testing it out
Change-type: patch
Signed-off-by: Ryan Cooke<EMAIL_ADDRESS>

@balena-ci retest

@balena-ci retest


Cheat files tagged personal going into unexpected folder

Thanks for submitting a bug report. Please provide the following information:
A description of the problem
The file ~/.config/cheat/conf.yml specifies that cheat sheets tagged personal go into the folder ~/.config/cheat/cheatsheets/personal, but those sheets are being saved in the folder
~/.cheat instead.
For instance, if I create a new sheet named foo with cheat -e foo -t personal, that sheet
ends up in the location ~/.cheat/foo instead of ~/.config/cheat/cheatsheets/personal/foo.  It is unclear to me when a sheet will end up in one location or the other.
cheat version info
4.4.0
cheat configuration info
If your bug pertains to how cheatsheets are loaded and/or displayed, please
paste here the following information:

The output of cheat -d

 » cheat -d
community: /Users/andrew/.config/cheat/cheatsheets/community
personal:  /Users/andrew/Dropbox/computer_stuff/unix_files/personal_cheat_sheets

The contents of your conf.yml file

---
# The editor to use with 'cheat -e <sheet>'. Defaults to $EDITOR or $VISUAL.
editor: vim

# Should 'cheat' always colorize output?
colorize: true

# Which 'chroma' colorscheme should be applied to the output?
# Options are available here:
#   https://github.com/alecthomas/chroma/tree/master/styles
style: monokai

# Which 'chroma' "formatter" should be applied?
# One of: "terminal", "terminal256", "terminal16m"
formatter: terminal16m

# Through which pager should output be piped? (Unset this key for no pager.)
pager: less -FRX

# The paths at which cheatsheets are available. Tags associated with a cheatpath
# are automatically attached to all cheatsheets residing on that path.
#
# Whenever cheatsheets share the same title (like 'tar'), the most local
# cheatsheets (those which come later in this file) take precedent over the
# less local sheets. This allows you to create your own "overides" for
# "upstream" cheatsheets.
#
# But what if you want to view the "upstream" cheatsheets instead of your own?
# Cheatsheets may be filtered via 'cheat -t <tag>' in combination with other
# commands. So, if you want to view the 'tar' cheatsheet that is tagged as
# 'community' rather than your own, you can use: cheat tar -t community
cheatpaths:

  # Paths that come earlier are considered to be the most "global", and will
  # thus be overridden by more local cheatsheets. That being the case, you
  # should probably list community cheatsheets first.
  #
  # Note that the paths and tags listed below are placeholders. You may freely
  # change them to suit your needs.
  #
  # Community cheatsheets must be installed separately, though you may have
  # downloaded them automatically when installing 'cheat'. If not, you may
  # download them here:
  #
  # https://github.com/cheat/cheatsheets
  #
  # Once downloaded, ensure that 'path' below points to the location at which
  # you downloaded the community cheatsheets.
  - name: community
    path: /Users/andrew/.config/cheat/cheatsheets/community
    tags: [ community ]
    readonly: true

  # If you have personalized cheatsheets, list them last. They will take
  # precedence over the more global cheatsheets.
  - name: personal
    path: /Users/andrew/.config/cheat/cheatsheets/personal
    tags: [ personal ]
    readonly: false

  # While it requires no configuration here, it's also worth noting that
  # 'cheat' will automatically append directories named '.cheat' within the
  # current working directory to the 'cheatpath'. This can be very useful if
  # you'd like to closely associate cheatsheets with, for example, a directory
  # containing source code.
  #
  # Such "directory-scoped" cheatsheets will be treated as the most "local"
  # cheatsheets, and will override less "local" cheatsheets. Likewise,
  # directory-scoped cheatsheets will always be editable ('readonly: false').

Hi, @apenngrace
I'm sorry it has taken me an entire year to get back to you on this :disappointed:
I can't reproduce this locally. Two questions:

Do you still see this behavior on the current version of cheat?
Are you using symlinks that might be causing issues?

I ask 2 because the output of cheat -d does not look how I'd expect, given the contents of your conf.yml file. I would expect to see:
community: /Users/andrew/.config/cheat/cheatsheets/community
personal: /Users/andrew/.config/cheat/cheatsheets/personal

Yes, the personal folder is using a symlink.  I was using a dropbox folder for the storage of those files so that when I go between my two work computers, the cheat sheets just sync automatically for me.
I'm guessing that you're going to suggest that I change it from a symlink back to a local folder and see if I still get that behavior.

Yes, the personal folder is using a symlink. I was using a dropbox folder for the storage of those files so that when I go between my two work computers, the cheat sheets just sync automatically for me.

Gotcha. I think that's a relatively common use-case, so I want to make sure this works.

I'm guessing that you're going to suggest that I change it from a symlink back to a local folder and see if I still get that behavior.

Please do, if you have the time :slightly_smiling_face:


Switching between both SSO applications doesn't impact the GitHub profile

User Need
As a GitHub User
I want to know that my GitHub profile is not changes when I join an organisation
so that I know my profile is as expected.
Value
Provided confidence that joining an MoJ org doesn't change a users profile
Functional Requirements (What):

[x] Test that when joining an org a users profile is not altered with unwanted changes e.g. change in profile visibility

Non-Functional Requirements (How):

[x] Use the process to add a user via the new SSO solution.
[x] Check after joining that profile is unchanged.
[x] If changed, what are the changes and why has this behaviour occurred

Acceptance Criteria:

[x] We can confirm that user profile is not changes during the SSO process

or

[ ] We have identified changes and understand why they are happening and can either include this in comms.

or

[ ] We have identified changes and understand why they are happening and this is not acceptable for the SSO solution.

The user profile remains unchanged when logging a new account into the org.
Even better, the previous users permissions are restored.


Hidden, non-shadowmapped, or editor-only lights are still included in the profiler for extra render passes

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Ubuntu 16.04, Godot commit 0899b50, GeForce GTX 760 (Nvidia binary driver 375.66)
Issue description:
Shadowmapping results in multiple passes for rendering. While these are not visible, even when a point light is hidden, marked as editor only, or has just its shadow mapping disabled, it is still included in the profiling for things like vertex count and material changes. Unsure if the passes are ACTUALLY happening behind the scenes, but they are being included in profiling regardless
Steps to reproduce:
Simply add a single primitive to a scene with a camera, add a bunch of hidden directional lights, and observe the results in the engine profiler.

Scene rendering happens here.
https://github.com/godotengine/godot/blob/master/servers/visual/visual_server_scene.cpp#L1262
However, editor only lights seem like are doing nothing, as the enabled function was removed in 3.0.
https://github.com/godotengine/godot/blob/master/scene/3d/light.cpp#L166
This should probably be fixed in the VisualInstance (or Spatial?) class, by adding some virtual function (that returns true by default), that can be overriden in lights and checks that light can be made visible, and only allow the object to be visible if so.

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?
If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop.


Fix python_2020_1 checksum SHA

Checklist

[ ] I have filed an issue about this change and discussed potential changes with the maintainers.
[ ] I have received the approval from the maintainers to make this change.
[x] This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.
Discussion thread for this change
Issue number: <please reference the issue number or url here>
Description of this change

see #2342 :-)

Closing this as it's fixed, see #2342