simple interest

Python Program for simple interest

Hello, and thank you for your interest! I closed this PR because it is not appropriate to add to this repository a script that is unrelated to the book content. I marked this PR as spam because this appears to be related to hacktoberfest, which has been generating a lot of noisy PRs lately. Please let me know if I've assumed incorrectly. All the best!


hanged payment

Good day!
Can I ask for some help with the issue happened today?
I created and confirmed with the password the payment to this address:
18S9MrhWc9guVzrd6oWssVjiYFmur16bcP
1EhjKFkhVuehMxqwLNAH6mii9YuH6bQ4fr
the payment details are at the attached pics 1.png and 2.png

After a minute or two (web-shop Newegg, where I sent this payment) confirmed that payment is being received.
So, I close your Wallet.
After two hours those web-shop sent me e-mail that payment was not received (and their terms are that you have some time, don't remember how much exactly, to complete the payment after that time send to address will be deleted).
I checked this payment with your wallet, the payment still has status sending and if open it details the status will be as at the pic3.

So what can be the reason and is it possible to cancel this payment or return my money back?
Thanks!
Best regards!

Hi @Basset41  , sorry to hear you are facing issues with MulitBit HD. I would suggest you contact the KeepKey Support Desk at https://keepkey.freshdesk.com/support/solutions


Implemented PlayerMoveEvent

Did you test this?

I tested it off course :smile:.
I tested the following:

Canceling the event. result: Makes it impossible to move.
Changing the location. result: teleports you to the new location.
Changing the rotation. result: whoops. fixing that now.
note: I am unsure about the injection point. Its like 1 line lower than where I wanted it to be. Not that it changes much to the behaviour.

Shouldn't changing the rotation teleport the player with rotation?


Cannot save new progress

I cannot save any new progress. Once I complete a challenge, I click submit and go to next challenge. When I go back to the curriculum page, it still shows the challenge as incomplete.
At the top of the page there is a blue banner that says "We cannot reach the server to update your progress at this time" (screenshot below)

Browser Name: Chrome
Browser Version: Version 78.0.3904.70
Operating System: OS X El Capitan 10.11.6

Are you sure you are logged in?

I'm having the same issue. Username 'timfau'.

The offline warning should only ever be triggered if you're not connected to the internet or not logged into your account.
@troncarter @TimFau could you go to https://www.freecodecamp.org/settings?  If you're not logged in it will ask you to.  If you are logged in you should see something like this:

Let us know whether or not you see "We cannot reach the server to update your progress at this time" after logging in.

I am logged in:

I still see the message:

Hmm I also tried logging out and back in and now I can't login at all:

Cleared cache/cookies/tried incognito, same thing.

@TimFau Ah... sorry to hear that.  It sounds like you'll need to contact support<EMAIL_ADDRESS>as you might have a duplicate account.  If so, they'll need to resolve that for you.  https://github.com/freeCodeCamp/freeCodeCamp/issues/37457 has some discussion about this.
It's difficult to tell exactly what was going on (why you were able to see the settings, but unable to submit challenges), but hopefully everything will be resolved once you can log in again.

Thank you! I'll reach out to them.

@troncarter Are you sure you are logged in? What is your username?

Yes I am logged in. Whenever I log in, it kicks me out. My username is troncarter

@troncarter Sounds like you may have a duplicate account.  Contact<EMAIL_ADDRESS>and explain that you are having trouble logging.  They will check to see if you have two accounts and merge them and delete one.

Hello, is anyone experiencing issues with React section? I not being able to run the tests  (it is freezing) and not being able to save my progress. Also, I tried to login to the forum to see if other students are experiencing the same issue, and cannot login to the forum either.

I may have found a workaround. It still logs me out whenever I click the 'freecodecamp' icon in the top nav bar. But if I click '/learn', it keeps me signed in - even after completing a challenge. It also seems to save the progress. Not sure if this is by design.
Regards

This is by design.


Fix cross compilation on linux

As mentioned in #1043, cross compilation was missing the necessary cmake flags to actually build for arm64

Thanks @rickardp!


neobundle fatal: unable to access 'https://github.com/tpope/vim-unimpaired.git/': Failed connect to github.com:443; Connecti on timed out

I modify let g:neobundle#install_process_timeout=6000,
but when I run :neobundle in vim  it often display  "unable to accsee git and  timeout "Could I manual download vim pulgins in .vim/bundle?

It is not neobundle problem.
It is just the network problem.  Closing.


Race Condition Related to Code Compilation

I believe that https://github.com/absinthe-graphql/absinthe_plug/commit/389a8442e5b1b0a77a1d7a27a8f893eb894a7559 introduced a regression between 1.5.0 and 1.5.1. This validity check causes schemas to be invalid if they have not yet been compiled. This is because Code.ensure_loaded? will return false when the schema module has not been compiled.
I was able to verify this in our codebase by inserting a sleep into Absinthe.Plug.valid_schema_module?/1. With the sleep inserted, our schema would be vaildated successfully. We were able to work around this problem by explicitly requiring the schema module in our Plug Router.
valid_schema_module?/1 is called within Absinthe.Plug.init/1 which is in turn called here https://github.com/elixir-plug/plug/blob/master/lib/plug/router.ex#L554 which occurs during macro expansion.
I believe this method will still work as expected without the call to Code.ensure_loaded?. However, if retaining that call is desirable, it might be worth improving the error message here and documenting that the schema module should be explicitly required before using Absinthe.Plug

Hey @wjdix yeah our various efforts to detect if it's the right module at compile time have always run into issues, I think we need to probably move the check to run time.

I think Code.ensure_compiled/1 could work for this purpose, but it would cause the initialization to hang until either the schema module was compiled or all modules were compiled. That might be desirable?

@wjdix We could, but it also can increase the amount of compile time linking that can occur. I'll test it out locally and see.

I think for this check, we really just care to validate that it's "correct" in that it's actually a schema module, not something else. That does seem to imply that we need the module to actually be compiled.

Here's a PR that switches to Code.ensure_compiled: https://github.com/absinthe-graphql/absinthe_plug/pull/240
What do you think @benwilson512 ?


Remove unnecessary check when scheduling

While reviewing some other code I noticed in a previous PR #6103, I added this check in EThread::schedule to keep it consistent with the behavior in EventProcessor::schedule.
https://github.com/apache/trafficserver/blob/master/iocore/eventsystem/P_UnixEThread.h#L99
But since we are setting e->ethread = this, this check becomes redundant.
https://github.com/apache/trafficserver/blob/master/iocore/eventsystem/P_UnixEThread.h#L82
And upon further consideration, I think it is better to revert to the old behavior to use enqueue rather than enqueue_local since there is a method dedicated to that EThread::schedule_local.
This may or may not have performance issues, we'll need further testing to verify that. However the problem addressed in #6103 isn't affected by this.

Closing this for now, need to rethink through this.


Supporting Swift 5.1 and Vapor 4

Vapor 4 is in the making (v4.0.0-alpha.3.2) and will leverage new features in Swift 5.1. I think it would be a good idea to start working on a new Vapor template as well as updating the library to use Swift 5.1 and its new features.

Implemented in 1.0.0-alpha.2


UBXMessageError: Undefined configuration database key 0x10010001

Hi,
I have a ZED-F9T module with which I have made a measurement via U-Center and produced a binary output log file containing both NMEA and UBX messages(the data). I can read the NMEA messages with pyubx2 without any problems (i.e. when portfilter=1), but when I try to read the UBX messages I get the error message shown below.
Is there a solution?
In [10]: from pyubx2 import UBXReader
In [11]: stream = open('Messung_Galileo_GPS.ubx', 'rb')
In [12]: ubr = UBXReader(stream, protfilter=2)
In [13]: for (raw_data, parsed_data) in ubr:
...:     print(parsed_data)
...:
<UBX(MON-VER)>
<UBX(MON-VER, swVersion=b'EXT CORE 1.00 (71b20c)\x00\x00\x00\x00\x00\x00\x00\x00', hwVersion=b'00190000\x00\x00', extension_01=b'ROM BASE 0x118B2060\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', extension_02=b'FWVER=TIM 2.01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', extension_03=b'PROTVER=29.00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', extension_04=b'MOD=ZED-F9T\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', extension_05=b'GPS;GLO;GAL;BDS\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', extension_06=b'SBAS;QZSS\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')>
<UBX(CFG-VALGET, version=0, layer=0, position=0)>
UBXMessageError                           Traceback (most recent call last)
 in
----> 1 for (raw_data, parsed_data) in ubr:
2     print(parsed_data)
3
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxreader.py in next(self)
86         """
87
---> 88         (raw_data, parsed_data) = self.read()
89         if raw_data is not None:
90             return (raw_data, parsed_data)
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxreader.py in read(self)
118                 # if it's a UBX message (b'\xb5\x62')
119                 if bytehdr == ubt.UBX_HDR:
--> 120                     (raw_data, parsed_data) = self._parse_ubx(bytehdr)
121                     # if protocol filter passes UBX, return message,
122                     # otherwise discard and continue
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxreader.py in _parse_ubx(self, hdr)
178         # only parse if we need to (filter passes UBX)
179         if self._protfilter & ubt.UBX_PROTOCOL:
--> 180             parsed_data = self.parse(
181                 raw_data,
182                 validate=self._validate,
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxreader.py in parse(message, **kwargs)
377             if payload is None:
378                 return UBXMessage(clsid, msgid, msgmode)
--> 379             return UBXMessage(
380                 clsid,
381                 msgid,
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxmessage.py in init(self, ubxClass, ubxID, msgmode, **kwargs)
79             self._ubxID = ubxID
80
---> 81         self._do_attributes(**kwargs)
82
83         self._immutable = True  # once initialised, object is immutable
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxmessage.py in _do_attributes(self, **kwargs)
104                 pdict = self._get_dict(**kwargs)  # get appropriate payload dict
105                 for key in pdict:  # process each attribute in dict
--> 106                     (offset, index) = self._set_attribute(
107                         offset, pdict, key, index, **kwargs
108                     )
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxmessage.py in _set_attribute(self, offset, pdict, key, index, **kwargs)
162                     )
163             else:  # repeating group of attributes
--> 164                 (offset, index) = self._set_attribute_group(
165                     att, offset, index, **kwargs
166                 )
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxmessage.py in _set_attribute_group(self, att, offset, index, **kwargs)
194             and self._mode == ubt.GET
195         ):
--> 196             self._set_attribute_cfgval(offset, **kwargs)
197         else:
198             # derive or retrieve number of items in group
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxmessage.py in _set_attribute_cfgval(self, offset, **kwargs)
460                     self._payload[offset : offset + KEYLEN], "little", signed=False
461                 )
--> 462                 (keyname, att) = cfgkey2name(key)
463                 atts = attsiz(att)
464                 valb = self._payload[offset + KEYLEN : offset + KEYLEN + atts]
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyubx2/ubxhelpers.py in cfgkey2name(keyID)
374         if keyID == kid:
375             return (key, typ)
--> 376     raise ube.UBXMessageError(f"Undefined configuration database key {hex(keyID)}")
377
378
UBXMessageError: Undefined configuration database key 0x10010001

Hi @sciqader
Can you clarify exactly how you produced this extract file and what specifically you were looking to achieve?
In addition to the NMEA output messages (which, as you say, parse OK), it appears to contain a combination of both CFG-VALGET POLL messages (i.e. queries to the receiver), their ACK-ACK GET acknowledgements and their corresponding CFG-VALGET GET responses (i.e. outputs from the receiver). The extract appears to contain a complete dump of every single UBX configuration database entry (of which there are well over a thousand) - was that your intention?
As explained in the README, for technical reasons pyubx2 defines UBX messages according to three categories - GET (outputs from the receiver), SET (commands to the receiver) and POLL (queries to the receiver). pyubx2 can only parse one of these categories of message in a single pass, as set by the msgmode keyword parameter (which defaults to GET) - either GET or POLL or SET, but not a combination of these in the same file.
I'm not entirely sure if this is the cause of the problem you're seeing, but having a mix of POLL and GET messages in the same file will certainly cause errors. Are you able to produce an extract file containing ONLY the CFG-VALGET outputs from your receiver and check if that parses OK?

Hi @sciqader
I'm guessing you're using the File..Save or Record facility in u-center 21.09 to produce your .ubx dump file, with the 'Add Receiver Configuration' option set to 'Yes'. When you select Save or Record in u-center 21.09, a pop-up appears asking you whether or not you want to save the complete configuration in the logfile - this is used by u-blox for debugging purposes (the default response is 'Yes'):

If you select 'No' here, the resulting .ubx file should NOT include all the CFG-VALGET POLL/GET messages and pyubx2 should be able to parse it successfully. Try this and let me know how you get on.

By the way, you may want to consider using our PyGPSClient GUI application rather than u-center to do your UBX receiver configuration and data logging. It provides quick and easy ways to enable specific UBX message types and is capable of producing log files in a variety of formats. And unlike u-center, It also runs on MacOS, Linux, Raspberry Pi as well as Windows.
https://github.com/semuconsulting/PyGPSClient

Hi @sciqader
I'm guessing you're using the File..Save or Record facility in u-center 21.09 to produce your .ubx dump file, with the 'Add Receiver Configuration' option set to 'Yes'. When you select Save or Record in u-center 21.09, a pop-up appears asking you whether or not you want to save the complete configuration in the logfile - this is used by u-blox for debugging purposes (the default response is 'Yes'):

If you select 'No' here, the resulting .ubx file should NOT include all the CFG-VALGET POLL/GET messages and pyubx2 should be able to parse it successfully. Try this and let me know how you get on.

Hi @semuadmin,
Thank you for your valuable suggestion. It has solved the problem!
I will also check out the PyGPSClient.
I really appreciate your time.

OK glad it's sorted.  I'll close the issue now if that's OK.

Hi @sciqader
For future reference, I have now uploaded an enhancement to the pyubx2 library (v1.2.16) which means it can now accommodate the undocumented debug message classes and configuration database keys which are present in a default u-center .ubx log file - i.e. the messages that were causing your code to fail earlier.
I would still recommend selecting 'No' to the 'Add Receiver Configuration' prompt when saving u-center .ubx files for the sake of brevity, unless your intention is to send them to u-blox technical support.

Hello @semuadmin
Thank you for your message and the enhancement of the pyubx2 package.
I have just tested the new version and can confirm that it also works for log files containing configuration database keys.
I appreciate your support very much.
Have a nice start to the week!


WIP: Support for LDAP groups in user and admin filter

Try to implement LDAP group support as documented.
See https://github.com/go-gitea/gitea/issues/2212 and https://docs.gitea.io/en-us/authentication/

Codecov Report

Merging #7307 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7307      +/-   ##
==========================================
- Coverage   41.24%   41.23%   -0.01%
==========================================
  Files         464      464
  Lines       62841    62841
==========================================
- Hits        25917    25915       -2
- Misses      33533    33535       +2
  Partials     3391     3391

Impacted Files
Coverage Δ

modules/log/event.go
64.61% <0%> (-1.03%)
:arrow_down:

Continue to review full report at Codecov.

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


Edit the Quick start page

Create the structure of the quick start page, but only once the walkthrough is complete.

Fixed this with #69


Adding control properties API

This PR adds the control properties API.
Fixes #47
https://user-images.githubusercontent.com/835641/115445969-eb7b1d00-a1ec-11eb-8f32-2ef8bdf04b71.mov

Thanks for the review @tyemy and @jeffs-sf I have applied the suggestions.


Add an -imagetemplate option to allow for more flexible test image locations.

Some systems do weird things and or I could imagine somebody does not want to "pollute" their repository with test images. I for instance wanted to prefix images with knative-serving-test, but the current code doesn't allow for that.
This adds a templating option which gives a little more flexibility for running the tests.

/test pull-knative-pkg-unit-tests

Tested for non-breakage here: https://github.com/knative/serving/pull/6102


Prksingh/issue 10617,10590

Disabling "text drag and drop" through its preference to resolve #10617 and #10590

I think some changes got pushed to this branch unwantedly. Closing this PR. Please reupload the PR again.


In dependencies example for README, publish the current released version to use instead of using a $version tag

Environment Information
Android studio 4
Please provide a reproduction of the bug:
https://github.com/microsoft/fluentui-android#1-using-gradle
says to use implementation 'com.microsoft.fluentui:FluentUIAndroid:$version'
Well obviously that won't work.  Below it says to use the correct version.  Just put in the correct version instead of having the user hunt the tags or search mvnrepository.
Actual behavior:
error
Expected behavior:
no error
Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No) yes
Requested priority: (Blocking, High, Normal, Low)low
Products/applications affected: (if applicable)anyone trying out your getting started section

The README has been created in a generic way instead of specifying a fixed version, so that the user can plug in the required version as per need. Closing this issue! Feel free to reopen if there are further questions! Thanks!


Refactor ecma_regexp_exec_helper arguments

We use pointers instead of ecma_value_t
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi<EMAIL_ADDRESS>

I believe the ignore_global argument is no longer used, could you also remove that?

Of course, i removed the flag.


Use already defined TinyMCE style_formats

If another module defines their own style formats in the default TinyMCE config (added in 0.7.6, see https://gitlab.com/foundrynet/foundryvtt/-/issues/3808), the previous code would overwrite them. This change will make use of the pre-defined custom style formats rather than overwriting them.

oh, there's a CONFIG.TinyMCE.style_formats now?
As this was added in 0.7.6, can you also change the minimumCoreVersion to that?
Also, should Polyglot add its style to that config instead of overwriting the variable?

oh, there's a CONFIG.TinyMCE.style_formats now?
As this was added in 0.7.6, can you also change the minimumCoreVersion to that?
Also, should Polyglot add its style to that config instead of overwriting the variable?

oh, there's a CONFIG.TinyMCE.style_formats now?
As this was added in 0.7.6, can you also change the minimumCoreVersion to that?
Also, should Polyglot add its style to that config instead of overwriting the variable?

Yes, I'll change the minimumCoreVersion.
As for polyglot adding its style there, my understanding is that not every TinyMCE editor needs the Polyglot styles, so they should probably not be included in the default config. Is that correct?

oh, there's a CONFIG.TinyMCE.style_formats now?
As this was added in 0.7.6, can you also change the minimumCoreVersion to that?
Also, should Polyglot add its style to that config instead of overwriting the variable?

Yes, I'll change the minimumCoreVersion.
As for polyglot adding its style there, my understanding is that not every TinyMCE editor needs the Polyglot styles, so they should probably not be included in the default config. Is that correct?

As for polyglot adding its style there, my understanding is that not every TinyMCE editor needs the Polyglot styles, so they should probably not be included in the default config. Is that correct?

Good point, yeah!
Thanks for the PR

As for polyglot adding its style there, my understanding is that not every TinyMCE editor needs the Polyglot styles, so they should probably not be included in the default config. Is that correct?

Good point, yeah!
Thanks for the PR


[Feature] Add a new AppRevision to replace AC in Application controller

Is your feature request related to a problem? Please describe.
Mostly to be compatiable with the running OAM v1alpha1 AC controller, so they won't conflict with each other and can both run in the same cluster.
Describe the solution you'd like

Describe alternatives you've considered

Additional context

fixed by https://github.com/oam-dev/kubevela/pull/1236 , the object finnaly named AppContext


ITrace nuget

This is a unsigned nuget created from branch: users/brchon/TracingRemoveCosmosDiagnostics
The custom nuget version is to avoid conflicts when the official version gets released.
Microsoft.Azure.Cosmos.3.17.500.zip

This is a unsigned nuget created from branch: users/brchon/TracingRemoveCosmosDiagnostics using commit eb1883d8. This contains several fixes to the tracing library.
Microsoft.Azure.Cosmos.3.17.600.zip


Editable install fails with pyproject.toml

I created a plugin using the cookiecutter and specifying the versioning should be done with setuptools_scm. Then doing an editable install fails, with an error message ending with ModuleNotFoundError: No module named 'napari_skimage' where napari_skimage is my plugin name.
It seems that I ran into exactly this problem, where there's an attempt to import the package (which is not yet installed) by this line in the toml file:
[tool.setuptools.dynamic]
version = {attr = "napari_skimage.__init__.__version__"}

It's not clear to me exactly how this can be fixed (it might be related to the difficulty of importing a package in the src structure). It seems to be a known issue as there's a specific note in the setuptools docs:

attr first tries to read the value from the module by examining the module’s AST. If that fails, attr falls back to importing the module, using importlib.util.spec_from_file_location() recommended recipe (see example on Python docs about “Importing a source file directly”). Note however that importing the module is error prone since your package is not installed yet. You may also need to manually add the project directory to sys.path (via setup.py) in order to be able to do that.

that is not very helpful to me.
In the meantime, I managed to make an editable install by commenting out this in the toml file:
#[tool.setuptools.dynamic]
#version = {attr = "napari_skimage.__init__.__version__"}

#[tool.setuptools.packages.find]
#where = ["src"]

and adding back a setup.cfg file with:
[options]
package_dir =
    =src
setup_requires = setuptools_scm

[options.packages.find]
where = src

hm. It may be a bug in template.
Did you configure project to use setuptools_scm? If yes then these lines should be obsolete:
[tool.setuptools.dynamic]
version = {attr = "napari_skimage.__init__.__version__"}

at least my project does not contain them https://github.com/4DNucleome/PartSeg/blob/develop/pyproject.toml

Yes I did select the setuptools_scm. Indeed just commenting out these lines fixes the problem (even without a setup.cfg file), so I guess this should only be present if not using setuptools_scm. I made a plugin without the setuptools_scm option and the editable install works. I guess this should solve the issue (I'm not very familiar with cookiecutter syntax)?:
{% if cookiecutter.use_git_tags_for_versioning == 'y' -%}
[tool.setuptools.dynamic]
version = {attr = "{{cookiecutter.module_name}}.__init__.__version__"}
{%- endif %}

Thanks!


Tootips for reg pages

Add tool tip for pw rules, gst, pincode, shop name and shop handle | Create Password Title for the page

Duplicate of #3  Please use the comments in that issue to detail where all tooltips are required.


$pwd

It seems that everything is relative to directory from where ninja is invoked, not relative to current location of ninja file. This makes really confusing when creating common ninja files that are included from multiple places.
I couldn't find $pwd, but it would fix this issue. In some common file I would have global builddir defined for all projects, and inclusion of that common.ninja file wouldn't cause directory to move around depending on from where it's included.
builddir = $pwd/../.build

This is my usage:
https://github.com/bkaradzic/bgfx/blob/master/scripts/common.ninja
https://github.com/bkaradzic/bgfx/blob/master/examples/assets/meshes/build.ninja
Or maybe there is better way to do this?

Try using subninja instead of include.

At first look I was confused too, look at #1119.
My ninja-files are written by generator (python script with https://github.com/ninja-build/ninja/blob/master/misc/ninja_syntax.py) and if I want to build project in another directory - first I run build script - and it found $pwd and set builddir carefully.
And this approach was useful for me when one project become subproject of bigger one - simple call of generator function with subdirectory as parameter.

$pwd would be the location of the current ninja file or the directory from where ninja is invoked?


Add "X-Requested-With" Header

Hi,
When running the exporter with Mirth Connect v3.12 I get the following error
expected element type <list> but have <HTML>
It works perfectly fine If I downgrade Mirth Connect to v3.8.1 or v3.7.1 (only versions I've tested so far)
The Mirth community members over in Slack pointed the following in the release notes for v3.12 - https://github.com/nextgenhealthcare/connect/wiki/3.12.0---What's-New#address-csrf-for-login-and-api-pages
Can the above header be added to the next exporter release?
For a while, my team has been looking for a solution to monitor our Mirth interfaces (we currently use PRTG but have not had any luck getting it to work)
I recently started looking into Prometheus and found my way to your Mirth Channel Exporter app.
From my brief look at using the Mirth Channel Exporter with Mirth v3.8.1, this has met all our requirements.
Thanks for all your hard work in maintaining this! and for providing a docker image :)
Cheers,
dfx

@dfx17 can you try checking out the x-requested-with branch and seeing if that works with Mirth 3.12?

confirmed working with Mirth v3.12 (via local install and docker)


az group list fails due to time format error

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az group list
Errors:
The command failed with an unexpected error. Here is the traceback:
time data '2021-09-20T16:25:12.722Z' does not match format '%Y-%m-%d %H:%M:%S.%f'
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 691, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/custom.py", line 1295, in list_resource_groups
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 129, in __next__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 76, in __next__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2021_04_01/operations/_resource_groups_operations.py", line 599, in get_next
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 211, in run
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 71, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/core/policies/_base.py", line 47, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 71, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 71, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 71, in send
  [Previous line repeated 1 more time]
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_redirect.py", line 158, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_retry.py", line 445, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 69, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_tools.py", line 29, in await_result
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 93, in on_request
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/adal_authentication.py", line 101, in get_token
  File "_strptime.py", line 568, in _strptime_datetime
  File "_strptime.py", line 349, in _strptime
ValueError: time data '2021-09-20T16:25:12.722Z' does not match format '%Y-%m-%d %H:%M:%S.%f'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az group list

Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.27.2

Extensions:
cloud-service 0.2.0

Additional Context

ARM


chore: bdd-spring-1585924112 to 0.0.1

chore: Promote bdd-spring-1585924112 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Paste URL broken

Pasting https://www.inoreader.com/all_articles with custom format <ref>{{Refurl|url=$url|title=$title}}</ref> results in this:

chrome-extension://djdmadneanknadilpjiknlnanaolmbfk/%3Cref%3E%7B%7BRefurl%7Curl=https://www.inoreader.com/all_articles%7Ctitle=Inoreader%20-%20All%20articles%7Cdate=%7D%7D%3C/ref%3E

The custom state seemed not to be syncing correctly on production. I implemented a change that should fix this; I'll keep you in the loop once Google approves this.
Thanks for bringing the issues up.
cc @Keith94

@Keith94, can you confirm whether this was solved on your side? I tested, and it works, but let me know.

In 1.2.0 it's still not working. same results

It has problems extracting the URL using custom formatting. I submitted a new version. Let's hope that fixes the error on your end. It's v1.3

@Keith94, it was updated in Chrome. If you confirm it works on your side, I'll move forward and close.

Oddly the button doesn't paste anything, and when I press the button it scrolls to the bottom of the current page. This happens even if I copied a URL by itself without any extra text

Strange. This is how I'm returning the URL. Is there something different you are trying to do?
https://github.com/user-attachments/assets/b914d912-ba13-4a91-b0a1-41f7ba43e28b

No, I'm trying to do the same as you. I'm also using Brave, I don't know if that makes a difference though.

@Keith94 try using a format that contains href="",
Like this {{Refurl|url=$url|title=$title|date=$date}}

With your above snippet it works great !
It doesn't however work with just plain URLs that I copied e.g. with ctrl+c from address bar or some other means.
Maybe I'm just misunderstanding how the button is supposed to work in the first place...?

Now that I added the textarea in the popup, you can copy it elsewhere and paste it into the input. Remember that it needs to match the text format marked in the options.
let me know if something else comes up or doesn't work on your side.


SPIKE Juniper Mist Dashboard

What:
We have had a request to look into automating the process of adding sites onto the Juniper Mist dashboard from the LAN engineers ahead of the probation rollout where 100 sites will be added.
Mist Request
100 probation sites need to be added onto the Mist dashboard (15-20 a day a week for the rollout) these sites need to be live in March. Matti previously tried to write this script but ran into difficulties.

POC will be 4 weeks time (from18/10/2023)
The request is to create all the config before the sites are live and so they are already on the MIST portal
Asking for a JSON file with a config to automate this process
Take the CSV file and ‘wrap’ it in JSON so that it can be automated
Want all the sites on Mist by Christmas

This is a spike to quantify the amount of work that would be involved for this request. Time box TBD - suggestion of a day?
Useful Contacts:
Matti
Stephen
James

I have created a repo for this spike work here:
https://github.com/ministryofjustice/juniper-mist-integration
I am confident we can automate this fairly easily.
The only unknowns to me at this stage is:

Where are those MOJ custom site values stored
Where is the single source of truth for values "Enable GovWifi, Emable MoJWifi, GovWifi Radius Key, Site Addresses"
Where do I store values: "Enable GovWifi, Emable MoJWifi, GovWifi Radius Key, Weird NACS Radius Key" in MIST?
What geocoding tool we will need to use to format the data into latlng, country_code, timezone. (Could use google or investigate open source alt)
Is this import a 1 time run, or is it run on a schedule? If scheduled how often? Daily, hourly, weekly?

I asked these questions to Matti, he would like to discuss on Wednesday.

I have successfully been able to create sites via the API in Python:
Private Zenhub Image

Q1: Where is the single source of truth for values "Enable GovWifi, Emable MoJWifi, GovWifi Radius Key, Site Addresses"
A1: The values will be ingested from a manually created spreadsheet.
Q2. Where do I store values: "Enable GovWifi, Emable MoJWifi, GovWifi Radius Key, Weird NACS Radius Key" in MIST?
A2: These values will be stored in custom vars on the MIST system
Q3. What geocoding tool we will need to use to format the data into latlng, country_code, timezone. (Could use google or investigate open source alt) - Still awaiting internal discussion
Q4. Is this import a 1 time run, or is it run on a schedule? If scheduled how often? Daily, hourly, weekly?
A4: This will run locally on a developers laptop. (Perhaps in future this can be moved onto AWS if more automated is needed).
SUDO Code:
Ingest CSV
Ingest mist user credentials
Request token/cookie
Create sites from the CSV that do not already exist in MIST.
Update sites values from CSV that have just been created. (Any site that already exists prior to script being run will not be updated, to ensure no values get overwritten)
The script will not be configured to delete sites from MIST

New ticket created to refine script: https://app.zenhub.com/workspaces/nvvs-devops-622a0b371800e400133bb924/issues/gh/ministryofjustice/juniper-mist-integration/4


[Feature Request]: I want to add a scientific calculator site made in HTML, CSS and Vanilla Javascript under the showcase section. I want to contribute under GSSOC'24.

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I went through the showcase section of the website and found no projects under HTML CSS section. So,  I want to add a scientific calculator project made in HTML, CSS and Javascript under that section. Here is a snapshot of the project :

Use Case
I think that this addition would be highly helpful as the showcase section would have another project to be added under it. My project is completely self coded and beginner friendly under HTML and CSS section.
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

Now you can add in here same format https://github.com/CodeHarborHub/codeharborhub.github.io/blob/d000cd7f314e0bc321f9f02353697407592e01aa/src/data/users.tsx#L221 and also add image.


Depth image units are floating point but expressed in millimeters

Hello again,
It seems that the depth images published by this package are encoded as 32FC1 but are expressed in millimeters. It states pretty explicitly in the remarks section on the wiki that:
All inputs and outputs of this package are in meters and seconds, as the convention for ROS requires

So I'm guessing this isn't the intended behavior
Just in case you need to reproduce this on your side, I'm on the latest master of ros_driver and I'm running the camera using the instructions straight out of the Viewing Your First Point Cloud in RViz tutorial on the wiki:
$ rosrun ensenso_ca ensenso_camera_node
$ rosrun ensenso_camera request_data

Here's a bag containing a couple of depth messages I collected, running them through this script prints 543.116 which sounds about right for the distance in millimeters from the camera to the table it's looking at.
import rosbag
from cv_bridge import CvBridge

bridge = CvBridge()

for topic, msg, t in rosbag.Bag('depth_mm.bag').read_messages():

    if topic == '/depth/image':
        depth_msg = msg
        depth = bridge.imgmsg_to_cv2(msg)

print(depth[800,400])

Is there a parameter somewhere that controls this? If not any chance you could publish the depth images in meters?

Any updates on this issue? Assuming this isn't the expected behavior then it should be pretty easy to fix this by just adding the following:
depthImage /= 1000.0;

immediately after this line:
https://github.com/ensenso/ros_driver/blob/42014bd0fa58ef4840a1e319c533a23958b0f9d1/ensenso_camera/src/image_utilities.cpp#L174

Thank you for looking into this yourself. The behavior is not intended, we want to convert everything to meters and this was probably an oversight when we added the depth image functionality. I will gladly accept a PR that changes this.


Pluralization issue with "1 Open Issues" and "1 Pull Requests"

Describe the bug
Issues and pull requests are not pluralized properly in the singular.
To Reproduce
Steps to reproduce the behavior:

Go to https://marketplace.visualstudio.com/items?itemName=kmahalingam.vscode-language-cimpl
Scroll down to Project Details

Expected behavior
"1 Open Issue" and "1 Pull Request".
Screenshots

Desktop (please complete the following information):

OS: macOS
Browser Chrome
Version 109.0.5414.119

Thank you for reporting this. We are looking into this.


Testing API Business Hub APIs with Curl

Tutorial URL: https://developers.sap.com/tutorials/hcp-abh-test-locally.html
//Please specify the step you are referring to
Step 5: Add multiple parameters to the API call
I did the command this :
curl --request GET  --url "https://sandbox.api.sap.com/successfactors/odata/v2/User?%24top=5&%24select=firstName%2ClastName%2CjobTitle"  --header "APIKey: "  --header "Accept: application/json"  --header "Content-Type: application/json"
getting results =
{
"d" : {
"results" : [
{
"__metadata" : {
"uri" : "https://sandbox.api.sap.com/successfactors/odata/v2/User('6584e7f9-9fab-4b31-ade1-357291c74f1d')", "type" : "SFOData.User"
}, "firstName" : "Amy", "lastName" : "Craig", "jobTitle" : null
}, {
"__metadata" : {
"uri" : "https://sandbox.api.sap.com/successfactors/odata/v2/User('extuser1')", "type" : "SFOData.User"
}, "firstName" : "╨ÿ╨▓╨░╨╜ ", "lastName" : "╨É╨║╤ü╨╡╨╜╨╛╨▓ ", "jobTitle" : null
}, {
"__metadata" : {
"uri" : "https://sandbox.api.sap.com/successfactors/odata/v2/User('50004')", "type" : "SFOData.User"
}, "firstName" : "Sami", "lastName" : "Ibrahim", "jobTitle" : null
}, {
"__metadata" : {
"uri" : "https://sandbox.api.sap.com/successfactors/odata/v2/User('15885825643')", "type" : "SFOData.User"
}, "firstName" : "Runscope1", "lastName" : "Alan1", "jobTitle" : null
}, {
"__metadata" : {
"uri" : "https://sandbox.api.sap.com/successfactors/odata/v2/User('15782875893')", "type" : "SFOData.User"
}, "firstName" : null, "lastName" : null, "jobTitle" : null
}
]
}
}
Submit answer (try)=
-"firstName" : "Amy", "lastName" : "Craig", "jobTitle" : null

"Amy", "Craig", null
Amy, Craig, null
Amy Craig null

Still didn't get correct answer

You are right, this validation is not very resilient to changing orders of the entities. I updated the entire tutorial and adapted the validation question. In the new one, we're actually not checking for the names but for the format of the response in this validation.

Can you please test again once the new validation is live (within the next 10 min)

Thank you so much for replying and fixing, it's already works! :))


Purpose of legacy.js eslint?

Does this file serve a purpose? I can't seem to find a reference to it anywhere.
https://github.com/ciscospark/web-styleguide/blob/master/packages/node_modules/%40ciscospark/eslint-config-base/rules/legacy.js

@adamweeks, it's a consolidated reference to the old rules. We should be able to get rid of it at this point.


Provide online KubeVirt API documentation

After #476 is merged, it would be nice to make a online KubeVirt API documentation.
Story:
How do we publish the API documentation? We could:
Use travis to build the swagger documentation, commit this to a repo, and let this repo be published by gitbook with a plugin.
This could be a good intermediate solution.
So far this is a plan:

[ ] Create repo for API doc
[x] Add script to travis to obtain swagger.json from running KubeVirt deployment
[x] Translate swagger.json spec 1.2 to 2.0 api-spec-converter OR use go-restful-openapi
[ ] Push into doc repository
[ ] Let the gitbook-plugin-swagger to generate documentation

In additional, check why the "Table Of Content" is missing in generated documentation, by gitbook-plugin-swagger.

/cc @jhernand

@rmohr I remember that on meeting you were talking about offline generation of swagger.json file.
I was searching for some options and I found this one: https://github.com/yvasiyarov/swagger (https://goswagger.io/generate/spec.html)
Is this the path to go? or you had something else in mind ?

On behalf of @davidvossel , Thank you for awesome hint!

Proposal: test for a json file in travis--generated by “make generate”
Changes to API require re-running

Unfortunately in order to get openapi.json I need running KubeVirt,
so I can not do it in TravisCI job, I will have to move to Jenkins job which execute tests.
Then the flow will be like this:

put current openapi.json into repository
when KubeVirt is running obtain API specification
compare it with existing openapi.json from repository
if API was changed fail a job -> need to re-generate openapi.json and commit it

@lukas-bednar Is it possible to give the virt-api server a flag that will make it immediately dump the openapi.json file and exit instead of actually starting the http server?

@davidvossel I saw some examples in go-restful-openapi repository how to do that:
https://github.com/emicklei/go-restful-openapi/blob/0d037b269a5b53b582789e25dee0d0a0614119e5/examples/user-resource_test.go#L28
I will try to do that, thanks!

@davidvossel  I was able to do it. but in order to execute virt-api it requires kubeconfig file.
And I don't have this file available at build time.
You can take a look at patch here #535 .

@fabiand I got this issue into state, where I have everything ready to let GitBook to render it.
I have api/openapi-spec/swagger.json in KubeVirt repository.
Now I can let GitBook to render it. I have following patch which adds necessary configuration for gitbook.
https://github.com/lukas-bednar/kubevirt/commit/a8cb189fcd9282ae8fac7cc2a7be30eb9a6ca202
This is how it looks like: https://lukas-bednar.gitbooks.io/kubevirt-api-documentation/content/
I would appreciate some input from you, whether it matches your expectation. Or you want me to do something else. Or make it part of some other document or whatever ...
Thanks.

Great progress.
I was looking at the link, and a few notes:
The links are broken, not sure what is causing it.
I also wonder, if this large api is suited for that way of presentation.
I actually wonder if we can rather use your work to create a reference similar to Kubernetes one, see https://v1-7.docs.kubernetes.io/docs/api-reference/v1.7/
Do you know how this is getting created, @lukas-bednar ?

@fabiand I took advice from @rmohr and I was able to generate html documentation using swagger2markdown-converter and asciidoctor.
It looks like this:

I didn't get any response from K8S https://groups.google.com/forum/#!topic/kubernetes-users/xGRzQISSxVs
If you are satisfied with asciidoctor I can proceed with that ... and I need some details how & wher  are we going to publish this API reference.

looks very similar to the one from k8s. See also https://github.com/kubernetes/kubernetes/blob/8fd414537b5143ab039cb910590237cabf4af783/hack/gen-swagger-doc/gen-swagger-docs.sh for the exact postprocessing, after they have invoked gradle.

@rmohr please take a look at #550 , I adapted K8S post-processing script to generate api reference documentation.

If you are satisfied with asciidoctor I can proceed with that ... and I need some details how & wher are we going to publish this API reference.

I wonder if we can add it to the user-guide repo (e.g. letting travis do an automatic build and do a commit to the user-guide repo). But I am not sure how we can add such an "external" file to gitbook nicely.

@rmohr swagger2markup can generate markdown as well. I can add option to generate *.md instead of *adoc. Then push these *.md files to user-guide repo and add reference these files in user-guide/SUMMARY.md file.
Then gitbook can render such documentation as usually.
What do you think ?

Let's not combine the user-guide and API reference.
Let's compile to API reference and commit it to a separate repo, we can then publish it like the blog (https://kubevirt.github.io/blog/), i.e. at https://kubevirt.github.io/api-reference.
The user-guide can then reference it.

@fabiand OK, thanks for input. Can you please create repository either under kubevirt or kubevirt-incubator` organization?
Then I need decision whether we will use that markdown and let github to render it,or somewhere else under kubevirt.io as html or whatever else you prefer ... :-)

@fabiand maybe you can merge your kubevirt.io refactor and then just commit it to the kubevirt.io repository?

@fabiand maybe you can merge your kubevirt.io refactor and then just commit it to the kubevirt.io repository?

I meant, we could also just commit it automatically into a subdirectory in https://github.com/kubevirt/kubevirt.github.io.

Thanks for reminding me of that.
I'd keep it separate for now,  for the sake of automation and permissions.

@lukas-bednar @gbenhaim and I discussed this and agreed to start with https://github.com/kubevirt-incubator/api-reference.
@lukas-bednar will setup the basic stuff there, once that is done and we have settled with

API presentation
Automation

We will revisit where to host it.
This seemed to be the most frictionless way of moving forward.

@fabiand I added some improvements there: https://github.com/kubevirt-incubator/api-reference/pull/4
If there is no comment, I can take a look at process how to keep that reference up to date.

Closing this issue as solved:
API Reference repository: https://github.com/kubevirt-incubator/api-reference
API Reference pages: https://kubevirt-incubator.github.io/api-reference/content/index.html


Added html lang attribute to default layout

Hi there,
I've not used PUG before but there was only one line of code to add so hopefully I won't have broken anything!
Chris Renshaw.

PR for #28

Didn't see that. Will check again!

I've made those changes. Apologies for my confusion earlier.

Thank you!


Need to be able to create OS disk with property NVMe from BLOB using New-AzDiskConfig and New-AzDisk

Related command
AzDiskConfig and New-AzDisk
Is your feature request related to a problem? Please describe.
When copying an OS disk with NVMe to a different tenant, you need to use BLOBs. When creating the new disk from BLOB, you must be able to specify the property DiskControllerType=NVME. However, there is no parameter for this, neither in New-AzDiskConfig nor in New-AzDisk. The NVMe property was released in swagger and SDKs, but feature request wasn't made to release this feature in CLI.
Describe the solution you'd like
The ask is to include this in commands. When using REST API, you do have this option.
Describe alternatives you've considered
Workarounds introduce unnecessary operational overhead.
Additional context
https://github.com/Azure/azure-powershell/issues/24347

Thank you for opening this issue, we will look into it.

@dbarber0125 Is this an Azure PowerShell related requirement? If so, please create an issue on Azure PowerShell repo instead of Azure CLI repo

Hi @zhoxing-ms, both are needed, and I have opened requests for both. This request is specifically for Azure CLI. Thanks!


Do not upgrade to golang 1.20 in 1.13 branch

@gandro what was the other comment that you wanted to have in renovate's config?

@gandro please do, I don't mind.

@gandro please do, I don't mind.

Done!


Update sds generated files to support sgx feature

sorry for missing this, now it can be built

LGTM. In intel/istio#3 is there a need to update go.mod?

Yeah, need to update pkg version in go.mod after this merged.


Node-RED Unexpected Token error / wont start

Hi, I just installed Node-RED on Hassio (Raspberry) 0.68.1.
Port forwarded 1880 to my internal raspberry IP adres.
Problem is when i start Node-RED it shows as started, but when i refresh the addons page it stopped again and showing the following error in the log file:

[INFO] Disabling SSL
[INFO] Updating IDE Users
[INFO] Adding IDE User admin
[INFO] Updating HTTP Node User
[INFO] Adding HTTP Node User admin
[INFO] Disabling Projects
npm info it worked if it ends with ok
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>start /usr/src/node-red
node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/share/node-red"
Error loading settings file: /share/node-red/settings.js
/share/node-red/settings.js:3
users: [
^
SyntaxError: Unexpected token :
at new Script (vm.js:74:7)
at createScript (vm.js:246:10)
at Object.runInThisContext (vm.js:298:10)
at Module._compile (internal/modules/cjs/loader.js:646:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info ok

I did try changing the username and password but with no luck. The above log is based on the install default settings.
Marco

Try renaming your settings.js file at \hassio.local\data\node-red then restarting the addon.  If that doesn't fix it, your password might have a special character that's breaking things.  Using a password with different special characters might help.

Not at home a.t.m. but will try this asap and report back 👍


Links Fails

It appears that the statement
links = soup.find(id='footer').find_all('a')
fails on most pages now.  The error give is
Crawl... http://subdomain.tumblr.com/page/1
Traceback (most recent call last):
File "C:\Software\Tumblr Crawler\tumblr.py", line 210, in
c.do_crawling()
File "C:\Software\Tumblr Crawler\tumblr.py", line 175, in do_crawling
links = soup.find(id='footer').find_all('a')
AttributeError: 'NoneType' object has no attribute 'find_all'

Thanks for reporting,
I fixed code for page link handling

Thanks.  Works very well now.  What is the YouTube library for?


runtime: some tests are running out of memory in plan9-amd64-9front

What version of Go are you using (go version)?

$ go version
go version devel +master Sat Nov 23 23:42:39 EST 2019 plan9/amd64

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/usr/fhs/lib/cache/go-build'
GOENV='/usr/fhs/lib/go/env'
GOEXE=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='plan9'
GOINSECURE=''
GONOPROXY=''
GONOSUMDB=''
GOOS='plan9'
GOPATH='/home/fhs/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/big/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLDIR='/home/big/go/pkg/tool/plan9_amd64'
GCCGO='gccgo'
AR='ar'
CC='6c'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/dev/null'
CGO_CFLAGS='-g -O2'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-g -O2'
CGO_FFLAGS='-g -O2'
CGO_LDFLAGS='-g -O2'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build497232617=/tmp/go-build -gno-record-gcc-switches'
GOROOT/bin/go version: go version devel +master Sat Nov 23 23:42:39 EST 2019 plan9/amd64
GOROOT/bin/go tool compile -V: compile version devel +master Sat Nov 23 23:42:39 EST 2019

What did you do?

cpu% cd src/runtime
cpu% go test -v -short

What did you expect to see?
All tests pass
What did you see instead?
...
=== RUN   TestPageAllocScavenge
=== RUN   TestPageAllocScavenge/AllFreeUnscavExhaust
runtime.test 1018: Killed: Insufficient physical memory
runtime.test 1015: Killed: Insufficient physical memory
runtime.test 1017: Killed: Insufficient physical memory
runtime.test 1016: Killed: Insufficient physical memory
runtime.test 1014: Killed: Insufficient physical memory
wait: interrupted
FAIL	runtime	76.934s
cpu%

The system has 8GB of memory, which I think should be enough? I tried skipping this particular test but then I saw some other tests also running out of memory, include: TestPageAllocAlloc, TestPageAllocExhaust, TestPageAllocFree, TestPageAllocAllocAndFree, TestPageCacheFlush, TestPageAllocAllocToCache.
I'm guessing the plan9-amd64-9front builder is experiencing the same issue because it stops responding after regexp/syntax tests and runtime tests comes right after that. See: https://build.golang.org/log/de03aa0def03f66ebb7f8bd99f71a89190f911dc
@gopherbot Please add labels OS-Plan9, NeedsInvestigation, Builders

Git bisect points to commit 39e8cb0faac7785f89b21246a45e8cf8d5bc7d95 as the first bad commit.
git bisect log Output
git bisect start
# bad: [6f7b96f6cb5f5c156cf4e69b1fa1ec0e57b01677] syscall: follow convention for generated code comments in linux/riscv64 files
git bisect bad 6f7b96f6cb5f5c156cf4e69b1fa1ec0e57b01677
# bad: [21445b091ec0a0625282603e2730d10b34396375] runtime: make the scavenger self-paced
git bisect bad 21445b091ec0a0625282603e2730d10b34396375
# good: [543c6d2e0dcd24886fce6c00e84b7238c30c1c0b] math, cmd/compile: rename Fma to FMA
git bisect good 543c6d2e0dcd24886fce6c00e84b7238c30c1c0b
# good: [05aa4a7b7447051d187e0a86e53eee99fe065851] runtime: set GODEBUG=asyncpreemptoff=1 in TestCrashDumpsAllThreads
git bisect good 05aa4a7b7447051d187e0a86e53eee99fe065851
# bad: [1b0b9809046c1862f8ea0240fe016e516c67676f] runtime: add async preemption support on ARM64
git bisect bad 1b0b9809046c1862f8ea0240fe016e516c67676f
# bad: [e1ddf0507c6d6dcbe1a2ebe54b8728498edf0995] runtime: count scavenged bits for new allocation for new page allocator
git bisect bad e1ddf0507c6d6dcbe1a2ebe54b8728498edf0995
# bad: [73317080e12234defb59f84e2b5b15f69650b5d5] runtime: add scavenging code for new page allocator
git bisect bad 73317080e12234defb59f84e2b5b15f69650b5d5
# bad: [39e8cb0faac7785f89b21246a45e8cf8d5bc7d95] runtime: add new page allocator core
git bisect bad 39e8cb0faac7785f89b21246a45e8cf8d5bc7d95
# first bad commit: [39e8cb0faac7785f89b21246a45e8cf8d5bc7d95] runtime: add new page allocator core

This got fixed by commit acf3ff2e8a0ee777a35b42879c90a1d5a130988f.
git bisect log Output
git bisect start '--term-new=fixed' '--term-old=unfixed'
# fixed: [9c8c27a318459e76970a8ac0f171a8fc1a6ef5b9] syscall: use SOCK_CLOEXEC when creating sockets
git bisect fixed 9c8c27a318459e76970a8ac0f171a8fc1a6ef5b9
# unfixed: [8054b13536fc71d6f8867f90d7614de4064191ba] runtime: on plan9 don't return substitute address for sysReserve
git bisect unfixed 8054b13536fc71d6f8867f90d7614de4064191ba
# fixed: [5fd75810060e72ba9da44be85c7767417c8bbee7] cmd/go: fix check for -Wp,-U in cgo CFLAGS
git bisect fixed 5fd75810060e72ba9da44be85c7767417c8bbee7
# fixed: [fa3a121a79f85a4c957f29372b5ebfde7211a980] runtime: add a simple version number parser
git bisect fixed fa3a121a79f85a4c957f29372b5ebfde7211a980
# fixed: [acf3ff2e8a0ee777a35b42879c90a1d5a130988f] runtime: convert page allocator bitmap to sparse array
git bisect fixed acf3ff2e8a0ee777a35b42879c90a1d5a130988f
# unfixed: [a18608a044afed86c789e541db65526b9ccacef9] os/exec: document that cmd.Start() sets the Process field
git bisect unfixed a18608a044afed86c789e541db65526b9ccacef9
# unfixed: [386b1a4280d4a32cd8b69a92ba91b6d98832b721] runtime: treat call from runtime as transient in TestDebugCall
git bisect unfixed 386b1a4280d4a32cd8b69a92ba91b6d98832b721
# unfixed: [2ac1ca9160f52907ce1cd04738c80b1c055b5ba6] cmd/vet: honor analyzer flags when running vet outside $GOROOT/src
git bisect unfixed 2ac1ca9160f52907ce1cd04738c80b1c055b5ba6
# first fixed commit: [acf3ff2e8a0ee777a35b42879c90a1d5a130988f] runtime: convert page allocator bitmap to sparse array


Added better .wcon file examples

This handles #6.  @Ichoran please merge if you agree, or let me know if you think more work needs to be done.
For maximal_1.wcon, etc, I created three chunks rather than two so we could test the case when neither of "prev" or "next" is null.  Also this example is right now not really "maximal" in the sense of having lots of complicated entries in the "data" object so it could be added to in the future.

I agree that we need more than two so we get all the variants on prev/next.  This looks good save for the in-line comments I left.

I'll add my comment here since it seems to get hidden above:
Having extra data on every timepoint for every animal, such as a "z", would indeed by nice to have within the "data" object itself.  So it sounds like we'd like to keep special feature type 1 and type 3, and drop type 2.
Note that the spec allows for units for more than just "x", "y", and "t", so
"data":[
    {"@OMG":{
               "feature_names":["speed", "curvature", "width"],
               "feature_units":["mm/s", "1/mm", "mm"]
    }}
]

is unnecessary anyway.  We can just add those units, to the top-level "units" object:
"units": {
    "x":"mm",
    "y":"mm",
    "t":"s",
    "speed":"mm/s",
    "curvature":"1/mm",
    "width":"mm"
}

So, in summary, I agree that dropping the type 2 special feature would be better.  I've altered the English and JSON specification, test cases, and Python code to reflect this.
@Ichoran please feel free to merge this pull request if you are satisfied with the above.  Thanks.


Best way to remove unneeded days/hours rotors?

For example I just need minutes and seconds. What's the best approach to hide the unneeded rotors?

This was being discussed in #24 but I haven't got around to completely integrating it in a sensible way yet.

up

we need this feature

any update of removing days and hours?

You can do it in CSS alone. It's a fix, but it would be better if there were ways of doing it in JS.
This one hides the days and hours.
#flipdown {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: unset !important;
}
#flipdown .rotor-group:first-child,
#flipdown .rotor-group:nth-child(2) {
  display:none !important;
}

You can do it in CSS alone. It's a fix, but it would be better if there were ways of doing it in JS.
This one hides the days and hours.
#flipdown {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: unset !important;
}
#flipdown .rotor-group:first-child,
#flipdown .rotor-group:nth-child(2) {
  display:none !important;
}

Thank You @SmileSoftSr this works great! I'm building 3D printer status pages and just need HH:MM:SS
Agree that a hide option in JS would be idea, but this works just fine :D


My IP got blacklisted?

My problem is that I could normally open the site but it shows infinite loading screens (currently happened only on my home internet and mobile LTE.: http://i.imgur.com/OhQTaJu.png)
A few weeks ago I was unable to access the website from my home internet (It was working fine on my dorm internet.) so switched to the mobile data and it worked. Today I can't access the website using my mobile data, so I connected to a VPN and it became working again.
Is it an IP ban and I tripped some flags?

I don't have any IP banning functionality in the code, and can't see any setting in Heroku, so unfortunately I don't know why this might be happening (someone else has reported something similar before: https://github.com/walfie/gbf-raidfinder/issues/69).

I'm quite sure it was the same issue, currently I have to switch from LTE to 3G in order to access the website (I still have no access to them using LTE/Home internet.). This is quite sad because this app helped me a lot on joining high attendance raids.

ok it looks like the issue may be because some ISPs block websocket connections on port 80, or interfere with the message in some way.
The only real way around this that I can see is to use secure websockets, but I'm running this on Heroku's free tier, which does not support this.

Had same problem.
Solution: Use Firefox > Install Browsec. So, you need 2nd browsers. Worth it.

You can try using this version by @laforeta which uses https: https://gbf-raidfinder.la-foret.me/


Thread safe?

Is Yara scanner supposed to be thread safe?
I have numerous cases where scanning file (disk) or reading rule data -with multiple workers- leads to stack corruption.
Just making sure I'm not using it wrong.

Yes, it's supposed to be thread-safe. Can you provide more info about your issues?

Thanks. Not yet, I'm using an old Yara version (3.7.1 I think) and I'll upgrade first see what happens.
I just wanted to make I don't investigate in the wrong direction...

The only thing I know is that it randomly crashes on memory access around a yr_rules_scan_fd call

Is this guaranteed that the context pointer passed when calling multiple yr_rules_scan_fd from different threads will not be mixed and uses a different storage per call?

Ok closing for now. I've updated to the latest and I have less crashes. But still some that I'll submit in another topic.


Typo in DrawableHelper.kt

@RocketChat/android
Changes: [Add here what changes were made in this issue and if possible provide links.]
Fixed a typo in file DrawableHelper.kt
Screenshots or GIF for the change:

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Recover profile content from backups

Backups being the encrypted thread keys and latest updates stored under the IPNS profile.

no longer relevant.


Add ComboBoxAssist.ShowSelectedItem attached property

This attached property add ability to change visibility of selected item in combobox

Sorry for delay :/    ...been mega busy


ci try to test our bundle like manifest

Hi, we are getting the following error when updating our bundles:
Operator 'aqua' is in package manifest format, but contains some versions in bundle format (see above for list). Format mixing in one operator is not supported.
pr: #1196
https://github.com/redhat-openshift-ecosystem/community-operators-prod/runs/6403022152?check_suite_focus=true

I tried to create a new pr, and got same results:
https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/1212

merged after another rebase, thanks


Update call to #assign so the customHeaders aren't overwritten by the…

… current request's headers; also, move customHeaders to the end of the chain so that headers provided in the incoming request don't overwrite the values in customHeaders.  In my case, I have a browser sending 'accept-encoding: gzip' and I need to force the request to the Swagger API to use 'accept-encoding: identity'.

@ateamlunchbox IMO yarn is another concern and should not be handled in this PR.

@yarax: I updated my PR to exclude yarn.lock and fixed the name in package.json.  Sorry for the errors in my earlier version.

Thanks!


Pylance Marks Reachable Code as Unreachable After Infinite Generator Call

Description
Pylance shows code following the instantiation of an infinite generator to be unreachable.
The code would be unreachable if this was a function, but as the generator is not activated
unless next() is called, Pylance is incorrect in its conclusion.
It is desired that Pylance correctly observe this is a generator, and therefore will not cause
unreachable code, simply from the generator being created.
 Environment data

Language Server version: 2023.3.10
OS and version: darwin x64
Python 3.11.2
python.analysis.indexing: true
python.analysis.typeCheckingMode: off

def infinite_generator():
    while True: pass

    # Will never happen, but makes this a generator
    yield 1

gen = infinite_generator()
print("Hello World!") # marked unreachable

 Logs

[Info  - 12:35:49 AM] (19581) SourceFile: Received fs event 'change' for path '/Users/owner/Desktop/test/unreachable_test.py'
(19581) Background analysis message: markFilesDirty
(19581) Background analysis message: analyze
(19581) [BG(1)] analyzing: /Users/owner/Desktop/test/unreachable_test.py ...
(19581) [BG(1)]   checking: /Users/owner/Desktop/test/unreachable_test.py (6ms)
(19581) [BG(1)] analyzing: /Users/owner/Desktop/test/unreachable_test.py (6ms)
(19581) Background analysis message: resumeAnalysis
(19581) [BG(1)] indexing: /Users/owner/Desktop/test/unreachable_test.py [found 2] (0ms)
(19581) Indexing Done: /Users/owner/Desktop/test/unreachable_test.py
(19581) Background analysis message: getDiagnosticsForRange
(19581) Background analysis message: getDiagnosticsForRange

Fixed!
Language Server version: 2023.3.30
OS and version: darwin x64
Python 3.11.2
python.analysis.indexing: true
python.analysis.typeCheckingMode: off


Reformatting print()s that span multiple lines does not remove extraneous "s

Operating system: Linux
Python version: 3.6.3rc1
Black version: 18.4a1
Does also happen on master: Yes (18.4a3 cloned today)
Original code:
            self.logger.debug(
                f'Skipped {skipped_count} virtual '
                f'interfaces for {device.name}'
            )

black'd code:
            self.logger.debug(
                f"Skipped {skipped_count} virtual " f"interfaces for {device.name}"
            )

Could black detect that it's done this (with or without f-string markers), and remove the ' " " ' that results, or is that considered too invasive a change to the code?

See also #26, possible duplicate.

Absolutely a duplicate :( Didn't see that in my searching.


Create Labels

Description
Please describe the change you have made.
Checklist:

[ ] Tests added/updated.
[ ] Documentation updated.
[ ] Changelog updated in CHANGELOG.md.
[ ] Version bumped. If triggering a new release is desired, bump the version number in pyproject.toml per semantic versioning.

Merged into #171

Merged into #171


Update limitProperties.ts

in absence of condition pluralization of message, at least have item(s)

What issue does this pull request resolve?
What changes did you make?
Is there anything that requires more attention while reviewing?

You lost the purpose of the initial request... to be ready for "0 properties" "1 property" "2+ properties". I mean, I'd suggest you use a library or util that can conditionalize correctly, even a simple ${schemaCode} == 1 ? "property" : "properties" would do...


Error during setup upgrade

Fatal error: Access level to Eadesigndev\Pdfgenerator\Model\Email\Message::$zendMessage must be protected (as in class Magento\Framework\Mail\Message) or weaker in vendor/eadesignro/module-pdfgenerator/Model/Email/Message.php on line 17

Hi,
We also have this issue and have your module installed is there going to be a fix soon? as this is the only thing holding us back from going live with our latest iteration.
Also as this a paid for extension do you have a support channel?
Thanks
Ben

I wanted to try this extension but I'm facing the same issue.


[c++] Split out a test fixture for dataframes

Issue and/or context: This is an underdiff split beneath #2944 for issue #2407 / [sc-51048].
The intended Python and R API changes are all agreed on and finalized as described in #2407.
Changes:
While I made a test fixture on #2944 for the new unit-test cases there, I realized the same fixture applied to existing test-cases.
This PR separates out from #2944 the fixture itself, and the keystroke-reduction for existing unit tests. This allows the reviewer to focus solely on the fixture and the refactor without being distracted by any new cases.
Notes for Reviewer:

Back into draft while I solve the (unexpected) unit-test failure.


TADA.ComparableDataIdentifier is used for legend labels in TADA_TwoCharacteristicScatterplot uses a different column for id_cols

Describe the bug
TADA.ComparableDataIdentifier is used for the legend labels in TADA_TwoCharacteristicScatterplot even when a different column has been selected for id_cols. This is confusing when comparing the same characteristic between two monitoring locations, for example:

To Reproduce
df <- dplyr::filter(Data_6Tribes_5y_Harmonized, TADA.ComparableDataIdentifier == "TOTAL PHOSPHORUS, MIXED FORMS_UNFILTERED_AS P_UG/L")
#' # Creates a scatterplot including the two specified sites in the same plot:
TADA_TwoCharacteristicScatterplot(df, id_cols = "MonitoringLocationName", groups = c("Upper Red Lake: West", "Upper Red Lake: West-Central"))

Expected behavior
Labels for the legend should reflect the column selected in id_cols.
Bug fixes should include all the following work:

[ ] Create or edit the function/code.

[ ] Document all code using line/inline and/or multi-line/block comments
to describe what is does.

[ ] Create or edit tests in tests/testthat folder to help prevent and/or
troubleshoot potential future issues.

[ ] Create or edit the function documentation. Include working
examples.

[ ] Update or add the new functionality to the appropriate vignette
(or create new one).

[ ] If function/code edits made as part of this issue impact other
functions in the package or functionality in the shiny app, ensure
those are updated as well.

[ ] Run TADA_UpdateAllRefs(), TADA_UpdateExampleData(), styler::style_pkg(),
devtools::document(), and devtools::check() and address any new notes or
issues before creating a pull request.

[ ] Run more robust check for releases: devtools::check(manual = TRUE,
remote = TRUE, incoming = TRUE)

I'm unsure if this is an issue with the example dataset, but when I ran the above code to reproduce the issue, I only get 50 rows of observation due to the argument TADA.ComparableDataIdentifier == "TOTAL PHOSPHORUS, MIXED FORMS_UNFILTERED_AS P_UG/L" being set to the unit UG/L but when I changed it to MG/L I was able to reproduce the results, just in MG/L instead of UG/L.
df <- dplyr::filter(Data_6Tribes_5y_Harmonized, TADA.ComparableDataIdentifier == "TOTAL PHOSPHORUS, MIXED FORMS_UNFILTERED_AS P_UG/L")
versus
df <- dplyr::filter(Data_6Tribes_5y_Harmonized, TADA.ComparableDataIdentifier == "TOTAL PHOSPHORUS, MIXED FORMS_UNFILTERED_AS P_MG/L")

Below is an example of a scatterplot I modified for a demo. See (https://usepa.github.io/EPATADA/articles/TADAWaterSciConWorkshopDemo.html) if you want to see how to create the data set used in the example below.
Maybe it would be possible to conditionally remove the 2nd y-axis if the same characteristic is plotted in both traces? But base the scale on both traces?
What do you think of changing the name to TADA_TwoGroupScatterplot? That might be more descriptive if we are making it flexible enough to accommodate different id_cols inputs.
Or is this starting to get so convoluted that it may make sense to create a separate function for comparing different locations rather than different characteristics? We could discuss tomorrow.
`# create two characteristic scatterplot using TADA_TWoCharacteristicScatterplot
twochar_scatter <- TADA_TwoCharacteristicScatterplot(data %>%
dplyr::filter(ActivityStartDate > "2014-12-31",
TADA.ComparableDataIdentifier ==
"SPECIFIC CONDUCTANCE_TOTAL_NA_US/CM @25C"),
id_cols = "ATTAINS.assessmentunitname",
groups = c("San Juan River (Navajo bnd at Hogback to Animas River)", "Animas River (San Juan River to Estes Arroyo)")) %>%
remove default plot features that are not applicable for a location comparison
plotly::layout(yaxis2 = list(overlaying = "y", side = "right", title = "", visible = FALSE),
title = TADA_InsertBreaks("SPECIFIC CONDUCTANCE for the San Juan and Animas Rivers Over Time"))
create two characteristic scatterplot using TADA_TWoCharacteristicScatterplot
twochar_scatter <- TADA_TwoCharacteristicScatterplot(data %>%
dplyr::filter(ActivityStartDate > "2014-12-31",
TADA.ComparableDataIdentifier ==
"SPECIFIC CONDUCTANCE_TOTAL_NA_US/CM @25C"),
id_cols = "ATTAINS.assessmentunitname",
groups = c("San Juan River (Navajo bnd at Hogback to Animas River)", "Animas River (San Juan River to Estes Arroyo)")) %>%
remove default plot features that are not applicable for a location comparison
plotly::layout(yaxis2 = list(overlaying = "y", side = "right", title = "", visible = FALSE),
title = TADA_InsertBreaks("SPECIFIC CONDUCTANCE for the San Juan and Animas Rivers Over Time"))`


Manual trigger a check with an API call

Describe the feature you would like and why you want it
given there is a KuberhealthyCheck that is called http,
I want to trigger a check and get the result only by using an API call (or two).
I want to do so even if I don't have access to the cluster itself and kuberhealthy is exposed using a loadbalancer.
an example for an async API could be:

/trigger?name=http&namesapce=app
which would return a result ID
/results/ID
which would have the result

Additional context
#528 add the support for job CRD, this request added two other features:

By triggering an existing check, the user doesn't need to duplicate the podSpec
By using an API the user doesn't need to have access to the cluster

hey @integrii we at external-secrets had a similar feature request and solved it by allowing a user to simply put an annotation on a Custom Resource and this triggers a full reconciliation.
In the context of kuberhealthy this could also work.
kubectl annotate khcheck my-check force-sync=$(date +%s) --overwrite

if no job runs then start a job
when a job already runs re-queue (so it'll start after the current one)

This is just a thought. That allows us to leverage the kube-apiserver instead of having to implement tls, authn, authz etc.
Sidenote: cert-manager has a kubectl plugin. It uses IIRC .Status.Conditions to trigger a refresh. That's the same mechanics, just a different field.
original issue: https://github.com/external-secrets/external-secrets/issues/129#issuecomment-850146658

Thanks for info.  External-secrets looks pretty useful. I will keep that in my toolkit!
Revisiting my thoughts here, I agree with @OmerKahani that a UI would be awesome for Kuberhealthy.  I also agree that it should be in another repository.  We actually have some items listed in our milestones for the creation of a UI sometime in the future.
It seems like there is a bit of a chicken and an egg in the original proposal and this annotation workaround... This assumes that the khjob (or khcheck) exists already, which often times it will not...
Basically we would be going from this workflow:

create a khjob
let the job run
check the khstate of the job
If you want to run the job again, delete it and make it again

to this workflow:

create a khjob
let the job run
check the khstate of the job
if you want to run the job again, use kubectl annotate khjob my-check force-sync=$(date +%s) --overwrite

If you feel this is worth it, we could add this without much trouble (I think), but I feel like the improvement in this approach isn't huge...


Cleanup light code

Codecov Report

Merging #1198 (fa3e8d6) into devel (955c79c) will decrease coverage by 0.09%.
The diff coverage is 97.05%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##            devel    #1198      +/-   ##
==========================================
- Coverage   90.87%   90.79%   -0.09%
==========================================
  Files          49       49
  Lines        5547     5507      -40
==========================================
- Hits         5041     5000      -41
- Misses        506      507       +1

Files Changed
Coverage Δ

hahomematic/platforms/custom/light.py
98.22% <97.05%> (-0.40%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Real time tables with text index enabled lead to file leaks

When a consuming segment completes, all the files in consuming directory are supposed to be deleted. However, text index for real time tables does not clean up all the files. For each segment, one file will remain undeleted.
I dug a bit into the code and I believe found the root cause.
In “consuming” -> “online”  transition on server, first we delete the consuming segment directory and then release the segment:

Text index uses a file “write.lock” as the lock. The lock is released whenever the text index gets released.
So when we try to delete the consuming segment directory in CONSUMING to ONLINE transition, since the lock file is being used and not yet released, all files in segment directory get deleted except the lock file.
That’s why you see the following on a server having a realtime table with text index enabled:

The size of those lock files are all zero:
[smoradi@lva1-app0232 ~]$ ll /export/content/data/pinot-server/i001/pinot/consumerDir/RealtimeFeatureTest1_REALTIME/RealtimeFeatureTest1__0__101__20201229T1103Z/textDim1.lucene.index/
total 0
-rw-rw-r-- 1 app app 0 Dec 29 11:03 write.lock

@sajjad-moradi awesome find

I can also see lots of these lock file not getting deleted. @sajjad-moradi , @mcvsubbu and fix you guys planning to add?
rw-r--r-- 1 root root 0 Feb 13 00:01 ./consumers/sblog__1__753__20210213T0000Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:02 ./consumers/sblog__1__754__20210213T0002Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:04 ./consumers/sblog__1__755__20210213T0004Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:06 ./consumers/sblog__1__756__20210213T0006Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:08 ./consumers/sblog__1__757__20210213T0008Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:12 ./consumers/sblog__1__758__20210213T0012Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:13 ./consumers/sblog__1__759__20210213T0013Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:16 ./consumers/sblog__1__760__20210213T0016Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:17 ./consumers/sblog__1__761__20210213T0017Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:19 ./consumers/sblog__1__762__20210213T0019Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:21 ./consumers/sblog__1__763__20210213T0021Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:22 ./consumers/sblog__1__764__20210213T0022Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:26 ./consumers/sblog__1__765__20210213T0026Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:28 ./consumers/sblog__1__766__20210213T0028Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:31 ./consumers/sblog__1__767__20210213T0031Z/log.lucene.index/write.lock
-rw-r--r-- 1 root root 0 Feb 13 00:33 ./consumers/sblog__1__768__20210213T0033Z/log.lucene.index/write.lock

Hey, I am just starting with pinot. So though of digging into the code to get a clear picture of what it does.
So if no-one else is working on this issue, I can give it a try.
Any pointer on which part of code/tests to tinker with would really help.

@sajjad-moradi Does this issue still exist?

I just checked in a couple of tables. Don't see the issue anymore.

Thanks @sajjad-moradi! Shall we close this ticket then?


Modify_Recoil_When: Module does not work.

Current/Expected Behavior
The specific module "Modify_Recoil_When:" does not work at all with any trigger or any amount. I have tried both percentages and plain numbers both negative and positive.
Steps To Reproduce
Tavor21:
Info:
Weapon_Item:
Type: "shears"
Name: "Tavor-21"
Lore:
- "Weapon Stats:"
- "Damage        | 6"
- "Head Multi     | x1.5"
- "Rate of fire  | 900"
- "Capacity       | 30"
- "Spread        | 2.0"
- "Aim Spread    | 50%"
- "Recoil          | 1.0"
- "Ammunition     | 5.56x45mm"
- "Fire Modes    | Full, Semi"
- "Equip Time     | 1.0s"
- "Rank            | [<dark_green>Soldier]"
Unbreakable: true
Hide_Flags: true
Custom_Model_Data: 42
Weapon_Equip_Delay: 20
Weapon_Info_Display:
Action_Bar:
Message: "Tavor-21<firearm_state> «<ammo_left>/<ammo_available>» «<selective_fire_state>»"
Cancel:
Block_Interactions: true
Item_Interactions: true
Break_Blocks: true
Drop_Item: true
Swap_Hands: true
Shoot:
Trigger:
Main_Hand: "right_click"
Off_Hand: "right_click"
Circumstance:
Reloading: DENY
Swimming: DENY
Dual_Wielding: DENY
Gliding: DENY
Deny_Mechanics:
- "Actionbar{message=You cannot fire this weapon while <deny_reason>!}"
Projectile_Speed: 944
Projectiles_Per_Shot: 1
Fully_Automatic_Shots_Per_Second: 15
Delay_Between_Shots: 2
Selective_Fire:
Trigger:
Main_Hand: "swap_hands"
Off_Hand: "swap_hands"
Circumstance:
Reloading: DENY
Default: AUTO
Mechanics:
- Sound{sound=BLOCK_STONE_BUTTON_CLICK_ON, volume=3, pitch=2, listeners=Source{}}
Spread:
Base_Spread: 2.0
Modify_Spread_When:
Zooming: 50%
Recoil:
Push_Time: 0
Vertical:
- 1
- 0.75
Horizontal:
- 0.25
- 0.175
- 0
- -0.175
- -0.25
Modify_Recoil_When:
Zooming: 1%
Mechanics:
- "CustomSound{sound=shoot.tavor, volume=4, noise=0.2}"
Scope:
Trigger:
Main_Hand: "start_sneak"
Mechanics:
- "Sound{sound=ITEM_ARMOR_EQUIP_GENERIC, pitch=1, listeners=Source{}}"
Zoom_Amount: 1.5
Zoom_Off:
Trigger:
Main_Hand: "end_sneak"
Damage:
Base_Damage: 6
Mechanics:
- "CustomSound{sound=hitsounds.hit, volume=5, noise=0, pitch=0.9, listeners=Source{}}"
Head:
Bonus_Damage: 3
Mechanics:
- "Particle{particle=BLOCK_DUST, count=20, materialData=RED_CONCRETE} @Target{eye=true}"
Body:
Mechanics:
- "Particle{particle=BLOCK_DUST, count=20, materialData=RED_CONCRETE} @Target{eye=true, offset=~0 -0.5 0}"
Arms:
Mechanics:
- "Particle{particle=BLOCK_DUST, count=20, materialData=RED_CONCRETE} @Target{eye=true, offset=~0 -0.5 0}"
Legs:
Mechanics:
- "Particle{particle=BLOCK_DUST, count=20, materialData=RED_CONCRETE} @Target{eye=true, offset=~0 -1 0}"
Feet:
Mechanics:
- "Particle{particle=BLOCK_DUST, count=20, materialData=RED_CONCRETE} @Target{eye=true, offset=~0 -1.5 0}"
Projectile: "rifle_bullet.Projectile"
Reload:
Trigger:
Main_Hand: "drop_item"
Off_Hand: "drop_item"
Magazine_Size: 30
Ammo_Per_Reload: 30
Reload_Duration: 55
Start_Mechanics:
- "CustomSound{sound=remmag.rifle, volume=1, noise=0.2, listeners=Source{}}"
Finish_Mechanics:
- "CustomSound{sound=insmag.rifle, volume=1, noise=0.2, listeners=Source{}}"
Ammo:
Ammos:
- "556x45mm"
Firearm_Action:
Type: "SLIDE"
Open:
Time: 10
Mechanics:
Close:
Time: 12
Mechanics:
- "CustomSound{sound=charge.rifle, volume=1, noise=0.1, pitch=1, listeners=Source{}, delayBeforePlay=10}"
Cosmetics:
Death_Messages:
- <target_name> was gunned down by <source_name> using an [Tavor-21]
- <target_name> recieved lead from <source_name> using an [Tavor-21]
- <target_name> got rekt by <source_name> using an [Tavor-21]
- <target_name> was riddled by <source_name> using an [Tavor-21]
- <target_name> got waxed by <source_name> using an [Tavor-21]
Show_Time:
Reload:
Item_Cooldown: true
Weapon_Equip_Delay:
Item_Cooldown: true
Log File
latest.log
Anything else?
No response

Tavor-21.txt
Since the yaml didn't exactly paste correctly into the text field and github doesn't allow me to upload ymls, here is the yml converted to a .txt file


Hyperlinks on enumerations

I think it might be good to put hyperlinks on the following enumerations:

DEVICE_POWER_STATE
SYSTEM_POWER_STATE
PC_EXIT_LATENCY

I see other pages with similar hyperlinks, so it could be consistent.

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

ID: 2a40172b-8e60-6a8e-a05c-161898a0be5a
Version Independent ID: c9bf6e91-8122-299f-7886-2c34fd806a02
Content: IAdapterPowerManagement3::PowerChangeState3 (portcls.h) - Windows drivers
Content Source: wdk-ddi-src/content/portcls/nf-portcls-iadapterpowermanagement3-powerchangestate3.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @DOMARS
Microsoft Alias: domars

@darugeri - Links have been added. As I mentioned, you are always welcome to do a PR from the topic on any improvements that you see.

@darugeri - Links have been added. As I mentioned, you are always welcome to do a PR from the topic on any improvements that you see.


Unable to build with template

Using docfx version 2.75.2+fe673ecea2ac444a4fd480e6cfcf605c78614385 (latest from github), and discordfx v0.5, I'm getting an error preventing the build.
Project folder is C:\Projects\technical-guides\content so in a command prompt I change to this folder and then run ..\build\docfx\docfx.exe build (the docfx executable lives relative to the current folder).
The discordfx template folder is in C:\Projects\technical-guides\content\templates\discordfx. And the error I'm seeing when trying to build is below. I can build fine with the default themes so I wonder if there's a compatibility issue?
Searching custom plugins in directory C:\Projects\technical-guides\build\docfx\...
Post processor ExtractSearchIndex loaded.
No files are found with glob pattern images/**, excluding <none>, under directory "C:\Projects\technical-guides\content"
7 plug-in(s) loaded.
Building 3 file(s) in ConceptualDocumentProcessor(BuildConceptualDocument=>ValidateConceptualDocumentMetadata)...
Building 2 file(s) in TocDocumentProcessor(BuildTocDocument)...
Applying templates to 5 model(s)...
C:\Projects\technical-guides\content\toc.yml: error ApplyTemplateRendererError: Error applying template "toc.html" generated from "toc.yml". To get the detailed view model, please run docfx with debug mode --debug. You have reached the maximum recursion limit of 256.
C:\Projects\technical-guides\content\docs\toc.yml: error ApplyTemplateRendererError: Error applying template "toc.html" generated from "docs/toc.yml". To get the detailed view model, please run docfx with debug mode --debug. You have reached the maximum recursion limit of 256.
DocumentException: Error applying template "toc.html" generated from "toc.yml". To get the detailed view model, please
run docfx with debug mode --debug. You have reached the maximum recursion limit of 256.
     DocumentException: Error applying template "toc.html" generated from "toc.yml". To get the detailed view model,
     please run docfx with debug mode --debug. You have reached the maximum recursion limit of 256.
          StubbleException: You have reached the maximum recursion limit of 256.
            at object Render(BlockToken block, Context context)
            at void Write(StringRender renderer, SectionToken obj, Context context)
            at void Write(RendererBase<TContext> renderer, MustacheToken obj, TContext context)
            at void Write<T>(T obj, TContext context)
            at object Render(BlockToken block, Context context)
            at void Write(StringRender renderer, PartialToken obj, Context context)

<snip>

            at string Render(string template, object view)
            at string Render(object model) in MustacheTemplateRenderer.cs:55
            at string Render(object model) in RendererWithResourcePool.cs:36
            at string Transform(object model) in Template.cs:110
            at ManifestItem Transform(InternalManifestItem item) in TemplateModelTransformer.cs:121
       at ManifestItem Transform(InternalManifestItem item) in TemplateModelTransformer.cs:138
       at void <ProcessCore>b__0(InternalManifestItem item) in TemplateProcessor.cs:194
       at void <RunAll>b__0(TElement s) in DocumentExceptionExtensions.cs:80
  at void RunAll<TElement>(IEnumerable<TElement> elements, Action<TElement> action, int parallelism) in
     DocumentExceptionExtensions.cs:89
  at void RunAll<TElement>(IReadOnlyList<TElement> elements, Action<TElement> action, int parallelism) in
     DocumentExceptionExtensions.cs:60
  at List<ManifestItem> ProcessCore(List<InternalManifestItem> items, ApplyTemplateSettings settings,
     IDictionary<string, object> globals) in TemplateProcessor.cs:189
  at List<ManifestItem> Process(List<InternalManifestItem> manifest, ApplyTemplateSettings settings, IDictionary<string,
     object> globals) in TemplateProcessor.cs:88
  at List<ManifestItem> ProcessTemplate() in ManifestProcessor.cs:182
  at void Process() in ManifestProcessor.cs:53
  at void Handle(List<HostService> hostServices, int maxParallelism) in LinkPhaseHandler.cs:32
  at Manifest Build(DocumentBuildParameters parameters, IMarkdownService markdownService) in SingleDocumentBuilder.cs:67
  at void Build(IList<DocumentBuildParameters> parameters, string outputDirectory) in DocumentBuilder.cs:124
  at void BuildDocument(BuildJsonConfig config, BuildOptions options, TemplateManager templateManager, string
     baseDirectory, string outputDirectory, string templateDirectory) in DocumentBuilderWrapper.cs:42
  at string Exec(BuildJsonConfig config, BuildOptions options, string configDirectory, string outputDirectory) in
     RunBuild.cs:39
  at void <Execute>b__0() in BuildCommand.cs:19
  at int Run(LogOptions options, Action run) in CommandHelper.cs:44
  at int Execute(CommandContext context, BuildCommandOptions settings) in BuildCommand.cs:15
  at Task<int> Execute(CommandContext context, CommandSettings settings) in CommandOfT.cs:40
  at Task<int> Execute(CommandTree leaf, CommandTree tree, CommandContext context, ITypeResolver resolver,
     IConfiguration configuration) in CommandExecutor.cs:144
  at async Task<int> Execute(IConfiguration configuration, IEnumerable<string> args) in CommandExecutor.cs:83
  at async Task<int> RunAsync(IEnumerable<string> args) in CommandApp.cs:84

Ran into the same problem here. If you nuke the toc.html.tmpl and toc.tmpl.partial files it'll build but you won't have a toc or searchable filter on the table of contents page or class click-through pages.
This is using the latest release from https://github.com/dotnet/docfx on Windows 11.

Interesting. Just looking and the last commits for those files were years ago so I wonder if it's a breaking change or bug in docfx then. I'm brand new to docfx, so I'll have to invest a bit of time into debugging it at some point.

@jmckenzie-dev If you rename toc.html.tmpl in the root of the template folder to toc.html.primary.tmpl, then the buildworks - although it looks like this was probably based off a different "modern" template because some of the UI is a bit ugly and probably needs some re-work.
Since the docfx documentation on the templating system is fairly light on detail, I can't decide if this is a "by design" or astraight out bug in docfx.
If it's by design, then in the situation where one of the ancestor templates contains primary renderer, that the leaf template needs to deliberately override that primary explicitly. Then the error handling needs to be improved in docfx to show a sensible error, and the discordfx template needs a rework).
Or, docfx should consider the template's renderers in "random order" as per the documentation, but still allow any non-primary renderer in the leaf node template to override an ancestor template's primary renderer.