mongod doesn't start as part of a replica set configuration

On 1.0.0, Chef 12.21.31.  Attempting to configure replica sets.  The code beginning on line 34 of libraries/mongodb.rb:
   begin       connection = nil       rescue_connection_failure do         connection = Mongo::Connection.new('localhost', node['mongodb']['config']['port'], op_timeout: 20, slave_ok: true)         connection.database_names # check connection       end     rescue => e       Chef::Log.warn("Could not connect to database: 'localhost:#{node['mongodb']['config']['port']}', reason: #{e}")       return     end
When this executes (as called from definitions/mongodb.rb ~ :284), mongod is not running.  I've hit my time-box limit for trying to use this cookbook, but as near as I can tell, the interpolation for the service definition in the same file doesn't work as expected.
Using
       action: [:enable, :start],
in the definition for :mongodb_instance appears not to work.  When I remove the variable and replace it with just :start, the service starts as expected, which lets that code block return clean, which attempts to continue the install.
However, it fails on libraries/mongodb.rb:54 ->
  host = "#{members[n]['fqdn']}:#{members[n]['mongodb']['config']['mongod']['net']['port']}"

because at the the time the search query runs, the first node in the replica set hasn't checked in with Chef yet so the data on the port isn't configured unless it's part of the role applied to the node before running chef-client with the wrapper cookbook attached.

The wording in the documentation seems a little odd to me.  In a scenario with 3 nodes, are we supposed to first install the sc-mongodb::replicaset recipe to the first two nodes with node['mongodb']['auto_configure']['replicaset'] = false.  Then after chef has ran on both of those, run sc-mongodb::replicaset on the 3rd node with node['mongodb']['auto_configure']['replicaset'] = true?
I've been attempting this and I have not had any luck getting it to work so far.  I'll update here if I make any progress.

Error message when following the steps above for reference:
NoMethodError
    -------------
    undefined method `[]' for nil:NilClass

    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/sc-mongodb/libraries/mongodb.rb:74:in `configure_replicaset'
    /var/chef/cache/cookbooks/sc-mongodb/definitions/mongodb.rb:246:in `block (3 levels) in from_file'

    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/sc-mongodb/definitions/mongodb.rb

    244:     ruby_block 'config_replicaset' do
    245:       block do
    246:         MongoDB.configure_replicaset(node, replicaset_name, rs_nodes) unless new_resource.replicaset.nil?
    247:       end
    248:       action :nothing
    249:     end
    250:

    Compiled Resource:
    ------------------
    # Declared in /var/chef/cache/cookbooks/sc-mongodb/definitions/mongodb.rb:244:in `block in from_file'

    ruby_block("config_replicaset") do
      params {:mongodb_type=>"mongod", :action=>[:enable, :start], :logpath=>"/var/log/mongodb/mongod.log", :configservers=>[], :replicaset=>true, :notifies=>[], :not_if=>[], :name=>"mongod"}
      action [:nothing]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      block_name "config_replicaset"
      declared_type :ruby_block
      cookbook_name "sc-mongodb"
      recipe_name "replicaset"
      block #<Proc:0x0000000003be0ef8@/var/chef/cache/cookbooks/sc-mongodb/definitions/mongodb.rb:245>
    end

    System Info:
    ------------
    chef_version=12.22.5
    platform=ubuntu
    platform_version=16.04
    ruby=ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
    program_name=chef-client worker: ppid=12395;start=19:53:50;
    executable=/opt/chef/bin/chef-client

Nevermind, this was fixed in the release of 1.2.0.

Seems not an issue anymore, closing.


Is it possible for you to patch in rdp 8.0 for windows server 2008 r2?

Only windows 7 gets rdp 8.0 for some reason not the server version.

RDP Wrapper only wraps existing RDP service. Find out how to install RDP 8.0 yourself.


Declarative interface

Be able to declare in a single file:

/Applications/iTerm.app at position 2 -> If it is not already in the dock, add it, otherwise move it to position 2
Remove /Applications/GarageBand.app, if its already not in dock, no error

Sounds interesting. Would this be a file that you would feed to dockutil and it would be ensure the Dock was configured to match the declarations?

Yes, exactly.
The goal is that I could run dockutil apply config.yaml on two different machines (with two different "current" dock config), it will make sure the dock matches what is configured in the file. And I dont have to know the current state of the dock to make the proper mutation calls, dockerutil will do that for me.

Thanks for taking the time to request and explain this. I like it and will work on it when I can.

I really like this idea too. We haven't started using docktutil yet, but being able to do so using a single declarative config file would be great.


Sentiment Analysis support

This Pull Request aims to add new corpora and lexicons specifically built for Sentiment Analysis purposes. Their integration has been discussed with authors and annotators, and we agreed for licensing terms that respect NLTK Apache License.
New corpora and Lexicons:

Opinion Lexicon by Bing Liu

URL: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#lexicon
PAPERS: Mining and summarizing customer reviews (Hu, Minqing and Liu, Bing)
CONTACT: Bing Liu<EMAIL_ADDRESS>CORPUS NAME: opinion_lexicon

Customer Review Dataset (Product reviews)

URL: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#datasets
PAPERS: Mining and summarizing customer reviews (Hu, Minqing and Liu, Bing)
CONTACT: Bing Liu<EMAIL_ADDRESS>NOTES: Title of review, product feature, positive/negative label with opinion strength, other info (comparisons, pronoun resolution, etc.)
CORPUS NAME: product_reviews_1

Additional Review Dataset (Product reviews)

URL: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#datasets
PAPERS: A holistic lexicon-based approach to opinion mining (Ding, Xiaowen and Liu, Bing and Yu, Philip S)
CONTACT: Bing Liu<EMAIL_ADDRESS>NOTES: Title of review, product feature, positive/negative label with opinion strength, other info (comparisons, pronoun resolution, etc.)
CORPUS NAME: product_reviews_2

Pros and Cons Dataset (Pros and cons sentences)

URL: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#datasets
PAPERS: Mining Opinions in Comparative Sentences (Ganapathibhotla, Murthy and Liu, Bing)
CONTACT: Bing Liu<EMAIL_ADDRESS>NOTES: A list of sentences tagged <pros> or <cons>
CORPUS NAME: pros_cons

Comparative Sentences (Reviews)

URL: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#datasets
PAPERS: Identifying Comparative Sentences in Text Documents (Nitin Jindal and Bing Liu), Mining Opinion Features in Customer Reviews (Minqing Hu and Bing Liu)
CONTACT: Bing Liu<EMAIL_ADDRESS>NOTES: Sentence, POS-tagged sentence, entities, comparison type (non-equal, equative, superlative, non-gradable)
CORPUS NAME: comparative_sentences

Sentence Polarity Dataset 1.0

URL: http://www.cs.cornell.edu/People/pabo/movie-review-data/
PAPERS: Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales (Pang, Bo and Lee, Lillian)
CONTACT: Bo Pang, Lillian Lee
CORPUS NAME: sentence_polarity

Subjectivity Dataset 1.0

URL: http://www.cs.cornell.edu/People/pabo/movie-review-data/
PAPERS: A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts (Pang, Bo and Lee, Lillian)
CONTACT: Bo Pang, Lillian Lee
CORPUS NAME: subjectivity

Additionally, sentiment_analyzer.py contains methods can be used as a sort of wrapper around common NLTK functionalities to ease Sentiment Analysis tasks, especially for teaching purposes.
Several demos and helper functions have been implemented in util.py to provide examples using different datasets.

@stevenbird Can you please have a look at this PR? Just for clarity, I should point out that the sentiment-relatted resources/corpora listed above have already been installed in nltk_data.
@fievelk: as far as possible, I converted all the encodings of the sentiment corpora to UTF-8. Can you make sure that all your tests are based on the versions that are installed by nltk.download() rather than any local versions you might have installed? If I've failed to convert any of the corpora properly, please raise an issue.

@ewan-klein: I deleted old local files and re-downloaded the corpora using nltk.download() before doing the PR. Tests using tox succeeded with this data, so I think there should not be problems.

@fievelk – thanks for the huge amount of work you have done here.

I noticed a file nltk/corpus/reader/categ_sents.py and we've generally erred on the side of unabbreviated words in module names. How about categorized_sents.py. Note that you also already have comparative_sents.py (and "categorized" and "comparative" both have 11 characters).

@fievelk can you explain the thinking behind including an ipython notebook in the source tree, alongside the module. Is there a precedent for this? How would we expose it to users?
Ultimately, this could have implications for what we do with the other documentation that is currently in doctest format in nltk/test (and accessible via http://www.nltk.org/howto/).

I think the import of twython needs to be inside a try block (cf numpy in other modules). This gives us more flexibility in importing sentiment and twitter modules from the top level __init__.py.

@stevenbird Thank you very much for your feedback.

I think it is possible to safely change names for both categ_sents.py and ProductReviewsCorpusReader. The latter corpus can actually be used to parse other kinds of reviews, so I will manage to update its name as soon as possible.

Unfortunately I was not yet involved in the project when sentiment_plotter.ipynb was added to the repository. I will ask for information about it so that I will be able to answer your question.

It is probably better to create a separate PR for twython imports. I think this also explains issues with tox no-deps environments.

@fievelk the IPython notebook is a residue from work I did in an earlier development phase. I suggest you move it in the first instance to nltk/test. However, we should review the content of the notebook to check that it still makes sense,

@ewan-klein @stevenbird : Regarding wrapping twython imports within tryblocks, something similar is being discussed in malt.py #1080 regarding six imports. @kmike said:

It should be definitely solved as a part of our test running setup, not as a code change.

Do you think this is the case for twython as well? In this case I would wait for tox fixes.

@fievelk the twitterclient.py module has
try:
    from twython import Twython, TwythonStreamer
    from twython.exceptions import TwythonRateLimitError, TwythonError
except ImportError as err:
    import textwrap
    MSG = """The NLTK twitterclient module requires the Twython package. See\
    https://twython.readthedocs.org/ for installation instructions."""
    err.msg = textwrap.fill(MSG)
    raise

The rationale is not specifically for testing, but just in case a user wants to use some of the core NLTK packages without installing twython.

@ewan-klein But if the exception is re-raised, am I wrong when I say that users would not be able to use NLTK anyway? If the exception is not raised, instead, it should mean that users already have twython, or that this try/except is never reached (so they could use other NLTK packages without worrying anyway).
Throughout NLTK, numpy imports are usually handled like this:
try:
    import numpy as np
except ImportError:
    pass

However, there are also cases1 in which these exceptions are specifically handled for testing with nose:
from nose import SkipTest
try:
    import numpy
except ImportError:
    raise SkipTest("segmentation.doctest requires numpy")

Maybe it would be good to choose a specific strategy for the future and apply it to twython as well.

1segmentation.py classify_fixt.py probability_fixt.py segmentation_fixt.py test_hmm.py test_tag.py texttiling.py.

@stevenbird Are we going to update nltk/__init__.py to import twitter and sentiment packages? If not, then would it be best to place try blocks to wrap the import of twython separately in each package?

@ewan-klein: yes, I agree, we should do it that way.

@ewan-klein – is this ready to be merged, for inclusion in 3.0.5?

@ewan-klein @stevenbird : Using a try/except block with a simple pass statement for every Twython import would not unfortunately fix tox tests. For example, wrapping the following line
from twython import Twython, TwythonStreamer

would produce failures when defining class Streamer(TwythonStreamer). I think that these tests should be skipped when twython is not available in a test environment (nodeps), and an exception should be raised when in a production environment instead.
If nodeps dependency problems are supposed to be solved within Tox, I think we should only handle import exceptions raising them with a meaningful error message (not for tests purposes). This would actually be their correct output in a production environment.
Following NLTK Testing I tried to add a setup_module() function in the modules that use twython to skip nose tests, but tests were not skipped for some reason.

For example, wrapping the following line from twython import Twython, TwythonStreamer would produce failures when defining class Streamer(TwythonStreamer).

You're right that the solution for twython shouldn't be only for tests. If twython is optional we should raise an error if user tries to use related modules, but twython is not available.

I think that these tests should be skipped when twython is not available in a test environment (nodeps), and an exception should be raised when in a production environment instead.

The question is when to raise this exception. There are 2 options:

at import time;
when an object which uses twython is instantiated.

(1) is easier to implement, and maybe provides a better feedback for user, but we should be careful not to import modules which depend on twython from nltk top-level namespaces. Protecting twython imports with try/except is not necessary if we go with this option (it is better to raise a regular ImportError than a custom exception because it provides more information). But it could make sense to use try/except in upper-level imports which expose modules which use twython.
(2) For (2) we can provide a dummy Streamer implementation which raises an error on instantiation. This implementation will be used if twython is not available.
To run setup_module() Python needs to import the module setup_module() is defined at; if this module imports packages which are not available (like twython) then error is raised. Is it the problem you're facing?

@stevenbird We've addressed everything apart from the twython import issue that you raised. The points raised by @kmike are also applicable to thetwitter package, so it would be good to have an agreed resolution on his point (1). Could you clarify which of the following options you would prefer:

Handle twython import at top level or package level?
If package level, use 'try/except' block or just let an ImportError be raised?

I'm not sure about

it is better to raise a regular ImportError than a custom exception because it provides more information.

The counter-argument is that we can make a custom exception message more use-friendly for novices than a standard stack trace.

@kmike :

To run setup_module() Python needs to import the module setup_module() is defined at; if this module imports packages which are not available (like twython) then error is raised. Is it the problem you're facing?

Yes, I think this is the case. I tried to define setup_module() in __init__.py and in the specific modules that use twython. So the error is raised, ignoring setup_module().

I prefer the simple solution, conditional import of modules that have non-standard dependencies (@kmike's option 1 I guess). This is what we do for the tkinter dependency in the app and draw packages.
This approach does not preclude doing something fancier in future (like option 2).

Thanks @stevenbird. So I'll do something analogous to draw/__init__.py  for both the twitter and sentiment packages. E.g.,
try:
    import twython
except ImportError:
    import warnings
    warnings.warn("nltk.sentiment package not loaded "
                  "(please install twython library).")

This is independent, I believe, of how we address the issues with testing raised by @fievelk.

@stevenbird Issue about twython import is addressed in https://github.com/nltk/nltk/commit/798984059a4eb352026b0f11f92ef3e98a0391b3. So I think we're ready to merge this now.

@ewan-klein @stevenbird @kmike : If I am not mistaken, I think it would be however necessary to solve tox problems with nodeps environments: we are currently handling ImportError exceptions, but tests will fail anyway for six, twython and requests imports (this is not specifically related to this PR).
For example:
tox -e py26-nodeps

will fail when trying to import six in malt.py. After fixing six errors (just for test purposes) tox tests will succeed until they meet twython imports.
Therefore I think that our priority should be that of fixing tox tests for nodeps environments.

six is a weird issue because when we soon drop the py2.6 support, it would naturally be resolved since py2.7.x and py3.x comes shipped with six. Is that right?

I'm not sure whether it's included to py27 and py3. Instead, six is a one file distribution, what if we ship it together with NLTK and import it as from nltk import six.

See https://github.com/nltk/nltk/issues/1080#issuecomment-136670517. tox issue is trivial to fix - just add six to -nodeps environments like it is added to other environments. Alternatively, we can figure out why aren't install_requires dependencies installed in tox.

I try to write a brief recap of the issue.
The twitter package contains some functions that need twython and requests libraries to work (they are contained in twitter/util.py). It is therefore expected that users get an ImportError when trying to use these functions without having twython installed.
The sentiment module needs to use some of the twitter functions that do not require twython and requests. However, since these functions are in the same twitter/util.py module, trying to import sentiment without having twython installed will produce an ImportError as well. I think we should fix this.
My suggestion is to split twitter/util.py in two modules (e.g. twython_util.py and common.py), one containing the functions that require twython and requests, and another one containing the other functions. In this way, we would be able to do the following in twitter/__init__.py:
try:
    import twython
except ImportError:
    import warnings
    warnings.warn("twython library is not installed. "
                  "Some Twitter functionalities will not be available.")
else:
    import twython_util.py

import common.py

This will allow users to correctly import the sentiment package. When they will try to load the twitter package, they will receive a warning in case they do not have twython installed.
Another possible option might be to move functions that require twython directly inside twitter/__init__.py and . However, the Package Structure guide does not mention a similar use.
Do you think this could work? Do you have alternative options (also regarding module names)?

Merged into test for regression testing at https://nltk.ci.cloudbees.com/job/test/

@stevenbird OK if I resolve the conflicts by merging develop back into this branch? They're due I think to some recent updates to twitter package.

@ewan-klein good idea. I also need to update the tests to use Python 2.7 and 3.4.

Thanks @fievelk and @ewan-klein for all this work!


Reduce Sonos logging but keep info level logs in  hub logs

This removes all logs below info-level from the hub logs.
Note, a handful of the critical log messages we used for debugging will still be available:

Found device for Sonos search query with MAC addr %s, comparing to %s - for MAC addr.  Will still be in hub logs, but the quantity should be significantly reduced thanks to https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/pull/826
Received SSDP response for non-primary Sonos device in a bonded set, skipping; SSDP Response: %s - for checking number of bonded devices
Looking for Sonos Player on network for device (%s:%s) - for dni
Couldn't find Sonos Player [%s] during SSDP scan, trying again shortly - for finding DNI of devices that are still trying to be matched

@ctowns With the global Info logging re-enabled, I think there's one spot where we may want to change from log.info to log.trace, and that's all the calls in make_socket that are tracing the REST client TCP socket bring-up:
https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/blob/89e35a4ab40cccc0b74a559f0056dcd4b6132a67/drivers/SmartThings/sonos/src/utils.lua#L38
🐧 ❯ rg -i '"%s[a-zA-Z]'

src/utils.lua
39-    log.info(
40-      string.format(
41:        "%sCreating TCP socket for REST Connection", label
42-      )
43-    )
--
50-    log.info(
51-      string.format(
52:        "%sSetting TCP socket timeout for REST Connection", label
53-      )
54-    )
--
60-    log.info(
61-      string.format(
62:        "%sConnecting TCP socket for REST Connection", label
63-      )
64-    )
--
70-      log.info(
71-        string.format(
72:          "%sCreating SSL wrapper for for REST Connection", label
73-        )
74-      )
--
80-      log.info(
81-        string.format(
82:          "%sPerforming SSL handshake for for REST Connection", label
83-        )
84-      )


Wireframes

Basic setup of each expected frontend page.

[ ] Landing
[ ] Login
[ ] Signup
[ ] Social Media
[ ] Template Display
[ ] Template Purchase
[ ] Profile Pages
[ ] Profile Templates
[ ] Profile Components

y0 guys!  I set this up just because the Landing page is part of the Wireframes.  Feel free to split the issues into more than one issue or share the issue.


ICD-10 and/or CPT code inclusion

Hello,
Is there a chancee that inclusion of ICD-10 and/or CPT Codes to patient encounter and procedure data might be on the roadmap for this awesome project?
Thanks!

Sort answer is "only if it is included by the user as part of a value set."
See #347 and #380.
In general, the idea is that inside a module a user may specify a FHIR ValueSet instead of a single code and the system will randomly use different codes from that value set in the records. That value set can be provided locally or from a service like VSAC (https://vsac.nlm.nih.gov).
We do not plan to embed ICD-10 or CPT in the repository due to licensing issues (both real and/or perceived).

Closed with #709.
In order for ValueSets to be used, you need to specify a FHIR terminology server using the generate.terminology_service_url property and have a module with ValueSet specified.
ValueSets can be specified in any State that contains a code. Just add a value_set attribute in addition to the system, code, and display.
For example:
{
  "system": "SNOMED-CT",
  "code": "2501000087107",
  "display": "MRI of right knee with contrast",
  "value_set": "http://snomed.info/sct?fhir_vs=ecl/<<2491000087104"
}

The example value_set: "http://snomed.info/sct?fhir_vs=ecl/<<2491000087104" links to a 404 page.  I was wondering if you can give an example of local value_set or what would a terminology server/service link look like.  Does the server need to be specific query URL and give a simple txt/json/xml response?  What would be the lowest hanging fruit approach?  Modify all modules to include some ICD directly on value_set attribute for each encounter codes?


Performance drop with multiple split node output

Current Behavior
I've seen that if I have a node that has a large output size (e.g. a large array), when I split the output across multiple nodes there is a major performance hit, even if the other nodes aren't using the data
Expected Behavior
I expected that a simple forward of data in the flow doesn't have a so significant impact to flow execution.
Steps To Reproduce
Create a node that output a big sized data (e.g. a image), and connect it to multiple nodes
Example flow
paste your flow here

Environment

Node-RED version: 3.1.3
Node.js version: 20.9.0
npm version: 10.2.3
Platform/OS: Ubuntu
Browser: Chrome

Please supply an example flow that demonstrates the problem,
But assuming you mean having 2 (or more) output wires to different nodes then the whole message needs to be cloned before being forwarded, this is to ensure that modifications made on each downstream path do not change the msg object in the other path.
If the message contains a large array then it will take time to make this clone.
This is working as intended.

Yes - as Ben says, splitting a flow involves cloning the message for each separate output wire. - So if possible don't do it if you are handling large objects. Can the operations be handles in series rather than parallel ? etc.


feat(select): allow setting viewValue to override text content

Edit: I want to think more about this API. Pausing.

I think this API should match what autocomplete does. Will redo.


Only works on pages

I tried this plugin but it seems like only the fields on pages are being picked up.
It doesn't show the snowflake fields inside the partials. Did I set it up incorrectly or is this a current limitation?

i have a same issue. how to solve it?


Panic with numbers having more than 5 leading 0s in decimals

Hello,
The engine seems to panic when I enter {« a »: 0.000001} in a graph having just request -> response
It works with 0.00001
I’m using it through python

Closing in favour of #175 (same issue)


simplify setup for sending emails from development

Hi there, thanks for building & open sourcing Release Ninja & for the exceptional documentation.
Streamline the setup of sending emails from development, specifically removing the need to edit development.rb

Howdy from Release Ninja! You should write a release note targeted at a semi-technical end user who is
not familiar with the code base. Include at least 1 image, wherever possible. Review the help article if
you are not familiar with Release Ninja.
When your pull request is ready, do one of the following:

Notify Release Team
Don't notify anyone because it's a small change or doesn't concern them
Whatever you do though, make sure you :tada:

Wait, I missed something. I'll be back.


Array-indent not maintained between parseDocument/toString

Describe the bug
First of all, thanks for an awesome yaml parser/stringifyer! I just wrote this this weekend: yaml-diff-patch using this library to allow modifying a yaml using JSON patches.
I'm not sure if this is considered a bug, but I'd very much hope so. The library would be most useful if it maintains as much as possible from the source yaml when parsing the document into AST/CST so that stringifying it produces the exact same result. This means that minimal (or no) modifications to the AST would produce a minimal (or no) diff when text diffing the original yaml with the modified. In other words, only what you change, would be part of the final diff.
To Reproduce
The following:
a:
- b: c

when parseDocument -> toString produces:
a:
  - b: c

Expected behaviour
I totally understand how this looks better. I also totally understand that a document with both these indentations in different places is pretty ugly, and being able to "reformat" it is great. However, being able to maintain all blocks' indentations individually as-is makes more sense when trying to make a minimal diff that only touches what it needs.
I noticed (in 1.10.2) that quite a few things get re-organized, long lines get chopped into multiple shorter, long one-line arrays get split into line-by-line arrays etc. I haven't tried that in 2.0 yet, so you can ignore that for now.
Versions (please complete the following information):

Environment: Node.js 14.15.1
yaml: 1.10.2 and 2.0.0-6

I noticed (in 1.10.2) that quite a few things get re-organized, long lines get chopped into multiple shorter, long one-line arrays get split into line-by-line arrays etc. I haven't tried that in 2.0 yet, so you can ignore that for now.

Just tested in 2.0.0-6, long lines of text get chopped down (line broken), and so does long one-line arrays.

I think you're reporting/conflating two different issues here. I'll address just the sequence indent here, and hope you'll file a separate issue if there's something else to consider as well.
I understand and agree with your desire to keep an input file as close as possible to its original form. At least for now, the library doesn't do that with respect to indentation. The ToString Options do include indent and indentSeq for controlling the output, but their default values are not determined from any parsed document.
While working on the parser update, I did look into this at one point, but didn't come up with an easy answer for how to detect and store the indent styles. As this isn't a priority for me just now, a PR on this would be very welcome.


The inconsistency of init APIs

The init APIs of StableBTreeMap and StableVec returns inconsistent results:

StableBTreeMap::init returns StableBTreeMap
StableVec::init returns Result<StableVec, InitError>
Actually MinHeap also returns a Result.

Looks like StableVec uses the safe_write method which returns a Result.
Should StableBTreeMap::init do the same thing and return a Result?

Is there a specific concern that you have or is it mostly about consistency/uniformity of the APIs?

The (not very good reason) this inconsistency exists is because these structures were written by different authors. The current thinking is to update them to all not return a Result, since the errors returned aren't really recoverable. Would be curious to hear your opinions on this issue.

Is there a specific concern that you have or is it mostly about consistency/uniformity of the APIs?

It's not a usage issue. For me, it's just a convention or a habit to make the high-level APIs consistent. :)

The (not very good reason) this inconsistency exists is because these structures were written by different authors. The current thinking is to update them to all not return a Result, since the errors returned aren't really recoverable. Would be curious to hear your opinions on this issue.

If it's not recoverable or doesn't expect the users to handle the error, then not returning a Result is a better option IMO.


All records show the same star rating as the very first record

I use initialRating to display the overall star rate for each record, from which is built within a .
I can verify that the rating values are going into the script in chrome DevTools:
$(function () {             $(".idRate").barrating({                 theme: 'fontawesome-stars-o',                 allowEmpty: true,                 initialRating: **2.0**,                 readonly: true             })            // $(".idRate").barrating('clear');             //$(".idRate").barrating('destroy');              $(".idRate").barrating('set',0);         });
or
$(function () {             $(".idRate").barrating({                 theme: 'fontawesome-stars-o',                 allowEmpty: true,                 initialRating: **1.6**,                 readonly: true             })            // $(".idRate").barrating('clear');             //$(".idRate").barrating('destroy');              $(".idRate").barrating('set',0);         });

I have tried to add 'clear', 'set value' and 'destroy' but none worked.
Anyone knows why it renders ok but not showing the correct star rating please?

I have cracked the issue of mine.
Big thanks to @ChetanGoti who left the sample code in issue #91 and #99 which gave me some ideas to manipulate the script to suit my purpose.
I had to wrap ChetanGoti's code in a function to stop it iterate within its won record because the star rating is built on the  , so that the'data-current-rating' would apply to each record and no loop from .each().

`$(function () {
$('.idRate').each(function (Index, el) {
var $El = $(el);
$El.barrating({
theme: 'fontawesome-stars-o',
allowEmpty: true,
initialRating: $El.attr('data-current-rating'),
readonly: true
})
        })
   })`


Fix CLI/Network: Detached thread made trouble

Since the methods used to be able to control a threaded CLI comes from network, it goes into that category + it fixes the ping port that isn't correct.

C'est plus pour une 0.6.1.

looks like my windows VM is more advanced than our time ??????? (the next 2 commits)


Helpfulness feature and report feature with disabling

@Doomslair please review

 Sending a report problem and helpful feature

I haven't made a test for it but it do see the increase in count when I click on the helpfulness counter and the answer is removed when I click report. The picture below shows the changes. The first picture
is when it is first rendered. The second is when I click Yes for helpful and the last picture show when I click on report.


need maven instructions to run Spectrum test on a multi-module project

I have created some Spectrum test which runs correctly through the IDE
I tried both Surefire and Failsafe plugins not able to run the Spectrum suit through mvn

got it

			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-failsafe-plugin</artifactId>
			<configuration>
				<includes>
					<include>%regex[.*Specs.class]</include>
				</includes>
			</configuration>
		</plugin>

I still have an issue with the maven runs through the command line, did anyone ever test that?
IDE still run correctly shows 36 tests where on command line
[INFO] ------------------------------------------------------- [INFO]  T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.trulia.api.data.typebdd.BethInvitationSpecs [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.719 s - in com.trulia.api.data.typebdd.BethInvitationSpecs [INFO]  [INFO] Results: [INFO]  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

Specifically, @braghome, it would be helpful if you could share a version of our Specs file, perhaps with the contents of the tests removed if you can't share those. This will help us reproduce the issue and determine if there is a setup problem. It's also possible it could be configuration issue in one of your pom.xml files.

you guys are correct I did start with pom.xml some aggresive exclusions which have now removed so everything on my Integration tests are now working but for command line runs which still show
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.822 s - in com.trulia.api.data.typebdd.BethInvitationSpecs
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

whereas in the IDE the tests count is 36 and does not have any such reporting problems
@RunWith(Spectrum)
class BethInvitationSpecs {

	new() {
		feature('Bla can invite Beth', with(tags('bethInvitaion'), [
			scenarioOutline(
				'As an gent I want to be able to invite Beth to link as her exclusive gent', [ zuid, entitySourceVersion,
					checkProfile, decides, actualStatus |
					val myAgent = junitMixin(MyAgentMixin)
					val scenarioData = new Variable<PBAndJImmut>(
						new PBAndJImmut(BASE, null, null, new ArrayList, new ArrayList, null, null, null, null, null,
							null))
					given('''check Bla's profile «checkProfile», entity source «entitySourceVersion» and zuid «zuid» for login''', [

					])
					and('a Beth that does not have sticky gent relationship with Bla', [

					])
					when('Bla is able to send an invite to Beth', [])
					and('Bla can confirm his invitation to Beth goes into pending status', [])
					and('''Beth «decides» on the open pending invitation''', [])
					then('''Bla can confirm «actualStatus» on the Beth’s contact detail''', [])
				], withExamples(
					example(308l, 'fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0', true, 'reject', 'UNKNOWN_GENT'),
					example(308l, 'fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0', false, 'reject', 'NOT_WORKING_GENT'),
					example(308l, 'fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0', false, 'reject', 'NOT_SHOPPING'),
					example(308l, 'fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0', false, 'reject', 'NONE_ABOVE'),
					example(308l, 'fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0', false, 'reject', 'NO_GIVEN'),
					example(308l, 'fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0', false, 'accept', 'ACCEPTED')
				))
		]))
	}
}

the mixin looks like
@ContextConfiguration(classes=TypedConfig)
class MyAgentMixin {
	public val LOG = LoggerFactory.getLogger(MyAgentMixin)
    @ClassRule
    public static final SpringClassRule classRule = new SpringClassRule();
    @Rule
    public SpringMethodRule methodRule = new SpringMethodRule();

	@Autowired protected UserProfileService userProfileImpl
	@Autowired protected PaLoginWithReaders paLoginWithReadersImpl
	@Autowired protected StatsCreterion statsCreterionImpl
}

I have to do the Spec in constructor as xtend language does not support intialisation blocks
All the above generate java code
@RunWith(Spectrum.class)
@SuppressWarnings("all")
public class BethInvitationSpecs {
  public BethInvitationSpecs() {
    final Block _function = () -> {
      final ParameterizedBlock.FiveArgBlock<Long, String, Boolean, String, String> _function_1 = (Long zuid, String entitySourceVersion, Boolean checkProfile, String decides, String actualStatus) -> {
        final Supplier<MyAgentMixin> myAgent = Configure.<MyAgentMixin>junitMixin(MyAgentMixin.class);
        ArrayList<CrmData> _arrayList = new ArrayList<CrmData>();
        ArrayList<CompactContactDetails> _arrayList_1 = new ArrayList<CompactContactDetails>();
        PBAndJImmut _pBAndJImmut = new PBAndJImmut(StatsCreterion.BASE, null, null, _arrayList, _arrayList_1, null, null, null, null, null,
          null);
        final Variable<PBAndJImmut> scenarioData = new Variable<PBAndJImmut>(_pBAndJImmut);
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("check Bla\'s profile ");
        _builder.append(checkProfile);
        _builder.append(", entity source ");
        _builder.append(entitySourceVersion);
        _builder.append(" and zuid ");
        _builder.append(zuid);
        _builder.append(" for login");
        final Block _function_2 = () -> {
        };
        Gherkin.given(_builder.toString(), _function_2);
        final Block _function_3 = () -> {
        };
        Gherkin.and("a Beth that does not have sticky gent relationship with Bla", _function_3);
        final Block _function_4 = () -> {
        };
        Gherkin.when("Bla is able to send an invite to Beth", _function_4);
        final Block _function_5 = () -> {
        };
        Gherkin.and("Bla can confirm his invitation to Beth goes into pending status", _function_5);
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("Beth ");
        _builder_1.append(decides);
        _builder_1.append(" on the open pending invitation");
        final Block _function_6 = () -> {
        };
        Gherkin.and(_builder_1.toString(), _function_6);
        StringConcatenation _builder_2 = new StringConcatenation();
        _builder_2.append("Bla can confirm ");
        _builder_2.append(actualStatus);
        _builder_2.append(" on the Beth’s contact detail");
        final Block _function_7 = () -> {
        };
        Gherkin.then(_builder_2.toString(), _function_7);
      };
      Gherkin.<ParameterizedBlock.FiveArgBlock<Long, String, Boolean, String, String>>scenarioOutline(
        "As an gent I want to be able to invite Beth to link as her exclusive gent", _function_1, Gherkin.<ParameterizedBlock.FiveArgBlock<Long, String, Boolean, String, String>>withExamples(
        Gherkin.<Long, String, Boolean, String, String>example(Long.valueOf(308l), "fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0", Boolean.valueOf(true), "reject", "UNKNOWN_GENT"),
        Gherkin.<Long, String, Boolean, String, String>example(Long.valueOf(308l), "fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0", Boolean.valueOf(false), "reject", "NOT_WORKING_GENT"),
        Gherkin.<Long, String, Boolean, String, String>example(Long.valueOf(308l), "fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0", Boolean.valueOf(false), "reject", "NOT_SHOPPING"),
        Gherkin.<Long, String, Boolean, String, String>example(Long.valueOf(308l), "fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0", Boolean.valueOf(false), "reject", "NONE_ABOVE"),
        Gherkin.<Long, String, Boolean, String, String>example(Long.valueOf(308l), "fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0", Boolean.valueOf(false), "reject", "NO_GIVEN"),
        Gherkin.<Long, String, Boolean, String, String>example(Long.valueOf(308l), "fbcaae13-8e73-4eafc4f161ba;TruliaAgent;4.23.0", Boolean.valueOf(false), "accept", "ACCEPTED")));
    };
    Gherkin.feature("Bla can invite Beth", Configure.with(Configure.tags("bethInvitaion"), _function));
  }
}

and the mixin looks like
@ContextConfiguration(classes = TypedConfig.class)
@SuppressWarnings("all")
public class MyAgentMixin {
  public final Logger LOG = LoggerFactory.getLogger(MyAgentMixin.class);

  @ClassRule
  public final static SpringClassRule classRule = new SpringClassRule();

  @Rule
  public SpringMethodRule methodRule = new SpringMethodRule();

  @Autowired
  protected UserProfileService userProfileImpl;

  @Autowired
  protected PaLoginWithReaders paLoginWithReadersImpl;

  @Autowired
  protected StatsCreterion statsCreterionImpl;
}

This example https://github.com/ashleyfrieze/spectrumexample works fine... Perhaps you could create a similar working example elsewhere on GitHub that doesn't work, so we can debug it?

I suggest a rename for this issue, since it's most likely a compatibility issue between Xtend, maven and Spectrum. The best I can suggest is that we look for volunteers who understand Xtend better to pitch in and help. A guess from me is that the maven build process might not be stringing together the Xtend compilation/preprocessing before the tests run.

@braghome - did you get any further with this?


[Feature Request] Auto-refresh on DOM changes

Excellent tool - great job!
WouId be nice to have an option to auto refresh the WC tree on changes to the inspected page DOM.

Hi Joe,
Currently there are systems in play that attempt to keep the WC tree up to date on DOM changes, utilizing MutationObservers.
What is a use case in which the WC tree update didn't trigger? Could you give me a re-producable demo so that I can get this edge case sorted out :)

I'm afraid I can't share the code but I had another look and it seems like does actually work much of the time (more than when I first tried). It is turning into a bit of a heisenbug as it's quite intermittent now and sometimes it just takes a while for the tree to refresh. I'll keep testing and see if I can isolate a root cause.

Heya,
I actually had a hunch that this might be an actual bug/oversight and was able to re-prod it.
I've put a mutation observer in place to observe the mutations in the light DOM, but any elements inside a shadow DOM of an element are being ignored by this, meaning that if you for example add a item onto a list inside a shadow DOM, it doesn't get updated in the tree.
This will be fixed in 0.1.3

Fixed here and here.
Will ship in 0.1.3


Update gradle to use patched 0.2.1

Todo:

[x] Wait for 0.2.1 to be deployed on maven central
[x] Update javadocs when deployed (to reflect some new description in MapController and MapView)

@meetar Can you have a look now? Everything has been updated.
Thanks


Glibc fails to build on CentOS 6.5

$ brew install -v glibc
==> Downloading http://ftpmirror.gnu.org/glibc/glibc-2.19.tar.bz2
Already downloaded: /home/koneill/.cache/Homebrew/glibc-2.19.tar.bz2
==> Verifying glibc-2.19.tar.bz2 checksum
tar xf /home/koneill/.cache/Homebrew/glibc-2.19.tar.bz2
==> ../configure --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/home/koneill/.linuxbrew/Cellar/glibc/2.19 --without-selinux --with-binutils=/home/koneill/.linuxbrew/Cellar/binutils/2.24/x86_64-unknown-linux-gnu/bin --with-headers=/home/koneill/.linuxbrew/Cellar/linux-headers/3.15.9/include
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... /home/koneill/.linuxbrew/bin/gcc-4.9
checking for suffix of object files... configure: error: in `/tmp/glibc-AkzQRv/glibc-2.19/build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 3353c346f08738b1891730e7647b1aebd6e40c70
HOMEBREW_PREFIX: /home/koneill/.linuxbrew
CPU: 8-core 64-bit 6
OS X: 0-x86_64
X11: N/A
==> ENV
CC: /home/koneill/.linuxbrew/bin/gcc-4.9 => /home/koneill/.linuxbrew/Cellar/gcc/4.9.1/bin/gcc-4.9
CXX: /home/koneill/.linuxbrew/bin/g++-4.9 => /home/koneill/.linuxbrew/Cellar/gcc/4.9.1/bin/g++-4.9
OBJC: /home/koneill/.linuxbrew/bin/gcc-4.9
OBJCXX: /home/koneill/.linuxbrew/bin/g++-4.9
CFLAGS: -Os -w -pipe -march=core2
CXXFLAGS: -Os -w -pipe -march=core2
CPPFLAGS: -isystem/home/koneill/.linuxbrew/include
LDFLAGS: -L/home/koneill/.linuxbrew/lib
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /home/koneill/.linuxbrew
PKG_CONFIG_LIBDIR: /home/koneill/.linuxbrew/lib/pkgconfig
ACLOCAL_PATH: /home/koneill/.linuxbrew/share/aclocal
PATH: /home/koneill/.linuxbrew/bin:/home/koneill/.linuxbrew/bin:/home/koneill/.linuxbrew/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/koneill/bin:/home/koneill/.linuxbrew/Library/Contributions/cmd

Error: glibc 2.19 did not build
Logs:
     /home/koneill/Library/Logs/Homebrew/glibc/01.configure

I'm pretty sure this error:
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details

is due to missing libraries (at least, that's what the glibc FAQ implies). To find out (and to find out which libraries), I would need to look into the config.log file, but that gets deleted along with the directory in /tmp that linuxbrew uses to compile in.

The same problem I encountered, but later I found that this is actually has no relationship to GCC bag is cited problems
Because in the.Linuxbrew/Library directory to find irb.rb so wrong,
Ln -s./debrew/irb.rb can be repaired.

@oneillkza The same problem I encountered, but later I found that this is actually has no relationship to GCC bag is cited problems
Because in the.Linuxbrew/Library directory to find irb.rb so wrong,
Ln -s./debrew/irb.rb can be repaired.

@oneillkza which issue you reported?


CI/CD

Linux

[x] GCC (all 3 tested Interface, Single, Interface + Single)
[ ] Clang

Windows

[x] MSVC
[x] Clang
[ ] GCC

MacOS

[ ] GCC
[ ] Clang

#60 Initial Linux CI
#82 Separated build into Interface, Single and Interface + Single for Linux

#101 Initial Windows CI for MSVC and Clang

#132 CI/CD MSVC Static Analysis

#174 Sphinx Documentation + Doxygen


Add support for view helpers in Handlebars and Jade

Can't see a simple, clean way to implement this now. For now I think it's best to generate URL in helper and pass to view context.


PySCF 2.1.0 wheels for MacOS and python > 3.7 don't install

The pyscf 2.1.0 distribution for MacOS changed the scipy requirements from scipy (!=1.5.0,!=1.5.1) to scipy (<=1.1.0).
However there is no scipy (<=1.1.0) distribution for python > 3.7 under MacOS.
For the MacOS, under python 3.8, it reverts to pyscf 2.0.1 and works, however for python 3.10, it can't install the only wheel existent for python 3.10 and fails.
Scipy <= 1.1.0 is very old and while there are wheels for python <=3.7, there aren't any for python > 3.7
So it seems to me that the current MacOS wheels for python > 3.7 don't work.

scipy dependency check is removed in pyscf-2.2


feat: Move children to container; add expand flag

This PR moves the ResizableChild configuration classes back into the ResizableContainer's constructor so that they can be modified on-the-fly without needing to re-create or manually update the ResizableController.
This PR also adds an expand flag to the ResizableChild to control whether or not it will automatically fill-in any remaining available space if it has a startingRatio constraint.

I should have extracted the "expand" functionality into a different PR - whoops 🤷


Create Natalie Lukac

Iterative Development.Paper Airplanes.pptx

Here is my presentation!

I added the file into the 2019 directory for you. Thanks!

Thanks Phil!
On Wed, Aug 7, 2019 at 1:54 PM Philip Japikse<EMAIL_ADDRESS>wrote:

I added the file into the 2019 directory for you. Thanks!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/skimedic/cincydeliverpresentations/pull/22?email_source=notifications&email_token=AM22BWPEOAPPSHZOUNJONUTQDMD4JA5CNFSM4IKBB562YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZGVUI#issuecomment-519203537,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM22BWKM4OVQMEMYVGFWXZLQDMD4JANCNFSM4IKBB56Q
.


Upgrade all projects to latest React/Next versions

@marcbouchenoire Thanks for adding those TS remaining changes!


Vault root_token.env is missing

Hi, I have followed all the guides you have written for us.
First of all, thank you for your guides. I found it helpful for me.
After the deployment of vault in GKE, I could not find the root_token.env on my GCS.
The only way I could do to grep the token was first to initialize the vault with dev mode. The token would appear on the log.
Any idea why the root_token.env is missing by following the guides?

Do you mean root-token.enc? It's enc, not env

Yes, I mean root-token.enc. I cannot find it after the initialization.

Did the Terraform run complete successfully? What do the Vault logs show?

The log for the vault is here
=> Vault server configuration:

      GCP KMS Crypto Key: vault-init
        GCP KMS Key Ring: vault
         GCP KMS Project: sre-001
          GCP KMS Region: us-east1
               Seal Type: gcpckms
             Api Address: https://XXXXXXX
                     Cgo: disabled
         Cluster Address: https://<IP_ADDRESS>:8201
              Listener 1: tcp (addr: "<IP_ADDRESS>:8200", cluster address: "<IP_ADDRESS>:8201", max_request_duration: "1m30s", max_request_size: "33554432", tls: "disabled")
              Listener 2: tcp (addr: "<IP_ADDRESS>:8200", cluster address: "<IP_ADDRESS>:8201", max_request_duration: "1m30s", max_request_size: "33554432", tls: "enabled")
               Log Level: debug
                   Mlock: supported: true, enabled: true
                 Storage: gcs (HA available)
                 Version: Vault v1.0.3
             Version Sha: 85909e3373aa743c34a6a0ab59131f61fd9e8e43

==> Vault server started! Log data will stream in below:

2019-07-09T08:23:28.495Z [DEBUG] storage.gcs: configuring backend
2019-07-09T08:23:28.495Z [DEBUG] storage.gcs: configuration: bucket=sre-001-vault-storage chunk_size=8388608 ha_enabled=true max_parallel=0
2019-07-09T08:23:28.495Z [DEBUG] storage.gcs: creating client
2019-07-09T08:23:28.692Z [DEBUG] storage.cache: creating LRU cache: size=0
2019-07-09T08:23:28.776Z [DEBUG] cluster listener addresses synthesized: cluster_addresses=[<IP_ADDRESS>:8201, <IP_ADDRESS>:8201]
2019-07-09T08:23:28.920Z [INFO]  core: stored unseal keys supported, attempting fetch
2019-07-09T08:23:29.158Z [INFO]  core: vault is unsealed
2019-07-09T08:23:29.158Z [INFO]  core: entering standby mode
2019-07-09T08:23:29.190Z [INFO]  core: unsealed with stored keys: stored_keys_used=1
2019-07-09T08:23:34.483Z [INFO]  core: acquired lock, enabling active operation
2019-07-09T08:23:34.754Z [DEBUG] core: generating cluster private key
2019-07-09T08:23:34.773Z [DEBUG] core: generating local cluster certificate
2019-07-09T08:23:34.981Z [INFO]  core: post-unseal setup starting
2019-07-09T08:23:35.010Z [DEBUG] core: clearing forwarding clients
2019-07-09T08:23:35.010Z [DEBUG] core: done clearing forwarding clients
2019-07-09T08:23:35.046Z [INFO]  core: loaded wrapping token key
2019-07-09T08:23:35.046Z [INFO]  core: successfully setup plugin catalog: plugin-directory=
2019-07-09T08:23:35.170Z [INFO]  core: successfully mounted backend: type=kv path=secret/
2019-07-09T08:23:35.170Z [INFO]  core: successfully mounted backend: type=system path=sys/
2019-07-09T08:23:35.170Z [INFO]  core: successfully mounted backend: type=identity path=identity/
2019-07-09T08:23:35.170Z [INFO]  core: successfully mounted backend: type=kv path=kv/
2019-07-09T08:23:35.170Z [INFO]  core: successfully mounted backend: type=cubbyhole path=cubbyhole/
2019-07-09T08:23:35.576Z [INFO]  core: successfully enabled credential backend: type=token path=token/
2019-07-09T08:23:35.576Z [INFO]  core: successfully enabled credential backend: type=kubernetes path=kubernetes/
2019-07-09T08:23:35.576Z [INFO]  core: restoring leases
2019-07-09T08:23:35.577Z [DEBUG] expiration: collecting leases
2019-07-09T08:23:35.577Z [INFO]  rollback: starting rollback manager
2019-07-09T08:23:35.664Z [DEBUG] identity: loading entities
2019-07-09T08:23:35.723Z [DEBUG] identity: entities collected: num_existing=0
2019-07-09T08:23:35.724Z [INFO]  identity: entities restored
2019-07-09T08:23:35.724Z [DEBUG] identity: identity loading groups
2019-07-09T08:23:35.795Z [DEBUG] identity: groups collected: num_existing=0
2019-07-09T08:23:35.795Z [INFO]  identity: groups restored
2019-07-09T08:23:35.825Z [DEBUG] core: starting cluster listeners
2019-07-09T08:23:35.826Z [DEBUG] core: cluster listener setup function
2019-07-09T08:23:35.826Z [DEBUG] core: clearing forwarding clients
2019-07-09T08:23:35.826Z [DEBUG] core: done clearing forwarding clients
2019-07-09T08:23:35.826Z [DEBUG] core: leaving cluster listener setup function
2019-07-09T08:23:35.826Z [INFO]  core: post-unseal setup complete
2019-07-09T08:23:35.826Z [INFO]  core: starting listener: listener_address=<IP_ADDRESS>:8201
2019-07-09T08:23:35.827Z [INFO]  core: serving cluster requests: cluster_listen_address=<IP_ADDRESS>:8201
2019-07-09T08:23:35.827Z [INFO]  core: starting listener: listener_address=<IP_ADDRESS>:8201
2019-07-09T08:23:35.827Z [INFO]  core: serving cluster requests: cluster_listen_address=<IP_ADDRESS>:8201

I did not run the terraform but follow the guide you have written. The vault did launch and I can get the token from the hack I have done. It worked pretty well but the only issue was the root-token.enc

Can you do a gsutil ls on the bucket and show which values are there?

Here you are.
$ gsutil ls gs://sre-001-vault-storage/
gs://sre-001-vault-storage/auth/
gs://sre-001-vault-storage/core/
gs://sre-001-vault-storage/logical/
gs://sre-001-vault-storage/sys/

I'm really not sure. I just ran through the tutorial myself and can't reproduce the issue. I'm not sure how to help, sorry! 😦

It's fine. Let me have a retry on it first. Thanks a lot!


2.1.2 only opens when run as Administrator on Windows 10

Description
Clicking the Pinta icon or running pinta.exe from the Program Files folder does nothing. Running from command prompt immediately goes back to the prompt.
Running the application as Administrator launches without issue.
To Reproduce
On Windows 10:
Install fresh copy
User logged in without Administrative rights
Click the icon in the Start menu, or the exe in the Program Files folder, or pinta.exe from command prompt.
Nothing should open/happen.

Then confirm by running above as Administrator, program should open.
Additional Info
If applicable, add a screenshot or attach an example file that demonstrates the issue.
Version
Windows 10 22H2 64-bit
Pinta 2.1.2

Hmm, I don't think I've seen reports of this happening before. How did you install Pinta? I think there is an option for whether it's installed for all users

Sequence of events:

PC had 2.0.2 installed. Power flickered, and user shut down the computer.
On restart of the machine, this behavior began.
Downloaded newest version 2.1.2 and installed it, same behavior.
I then uninstalled 2.1.2, restarted, re-installed 2.1.2, same behavior.
Ran SFC /Scannow and DISM repair in case system files were corrupted. (as well as Windows Update). Errors found, repaired, rebooted.
Tried the steps above. Right-click, run as Admin works without issue. No dice on command prompt or debug.
No other issues on the system apparent at the moment.

Thanks, yeah I'm not sure why the power flicker would cause problems. I'd maybe try another reinstall, but after uninstalling also check whether there's anything left over in the Program Files/Pinta folder?


Add compression flag

Adds an option to support compression for checkpoints.
Test plan:

confirmed you can save and load checkpoints with various compressions

Predictably, compression is slow with the heavier methods (eg lzma). If this becomes important, we could hide the zipping latency by doing it in parallel with training since it doesn't actually use much CPU (just a lot of serial ops).

Hm... getting something weird where now it's not ever checkpointing.... might be calling it wrong? looking into it and then will re-request review

Ah nvm, it seems logging is just not on by default anymore? In either case, it saves w compression :)

One minor comment to use the empty string rather than "None" to denote no compression, since we don't use the string of "None" elsewhere in the code.

Updated!

Would also be a good idea to add a simple test case in just to verify that the loading/saving works. I don't think we need to test each compression as that's handled by python's tarfile.

Modified tests to also run gzip


Virtual Machine cannot boot with elemental-teal v1.2.3 iso

What steps did you take and what happened:
When creating a registration endpoint with the cloud configuration below, we are not able to boot a virtual machine with the iso built from the UI.

After this iso is built, we are trying to use it on a Harvester virtual machine:

The virtual machine starts, and it cannot find the boot device when we use the elemental ISO. We have also tried to boot it as "disk" instead of "cd-rom" and it leads to the same issue.

What did you expect to happen:
The virtual machine to successfully start and use the elemental operating system.
Environment:

Elemental release version (use cat /etc/os-release): 103.3.0+up1.5.3
Rancher version: 2.8.3
Kubernetes version (use kubectl version): v1.29.2
Cloud provider or hardware configuration: Azure

You did configure the Harvester VM to boot via UEFI, right ? 🤔

http://elemental.docs.rancher.com/quickstart-cli/#prerequisites

That fixed it... thank you so much!


quit vs. exit - unify the way how to leave any session/tool

Hi, wouldn't be better to make quitting console and sbt with the same command?
steps
Now I need
If I want to leave console session:
:quit

If I want to leave sbt:
exit

problem
?
expectation
I suppose 'exit' and ':exit' would save many errors ...

I'm looking at this because we got #1991 from @dwijnand. The original description by @xhudik had quit and exit flipped, so I fixed it. To get out sbt shell you type exit, and from Scala REPL you type :quit (or just :q).
By extending the flip, we probably should also invert @jsuereth's statement above also as:

A new ":quit" command that does the same thing as "exit" would be nice for unification.

I looked into doing this in #1991 but :quit and :q aren't valid command names:
java.lang.AssertionError: assertion failed: ':quit' is not a valid command name.
	at scala.Predef$.assert(Predef.scala:179)
	at sbt.SimpleCommand.<init>(Command.scala:17)
	at sbt.Command$.make(Command.scala:33)
	at sbt.Command$.make(Command.scala:32)
	at sbt.BasicCommands$.newAlias(BasicCommands.scala:275)

@eed3si9n recommends going the other way:

One way to "solve" this is to define a plugin that does something along the lines of:
initialCommands += "\nimport sys.exit"
For Scala versions that defines sys.exit. That will allow exit to work on both REPL and sbt shell.

Being a good traveling task, I created https://github.com/dwijnand/sbt-console-exit, in all it's glory.
So.. "solved"?

Someone complained once (or twice) about the way REPL hijacks $colon. For instance, :: is an error but  :: is ::.type. Since they're separating the JLine dependency this week -- I'm not sure what made it urgent -- and there is an interface, it might be interesting if the interface, besides history and completion, handled command dispatch.
You could plug in a reader where shift-enter means execute the line as a command, for instance. Or, I guess you could supply a reader that maps :q to exit. I'd like one that handles :q!, actually.

With sbt-console-exit installed you can exist both sbt shell and sbt console with exit, so closing.


DISCORD ACCROSS PROJECT, OTHERS

To be consulted

Discord Github welcome
Discord French navbar
Discord ISTIC Materials

Completion required

SEM 4 - IOT IRS
SEM 5 - IOT IRS

@BytM3 can you do the above plz?

https://discord.gg/NE95VdWS8V

@BytM3
We need sem4&5 similar to prev ones plz
Also the disc link in en ver unincluded yet
#58


readme:add more dependencies

On Debian Linux 9, the autoconf and libtool package is needed (selecting
to install autoconf will also install automake).

Thanks @andy5995. I've added these instructions to the README already. Your help is much appreciated!


Normalize automatic, internal tracer tags to use the lightstep.* prefix

@bensigelman : this is a simple change to normalize the internal LightStep tracer tags to use the lightstep.* prefix.  The normalized names allows the LightStep UI to expose what client library was generating the spans in question.
I wasn't able to test this due possibly to a bit of naïveté on my part perhaps, but in any case HEAD in lightstep-tracer does not build against HEAD of opentracing-go / basictracer-go at the moment and, due to the lack of locked versioning in Go, I don't know what commit it is supposed to be building against (thus I could not build it).
May I pass this PR off to you to be merged into and tested along with the next update to the client library?

LGTM. I will adopt and merge this "soon".

@bcronin I'm not sure what you mean about the build being broken... I pulled your branch and everything seems ok:
bhs@bhs-personal:~/git/lightstep/go/src$ go build github.com/lightstep/lightstep-tracer-go/...
bhs@bhs-personal:~/git/lightstep/go/src$ go test github.com/lightstep/lightstep-tracer-go/...
ok  	github.com/lightstep/lightstep-tracer-go	0.081s
?   	github.com/lightstep/lightstep-tracer-go/examples	[no test files]
?   	github.com/lightstep/lightstep-tracer-go/lightstep_thrift	[no test files]
ok  	github.com/lightstep/lightstep-tracer-go/thrift_0_9_2/lib/go/thrift	0.028s
bhs@bhs-personal:~/git/lightstep/go/src$

So I guess I'll just merge this... maybe your basictracer and opentracing-go repos weren't up to date?


Performance degradation | subprocess.call()

The requirement is to convert PDF to PNG using ImageMagick on Azure WebApp for Containers.
Using base image: ubuntu:16.04
This works perfectly fine on a VM but takes too long on Azure WebApp for Containers. (with similar configurations). Since custom image is being used, everything is the same.
The following method is the slowest:
subprocess.call([
"convert",
"-density",
"{}".format(resolution),
tmpfilepath_pdf,
tmpfilepath_png,])
The temporary files are saved in the container file system itself. (No volume mounted.)
There is not much improvement when using Premium App Service Plan as well.
Python Version: 3.6.1

@gkgaurav31 this repo is dedicated to Azure Functions only. Please use the channels here - https://azure.microsoft.com/en-us/support/create-ticket/ to create a support ticket for Web Apps for Containers.


The other forms don't work

Situation
 When another form than that for SensorML is opened.

Action
 Clicking on the button "save locally"

Error
 Either nothing happens (like form "software")  or no values are inserted into the XML document and this file is not named according to the title element within the form (like form "dataset").

Situation
 When another form than that for SensorML is opened.

Action
 Clicking on the button "publish"

Error
 The validation does not work. Edited text fields are not recognized (like form "dataset") or nothing happens (like form "software").

fixed


Handle stale managedPDB definitions

In the reconcile loop there are cases where we are attempting to update a managed PDB that has already been updated in the cluster by something else. This results in the following error:
time="2024-07-17T14:20:46Z" level=error msg="Failed to update PDB: Operation cannot be fulfilled on poddisruptionbudgets.policy \"my-cool-deployment-pdb-controller\": the object has been modified; please apply your changes to the latest version and try again"

This error is mostly harmless since another run of the reconcile loop will usually resolve the error but this change will reduce the noise from the error messages and speed up the time to reconcile PDBs which might have needed multiple reconcile loops to finish their update before.
I have been running this change in our own clusters for a week now and since then we have not received any more of the above errors.

👍

:+1:

@mikkeloscar I think we need to tag it. Do you do this manually?


macOS: camera with shear not working

This is still broken on macOS and will minimally need a quick follow up for that.

Originally posted by @tychedelia in https://github.com/bevyengine/bevy/pull/15537#issuecomment-2386389530

I suspect that this is a scale factor bug, not a MacOS bug, but Mac is the most common platform with scale factors on by default.

Its reproducible on Linux by adding the following to the Window initialization.
resolution: WindowResolution::new(WINDOW_WIDTH, WINDOW_HEIGHT)
                        .with_scale_factor_override(2.0),

Will start work on making the example more robust now 👍


change Shairport defaults with Variables

Hi @nicokaiser - fantastic project - I have been looking for a solution to have these sound sources for ages, and you make it sooooo easy - many thanks!
Rather than hack my own fork just for my own needs, I thought I would change the Shairport script a little to make it a) more variable driven and b) have defaults that can be overridden.
If a user takes this new script and uses it in the old way, it works just as before. However it allows them to change the behaviour just a little, to tweak it for their own needs. Have a look at the ReadMe to see how. I hope you agree that I have tried to keep the script as simple as possible, with just a list of what can be overriden at the top, and the defaults if the user specifies nothing.
I welcome your comments
Thanks, Art

Thanks for the great PR! I'll merge it and also update the default shairport-sync version to 3.3.5.


[DOCFIX] Add ZTE and Ceph info in Powered-By-Alluxio.md cn version

Add ZTE and Ceph info in Powered-By-Alluxio.md cn version
Forgot to push cn version in #6516 , sorry about that.
Signed-off-by: Luo Kexue<EMAIL_ADDRESS>

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17776/
Test PASSed.


PriorityMux now uses [T <: Bits]; but unable to coax Bundle to [T <: Bits] to approximate old Chisel2 behavior

I have code that works in Chisel2, but won't compile in Chisel3 (and no compatibility warning).
Chisel2's PriorityMux uses a [T <: Data], but Chisel3 uses [T <: Bits].  What's the rational behind this, and what's the idiomatic way to achieve the old behavior?
Error Message:
[error] /scratch/celio/boom-chisel3-chip/boom/src/main/scala/tage.scala:220: overloaded method value apply with alternatives:
[error]   [T <: Chisel.Bits](sel: Chisel.Bits, in: Seq[T])T <and>
[error]   [T <: Chisel.Bits](sel: Seq[Chisel.Bool], in: Seq[T])T
[error]  cannot be applied to (scala.collection.immutable.IndexedSeq[Chisel.Bool], scala.collection.immutable.IndexedSeq[boom.TageTableResp])
[error]    val best_prediction_bits = PriorityMux(valids.reverse, predictions.reverse)
[error]                               ^

The definition of a TageTableResp:
class TageTableResp(fetch_width: Int, history_length: Int, index_length: Int, tag_sz: Int)(implicit p: Parameters)
   extends BoomBundle()(p)
{
   val takens  = UInt(width = fetch_width)  // the actual prediction
   val index   = UInt(width = index_length) // the index of the prediction
   val tag     = UInt(width = tag_sz)       // the tag we computed for the prediction

   override def cloneType: this.type = new TageTableResp(fetch_width, history_length, index_length, tag_sz).asInstanceOf[this.type]
}

I'm using commit 0ad47ff929aa084d6aff4d378b32968ef19b97c7, but I don't think this is different from current master.

This was resolved by 3b10267257de7662abbbc235d9bfd8a8b89f69f5

Thanks, I guess I was on the wrong commit on github when I was looking at Mux.scala.


Drawing App

Related Issue

Info about Issue or bug
I've added the drawing app as an additional project using Javascript.

Closes: #[issue number that will be closed through this PR]
#1908
Describe the changes you've made
A clear and concise description of what you have done to successfully close your assigned issue. Any new files? or anything you feel to let us know!
I've added all the files in this project.The project is drawing app using Javascript. There is an small canvas that let user can do anything they want. The user can draw and erase their painting.Reset option also provided.The slider can increase or decrease the paint color fill.
Describe if there is any unusual behaviour of your code(Write NA if there isn't)
A clear and concise description of it.
NA
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] New and existing unit tests pass locally with my changes.

Screenshots
Put any screenshot(s) of the project here.

I've done the changes. Please check sir

Done


add line_width and point_radius visual options in time series panel

Overview
This PR experiments with using MUI Sliders for two new visual options in our TimeSeriesChart panel. Currently, the new properties are grouped inside 'visual' and called line_width and point_radius. These control line size and symbol size (on hover).
In the future, other options will be added inside visual, such as visual.type, 'line', 'bar', or 'scatter'. When these options are added, the ECharts series type will be customizable and point_radius will also control scatterplot symbolSize.
Screenshots

https://user-images.githubusercontent.com/9369625/201696472-83b001e6-1106-41c6-8e2d-d3b907ba2c72.mp4

Ah that's a really cool feature !
I think, we might want to share this kind of config across all TimeSeriesChart don't you think @sjcobb ?


CI: Test installations

This PR:

adds installation tests for (latest and old) Ubuntu and Mac (opam on Ubuntu 20.04 is quite old)
fixes setup.sh
configure bors

bors try

bors try

bors try-

bors try

bors try-

bors try-

bors try

bors +r

bors try

bors r+

bors +r

bors r+


Update to Gradle 7

Is your feature request related to a problem? Please describe.
The OpenSearch Plugins are still built using Gradle 6.6.x whereas the Gradle release train has moved to 7.x already. The OpenSearch core is about to be switched to Gradle 7.3 (see please opensearch-project/OpenSearch#1609), it would make sense to switch all plugins to Gradle 7.3 as well.
Describe the solution you'd like
Update Gradle to 7.3
Describe alternatives you've considered (Optional)
N/A
Additional context
See please opensearch-project/OpenSearch#1246 and https://github.com/opensearch-project/opensearch-plugins/issues/107

@aksingh-es closing this, feel free to re-open if there is anything left for gradle 7 upgrade


Unable to remove album from library

What version of Music Assistant has the issue?
2.0.0b117
What version of the Home Assistant Integration have you got installed?
2024.3.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
When trying to remove an album, the album fails to be removed and remains in my library.
May be related to https://github.com/music-assistant/hass-music-assistant/issues/1974
How to reproduce
I already had  the album "Liquid Swords - GZA in my library from liking it in Spotify and MA syncing it.

Visit the album in Music Assistant
Press the 'more' kebab menu and press 'Remove from library'

Music Providers
Spotify
Player Providers
N/A
Full log output
Relevant execption from log
2024-03-21 14:25:08.634 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/library/remove_item: 400, message='Bad Request', url=URL('https://api.spotify.com/v1/me/albums')
MA log
log2.txt
Frontend command for removal:
    "command": "music/library/remove_item",
    "message_id": 21,
    "args": {
        "media_type": "album",
        "library_item_id": "13"
    }
}```

### Additional information

_No response_

### What version of Home Assistant Core are your running

2024.3.1

### What type of installation are you running?

Home Assistant OS

### On what type of hardware are you running?

Raspberry Pi

Marcel believes this is fixed. We will close this soon unless advised otherwise


4 issues

3 issues

lacking easy conversion from PointerString to AbstractString
what is the 'valid' conn_string anyway? Any combination of its attributes invokes an ODBC admin window (NOPROMPT does not function as desired?)
conversion to DataFrames raises errors related to isna(): ERROR: MethodError: isna has no method matching isna(::Tuple{PointerString{UInt16},Float64,PointerString{UInt16}}, ::Int64)

win10 x64

I don't think it makes sense to convert to an abstract type.  Conversions should be to concrete types, such as ASCIIString, UTF8String or UTF16String.

How to access the returned values then?
The following looks intimidating
3-element Array{NullableArrays.NullableArray{T,1},1}:
NullableArrays.NullableArray{PointerString{UInt16},1}Nullable{PointerString{UInt16}}[]
NullableArrays.NullableArray{PointerString{UInt16},1}Nullable{PointerString{UInt16}}[]
NullableArrays.NullableArray{PointerString{UInt16},1}Nullable{PointerString{UInt16}}[]

to convert from PointerString (now WeakRefString), just do string(x)
Please clarify what issue or question you have here
Should be fixed by 99120a1febda35407fe0a963a51e3337aaeb8901

Basically, the questions is how to exclude the ODBC admin window when connecting to a specific db. Looking at the source codes there's no way right now, am i right?


"hint" should work on monitor

I noticed that this doesn't currently work, but as we discussed in discord this would be a nice improvement, so marking it here.

What do you mean "on monitor"? Is that an input type? an action? a device?

I should have linked to the Discord discussion... I'll dig it up and do that today.
Monitor is one of the plugins demoed in the storybook, and can display a real-time chart of the output of a no-argument function. I think I wanted a hint to pop up on hover?


Setting multiple category order hints for a product does not work

Right now the sync for products can only generate one action per action type, which means that there can only one setCategoryOrderHint action per sync.
So when I try to set order hints for two categories, only one of them gets actually set.
I already did some digging, and the problem seems to be that for each "base action" there is only one action generated. This works fine for most base attributes (that are not some kind of list), but not for categoryOrderHints.

https://github.com/sphereio/sphere-node-sdk/releases/tag/v1.15.3


PeerManager._monitor_peer can get cancelled if remote peer closes transport unluckily

As in title, if a server peer closes the transport/session with us while we are testing if it is a valid peer, we might never re-test that server again, as PeerManager._monitor_peer can get cancelled.
PeerManager._monitor_peer is the task responsible to, well, monitor a server peer:
https://github.com/spesmilo/electrumx/blob/c0705734c899a435adafc66953a56b1286a9cea6/electrumx/server/peers.py#L231
periodically it calls _should_drop_peer:
https://github.com/spesmilo/electrumx/blob/c0705734c899a435adafc66953a56b1286a9cea6/electrumx/server/peers.py#L234
which tries to establish a session with the remote server peer and run some sanity check RPCs on it:
https://github.com/spesmilo/electrumx/blob/c0705734c899a435adafc66953a56b1286a9cea6/electrumx/server/peers.py#L274-L279
Consider the following scenario:
connect_rs succeeds establishing a session.
_verify_peer is called and entered.
and then near the end of _verify_peer this line runs:
https://github.com/spesmilo/electrumx/blob/c0705734c899a435adafc66953a56b1286a9cea6/electrumx/server/peers.py#L383
we have sent the request and are waiting for the response.
Meanwhile, the remote peer closes the transport, and connection_lost gets called:
https://github.com/kyuupichan/aiorpcX/blob/bd2185aaeb7cd8b18e24866c4a04387650ff4834/aiorpcx/session.py#L509-L512
This will result in cancelling all pending requests; in practice:
await session.send_request will raise an asyncio.CancelledError
https://github.com/spesmilo/electrumx/blob/c0705734c899a435adafc66953a56b1286a9cea6/electrumx/server/peers.py#L383
This CancelledError will then propagate out fully to _monitor_peer and even get that cancelled.
(it stops propagating further due to the enclosing TaskGroup).
As _monitor_peer is now cancelled, (and the peer remains in our peer list), this peer will now never be retried again.

@SomberNight my candidate fix should mark these as bad. I don't know if that's the perfect fit for them, but it might be reasonable to assume that they'll continue to respond like this.

note: kyuupichan did this instead: https://github.com/kyuupichan/electrumx/commit/7dcf50fd8213cbacf14592f553567c8ea2ab7bd1


[AutoPR storagesync/resource-manager] Microsoft.StorageSync 2019-06-01 API version

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/7337

(message created by the CI based on PR content)


Adds RegexBuilder.

Makes regular expressions more readable.
Helps with debugging #323.

Lets hold off on this one till after the beta.

Closing this as the issue is fixed in #680.


Change filter in view "Library resources by provider" to allow OR conditions

(From @lisettemeij conversation)
The view "Library resources by provider" (drupal\modules\landlibrary\views\by_providers.inc) filters the Land Library Resources (LLR) that has as Data Provider (field_doc_provider) the organization selected.
https://landportal.info/organization/global-land-tool-network
It is wanted to change the contextual filter to on the organizational profiles not just where the organization is listed as ‘data provider’, but also ‘publisher’ or ‘corporate author'.
Drupal 7 contextual filters are applied in AND logic, and change to use OR logic is not be possible using the UI.
Some hopefully helpful links:
http://stackoverflow.com/questions/13531828/drupal-7-views-contextual-filters-or-logic
https://www.drupal.org/project/views_contextual_filters_or
http://dropbucket.org/node/955

Just wanted to add this again, but see it's already open here. Just want to give this issue a boost - it would be a relatively simple (I think), but great improvement.

Hi both,
Yes this have not been high on the list of priorities so far.
Nonetheless there is been some 'ground' work (related to LLR and Organization entity reference links) that should allow us to do those sort of things better now.
For this specific page / view you are talking about, we need to re-do the view using those new references.
In general the contextual filters in our views aren't very well implemented and the library ones (at least in 3, 4, maybe even 5 views?)  needs to be reviewed and maybe updated.
If this is not done correctly (specifically for the ones related to LLR-Organizations) this can have a huge impact on the DB performance (which is why I actually did some work on this just prior to the website update - around the team meeting in Roma).
@lisettemeij : yes it might seem trivial but no, it is not necessarily easy to do. Sometimes (most of the time) "simple things" to a human mind requires quite some work for a computer (that's maybe why they haven't turned all of us into slaves yet ;).
Once we update that we should be able to have much more accurate filters as well (only show possible options for instance...).

@jcr this is ready with the https://www.drupal.org/project/views_contextual_filters_or module now
(updated the make file)

fixed, on GLTN we now have 161


Doesn't play nice with octane

Describe the bug
Card interactive and elevation doesn't work with Octane.  Yes, this is a bit bleeding-edge, but I'm doing a POC, so I'm trying the latest everything.
To Reproduce
Steps to reproduce the behavior:

ember new test-ui -b @ember/octane-app-blueprint --yarn
ember install ember-cli-sass
ember install ember-elements
Change application.hbs to:

<Card @elevation={{2}}>Hello</Card>

Expected behavior
Card should display drop shadow.
Desktop (please complete the following information):

OS: macOS
Browser Chrome
Version 73.0.3683.103

Hi @BryanHunt  Thanks for opening this issue! Our current addon version does not support with ember octane due to some of the decorators. It is not compacting with ember octane so planing to inherit Ember's built in decorators.
#34

@BryanHunt
Though we were caught up in the midst of the transition to Octane, rest assured Ember Elements will be Octane ready.


refactor: Make data field of RouteContext public

I specifically need this to call state.put in a durable object, I could also use a mutable getter, but there doesn't seem to be any reason why this field isn't public. It's just user supplied data after all, the framework doesn't have any expectations about how it can change. If for some reason a mutable getter (or something else) would be preferable, I'm happy to change this PR to do that instead.
I left the old getter in place for backwards compatibility, but with a deprecation warning, since using a getter when the field is directly available is unnecessary.

Hi @gmorenz - thanks for the PR! Could you provide a bit more context as to how this is related to state.put in your Worker? Even a stripped down code example would do. Just curious how you're using data here. I'm in favor of accepting the PR as-is, but would be great to know what you've run into.
Thanks!

Ah, this is embarrassing, I don't technically need it for that API and misread the docs to think that I did when writing up the justification for the commit (specifically I saw that storage.put takes an &mut self, and looked over the fact that state.storage returns an owned copy...).
I do need it because I wrapped that API in a caching layer, and that caching layer assumes mutable access to data. More generally I need it for mutable access to data stored in memory used by multiple endpoint handlers at all (see the comments in async fn fetch for the data access pattern)
I also copy and pasted the caching layer, and put an example of it being used in, though it's really just serving as an example of "and I want mutable access to in memory data". I left some TODOs in the implementation of the caching layer about potential improvements to this library because they might be of interest, but they're not related to this issue.
Will fix the commit message to be more accurate.
#[durable_object]
pub struct Chronicle {
    state: State
    some_counter: DurableValue<u32, { DurableKey("") }>,
}

#[durable_object]
impl DurableObject for Chronicle {
    fn new(state: State, env: Env)->Self {
        set_panic_hook();
        Chronicle {
            state,
            some_counter: Default::default(),
        }
    }

    async fn fetch(&mut self, req: Request) -> Result<Response> {
        let router = Router::with_data(self);
        router
            .get_async("/history/:idx", |_req, ctx| async move {
                 // Need mutable access to self here,  for example

                let mut storage = self.state.storage();
                let pv = self.some_counter.get(&storage).await? + 1;
                self.some_counter.set(&mut storage, pv).await?;
            })
            .get_async("/", |_req, ctx| async move {
                // And also need mutable access to self here, so I can't just capture it.
            })
            .run(req, env)
            .await
    }
}

// Caching layer

/// Workaround for rustc bug in the incomplete feature
/// where bare lifetimes in the const generic break things.
#[derive(PartialEq, Eq)]
pub struct DurableKey(pub &'static str);

#[derive(Default)]
pub struct DurableValue<T, const KEY: DurableKey>
where T: Default + for <'a> Deserialize<'a> + Serialize {
    value: Option<T>
}

impl<T, const KEY: DurableKey> DurableValue<T, KEY>
where T: Default + for <'a> Deserialize<'a> + Serialize {
    pub fn get<'this, 'store>(&'this mut self, storage: &'store Storage) -> impl Future<Output=Result<&'this T>> + 'store
    where 'this: 'store {
        async move {
            // Try and use stored value
            if let Some(ref v) = self.value {
                return Ok(v);
            }

            // First run of this in-memory instance, get the pv from storage
            // TODO: The JS api has an options field, which allows disabling cloudflares cache.
            // Since we cache internally, we should pass that option.
            let val = match storage.get(KEY.0).await {
                Ok(v) => v,
                Err(Error::JsError(msg)) if msg == "No such value in storage." => {
                    // First use overall, it's the default value
                    T::default()
                },
                Err(e) => return Err(e)
            };

            // Store and return reference to value
            self.value = Some(val);
            Ok(self.value.as_ref().unwrap()) // Not None because we just set it
        }
    }

    pub async fn set(&mut self, storage: &mut Storage, val: T) -> Result<()> {
        // TODO: The JS api has an options field, which allows disabling cloudflares cache.
        // Since we cache internally, we should pass that option.

        // TODO: By ignoring the JS promise, we wou8ld avoid waiting on it to write to disk until
        // the *next* time we call an await. That might be a pretty big performance gain,
        // but TODO: We should benchmark if this matters.
        //
        // We can't do that right now, because the rust API will only call the JS api if we
        // await on the future, and it will then at the same time await the promise.
        //
        // On the other hand, too many outstanding puts is "an issue", in that it could make
        // us exceed our 128MB memory limit and crash the whole worker. This seems like a
        // pretty theoretical concern.
        //
        // While we're at it, does this even need to return a Result, is it possible for us
        // to have an error returned?
        storage.put(KEY.0, &val).await?;
        self.value = Some(val);
        Ok(())
    }
}

Ok, I don't have any issue with making the field public. Thanks for the PR and your description - your project looks interesting! Would like to see more if/when you're ready to share :)


Grafana: Database not found; keenetic

Hello!
I carefully followed the steps in the readme. Everything seems to be running and no noticeable errors in the container's logs. However grafana dashboard says: "Status: 500. Message: database not found: keenetic" while the connection to the InfluxDB datasource seems to be OK (but no measurements found...)

Seems like some configuration issue, can you please help to troubleshoot?

OK, this seems to be resolved, by changing the query language to Flux. However, I do not see the collector adding the data to the DB... Is there a way to ckeck it?

update influx db to 2.7.11 in docker-compose

  influxdb:
    image: 'influxdb:2.7.11'
    volumes:
      - ./_data/influxdb:/var/lib/influxdb
    ports:
      - 8086:8086
    environment:
      - DOCKER_INFLUXDB_INIT_MODE=setup
      - DOCKER_INFLUXDB_INIT_ORG=keenetic
      - DOCKER_INFLUXDB_INIT_BUCKET=keenetic
      - DOCKER_INFLUXDB_INIT_RETENTION=52w
      - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=admin_token
      - DOCKER_INFLUXDB_INIT_USERNAME=admin
      - DOCKER_INFLUXDB_INIT_PASSWORD=password


TFRS - Task - Dashboard compliance reports load time#2037

dashboard slow temp FE fix.

@AlexZorkin Do you have example on how it should look ?


Include params

Hi,
I'm trying to use your plugin with multiple params like:
{% include_absolute path item="static" %}
and it's throwing a parsing error, since it understands params as file too:
Liquid Exception: No such file or directory @ rb_sysope...
Do you know how could I get that?

I've refactored the plugin, re-based it on the original include plugin from Jekyll to add support for parameters. See pull request #4.
Better late than never ;)

Thanks @maartenbrakkee, closing this ticket


Build failure with XBYAK_NO_EXCEPTION

First of all, thanks for quickly extending the Cpu data structure to 128bits.
But it seems the commit 095ebbf broke the build with XBYAK_NO_EXCEPTION.
Example: Below build runs fine on 3ea8e45
make -C sample profiler CXXFLAGS='-DXBYAK_NO_EXCEPTION=1 '
But fails with below error on 095ebbf
In file included from ../xbyak/xbyak_util.h:21:0,
                 from profiler.cpp:9:
../xbyak/xbyak_util.h: In member function ‘unsigned int Xbyak::util::local::CpuT<dummy>::getNumCores(Xbyak::util::IntelCpuTopologyLevel) const’:
../xbyak/xbyak.h:299:35: error: ‘SetError’ is not a member of ‘Xbyak::util::local’
 #define XBYAK_THROW_RET(err, r) { local::SetError(err); return r; }
                                   ^
../xbyak/xbyak_util.h:295:27: note: in expansion of macro ‘XBYAK_THROW_RET’
   if (!x2APIC_supported_) XBYAK_THROW_RET(ERR_X2APIC_IS_NOT_SUPPORTED, 0)
                           ^
../xbyak/xbyak.h:299:35: note: suggested alternative:
 #define XBYAK_THROW_RET(err, r) { local::SetError(err); return r; }
                                   ^
../xbyak/xbyak_util.h:295:27: note: in expansion of macro ‘XBYAK_THROW_RET’
   if (!x2APIC_supported_) XBYAK_THROW_RET(ERR_X2APIC_IS_NOT_SUPPORTED, 0)
                           ^
../xbyak/xbyak.h:286:13: note:   ‘Xbyak::local::SetError’
 inline void SetError(int err) {
             ^

Thank you for the report. I've fixed it at v6.051.

Thanks for the fix.


Python 3 support?

We received notice that AWS will be retiring support for python2.7 soon.  Will there be any support for python3???

looks like it's already there... thanks...


Use horizon ingest init-genesis-state command to make standalone ingestion faster

In https://github.com/stellar/docker-stellar-core-horizon/pull/164 I added a temporary fix for a standalone network ingestion.
Horizon is using the latest History Archive State for checking the latest checkpoint ledger however Stellar-Core does not publish HAS until ledger which sequence equals 63. Because of this, when starting a standalone network Horizon needs to wait around 5 minutes/63 ledgers to start ingesting. horizon ingest init-genesis-state command solves this issue by ingesting the genesis ledger of a given network so Horizon can start ingestion without waiting for Stellar-Core to publish the first checkpoint.
Use the new command in stellar/quickstart.

Fixed in https://github.com/stellar/docker-stellar-core-horizon/pull/194.


Automated schedule time - possible?

Hi Izak,
Can you use this webservice to send reports with a scheduled time?
So let say i want to have daily reports or on a specific time, can i enable this somewhere? Cannot find in the closed or opened issues.
Thanks
Ermal

No, you would have to do that using an external tool like cron and bash.


Build failure for using tailwind-merge package with @sentry/vite-plugin

I am trying to setup sentry vite plugin for release tracking and sourcemaps data, but the build fails when I add config for it.
Environment
What version are you running?
"@sentry/vite-plugin": "^2.2.0",
"vite": "^4.3.9"
"tailwind-merge": "^1.12.0",

Steps to Reproduce
Using it in Astro project which uses vite. Setup is like this -
import { loadEnv } from 'vite';
import { sentryVitePlugin } from '@sentry/vite-plugin';

const env = loadEnv('production', process.cwd());

export default defineConfig({
  ...
  vite: {
    plugins: [
      sentryVitePlugin({
        org: 'org-name',
        project: 'project-name',
        authToken: env.SENTRY_AUTH_TOKEN,
        telemetry: false,
      }),
    ],
    build: {
      sourcemap: true,
    },
  },
  output: 'hybrid',
  adapter: cloudflare(),
});

The build failure happens after the sourcemaps are uploaded and client build starts.
Expected Result
Build should succeed.
Actual Result
Error while building client.
 building client
rendering chunks (4)...[vite:esbuild-transpile] Transform failed with 1 error:
_astro/tw-merge.!~{00a}~.js:2515:27: ERROR: Unexpected ";"

Unexpected ";"
2513|  }
2514|
2515|  var twMerge = /*#__PURE__*/;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3c9ff831-910b-4bcd-ae80-dc76a3e35d59",e._sentryDebugIdIdentifier="sentry-dbid-3c9ff831-910b-4bcd-ae80-dc76a3e35d59")}catch(e){}}();createTailwindMerge(getDefaultConfig);
   |                             ^
2516|
2517|  export { twMerge as t };

rendering chunks (9)... error   Unexpected ";"
  File:
    _astro/tw-merge.!~{00a}~.js:2515:27
 ELIFECYCLE  Command failed with exit code 1.

I have confirmed that it only fails when tailwind-merge is present as deps and used, when I remove it then the build succeeds
The corresponding issue opened on tailwind-merge package and response from the author is here

Hey @AkashRajpurohit! 👋
tailwind-merge only outputs this code (source here)
var twMerge = createTailwindMerge(getDefaultConfig)

which should be correct.
The part in the middle
/*#__PURE__*/;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3c9ff831-910b-4bcd-ae80-dc76a3e35d59",e._sentryDebugIdIdentifier="sentry-dbid-3c9ff831-910b-4bcd-ae80-dc76a3e35d59")}catch(e){}}();

seems to be injected by Sentry (you see Sentry-related variable names in it, like _sentryDebugIds).
This is probably an issue with @sentry/vite-plugin, I'd suggest to open an issue in that repo instead to fix it.

Awesome, can we get it released as well, will try it once and verify it.

Please check out version 2.2.2 of the package which should have the fix for this issue!


Add Jade Wallet to list of wallets

Added to WalletConnect App Registry on commit: https://github.com/WalletConnect/walletconnect-registry/commit/37d3a5d741d308eb9ce562feb957afcebaefe04c