Simple Way To Write Infinite Scrolling?

hello,
was gonna send an email but your thing said just open an issue
anyway I've been writing stuff to calculate new start and end dates, but was wondering if there was a simple way to
1 write infinite scrolling to the future and past
2 when view did load setting the content offset of the calendar view to the date of today
3 call a function to scroll to a date
I've also forked the file; I'm not that good at coding yet but as I was reading through it I've been spellchecking the comments to have you pull later :)
thanks jay

https://github.com/geoffreygonzales/Honeydew
I think the solution would be to use anchor date but idk how to implement it :(

write infinite scrolling to the future and past
This calendar does not have infinite scrolling by default, but there are some developers who have implemented it in their projects

when view did load setting the content offset of the calendar view to the date of today
In your view did load, simply call
calendarView.scrollToDate(myDate)
and if you dont want any animation, call
calendarView.scrollToDate(myDate, animateScroll: false)

call a function to scroll to a date
Do the same thing as in question # 2

thank you
I have a function that automatically sets start and end date
a at runtime
b whenever an individual lifts their scrolling finger && the content offset is close to the start or end
after that, would it be best to call
calendarView.reloadData()
and then
calendarView.scrollToDate(currentDateInView, animateScroll: false)
?

how about calendarView.reloadData(withAnchor: myDate) ?

perfect perfect perfect thank you very much.
also :
on initial configuration of the calendar, where you set start and end dates, is there a similar way to load at a specified date?
1 when the app loads initially, the dates and other configurations are set,
2 then the view shows (briefly the start date month)
3 then, since I call scrollToDate(toDate, animateScroll : false) - it shows the specified date.
is there a way to skip / set step 2, for the initial launch of the app? (since if I call reload data here it crashes)

@geoffreygonzales
sounds like a bug to me.
Can you put this in your Podfile and do a pod update ?
pod 'JTAppleCalendar', :git => 'https://github.com/patchthecode/JTAppleCalendar.git', :branch => 'master'

This version will be release in about a week or so.
Keep in mind that it will force you to implement the willDisplayCell function
This issue explains how you should setup the willDisplay cell and the cellForItem function in this master branch -> https://github.com/patchthecode/JTAppleCalendar/issues/553
Let me know if step 2 goes away when you scroll to date on viewDidLoad()

I'm getting this error when running pod update
[!] There are multiple dependencies with different sources for JTAppleCalendar in Podfile:

JTAppleCalendar (from https://github.com/patchthecode/JTAppleCalendar.git, branch master)
JTAppleCalendar

this not a primary issue for me, as the 100ms view of the startDate of the calendar before the scrollToDate is not even seen by individuals, as the calendar is initially hidden until toggled
so no pressure :)
I have another question about setting the site and position of the calendar programmatically:
I call this when view did load
func setCalendarSizeAndPosition()
{
      // Get Screen Properties
      let screenWidth = UIScreen.main.bounds.width
      let screenHeight = UIScreen.main.bounds.height

      // Set Size And Position Properties
      let calendarWidth = screenWidth * 0.85625
      let calendarHeight = screenHeight * 0.630281690140845

      let calendarX = (screenWidth / 2) - (calendarWidth / 2)
      let calendarY = screenHeight * 0.419014084507042

      // Set The Global Variable For Resting The Calendars Resting Y Position
      calendarRestingPosition = calendarY

      // Set Calendar Size And Position
      calendarView.frame.size.width = calendarWidth
      calendarView.frame.size.height = calendarHeight

      calendarView.frame.origin.x = calendarX
      calendarView.frame.origin.y = calendarY
}

this is the behavior I experience
1 when this function is called on view did load, it does not resize or reposition the calendar (I assume the size and position is captured by JTAppleCalendar)
2 I have a button that calls again setCalendarSizeAndPosition() this resizes and repositions the calendar successfully
3 at the end of 1nd scroll, when finger is lifted off the screen, the calendar does not resize or reposition
4 at the end of the 2nd scroll, when finger is lifted off the screen, the calendar resizes itself to the size set in interface builder
(I also notice an sharp decrease in performance in the scroll smoothness)
I use setCalendarSizeAndPosition() for easily working across devices for a design.
Worst case - ill just go through each device and set their size and width

will look at this when i awake in the morning.

I pushed a project that recreated the bug
1 try with the label.text = "" commented out
2 try with label.text = "" left in
watch the console
hope this helps :)

@geoffreygonzales Hey, may i get a link to that project?

oops I thought I pasted it
https://github.com/geoffreygonzales/calendar-test

I thought of a work around after a beer
ill just set in interface builder that the origin is below the screen, so theres no confusion of the y position when the view get loaded :)

I made another branch called branch2
it initially sets the y position of the calendar below the view, and the buttons show and hide it fine
but when its shown then scrolled - it blips out.

The calendar is a UICollectionView subclass. It behaves exactly the same as a UICollectionView would. I looked at you code, but I couldnt understand it very well.
Are you just trying to show and hide the calendar?

Oh really? I thought I was being simple
I’m trying to accomplish
1 calculate the size and width of the calendar and it’s days of week and it’s container based on the uiscreen.main.bounds.height on the initial app load
2 calendar initially below / hidden on the app load
3 button that animates it up from the bottom
4 button that animates it down
5 selecting a date returns a date object
the main issue I’m running into is after animating it up from the bottom, and then scrolling - it calls layout sub views and goes all crazy
thanks for the support so far!

the main issue I’m running into is after animating it up from the bottom, and then scrolling - it calls layout sub views and goes all crazy and it docent scroll it just hides below the screen. Is that what you mean by the layout gets invalidated? because it’s position and size were changed and saved below the screen?

No. By invalidation I meant this -> From Apple docs
If your calendar is hiding below the screen, then maybe there is something in the code doing this?
The library doesn't have any animation or default moving of frames.
For instance, i did a inspect on your views.
The calendar's Y position is well beneath the height of the size of your view.

I think you need to double check by how much exactly you are moving the calendar's frame.
The image above was taken from your branch 2 code.

I solved animating it up and down. I put it in a sub view and then I animate the sub view :)
We’re you able to run and try scrolling on branch 2?

Yes. I posted the image of the results on branch 2. Above.
The calendar was hidden making it impossible to scroll.

Could you use the buttons to animate it up and down?

I just did.
The result is the same. The calendar is hidden.
I will close this issue for now, as it seems to be errors with the hiding of the calendar and not related to the calendar directly.
But yes you can inspect your calendar by clicking on at the bottom of the screen.->

I pushed an update on branch2 if you want to check out the scrolling


Implement ViolationUtils lib #31083

This implements the ViolationUtils lib as requested in https://github.com/Expensify/App/issues/31083
Some notes on approach:

He asked for those violationFields and formFields objects, I think as a sort of hack to get some type checking and type safety. I replaced that with string literal union types and Records  -- it's a more idiomatic way to do what he was trying to do, and I think will be better long-term. I asked for his feedback on the approach here. I don't think he's a JS / TS dev so hopefully he finds this helpful, but if he doesn't like it, it'll be pretty easy to switch it back.

I had to add some stuff to ONYXKEYS and to onyx/types -- please take a look and let me know if anything seems like it's in completely the wrong place.

Otherwise should be pretty straightforward!
This is a draft pending his approval of the approach, but would appreciate reviews so I can ship it as soon as he gives me the go-ahead.

Re-pointed this to violations-utils.


Close org.jline.terminal.Terminal (fixes #1168)

Codecov Report

Merging #1169 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1169      +/-   ##
============================================
+ Coverage     94.29%   94.31%   +0.01%
  Complexity      455      455
============================================
  Files             2        2
  Lines          6661     6648      -13
  Branches       1792     1790       -2
============================================
- Hits           6281     6270      -11
+ Misses          102      101       -1
+ Partials        278      277       -1

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/picocli/CommandLine.java
94.15% <0.00%> (+0.01%)
314.00% <0.00%> (ø%)

Continue to review full report at Codecov.

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

Merged. Thank you for the contribution!
I will update the release notes when I get to my PC.


[ZEPPELIN-1821] Add HTTP client to elasticsearch interpreter

What is this PR for?
Add HTTP client to elasticsearch interpreter.
What type of PR is it?
Feature
Todos

[X] - Source code
[X] - Tests
[X] - License
[X] - Docs

What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1821
How should this be tested?

Start an Elasticsearch node
Configure the elasticsearch interpreter to use http
Create queries in a note using elasticsearch

Screenshots (if appropriate)
Questions:

Does the licenses files need update? Yes
Is there breaking changes for older versions? No
Does this needs documentation? Yes

great Contribution for elasticsearch interpreter! This PR helps us to support ES 5.0 easily!

@1ambda Can you review this PR deeply?

@bbonnin Recently we have fixed some flaky test on master branch. Could you try rebase and see if CI becomes green?

It looks better now, all is green !

@bbonnin 👍
@jongyoul I will take a look more deeply :)

LGTM @1ambda do you have any comment?

When will this be merged?

Works well as described.

tested on elasticsearch 2.4.4 (transport, http) and 5.0.0 (http only)
code looks nice. well abstracted client classes is shipped with some tests.

there some commented code lines. LGTM except that.

CI failure looks unrelated, since it only removed commented-out code from last CI success.
Thanks @bbonnin for great contribution.
LGTM and merge to master if no further discussions!

Why is this not merged into apache:master?

@jaspinderdineout This was merged into master.


feat: add Databricks Serverless support

Adds support for using Serverless compute from a notebook. I tested by plan/applying using a Serverless environment.
Two key changes:

Serverless does not support global temp views but does support session temp views. Global is at the application level while session is at the spark session level. I don't believe we support any sharing of state across sessions so changing this to session scoped views should be fine.
Serverless threw a unique exception when trying to access SparkContext when it was not available so handle this exception too (we already had logic in place for supporting databricks connect).

Found out that when using Databricks SQL Connector + Databricks connect then you need the global temp views since they are trying to share temp objects across sessions (but still within the same application). Therefore now I just use the global temp views in all cases except when using databricks serverless.
Also added serverless support to databricks-connect.


Update Developer Guide

Modify the target user profile and value proposition under project
scope, as well as the glossary.

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #12   +/-   ##
=========================================
  Coverage     72.31%   72.31%
  Complexity      400      400
=========================================
  Files            70       70
  Lines          1228     1228
  Branches        124      124
=========================================
  Hits            888      888
  Misses          308      308
  Partials         32       32

Continue to review full report at Codecov.

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


Metrics not showing in one of the exporter nodes

Hello,
I am not sure if you faced this one before...
We have a big farm of Postgres servers that we are monitoring, all working fine.
There is one particular server which is not reporting the metrics when we try to curl them via http://ip-address:9187/metrics
It just hangs there.
if we try to go through a browser to http://ip-address:9187, instead of showing the Metrics link, it downloads a file...
I don't think is a problem with the exporter since it has been running in all the other servers with no issues.   Just wondering if you experience this problem before.
Version is 0.4.7 built with go1.10
DATA_SOURCE_NAME  variable is defined properly and exporter binary starts successfully.
Thanks for your help!

Update,
Turns out that they are using Postgres 10.4, not sure if it has been tested but we added the flag
--disable-default-metrics
and it started monitoring fine.  We just need to alert upon pg_up == 0, so this works out for us quite well.


Create a containerless "rest api" builder in the shared crate.

There are lots of places where the code copies the same reqwest request. It will be advantageous to spend some time to consolidate these somehow.

done


Change vim_images from a set to a list in order to maintain the order…

… they were in in Metadata.yaml

This addresses issue #273 and #274 as well as issue openbaton/openstack4j-plugin#45


Discover if other browsers besides iOS Chrome and Safari support Quick Look

As of #626 users will be able to opt-in or -out of Quick Look integration in iOS Chrome and Safari. However, there are other browsers on iOS and we don't know whether they support Quick Look integration or not. We should do some research to uncover the general level of support across these other browsers, and possibly implement support as needed.

So, on AR supported device I should try as many browsers as possible. Alrighty then.

Aug 2 2019, with screenshots:
Chrome <IP_ADDRESS>.54+
Edge <IP_ADDRESS>3+ (<IP_ADDRESS>9 isn working, but 2233+ is fine)
UC Browser Latest -
Opera 48.0.2331.132663+
Firefox Latest - (model-viewer 60+)
Test AR Astro.tar.gz
Tested on Honor 10. Should I test any other versions @cdata ?


Move 'navigation' to a component in order to fix the deprecation

Expected behavior:
No deprecation warning
Actual behavior:
There is a warning

DEPRECATION: Please refactor {{render "navigation"}} to a component and invoke via {{navigation}}. (\'hospitalrun/templates/application.hbs\' @ L2:C2)  [deprecation id: ember-template-compiler.deprecate-render] See http://emberjs.com/deprecations/v2.x#toc_code-render-code-helper for more details.

Steps to reproduce:
Run ember test for instance

I can have a go at this if its available

It's available. Please, feel free to take
11 февр. 2018 г. 5:11 ПП пользователь "James Byrne" <
<EMAIL_ADDRESS>написал:

I can have a go at this if its available
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HospitalRun/hospitalrun-frontend/issues/1366#issuecomment-364763084,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJaAxeWyypQ_SsRoRSGr_qlb95PF4E-fks5tTxExgaJpZM4SA-Dv
.

@James-Byrne any luck with the issue?

Hi, I'm available to take care of this, Is this in progress or I can take it ?

Hey sorry for the delay in replying, I got side tracked while working on it. @msalahz if you want to take it up go ahead.

Got it, Thanks @James-Byrne.
@tangollama: I'm taking over this issue.

Hi @tangollama , @stukalin , Sorry I will not be able to complete this task because I got a new job that made me very busy.
The work done on this task can be found here in case anyone want to start from what I got done instead of starting from scratch.
Look forward to get back to you soon.

Hey. I've been looking at this and made some progress, but I'm still learning the framework so I'm not too confident about it yet. I will look at your code though, and compare with what I have.

@msalahz @MatthewDorner I think I've finished the issue. See the attached PR and don't hesitate to review.

Oh, @msalahz , would you mind to sign the CLA? https://github.com/HospitalRun/hospitalrun-frontend/pull/1397#issuecomment-374610817

Done @stukalin , Thank you for completing my work.


add ethermint support

Is there any reason why this is not merged yet?

Thank you for this PR. It was a very helpful contribution to https://github.com/cosmos/cosmjs/issues/1351. For now it is undecided if Ethermint is in scope of this project.


IoT Core - SDK never sends OnResume() callback if mqtt keep alive interval expires

We tested the SDK for IoT Core (not Greengrass).

We created an MQTT connection
Removed the ethernet cable on device and waited till we got the the $aws/events/presence/disconnected/D17 on AWS IoT core console
Plugged the ethernet cable back
mqtt connection callback OnResume() never got called back. Connection state remains 1 (Connecting) forever.

Do you see this same behavior if you run this same test on the "mqtt_pub_sub" sample? If you run this sample and just do nothing, it will stay connected to the IoT server, and will print messages about any change to connection state (connected, interrupted, resumed, disconnected). It's built along with  aws-crt-cpp. You can run it like so:
./aws-crt-cpp-build/samples/mqtt_pub_sub/aws-crt-cpp-mqtt-pub-sub --endpoint {my-endpoint}.iot.{region}.amazonaws.com --ca_file {path-to-root-ca} --cert {path-to-cert} --key {path-to-key} --topic samples/test

Do you see this same behavior if you run this same test on the "mqtt_pub_sub" sample? If you run this sample and just do nothing, it will stay connected to the IoT server, and will print messages about any change to connection state (connected, interrupted, resumed, disconnected). It's built along with  aws-crt-cpp. You can run it like so:
./aws-crt-cpp-build/samples/mqtt_pub_sub/aws-crt-cpp-mqtt-pub-sub --endpoint {my-endpoint}.iot.{region}.amazonaws.com --ca_file {path-to-root-ca} --cert {path-to-cert} --key {path-to-key} --topic samples/test

Past 2 days I an trying to build AWS SDK , and has failed. As soon as I am able to build this, I will post response.

Have you updated aws-crt-cpp to v0.4.0?

Yes we took latest of everything including crt
Get Outlook for Androidhttps://aka.ms/ghei36

From: graebm<EMAIL_ADDRESS>Sent: Tuesday, June 4, 2019 12:50:46 PM
To: awslabs/aws-iot-device-sdk-cpp-v2
Cc: Amit Gupta; Author
Subject: Re: [awslabs/aws-iot-device-sdk-cpp-v2] IoT Core - SDK never sends OnResume() callback if mqtt keep alive interval expires (#29)
***** EXTERNAL EMAIL *****
Have you updated aws-crt-cpp to v0.4.0https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fawslabs%2Faws-crt-cpp%2Freleases%2Ftag%2Fv0.4.0&data=01|01|amit.gupta2%40hitachivantara.com|4db0b719f292412c777508d6e90ccabc|18791e1761594f52a8d4de814ca8284a|0&sdata=Y5slJSoP%2FOyNnEVkVFDR3FIWc%2FFjRDzCpHbU%2B8fPxdg%3D&reserved=0?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fawslabs%2Faws-iot-device-sdk-cpp-v2%2Fissues%2F29%3Femail_source%3Dnotifications%26email_token%3DAI5PWTJ7CZAYIW5DDIL2NB3PY2MONA5CNFSM4HPS3NA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW5GCBI%23issuecomment-498753797&data=01|01|amit.gupta2%40hitachivantara.com|4db0b719f292412c777508d6e90ccabc|18791e1761594f52a8d4de814ca8284a|0&sdata=X6Z2RC3JATiHtcpFIhw65oIHl2S8qUkV0TtFTLgYuVE%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5PWTNWMRSNTCXUHJIGBVTPY2MONANCNFSM4HPS3NAQ&data=01|01|amit.gupta2%40hitachivantara.com|4db0b719f292412c777508d6e90ccabc|18791e1761594f52a8d4de814ca8284a|0&sdata=Rw3cc29wq%2BMfZLI08PhTLsPiE5qh4jHu7KE9OXWG0c0%3D&reserved=0.

What OS / build system / compiler are you using?

We are on Debian linux, using latest gcc
Please note we have been building AWS iot sdk cpp v2 all this time, until this change in aws_crt done recently. Did you get a chance to look at issue #35 ?

I'm putting together continuous integration for this repository right now so we can be sure that it's working across many configurations. It's going to take a while to get this done...
Have you tried obliterating the aws-crt-cpp and its build directory and cloning it all again from scratch? From the errors you're sharing, it really looks like aws-crt-cpp isn't pulling all the latest versions of its dependencies.

I have a PR that adds continuous integration for multiple platforms: https://github.com/awslabs/aws-iot-device-sdk-cpp-v2/pull/36
I can confirm that what's currently in master ought to build fine on Linux.
I've also confirmed that aws-crt-cpp has issues rebuilding when an existing installation is updated in place.  I added a task to our backlog to address this rebuild issue.

We tried to the sample program against GG core, it fails.
Connecting...
Segmentation fault
./aws-crt-cpp-mqtt-pub-sub --endpoint api-amit.5gdcs.com --ca_file /home/agupta/AmazonRootCA1.pem --cert /home/agupta/6c261062ab-certificate.pem.crt --key /home/agupta/6c261062ab-private.pem.key --topic samples/test
Please add port 8883 support to sample so as we can run this for GG and send you the report if we observe same behavior in your sample program.
Next we are were able to run to against IoT core
./aws-crt-cpp-mqtt-pub-sub --endpoint a479q5rfhr1ub-ats.iot.us-east-1.amazonaws.com --ca_file /home/agupta/AmazonRootCA1.pem --cert /home/agupta/6c261062ab-certificate.pem.crt --key /home/agupta/6c261062ab-private.pem.key --topic samples/test
I see aws lifecycle events.
But when I try to disconnect my wire, i loose my putty session, and the program is no longer alive to tell me if it resumes ...

Hi @graebm and @JonathanHenson ,
Thank you for supporting us.
As pointed by @graebm I tested the mqtt_pub_sub sample and able to reproduce the same behavior
Note: these sample programs are not able to test with greengrass (as mentioned by @amitguptaRean ) that is another issue
Test explanation:
Test setup:

as @amitguptaRean mentioned he is facing some issues to test with it by removing the network cable, to prevent those i did this.
Connected my Pi device to a monitor with keyboard and mouse, and Pi connected to WiFi, so When I disconnected/turn-off my wifi for testing purpose still I can see how the program is behaving.

Procedure/Steps followed:

started the pub_sub sample with all needed arguments and the program is able to connect to IoT core(it published a connected message on Life-cycle topic).
We entered some messages, the program able to publish those messages to given IoT topic. We published some messages on that topic from IoT test console, the program able to receive those messages.
Turned off the Wifi connection on my Pi device and waited to see the OnInterruoted message(but it never happened)
After some time(around after 270 seconds - I assuming this is keep-alive expiration) a disconnected message published to Life-cycle topic, but no OnInterrupted/or any other message displayed in program(program still running)
After this I turned on Wifi on Pi device, but no OnResume happened / no connection re-established
After this program is still running but not receiving any messages published from IoT test console, when we give message to publish it is saying successfully published but no message is coming to the IoT topic.

Strange Behavior:

when there is no connection also if we give some message to program it is saying published successfully but no message coming to IoT test console topic.

Scenario-2:

instead of waiting for some long time(5 minutes / more than that) I turned on WiFi after 20-30 seconds
then also I couldn't see any OnInterrupted , OnResume callbacks happening
But this the disconnect message not published to IoT life-cycle topic and after WiFi turned on the publish working.

We are really blocked to deliver our customer project because these major/critical SDK bugs, please look into this. We are ready to demonstrate these bugs in zoom call/some other channel if needed.
Thank you,
Regards,
Ravichandhra Palla.

The current SDK Mqtt connection behavior really confusing us,
as you mentioned it will only call OnDisconnected when someone make a call to Disconnect() method, as per this we are expecting/assuming the below behavior in SDK mqtt connection,

It will create a mqtt connection and do the internall pings to keep the connection alive
When any-type(network loss/disturbance) of network/other issues happened/caused it will call OnInterrupt callback
When the network and connection back then it will call OnResume callback
When OnInterrupt happened either it will queue up the messages or it will fail to complete that operation
It will never disonnects the connection(may be here I am wrong why because when there is a no network for long time how can it keep the connection) or it will reestablish the connection OnResume callback
Either it should re-establish the connection if there is no , or it should notify us so that we can re-create the connection (it is not doing any)

There are other queries also regarding how the SDK supports the persistent session feature providing by IoT service from AWS but I will not ask them as of now, after clearing all these critical issues I will post them.
Looking for resolutions.
Thank you.
Regards,
Ravichandhra Palla.

Hi @graebm / @JonathanHenson ,
Any update on this.
Thank you.


Tooltip placement needs to be configurable

Currently the placement of the error tooltip is only determined by the type of input / select control it is attached to. In some cases this isn't sufficient and placement needs to be manually specified depending on other styling or content relevant requirements.
Example for a possible configuration:  <input ax-input ax-input-tooltip-placement="top">

Implemented on master (v2.0.0).
Upgrade Information
The new directive attribute ax-input-tooltip-placement was added:

If set, its string value (left/right/bottom/top) is forwarded to the bootstrap tooltip component to determine tooltip placement on screen. Otherwise, the position is determined automatically depending on the type of form element and its position on screen (left/right for select boxes, top/bottom for other controls).


build problem

when I build the conductor project according to the Getting-Start shows on windows 7, it failed.
the 5 errors list as follows:
1.Unable to determine the host name on this Windows instance      ---the first error
......
2.Publication nebula not found in project :.                                       ---the second error
[buildinfo] Not using buildInfo properties file for this build.
Publication named 'nebula' does not exist for project ':' in task ':artifactoryPublish'.
......                                                                                ---the second error
3.826  [main] DEBUG org.elasticsearch.script  - [Hazmat] failed to load mustache
java.lang.ClassNotFoundException: com.github.mustachejava.Mustache
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
......                                                                                ---the third error
4.2497 [main] WARN  org.elasticsearch.bootstrap  - JNA not found. native methods will be dis                      abled.
java.lang.ClassNotFoundException: com.sun.jna.Native
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
......                                                                                ---the fourth error
5.12677 [main] INFO  org.elasticsearch.node  - [Hazmat] started
12677 [main] INFO  com.netflix.conductor.demo.EmbeddedElasticSearch  - ElasticSearch clust                      er elasticsearch_test started in local mode on port 9200
Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2                      : /E:/conduct_v1/conductor/test-harness/build/resources/test/es_template.json
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at com.netflix.conductor.demo.EmbeddedElasticSearch.start(EmbeddedElasticSearch.ja                      va:62)
at com.netflix.conductor.demo.EmbeddedElasticSearch.start(EmbeddedElasticSearch.ja                      va:37)
at com.netflix.conductor.demo.Main.main(Main.java:42)
12682 [Thread-1] INFO  org.elasticsearch.node  - [Hazmat] stopping ...
12772 [elasticsearch[Hazmat][clusterService#updateTask][T#1]] INFO  org.elasticsearch.gate                      way  - [Hazmat] recovered [0] indices into cluster_state
12772 [elasticsearch[Hazmat][clusterService#updateTask][T#1]] DEBUG org.elasticsearch.clus                      ter.service  - [Hazmat] processing [local-gateway-elected-state]: took 137ms done applying                       updated cluster_state (version: 2, uuid: OXyaVx67TcqYAZMatWP_Lg)
12787 [Thread-1] INFO  org.elasticsearch.node  - [Hazmat] stopped
12788 [Thread-1] INFO  org.elasticsearch.node  - [Hazmat] closing ...
12793 [Thread-1] INFO  org.elasticsearch.node  - [Hazmat] closed
:conductor-test-harness:server FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':conductor-test-harness:server'.

Process 'command 'C:\Program Files\Java\jdk1.8.0_102\bin\java.exe'' finished with non-ze                      ro exit value 1

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to                       get more log output.

BUILD FAILED                                                                                ---the fatal error which made it quit
As the error shows,My other questions are:
1.Can "conductor" run on window 7?
2.If i use as the "Getting Started guide" shows, Can I install conductor without Dynomite installed and without Tomcat running but only use its in-memory db when i test the simple kitchen sink workflow?
Thank you very much for answering! i am really confused about these but i am really interested in "conductor".

We have tested builds on Linux and MacOS.  Not tested on Windows 7, looking at the errors, it seems it is related to the path issue for windows (/E:/conduct_v1/conductor/test-harness/build/resources/test/es_template.json).
test-harness builds runs conductor without Dynomite and in-memory db.  You can look at the dependencies for test-harness and Main.java for starting up.


Loading routes in routable engine don't work

Loading subroutes are not working for me in a routeable engine.
My setup:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>My engine is setup as an in-repo routeable engine.
Basically, it seems that all loading subroutes simply aren't ever entered. Instead, it always falls back to the host apps loading routes.
Steps to reproduce:
ember g route test-subroutes -ir=my-engine
ember g route test-subroutes-loading -ir=my-engine
ember g route loading -ir=my-engine

// lib/my-engine/addon/test-subroutes/route.js

beforeModel() {
  return new Ember.RSVP.Promise((resolve) => {
    Ember.run.later(this, resolve, 5000);
  });
}

{{! lib/my-engine/addon/loading/template.hbs}}
{{! & lib/my-engine/addon/test-subroutes-loading/template.hbs }}

{{log 'engine loading'}}

Basically, the log from the loading templates is never reached. Instead, when looking at the Ember Inspector, I see that while loading, the current route is application.loading.
My host-apps router:
Router.map(function() {
  this.mount('my-engine', { as: 'my-engine' });
});

My engines router:
export default buildRoutes(function() {
  this.route('test-subroutes');
});

( I left out other routes from my app, but I don't think they should have any impact on this?)

Confirmed, issue. Reproduction

I'm currently having an issue navigating to a subroute in my engine from the consuming app.  Is that what this issue you reported is covering?  For example, in the consuming app's router.js file, i have:
this.route('partners', { path: '/myengine' }, function () {
this.mount('my-engine', { as: '/', path: '/' });
});
And my engine routes are typical as well:
this.route('index');
this.route('test');
From the consuming app, I can create a link and go to the index of the engine, but if I try to create a link to any subroutes, like ('/test'), it just says that it can't find the route.
Just confirming that is the same thing you are reporting.  Thanks!

@rpcollins What you're reporting is not this issue and sounds to me like you've not configured things correctly. Please stop by #-ember-engines in the Ember Community Slack and see if we can help you sort it out. 😄

So I dug into this as part of addressing #244 and the issue boils down to this upstream function: https://github.com/emberjs/ember.js/blob/d37d38b8a21f859ecb8b62f74a9dea92b0289866/packages/ember-routing/lib/system/router.js#L1186-L1190
The issue is that we're always checking for the route's registration on the Router's owner, which is the root application and not the Engine. So we need to expand that function to take four arguments:

the expected owner
the localRouteName (for owner lookup)
the fullRouteName for checking the route is defined on router
the router itself

Will be working on that today most likely.

This should be fixed once https://github.com/dgeb/ember-engines/pull/246 and https://github.com/emberjs/ember.js/pull/14545 land. This was honestly, stupidly hard to fix lol.

This is great! I'm running ember beta & ember-engines 0.4.2 and it's working perfectly. Thanks for that, that was the only remaining major pain point with engines for us.

Great! Glad to hear that, closing this issue then.


Add missing close method.

Fixes  #9
This method is actually expected to exist by GremlinClient:
https://github.com/jbmusso/gremlin-javascript/blob/7cb7544dfbdf89f2a2863471f226825a2357b994/gremlin-client/src/GremlinClient.js#L84

Thanks Jean-Baptiste !


sonnet abstract module in tensorflow2

Hello friends
I want to use i3d model created by sonnet in tensorflow 2
these are my environment:
ubuntu 20
tensorflow 2.12
python 3.8
this is my i3d code:
`
from future import absolute_import
from future import division
from future import print_function
import sonnet as snt
import tensorflow as tf
class Unit3D(snt.AbstractModule):
`
but when I want to import it in tf2, I face the following error:
AttributeError: module 'sonnet' has no attribute 'AbstractModule'
which is related to this line:
class Unit3D(snt.AbstractModule):
>>> class MultiplyModule(snt.Module):
...   def call(self, x):
...     if not hasattr(self, 'w'):
...       self.w = tf.Variable(2., name='w')
...     return x * self.w
  >>> mod = MultiplyModule()
  >>> mod(1.)
  <tf.Tensor: ... numpy=2.0>

how to fix it ?

Hi @creativesh , snt.AbstractModule is part of Sonnet 1, it looks like the code you are wanting to run will only work with TF1 not TF2.

Hi @tomhennigan
Could I rewrite it to use tf2 ?

Thanks
How should I convert it to tf2 ?
On Sat, Sep 30, 2023 at 3:37 PM Tom Hennigan @.***>
wrote:

Hi @creativesh https://github.com/creativesh , snt.AbstractModule is
part of Sonnet 1, it looks like the code you are wanting to run will only
work with TF1 not TF2.
—
Reply to this email directly, view it on GitHub
https://github.com/google-deepmind/sonnet/issues/271#issuecomment-1741751704,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFOLMRPAVS434CME24IOEZDX5ADQNANCNFSM6AAAAAA5NNGEJ4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi, it should be possible to implement this in TF2/Sonnet 2, but this will require learning and understanding  Sonnet 2.
If you just want to make use of a pretrained I3D model then perhaps using Keras + TF2 would be simpler, they have an example that includes using I3D and some pretrained weights to make predictions for a video: https://www.tensorflow.org/hub/tutorials/action_recognition_with_tf_hub

@tomhennigan
Thanks for your response, the problem is that I had to use my checkpoint and I had to save the finetuned mode in .ckpt format. I already wrote the code in tensorflow 1, now I should rewrite it in tf2. Considering these, do you have any suggestion ?

I am not very familiar with Keras, I would suggest asking for support on their issue tracker, hopefully someone will have a recipe for you.
There is a generic guide on migrating checkpoints here which you could try to follow https://www.tensorflow.org/guide/migrate/migrating_checkpoints

@tomhennigan
Do you have any sample code of developing networks with sonnet 2 and tensorflow 2 ?

There are a number of examples here: https://github.com/google-deepmind/sonnet/tree/v2/examples

@tomhennigan
In this post [https://github.com/google-deepmind/sonnet/issues/128]
you mentioned aome changes to convert a class in sonnet 1 to sonnet2
would you please tell me exactly what to do about i3d.py in this link:
https://github.com/google-deepmind/kinetics-i3d
1- converting snt.abstractmodule to snt.module
2- ?

Hi, the comment you linked to has information on how to port code from sonnet 1 -> 2 and what has changed between the libraries.
Good luck with porting the code for your project.


Enable tests on macOS

This PR enables running the gwf-test-xxx scripts on macOS.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


AttributeError: 'NoneType' object has no attribute 'close'

Unfortunately, the fix for #732 doesn't correctly handle master node failover for multi-threaded code.
Traceback (most recent call last):
  # snip
  File "/usr/local/lib/python3.5/site-packages/redis/client.py", line 1870, in blpop
    return self.execute_command('BLPOP', *keys)
  File "/usr/local/lib/python3.5/site-packages/redis/client.py", line 884, in execute_command
    conn.send_command(*args)
  File "/usr/local/lib/python3.5/site-packages/redis/connection.py", line 721, in send_command
    check_health=kwargs.get('check_health', True))
  File "/usr/local/lib/python3.5/site-packages/redis/connection.py", line 692, in send_packed_command
    self.connect()
  File "/usr/local/lib/python3.5/site-packages/redis/sentinel.py", line 44, in connect
    self.connect_to(self.connection_pool.get_master_address())
  File "/usr/local/lib/python3.5/site-packages/redis/sentinel.py", line 107, in get_master_address
    self.disconnect()
  File "/usr/local/lib/python3.5/site-packages/redis/connection.py", line 1241, in disconnect
    connection.disconnect()
  File "/usr/local/lib/python3.5/site-packages/redis/connection.py", line 669, in disconnect
    self._sock.close()
AttributeError: 'NoneType' object has no attribute 'close'

Scenario is this:

multi-threaded process running, using a SentinelConnectionPool to get their separate connections to the Redis master
Redis master goes down, Sentinel does its job and elects a new master
Subsequent redis-py call ends up calling SentinelConnectionPool.get_master_address()
get_master_address() notices that there is a new master and calls self.disconnect() to flush the pool
ConnectionPool.disconnect() calls disconnect() on each of the connections in the pool.
Connection.disconnect() sees a matching PID and calls shutdown() on the socket, then sets it back to None
"Fun" ensues...

There is thread-locking to protect the pool's management of its members, but ConnectionPool.disconnect() is ripping sockets out from other threads in the middle of other operations.
The actual stack trace and error you'll get will vary depending on timing.
To fix it in my product code, I'm re-integrating the deferred disconnect using a generation id from PR #784.
Version: redis-py v3.4.1, redis/sentinel v3.2.13
Platform: Python 3.5.2 on Linux

I've been digging into this for a bit this afternoon. I didn't write redis-py's sentinel implementation so this is a good exercise for me to become more familiar with what's happening.
First, a question: Are you calling Sentinel.master_for() each time you need a connection to the master? Or do you call it once when your app starts and then use that object through the life of the application?
Here are some observations after reading the code.

If the Sentinels elect a new master, it seems likely that the clients connected to the old master are going to have various connection problems. Even if they are still connected to the old master (e.g., a network partition occurred where clients can still see the old master but the sentinels cannot), allowing them to write to the old master would likely result in data loss. Given that, it seems like calling SentinelConnectionPool.disconnect() might be the correct thing to do, though perhaps we could do this more gracefully.

However, it seems like the SentinelConnectionPool doesn't work well when a new master is elected. SentinelConnectionPool.master_address is only assigned in SentinelConnectionPool.reset() and SentinelConnectionPool.get_master_address(). reset() only gets called from SentinelConnectionPool.__init__(), and get_master_address() only assigns a value to master_address if the current value is None. So after a new master is elected, every subsequent call to SentinelConnectionPool.get_master_address() is going to fail in the master_address != self.master_address check and subsequently disconnect all the connections in the pool. This seems terrible, but easily fixable by simply assigning the new master_address in this step.

If we fix #2, there will still be a hiccup when the new master is elected, but then all the clients should get connected to the new master and work correctly.

Hi Andy,

First, a question: Are you calling Sentinel.master_for() each time you need a connection to the master? Or do you call it once when your app starts and then use that object through the life of the application?

I'm just calling redis.hget() (for example), where the Redis instance was instantiated using a SentinelConnectionPool. The SentinelManagedConnection ends up doing a get_master_address() in its connect() method. Just stock redis-py behavior with sentinel.

If the Sentinels elect a new master, it seems likely that the clients connected to the old master are going to have various connection problems.

Yep. Clients have to deal with various errors here (mostly timeout and connection errors). However, since execute_command() ends up calling get_master_address() each time instead of caching it, the connection automatically disconnects from the old master and connects to the new one. Occasionally you have to deal with a MasterNotFoundError, but in our product code, we have a wrapper that automatically retries the operation in that case.

Even if they are still connected to the old master (e.g., a network partition occurred where clients can still see the old master but the sentinels cannot), allowing them to write to the old master would likely result in data loss. Given that, it seems like calling SentinelConnectionPool.disconnect() might be the correct thing to do, though perhaps we could do this more gracefully.

I haven't found a good way to safely disconnect in-use connections in the pool other than using a generation id and reaping them when they are released back to the pool. Clients expect to deal with normal network and service outage errors, but they shouldn't have to be dealing with TypeError and AttributeError exceptions on a connection the they own.
If it's helpful, I can post my patch that I'm using to fix the disconnect() problem. It's not materially different than the PR I submitted previously other than leaving out the fixes for forked processes, which your fixes seem to handle fine.

However, it seems like the SentinelConnectionPool doesn't work well when a new master is elected...

Ah, I forgot PR #847 hasn't been merged into master yet. I have that merged into my tree. It fixes that problem :)

Merged #847 as that clearly needed to be fixed. If you want to post what you have for the generation ID stuff I'll take a look.

Great. Patch is attached, very simple.
redis_py_1345.patch.txt

@rolette I pushed the https://github.com/andymccurdy/redis-py/tree/sentinel-1345 branch that I believe fixes this. It uses a slightly different approach as your solution, but I believe it results in the same basic behavior of throwing a stale connection out when it's returned to the pool. It also fixes a bug where the base ConnectionPool class wasn't decrementing its _created_connections counter when it needs to throw connections away.

@andymccurdy Reviewed your changes and added my $0.02.
Thanks!

@rolette I added an optional inuse_connections=True arg to ConnectionPool.disconnect. By default it will work identical to before. Passing inuse_connections=False will only disconnect idle connections that aren't leased out by the pool.
When the SentinelConnectionPool detects the master address has changed, it will call self.disconnect(inuse_connections=False) to disconnect all the idle connections.
Have I missed anything?

@andymccurdy I'd make inuse_connections default to False since the old behavior would result in the same errors that you are fixing here. If they really want to force the disconnect and deal with the errors, then make that the exception case.
Have I missed anything?
I think the only feedback you haven't addressed is my comment about restoring the self.disconnect() in get_master_address() when a new master is detected. From my experience, it would be better to flush "available" connections in the pool right then rather than having to hit them individually as they are requested down the road.

@rolette I made inuse_connection=True the default to preserve backwards compatibility. I'm happy to change that behavior in the next major version.
I am calling self.disconnect(inuse_connections=False) in get_master_address() here: https://github.com/andymccurdy/redis-py/commit/811cdd0282c0c415a379d882678a5c3f7ab74def#diff-ea3ce4482d1ecb8a23d1cce2ec6e9b48R113

@andymccurdy Ok, that looks good. Appreciate the fixes!

Great, I'll merge this and release 3.5.3

Just released 3.5.3 with this fix.


Unable to see this card in "Add card" menu

Just installed version 2.2.0 through HACS on HA 2023.3.1 and for some reason the card does not appear in the "Add Card" menu in Lovelace. Tried even redownload in HACS and HA reboot but no, only other custom cards shown in the menu.
I can see the files are at /config/www/community/ha-energy-overview-card and it is listed in Dashboards > Resources (http://homeassistant/config/lovelace/resources) but even when adding some config code manually to a card it shows just an empty card. So somehow Lovelace is not loading this resource? No errors in logs (that I could find/associate to this)

@hiatsu0 unfortunately currently, the card does not support being added through the "Add Card" menu.
Please add it manually via YAML config, the button is located on the very bottom in the manu.
You can have a look at an example here: https://github.com/Sese-Schneider/ha-energy-overview-card#example-configuration
However, I am currently working on a GUI editor, so that it can be used directly. I will ping you once its ready!

Thanks for a quick reply! I tried the manual way as well (copying the example config and changing my sensors), that is what I tried to say with

when adding some config code manually to a card it shows just an empty card

But maybe I did something wrong, will try again!


Low accuracy on small English dataset

I compared accuracies on small dataset, got 2 classes, which are negative and positive, each class has 5k of sentences. You can check it here english-polarity. All notebooks finetune on single Tesla V100, 100 max length of sentences. 80% to train, 20% to test. All notebooks do early stopping with 3 patients, and I will pick highest test accuracy as the benchmark.

BERT English Base, test accuracy 81%.
GPT2 345M, test accuracy 79%.
XLnet Large, test accuracy 51%.

I am not sure what is wrong here, I doubled check all the code to transform into notebooks based, maybe you can give me some guidance here, thanks. Great model and repository!

Could you divulge the hyperparameters?

hyperparameters are same given by all .json from the original repositories. I just change batch size and max length.
BERT and GPT2 doesnt have a problem when I reduce the batch and max length, still able to finetune properly.

After I changed dropout (both for layers and attention) to 0.0, increase max length to 128, now it able to learn, testing accuracy 84%. Beat both BERT and GPT2. https://github.com/huseinzol05/NLP-Models-Tensorflow/blob/master/text-classification/72-xlnet-large.ipynb


Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited) on client.loop();

Hi folks, dear knolleary,
maybe someone can point me into the right direction. I got a dump and I think it comes from this library.
hardware: esp32
esp32 core: idf-release/v4.0 (d2761a9e)
esptool 2.6
pubsubclient 2.7.0 (as 2.8 was more instable)
The Dump:
Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x00400832  PS      : 0x00060031  A0      : 0x8008b11f  A1      : 0x3ffbe760
A2      : 0x00000000  A3      : 0x00000001  A4      : 0x00000001  A5      : 0x00005d40
A6      : 0x4affffe7  A7      : 0x00000000  A8      : 0x80082df0  A9      : 0x3ffc50c4
A10     : 0x00000003  A11     : 0x00060023  A12     : 0x00060021  A13     : 0x0000003a
A14     : 0x00000252  A15     : 0x00000000  SAR     : 0x00000018  EXCCAUSE: 0x00000014
EXCVADDR: 0x00400830  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff
Core 1 was running in ISR context:
EPC1    : 0x00400832  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x400877cb

Backtrace: 0x00400832:0x3ffbe760 0x4008b11c:0x3ffbe780 0x40089a07:0x3ffbe7a0 0x4008c151:0x3ffbe7c0 0x40085516:0x3ffbe7d0 0x4000c3eb:0x3ffb1ed0 0x400e9b93:0x3ffb1ef0 0x400e520a:0x3ffb1f40 0x400e5277:0x3ffb1f80 0x40103f6d:0x3ffb1fb0 0x40089919:0x3ffb1fd0

According to https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/fatal-errors.html#guru-meditation-errors "InstrFetchProhibited" may have to do with a call to a function pointer that is pointing to an adress in the RAM or ROM where no valid code is (anymore).
The exception decoder shows:
PC: 0x00400832
EXCVADDR: 0x00400830
Decoding stack results
0x4008b11c: xTaskIncrementTick at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c line 2473
0x40089a07: xPortSysTickHandler at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 289
0x400e9b93: PubSubClient::loop() at C:\Users\xxx\Documents\Arduino\libraries\PubSubClient\src\PubSubClient.cpp line 330
0x400e520a: getMQTT() at C:\Users\xxx\Documents\Arduino\openAger/openAger.ino line 2116
0x400e5277: loop() at C:\Users\xxx\Documents\Arduino\openAger/openAger.ino line 591
0x40103f6d: loopTask(void*) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19
0x40089919: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

The relevant call of line 2116 is where client.loop() is called.
void getMQTT() {
  client.setServer(mqtt_server.value.c_str(), mqtt_port.value.toInt());
  /* this receivedCallback function will be invoked when client received subscribed topics */
  client.setCallback(receivedCallback);
  /* this function will listen for incoming subscribed topic-process-invoke receivedCallback */
  if (!client.connected()) {
    reconnect();
  }
  client.loop(); <-------- this is 2116
}

It would be nice if anyone got an idea how to further hunt that problem?
Any hints highly appreciated,
cheers!

Maybe WiFiClient or WiFiClientSecure is null or nullptr when the client.loop() is called.
It happened to me on HTTPClient library when setting reuse to false.

Good point... Ill rewrite that part and test it!

Update: Double checked that client.loop() cannot be called when WifiClient is down. Huge increase in stability!
Then I got funny and wanted to upgrade PubSubClient from 2.7 to 2.8. Now I get again random restarts of the ESP32.  This time its a StoreProhibited Problem pointing to EXCVADDR: 0x003ffb80.
Think I have to downgrade again...
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x4008a926  PS      : 0x00060233  A0      : 0x8008c7ba  A1      : 0x3ffb1cd0
A2      : 0x003ffb80  A3      : 0x0000abab  A4      : 0xb33fffff  A5      : 0x00000001
A6      : 0x00060020  A7      : 0x0000cdcd  A8      : 0x0000abab  A9      : 0x3ffb1dc0
A10     : 0x00000000  A11     : 0x00000020  A12     : 0x40085cbc  A13     : 0xed8d0f6e
A14     : 0x00000000  A15     : 0x00000000  SAR     : 0x0000000a  EXCCAUSE: 0x0000001d
EXCVADDR: 0x003ffb80  LBEG    : 0x400012c5  LEND    : 0x400012d5  LCOUNT  : 0xfffffffb

Backtrace: 0x4008a926:0x3ffb1cd0 0x4008c7b7:0x3ffb1d00 0x4008ce2b:0x3ffb1d20 0x400857b0:0x3ffb1d40 0x400858bd:0x3ffb1d60 0x40085982:0x3ffb1d80 0x40085cc5:0x3ffb1da0 0x4000bedd:0x3ffb1dc0 0x401033bb:0x3ffb1de0 0x401034f0:0x3ffb1e10 0x4010395b:0x3ffb1e30 0x40103b02:0x3ffb1e50 0x400dc8fd:0x3ffb1e70 0x40187a33:0x3ffb1ed0 0x400ea16e:0x3ffb1ef0 0x400e567a:0x3ffb1f30 0x400e576b:0x3ffb1f80 0x40104525:0x3ffb1fb0 0x40089919:0x3ffb1fd0

PC: 0x4008a926: vTaskEnterCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/include/freertos/portmacro.h line 285
EXCVADDR: 0x003ffb80

Decoding stack results
0x4008a926: vTaskEnterCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/include/freertos/portmacro.h line 285
0x4008c7b7: multi_heap_internal_lock at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap.c line 375
0x4008ce2b: multi_heap_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 190
0x400857b0: heap_caps_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 111
0x400858bd: heap_caps_realloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 274
0x40085982: heap_caps_realloc_default at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 163
0x40085cc5: _realloc_r at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/syscalls.c line 47
0x401033bb: String::changeBuffer(unsigned int) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\WString.cpp line 183
0x401034f0: String::reserve(unsigned int) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\WString.cpp line 149
0x4010395b: String::concat(char const*, unsigned int) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\WString.cpp line 328
0x40103b02: operator+(StringSumHelper const&, String const&) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\WString.cpp line 415
0x400dc8fd: receivedCallback(char*, unsigned char*, unsigned int) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/WString.h line 301
0x40187a33: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\xxx\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0/functional line 1754
0x400ea16e: PubSubClient::loop() at C:\Users\xxx\Documents\Arduino\libraries\PubSubClient\src\PubSubClient.cpp line 412
0x400e567a: getMQTT() at C:\Users\xxx\Documents\Arduino\openAger/openAger.ino line 2253
0x400e576b: loop() at C:\Users\xxx\Documents\Arduino\openAger/openAger.ino line 589
0x40104525: loopTask(void*) at C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 14
0x40089919: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

Interesting point, I also experience sudden restarts of the ESP32. I'm not yet sure if it is really caused by this library though.
@valki2

Update: Double checked that client.loop() cannot be called when WifiClient is down. Huge increase in stability!

Would you mind sharing this code? Is it just checking there is a connection still or something else?

I have been debugging and tracing this more. I have added some Print statements in the  PubSubClient::loop() function like below:
...
				if (type == MQTTPUBLISH) {
					Serial.print("MQTTP ");
					if (callback) {
						uint16_t tl = (buffer[llen+1]<<8)+buffer[llen+2]; /* topic length in bytes */
						Serial.printf("TL %d\n", tl);

This results in this output on the serial monitor:
(wo 19-08 11:59:58.082) MQTTP TL 12335
(wo 19-08 11:59:58.109) Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.<CR>

So the topic length tl becomes really high. This is unexpected, the size should be 20 bytes only.
My conclusion so far is that either wrong packets are read or the buffer is corrupt. I've added more debug statements and waiting for the issue to re-appear.
I'm using v2.7 of the library, and it looked to me there are no changes on this part in 2.8 so didn't test that (yet).
Does anybody have a good idea what to do solve this point?

I also am experiencing stability issues on the ESP32 platform with version 2.8 of this library. I have 3 identical custom boards with the ESP32-WROOM-32D module and a HiLetgo ESP-WROOM-32 all running the same firmware. All boards will crash and reboot randomly after a a few hours. Most of the time it is an exception was unhandled error. Occasionally one will make it past a day. If I comment out the MQTT connect and loop functions the boards are stable for over 7 days uptime. The client.loop code is inside a check for WiFi.isConnected.

@riiki78 : Sorry I missed your answer. Are you still interested in the code?

@riiki78 : Sorry I missed your answer. Are you still interested in the code?

@valki2 yes, please. It might me or someone else :-)

@valki2 yes, please. It might me or someone else :-)

Then please sign up at https://git.valki.com  and I will unlock your user quickly. Its not that public as the code may cause eye cancer... :)

Then please sign up at https://git.valki.com  and I will unlock your user quickly. Its not that public as the code may cause eye cancer... :)

@valki2 is the code available on your repo? Is the fix as @rikki78 described above?

@valki. Hello, I'm currently having the same problem as you, can you tell me how to fix it?

Hello I have the same problem what is the solution now?
Error code: 23:42:53.649 -> Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception!�
23:43:00.533 -> �ܭ��!��)�����!�a�Cǥ�Starting
23:43:00.666 -> Initializing OS
23:43:00.697 -> Resetting LMIC
23:43:00.697 -> Setting up session
23:43:00.730 -> Setup complete
23:43:00.730 -> Entering loop
23:43:00.762 -> Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Excepti

@valki. Hello, I'm currently having the same problem as you, can you tell me how to fix it?

I never found a solution and ended up switching to the 256dpi/MQTT library.


Display production mode warning

Closes #101

+1 on this PR, any plans for merging it in @igorbozato?

@vincentbello I don't have write access to this repository, but this PR is ready to be merged.

Thanks! @AlexWheeler if you get a chance :)

I think this is what I'd like to see to get this merged:

configuration option in Flipper::UI::Configuration to set the environment. config.environment = ...
if the configuration option for environment is set, show it first in the bar with the breadcrumbs instead of as a separate thing at the top (e.g. Production! Home > Features) or have a nice banner at the top with color customization and a few colors or whatever for people to pick (configure in the UI configuration)

This would make it flexible so people who want production to look like it does now can do nothing. For those that want production to look different, they can set the environment text and change the color. Additionally, for those that want production to look the same but other environments to look different, they can only configure staging and/or development to look different.
Anyone have any thoughts either way on this? I can try to tackle it at some point, but no promises when as I'm working on some other parts right now. Definitely open to @igorbozato, @AlexWheeler or anyone else moving it forward or chiming in that my ideas are terrible. 😄

Closing this since #337 is merged.


fix subnet searches

subnet searches stopped working at some point.
this is a workaround for now.

What's the bug exactly?  On master, a subnet expression appears to parse correctly but the search doesn't match anything.  The fix for the latter would be in compileSearch, not in the grammar.

I think @aswan is right here.  I'm a little confused but will close this for now.


create JSON schema

See #108.
https://json-schema.org/

I think we can close this?

Do we need a schema for simplified graphs too?

I'm migrating back towards a single schema at the moment - see #140


Adding update_nsfs_stats to stats_api

Explain the changes

Adding update_nsfs_stats to stats_api

Signed-off-by: liranmauda<EMAIL_ADDRESS>

@dannyzaken @nimrod-becker
Once we are ok with this, I will clean it and then merge it.
Converting to Draft In order not to merge it before 😄


Implemented active subscription capping

Needs a few more tests but ready for an initial look

creates subscriptions in hold status when cap is reached
nightly/early am job to manage subscriptions
implemented ops hook to kick off Mcts sync on demand

Couple of issues: multinode support & (less important) what to do if no max subscription count value in kilkari.properties settings
And misc nitpicks.
Wanna have @llavoie or @larubbio review the multi-node check and then merge?

Also, @VishnuVimal this would be a good PR to watch for you

test this please


Include all overlapping genes in the report

Our SOP states that the report includes this!

@ihodes Do you mean genes other than the one whose annotated transcript we're using?


Reconnection after wifi lost possible?

I tried some options (maybe I missed some others), to reconnect to the mqtt broker after a wifi outage.
After wifi reconnects successfully (WiFi.reconnect();) , I try to reconnect mqtt but neither
while (!mqtt.connect("arduino", "public", "public")) {
              Serial.print(".");
              delay(1000);
          }

nor
mqtt.disconnect();
delay(1000);
mqtt.begin(client);
while (!mqtt.connect("arduino", "public", "public")) {
              Serial.print(".");
              delay(1000);
          }

do the trick.
It does not successfully connect again.
At this point I can ping the device again, apparently wifi-reconnect does work.
But the error I get, when I print with Serial.print(mqtt.getLastError()); is "-6" ( LWMQTT_NETWORK_FAILED_WRITE = -6,).
I don't know what the issue seems to be for it to not reconnect to the mqtt broker again. I can now reboot the device, but I would love to use this library with reconnect without "cheating".

Fixed by https://github.com/hideakitai/MQTTPubSubClient/pull/19


Support clicking on filenames in the status view

The typical double-click we know from "Find in files" can be used to navigate
to files from the status dashboard via mouse.
🎆 🌃 🕺

Tests https://regex101.com/r/PrPl7q/2/

Test coverage increases by 2%. So we have 34%.

Awesome idea, and kudos for adding more tests! I have only one concern: could we include mockito as a package-control dependency instead of copy-pasted ?
A cool enhancement of this would be to implement a stash peek command (basically output git stash show -p into a panel), and be able to trigger it on click!

@asfaltboy mockito and parameterized are only needed for tests. So instead of installing it via PC as a dependency we should actually mark them
# .gitattributes
/tests/             export-ignore

so that normal users do not have to download these libs.
For the click here we just enable what Sublime can do. We cannot run arbitrary code on double-click, Sublime only supports opening files (optionally at a <line:col>).

Good idea about excluding tests from users. Feel free to add the gitignore as suggested!
And, for our sake, can we maybe include the mockito package (and any other dev dependencies) in a test-reqs.txt or `dev-reqs.txt or something in the style? We could then explain how to install dependencies in our README/wiki, under the contributing section

Added .gitattributes
Updated test to match new async dashboard and optimized git status calls
Fix: Handle edge case when working dir is clean

What you want with test-reqs.txt is unfortunately not clear to me. We need installed dependencies for travis et.al. (I also use a dev version of mockito btw. 🙄) A simple pip will not work here, this will probably install a global package but we need it inside the package, inside Sublime. I actually used pip -t ... and then just removed the metadata, there is also nothing inherently bad with checking in your dependencies. You get nice diffs if you update a package, you can just fix any edge case.

Now, you always have to maintain your dependencies in some way.
We just check them in to have full control over everything. We actually don't want to auto update them esp. since python33 is basically dead. If you want to update them, you just pip -t GitSavvy/tests.
Just keep it simple, man. For example, if we pip in travis, we already get a python36 version on osx iirc bc travis support for py33 is getting low already.

@asfaltboy I just had test_json throwing (because I copied an unrelated json config file into the project). Seems like we copy-pasted a json linter here, slightly patched it. This linter is out-of-date so it blew away instead of producing a nice message. Beside that you probably can use eslint from within travis, how could we update the linter? No chance, we have to maintain it ourself. Honestly IMO, this is a magnitude dirtier than what this PR does.
Now, what we could try is to install the dev dependencies into 'GitSavvy/tests/lib' (lib or vendor) or even top-level GitSavvy/vendor (or lib) and keep all the metadata pip normally produces. Still checking in bc contributors don't have python33 with pip installed, and getting 'fresh' dependencies for py33 is bascially not a thing anymore. You already can't get a recent flake8 or pytest for it. (Since I know the maintainer of mockito 🙄 we probably never get a fresher version of it supporting 33 anyway.)

How can we move forward here? All my PR's have these test dependencies, so I'm feeling a bit unsecure if this is a general blocker for you. I personally hate manual testing after each code change bc I loose my focus.
I actually share the concerns @asfaltboy has, but at the same time think it is a bit out scope of feature driven PR's. We're in Sublime land here, and python33 is basically history. If someone has a nifty idea that works on CI and is easy for contributors then 👍 just do it.

Sorry for my lack of feedback. I think for this feature sake, and having more tests is a divine feature, we should merge as is and discuss externalising dependencies in a different time. Perhaps when sublime have moved to a newer, better supported, version of python or maybe when we've implemented a better dependency control mechanism in package-control.
@randy3k @stoivo if either of you agrees then LGTM.

(Cough) @randy3k approved this PR already

That's a great feature. Love clicking around.


[README.me] Remove broken link

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[ ] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[X] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[X] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.

That link isn't broken? Have you even tried clicking on it?

No worries, it was your comment that led me to realize I botched both the commit message and PR title, as well as not noticing that the link should go to README.md. Everything should be fixed now.

Oh, now I see that CONTRIBUTING.md is generated programmatically in the Makefile, which explains all the duplication. I guess devscripts/make_contributing.py needs to be tweaked instead? Either than or just remove the CONTRIBUTING.md stuff from README.md *shrugs*

Detecting links is difficult. Instead, you can fix corresponding parts in README.md

Thanks! Now it's working