iOS: System.NullReferenceException on Initialization

🐛 Bug Report
{System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.FirebasePushNotification.FirebasePushNotificationManager.Initialize (Foundation.NSDictionary options, System.Boolean autoRegistration) <0x11025af08 + 0x00046> in :0
at MYAPP.Mobile.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) [0x000f0] in
Expected behavior
No Exception
Reproduction steps
Configuration
Version: 3.1.6
Platform:

[X] :iphone: iOS
[ ] :robot: Android
[ ] :checkered_flag: WPF
[ ] :earth_americas: UWP
[ ] :apple: MacOS
[ ] :tv: tvOS
[x] :monkey: Xamarin.Forms

I got the same issue.
My iPhone version is 13.4.
Who else knows?

Same here, cannot launch the app.

The problem is in line 141 of FirebasePushNotificationManager.ios.cs :  Messaging.SharedInstance is null

... the problem occurs also when I use the sample project from this repo

Same is here @rdelrosario

if you run the app on emulator, this might be happen,  try to debug over a device.


Openload File Sharing Website Fully Blocked [False]

File sharing website Openload is fully blocked in Master Host.
URL: openload.co
Unblock it!

Blocked by two or our curated sources.
Closing.

@StevenBlack Oh well, okay. And how I am rude? Hahahahaha

File sharing website Openload is fully blocked in Master Host.
URL: openload.co
Unblock it!

You are talking as @StevenBlack was you're shell prompt with "DO IT!"
By the way, there are several good reasons for blocking openload.co

Privacy
Tracking
Ads
(Porn for those whom it concerns)
Malware
Spyware
etc.

You guys got ego and attitude problem. Can't help. Look for professional help if needed 😂😂😂😂
However, never mind Openload.


Why would step() not be doing anything? [Node.js]

Hello.  I recognize the author isn't able to devote a bunch of time to this project, but was hoping someone else could lend me a quick hand.
I've added a body to the world, ensured that body is not sleeping, and call world.step(time) (time is a unix timestamp) every frame. Despite this, my objects refuse to move.
I'm manually adding to their acceleration based upon user inputs, and have confirmed that those accelerations are being accumulated into the body's state property. But the integrator refuses to do anything with those accelerations. After a few inputs, here's what one of the bodies' state looks like:
{ pos: j { _: [ 0, 0 ], recalc: true },
  vel: j { _: [ 0, 0 ], recalc: true },
  acc: j { _: [ 11.33650355000003, 59.97083808 ], recalc: true },
  angular: { pos: 0, vel: 0, acc: 9.189577283999995 },
  old:
   { pos: j { _: [Object], recalc: true },
     vel: j { _: [Object], recalc: true },
     acc: j { _: [Object], recalc: true },
     angular: { pos: 0, vel: 0, acc: 0 } } }
}

What am I missing here?  I'm running this on NodeJS using CommonJS requrie. Relevant setup code below for the world and body is below. Thanks for any help you can provide.
this.world = new Physics({
	timestep: 1000.0 / 160,
	maxIPF: 16,
	integrator: 'improved-euler',
	sleepDisabled: true
});

[...]

let body = Physics.body('convex-polygon', {
	hidden: false,
	treatment: 'dynamic',
	mass: 1.0,
	restitution: 0.8,
	cof: 1.0,
	view: null,
	x: 0,
	y: 0,
	vertices: [ {x: -10, y: 10},{x: 25, y: 0},{x: -10, y: -10}]
});
this.world.add(body);

[...]

let time = Math.floor(new Date() / 1000);
this.world.step(time);   // have also tried using no parameter

Have you tried several calls to step()? The first call to step initialises the counter, you need at least two calls to step() to get it to integrate.

Thanks for the response! Yes, I have the step() being called inside the main loop.  That snapshot of state was after several hundred iterations.
I must be honest - I ended up switching to MatterJS due to the timeframe associated with this project. But I much prefer PhysicsJS' more 'modular' approach. I hope you are able to recruit some assistance maintaining this project, as I will certainly plan to revisit it in the (hopefully not too distant) future.


Bluetooth: controller: Improve LE Scan Request Received event support

Couple of fixes to improve LE Scan Request Received support. It can now be enabled via HCI command and will use proper advertising set handle.

@cvinayak fixed

rebased and added one more commit to handle privacy for LE Scan Request Received event

@cvinayak this should be ready now


Site needs a full review for titles

For accessibility, each page on the site needs a title that follows our title guidance:
https://www.gov.uk/service-manual/design/writing-for-user-interfaces#style

At the moment, we set our documentation page titles all to "Documentation - GOV.UK Prototype Kit"
Instead, we'll need to hook into the markdown -> HTML conversion and generate unique titles there.
Looks like the Design System uses gray-matter to interpret "frontmatter" on their markdown files.
We could probably take a similar approach.

@NoraGDS Is there an issue for implementation of this review?


Use full names for type parameters

Although errors regarding getDefaultProps still appear at the call-site rather than at definition, and don't mention getDefaultProps, at least the error message will contain some reference to DefaultProps.

Awesome! It looks like some of the recorded test output includes these names, so you need to re-record those tests. Here's an easy way to do it
cd /path/to/flow/project
make
./runtests ./bin/flow
for test in `find tests/ -name "*.out" | sed "s/\(.*\)\.out$/\1/"`; do mv "$test.out" "$test.exp"; done

Was hoping to get away without having to set up the entire tool chain locally:
echo "const char* const BuildInfo_kRevision = \"$(git rev-parse HEAD 2>/dev/null || hg identify -i)\";" > hack/utils/get_build_id.gen.c
ocamlbuild -ocamlc "ocamlopt   -ccopt -DNO_LZ4"\
		hack/fsevents/fsevents_stubs.o hack/heap/hh_shared.o hack/hhi/hhi_elf.o hack/utils/files.o hack/utils/get_build_id.gen.o hack/utils/get_build_id.o hack/utils/handle_stubs.o hack/utils/nproc.o hack/utils/realpath.o hack/utils/sysinfo.o src/embedded/flowlib_elf.o
/bin/sh: ocamlbuild: command not found
make: *** [build-flow-native-deps] Error 127

It should have been:
./runtests.sh ./bin/flow

The command to do the renames results in:
mv: rename tests//more_react/more_react.out.out to tests//more_react/more_react.out.exp: No such file or directory
mv: rename tests//new_react/new_react.out.out to tests//new_react/new_react.out.exp: No such file or directory

I've updated the two test cases manually.


When will official mmdetection implementation be released?

Thanks for your great work!
You mentioned in https://github.com/zhanghang1989/ResNeSt/issues/37#issuecomment-620357337 that mmdetection implementation is on your plan, and I'm wondering when will it be released? If it takes too long, I'll try myself:)

The co-authors @chongruo @Jerryzcn and I are quite occupied recently. We are planning to do it sometime in the summer.

Got it. Thanks for your quick reply!


Syntax highlighting support for Obsidian code blocks

The title...
In Obsidian code blocks are highlighted for the language specified after the 3 backticks e.g.```tsx
Prisma is not currently supported hence code blocks look very plain unlike below

github
obsidian

Hmm that't not for you though... it's more for Obsidian...


Upstream merge

Codecov Report

Merging #170 into v2-master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           v2-master     #170      +/-   ##
=============================================
- Coverage      53.17%   53.14%   -0.03%
=============================================
  Files            849      849
  Lines          22367    22367
  Branches        3819     3819
=============================================
- Hits           11893    11887       -6
- Misses         10474    10480       +6


SearchRoot is not setup properly

Run in a debugger, the usage of searchRoot in generate appears to be incorrect. Also appears to not accept arrays.

This line https://github.com/dwmkerr/app-icon/blob/45df2e47cea1dfe0bcfdd6c9e6b0c9572aadfff1/bin/app-icon.js#L45
should instead be
return generate({ sourceIcon: icon, searchRoot: search, platforms });

Thanks @timri will sort this one!

I am having very annoying issue. I use this command
node_modules/app-icon/bin/app-icon.js generate  --platforms=android --search ./android/app/src/main

but it's trying to find all manifest files in current dir. I have CI cache under this folder.
So it's finding all manifests of every external lib and generating images for each of them.

OK definitely looks like a bug! Let me set up something similar locally and see if I can reproduce

Resolved, and released as 0.8.1

dwmkerr cool!


Limit iterations of a sequence

I propose adding an operator that can be used to limit the maximum number of times a sequence can be iterated. Once the limit has been reached , all subsequent attempts to iterate will throw an InvalidOperationException or a custom exception. A limit of 0 or below will render the sequence unavailable for any iteration.
This primary use of this would be for ad-hoc testing & interactive development.
Prototype
public static IEnumerable<T> LimitIterations<T>(this IEnumerable<T> source, int count) =>
    source.LimitIterations(count, (Func<int, Exception>) null);

public static IEnumerable<T> LimitIterations<T>(this IEnumerable<T> source, int count, Func<Exception> errorFactory) =>
    source.LimitIterations(count, _ => errorFactory());

public static IEnumerable<T> LimitIterations<T>(this IEnumerable<T> source, int count, Func<int, Exception> errorFactory)
{
    var remainder = count;
    return Delegating.Delegate.Enumerable(() =>
    {
        if (remainder <= 0)
        {
            throw errorFactory?.Invoke(count)
               ?? new InvalidOperationException($"Sequence was iterated more than the allowed count of {count}.");
        }
        remainder--;
        return source.GetEnumerator();
    });
}

Below is an alternate implementation of the last overload using Delegating (as we abandoned #291):
public static IEnumerable<T> LimitIterations<T>(this IEnumerable<T> source, int count, Func<int, Exception> errorFactory)
{
    var remainder = count;
    return Delegating.Delegate.Enumerable(() =>
    {
        if (remainder <= 0)
        {
            throw errorFactory?.Invoke(count)
               ?? new InvalidOperationException($"Sequence was iterated more than the allowed count of {count}.");
        }
        remainder--;
        return source.GetEnumerator();
    });
}

primary use of this would be for ad-hoc testing & interactive development

I'm a bit unsure about features whose main use case is testing. I'm not saying they aren't useful, but on actual application code they mostly pollute the namespace. Maybe we could split these to a separate namespace? What do you think?

@fsateler I'd generally agree with you but as C# is becoming more scriptable (well, it has been for a while if you take LINQPad scripting into account), it is useful to have such an operator handy. Also, when I say, “primary use of this would be for ad-hoc testing & interactive development”, that's been my mileage. Either its utility is truly limited (pun, pun) to that or my imagination for other scenarios.
If you have an expensive source that you don't want to be iterated more than once, either by mistake because you forgot to materialize results or someone accidentally removed the materialization (removed a call to ToArray or ToList), then LimitIterations(1) can serve as a run-time guard (e.g. in debug builds). When scripting (including for production), you might want throw in a call to LimitIterations(1) to make sure there's no multiple iteration of any expensive source, run & test and then comment out the call.

Maybe we could split these to a separate namespace?

What would you call such a namespace? MoreLinq.Testing? Perhaps MoreLinq.Experimental as discussed in #209? None of those really sound good. Also, if we ever get round to closing #214 then this operator won't be there unless explicitly imported, which would take care of the pollution problem.
My current thinking is that it's a straightforward operator with a straightforward purpose and a clean name so why not add it?

I'd generally agree with you but as C# is becoming more scriptable (well, it has been for a while if you take LINQPad scripting into account), it is useful to have such an operator handy.

My current thinking is that it's a straightforward operator with a straightforward purpose and a clean name so why not add it?

I agree it can be useful, which is why I'm not saying it shouldn't go in. I'm just wondering about namespace pollution.

What would you call such a namespace? MoreLinq.Testing? Perhaps MoreLinq.Experimental as discussed in #209? None of those really sound good.

Indeed. I can't think of any good names either. MoreLinq.Asserts could be, given that the purpose of these functions is to assert that some condition holds.

Also, if we ever get round to closing #214 then this operator won't be there unless explicitly imported, which would take care of the pollution problem.

Well, importing MoreLinq is always going to import all operators. So even if conflicts can be avoided by use of using static as proposed in #235, I would expect people to import everything most of the time (as you did too).

I'm just wondering about namespace pollution.

It's hard to define pollution and it would be odd to start categorising now.

MoreLinq.Asserts could be, given that the purpose of these functions is to assert that some condition holds.

We already have AssertCount in the main namespace so it would seem odd now to make an exception for LimitIterations.

Closing this as a specific application of #516.


API 7 Issue Tracker

Total Economy has just begun development on API 7 support and therefore will have a lot of issues. Please discuss all API 7 issues here.

Not sure whats going on here But im trying this on api7 without much luck
https://pastebin.com/LimQPkNq

@broeredaan Looks like you are using the API 6 version of Total Economy instead of the API 7 version. There is currently not a stable build of Total Economy for API 7 yet, but you can build Total Economy yourself using the instructions in the README. Make sure you are on the right branch: https://github.com/Erigitic/TotalEconomy/tree/api-7. A stable release for API 7 will be released soon.

@broeredaan Just released a build for API7. You can download it over on the Ore page: https://ore.spongepowered.org/Erigitic/Total-Economy/versions/1.7.1-API_7.

not 100% sure this is related to API7 or not, (but since im using the api7 version) the SQL query at some point dosent agree with the server (im using MariaDB (aka. mysql)) but this only happens when triggered by a spongeAPI economy trigger

@NocturnalSergal I'll look into this. Thanks for bringing it up.

@NocturnalSergal Do you happen to have a virtual_accounts table in your database? It looks like it's an issue when creating a new virtual account and inserting that into the virtual_accounts table.

Hi,
Hope this is the correct issue, having problems with TotalEconomy-1.7.1-API 7.
Here's the Crash log: https://pastebin.com/LctQT7MQ
This is a forge modded server, however I have removed all mods.
The only active additions are sponge plugins.
Kind Regards,

after having a look further seems this query is the source of the issue:
[java.lang.Throwable:printStackTrace:634]: Caused by: java.sql.SQLException: Unknown column 'farmer' in 'field list'
Query is: SELECT farmer FROM experience WHERE uid='c97e4654-ce12-4a15-8e2e-ff4dd8e37eb5'

This issue occurrs when a job is added after table creation. We've already discussed options to restructurize the database more efficiently. This will be fixed in an upcoming release

TY for the clarification :) by the sounds of it just adding the job column should resolve this issue.

If you know how to do that you can add the necessary columns and it should just work again, yes.

I just reported an API 7 issues - players aren't rewarded for mob kills: https://github.com/Erigitic/TotalEconomy/issues/248

will there be a 1.8 version for API 7 soon?  I'd love to start using the shop options for my players but I'm using the Sponge 7 API.  Thanks!

@smmmadden I cannot say 'yes' for sure but I do know that 1.8 should be feature complete thus is nearing release.


(Further) Explanation of action space required

Can you please let me know what are the units for 7 parameters, for instance for Bridge dataset. Are you using fixed axis or current axis representation to show variations in subsequent frames ? More precisely, how can we traceback the exact values for each of the 7 parameters in workspace from an episode ?

Hi! We don't do any modifications of the original action spaces used in each of the contributed datasets. Please check the dataset's website or reach out to the authors of each dataset you are interested in to figure out the specifications they use for their dataset.
We don't have any more detailed information beyond what's publicly available in the "description" fields of the TF dataset, see e.g. the TFDS catalogue: https://www.tensorflow.org/datasets/catalog/berkeley_autolab_ur5
For Bridge specifically, I think the actions are represented in a robot-anchored coordinate system, but if you need more precise information, please reach out to Homer Walke et al for the details!


graal-sdk dependency

We should be using  nativeimage instead of graal-sdk now =]
We are seeing the following warning when building native:
org.graalvm.sdk:graal-sdk is present in the classpath. From Quarkus 3.8 and onwards, org.graalvm.sdk:nativeimage should be preferred. Make sure you report the issue to the maintainers of the extensions that bring it.

Thank you. Hope it is just a drop in replacement. I'll make a backport for quarkus bom platform.


--found-action not working in alpine

Describe the bug
~/go/bin/dalfox url http://testphp.vulnweb.com/listproducts.php\?cat\=123\&artist\=123\&asdf\=ff --found-action="echo test >> test.txt"

[G] Found dalfox-error-mysql5 via built-in grepping / payload: toOpenRedirecting
[E] execution error from found-action
    check the manual that corresponds to your MySQL server version

I'm trying to run in an alpine container, everything works fine, only the --found-action doesn't work!
Environment

Dalfox Version: v2.4.2
Installed from: (e.g go-get)

Hi, I detected the problem, this is due to alpine not having pre installed bash, only sh

https://github.com/hahwul/dalfox/blob/1f32f3494e1aa3312f84b3e2a836eb61a9ae9aac/pkg/scanning/foundaction.go#L18

Hi @phor3nsic
Thank you very much for finding the problem. I'll make a patch!
In my opinion, there will be two ways. provide so that users can choose shell application(sh, bash, zsh, etc), or to process it through execute commands without using a separate shell. Personally, the latter would be cool, but I'll find out if it's easy.

@phor3nsic
(If I remember correctly, I think it was handled like that because of the factor arguments issue of exec.Command😅)

memo
Check running shell
$ echo $0
/usr/bin/zsh

Test in dalfox
$ dalfox url https://xss-game.appspot.com/level1/frame --found-action="echo $0 > l"
$ cat l
/usr/bin/zsh

Test -c flag
zsh
zsh -c uname
Linux

sh
sh -c uname
Linux

bash
$ bash -c uname
Linux

All commonly used shells support the -c flag.

@phor3nsic Hello again!
I added --found-action-shell flag, it is select shell application for found action.
e.g
$ dalfox url http://testphp.vulnweb.com/listproducts.php\?cat\=123\&artist\=123\&asdf\=ff \
--found-action "echo '@@query@@' > data" \
--found-action-shell=sh

$ dalfox url http://testphp.vulnweb.com/listproducts.php\?cat\=123\&artist\=123\&asdf\=ff \
--found-action "echo '@@query@@' > data" \
--found-action-shell "/bin/zsh"

Actually, I was going to selected shell it automatically, but there were more restrictions than I thought. First, I'll add this flag and test it out later! Thank you so much for helping me improve! The release will be this evening (in about five hours ...?? )! Refer.
Please reopen if there is any problem :D


Case insensitive tag lookup

I'm choosing to keep case sensitivity - but you can work with it and even slugify things yourself anyway if you want. See https://github.com/nixjdm/lektor-tags/issues/4#issuecomment-447585989

Thanks in hindsight it’s ok to consolidate content tags.


kerbalstuff.com defunct

Not sure if this is the right place to discuss this, but I'm forking the kerbalstuff.com source code and will be setting up a repository as soon as I can to try to replace the functionality.
Was anyone able to get the data torrent? This impacts more than a handful of mods it looks like.  The index still lists some packages as available there, but the repository is no longer there.  Google cache shows there was some warning, but it looks like it's been down completely for about a week.
If this is the wrong place, and someone knows where this discussion is on-going already or efforts already started, please let me know and close this.

You are quite late to this party.
http://spacedock.info/
https://github.com/KSP-CKAN/CKAN/issues/1586

Thanks - I came here to close my own issue when I found SpaceDock; so it's up to the mod owners to update their URLs in the index.

Not entirely. We are updating mods as we find out about them.


[HUDI-7438] Add write permission of commit statuses in Azure CI check

Change Logs
This PR adds the write permission of commit statuses in the GitHub action of  Azure CI check, to test if the permission is allowed on master for issue_comment events.  The PR has to be landed on master for validation.
Impact
none
Risk level
none
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

test comment


chore: fix build of alertmanager without docker

Hi, so we build alertmanager from source because of some internal requirements. We do this inside docker as part of multi stage build. We also don't have docker in docker available.
We were using the NO_DOCKER env variable to make the build not use docker.
However this does work on line 58, where DOCKER_RUN_CURRENT_USER is used instead DOCKER_CMD this one is not set to empty when NO_DOCKER env variable is set to true.
This PR fixes that and makes the build work without docker available again.

Hi, @simonpasquier could you please take a look at this small change once you have some time?
Thank you in andvance.

oh wait! Would this work as you expect? When I tried locally, I get rm: invalid option -- 'g' which makes sense looking at this part.
https://github.com/prometheus/alertmanager/blob/ec2f5f589402d8b45e327555d1330ce780354221/ui/app/Makefile#L58-L61

oh wait! Would this work as you expect? When I tried locally, I get rm: invalid option -- 'g' which makes sense looking at this part.
https://github.com/prometheus/alertmanager/blob/ec2f5f589402d8b45e327555d1330ce780354221/ui/app/Makefile#L58-L61

That's interesting, yeah I what you are point out by for some reason it doesn't happen for us in our pipeline.
Basically when I use the docker image we use for building alertmanager, set NO_DOCKER to true and run make scriptjs it works.


Silence clang analyzer warnings for the memory leaks

clang analyzer reports two false positives about leaking memory. This PR silences these since we know that these are not actual memory leaks.

Is it a bug of the clang analyzer then? Or a known limitation or something?
Maybe we need to annotate pm_constant_pool_insert_owned/pm_parser_local_add_owned to clarify they take ownership of the allocation? That would be less invasive than annotating every usage of them.


Could you give build details?

could you say how you built from source please? I really like this project and would like to make this work for my modded cod

I always used Visual Studio to build it. But you can also build it directly with MSBuild:
https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild?view=vs-2022
But most likely some tool versions have to be updated in the sln/csproj. =)

i tried but it gave some errors what version did you use?

<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> in csproj and MSBuild <IP_ADDRESS>104 =)

i installed .net 6 and this error apears:
C:\Program Files (x86)\dotnet\sdk\6.0.102\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [C:\Users\mcdnv\Desktop\CoD-SCZ-FoV-Changer\CoD SCZ FoV Changer\CoD SCZ FoV Changer.csproj]
i installed developer packs for version 4.8 but cant find version 6

and when i try the old version i get this:
"C:\Users\mcdnv\Desktop\CoD-SCZ-FoV-Changer\CoD SCZ FoV Changer\CoD SCZ FoV Changer.csproj" (default target) (1) -> (CoreCompile target) ->   CallOfDuty.cs(20,20): error CS1056: Unexpected character '$' [C:\Users\mcdnv\Desktop\CoD-SCZ-FoV-Changer\CoD SCZ FoV Changer\CoD SCZ FoV Changer.csproj]   FrmMain.cs(155,57): error CS1056: Unexpected character '$' [C:\Users\mcdnv\Desktop\CoD-SCZ-FoV-Changer\CoD SCZ FoV Ch anger\CoD SCZ FoV Changer.csproj]

Try installing the build tools with this installer https://aka.ms/vs/17/release/vs_buildtools.exe and also select ".NET Framework 4.8 targeting pack" in the individual components tab. =)
And don't forget to change;

<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> in CoD SCZ FoV Changer.csproj

i dont have visual studio only vs code

i am using vs code not visual studio, i prefer doing things in a console

do you have a link without it being vs? i am using visual studio code and i already installed https://dotnet.microsoft.com/en-us/download/dotnet-framework/net48 both dev pack and runtime

The name is a bit misleading (I guess?) but this doesn't install the visual studio.

oh, ok i installed it and it worked thank you so much :)

That's nice! No problem =)


feat(importer): use mapping spreadsheet

Fixes #52

:tada: This PR is included in version 1.13.0 :tada:
The release is available on:

v1.13.0
GitHub release

Your semantic-release bot :package::rocket:


[run-tests] [fix][broker] Fix incorrect bundle split count metric

This PR is for running tests for upstream PR https://github.com/apache/pulsar/pull/17970.

/pulsarbot rerun-failure-checks

/pulsarbot rerun-failure-checks


Refactor person to contact in diagrams, fixed previous refactor's NPE

Fix null pointer exception caused by refactoring the UI classes. Since the JavaFX id was not updated properly, this resulted in the NPE at runtime.
Included some updates left out in the previous refactor for diagrams in documentation.

I have reworded the PR to match what's committed for less confusion. I would say we shouldn't be putting both the bug fix from refactor and other refactoring commits in the same PR, but since they're related to the same refactor I think I can let it slide.


constantValue doesn't return a value for metadata

I use this code with source_gen
abstract class MenuItem extends Serializable {
  MenuItemTarget target;
  Property<MenuItemTarget> get targetProperty;

  ...
}

@EnumClass()
class MenuItemTarget {}

class EnumClass {
  const EnumClass();
}

constantValue used to return a value,
FieldElementImpl f = ...
final enumInstancee = f.type.element.metadata.single.constantValue;

but now I only get null.

Dart VM version: 1.23.0-edge.b27f5f910078d8a53cbfdb33663a50fa96812e5f (Thu Feb  2 00:04:28 2017) on "linux_x64"

I don't know with which version exactly this stopped working.
I guess within ~2 weeks.

@scheglov Is this related to the new driver?

@bwilkerson I don't think it is. You don't use the new driver underneath unless you explicitly start using it.

@kevmoo Did anything change recently in source_gen? I'm not aware of any changes in analyzer that would account for this change in behavior.

@zoechi can you upload your pubspec.lock file?
This isn't about the version of the SDK you have installed (or it shouldn't be) – it's all about which version of pkg/analyzer you have installed.
It'd be great to have a test in pkg/source_gen that reproduces what you're seeing...

 Fork pkg/source_gen and write the test. That'd be a great way to track this.

I wasn't able to figure out how to do this in source_gen tests but I was able to track it down closely
minimal reproduction
https://github.com/zoechi/source_gen_annotation_issue
When this import is commented out https://github.com/zoechi/source_gen_annotation_issue/blob/master/lib/model/menu_item.dart#L3
and the annotated class commented in
https://github.com/zoechi/source_gen_annotation_issue/blob/master/lib/model/menu_item.dart#L5-L7
then f.type.element.metadata.first.constantValue at https://github.com/zoechi/source_gen_annotation_issue/blob/master/lib/code_generator/src/source_class.dart#L30 returns a value, otherwise null

I tried to revert .packages and SDK to older versions used a few days ago when this was still working, but wasn't able to find working versions.

Don't worry about the SDK version. Add a max version of pkg/analyzer in your pubspec and start working backwards there.

I tried with the analyzer versions from the checked-in .packages file a week ago, but that didn't change anything. It was working until Monday. Since then I worked on other stuff. This is why I also tried reverting to older SDK builds.

Weird...

Friendly ping.
This is blocking deployment of a customer solution.

OK, I checked the issue repo out.
What to do with it to reproduce the problem?

Try to replace constantValue with computeConstantValue().

Thank's I'll try tomorrow.

Thanks a lot. With
Dart VM version: 1.23.0-edge.b15b98bcc33dc5303fb4c0dff8441bb5294e4ab8 (Thu Feb  9 18:14:15 2017) on "linux_x64"
constantValue and computeConstantValue() are working fine.

Just an update:
constantValue stopped working again for me, but computeConstantValue()` is working.


Account creation from within app (web view)

This works appropriately (redirects user to login screen) after creation of the first account. If the user tries to create a 2nd account, the redirection doesn't work (the user isn't redirected, although they can manually return by back button). Reinstalling the app resolves this.
Given that a user is expected to only create an account once, I think this is a minor bug so we can release this for the time being while I try to figure out the reason.

Fixes #48

Is this OK to merge? Quite a big change.


Add support for passing yaml or json files in kubectl patch

What would you like to be added: capability of passing the patch in the form of  a yaml or a json file, instead of just plain hardcoding the patch in the kubectl patch command itself
Why is this needed: Right now, the kubectl patch command only allows the patch to be passed directly in the command itself after the -p flag. But in case of applying large patches, the entire command could become extremely long and unclean. So, in that case, it would be extremely convenient to, instead of writing the entire patch in the command itself (after the -p flag), the user can actually write the patch in a separate JSON file (the exact same json he would have originally passed in the command) and just pass the path to that JSON file in the kubectl patch command.
And behind the scenes, kubectl can read that JSON file and simply apply it as a patch as it normally does.
So, to exemplify this,
Say, the user wants to update the node my-node with the patch '{"spec": {"unschedulable": true}}'.
So, right now, he can only do this,
kubectl patch node my-node -p '{"spec": {"unschedulable": true}}'
But with the feature I suggested: the user can create a file called patch.json
{
"spec": {
         "unschedulable": true
   }
}

And just run the following command
kubectl patch node my-node -p patch.json
This might seem unnecessary from the above example because of its simplicity, but this feature would be extremely useful if we considering large and convoluted patches.

/assign

@yashvardhan-kukreja it looks like a portion of this is in progress at https://github.com/kubernetes/kubernetes/pull/93548.
Let's have you sync up with @smarterclayton. Looks like their PR doesn't have support for JSON files yet.
Since I don't see an attached issue on that PR we can keep this issue for tracking.
/priority backlog

The PR is exactly the same behavior as -p - adding more formats that aren't the JSON patch formats would be a feature change to both flags.

@smarterclayton , @eddiezane  so , what formats you'd suggest to further implement? I ll hop onto them


x/pkgsite: package removal request for github.com/iton0/hkup

Made some errors with the semantic versioning and would like to delete package from pkg.go.dev and restart. the github repo has been deleted

Related Issues and Documentation

x/pkgsite: package removal request for https://pkg.go.dev/github.com/[redacted] #68599 (closed)
x/pkgsite: package removal request for github.com/tonuniverse/goton #51387 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

removal only hides the generated documentation. There is no way for you to restart semver or reuse any previously published versions due to the sumdb

could i rename from hkup to HkUp and effectively "restart"

maybe, if sumdb hasn't seen it before. go modules are case sensitive, but GitHub is not so if you query for that now, it'll get tracked.

I was able to do it since i deleted the old git repo and created a new one with HkUp as the name. @seankhliao thank you for your quick response and help; I appreciate it!

I confirm that the requester matches the repo, and have remove the module from pkgsite. Please allow a few days for the configuration change to propagate.


UR with force sensor

Hi all,
I am working with UR5, CB3 and want to read the force sensor values (optoforce) in the same (python) file that read the robot values (position..).
I downloaded the force sensor driver and built it as explained in  (src) and I can run the demo file (roslaunch optoforce_etherdaq_driver demo.launch) which display the force values on the terminal.
Can I read the force values within the file that read the robot states?
I have the ur_moder_driver in a different workspace than the force, is it a problem?
Also, I found that the force sensor (Optoforce) node publish a topic "/etherdaq_data_raw" in Wrench or in WrenchStamped format, I tried to write a code to read it but didn't work.
Please can you help me, I think it is not a difficult issue but I tried a lot and didn't work.
Thanks,

I'm not sure what you're asking but I have a feeling that it's not actually something to do with ur_modern_driver per se.
Subscribing to two different topics in the same node is definitely possible. There is no difference in writing two subscribers for std_msgs/String or geometry_msgs/WrenchStamped. Then use the timestamps in the header of the sensor_msgs/JointState messages and the WrenchStamped to sync the two datastreams.

As this is not an issue with the code in this repository but a more general support request I would suggest to post this as a question on ROS Answers.


Exclude tsconfig.json from output

tsconfig.json was showing up in projects consuming the library, causing those projects to error on build. This change stops tsconfig.json from being included in output, which fixes the problem. Build Action remains 'Content' which is required for tsconfig.json.
Checklist:

The PR is submitted to the correct branch (dev).
✔ My code follows the code style of this project.
❌ I've added relevant tests.

https://github.com/MudBlazor/MudBlazor/issues/3644

https://github.com/MudBlazor/MudBlazor/issues/3644

Thanks 👍

Thanks 👍


Python- pylint with extra modules

VSCode Version: insider
Local OS Version: linux
Name of Dev Container Definition with Issue: python-

Steps to Reproduce:

Add a dependency in requirements.txt and uncomment https://github.com/microsoft/vscode-dev-containers/blob/master/containers/python-/.devcontainer/devcontainer.json#L38
Pylint is not able to resolve that dependency but code run correctly (so the module is available).

This is expected. pylint is installed via pipx in the image to avoid global module conflicts. These are in venvs in /usr/local/py-utils.
See the discussion here.
This allows all tools to be present without impacting the global environment and enables user installed versions to be specified which override those in the utilities folder.

Is there a specific issue this is causing or just an observation?

Yes basically pylint is not working with required modules.
What is the best practices to add extra modules and use pylint?
Cause of course requirements.txt in the template could seems to users the most natural way to add extra dependencies.

Can you post the specific thing you are trying to install?
The short answer is that you can update the pipx environment with pipx inject pylint <other things to install>, but I can provide a more complete example if you can give me a few more details.

What I meant is that we could probably change this line with pipx? Cause when Vsocde is going to automatically add the devcontainer.json to you repo it is quite natural for user to add dependencies in requirements.txt.
But if the user uncomment the default line in the automatically added devcontainer.json pylint is not working cause is pip 3.

Hmmm. The idea behind pipx is its an isolated environment separate from your application dependencies, I wouldn't expect we'd want to do that. If pylint can't be isolated, then we'd want to pip install it.
@brettcannon Given the original suggestion, what are your thoughts on this feedback?

@Chuxel I understand but we need to find a general solution that could isolate tools but also let the IDE to work with user modules quite easily with python tools.

Yes, @brettcannon is from the Python team.
I'm still not quite sure what problem you're encountering.  If I go and grab https://github.com/microsoft/vscode-remote-try-python and open the container, I end up with a project with the flask module installed globally using this image. In this case, pylint is able to find it without issue.
Flask is installed via pip3 install -r requirements.txt.
Or do you mean something different by "required modules"?

There is something different there from https://github.com/microsoft/vscode-dev-containers/blob/master/containers/python-/.
Cause adding the same modules in the flash example is working there.

@bhack Thanks for confirming.  I will dig in to see if I can determine the difference with a fresh project.

@bhack Okay, I was able to repo.  Try adding this to your Dockerfile to see if it fixes it:
USER root
RUN pipx uninstall pylint  && pipx install --system-site-packages pylint

@Chuxel yes it is ok with this.

Great! Will get a patch queued up.
//cc: @chrmarti as FYI

I just merged in a fix - once CI runs you can try using the dev version of the image.
e.g.
mcr.microsoft.com/vscode/devcontainers/python:dev-3

We'll get this in the next update to Remote - Containers as well.
Thanks for reporting this - it was clearly hidden behind how the try repo project was setup.


IGNITE-19405 Remove assignments from table configuration

https://issues.apache.org/jira/browse/IGNITE-19405

Previously it was discussed that usage of DistributionZoneManager#topologyVersionedDataNodes method will be removed in this pr. So why it is not removed?

Previously it was discussed that usage of DistributionZoneManager#topologyVersionedDataNodes method will be removed in this pr. So why it is not removed?

I checked, that's not so simple (not just remove the one method). It looks like we need to remove the logic from the PR, whichi introduced the method too and fix some tests. I created the separate issue for it https://issues.apache.org/jira/browse/IGNITE-19600


[FLINK-1792] TM Monitoring: CPU utilization, hide graphs by default and show summary only

Added CPU Load % using another implementation of the OperatingSystemMXBean (https://docs.oracle.com/javase/7/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html) and its method getProcessCpuLoad().
Added show/hide button for detailed graph and summary for the metrics. Currently, the summary is being generated for the previous 10 minutes by default.

Thank you for the contribution. I'll have a look at the changes.
The integration test of your change (https://travis-ci.org/apache/flink/builds/56641563) has failed due to:
[INFO] --- scalastyle-maven-plugin:0.5.0:check (default) @ flink-runtime ---
error file=/home/travis/build/apache/flink/flink-runtime/src/main/scala/org/apache/flink/runtime/taskmanager/TaskManager.scala message=File line length exceeds 100 characters line=134
Saving to outputFile=/home/travis/build/apache/flink/flink-runtime/scalastyle-output.xml
Processed 45 file(s)

To update your pull request, you can just push to the branch this PR is based on.

The memory statistics get pretty big when the chart is enabled as well.
Can you hide the string-based statistics when the graph is activated? http://i.imgur.com/VE0p3Dm.png
Also, an you make the button appear in the same design as the other buttons on that page? (I think you have to use the bootstrap button classes)

Please let me know when the PR is ready for review again.

Hey Robert,
The required changes have been made and are working fine for Java 7 onwards. Using this method, it is not possible to fetch CPU load in Java 6 since there is no implementation of the getProcessCpuLoad method available for OperatingSystemMXBean:
http://docs.oracle.com/javase/7/docs/api/java/lang/management/OperatingSystemMXBean.html
There is a compilation error due to the unavailable method in jdk 6 and hence the Travis failures. What do you suggest should be the next step?

The compilation error has been fixed. CPU stats are loading properly for Java 7 and above. For Java 6, the CPU stats column shows Not Available with a popup message explaining why.

The suggested changes have been made

Thank you. I'm trying to find time to review your changes soon.

I tried our your changes and looked at the change.

The pull request includes commits which are probably not part of the change. Maybe some merging/rebasing went wrong. Can you try to clean up the branch? Maybe a simple rebase on the current master is sufficient, or you might need to manually cherry-pick your changes on the current master.

The "Avg" value of the "Memory Statistics" are not aligned. Probably because the positioning is done using spaces. I think it would be better to use a table there.

The position of the "Show Detailed Graph" and the "Hide Detailed Graph" button is not consistent. On is on the bottom of the table cell, the other on the top.

Thanks for your work @bhatsachin. I had some remarks concerning the Scala style.

The code looks much better now. The only thing that makes me still unhappy is the following method
+       override def getValue: Double = {
+        try{
+          val osMXBean = ManagementFactory.getOperatingSystemMXBean().
+            asInstanceOf[com.sun.management.OperatingSystemMXBean]
+          fetchCPULoad.map(_.invoke(osMXBean).asInstanceOf[Double]).getOrElse(-1)
+        } catch {
+          case t: Throwable => {
+            LOG.warn("Error retrieving CPU Load through OperatingSystemMXBean", t)
+            -1
+          }
+        }
+      }

This getValue() method is called every 5 seconds to get the metrics from each machine. Users using Java 6 will get the WARN in their log + the exception because the cast to com.sun.management.OperatingSystemMXBean will fail every time.
I would do the following: If you detect that fetchCpuLoad is null, register a gauge which is always returning -1. Otherwise, register the gauge which is calling fetchCpuLoad.

That would be more javaesque than scalaesque. I would rather move the osMXBean retrieval into the map function of the fetchCPULoad option. That also solves the problem.
fetchCPULoad.map{
  method =>
    val osMXBean = ....
    method.invoke(osMXBean).asInstanceOf[Double]
}.getOrElse(-1)

Hey Robert, please correct me if I am wrong. According to this doc,
https://docs.oracle.com/javase/7/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html
OperatingSystemMXBean of the sun package is available for Java 6 too. Only the method getProcessCpuTime is unavailable. Hence I believe the logging and exception will not occur for each heartbeat.

Okay, you are right. Then we can keep it this way.
Let me try out your changes one more time, but then I think we are good to merge.

Okay, I'm satisfied with my local tests. I'll rebase your changes to the current master, wait until travis gives green light and then merge the changes!
Thank you for this great contribution! Looking forward for more!

Wait, I would actually like to move the bean retrieval into the map function of the method option. Otherwise on Java 6 you always retrieve this bean without ever using it.

Okay, I'll wait until this last issue is fixed.

I have made the change. Thanks a lot Robert and Till. I too am looking forward to contribute more :)

LGTM :-)

Great. Once this is green, I'll push it to master: https://travis-ci.org/rmetzger/flink/builds/61757934


[FEATURE REQUESTE] option to keep the keyboard hided

I made a video to explain this request.
https://youtu.be/ClHhJG8PZtA

When using a physical keyboard, there is an option to hide the on-screen keyboard (which includes Hacker's Keyboard) in your device settings. I don't know what kind of device you have, but for me, it's located here:
Settings > General Management > Physical keyboard > Show on-screen keyboard
On some devices, you're looking for the Language & Keyboard settings category. If your settings has a search feature, simply search show on-screen keyboard and that should still bring you this setting. Hope it helps.


Custom Data Usage From Pandas With Gluonts

Enviroments
#!git clone https://github.com/time-series-foundation-models/lag-llama/
#cd lag-llama
#!pip install -r requirements.txt --quiet
#!huggingface-cli download time-series-foundation-models/Lag-Llama lag-llama.ckpt --local-dir /content/lag-llama

from gluonts.dataset.common import ListDataset
from itertools import islice
from matplotlib import pyplot as plt
import matplotlib.dates as mdates
import torch
from gluonts.evaluation import make_evaluation_predictions, Evaluator
from gluonts.dataset.repository.datasets import get_dataset
from lag_llama.gluon.estimator import LagLlamaEstimator
import json
import pandas as pd

Custom data preparation
url = '/content/last_data.csv'
data = pd.read_csv(url)
data['date'] = pd.to_datetime(data['date'], format='%Y-%m-%d %H:%M:%S')
data = data[['date', 'target']]
data.resample('H', on='date')['target'].sum().reset_index()
data = data.set_index('date').asfreq('1H')

context_length = 24
prediction_length = 24*7
freq = "1H"
time_series = data['target'].values
start = data.index[0]
train_ds = ListDataset(
                                                [{'target': time_series[:-prediction_length], 'start': start}],
                                                freq=freq
)

test_ds = ListDataset(
                                                [{'target': time_series, 'start': start}],
                                                freq=freq
)

Model training and evalution
ckpt = torch.load("lag-llama.ckpt", map_location=torch.device('cuda:0'))
estimator_args = ckpt["hyper_parameters"]["model_kwargs"]

estimator = LagLlamaEstimator(
                                ckpt_path="lag-llama.ckpt",
                                prediction_length=prediction_length,
                                context_length=context_length,
                                # estimator args
                                input_size=estimator_args["input_size"],
                                n_layer=estimator_args["n_layer"],
                                n_embd_per_head=estimator_args["n_embd_per_head"],
                                n_head=estimator_args["n_head"],
                                scaling=estimator_args["scaling"],
                                time_feat=estimator_args["time_feat"],
)

lightning_module = estimator.create_lightning_module()
transformation = estimator.create_transformation()
predictor = estimator.create_predictor(transformation, lightning_module)

forecast_it, ts_it = make_evaluation_predictions(
                                                                                dataset=train_ds,
                                                                                predictor=predictor,
                                                                                )

forecasts = list(forecast_it)
tss = list(ts_it)
evaluator = Evaluator()
agg_metrics, ts_metrics = evaluator(iter(tss), iter(forecasts))
print(json.dumps(agg_metrics, indent=4))

The results were so bizarre, I couldn't believe it. After 20-30 days on a project, I developed a forecaster model in just 1 minute that performed better than the last model I developed, which took 3 days with an RTX3090.
Old TCN model

Log-Llama model

Thank you so much for the code + detailed explanation @turkalpmd ! All of us from the team deeply appreciate you sharing these positive results with us - we strive for exactly this kind of real-world impact.
We're releasing the fine-tuning scripts soon; I presume your results will be even better with that. Stay tuned, and thank you again!

also as an experiment try the estimator with the linear-rope positional embedding via:
estimator = LagLlamaEstimator(
                                ckpt_path="lag-llama.ckpt",
                                prediction_length=prediction_length,
                                context_length=context_length,
                                # estimator args
                                input_size=estimator_args["input_size"],
                                n_layer=estimator_args["n_layer"],
                                n_embd_per_head=estimator_args["n_embd_per_head"],
                                n_head=estimator_args["n_head"],
                                scaling=estimator_args["scaling"],
                                time_feat=estimator_args["time_feat"],
                                rope_scaling={
                                    "type": "linear",
                                     "factor": max(1.0, (context_length+prediction_length)/estimator_args["context_length"])
                                 },
)

@turkalpmd Thanks for sharing. I see the forecasts is always (100, prediction_length). Does this mean it gives predictions for next 100 prediction lengths?
Second. This uses the train_ds and predicts for last prediction_length sequences. How to enable it to do predictions beyond that? Thanks in advance.

No, it's not 100 points. My own custom data was hourly, which is why I asked for a weekly forecast from the 24 intervals of a day. I didn't apply any Benchmark tests on this model, I only compared its forecasts with another Transformer time series model, which had previously taken 3 days to train with a 24 GB RTX3090. Therefore, as far as I understand, the following codes seem sufficient to set the intervals;
window and forecasting horizon:
context_length = 24
prediction_length = 24*7

Splitting data

train_ds = ListDataset(
    [{'target': time_series[:-prediction_length], 'start': start}],
    freq=freq
)

test_ds = ListDataset(
    [{'target': time_series, 'start': start}],
    freq=freq
)

@kashifmunircshs 100 represent the number of samples sampled from the probability distribution for each timestep (since we're a probabilistic forecasting model).
FYI we uploaded a new Colab demo with a tutorial to use a CSV dataset.
We explain the dimensions of the forecasts tensor there.

@turkalpmd can you post the code you used to plot the graphs you reported? Thanks

@warner83 The code for plotting is in the Colab

No, it's not 100 points. My own custom data was hourly, which is why I asked for a weekly forecast from the 24 intervals of a day. I didn't apply any Benchmark tests on this model, I only compared its forecasts with another Transformer time series model, which had previously taken 3 days to train with a 24 GB RTX3090. Therefore, as far as I understand, the following codes seem sufficient to set the intervals;
window and forecasting horizon:
context_length = 24
prediction_length = 24*7

Splitting data
train_ds = ListDataset(
    [{'target': time_series[:-prediction_length], 'start': start}],
    freq=freq
)

test_ds = ListDataset(
    [{'target': time_series, 'start': start}],
    freq=freq
)

So just FYI the context length is best kept the same (32); the code will work if changed but I suggest trying 32 first before the others

@turkalpmd
Could you please send the last_data.csv file to my email at<EMAIL_ADDRESS>Thank you very much.

I followed every step sequentially but received this on importing LagLlamaEstimator:
Import "lag_llama.gluon.estimator" could not be resolved(reportMissingImports)


Something's wrong with imagery or terrain

I had just the regular Hello World Sandcastle up and walked away from my computer for 5 minutes, and when I came back it looked like this.

@hpinkos can you regularly reproduce this?  No one else seems to have ever hit this.

@mramato I haven't tried to reproduce it


removed spatial mouse for now

Overview
spatial mouse still needs some work. Opt-in for now.

I do agree though, we should show a notification on play mode start that mouse control can be regained by pressing "Esc"


[Help!] Restoring from old Docker volumes(30agents...)

Hi People,
So I have been trying to put my huginn container in a docker network.
After stopping and rm this old container, I started a new one.
Then I lost all my data from there.
[Well as far as I could remember, the last time I migrated from Docker Hub image to ghcr image, nothing was lost]
So I just stupidly did that without backing up anything or make a note...
I have tried all of the old volumes generated by Huginn, only one matches a user account I have created but nothing in there, not even a single agent.
This is the mounting point I have been using, is that might be wrong?
sudo docker run -it -d --network=xxx --ip=x.x.x.x -p 3000:3000 -v /var/lib/docker/volumes/c7a8d7a608b709c7f393beae08d1988876e7ca5d17f109e6212ff5537365fece/_data:/var/lib/mysql ghcr.io/huginn/huginn
I have also used grep -irlZ 'MYAGENTNAME' . to find in the volumes folder, but nothing were there... only default agents showed up. (I think that volume was somehow disappeared...)
Or is that anything else I can do?

The agents are stores in the DB agents table. If you can get a copy of the DB you can restore it to another instance.


Connection Closed when there are multiple requests coming at the same time

Error
Get SocketException when firing two or more requests at the same time on first opening of the app Connection closed before full header was received sometime it is Connection attempt cancelled.

I looked into this bug. It is a race condition while it is fetching certificates to create a HTTP client. The first request will create a HTTP client. During the period of retrieving the certificate, the second requests come in. The second request should use the created HTTP client, but it is not yet finished creating. This will create the second client. And once the second once is created, the first one will be closed while it is not finished with the request.


Update set-up-sql-db-storage-single-tenant-standard-workflows.md

Fixed typo.

@cplemm : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Looks good; thanks @cplemm.


Default rules

Default rules that are always added to a new rule.  Could be dependent on group

This was developed and merged already in the following PRs: #481 , #492, #503
The feature is documented at
https://github.com/unchartedsoftware/PLUTO/blob/develop/docs/validatorConfig.md#requiredrules


Can't pull logstash 5.0.0-alpha3-1 tag

Hi.
Brief and concise:  docker pull logstash:5.0.0-alpha3-1
Returns:
Tag 5.0.0-alpha3-1 not found in repository docker.io/library/logstash
https://hub.docker.com/_/logstash/
Regards

Can you open an issue in the issue tracker for that image? https://github.com/docker-library/logstash/issues, this issue tracker is for the docker software only, not for the official images, thanks!

Done #48
Thanks.


EXPONENTIAL_BACKOFF Retry Logic is not really exponential

The task definition in the document says

EXPONENTIAL_BACKOFF : reschedule after retryDelaySeconds  * attempNo

But it is not really exponential. It should be retryDelaySeconds ** attempNo.

Agree, but it should be retryDelaySeconds * (2 ** retryCount), we will fix it.


Confirming Node Association Failed (MEGH-4123)

Hello
I'm using an ESP32-S3 device. I was trying to connect the device with rainmaker but after scanning the QR code and connecting with wifi the app is unable to confirm the node association and it's due to the MQTT.
As you mentioned earlier, add an event handler if it's crashing and rebooting but I'm not having any issues like this.
I'm sharing my logs so please once go through them.

@anjalir14 , can you share the logs preceding this, specifically the ones mentioning some claiming related messages and the node id too?

Now, something new thing is happening . Earlier I was using IDF 5.0 version then I downgrade the version to 4.4.3 now I'm not able to generate QR code and there is no error.
following I have attached all my log.

After trying on version 5 . This is the logs I'm getting

Hello,
It's been a long time that i I din't received any answer from your side. so I request you to pls have a look since I'm trying to solve this issue from last 1 week.
Hope for your reply as soon as possible.
thank you

Hello Sir,
I tried exactly what you said to me but it's still not happening.  I'm getting same error. Firstly the QR code was not generating so from some solution I found that I have to make a little change in main.cpp i.e. (app_wifi_start(MAC)instead of RANDOM we have to change MAC ) after this I was able to create QR code otherwise it was rebooting itself again and again.
Below are my logs after rebooting.
W (93562) wifi:idx
W (93562) wifi:idx
I (93562) wifi:new:<11,0>, old:<11,2>, ap:<255,255>, sta:<11,2>, prof:1
I (93572) app_wifi: Disconnected. Connecting to the AP again...
I (93632) wifi:flush txq
I (93632) wifi:stop sw txq
I (93632) wifi:lmac stop hw txq
I (93712) app_main: Rebooting in 2 seconds.
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x18 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375b45
0x40375b45: esp_restart_noos_dig at /home/dnk067/ESP/esp-idf/components/esp_system/esp_system.c:46 (discriminator 1)
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3810,len:0x167c
load:0x403c9700,len:0xbe8
load:0x403cc700,len:0x2ef4
entry 0x403c9904
I (37) boot: ESP-IDF v5.0 2nd stage bootloader
I (37) boot: compile time 12:35:42
I (37) boot: chip revision: v0.1
I (38) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (46) boot.esp32s3: Boot SPI Speed : 80MHz
I (50) boot.esp32s3: SPI Mode       : SLOW READ
I (56) boot.esp32s3: SPI Flash Size : 4MB
I (60) boot: Enabling RNG early entropy source...
I (66) boot: Partition Table:
I (69) boot: ## Label            Usage          Type ST Offset   Length
I (77) boot:  0 sec_cert         unknown          3f 06 0000d000 00003000
I (84) boot:  1 nvs              WiFi data        01 02 00010000 00006000
I (92) boot:  2 otadata          OTA data         01 00 00016000 00002000
I (99) boot:  3 phy_init         RF data          01 01 00018000 00001000
I (106) boot:  4 ota_0            OTA app          00 10 00020000 00190000
I (114) boot:  5 ota_1            OTA app          00 11 001b0000 00190000
I (122) boot:  6 fctry            WiFi data        01 02 00340000 00006000
I (129) boot: End of partition table
I (133) boot_comm: chip revision: 1, min. application chip revision: 0
I (141) esp_image: segment 0: paddr=00020020 vaddr=3c0f0020 size=47580h (292224) map
I (218) esp_image: segment 1: paddr=000675a8 vaddr=3fc9ba00 size=04f40h ( 20288) load
I (223) esp_image: segment 2: paddr=0006c4f0 vaddr=40374000 size=03b28h ( 15144) load
I (228) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=e83a8h (951208) map
I (456) esp_image: segment 4: paddr=001583d0 vaddr=40377b28 size=13e98h ( 81560) load
I (478) esp_image: segment 5: paddr=0016c270 vaddr=50000000 size=00010h (    16) load
I (489) boot: Loaded app from partition at offset 0x20000
I (489) boot: Disabling RNG early entropy source...
I (500) cpu_start: Pro cpu up.
I (500) cpu_start: Starting app cpu, entry point is 0x403756a4
0x403756a4: call_start_cpu1 at /home/dnk067/ESP/esp-idf/components/esp_system/port/cpu_start.c:142
I (0) cpu_start: App cpu up.
I (515) cpu_start: Pro cpu start user code
I (515) cpu_start: cpu freq: 160000000 Hz
I (515) cpu_start: Application information:
I (518) cpu_start: Project name:     switch
I (523) cpu_start: App version:      1.0
I (528) cpu_start: Compile time:     Jan  6 2023 12:35:30
I (534) cpu_start: ELF file SHA256:  14f46be02f08a750...
I (540) cpu_start: ESP-IDF:          v5.0
I (545) heap_init: Initializing. RAM available for dynamic allocation:
I (552) heap_init: At 3FCA72C8 len 00042448 (265 KiB): D/IRAM
I (558) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (565) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (571) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM
I (579) spi_flash: detected chip: mxic
W (582) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (593) spi_flash: flash io: dio
W (597) spi_flash: Detected size(32768k) larger than the size in the binary image header(4096k). Using the size in the binary
image header.
W (610) rmt(legacy): legacy driver is deprecated, please migrate to driver/rmt_tx.h and/or driver/rmt_rx.h
I (621) coexist: coexist rom version e7ae62f
I (626) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (10) esp_rmaker_console: Initialising UART on port 0
I (647) esp_rmaker_commands: Registering command: up-time
I (647) uart: queue free spaces: 8
I (657) esp_rmaker_commands: Registering command: mem-dump
I (667) esp_rmaker_commands: Registering command: task-dump
I (667) esp_rmaker_commands: Registering command: cpu-dump
I (677) esp_rmaker_commands: Registering command: sock-dump
I (687) esp_rmaker_commands: Registering command: heap-trace
I (687) esp_rmaker_commands: Registering command: reset-to-factory
I (697) esp_rmaker_commands: Registering command: add-user
I (707) esp_rmaker_commands: Registering command: get-node-id
I (707) esp_rmaker_commands: Registering command: wifi-prov
I (717) esp_rmaker_commands: Registering command: local-time
I (717) esp_rmaker_commands: Registering command: tz-set
I (727) esp_rmaker_commands: Registering command: cmd
I (737) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (747) gpio: GPIO[19]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (767) pp: pp rom version: e7ae62f
I (767) net80211: net80211 rom version: e7ae62f
I (787) wifi:wifi driver task: 3fca7a54, prio:23, stack:6656, core=0
I (787) system_api: Base MAC address is not set
I (787) system_api: read default base MAC address from EFUSE
I (797) wifi:wifi firmware version: 0d470ef
I (797) wifi:wifi certification version: v7.0
I (797) wifi:config NVS flash: enabled
I (797) wifi:config nano formating: disabled
I (807) wifi:Init data frame dynamic rx buffer num: 32
I (807) wifi:Init management frame dynamic rx buffer num: 32
I (817) wifi:Init management short buffer num: 32
I (817) wifi:Init dynamic tx buffer num: 32
I (827) wifi:Init static tx FG buffer num: 2
I (827) wifi:Init static rx buffer size: 1600
I (827) wifi:Init static rx buffer num: 10
I (837) wifi:Init dynamic rx buffer num: 32
I (837) wifi_init: rx ba win: 6
I (847) wifi_init: tcpip mbox: 32
I (847) wifi_init: udp mbox: 6
I (847) wifi_init: tcp mbox: 6
I (857) wifi_init: tcp tx win: 5744
I (857) wifi_init: tcp rx win: 5744
I (867) wifi_init: tcp mss: 1440
I (867) wifi_init: WiFi IRAM OP enabled
I (867) wifi_init: WiFi RX IRAM OP enabled
I (887) esp_rmaker_work_queue: Work Queue created.
I (887) esp_claim: Initialising Self Claiming. This may take time.
W (897) esp_claim: Generating the private key. This may take time.
I (2957) app_main: RainMaker Initialised.
I (2957) esp_rmaker_node: Node ID ----- 68B6B33CD3D8
I (2967) esp_rmaker_ota_using_topics: OTA enabled with Topics
I (2967) esp_rmaker_ota: OTA state = 2
I (2967) esp_rmaker_time_service: Time service enabled
I (2977) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org
I (2987) app_insights: Enable CONFIG_ESP_INSIGHTS_ENABLED to get Insights.
I (2987) esp_rmaker_core: Starting RainMaker Work Queue task
I (2997) esp_rmaker_work_queue: RainMaker Work Queue task started.
W (2997) BT_INIT: esp_bt_mem_release not implemented, return OK
I (3007) wifi_prov_scheme_ble: BT memory released
I (3017) app_wifi: Starting provisioning
I (3027) phy_init: phy_version 503,13653eb,Jun  1 2022,17:47:08
W (3027) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (3077) wifi:mode : sta (68:b6:b3:3c:d3:d8)
I (3077) wifi:enable tsf
I (3077) BT_INIT: BT controller compile version [76c24c9]
I (3087) BT_INIT: Bluetooth MAC: 68:b6:b3:3c:d3:da
I (3087) protocomm_nimble: BLE Host Task Started
I (3097) NimBLE: GAP procedure initiated: stop advertising.
I (3097) NimBLE: GAP procedure initiated: advertise;
I (3097) NimBLE: disc_mode=2
I (3107) NimBLE:  adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=256 adv_itvl_max=256
I (3117) NimBLE:
I (3117) wifi_prov_mgr: Provisioning started with service name : PROV_3cd3d8
I (3127) app_wifi: Provisioning started
I (3127) esp_rmaker_local: Event 1
I (3137) app_wifi: Scan this QR code from the ESP RainMaker phone app for Provisioning.
█▀▀▀▀▀█ ▄▄█   ▄█▄ ▀▀▄▄▀█▄ █▀▀▀▀▀█
█ ███ █ ▀▄  ▄  ██▀▄█▄ ▀▄▀ █ ███ █
█ ▀▀▀ █ █▀█ █▀███ █▄▀ ▀▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ █ █▄▀ ▀ ▀▄▀▄▀▄▀ ▀ ▀▀▀▀▀▀▀
▀█ ▀ ▄▀▀ ▄ ██▀▄▀█▄█ ▀█ ▀ ▄█▀▀▄▀▀▄
▀ █▀██▀▄█▄▄██▄█▄ ▀█▀█▄▀▄▄ ▄█    █
▀█▄█▄▄▀▀▄ ▀█ ▀▀  █ ▄█▀▀█▄▀█ ▄▄ ▀█
█▄█ █ ▀██▄▄█ █   █   ▄▀▀█▀  ▄█ █▄
▀▄  ▀▄▀▄▀▀▄ █▄▄ ███▀██  ▄█▀ ▀▀▄ ▀
██▀█▄█▀ ▄  ▀█▀▀ ▀▄▀▄▀██ ▄ █▄▄▄ ▀█
▄ ▀█▀▀  ▀█▄ ▀▀▀█▄▀▀▀▀▀▄█ ▄▄ █ ▄▄
▀█▄▀  ▀▀▄▄▀  █▄▄▀▀▀▀█▄▀▄▀█  ▄▄ ▀▀
▀   ▀▀▀ ▄ ▄▄█▀  ▀▀▀▄▀██ █▀▀▀█▀ ▄▄
█▀▀▀▀▀█ ▀   █▄█ ▀█ ▄ █▀▀█ ▀ ██ █
█ ███ █ ▄▄█▀▀▄█ █▀▀▀ ██ ▀████▀ ▄█
█ ▀▀▀ █ ▄▀▄▄▄▀▀▄▀█▀▄▄▄█ ▀  ▄▀█▀▀▀
▀▀▀▀▀▀▀ ▀    ▀▀    ▀ ▀  ▀ ▀ ▀▀ ▀
I (3337) app_wifi: If QR code is not visible, copy paste the below URL in a browser.
https://rainmaker.espressif.com/qrcode.html?data={"ver":"v1","name":"PROV_3cd3d8","pop":"b33cd3d8","transport":"ble"}
I (3357) app_main: Provisioning QR : {"ver":"v1","name":"PROV_3cd3d8","pop":"b33cd3d8","transport":"ble"}
I (3367) app_wifi: Provisioning Started. Name : PROV_3cd3d8, POP : b33cd3d8
I (3377) app_wifi: Provisioning will auto stop after 30 minute(s).
I (19847) NimBLE: GAP procedure initiated: advertise;
I (19847) NimBLE: disc_mode=2
I (19847) NimBLE:  adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=256 adv_itvl_max=256
I (19857) NimBLE:
I (29357) NimBLE: GAP procedure initiated: stop advertising.
I (46947) NimBLE: GAP procedure initiated: advertise;
I (46957) NimBLE: disc_mode=2
I (46957) NimBLE:  adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=256 adv_itvl_max=256
I (46957) NimBLE:
I (72877) esp_rmaker_user_mapping: Received request for node details
I (72877) esp_rmaker_user_mapping: Got user_id = Google_BExsnsibETGiNNa8R5qVbz, secret_key = b49561f1-1422-483d-8755-469b353e6
992
I (72887) esp_rmaker_user_mapping: User Node mapping reset detected.
I (72887) esp_rmaker_user_mapping: Sending status SUCCESS
I (73487) app_wifi: Received Wi-Fi credentials
SSID     : NetweeN
Password : Quickreplyme
I (76907) wifi:new:<11,2>, old:<1,0>, ap:<255,255>, sta:<11,2>, prof:1
I (77887) wifi:state: init -> auth (b0)
I (77887) wifi:state: auth -> assoc (0)
I (77897) wifi:state: assoc -> run (10)
I (77967) wifi:connected with NetweeN, aid = 2, channel 11, 40D, bssid = 90:8d:78:76:27:00

wifi:security: WPA2-PSK, phy: bgn, rssi: -30
I (77997) wifi:pm start, type: 1

I (77997) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
I (77997) wifi:BcnInt:102400, DTIM:1
W (78017) wifi:idx:0 (ifx:0, 90:8d:78:76:27:00), tid:0, ssn:2, winSize:64
I (79267) app_wifi: Connected with IP Address:<IP_ADDRESS>
I (79267) esp_netif_handlers: sta ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (79267) wifi_prov_mgr: STA Got IP
I (79267) app_wifi: Provisioning successful
I (79277) esp_claim: Starting the Self Claim Process. This may take time.
I (79277) app_main: RainMaker Claim Started.
I (81067) esp-x509-crt-bundle: Certificate validated
I (81937) NimBLE: GAP procedure initiated: stop advertising.
I (81957) NimBLE: GAP procedure initiated: stop advertising.
I (81977) NimBLE: GAP procedure initiated: terminate connection; conn_handle=1 hci_reason=19
E (82007) protocomm_nimble: Error setting advertisement data; rc = 30
I (82067) wifi_prov_mgr: Provisioning stopped
W (82067) BT_INIT: esp_bt_mem_release not implemented, return OK
I (82067) wifi_prov_scheme_ble: BTDM memory released
I (82067) esp_rmaker_local: Event 6
W (82407) wifi:idx:1 (ifx:0, 90:8d:78:76:27:00), tid:1, ssn:0, winSize:64
I (82407) esp_rmaker_time: SNTP Synchronised.
I (82407) esp_rmaker_time: The current time is: Fri Jan  6 15:10:22 2023 +0800[CST], DST: No.
I (82427) HTTP_CLIENT: Body received in fetch header state, 0x3fcf365d, 129
I (82617) esp-x509-crt-bundle: Certificate validated
I (85087) HTTP_CLIENT: Body received in fetch header state, 0x3fcf3406, 502
I (85097) esp_claim: Self Claiming was successful. Certificate received.
I (85097) app_main: RainMaker Claim Successful.
E (85097) esp_rmaker_core: Failed to initialise MQTT Config after claiming. Aborting
I (85107) esp_rmaker_ota_using_topics: Subscribing to: node/68B6B33CD3D8/otaurl
W (85117) esp_rmaker_mqtt: esp_rmaker_mqtt_unsubscribe not registered
W (85127) esp_rmaker_mqtt: esp_rmaker_mqtt_subscribe not registered
W (85127) esp_rmaker_mqtt_budget: MQTT budgeting not started yet. Allowing publish.
W (85137) esp_rmaker_mqtt: esp_rmaker_mqtt_publish not registered
I (85147) esp_rmaker_user_mapping: MQTT Publish: {"node_id":"68B6B33CD3D8","user_id":"Google_BExsnsibETGiNNa8R5qVbz","secret_k
ey":"b49561f1-1422-483d-8755-469b353e6992","reset":true}
I (90127) esp_rmaker_ota_using_topics: Fetching OTA details, if any.
W (90127) esp_rmaker_mqtt_budget: MQTT budgeting not started yet. Allowing publish.
W (90127) esp_rmaker_mqtt: esp_rmaker_mqtt_publish not registered
Waiting for your reply as soon as possible.

@anjalir14, your earlier log had Assisted Claiming and the new one has Self Claiming. So I guess you have changed the config and probably also erase the flash, else the claiming wouldn't have started again. As mentioned earlier, can you just reset wifi and retry? Meanwhile, we will check why the device is getting this error E (85097) esp_rmaker_core: Failed to initialise MQTT Config after claiming. Aborting. That is causing the failures you see.

Hello @shahpiyushv
I tried everything that has been mentioned but still MQTT is not intializating.
Actually I'm running on my deadline of the project, so I would like you to pls check this . Can you pls let me know when this issue is going to solve as my deadline of project is very close.
Hoping to get your answer as soon as possible

Hi,
Can you specify your branch and commit hash of  IDF and Rainmaker repos ?

@anjalir14 , it would have really helped if logs for the boot cycle after this (with only wifi credentials reset) were shared. Since both the logs are with device booting up in unclaimed state, it is hard to tell why things may not have worked even during the subsequent boot cycles when the node was already claimed. The issue with claiming indeed looks to be some issue, but atleast pre-claimed nodes should work fine.
Meanwhike, as asked above, please share the branch and commit hash of IDF and Rainmaker repos.


Block retrieval fixup

This is just an optimization bugfix, but actually it uncovered a whole host of issues. The biggest one is that there are numerous methods in the Ledger which return status codes (bool return), but which also throw.
That means these exceptions can be accidentally caught and swallowed. I attempted marking some nothrow, but there's a very large chain of calls that needs to be marked nothrow to make this work. So we'll have to do this in another PR.
The commit messages explain in more detail.

The biggest one is that there are numerous methods in the Ledger which return status codes (bool return), but which also throw.

Yeah, and I'm starting to think the status code approach was a bit too eager. We had way too many places where return codes and exceptions alike were ignored, but at least with Exceptions, we will see it.

I think this should fix it now. I think we could also optimize the last commit (maybe in another PR?). We don't need to keep trying to re-add preimages which were successfully added. We could filter them by their enrollment start height.

@kchulj I am placing a bet of one beer (any beer of your choice) that this will fix https://github.com/bosagora/agora/issues/1552

@kchulj I am placing a bet of one beer (any beer of your choice) that this will fix #1552 🍺

Related to #1083 ?

Related to #1083 ?

Somewhat. But there were multiple bugs found in the catchup code here. The net effect is that blocks would be silently rejected. That might explain why there was nothing interesting in the logs in #1552.

@kchulj I am placing a bet of one beer (any beer of your choice) that this will fix #1552 🍺

I'll take the bet if Ku doesn't :P
I don't think #1552 is related to catch up, although I would love to be wrong.


Wrong movie, same title

Hey, first off, this script is FANTASTIC, and I've used it a lot. That said, I do tend to find it mixes things up a lot based on title. I have "imdb_id_filter: true" set in my config and it seems to check that, but for example, a lot of lists contain SUSPIRIA (1977) but the lists all have the remake from 2018.
Is there something I can set differently, or is this just how it is?

Thanks for the feedback - the list matching is definitely the trickiest part. Can you send which specific lists you're using which cause the problem?

Wow, super quick response! An easy list to test is https://letterboxd.com/bfi/list/sight-and-sounds-greatest-films-of-all-time
It contains the original Suspiria, but not the 2018 remake, but the remake always shows in the collections in Jellyfin (though I have both in my library and confirmed that both contain the correct IMDB id in their metadata).

Hmmm strange. I've tried it with both the 1977 and 2018 version in my library. Seems to pick the correct (1977) one.
Make sure your config is something like:
  letterboxd:
    enabled: true
    imdb_id_filter: true
    clear_collection: true
    list_ids:
      - "bfi/list/sight-and-sounds-greatest-films-of-all-time"

If it stil isn't working let me know.Might need to send some debug logs to try and reproduce your issue.

Hm, odd. I definitely don't have "clear_collection" configured, and my list doesnt have the list id's in quotations. Do you think those two options would effect this? imdb_id_filter is indeed set to true, as is "enabled".

clear_collection might help (otherwise the script will only add to the collection, never delete the 2018 version). The quotation marks shouldn't matter.

Hm, I suspect that'll be fine without the clear_collection part (i've been removing the incorrect movies manually, plus I have been adding movies of my own to some of these lists so I'd prefer to avoid clearing my custom entries), but I can try it if you think it'd help.
Either way, this isn't the end of the world for me and I might just try to live with it for now. How would I find the debug logs you mentioned earlier?

#55 might have helped.

Nice, thanks for the feedback - I'll keep iterating on it.


Market data not printed

Hi, I tried the sample with my account, and the log has such error:
TransientError: ERROR -1: Invalid account type
I used my LIVE account, which works fine with REST api and minute data, but I want to have tick data with stream api. The account information is exactly the same.
So, could anyone give me some hint?
Thanks

Hi,
Which version of Python ?
Kind regards

pc:ig-markets-stream-api-python-library femto$ source activate py2
discarding //anaconda/bin from PATH
prepending //anaconda/envs/py2/bin to PATH

(py2)pc:ig-markets-stream-api-python-library femto$ python sample.py
('New state:', 'connecting Lightstreamer session')
('New state:', 'connected Lightstreamer session')
balance update = [u'29969.47']
price update = [u'09:47:04', u'1.55388', u'1.55408', u'0.00099', u'TRADEABLE']
price update = [u'09:47:09', u'1.55393', u'1.55403', u'0.00099', u'TRADEABLE']
price update = [u'09:47:10', u'1.55394', u'1.55404', u'0.00100', u'TRADEABLE']
price update = [u'09:47:10', u'1.55401', u'1.55411', u'0.00107', u'TRADEABLE']
price update = [u'09:47:10', u'1.55402', u'1.55412', u'0.00108', u'TRADEABLE']
price update = [u'09:47:11', u'1.55400', u'1.55410', u'0.00106', u'TRADEABLE']
price update = [u'09:47:11', u'1.55399', u'1.55409', u'0.00105', u'TRADEABLE']
price update = [u'09:47:11', u'1.55397', u'1.55407', u'0.00103', u'TRADEABLE']
price update = [u'09:47:14', u'1.55391', u'1.55411', u'0.00102', u'TRADEABLE']
price update = [u'09:47:14', u'1.55389', u'1.55409', u'0.00100', u'TRADEABLE']
price update = [u'09:47:14', u'1.55388', u'1.55408', u'0.00099', u'TRADEABLE']
price update = [u'09:47:21', u'1.55394', u'1.55404', u'0.00100', u'TRADEABLE']

(py2)pc:ig-markets-stream-api-python-library femto$ python --version
Python 2.7.10 :: Anaconda 2.3.0 (x86_64)

Hi, thanks for your replay.
I use python 2.7.10, same with you. But this is all I have here. I have created a new DEMO account, but it's still not working
('New state:', 'connecting Lightstreamer session')
('New state:', 'connected Lightstreamer session')
balance update = [u'10000.00']
No price data is printed. Here is the log error:
2015-09-21 17:05:14,620 ERROR While invoking <bound method LsClient._send_control_impl of <igls.LsClient object at 0x10b6f2750>>(*(), **{})
Traceback (most recent call last):
File "/Users/jiechaoli/Lzzg/ig_api/ig-markets-stream-api-python-library/igls.py", line 199, in run_and_log
func(*args, **kwargs)
File "/Users/jiechaoli/Lzzg/ig_api/ig-markets-stream-api-python-library/igls.py", line 647, in _send_control_impl
self._parse_and_raise_status(req, req.iter_lines())
File "/Users/jiechaoli/Lzzg/ig_api/ig-markets-stream-api-python-library/igls.py", line 542, in _parse_and_raise_status
(status, next(line_it), next(line_it)))
TransientError: ERROR -1: Invalid account type

I have another idea, could you use my account info and see if it works?
I want to know whether it's a problem of my account. Here it is.
username = "chrisdemo"
password = "Lzqh12345!"
api_key = '48ba772792217e8d048d9666e41eb9a488ed8444'
acc_type = "DEMO" # LIVE / DEMO
acc_number = "luzhengam_test"
Thanks

With your demo credentials I'm getting only
$ python sample.py
('New state:', 'connecting Lightstreamer session')
('New state:', 'connected Lightstreamer session')
balance update = [u'10000.00']

no price update
switching to my credential I get price_update
my account number looks like AA1AA where A stands for a letter, 1 stands for a number

OK, then it's definitely my account's problem. I have tested with both my LIVE and DEMO account, and none of them work.

I found my account number

So, it changed it to 'XL66S' and 'XL66T', but still not working

hi, femtotrader
Could you tell me the type of your account? Mine is a regular LIVE account, not pro. Does it need to be PRO to get tick data?

Sorry I can't say for now... because my demo account seems to be disabled (I can't login to web interface). But I can oddly connect to API and see price update ;-)

I have applied for a new account and the demo works now. Thanks a lot!

Thanks.
Feel free to also help development on Python 3 support
Weswit/Lightstreamer-example-StockList-client-python now have Python 3 support so it should help

Thanks. I will take a look at it as soon as I finish my current project.
On Sun, Sep 27, 2015 at 2:37 PM, femtotrader<EMAIL_ADDRESS>wrote:

Thanks.
Feel free to also help development on Python 3 support
Weswit/Lightstreamer-example-StockList-client-python
https://github.com/Weswit/Lightstreamer-example-StockList-client-python
now have Python 3 support so it should help
—
Reply to this email directly or view it on GitHub
https://github.com/femtotrader/ig-markets-stream-api-python-library/issues/6#issuecomment-143523947
.

--
Best wishes
Jiechao Li

I suggest using Anaconda Python.
You can switch easily Python version (from 2 to 3 or 3 to 2)
http://continuum.io/blog/anaconda-python-3

hi, do you know how to subscribe to multiple items? For example, I want to get realtime price of 'GBPUSD' and 'EURUSD' and others..

I got it. Just use item_ids='L1:CS.D.GBPUSD.CFD.IP L1:CS.D.EURUSD.CFD.IP'
But, when the price comes, I do not know which price is from which item. I can only get item is an integer. Is it the index of item in the string list?

try with ";" or ","

Sorry I misunderstood your question. I need to have a look deeper

Well. I assume the order I put in item_id correspond to item. For example, item_ids='L1:CS.D.GBPUSD.CFD.IP L1:CS.D.EURUSD.CFD.IP'
Then,
'item 1' means  GBPUSD
'item 2' means EURUSD

If I where you I will add some other symbol (with JPY for example) to be sure of this

Thanks, do you know where is the complete list of all the market I can access? and their valid epic name?

Someone scrapped a web page
http://www.andlil.com/forum/epics-source-t9986.html#p308583
http://www.andlil.com/api/Epics/log_epics.txt
http://www.andlil.com/api/Epics/

Great! Thanks


Implication between definedness of maps

It fails to prove that #Ceil(M K |-> true) implies #Ceil(M K |-> false).

Duplicate of #1578.


[documentation] make clear whether or not Isso supports notifications to commenters

The current documentation does not make it super clear whether the email notifications are sent to just the sysadmin or whether commenters receive them as well (i.e. whether they can "(un)subscribe" to a thread).
Also, curious what the answer to this actually is.

I agree with you, the answer isn't clear from the documentation. Unfortunately, Isso can send mails only to admin, not to commenters. See pull request #50.

Submit a PR to improve the documentation.


index page without dropdown button is throw the error

Hi mate,
index page without dropdown button is throwing the error

BTW, your plugin is awesome!
If some have showcase section, you can add my site my site for site showcase.

The plugin is is breaking index page (home) and mobile menu and even language switch.

Oh, thank you very much for noticing this mistake. I'll probably have to adjust the script to run only, when the component is displayed. Like make the script locally...
Another good idea of you is a showcase site, I'll add that soon!

Oh, thank you very much for noticing this mistake. I'll probably have to adjust the script to run only, when the component is displayed. Like make the script locally...
Another good idea of you is a showcase site, I'll add that soon!

Okay, new version is published, can you update the plugin to v0.2.1 and try the following things for me:

index error should be gone (I checked that)
mobile menu should work (I didn't check that...)
language switch should work (I didn't check that...)

Oh, and I almost forgot: Thanks for the appreciation but the credit goes to @HiDeoo, who originally created the plugin: starlight-sidebar-topics.

Oh, and I almost forgot: Thanks for the appreciation but the credit goes to @HiDeoo, who originally created the plugin: starlight-sidebar-topics.

The issue has been resolved. Thank you for your hard work, @trueberryless and @HiDeoo. Much respect for your efforts!


responsive ButtonAppBar.js

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
I'm trying to create responsive ButtonAppBar.js for all devices.  I need a help to add this. I got an error, that's why I can't submit a pull request. live link: https://u3xus.csb.app/
Examples 🌈
https://u3xus.csb.app/
Motivation 🔦
No response

### Basic App Bar
live link:

Desktop view:

Mobile View:


(MAINT) Fix virtualization resolver for FreeBSD

get_product_name_vm() was renamed to get_fact_vm() in 0e9685460f91cc2240babd3c8c1975ab7120c984, but the FreeBSD virtualization resolver was not updated accordingly.
A similar problem existed for Solaris and OpenBSD and was fixed similarly in 97f681863cdced0e6f93c4acf4351eb60434c2d8.

Can one of the admins verify this patch?

CLA signed by all contributors.

Thank you, @smortex! This looks good to me. Would you mind retargeting this PR at the 1.10.x branch so that it can make its way into all versions of puppet-agent?

@caseywilliams I changed the targeted branch from GitHub, I think it did the right thing.
Thanks!

:+1: from me on this.
@smortex after a little churn, it looks like we're going to try to get this out in Facter 3.11.0, which we're planning to tag next week. It looks like you've been keeping up with Facter releases in your port, so I'm hoping that will work for you. If not, please let us know!

@branan excellent!
Since I am part of the puppet@ group at FreeBSD, for "small" patches like this one, I don't worry too much and add a patch in the ports tree while a Pull-Request is waiting.
However, for more important changes (e.g. #1629), I prefer to see the code merged upstream first, in order to avoid maintaining local FreeBSD patches over a long period of time.  If you have hints to help this issue get merged, it would be much appreciated 😉 !


feat: Playgrounds navigation

What does this PR do?
Adds a Playground page, and the possibility to create a new playground with an optional name, and a given model.
When a new playground is created and no model service is running for its model, the model server is created and started. If the model server exists but is stopped, it is started.
Out of scope for this PR:

the playground details page only displays the playground id
the PlaygroungManagerV2 API needs to be adapted to accept playgroundId as input, and not accept info already known by the playground (modelId)
the user is not redirected yet to the playground page (as it is empty for now)

Screenshot / video of UI
https://github.com/projectatomic/ai-studio/assets/9973512/7748094d-d755-4ae7-8696-cda4cf213fa0
No models are downloaded yet:

More models could be downloaded:

All models are downloaded:

What issues does this PR fix or reference?
Part of #525
How to test this PR?
Go to the Playground page and use "New Playground" button to create new playgrounds.
Creating new playgrounds should start "Services" for the model chosen for the playground, if not already running
Depending on the models downloaded or not, different messages should appear (see screenhost above)

Small hint the when the form is presented for the first time no model is selected by default the first one should be. I don't know why but this does not happen after the first playground has been created.

Small hint the when the form is presented for the first time no model is selected by default the first one should be. I don't know why but this does not happen after the first playground has been created.

should be fixed now. Thanks


Compile errors with cloud_firestore 0.12.11 or higher

After updating to cloud_firestore 0.12.11 or higher, tests depending on mock_cloud_firestore fail with the following compile errors:
Compiler message:
/C:/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/mock_cloud_firestore-0.0.16/lib/mock_types.dart:43:9: Error: The method 'MockCollectionReference.where' has fewer named arguments than those
of overridden method 'Query.where'.
  Query where(
        ^
/C:/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/lib/src/query.dart:121:9: Context: This is the overridden method ('where').
  Query where(
        ^
/C:/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/mock_cloud_firestore-0.0.16/lib/mock_types.dart:43:9: Error: The method 'MockCollectionReference.where' doesn't have the named parameter
'arrayContainsAny' of overridden method 'Query.where'.
  Query where(
        ^
/C:/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/lib/src/query.dart:121:9: Context: This is the overridden method ('where').
  Query where(
        ^

The reason are two new parameters for the where method in mock_types (https://pub.dev/packages/cloud_firestore#01211),

should be fixed with 0.0.17


Citygrid/Urbanspoon API

http://docs.citygridmedia.com/display/citygridv2/CityGrid+APIs

Urbanspoon reviews dont show up using the citysearch API, but they seem willing if there is a partnership there.
http://w3facility.org/question/looking-for-urbanspoon-api/


Added mic option in note taking textarea succefully.

Description
There was no mic option in note taking textarea , which makes user time consuming while adding their notes.

Fixes #(issue number)
256

Type of change
feature adition .

[x] New feature (non-breaking change which adds functionality)

Added mic option in content textarea input for user to add note eassyly by just speaking.

[x] Documentation update
User need to give assess to the microphone in there browser setting .
[x] Tests update
The feature is added succefully  , and it is working fine.

Screenshots (if applicable)

Your Pr has merge conflicts . Also add screen recording of implementation.

@theashikagupta i will be doing this complete process again .


Recommended way to test mappings

In my project I have written some model classes that fetch data via Alamofire, Objectmapper and Realm. Sometimes a backend developer changes the REST-interface or a dog walks across my keyboard, so that my mapping breaks.
I would like to increase my test coverage and detect if my mapping doesn't fit to the REST-service anymore. What would be the best approach to test this?
Here is a method thats would be great to have tested:
 func fetchOverviewItemList(successHandler: List<OverviewItem> -> (), errorHandler: (ErrorType?) -> ()){

        //fetch existing objects from DB
        let overviewItemsAsList = List<OverviewItem>()
        overviewItemsAsList.appendContentsOf(self.realm.objects(OverviewItem))
        successHandler(overviewItemsAsList)

        AlamofireManager.Configured
            .request(.GET, URLs.sharedInstance.overviewItemsUrl())
            .responseJSON{response in log.verbose("response: \(response.result.value)")}
            .responseArray("sefInfos") { (response: Response<[OverviewItem], NSError>) in

                if let error = response.result.error{
                    log.error("Error: \(error.localizedDescription)")
                    errorHandler(error)
                    return
                }

                if let overviewItemsArray = response.result.value{

                    //remove orphans
                    self.deleteOrphans(overviewItemsAsList, fetchedData: overviewItemsArray)

                    //update objects from service
                    overviewItemsAsList.removeAll()
                    overviewItemsAsList.appendContentsOf(overviewItemsArray)
                    successHandler(overviewItemsAsList)

                    do{
                        try self.realm.write{
                            self.realm.add(overviewItemsAsList, update: true)
                        }
                    }
                    catch let err as NSError {
                        log.error("Error with realm: \(err.localizedDescription)")
                    }
                }
        }
    }

Hi @ogezue, sorry for the slow response.
There are many examples of how you can test your mappings in the project already. Check out the tests directory: https://github.com/Hearst-DD/ObjectMapper/tree/master/ObjectMapperTests


Add missing test for meshUVSpaceRenderer

cc @noname0310

now it is ;)

Please no! this is great! This is such a painful task. I appreciate all the help!

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/15410/merge
Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15410/merge/index.html
To test a playground add it to the URL, for example:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15410/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15410/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15410/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15410/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15410/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15410/merge#BCU1XR#0

Visualization tests for WebGPU (Experimental)
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15410/merge/testResults/webgpuplaywright/index.html

WebGL2 visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15410/merge/testResults/webgl2playwright/index.html

Visualization tests for WebGL 1 have failed. If some tests failed because the snapshots do not match, the report can be found at
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15410/merge/testResults/webgl1/index.html
If tests were successful afterwards, this report might not be available anymore.

Visualization tests for WebGL 1 have failed. If some tests failed because the snapshots do not match, the report can be found at
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15410/merge/testResults/webgl1/index.html
If tests were successful afterwards, this report might not be available anymore.


App window shows up almost entirely off-screen on startup

Happens on every app launch
YakYak v1.4.3
OSX 10.13.3

bummer 😿

@loisaidasam try updating to a more recent version of yakyak v1.5.1

Aha, I wasn't keeping up with releases.
So far so good, thanks @averissimo !!!

you're welcome :)


Check into why some figure images do not always display on TEMPO ATBD

The TEMPO team is rather continuously encounter figure images not displaying on the generate PDF. Sometimes the captions are missing, but sometimes they are not (just related to images that don't appear.
TEMPO Nitrogen Dioxide Algorithm Theoretical Basis Document
Access can be granted for those with a production account (if needed). @wrynearson noticed a caching issue the other day, but doesn't seem to help now.
Acceptance Criteria

[ ] determine what is causing the issue

@jjfrench can you think of any reason why this would be happening? cc @frozenhelium.
I have not been able to reproduce this issue – the figures I've tested all download as expected for me.

Not entirely sure how these processes work but can we confirm it's a display issue or is the PDF not being generated properly? I can check for logs if I know what to look for (if it's a backend issue)

Yes @jjfrench, it's a PDF generation and backend issue. The PDFs are generated using Playwright (see https://github.com/NASA-IMPACT/nasa-apt/issues/622 and referenced issues/PRs for details).
It's strange because the generation is not happening on the user's side, but in the backend. Also, if a document hasn't been changed, we serve a cached version of the generated PDF. I don't understand why document PDFs that @bwbaker1 downloads would be different than the ones that I download, but they appear to be so.


Unable to make due to svm_sgd error.

The following is the error I get while doing
make && make test

[ 99%] Building CXX object examples/meta/cpp/CMakeFiles/sgd_svm.dir/binary_classifier/sgd_svm.cpp.o
/home/sudarshan/shogun/examples/meta/cpp/binary_classifier/sgd_svm.cpp: In function ‘int main(int, char**)’:
/home/sudarshan/shogun/examples/meta/cpp/binary_classifier/sgd_svm.cpp:39:9: error: ‘class shogun::CLibLinear’ has no member named ‘set_epochs’
 svmsgd->set_epochs(num_iter);
         ^
examples/meta/cpp/CMakeFiles/sgd_svm.dir/build.make:62: recipe for target 'examples/meta/cpp/CMakeFiles/sgd_svm.dir/binary_classifier/sgd_svm.cpp.o' failed
make[2]: *** [examples/meta/cpp/CMakeFiles/sgd_svm.dir/binary_classifier/sgd_svm.cpp.o] Error 1
CMakeFiles/Makefile2:5627: recipe for target 'examples/meta/cpp/CMakeFiles/sgd_svm.dir/all' failed
make[1]: *** [examples/meta/cpp/CMakeFiles/sgd_svm.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Help would be much appreciated.

Never mind, I solved it by commenting out svmsgd->set_epochs(num_iter);. Could someone reproduce this bug, to see if it actually is a bug or not ? Thanks. If it is, might be an easy fix.

Lets investigate what is going on here

See my comments in #3617