Latest tag is always updated on npm publish

This is a Bug Report

Description
The latest tag is always updated when running npm publish, even when specifying another tag using the --tag flag. This is not the expected behavior (see additional data).
I believe this can fixed by deleting line 69 (json['dist-tags'].latest = version;) in publish.js, but I'm not entirely sure whether there are assumptions in this code that I'm not aware of.
Additional Data

NPM documentation on tags
Prereleases and Npm

Thanks for reporting this one, I will take a look at this and let you know.

Hey @mjalkio - applied and tested the fix, tagged and released! 0.20.1💃
As a thanks let me know your office address and will send you over some stickers for you and your team.
👍

Thanks for the quick fix @jonsharratt, I'll email you.

@mjalkio Got your email, stickers are in the post on the way to you 👍


Guidance on writing declaration file for multi-targeted libraries

It is now possible for a library to hit every type of target that TypeScript supports (module, namespace, and ES6). Currently, writing a declaration file for a library like this can be very challenging. The default today is something like this:
declare namespace MyLib {
   export ...
}

declare module 'mylib' {
  export = MyLib;
}

This has a couple issues:

If you're using this in the module sense, using this declaration file will result in TypeScript thinking there is a globally available variable MyLib which is not actually true. This can lead to runtime errors. (see #2018)
If you're using ES6 import syntax TypeScript will consider this module to be in the CommonJS style and will not allow default imports even though the library actually supports them.

In the past, regarding item 1, it's been suggested that we split the declarations into two files (one for modules and one for namespaces). This makes sense. I think it also makes sense to extend that concept for ES6 modules. So if you have a library that targets all three, then you will have three mutually exclusive declaration files. Where things then become problematic is with duplicating the declarations in each file (which ideally should not happen). It is impossible to import an ambient module into an ambient namespace. It is possible to use an ambient namespace in an ambient module, but a naive approach to that (as shown in the common case above) violates item 1.
Therefore, I propose this guidance to writing these declaration files.
// mylib-common.d.ts

declare namespace __MyLib {
  export ...
}

// mylib-namespace.d.ts

/// <reference path="mylib-common.d.ts" />
import MyLib = __MyLib;

// mylib-module.d.ts

/// <reference path="mylib-common.d.ts" />
declare module 'mylib' {
  export = __MyLib;
}

// mylib-es6.d.ts

/// <reference path="mylib-common.d.ts" />
declare module 'mylib' {
  export * from __MyLib; // this doesn't currently work, see #4336
  export default __MyLib; // if there is a default export
}

Unfortunately this is currently hypothetical since you cannot re-export namespace declarations from an ES6 declaration.
I'm proposing this as a baseline for discussion to solve this issue for good. It's possible I'm going down the wrong track or that there is already a better way to handle these cases. It would also be great if we could get some buy-in from the TypeScript language to solve this, if needed.
Some possible ways TypeScript could be improved in this area:

Fix #4336
Make it so that __MyLib only exists as a namespace and not as a value, either through convention (prefixed with __) or through additional syntax.

cc @johnnyreilly @vvakame

I'd love to hear what other people have to say about this - I'm in agreement that things are somewhat broken at present.
As a little digression, I've just taken over an app that is built using Browserify + Babel and written in ES6.  I'd hoped I'd be able to drop TypeScript into the mix by just having it export ES6 which can then be processed by Babel but found that the definition file story was very wanting indeed.  For now I've had to bail on the issue.
Thanks for writing this up @jbrantly - hopefully something good will result!

As a little digression, I've just taken over an app that is built using Browserify + Babel and written in ES6. I'd hoped I'd be able to drop TypeScript into the mix by just having it export ES6 which can then be processed by Babel but found that the definition file story was very wanting indeed. For now I've had to bail on the issue.

@johnnyreilly, Is the export * from namespace the only issue you ran into, or are there other issues?

Hi @mhegazy ,
I can't remember the details offhand.
I'll reattempt and report back.

:+1:  While I haven't looked into things enough to know if the initial proposal is the best solution or not, I've had difficulties working with CommonJS libraries when targeting ES6. A standardized,  obvious way of doing things would be a plus.

I'm trying to use the type definitions for Gulp.
Are the only options right now:

Target ES5/CommonJS and use the old syntax: import gulp = require("gulp");
Target ES6, use the new syntax, but the definition must be changed to export default x instead of export = x.

?
For the 2nd option, if I send PRs to have various definitions updated, will that break applications using older (or even current) versions of TypeScript?
This is so confusing. :disappointed:

Just a note, I have run into this before when authoring various react related typescript definitions. the approach I have been using, which is similar to @jbrantly's concept, is to use the (somewhat new) export import syntax. This has the obvious caveat that you must export everything explicitly, but it does function within typescript.
/// <reference path="../../../typings/main/ambient/react/index.d.ts" />

declare namespace __MyLib {
  export interface ThingProps extends __React.HTMLAttributes {
    text: string;
  }
  export class Thing extends __React.Component<ThingProps, any> { }
}

import MyLibExports = __MyLib;

declare module 'mylib' {
  export import ThingProps = MyLibExports.ThingProps;
  export import Thing = MyLibExports.Thing;
  export default MyLibExports.Thing;
}

Documentation can be found at https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/declaration files/Introduction.md


BLTTRX menu item's name has typo error

BLTTRX menu item has probably typo error. It suggests backlight when TX or RX.
It should be rather BLT RX or BLTRX (backlight when RX only )

No thats right, I changed it to turn the backlight on when a signal is first received and when the PTT is pressed.
I can add more options to it though like, OFF, RX, TX or BOTH

New feture works as expected. closed.


Engine should take a config object

The constructor for ingest.core.engine.Engine should take a configuration object, so Engines can be created programmatically. The configuration object can be a dict representing the contents of a configuration file.
For convenience, and to preserve the current behavior, it should be ok to pass a filename, which gets parsed into a configuration object.

PR accepted with minor edits and will be in next release. We should probably revisit this in the future as manually creating an ArgumentParser instance is outside the main() method is a bit odd, but work for now.


Using github.head_ref as checkout ref to fix check-git-status-action

Current dependencies on/for this PR:

main

PR #266   👈

This comment was auto-generated by Graphite.


Unable to run pre hooks for 'compile', command 'erl_vsn' not found. in 3.1.0

Hi guys,
I'm trying to upgrade from 3.0 to 3.1, but I'm getting the following error on both my dev machine and in CI:
===> Fetching rebar_erl_vsn ({pkg,<<"rebar_erl_vsn">>,<<"0.1.7">>})
===> Downloaded package, caching at /home/john/.cache/rebar3/hex/default/packages/rebar_erl_vsn-0.1.7.tar
===> Compiling rebar_erl_vsn
===> Compiling elli
===> Unable to run pre hooks for 'compile', command 'erl_vsn' not found.
** (Mix) Could not compile dependency :elli, "/home/john/.asdf/installs/elixir/1.6.3/.mix/rebar3 bare compile --paths "/home/john/code/hc/dylan/_build/test/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile elli", update it with "mix deps.update elli" or clean it with "mix deps.clean elli"

It seems that since 3.0, rebar_erl_vsn was added to rebar.config, could this be the source of the issue?
I'm running Erlang 20.3.6 and Elixir 1.6.3.

Hi friends, any update here? It'd be great to use the latest Elli

Looks like maybe a Mix issue to me. As a workaround could override the Elliot hooks in your rebar.config.

Similar issue here you might want to follow. B

The above issue is closed, does that mean this is fixed?

@lpil I believe so, but you'll need to ensure you're running rebar3 v 3.6.0 or higher.

https://github.com/erlang/rebar3/releases/tag/3.6.0
https://github.com/erlang/rebar3/pull/1810

It works! Shall we close this?

FWIW, John and I work together at Honeycomb TV, we've resolved the issue in the projects in question :)

Thanks guys :)


Add valve level to HmIP thermostat attributes

Description:
Add valve level to HmIP thermostat attributes so that it can be used in sensors to display the number and degree of valve openings.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

Requires pyhomematic PR https://github.com/danielperna84/pyhomematic/pull/173

Thanks! 😎


Create RecursiveFibonacci.cpp

Now I have created a file have a look

I have added spaces

I have changed
On Mon, 10 Oct 2022, 6:33 pm sai_sudha, @.***> wrote:

@.**** requested changes on this pull request.
In Recursion/RecursiveFibonacci.cpp
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#discussion_r991264560
:

if(n==2)return 1;

return fibonacci(n-1)+fibonacci(n-2);
+}

+int main(){
+

int n, n1 = 0, n2 = 1, n3 = 0;

cout << "Enter number: ";

cin >> n;

cout << "Fibonacci sequence: "<<n1<<" "<<n2;

for(int i=3;i<=n;++i)

Add spaces before and after operators
In Recursion/RecursiveFibonacci.cpp
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#discussion_r991264783
:

@@ -0,0 +1,32 @@
+#include

+using namespace std;
+
+
+int fibonacci(int n){
+

if(n==1)

 return 0;

if(n==2)return 1;

return fibonacci(n-1)+fibonacci(n-2);

Add spaces before and after operators
In Recursion/RecursiveFibonacci.cpp
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#discussion_r991264825
:

return fibonacci(n-1)+fibonacci(n-2);
+}

+int main(){
+

int n, n1 = 0, n2 = 1, n3 = 0;

cout << "Enter number: ";

cin >> n;

cout << "Fibonacci sequence: "<<n1<<" "<<n2;

for(int i=3;i<=n;++i)

cout<<" "<<fibonacci(i);

Add spaces before and after operators
In Recursion/RecursiveFibonacci.cpp
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#discussion_r991264886
:

@@ -0,0 +1,32 @@
+#include

+using namespace std;
+
+
+int fibonacci(int n){
+

if(n==1)

Add spaces before and after operators
In Recursion/RecursiveFibonacci.cpp
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#discussion_r991264992
:

@@ -0,0 +1,32 @@
+#include

+using namespace std;
+
+
+int fibonacci(int n){
+

if(n==1)

 return 0;

if(n==2)return 1;

Add spaces before and after operators
In Recursion/RecursiveFibonacci.cpp
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#discussion_r991265118
:

 return 0;

if(n==2)return 1;

return fibonacci(n-1)+fibonacci(n-2);
+}

+int main(){
+

int n, n1 = 0, n2 = 1, n3 = 0;

cout << "Enter number: ";

cin >> n;

cout << "Fibonacci sequence: "<<n1<<" "<<n2;

Add spaces before and after operators
—
Reply to this email directly, view it on GitHub
https://github.com/ReciHub/FunnyAlgorithms/pull/1009#pullrequestreview-1135984667,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXB7SLYRKEHSM4Y24W7XC2LWCQH23ANCNFSM6AAAAAARBJJ4RM
.
You are receiving this because you authored the thread.Message ID:
@.***>


Graffiti Monitor

This proposal would create a low cost monitor for graffiti prone areas that would notify authorities when graffiti activity is taking place and optionally photograph perpetrators in the act.
A small microprocessor controlled device with a motion sensor and radio link continuously monitors an isolated area where there would normally be no traffic. When motion is detected, the device notifies the data collection hub and optionally takes photographs that are stored on a local SD card.

ToDo List

[ ] basic motion detection
[ ] basic radio connectivity
[ ] motion triggered radio notification
[ ] motion triggered photography

Challenge  - the open challenge page on now.makezurich.ch
Code - the GitLab repo for participants at gitlab.com/derrickoswald/graffiti_honeypot

Just a heads up, but photographing people without their consent in Switzerland is surely illegal, regardless of their activities.
https://www.edoeb.admin.ch/edoeb/de/home/datenschutz/ueberblick/datenschutz.html
https://www.reddit.com/r/photography/comments/5rekrh/photography_laws_in_switzerland/dd6nwiq/
https://www.srf.ch/sendungen/ein-fall-fuer-srf-3/internetpranger-wie-viel-selbstjustiz-ist-erlaubt

@philshem That's certainly a discussion we can have. Thanks for the helpful links.
I was thinking more along the lines of an SBB rail yard, Werkhof, or other private property where an "videoüberwachung" sign or similar has been posted. Because you have entered the area you have given your consent. Clearly, nobody has ever asked me for my consent on ÖV or in public spaces where these signs are posted. So it must be legal, otherwise each of them would be liable to prosecution under Datenschutz laws.


Object.getOwnPropertySymbols() polyfill missing for IE10

Hi @niftylettuce, I need more information from you about this because we infact do serve that polyfill to IE/10 --> https://polyfill.io/v3/polyfill.js?features=Object.getOwnPropertySymbols&ua=ie/10
Please can you post the full polyfill.io url you are using and the full useragent of the browser you tested it in, thank you :-)

The builder tool is not showing it @JakeChampion, here's a screenshot:

Ah yes, that is true! Thank you for pointing that out, that is because it is an alias for the Symbol polyfill. We need to show these aliases on the page. I will rename this issue and re-open it for you.

Bump

I think Map.prototype is another example


Azure pipeline duration report (docs) ambiguous

In the official docs available here: https://docs.microsoft.com/en-us/azure/devops/pipelines/reports/pipelinereport?view=azure-devops#pipeline-duration-report it is described how the pipeline duration is analyzed and the results visualized.
What is not clear to me what the shown duration actually means: I feel it is just the sum of all executed jobs independent of whether they are executed in parallel or not. In addition is the waiting time included or not?
What would be interesting for an end user is actually the duration from triggering a pipeline until it is completed because this is the "visible" duration from an end users point of view.
And finally we are heavily using the Azure matrix future where the same task (by name) is executed multiple times during a pipeline execution. Is the shown time of a task the sum of all matrix tasks, the average of them or maybe just the very first or last?

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

ID: 2da4714e-d931-6777-d8be-b123a2b0fa17
Version Independent ID: 09eec061-51ab-e6a9-e61c-0b6f618cd969
Content: Pipeline reports - Azure Pipelines
Content Source: docs/pipelines/reports/pipelinereport.md
Product: devops
Technology: devops-cicd-reports
GitHub Login: @steved0x
Microsoft Alias: sdanie

@MTomBosch -- Tom, thank you for your thorough feedback.  Please consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

@steved0x -- Steve, please look into this issue.


Refactor: Clean up font_id selection.

This just cleans up the font_id function.

Looks great to me, a lot cleaner thanks. I'll have to keep this rust pattern in mind for the future.

@trimental I noticed that there are more places where it might be valuable to clean up the code a bit. Would you be okay with me giving that a go?

I'm sorry we've actually been keeping a strict no-clean-code policy which would be very detrimental to break any further
(Feel free to clean up all the code that you want :D)

@CosmicHorrorDev how will people appreciate how complex the code is if people keep cleaning it up 😄

@coastalwhite I love cleanups but just promise you won't judge me for my dirty code sins 😆


Add the create/edit Notification Rule Overlay

As a user
when I click on create notification rule, on Alerting Page, or
when I click on the name of a notification rule on the Alerting Page,
I see the Notification Rule Overlay with appropriate routes.
Create notification rule opens overlay with sensible defaults.
Save Notification Rule button should be disabled until user adds at least one status check.
Change from design, there is no rate check,
Status check reads:
When status changes from/ equals STATUS 1 / STATUS 2
x times in the preceding _ period_
Preview using historical data section will be added in a later issue.
Message templating will be added in a later issue, messages should be simple string fields for this issue

Just the ui elements.  Not hooked up to the API.


fix bug that Major Incident can be unset by unrelated BZ flag

The bogus convertor logic according to Bugzilla flag handling was just setting is_major_incident to either True or False on every Bugzilla flag processing which obviously wrong. We should only set it according to hightouch and hightouch-lite flags.

@osoukup should target release-2.2.0 branch

Shouldn't it rather first go to master and if it successfully get there be also brought to 2.2.0 ?

@Elkasitu I see, one less PR sounds nice :smile: I changed the base here and as master and release branch point to the same commit now there is no change

@osoukup just remembered, let's update the CHANGELOG

@Elkasitu thank you for the reminder! I am adding the CHANGELOG record


TileStrategy

What is the point of TileStrategy within TileDataset? Does not seem to obvious from reading the code to me (other than precompute which is not implemented yet). And what is one of the default strategies?

FastGridTiling is currently the only implementation of a TilingStrategy.
The idea is here, that implementations could trade off the amount of data needed to load to make better decisions about tiling, and that tilings can be serialized to allow random tile access on large image datasets without overhead.
https://github.com/Bayer-Group/pado/blob/635d7b8b57e527254d6302730100a6dab5a2095f/pado/images/tiles.py#L355-L435

Works as described!


Crash when trying to enter the sound menu

Application has crashed: C++ exception
[string "core/lib/utils/coretable.lua"]:224: bad argument #1 to 'pairs' (table expected, got nil)
SCRIPT STACK
get_key() core/lib/utils/coretable.lua:224
build_menu() @mods/BeardLib-Editor-master/Classes/Map/SoundLayerEditor.lua:157
final() @mods/BeardLib-Editor-master/Classes/Map/WorldDataEditor.lua:494
RunCallback() 1184
MousePressed() 1310
MousePressed() 1311
MousePressed() 1311
MousePressed() 1311
mouse_press() 485
lib/managers/mousepointermanager.lua:345
repro steps: load into any level in editor mode, click on Sound.

Cannot reproduce.

Dup of #475


Error: Cannot read property 'style' of undefined when table is edited

I've got linked filters, one of which is a select dropdown, another is a plain text box. If I filter by the select box, then type a few characters into the text box, I can narrow down the results. But the table row includes a 'delete row' feature which removes the row from the table. This leaves the filter result as empty, since there are now no matching rows. But my guess is that TableFilter doesn't really like having rows removed from underneath it. I tried calling the filter() method immediately after updating the table, but that didn't seem to help, and I couldn't see an obvious refresh() method in the docs. The precise error is:

	Uncaught TypeError: Cannot read property 'style' of undefined
		e.TableFilter.t.filter @ tablefilter.js:7
		e.Dropdown.e.onSlcChange @ tablefilter.js:8
		(anonymous function) @ tablefilter.js:8

Is there a way to make TableFilter happier about this situation?

Thanks for pointing this out, I will have a look to it. Could be just a question of having more defensive code.

Hi again @dsl101,
starting from v0.2.29, TableFilter should better support underlying changes in the number of row DOM elements. As you say there is no obvious refresh method at the moment but you shouldn't need it.
Give it a try and tell me how it goes.
Cheers

Hi - I ran npm update, but it is only offering 0.2.28. I'm fairly new to npm - do I need to do something special to allow the latest version? I also tried npm install<EMAIL_ADDRESS>but that gave a 'version not found' error...

Sorry mate I haven't published it on npm yet and I can't until tomorrow morning (Sydney timezone), I left my laptop at the office, just using my phone. However it is available on GitHub if you want.
Cheers

Tx - no rush! I'm on UK time so I guess it will be there by tomorrow for me :).

How did this go?

My basic testing that I used before to cause the error has certainly gone
away. I haven't had chance to do any unit tests - e.g. making sure the
remaining rows are all still indexed correctly, etc. I'm afraid. Let's call
it fixed :)
Many thanks
On Thursday, 26 May 2016, koalyptus<EMAIL_ADDRESS>wrote:

How did this go?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/koalyptus/TableFilter/issues/220#issuecomment-221774153

Ok, you can always raise another ticket :)
Cheers


refactor(interval): ♻ extract IntervalNotation system

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 15 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1067

Relevant Lines:
1067

💛  - Coveralls


libyang-cpp not found

Hi!
I try to build this and I got an error:
$ cmake ..
-- Checking for modules 'libyang-cpp=1.1.0;libyang-cpp'
--   No package 'libyang-cpp' found
--   No package 'libyang-cpp' found
CMake Error at /usr/local/share/cmake-3.23/Modules/FindPkgConfig.cmake:603 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/share/cmake-3.23/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
CMakeLists.txt:30 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
but just before I installed "libyang-cpp" as well:
$ sudo make install
[ 58%] Built target yang-cpp
[ 66%] Built target DoctestIntegration
[ 75%] Built target test_context
[ 83%] Built target test_data_node
[ 91%] Built target test_schema_node
[100%] Built target test_unsafe
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib64/libyang-cpp.so
-- Up-to-date: /usr/local/include/libyang-cpp
-- Up-to-date: /usr/local/include/libyang-cpp/ChildInstantiables.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Collection.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Context.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/DataNode.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Enum.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Module.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/SchemaNode.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Set.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Type.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Utils.hpp
-- Up-to-date: /usr/local/include/libyang-cpp/Value.hpp
-- Up-to-date: /usr/local/lib64/pkgconfig/libyang-cpp.pc

even when I check it with ldconfig:
$ sudo ldconfig -p | grep yang
libyang.so.2 (libc6,x86-64) => /usr/local/lib64/libyang.so.2
libyang.so.2 (libc6,x86-64) => /lib64/libyang.so.2
libyang.so (libc6,x86-64) => /usr/local/lib64/libyang.so
libyang.so (libc6,x86-64) => /lib64/libyang.so
libyang-cpp.so (libc6,x86-64) => /usr/local/lib64/libyang-cpp.so

Hi we're using pkgconfig to find libyang-cpp. Please refer to this thread for instructions on how to tell cmake where your libraries are installed. Specifically this comment should help you.


Schematics for I2S Built-in ADC/DAC Example (IDFGH-2527)

Hi,
I would like to run the I2S Built-in ADC/DAC Example:
https://github.com/espressif/esp-idf/tree/master/examples/peripherals/i2s_adc_dac
The README merely says to connect the speaker and microphones to certain GPIO pins. It would be nice if the README could also add a schematic on how to exactly connect those.
TIA,
AP

Hi, @apuder
Thanks for you suggestion, but the table told us the GPIO connection


Not getting highValue on userChange event

When user changes the slider on userchange event i am not getting highValue property and instead value is returning highest value and there is no min value.
<ng5-slider [(value)]="minValue" [(highValue)]="maxValue" [options]="options"
(userChange)="onFilterChange($event)" (userChangeEnd)="filterChangeEnd($event)">
component-->
import { ChangeContext, Options } from 'ng5-slider';
options: Options = {
floor: 0,
ceil: 11,
step: 1,
showTicksValues: true
};
this.minValue = 0;
this.maxValue = 11;
// Set filtered month list
onFilterChange(changeContext: ChangeContext) {
console.log("[onFilterChange] - Start");
this.filteredMonths = [];
for (var minVal = changeContext.value; minVal <= changeContext.highValue; minVal++) {
  var monthData = this.monthsList[minVal].legend.split(" ");
  this.filteredMonths.push(monthData[0]);
}
console.log('=============FILTERMONTHS==================')
console.log(this.filteredMonths)
this.isTwleveMonths = (this.filteredMonths.length == 12) ? true : false;

}

Thanks for reporting this. That was caused by my rewrite of this code.
I pushed a fix to master and I will release it in next version.

Thank You!!

Fix now released in v1.2.1.


Lombok, Eclipse and JDK10 fails when using the var keyword

If using the 'var' keyword in Eclipse with Lombok and JDK10 I get the following error in Eclipse:
'var' is not allowed here
Using the latest Edge build of Lombok: version: 1.16.21 (2018-04-23 21:43:58 UTC)
If I remove Lombok it works.

I have the same problem. I'm using the latest release of Eclipse Oxygen. If I put lombok on eclipse, "var" doesn't work. In another issues of lombok project, people said that using lombok edge (https://projectlombok.org/download-edge) would fix. Even with the referred version of lombok, I can't use "var".

Did you remove import lombok.var?

Yep, there is no trace of Lombok in any import.  Here is some sample code:
package perfparse;
public class TestLombok {
	public static void main(String[] args) {
		var i = 0;
	}
}

In eclipse the "var" has a error on it which says:
'var' is not allowed here	Parse.java	/perfparse/src/main/java/perfparse	line 49	Java Problem

Same in Intellij IDEA. Since a "full JDK 10 supported" had been anounced, I have migrated to JAVA 10 and removed all import lombok.var to switch to JAVA's var and got IDE errors.
What's even worse, a maven compilation succeds after removing imports, but it fails when imports are present. So I have to migrate back to JDK 8 (because BOTH IDE and maven compilation must work)

The new 1.6.22 release seems to have fixed this. At least it did for me on Eclipse.

I'll give it a shot. Is an IntelliJ user here other than me, who can confirm the issue?

Still not working on Eclipse Oxygen.3a for me.  Same problem as before.

Same problem in Visual Studio Code with Lombok version 1.16.22.
If you are using "import lombok.var" VSCode thinks that code is fine but Gradle doesn't build it. If you aren't using import VSCode thinks that code has errors, but Gradle build it without problems.

Looks like a plugin(s) problem to me.

Is this commit related to fixing this issue?

Is there any progress on resolving the issue?

Not progress yet, we do not know why if the import is not present the IDEs give errors.

Did someone test this in an IDE without lombok installed?

According to https://www.kevinhooke.com/2018/03/25/taking-a-look-at-java-10-with-eclipse-oxygen-3-with-not-much-success/ this does not work at all.

Hmm, on the other hand https://www.kevinhooke.com/2018/03/26/update-java-10-with-eclipse-oxygen-3a-4-7-3a-rc2-working/ seems to get it working.

We fixed it for Eclipse. for IntelliJ or VSCode, please register issues in their projects.

Roel, it looks like your patch reacts to the presence of the import lombok.var.  Pretty cool.  I was expecting some patch that just detected JDK 10+ and just disabled the feature.  This is cool because (I think) it says "if the import is there, apply Lombok".

This still happens. Using Lombok 1.18.2 as a java agent for the latest Eclipse Photon with JDK 10.0.2.

Hello, may I ask about how this issue whether it has been resolved if it's been resolved?
With the latest Eclipse Java EE IDE for Web Developers Version: 2018-09 and the latest lombok 1.18.2 I am still getting this error when the Eclipse's JVM is instrumented with -javaagent:lombok.jar even if there is no import of the lombok.var type anywhere in the Java source code and lombok.jar is not among the project's dependencies

With current version of Lombok (1.18.2) and VS Code everything work like charm when you are using Java 8, Java 9, Java 10 or Java 11. Haven't tested with Java 12 EA yet ;)
VS Code and Eclipse are using similar technologies for Java so i am quite sure that everything works with latest Eclipse as well especially if configured right.
With VS Code i am using following configuration:
{
"folders": [
{
"path": "."
}
],
"settings": {
"java.home": "/opt/java/java-11",
"java.configuration.updateBuildConfiguration": "automatic"
"java.jdt.ls.vmargs": "-javaagent:/home/eero/java/lombok/1.18.2/lombok.jar -Xbootclasspath/a:/home/eero/java/lombok/1.18.2/lombok.jar"
}
}
Best,
Eero.

....

"java.jdt.ls.vmargs": "-javaagent:/home/eero/java/lombok/1.18.2/lombok.jar -Xbootclasspath/a:/home/eero/java/lombok/1.18.2/lombok.jar"

Thanks for coming back to me on this, However, with C:\Eclipse4.9\eclipse.exe -vm c:\JDK11\bin\javaw.exe -vmargs -javaagent:lombok.jar
with lombok.jar being @ 1.18.2, latest Eclipse for Java EE developers and JDK11 being OpenJDK there is still:
'var' is not allowed here
If the instrumentation of the JVM with lombok.jar is removed everything works fine.

With the very latest patch of Eclipse Java EE IDE for Web Developers, Version: 2018-09 (4.9.0) it has begun to work.


Remove generated html build from docs?

I assume adding the docs/html is not intentional😅.

well actually I want to have an exclusive documentation in the browser where you can see and click directly on the class. The best is to generate that online but currently I have no time doing it ;__; If you know how please kindly tell me.
I agree that these docs can be annoying when you see it in git status so it will be ignored

You could try [rtd] (https://youtu.be/OdVKFkZQyTo). An example of using doxyfile is [here] (https://stackoverflow.com/questions/36064976/using-doxygen-in-read-the-docs)

thanks, I will take a look


add react native vector icons

I've added a new dependency to allow us to use icons.
I'm making other PR with a showcase

Hi @brunubarbosa , i have already added this package in the Theme Switcher PR,if want make a revision of PR

sup @leoferreiralima,  How do you intend to merge your PR? as I saw a comment there, you should break your PR into 4 another (add theme lib, implement theme lib, add icon lib and implement icon lib), do you think you can do it as soon as possible?


[Bug] Transparency enabled removes rounded corners

Describe the Bug

When transparency is enabled it removes rounded corners from windows 11

To Reproduce

1 Use windows 11
2 Enable transparency
3 Rounded corners gone

Expected Behavior

  The rounded corners should stay and not become squared

Screenshots

Discord Version

 1.9003

Additional Context

This is part of the base electron and is not something we control


Prepare for 0.8.0 release

Which issue does this PR close?

Closes #.
Rationale for this change

What changes are included in this PR?

change version
update changelog

Are there any user-facing changes?

@Jimexist @francis-du @martin-g fyi

Awesome! Thanks!


Modifying env variables while running.

Certain env variables might be nice to be able to change while the bot is running.
Things like if strikes actions should be performed automatically, or reminders to join the server could be easily toggled.
Obviously things like the discord token and things set on startup can be set to not be able to change.
I don't know if it could set these in whatever runs the bot, so if it has to restart for some reason, the new settings are saved.

It would also be useful for some required variables to allow empty values when a new variable DEBUG is set to True. This DEBUG variable should be False by default, and passed through to the Django DEBUG variable

This will be completed in tandem with #165

dupe of #165


mars.learn initiative starts with XGBoost support

Is your feature request related to a problem? Please describe.
I think maybe it's time for mars to extend the ecosystem to learning system. XGBoost would be a good first shot, we can treat it as the first support for mars.learn.

I have noticed that Dask team had a fruitful discussion with XGBoost team, and there is already a project named dask-xgboost. They are so fantastic that our job could be more easier.

Some updates are listed below.

XGBoost requires for a dmlc tracker started first with nworker specified to tell the dmlc distributed layer how many workers can be used. We can do this in an execution of a virtual node, the virtual node should rely on all the input chunks to make sure all data are processed.
XGBoost computation will start once all workers are ready, this is a potential issue that, Mars does not support all-or-nothing scheduling yet, which means if a worker of xgboost is triggered by Mars, the calculation slot is occupied, but the worker will do nothing until all the workers are ready. This could be sort of waste on worker resources.


#55 - Add styling to email verification email

Fixes #55
Screenshots

Thanks @kuldeepsidhu88 for the contribution.


Fixed bug: inverted bool in DefaultRetryPolicy

The meaning of data_present was understood as the opposite in the
code.
Pre-review checklist

[x] I have split my patch into logically separate commits.
[x] All commit messages clearly explain what they change and why.
[ ] I added relevant tests for new features and bug fixes.
[x] All commits compile, pass static checks and pass test.
[x] PR description sums up the changes and reasons why they should be introduced.
[ ] I added appropriate Fixes: annotations to PR description.

v2: fixed tests that have been failing due to similar misunderstanding as that in policy's logic.


fix(statusreport): include TestInvalid in evaluation

determineIfAllIntegrationTestsFinishedAndPassed must take TestInvalid into account and eval it as finished test
Maintainers will complete the following section

[ ] Commit messages are descriptive enough (hints)
[ ] Code coverage from testing does not decrease and new code is covered (check the PR coverage on codecov)
[ ] Controllers diagrams are updated when PR changes controllers code  (if applicable)

/retest-required


ssl_check_peer bypass ALPN check if NPN is used

Customer complains that if NPN is used, ssl_check_peer fails due to expecting ALPN.
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/grpc-io/x25rc8lJK4k/YTQM2vACBwAJ
This PR will bypass ALPN if NPN is used, in which case, TSI_OPENSSL_ALPN_SUPPORT=0

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

@nicolasnoble Could you take a quick review?

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[microbenchmarks] No significant performance differences

#15932  #1593 #16078

Failing test seems unrelated. Let me merge.

Doesn't http2 require alpn?


refactor(linter): move OxlintConfig to Oxlintrc

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5707  👈
#5706
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @DonIsaac and the rest of your teammates on  Graphite


Add ULong scalar type

Add ULongType to Hotchocolate.Types.Scalars

https://github.com/ChilliCream/hotchocolate/pull/3255

Address: #2927

closed with #3255


Pandas to Nice_cx should allow to choose datatype and delimiter for node/edge attributes

It would be nice if a user could specify both the "datatype" and "delimiter" to be used for each node/edge attribute.

This is related to the already existing issue #13


Add support for Saturn 4 Ultra

S4U uses protocol version 3.0.0 and has more extensive features from what I can see (file listing! access to the camera feed!) but work will be needed.

The protocol seems to have changed. It's now a websockets based thing, using the same structure as before. The broadcast reply includes the IP address, and the host can make a HTTP request to port 3030 to upgrade to a websocket connection. After that, command requests/replies proceed much like they did with MQTT (including leftover "topics"; maybe there's still a MQTT way to do this, but this is much simpler). Here's a stream of ChituManager talking to my S4 Ultra, including enabling the video:
UDP broadcast reply:

{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Name":"3D Printer","MachineName":"Saturn 4 Ultra","BrandName":"ELEGOO","MainboardIP":"<IP_ADDRESS>","MainboardID":"ed5847f5c1d70100","ProtocolVersion":"V3.0.0","FirmwareVersion":"V1.1.9"}}

Port 3030 is the http port; used for a websocket upgrade, as well as to fetch data from the printer

Hypertext Transfer Protocol
    GET /websocket HTTP/1.1\r\n
    Host: <IP_ADDRESS>:3030\r\n
    Connection: Upgrade\r\n
    Pragma: no-cache\r\n
    Cache-Control: no-cache\r\n
    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.3.2 Chrome/94.0.4606.126 Safari/537.36\r\n
    Upgrade: websocket\r\n
    Origin: http://<IP_ADDRESS>:32679\r\n
    Sec-WebSocket-Version: 13\r\n
    Accept-Encoding: gzip, deflate\r\n
    Sec-WebSocket-Key: O9d+RlPt8fvhZ72+tNFo/w==\r\n
    Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n
    \r\n
    [Full request URI: http://<IP_ADDRESS>:3030/websocket]
    [HTTP request 1/1]
    [Response in frame: 142]

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":0,"Data":{},"RequestID":"8f36df9dc0af4aaaaeb7a31b464e4220","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737313,"From":1}}

PRINTER SENDS: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":0,"Data":{"Ack":0},"RequestID":"8f36df9dc0af4aaaaeb7a31b464e4220","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276736},"Topic":"sdcp/response/ed5847f5c1d70100"}

PRINTER SENDS:(?) {"Status":{"CurrentStatus":[1],"PrintScreen":3129.9820052452087,"ReleaseFilm":1034,"TempOfUVLED":42.6506004333496,"TimeLapseStatus":0,"PrintInfo":{"Status":4,"CurrentLayer":34,"TotalLayer":157,"CurrentTicks":652287,"TotalTicks":1718167,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737,"Topic":"sdcp/status/ed5847f5c1d70100"}

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":1,"Data":{},"RequestID":"b4e78e3e25264e1298437c0feb3f7fe4","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737313,"From":1}}

PRINTER SENDS:
{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":1,"Data":{"Ack":0},"RequestID":"b4e78e3e25264e1298437c0feb3f7fe4","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737},"Topic":"sdcp/response/ed5847f5c1d70100"}

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":386,"Data":{"Enable":1},"RequestID":"065a0c0976a0488c81919367eca64d60","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737314,"From":1}}

PRINTER SENDS:(?)
{"Attributes":{"Name":"3D Printer","MachineName":"Saturn 4 Ultra","BrandName":"ELEGOO","ProtocolVersion":"V3.0.0","FirmwareVersion":"V1.1.9","Resolution":"11520x5120","XYZsize":"218.88x128.88x220","MainboardIP":"<IP_ADDRESS>","MainboardID":"ed5847f5c1d70100","SDCPStatus":0,"MaximumCloudSDCPSercicesAllowed":0,"NumberOfCloudSDCPServicesConnected":0,"NumberOfVideoStreamConnected":0,"MaximumVideoStreamAllowed":2,"NetworkStatus":"wlan","UsbDiskStatus":1,"Capabilities":["FILE_TRANSFER","PRINT_CONTROL","VIDEO_STREAM"],"SupportFileType":["CTB","GOO"],"DevicesStatus":{"TempSensorStatusOfUVLED":1,"LCDStatus":1,"SgStatus":1,"ZMotorStatus":1,"RotateMotorStatus":1,"RelaseFilmState":1},"ReleaseFilmMax":60000,"CameraStatus":1,"RemainingMemory":6741819392,"TLPNoCapPos":50,"TLPStartCapPos":30,"TLPInterLayers":10},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737,"Topic":"sdcp/attributes/ed5847f5c1d70100"}

PRINTER SENDS:	{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":386,"Data":{"Ack":0,"VideoUrl":"rtsp://<IP_ADDRESS>:554/video"},"RequestID":"065a0c0976a0488c81919367eca64d60","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737},"Topic":"sdcp/response/ed5847f5c1d70100"}

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":320,"Data":{},"RequestID":"3ad241563c944b159b1c401ededc332b","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737315,"From":1}}

PRINTER SENDS:
{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":320,"Data":{"Ack":0,"HistoryData":["d676bd90-3971-11ef-99d5-a8960913eb31"]},"RequestID":"3ad241563c944b159b1c401ededc332b","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737},"Topic":"sdcp/response/ed5847f5c1d70100"}

PRINTER SENDS:
{"Status":{"CurrentStatus":[1],"PrintScreen":3129.9820052452087,"ReleaseFilm":1035,"TempOfUVLED":42.416477203369141,"TimeLapseStatus":0,"PrintInfo":{"Status":2,"CurrentLayer":35,"TotalLayer":157,"CurrentTicks":657397,"TotalTicks":1718167,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737,"Topic":"sdcp/status/ed5847f5c1d70100"}

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":321,"Data":{"Id":["eb56d498-44bb-11ef-99d5-a8960913eb31"]},"RequestID":"4e2cee69a4304a67a091476c793be7cf","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276738389,"From":1}}

PRINTER SENDS:
{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":321,"Data":{"Ack":0,"HistoryDetailList":[{"Thumbnail":"http://<IP_ADDRESS>:3030/media/mmcblk0p1/history_image/eb56d498-44bb-11ef-99d5-a8960913eb31.bmp","TaskName":"/media/sda1/Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","BeginTime":1721275936,"EndTime":1721275936,"TaskStatus":0,"SliceInformation":{"resolution_x":11520,"resolution_y":5120,"layer_height":0.05000000074505806,"total_layer_numbers":157,"machine_size_x":218.8800048828125,"machine_size_y":122.87999725341797,"machine_size_z":220,"model_size_x":0,"model_size_y":0,"model_size_z":0,"volume":7.8483929634094238,"weight":8.63323211669922,"price":0.25899696350097656,"print_time":1498,"machine_name":"ELEGOO Saturn 4 Ultra","independent_supports":0,"resin_color":7830394,"resin_type":"normal","resin_name":"normal","profile_name":"Profile","resin_density":1.1000000238418579,"bottom_layer_numbers":5,"transition_layer_numbers":5,"transition_type":0,"bottom_layer_lift_height":0.05000000074505806,"bottom_layer_lift_height2":0,"bottom_layer_drop_height2":0,"bottom_layer_lift_speed":0.000833333353511989,"bottom_layer_lift_speed2":0,"bottom_layer_drop_speed":0.000833333353511989,"bottom_layer_drop_speed2":0,"bottom_layer_exposure_time":35000,"bottom_layer_pwm":255,"bottom_layer_light_off_time":0,"bottom_layer_rest_time_after_drop":500,"bottom_layer_rest_time_after_lift":0,"bottom_layer_rest_time_before_lift":0,"normal_layer_lift_height":0.05000000074505806,"normal_layer_lift_height2":0,"normal_layer_drop_height2":0,"normal_layer_lift_speed":0.000833333353511989,"normal_layer_lift_speed2":0,"normal_layer_drop_speed":0.000833333353511989,"normal_layer_drop_speed2":0,"normal_layer_exposure_time":2500,"normal_layer_pwm":255,"normal_layer_light_off_time":0,"normal_layer_rest_time_after_drop":1000,"normal_layer_rest_time_after_lift":0,"normal_layer_rest_time_before_lift":0},"AlreadyPrintLayer":34,"TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31","MD5":"55216cd9ee711ac59390f7fca454a1e4","CurrentLayerTalVolume":5.16835355758667,"TimeLapseVideoStatus":0,"TimeLapseVideoUrl":"","ErrorStatusReason":0}]},"RequestID":"4e2cee69a4304a67a091476c793be7cf","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737},"Topic":"sdcp/response/ed5847f5c1d70100"}

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":386,"Data":{"Enable":1},"RequestID":"a88ddc9fe88b438ca4d925ff4f28776c","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276738400,"From":1}}

PRINTER SENDS: 	{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":386,"Data":{"Ack":0,"VideoUrl":"rtsp://<IP_ADDRESS>:554/video"},"RequestID":"a88ddc9fe88b438ca4d925ff4f28776c","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737},"Topic":"sdcp/response/ed5847f5c1d70100"}

HOST: {"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":321,"Data":{"Id":["d676bd90-3971-11ef-99d5-a8960913eb31"]},"RequestID":"5f1a6fb423104a1e8958ee29a1060546","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276738411,"From":1}}

PRINTER SENDS:
{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":321,"Data":{"Ack":0,"HistoryDetailList":[{"Thumbnail":"http://<IP_ADDRESS>:3030/media/mmcblk0p1/history_image/d676bd90-3971-11ef-99d5-a8960913eb31.bmp","TaskName":"/media/sda1/Printing Test//ROOK.goo","BeginTime":1720034656,"EndTime":1720041145,"TaskStatus":1,"SliceInformation":{"resolution_x":11520,"resolution_y":5120,"layer_height":0.05000000074505806,"total_layer_numbers":1000,"machine_size_x":218.8800048828125,"machine_size_y":122.87999725341797,"machine_size_z":260,"model_size_x":0,"model_size_y":0,"model_size_z":0,"volume":11.708434104919434,"weight":12.8792781829834,"price":0.38637834787368774,"print_time":123662,"machine_name":"ELEGOO Saturn 3 Ultra","independent_supports":0,"resin_color":0,"resin_type":"","resin_name":"","profile_name":"","resin_density":0,"bottom_layer_numbers":5,"transition_layer_numbers":8,"transition_type":0,"bottom_layer_lift_height":0.05000000074505806,"bottom_layer_lift_height2":0,"bottom_layer_drop_height2":0,"bottom_layer_lift_speed":0.000833333353511989,"bottom_layer_lift_speed2":0,"bottom_layer_drop_speed":0.000833333353511989,"bottom_layer_drop_speed2":0,"bottom_layer_exposure_time":35000,"bottom_layer_pwm":255,"bottom_layer_light_off_time":0,"bottom_layer_rest_time_after_drop":1000,"bottom_layer_rest_time_after_lift":0,"bottom_layer_rest_time_before_lift":0,"normal_layer_lift_height":0.05000000074505806,"normal_layer_lift_height2":0,"normal_layer_drop_height2":0,"normal_layer_lift_speed":0.000833333353511989,"normal_layer_lift_speed2":0,"normal_layer_drop_speed":0.000833333353511989,"normal_layer_drop_speed2":0,"normal_layer_exposure_time":2500,"normal_layer_pwm":255,"normal_layer_light_off_time":0,"normal_layer_rest_time_after_drop":1000,"normal_layer_rest_time_after_lift":0,"normal_layer_rest_time_before_lift":0},"AlreadyPrintLayer":999,"TaskId":"d676bd90-3971-11ef-99d5-a8960913eb31","MD5":"e5a3ac486cb6f766a9364e78ba875719","CurrentLayerTalVolume":0,"TimeLapseVideoStatus":0,"TimeLapseVideoUrl":"","ErrorStatusReason":0}]},"RequestID":"5f1a6fb423104a1e8958ee29a1060546","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276737},"Topic":"sdcp/response/ed5847f5c1d70100"}

HOST:
{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":321,"Data":{"Id":["eb56d498-44bb-11ef-99d5-a8960913eb31"]},"RequestID":"9862d89050e64eaebd9d96b13107d59e","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276738428,"From":1}}

PRINTER SENDS:
{"Id":"f25273b12b094c5a8b9513a30ca60049","Data":{"Cmd":321,"Data":{"Ack":0,"HistoryDetailList":[{"Thumbnail":"http://<IP_ADDRESS>:3030/media/mmcblk0p1/history_image/eb56d498-44bb-11ef-99d5-a8960913eb31.bmp","TaskName":"/media/sda1/Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","BeginTime":1721275936,"EndTime":1721275936,"TaskStatus":0,"SliceInformation":{"resolution_x":11520,"resolution_y":5120,"layer_height":0.05000000074505806,"total_layer_numbers":157,"machine_size_x":218.8800048828125,"machine_size_y":122.87999725341797,"machine_size_z":220,"model_size_x":0,"model_size_y":0,"model_size_z":0,"volume":7.8483929634094238,"weight":8.63323211669922,"price":0.25899696350097656,"print_time":1498,"machine_name":"ELEGOO Saturn 4 Ultra","independent_supports":0,"resin_color":7830394,"resin_type":"normal","resin_name":"normal","profile_name":"Profile","resin_density":1.1000000238418579,"bottom_layer_numbers":5,"transition_layer_numbers":5,"transition_type":0,"bottom_layer_lift_height":0.05000000074505806,"bottom_layer_lift_height2":0,"bottom_layer_drop_height2":0,"bottom_layer_lift_speed":0.000833333353511989,"bottom_layer_lift_speed2":0,"bottom_layer_drop_speed":0.000833333353511989,"bottom_layer_drop_speed2":0,"bottom_layer_exposure_time":35000,"bottom_layer_pwm":255,"bottom_layer_light_off_time":0,"bottom_layer_rest_time_after_drop":500,"bottom_layer_rest_time_after_lift":0,"bottom_layer_rest_time_before_lift":0,"normal_layer_lift_height":0.05000000074505806,"normal_layer_lift_height2":0,"normal_layer_drop_height2":0,"normal_layer_lift_speed":0.000833333353511989,"normal_layer_lift_speed2":0,"normal_layer_drop_speed":0.000833333353511989,"normal_layer_drop_speed2":0,"normal_layer_exposure_time":2500,"normal_layer_pwm":255,"normal_layer_light_off_time":0,"normal_layer_rest_time_after_drop":1000,"normal_layer_rest_time_after_lift":0,"normal_layer_rest_time_before_lift":0},"AlreadyPrintLayer":34,"TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31","MD5":"55216cd9ee711ac59390f7fca454a1e4","CurrentLayerTalVolume":5.16835355758667,"TimeLapseVideoStatus":0,"TimeLapseVideoUrl":"","ErrorStatusReason":0}]},"RequestID":"9862d89050e64eaebd9d96b13107d59e","MainboardID":"ed5847f5c1d70100","TimeStamp":1721276738},"Topic":"sdcp/response/ed5847f5c1d70100"}

PRINTER SENDS:
{"Status":{"CurrentStatus":[1],"PrintScreen":3129.9820052452087,"ReleaseFilm":1035,"TempOfUVLED":41.059421539306641,"TimeLapseStatus":0,"PrintInfo":{"Status":3,"CurrentLayer":35,"TotalLayer":157,"CurrentTicks":660718,"TotalTicks":1716171,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276741,"Topic":"sdcp/status/ed5847f5c1d70100"}

PRINTER SENDS:
{"Status":{"CurrentStatus":[1],"PrintScreen":3132.4820052452087,"ReleaseFilm":1035,"TempOfUVLED":41.946769714355469,"TimeLapseStatus":0,"PrintInfo":{"Status":4,"CurrentLayer":35,"TotalLayer":157,"CurrentTicks":664228,"TotalTicks":1716171,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276744,"Topic":"sdcp/status/ed5847f5c1d70100"}

PRINTER SENDS:
{"Attributes":{"Name":"3D Printer","MachineName":"Saturn 4 Ultra","BrandName":"ELEGOO","ProtocolVersion":"V3.0.0","FirmwareVersion":"V1.1.9","Resolution":"11520x5120","XYZsize":"218.88x128.88x220","MainboardIP":"<IP_ADDRESS>","MainboardID":"ed5847f5c1d70100","SDCPStatus":0,"MaximumCloudSDCPSercicesAllowed":0,"NumberOfCloudSDCPServicesConnected":0,"NumberOfVideoStreamConnected":0,"MaximumVideoStreamAllowed":2,"NetworkStatus":"","UsbDiskStatus":1,"Capabilities":["FILE_TRANSFER","PRINT_CONTROL","VIDEO_STREAM"],"SupportFileType":["CTB","GOO"],"DevicesStatus":{"TempSensorStatusOfUVLED":1,"LCDStatus":1,"SgStatus":1,"ZMotorStatus":1,"RotateMotorStatus":1,"RelaseFilmState":1},"ReleaseFilmMax":60000,"CameraStatus":1,"RemainingMemory":6741819392,"TLPNoCapPos":50,"TLPStartCapPos":30,"TLPInterLayers":10},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276745,"Topic":"sdcp/attributes/ed5847f5c1d70100"}

PRINTER SENDS:
{"Attributes":{"Name":"3D Printer","MachineName":"Saturn 4 Ultra","BrandName":"ELEGOO","ProtocolVersion":"V3.0.0","FirmwareVersion":"V1.1.9","Resolution":"11520x5120","XYZsize":"218.88x128.88x220","MainboardIP":"<IP_ADDRESS>","MainboardID":"ed5847f5c1d70100","SDCPStatus":0,"MaximumCloudSDCPSercicesAllowed":0,"NumberOfCloudSDCPServicesConnected":0,"NumberOfVideoStreamConnected":0,"MaximumVideoStreamAllowed":2,"NetworkStatus":"wlan","UsbDiskStatus":1,"Capabilities":["FILE_TRANSFER","PRINT_CONTROL","VIDEO_STREAM"],"SupportFileType":["CTB","GOO"],"DevicesStatus":{"TempSensorStatusOfUVLED":1,"LCDStatus":1,"SgStatus":1,"ZMotorStatus":1,"RotateMotorStatus":1,"RelaseFilmState":1},"ReleaseFilmMax":60000,"CameraStatus":1,"RemainingMemory":6741819392,"TLPNoCapPos":50,"TLPStartCapPos":30,"TLPInterLayers":10},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276751,"Topic":"sdcp/attributes/ed5847f5c1d70100"}

PRINTER SENDS:
{"Status":{"CurrentStatus":[1],"PrintScreen":3132.4820052452087,"ReleaseFilm":1036,"TempOfUVLED":41.930145263671875,"TimeLapseStatus":0,"PrintInfo":{"Status":2,"CurrentLayer":36,"TotalLayer":157,"CurrentTicks":669355,"TotalTicks":1716171,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276751,"Topic":"sdcp/status/ed5847f5c1d70100"}

PRINTER SENDS:
{"Status":{"CurrentStatus":[1],"PrintScreen":3132.4820052452087,"ReleaseFilm":1036,"TempOfUVLED":41.0344581604004,"TimeLapseStatus":0,"PrintInfo":{"Status":3,"CurrentLayer":36,"TotalLayer":157,"CurrentTicks":672608,"TotalTicks":1714197,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276753,"Topic":"sdcp/status/ed5847f5c1d70100"}

PRINTER SENDS:
{"Status":{"CurrentStatus":[1],"PrintScreen":3134.9820052452087,"ReleaseFilm":1036,"TempOfUVLED":41.832637786865234,"TimeLapseStatus":0,"PrintInfo":{"Status":4,"CurrentLayer":36,"TotalLayer":157,"CurrentTicks":676127,"TotalTicks":1714197,"ErrorNumber":0,"Filename":"Button.stl_0.05_2.5_2024_07_17_21_10_00.ctb","TaskId":"eb56d498-44bb-11ef-99d5-a8960913eb31"}},"MainboardID":"ed5847f5c1d70100","TimeStamp":1721276757,"Topic":"sdcp/status/ed5847f5c1d70100"}

Hey, I'm also interested in creating a utility to print wirelessly on my s4u.
Seems like they opensourced the protocol:
https://www.chitubox.com/en/page/sdcp
https://github.com/cbd-tech/SDCP-Smart-Device-Control-Protocol-V3.0.0/blob/bdbeedbad90d825fb67fae49f1316f41b97a1aa3/SDCP(Smart Device Control Protocol)_V3.0.0_EN.md
Hopefully this is of use to you :)

@Metal-spoon oh hey, that's awesome, thank you! Saves me from continuing the reverse engineering, which was going to be annoying because Chitu Manager just completely stopped working for me :)


Drop-in UI and billing address

I have a form with drop-in UI and a few text boxes for billing address.
What is the correct way to set or update address for a payment method selected with Drop-in UI?
I notice that if the user added a new payment method in Drop-in UI and submits it I am able to use PaymentMethod.Create() passing the payment_method_nonce and billing request and that will set the billing address.
However if the user didn't add a new payment method then PaymentMethod.Create() returns success but doesnt update the payment method's billing address.
How can I update the billing address for a payment method when all I have is payment_method_nonce so I don't know if a new payment method has been added or an existing one is to be updated(and which existing payment method)?

@fireflystorm When you create a Transaction#sale, you can pass an option add billing address to a payment method as well as an option to store a payment method.
However, this will not overwrite an existing billing address. In order to do this, you must use a PaymentMethod#update call.
I’m going to close this issue as I believe this answers your questions, but please reach out to our support team with future questions or concerns (support@braintreepayments.com).


The Box Counter / FPS Counter / Collision Counter UI element in the examples are halfway off-screen

Here's a screenshot of it happening in the boxes3d example:

And here's one of it happening in the boxes2d example:

This happened while I had 47bb004 checked out, but it has also happened before that.

Yes, this is due to changes to how UI elements are positioned in amethyst, will need to be fixed.


add index and cluster statistics

This commit adds index and cluster statistics. A big portion of the code
was forked from botify-labs/collectd-elasticsearch. The index name is
encoded using [] which would make it appear as a dimension when reported
to a SignalFx endpoint.
This commit cleans up the code to make it a bit more pep8 compliant. It
also adds collectd mocking to make this easy to test by just running the
python script.

Cool stuff! Do we have any plans of contributing our changing upstream / trying to unify the community towards a single collectd-elasticsearch plugin?


Retrieve multiple columns - 'raw' query

Is it possible to retrieve only 'raw' values with SQLitePCL and command parameters?
With that I mean; Execute following query:
SELECT column1, column2, column3 FROM table1 WHERE column1 > ?
and only getting those values and not the corresponding C# entity?
Maybe as a List<object[]>

I don't know about any method in this library and you probably need to execute raw query and then iterate results and map its values to a proper data type
SQLitePCL.sqlite3_stmt stQuery = SQLite3.Prepare2(connection.Handle, query);
var colLength = SQLite3.ColumnCount(stQuery);
List<object[]> result = new List<object[]>();
while (true)
{
    var step = SQLite3.Step(stQuery);
    if (step != SQLite3.Result.Row)
        break;

    object[] obj = new object[colLength];
    result.Add(obj);
    for (int i = 0; i < colLength; i++)
    {
        var colType = SQLite3.ColumnType(stQuery, i);
        switch (colType)
        {
            case SQLite3.ColType.Integer:
                obj[i] = SQLite3.ColumnInt(stQuery, i);
                break;

            // Handle other types you need
        }
    }
}

Thank you very much, this is exactly what I needed :+1:


[Frontend] Stop parsing after we hit a return statement.

[Frontend] Stop parsing after we hit a return statement.
Suppose you have something like the following.
@jit
def fn(x, y):
  return x
  return y

Clearly this function returns x and not y, but before this patch, we'd say
that the function's last_ret_type was y.  This would cause assertions inside
the C++ side of code generation.  The IR would correctly return x, but the type
of fn would match the shape of y.
While we're here, we also fix the reported location for these and other errors
reported by the code_generator.  We frequently do something like the following.
def visit_Foo(node):
  assert(self.last_node == node)  # passes
  self.visit(node.operand)
  # Now self.last_node != node

  do_stuff()

If do_stuff() raises an exception, we should attach the exception to node,
not to whatever was the last node touched by self.visit(node.operand).
PR chain

#3186
👉 #3187 👈 YOU ARE HERE

⚠⚠ Please do not click the green "merge" button unless you know what
you're doing.  This PR is part of a chain of PRs, and clicking the merge
button will not merge it into master. ⚠⚠

@ThomasRaoux this is also ready for review, but no rush.

Thank you!


Delete links that are no longer in the CSV

When a local authority deletes a link from local.direct.gov.uk we need to
ensure that we delete it from our dataset as well.
We already did this for the imports in publisher, but we need to also do this
in local links manager until we stop importing data.  An alternative would be
to drop the data and recreate it each time, but this creates a period of
instability where there are no records.
The Publisher work is around this point:
https://github.com/alphagov/publisher/pull/436/commits/b025051977c402d3ede788720a0814f62890540c
We have a fail-safe total to ensure that we don't purge all our links should we
somehow end up with an empty CSV file.  We currently have 80_000 links in
Local Links Manager, however work continues to ascertain which services and
interactions we support, so I 'guessed' at a safe total of 40_000 to begin
with.
https://trello.com/c/KuN7jtEr/394-imports-should-delete-things-sensibly-5

Can we merge this?  I'd like to refactor the tests to extract some of the boilerplate, but haven't managed to get anything satisfactory yet.  I'm on 2nd line for a week now.

@sihugh What do you think about https://github.com/alphagov/local-links-manager/pull/24/commits/c907f0aecfc986738f638fde69854ddfe6ec7334 for reducing boilerplate in the tests?


Status bar color changes

i used this code in my project , when i call new activity, animation working proper but status bar color changed to white.

Hi. What do you mean? What exactly are you trying to do? Can you show the code?
This library doesn't contain a way to animate status bar color


Using CSS rgb notation with Color rgb argument

Hi,
I searched in code, doc and issues but i didn't find a clear way to use CSS rgb values since Color rgb argument required float values.
Like for red color i have this CSS rule:
rgb(255, 0, 0)
I attempted to be able to do:
Color(rgb=(255, 0, 0))
Did i missed some helper or easy math to perform this ?
Thanks.

Ok forget it i found the math to perform it and created my own helpers:
def rgbint2rgbfloat(rgb):
    """
    Convert rgb integer values (0-255) to rgb float values (0.0-1.0) suitable
    with colour.Color usage.

    Args:
        rgb (tuple): Tuple of integer values from 0 to 255

    Returns:
        tuple: Tuple of float values from 0.0 to 1.0
    """
    return tuple([(i / 255) for i in rgb])

def rgbfloat2rgbint(rgb):
    """
    Convert rgb float values (0.0-1.0) to rgb integer values (0-255).

    Args:
        rgb (tuple): Tuple of float values from 0.0 to 1.0

    Returns:
        tuple: Tuple of integer values from 0 to 255
    """
    return tuple([int(255 * i) for i in rgb])

Sorry for the noise


Itemlist_formaction testing only tests for two operations

Newsbeuter version: 2.10
The tests implemented in test/itemlist_formaction.cpp only test the two commands added in #380, but could be used to test all the other commands available in this formaction. This issue's main goal is to track the development currently ongoing in my branch.

Only three more commands implemented so far, thirty six remaining, would you rather have me submit a PR now for review purpose or wait a bit for it to be more consistent ?

Technically this is about 2.10, because we didn't release those tests with 2.9. Happy to know you're working on this ^_^
A note regarding the structure of the tests: I found it to be easier when the tests are smaller, even if this means some things are duplicated from test to test. This way, you don't need to skim numerous screens of code to find pieces relevant to the small REQUIRE that's failing. In this particular case, I think writing separate TEST_CASE for each operation will be fine, and SECTIONs can be used for different properties of each operation (don't forget about short, descriptive names for those ;)

Re PR: submit it now. It's a big chunk of work, it will be a pain to review and update when it's completely done.

Good point, fixing the version number. And you're right it will definitely need splitting into different TEST_CASEs while still grouping what is related (e.g open in brower commands with and without marking read.)
Now submitting a PR.

With #420 merged and all its findings turned into separate issues, this one can be closed.


Unable to find a specification for React-logger (= 0.67.2) depended upon by ReactCommon/turbomodule/core

Description
I am using Monorepo for my react-native apps, App is working fine before trying to upgrade. I am trying to upgrade react-native version using web helper tool available in documentation. while doing pod install I am getting error
[!] Unable to find a specification for `React-logger (= 0.67.2)` depended upon by `ReactCommon/turbomodule/core`

You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.

Version
0.67.2
Output of npx react-native info
System:
OS: macOS 11.3
CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
Memory: 182.65 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.4.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.3
System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_222 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: 0.67.2 => 0.67.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce

Update files according to web upgrade tool for v0.64.2 => v0.67.2
Install dependencies
pod install in ios folder

Snack, code example, screenshot, or link to a repository
No response

Add pod 'React-logger', :path => '../node_modules/react-native/ReactCommon/logger'

Are you using use_react_native from react_native_pods.rb? Pods should already be configured for you. The solution provided by @ytl6547 should also work 👍


Fixed logging race condition

Fixed a race condition when logging

Manual implementation of changes in Pull Request #12 with commit 0c05fc8.


Edge Splitter for directed graphs

Description
I'm training a link classification algorithm for a directed graph. However, when I try to use the stellargraph.data.EdgeSplitter.train_test_split module, I'm getting an error:
NetworkXNotImplemented: not implemented for directed type
This shouldn't be something too hard to solve since an edge splitter shouldn't be very different for a directed or an undirected graph.
User Story
As an ML engineer
I want to be able to use an edge splitter with an undirected graph
So that I can train link classification algorithms for undirected graphs.
Done Checklist

[ ] Produced code for required functionality
[ ] Tests written and coverage checked
[ ] Code review performed
[ ] Documentation on Google Docs  (if applicable)
[ ] Documentation in repo
[ ] Version number reflects new status
[ ] CHANGELOG.md updated
[ ] Team demo

Thanks for filing an issue @rmant. This is a duplicate of https://github.com/stellargraph/stellargraph/issues/945 and so I'm going to close it in favour of that. That issue was filed as a result of experiments with directed edge-splitting in https://github.com/stellargraph/stellargraph/pull/879, which were removed as it wasn't clear how well they were working at all (https://github.com/stellargraph/stellargraph/pull/879#issuecomment-590155731).  The changes made in that PR were fully reverted in https://github.com/stellargraph/stellargraph/pull/879/commits/1a3af2bc3f93ae38487498603bff688c1fd76c77 , but could be revived and tested explicitly.


Not enough information to easily parse the input

The library is great in its simplicity and extreme efficiency, not making any dynamic memory allocations on its own, etc. However, this simplicity apparently comes at the cost of making it extra complicated for the user code to use the library and parse complex JSON input.
Most particularly, an element that has child elements (ie. an object or an array) will have its size member tell you how many child elements it contains, but not how many tokens long the entire element is. Which means you can't just jump to the end of the current element, to the token that represents the next element.
For example, if an "object" element contains 3 child elements, the size member of the token for this "object" will be 3, which is important information to know how many child elements this object contains. However, it does not contain a member that tells how many tokens long this object is, which means you can't just jump to the token representing the element (at the same nesting level) after this one.
Suppose, let's say, that the input JSON consists of an array of objects. Every time the code encounters a token as a direct child element of the array, it calls a function to parse it (giving it the pointer to all the tokens and the index to the current token), and then it would want to jump to the next element in the array. It can't, because this information is not anywhere. There's no way of knowing how many tokens long this array element is, without actually going through the tokens and counting, using rather complex logic (especially since each element may be an object that may contain further deeply nested elements).
(The end element of jsmntok_t points to the end of this element in the original string, but this doesn't help at all knowing what is the token for the next element after this one.)
This would be easily fixed by adding an additional member to jsmntok_t: One that tells how many tokens long this element is. Adding this value to the index of this token directly tells you which token represents the elemnt following this one. (With object and array type elements it allows easily going from one child element to the next, in easy steps, by simply adding this value to the current element index.)

As mentioned in https://github.com/zserge/jsmn/issues/164#issuecomment-1906908419, you can just use start and end to skip all the nested elements of the given object or array using a simple loop.


How to access External and Internal both Storage

Is there any way to use both External and Internal both path. how to achieve on Click of "Selelct a File"

Hi! Did you solve this case?

Did anyone solve this issue ??

One way is just start browsing at root "/" instead of getExternalStorageDirectory(), and let the user browse to the secondary sd card path (not really too good, since many users won't know where it is). This won't work on Android 7.0 though as you can't view the root directory.
There are various posts on stackoverflow on how to get paths to the primary and secondary storages, though none I have found are very good (they are all hackey). File explorer apps seem to be able to do it though, so if you found a reliable way you could make it so "Choose A File" loaded the paths to all the storages at the top directory instead of getExternalStorageDirectory()

How did you solve the problem


Google driver is broken since 0.5.0-rc1

The authentication mechanism is broken for Google Driver is broken since 0.5.0-rc1.
The driver process fails just after opening a browser for the authentication oauth.
$ /bin/docker-machine create -d google --google-project my-project machine

Running pre-create checks...
Creating machine...
Error creating machine: Error in driver during machine creation: unexpected EOF

This one is critical.
It's also worth looking into other drivers to see if there are similar patterns.

Hi @jeffmendoza, would you or a colleague be willing to work on that issue?

I'll take a look on Monday

Thanks @jeffmendoza !
cc @nathanleclaire

Have my eye on it.
My general thinking is that we should modify the driver to run without needing input from the user mid-flight, i.e. it asks for the required secrets etc. as flags instead.

#1061already asked for a non-interactive way of creating a machine

@nathanleclaire @jeffmendoza I've got an experimental version here: https://github.com/dgageot/machine/tree/gce-default-auth
It uses default auth to create a vm. That means that if docker-machine is run from GCE, no auth is necessary. If it is run from elsewhere, the user has to run gcloud auth login once before calling docker-machine any time needed.
It looks very good except I now have SSH problems when trying to create a machine... I'm going to investigate.


Test scans

I use VCR to test the scan model.
Signed-off-by: Alex Lecoq<EMAIL_ADDRESS>

Coverage increased (+35.3%) to 81.25% when pulling e373865e04ba87858768d045a2e6c96bc1e9a38c on hezanathos:test_scans into 6dce3d4c53b58777ce9fc23e36c08f75a9483c41 on Cyberwatch:master.

Coverage increased (+35.3%) to 81.25% when pulling e373865e04ba87858768d045a2e6c96bc1e9a38c on hezanathos:test_scans into 6dce3d4c53b58777ce9fc23e36c08f75a9483c41 on Cyberwatch:master.

Coverage increased (+35.3%) to 81.25% when pulling<PHONE_NUMBER>477bec4be20283d7c55d1559d401da on hezanathos:test_scans into 6dce3d4c53b58777ce9fc23e36c08f75a9483c41 on Cyberwatch:master.

Coverage increased (+35.3%) to 81.25% when pulling<PHONE_NUMBER>477bec4be20283d7c55d1559d401da on hezanathos:test_scans into 6dce3d4c53b58777ce9fc23e36c08f75a9483c41 on Cyberwatch:master.

Coverage increased (+35.3%) to 81.25% when pulling 984ee337e1b0b7c92488cb0ad303fc6df2da4e63 on hezanathos:test_scans into 565e5bc0d88aeef445cdc8bda87e9b66bdebc743 on Cyberwatch:master.

Coverage increased (+35.3%) to 81.25% when pulling d65b74fca297c236a9014ceb22d13eb753ad20b0 on hezanathos:test_scans into 565e5bc0d88aeef445cdc8bda87e9b66bdebc743 on Cyberwatch:master.

@fwininger should be better now


All the properties of my models becomes nil after toJSON method called on that object

Something mistake from my side. Ignore this issue

What was your mistake? Im running into the same issue.


Remove operation from view's dictionary after it finished

New Pull Request Checklist

[*] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[x] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[x] I have added the required tests to prove the fix/feature I am adding

[x] I have updated the documentation (if necessary)

[ ] I have run the tests and they pass

[x] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...
Pull Request Description
After the operation finished, remove it from view's dictionary to break the retain cycle. Then needn't use weakSelf or strongSelf in completion block.
PS: Because of the GFW leading connecting time out , I can't pass four unit tests:

test10That404CaseCallsCompletionWithError
test15ThatWEBPWorks
test16ThatProgressiveWebPWorks
test03ThatDownloadWithIncorrectURLInvokesCompletionBlockWithAnErrorAsync.

Could you please help me check these tests? : )

@Thememont Thanks. And also I found that -[UIImageView(WebCache) sd_setAnimationImagesWithURLs:] also have one sd_setImageLoadOperation without the cancel method. Could you please check that and add the cancel method ?

Codecov Report

Merging #2129 into master will increase coverage by 0.12%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2129      +/-   ##
==========================================
+ Coverage   80.89%   81.02%   +0.12%
==========================================
  Files          35       35
  Lines        3407     3409       +2
  Branches      299      299
==========================================
+ Hits         2756     2762       +6
+ Misses        631      627       -4
  Partials       20       20

Impacted Files
Coverage Δ

SDWebImage/UIView+WebCache.m
60.3% <100%> (+0.61%)
:arrow_up:

SDWebImage/UIView+WebCacheOperation.m
75.86% <0%> (+13.79%)
:arrow_up:

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 3f09463...1a43fde. Read the comment docs.

@dreampiggy
For -[UIImageView(WebCache) sd_setAnimationImagesWithURLs:], requires a variable to calculate the completed operation to ensure that the array of operations is not remove until all operations have been completed.
Like this
__block NSUInteger uncompletedOperationCount = arrayOfURLs.count;

[arrayOfURLs enumerateObjectsUsingBlock:^(NSURL *logoImageURL, NSUInteger idx, BOOL * _Nonnull stop) {
    id <SDWebImageOperation> operation = [SDWebImageManager.sharedManager loadImageWithURL:logoImageURL options:0 progress:nil completed:^(UIImage *image, NSData *data, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
        if (!wself) return;
        dispatch_main_async_safe(^{
            __strong UIImageView *sself = wself;
            [sself stopAnimating];
            if (sself && image) {
                NSMutableArray<UIImage *> *currentImages = [[sself animationImages] mutableCopy];
                if (!currentImages) {
                    currentImages = [[NSMutableArray alloc] init];
                }

                // We know what index objects should be at when they are returned so
                // we will put the object at the index, filling any empty indexes
                // with the image that was returned too "early". These images will
                // be overwritten. (does not require additional sorting datastructure)
                while ([currentImages count] < idx) {
                    [currentImages addObject:image];
                }

                currentImages[idx] = image;

                sself.animationImages = currentImages;
                [sself setNeedsLayout];
            }
            [sself startAnimating];

            uncompletedOperationCount--;
            if (uncompletedOperationCount == 0) {
                [self sd_removeImageLoadOperationWithKey:@"UIImageViewAnimationImages"];
            }
        });
    }];
    [operationsArray addObject:operation];
}];

But I'm worried that this solution may not be safe in some situations. So what do you think about it?

@Thememont Well...This is a problem. And it's not really naive, think that you provide 100 animated image urls and 99 success, but one failed. Should we always keep that operations array?
I think this design is a little tricky. Coundn't we have a better implementation for this situation ?
I found that the SDWebImageOperation instance is retained by SDWebImageManager's runningOperations property.
//SDWebImageManager line 142:
    @synchronized (self.runningOperations) {
        [self.runningOperations addObject:operation];
    }

So why should we also keep a strong retain into that UIView instance through a NSMutableDictionary ? Can we replace that with a NSMaptable (which copy for key, weak for value) ?

@Thememont I create a PR about this, please have a check: #2132


Design UX for creating actions for a song

While cretaing the issue https://github.com/jamtools/jamtools/issues/4, I was thinking about how the user would be able to declare music actions to multiple instruments at once, and I want to expand on the "legend" concept. Where you first define your variables for the song, then arrange them.
An action can be an aggregate action containing many actions. For example, I can have a "Play A major chord" action, that does 3 things:

Plays specific voicings for the chord on synth 1
Plays some melody or arpeggio on synth 2
Plays bass notes on synth 3

Then the action used in the step can be another aggregate action that contains a WLED action:
Chords: "A D Em G"
These are unique identifiers for the chords defined earlier. You can output this into a midi file to see how it sounds.
Steps:

1:

Trigger A1:

Chord: AMajor
WLED: Next Preset

Trigger B1:

Chord: AMajor
WLED: Random Color

2:

Trigger A1:

Chord: DMajor
WLED: Next Preset

Trigger B1:

Chord: DMajor
WLED: Random Color

It would be cool to be able to have this in a YAML file. Possibly TOML file.
https://www.npmjs.com/package/midi-file
Lots of cool info on midi file format here
https://mido.readthedocs.io/en/latest/midi_files.html

Would be cool to have a midi clip that's meant to loop indefinitely through a given section. May not make sense to have it change per chord/step.

Would also be cool to have a button trigger a midi clip on demand, so not necessarily mapped out to a specific part of the progression ahead of time. Just a midi trigger to a given sample, midi or audio. Get weird with sound effects etc


Make tasks list more consistent/compact and hide by default "internal" ones into "Other" group

Issue type
Polishing
Problem description
Running ``tasks --all(or even:module:tasks --all`) yields a very long list and lot's of tasks that seem like "implementation detail" are included in main sections instead of "other"
(followup to https://discuss.gradle.org/t/better-tasks-handling-so-that-gradle-completion-is-smarter/49374/1 and https://github.com/gradle/gradle-completion/issues/150)
Context (optional)
For example this:
> Task :app:tasks

------------------------------------------------------------
Tasks runnable from project ':app'
------------------------------------------------------------

Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for the base and test modules
sourceSets - Prints out all the source sets defined in this project.

Build tasks
-----------
assemble - Assemble main outputs for all the variants.
assembleAndroidTest - Assembles all the Test applications.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildKotlinToolingMetadata - Build metadata json file containing information about the used Kotlin tooling
buildNeeded - Assembles and tests this project and all projects it depends on.
bundle - Assemble bundles for all the variants.
clean - Deletes the build directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':app'.
dependencies - Displays all dependencies declared in project ':app'.
dependencyInsight - Displays the insight into a specific dependency in project ':app'.
help - Displays a help message.
javaToolchains - Displays the detected java toolchains.
kotlinDslAccessorsReport - Prints the Kotlin code for accessing the currently available project extensions and conventions.
outgoingVariants - Displays the outgoing variants of project ':app'.
projects - Displays the sub-projects of project ':app'.
properties - Displays the properties of project ':app'.
resolvableConfigurations - Displays the configurations that can be resolved in project ':app'.
tasks - Displays the tasks runnable from project ':app'.

Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallRelease - Uninstalls the Release build.

could/should be shortened:
> Task :app:tasks

------------------------------------------------------------
Tasks runnable from project ':app'
------------------------------------------------------------

Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for the base and test modules
sourceSets - Prints out all the source sets defined in this project.

Build tasks
-----------
assemble - Assemble main outputs for all the variants.
build - Assembles and tests this project.
bundle - Assemble bundles for all the variants.
clean - Deletes the build directory.

Install tasks
-------------
installDebug - Installs the Debug build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallRelease - Uninstalls the Release build.

Verification tasks
------------------
check - Runs all checks.
lint - Runs lint on the default variant.
lintFix - Runs lint on the default variant and applies any safe suggestions to the source code.
test - Run unit tests for all variants.

Asking to reduce what is printed with --all seems counterintuitive.
Could you clarify your request by sharing the output of tasks, tasks --all and what you would want, explaining how to differentiate what should be in that desired output.
Based on this, maybe there is a feature request to add another flag that would list "useful" tasks.

This feature request is in the backlog of the relevant team and is prioritized by them.

Thanks for clarifying and providing a good example!


feat(faucet): foundry scripts for deploying and configuring faucet drippie

#374  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tremarkley and the rest of your teammates on  Graphite


Adding persistent caching of temporary credentials

Adding persistent caching of temporary credentials from aws/aws-cli@22932e53c7085bd8e53b22904b326c426e2e60fc
This PR addresses #1148 by porting the code present in awscli into botocore to make it available to boto3. Having the code in both awscli and botocore until it's removed from awscli doesn't appear to have any negative impact.
One thing I'd like guidance on is:

The RefreshableCredentials class stores the _expiry_time natively in datetime format.
The AssumeRoleProvider class expects the possibility that the response['Credentials']['Expiration'] value which may come from the cache may need to be parsed from a string back into a datetime
By my searches it appears to me that awscli doesn't have any special logic (not present in botocore) to ensure that the expiration datetime is serialized to a string before it's passed to JSONFileCache
When I use the existing assumerole customization in awscli the expiration datetime is correctly serialized to a string when stored in the JSONFileCache
When I use this new functionality that I've moved into botocore in this PR without and explicit serialization call, the expiration datetime is passed to JSONFileCache un-serialized (which JSONFileCache rightly rejects). As a result I've added a serialization step and I don't understand why this step isn't also required for awscli to work.

@jamesls Can you provide any insight on this question about serialization? If there's any way I can remove that serialization call and have the expiration datetime serialized through whatever method awscli accomplishes it I'd prefer it.

Codecov Report

Merging #1156 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1156      +/-   ##
===========================================
+ Coverage    97.95%   97.96%   +<.01%
===========================================
  Files           45       45
  Lines         7093     7122      +29
===========================================
+ Hits          6948     6977      +29
  Misses         145      145

Impacted Files
Coverage Δ

botocore/credentials.py
97.67% <100%> (+0.13%)
:white_check_mark:

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 8ec77d0...4d4f766. Read the comment docs.

Actually, my use of _serialize_if_needed isn't correct as I incorrectly used it on the entire cached object instead of the specific value in the object that needs to be serialized.
I'd originally implemented this by adding _serialize_if_needed as the default argument to the json.dumps which worked but seemed to be in opposition to the intent of the JSONFileCache based on the test_only_accepts_json_serializable_data test.
I'll close this PR out as it doesn't work and see if I can figure out the right way to do the serialization. Ideally it would work exactly the same way as the serialization in awscli works but I haven't been able to figure that out yet. And ideally it would both serialize correctly to the file and allow the existing test_only_accepts_json_serializable_data test to continue to pass.


Improve performance confirmation event

We are experiencing some issues when the node is out for some time and it reconnects it back.
For each new event that is unconfirmed it creates a listener waiting for the confirmation, so far so good.
Example of the problem:

Head of blockchain is in block 2000
Eventeum reconnects in block 1000.
In the block 1001 finds an event and emit the UNCONFIRMED
It creates a confirmation listeners that it will be deleted in the 2005 (being 5 the block time wait)
This is because in the  EventConfirmationBlockListener  it check for the current (2000) and not for the eventDetails block (1001)

https://github.com/ConsenSys/eventeum/blob/f82b6cac510416403722fa0ef52c7d39a792c65b/core/src/main/java/net/consensys/eventeum/chain/block/EventConfirmationBlockListener.java#L76
So in that use case we believe it should not even create the listener because:

1001 (event blocknumber) + 5 (time block) < 2000 (current head)

Also since we had lots of events between  the blocks 1000 and 2000, it crashes eventeum because were creating a lot of listeners and it took very long to remove them until the block 2005.
Let me know if you need more information about it.
With this solution it does not even create the listeners if is not needed, so it improves the performance.
Thanks!

Hey, well spotted on the block number!
The problem with this solution is that even though the current block number is greater than the target block, we still need to check that the transaction in question is still included in the chain, as it may have been 'removed' due to a fork.
I'd rather not duplicate code between EventConfirmationBlockListener and ConfirmationCheckInitialiser so we could maybe change currentBlock:
https://github.com/ConsenSys/eventeum/blob/f82b6cac510416403722fa0ef52c7d39a792c65b/core/src/main/java/net/consensys/eventeum/chain/block/EventConfirmationBlockListener.java#L45
to use contractEvent.getBlockNumber() instead.
This would mean that the EventConfirmationListener would hang around for one block and then send a CONFIRMED (or INVALIDATED) event.  As an alternative, maybe the EventConfirmationBlockListener could have some kind of init method that performs this check, sends the confirmed event and unregisters straight away if the targetBlock has been met.  What are your thoughts?

yep, I think I would go for the init method solution.
I was thinking in doing it like you say in the listener with contractEvent.getBlockNumber, but I am afraid at some point if lots of old blocks are being read, it could run out of memory cause everything happens just in milliseconds, so I am afraid that could happen.
It only come to my mind to throw an exception in the constructor and catch it from the outside, like: AlreadyExpireEventdBlockListener or something like that.
Other option is have a factory to create the class but the logic will be repeated as well, in the factory and in the listener


unexpected numeric constant in "00

Just updated vscode-R on my macbook (M1)
I not expert so I am interesting write code.

When I sent the code to the terminal, this happened:
unexpected numeric constant in "00
Pls help me.
Thanl you so much

You can try to turn off "Bracketed Paste" in the R extension settings.

Thank you so much. I got it.