More configurable crypto and ssl library initialization

[x] documentation is updated

[ NOTE: Perhaps the generator copyright year fix should be a separate PR, but I wanted to see the CI tests pass for this one.  I guess I get the first PR for 2019! :-) ]

In addition to overriding the default application name,
one can now also override the configuration file name
and flags passed to CONF_modules_load_file().

By default we still keep going when configuration file
processing fails.  But, applications that want to be
strict about initialization errors can now make explicit
flag choices via non-null OPENSSL_INIT_SETTINGS that omit
the CONF_MFLAGS_IGNORE_RETURN_CODES flag (which had so far
been both undocumented and unused).

In OPENSSL_init_ssl() do not request OPENSSL_INIT_LOAD_CONFIG
if the options already include OPENSSL_INIT_NO_LOAD_CONFIG.

Don't set up atexit() handlers when called with opts equal to
OPENSSL_INIT_BASE_ONLY (this flag should only be used alone).

Will try and take a look tomorrow.

This PR is a blocker for the upcoming Postfix 3.4 release

maybe the no-autoload-conf can help a bit with released 1.1.1 versions...

@bernd-edlinger maybe the no-autoload-conf can help a bit with released 1.1.1 versions...

Sadly, OPENSSL_INIT_NO_LOAD_CONFIG is broken in 1.1.1a with OPENSSL_init_ssl() which always also passes OPENSSL_INIT_LOAD_CONFIG even when the former is passed by the application. That's one the issues fixed in this commit.  Also, with OPENSSL_INIT_NO_LOAD_CONFIG none of the modules are loaded, so the application also has to call OPENSSL_load_builtin_modules() if it wants to use CONF_modules_load_file() directly, but that's not clearly documented.
I hope the PR is seen for what it is intended to be, namely, a cleanup of blemishes in the existing initialization interface, fixing a couple of defects, and implementing the obvious missing settings, plus visibility into initialization failure if desired.

@mattcaswell I'm unclear why we are targeting 1.1.1 with this change. This look like a new feature. What is the bug we are fixing?

The bug is usability. It is too hard to preclude loading of the default configuration file, and impossible to learn whether configuration was successful. The reason for 1.1.1 is that this is an LTS release, so if not fixed in 1.1.1, the problem will fester for ~5 years.  I need to be able to isolate Postfix SSL behaviour from unexpected external influence that is not part of its explicit configuration.  That is not possible in 1.1.x, but 1.1.0 is going away end of year, so 1.1.1 is the release to target.
There in any case some warts in the implementation beyond the two missing parameters (config filename, and flags), which should have been there from the get go.  The missing "settings" can (with a bit of a stretch) be seen as inadvertently omitted accessors, the current init setings API is giving us control over just the application name, but CONF_modules_load_file has 2 more parameters that need to be configurable.
A definite bug fix is OPENSSL_init_ssl() always specifying "LOAD_FILE" even the application passes the contrary option.
As for the pairs of "INIT_NO_XXX", "INIT_XXX" functions, I also have a "git stashed" fix for those, but kept it back, in case it was a deliberate feature that initialization should happen only one way once, and attempts to change one's mind should report failure.  But if that's not the case, I'll compare with your PR, and see whether there's any reason to prefer my version, in which case I'll push another commit.

@mattcaswell your RUN_ONCE fix for the shared barriers is functionally equivalent.  I have a version that is more symmetric in the two functions, but this is not compelling.  For the record, in include/internal/thread_once.h:
/*
 * Pair of complementary initialization functions that share the same run-once
 * barrier, so only one of which gets to run, after which point either reports
 * the same sucess/fail result.  Here we declare the prototypes and the
 * associated static variables.  Getting both functions to use the same static
 * result variable would requires too many changes to all the other RUN_ONCE
 * callers.
 */
#define DECLARE_RUN_ONCE_PAIR(v)                    \
    static CRYPTO_ONCE v = CRYPTO_ONCE_STATIC_INIT; \
    static int v##_pair_ossl_ret_ = 0

#define DEFINE_RUN_ONCE_PAIR_FUNC(f, v)         \
    static int f##_##v(void);                   \
    static void f##_##v##_ossl_(void)           \
    {                                           \
        v##_pair_ossl_ret_ = f##_##v();         \
    }                                           \
    static int f##_##v(void)

#define RUN_ONCE_PAIR(f, v)               \
    (CRYPTO_THREAD_run_once(&v, f##_##v##_ossl_) ? v##_pair_ossl_ret_ : 0)

and then, e.g., in crypto/init.c:
static int config_inited = 0;
static const OPENSSL_INIT_SETTINGS *conf_settings = NULL;
DECLARE_RUN_ONCE_PAIR(load_config);
DEFINE_RUN_ONCE_PAIR_FUNC(ossl_init, load_config)
{
    int ret = openssl_config_int(conf_settings);
    config_inited = 1;
    return ret;
}
DEFINE_RUN_ONCE_PAIR_FUNC(ossl_init_no, load_config)
{
#ifdef OPENSSL_INIT_DEBUG
    fprintf(stderr,
            "OPENSSL_INIT: ossl_init_config: openssl_no_config_int()\n");
#endif
    openssl_no_config_int();
    config_inited = 1;
    return 1;
}
...
    if ((opts & OPENSSL_INIT_NO_LOAD_CONFIG)
            && !RUN_ONCE_PAIR(ossl_init_no, load_config))
        return 0;

    if (opts & OPENSSL_INIT_LOAD_CONFIG) {
        int ret;
        CRYPTO_THREAD_write_lock(init_lock);
        conf_settings = settings;
        ret = RUN_ONCE_PAIR(ossl_init, load_config);
        CRYPTO_THREAD_unlock(init_lock);
        if (!ret)
            return 0;
    }

@mattcaswell I'm unclear why we are targeting 1.1.1 with this change. This look like a new feature. What is the bug we are fixing?

The bug is usability. It is too hard to preclude loading of the default configuration file

I agree with @vdukhovni on this one in terms of seeing it as a bug fix - although a purist view point would also see this as a feature enhancement too. I see both viewpoints as reasonable and defensible.

Now that #7647 is in, this should probably be rebased.

Separate PR opened for master after rebasing.  This PR is blocked pending merge of #7983 into 1.1.1.  At which point I'll force-push a rebase...

Rebased, so again ready for review.


Fix #1: Migrated to Alpine, implemented server_default cmd

This PR contains two changes:

Migrated the build stage as well as the final container to Alpine
Implemented server_default as default CMD that is being executed through the entrypoint.sh by using the values defined in the ENV entries. Those values can be overridden using the --env argument of docker run. Also it allows for a nicer deployment on Kubernetes by using a ConfigMap resource for specifying those values.

This PR also fixes #1 by setting the default host to <IP_ADDRESS>.

Thanks, -crt-static is a neat trick. I'll merge this but I'm going to make some changes on the environment variable. structopt itself supports reading directly from environment variable like this so we don't really need to use entrypoint.sh for that.
https://github.com/fanzeyi/lares/blob/af1527bd3388d7e761d30c998da59cf792c86c69/src/cli.rs#L395-L400


OpenStreetMap provider: done.

Another geo provider: OpenStreetMaps.
I did not find any chance to switch the provider in the runtime and I did not want to mix new provider code with anything else, that’s why testing might look a bit sloppy. Basically, the new config option is to be set to either Google or OSM and tests are to be run. This approach is by no means CI-friendly, though.

Yes, exactly. I believe the default value should remain GoogleMaps, I have set it to the new one only for the sake of testing.

:shipit:


feature: add cssClasses to custom batch action button

this pull request implements a feature into BatchAction

one can add a css class to the button (a href) for styling
one can add multiple css classes to the button

thanks


Location of BilinearUpSampling2D layer

I couldn't find the implementation of BilinearUpsampling2D layer in your implementation, could you direct me to it?

utils/BilinearUpSampling.py

thanks, I am working on a reference implementation of fcn-8s, will submit a PR if it works!


Consider supporting github attachments

https://blog.github.com/2018-12-10-introducing-content-attachments-api/

for matrix.to?

Might make more sense inside the matrix-static codebase but connected to both domains

I think I'll do this in my little spare time

(in m-s so it can show room name etc etc, plus as matrix.to has no server component which is needed for the api)

for matrix.to?

Yea, so that when people drop permalinks in github issues it magically works

aaaah! that’d rock!

First draft, not very useful yet:

https://github.com/apps/matrix-to
et voila
(Backed by https://github.com/t3chguy/matrix-github-content-attachments)

I just noticed I had the 💪 POWER to do that but opted not to :P

https://matrix.to/#/!DdJkzRliezrwpNebLk:matrix.org

Turns out riot-dev isn't world viewable :P
https://matrix.to/#/!QtykxKocfZaZOUrTwp:matrix.org

also I think query args such as via will break the SUPER naive regex :P so I shall fix that

Just for testing:
https://matrix.to/#/!QtykxKocfZaZOUrTwp:matrix.org/$15457111881337381EhwTO:matrix.org?via=matrix.org&via=half-shot.uk&via=disroot.org

@t3chguy that should show the event

well that's no fun. We should fix that (or provide a guest-capable API to get the event).

Test
https://matrix.to/#/!QtykxKocfZaZOUrTwp:matrix.org/$15457111881337381EhwTO:matrix.org?via=matrix.org&via=half-shot.uk&via=disroot.org

Test, I think this may be broken now
https://matrix.to/#/!QtykxKocfZaZOUrTwp:matrix.org/$15457111881337381EhwTO:matrix.org?via=matrix.org&via=half-shot.uk&via=disroot.org

"Yay"

Test 2 https://matrix.to/#/!QtykxKocfZaZOUrTwp:matrix.org/$15457111881337381EhwTO:matrix.org?via=matrix.org&via=half-shot.uk&via=disroot.org

Test 3 https://matrix.to/#/!QtykxKocfZaZOUrTwp:matrix.org/$15457111881337381EhwTO:matrix.org?via=matrix.org&via=half-shot.uk&via=disroot.org


fluttergpu has a lot of linter warnings

These show up in my vscode as problems when just editing c++ code.

seen at: 206e86ee8a40ad28233338b7a99a2b083cdce85f
cc @bdero

These can be filtered out by selecting the "Show active files only" filter option in the problems view.

Possibly related/dupe: https://github.com/flutter/flutter/issues/152002

In the future this will be prevented by https://github.com/flutter/flutter/issues/152636.

Closing as dupe of https://github.com/flutter/flutter/issues/152002


Commit timestamp is retrieved from file timestamp instead of delta logfile, breaking functionality when log files are moved and/or restored

https://github.com/delta-io/delta/blob/93eef1112fce9c766aec504f26f09d53bbcabb03/connectors/standalone/src/main/scala/io/delta/standalone/internal/DeltaHistoryManager.scala#L202
Since the timestamp is retrieved from the file timestamp, when doing a full restore (moving files) or moving the _delta_log contents. The timestamps will all share the same value, breaking the functionality of restoring to a point in time.
Could this be changed to the commit timestamp that is available in the actual log file?

Hi @samvruggink. Are you talking about delta standalone specifically?
In Spark Delta, the In-Commit Timestamps may help you, it is in preview.
https://github.com/delta-io/delta/pull/2596/files#diff-98df89d4b0ce76abb5263d4fbb6f991660083a254dcdb9d922a4973a9937a4e2


Multiple srt charset encoding support

I was working with srt-to-vtt and to-utf-8 projects to implement proper non-UTF-8 support for srt files.
This checks another item in #281

These types of commits are not necessary because of the way that semver works. ^1.0.3 will install the newest 1.x.x release.

i realized it after the fact. Thanks for the advise anyway.


Remove ray calls - Undefined Method in PHPStan\PhpDocParser - getParamImmediatelyInvokedCallableTagValues()

When running the script, an error occurs while processing the file .... The error points to an undefined method getParamImmediatelyInvokedCallableTagValues() in PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode. The error occurs on line 308.
[ERROR] Could not process "..." file, due
         to:
         "Call to undefined method
         PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode::getParamImmediatelyInvokedCallableTagValues()". On line: 308

Versions

spatie/ray package version: 1.41.2
PHP version: 8.3

To Reproduce
Steps to reproduce the behavior:
Run the script (vendor/bin/remove-ray.sh) that processes PHP files.
Expected behavior
The script should process the file without encountering any undefined method errors.
Additional context
This issue seems related to PHPStan's PhpDocParser handling of callable tag values. The method getParamImmediatelyInvokedCallableTagValues() might not exist or be incorrectly referenced in the processing logic./

@rikgirbes thank, that looks fine. Also good to know you experience this on two different systems.
Could it be something to do with the version of Rector you are running? https://github.com/rectorphp/rector/issues/8665
Personally I'm on 1.2.10 and have no problems.

That did the trick! Just made a small update to Rector, and everything seems to be running smoothly now. Thanks!


Release 0.5

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files
Coverage Δ

movegen/src/position_history.rs
99.05% <0.00%> (ø)

movegen/src/position.rs
98.22% <33.33%> (-1.78%)
:arrow_down:

:loudspeaker: Thoughts on this report? Let us know!.


react-native link does not work on 0.8.2

react-native link does not show any output, it looks like it can't find the package, rolling back to 0.8 solved the issue

Is this something that react-native-contacts needs to correct? I've never used RN link.

In the instalation  it says that it needs to be linked, if you do not link it shows as undefined.

again, what does this project need to change?

@morenoh149 fix linking issues i guess?

otherwise you need to manually add
            import com.rt2zz.reactnativecontacts.ReactNativeContacts;
            ...
            new ReactNativeContacts(),

in mainapplication.java on adnroid

I confirm that react-native link react-native-contacts is not doing anything for some reason. It is supposed to apply the changes automatically to MainApplication, AndroidManifest, etc.
(RN 0.47 in my case)

I have the exact same problem, getting "Cannot read property 'getAll' of undefined". Tried reverting back to v0.8.0 and relinking, but no luck.
Can anyone suggest a fix to this problem?

@fredesse try rm -rf-ing your node_modules directory

I don't know how to make the module react-native linkable. If anyone can share docs or a tutorial on how to do please share. I've removed the link step from the readme.


incomplete image

Hello,
Congratulations on the work, I really liked the project.
I did some tests and the printscreen seems to be partial, is there any way to increase it?
https://api.apify.com/v2/key-value-stores/J3GNh6mdMRPIc2H4G/records/currentScreenshot.png

Sorry for a late reply. What is your input? I would like to test it out.

Hi Lukas,
Thank you for your nice work!
I am also facing the same problem.
Here is the output screenshot:
https://api.apify.com/v2/key-value-stores/eOsGXmrb9srQx0N7b/records/currentScreenshot.png
Webpage: https://www.webull.com/pricing
Selector: #app > section
I hope you can help me!
Thanks,
Tamás


Vulnerability roundup 57: python-2.7.15: 1 advisory

search, files

[x] CVE-2018-14647 (nixos-unstable, nixos-18.09)

Scanned versions: nixos-unstable: 44b02b52ea6; nixos-18.09: c840631fe20. May contain false positives.

We most likely weren't affected: https://github.com/NixOS/nixpkgs/pull/52996#issuecomment-464428053


How many items are supposed to show up in total?

Hello,
I see 101 Items in which raspberry/mcu temp is missing.

There should be above the example the other required integrations required to run it.
Maybe add a dumb-down sample or add a basic one with no extra requirements and all the sensors included just to get people off the ground running.

I am not sure what you want tbh.

In the example here
   - entity: sensor.moonraker_raspberry_pi         name: RPi3     - entity: sensor.moonraker_mcu         name: Octopus     - entity: sensor.atc_3d_temperature         name: Chamber
These entities are missing for me.
Was my main issue I was hoping you were going to tell me how many entities show up for you ie is it more than 101 like my picture shows?
The other issue was that the example uses multiple custom front end integrations which are not stated above the example maybe include a link to them:
custom:mushroom-title-card
custom:bar-card
custom:apexcharts-card
custom:button-card
So I was saying maybe also provide a basic example without custom cards. Using standard home assistant components maybe a grid card with all the sensors in it.

You may also want to mention that you have to change the word moonraker to what your printer shows up as. As mine was mainsailos.

You can simply add all entity to a UI from the default Home Assistant feature.

You get there by going in Setting-Device-Moonraker Integration
Also, that specific dashboard is an exemple of more advance dashboard you can build.

Any information about the main issue? Those temperatures simply not existing in the sensor selection.

ok couple of things.

the dashboard example may include sensors not available for everyone (this is all dependant on what your printer reports) as an example my printer reports a total of 111 entities

to verify what is missing, can you output the value of
http://YOUR_URL/printer/objects/list
This should tell us all available sensors (including temp), Then we can see if/what we are missing

What do you mean?
Why would it not show up?
I see the RPi temperature in the screenshot there 55C so why is it not showing up?
Also, why does yours not show MCU temp?

Because Moonraker does NOT expose it via the API

So why does your example here have it?
https://moonraker-home-assistant.readthedocs.io/en/stable/dashboard.html

As explained here:

This is an example dashboard by one member of the community.
For some reason, his setup does export that specific sensor so he has access to it.
At the end of the day this app will use anything it receives, but your printer/moonraker need to sends it.
Looks like by default it does not.

Ok so you do this:

In your printer.cfg add
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100

[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100

{"result": {"objects": ["webhooks", "configfile", "mcu", "gcode_move", "print_stats", "virtual_sdcard", "pause_resume", "display_status", "gcode_macro CANCEL_PRINT", "gcode_macro PAUSE", "gcode_macro RESUME", "gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL", "gcode_macro QRCode_Scan", "stepper_enable", "tmc2209 stepper_x", "tmc2209 stepper_y", "tmc2209 stepper_z", "tmc2209 extruder", "heaters", "heater_bed", "heater_fan hotend_fan", "fan", "filament_motion_sensor btt_smart_filament_sensor", "idle_timeout", "bed_screws", "temperature_sensor Chamber_Temp", "temperature_host raspberry_pi", "temperature_sensor raspberry_pi", "temperature_sensor mcu_temp", "gcode_macro PRINT_START", "gcode_macro PRINT_END", "gcode_macro LOAD_FILAMENT", "gcode_macro UNLOAD_FILAMENT", "gcode_macro _RUNOUT_INFO", "gcode_macro SET_ACTIVE_SPOOL", "gcode_macro CLEAR_ACTIVE_SPOOL", "motion_report", "query_endstops", "system_stats", "manual_probe", "toolhead", "extruder"]}}

and does it work?
You probably need to reload the integration

Make sure to check the count of entity to see if it goes up

As explained here:
This is an example dashboard by one member of the community.
For some reason, his setup does export that specific sensor so he has access to it. At the end of the day this app will use anything it receives, but your printer/moonraker need to sends it.
Looks like by default it does not.

Yes!

As I was saying before instead of just saying hey here is an example that doesn't work... Explain how to get it working fully with all the requirements. Their original dash actually seems to have way more than that which they seemed to have dumbed down a bit for your sample but not all the way.

ok thanks I will update the doc eventually

Thank you!


Prevent duplicate directory format registrations for a semantic type

Current Behavior
register_semantic_type_to_format doesn't check for duplicate registrations.
Proposed Behavior
Maybe drop the list and use a dict here
References
(this could possibly make the work in https://github.com/qiime2/qiime2/pull/133 more efficient).

A dict won't quite work because we would need to look up the format for
SomeType % Properties("Foo") (a subtyping question) and we can't register all possible semantic types. It may be possible to strip the predicate, but then we would lose SomeType[A | B | C], but maybe that is ok.
Also you would have to strip all predicates. Foo[A % Properties("Bar")] is a subtype of Foo[A]

It looks like we do now ensure that a given semantic type is only registered once


Miscellaneous pip fixes

Fix pip warnings about inconsistency between distutils' sysconfig and the actual sysconfig; fix error when installing package it would say something like __env_pip__.zip is not a file

13 unexpected successes from a test that wasn't in the codebase when you opened this — sounds like another reason for bors.


Unknown Service: WANIPConnection:1

HI there,
fist time setting up collectd and all the other tools but I fail here:
Aug 20 22:37:53 raspberrypi collectd[1996]: Unhandled python exception in init callback: ServiceError: Unknown Service: WANIPConnection:1
Aug 20 22:37:53 raspberrypi collectd[1996]: Initialization complete, entering read-loop.
Aug 20 22:37:53 raspberrypi collectd[1996]: fritzcollectd: Calling action: WANIPConnection:1 GetStatusInfo {}
Aug 20 22:37:53 raspberrypi collectd[1996]: Unhandled python exception in read callback: ServiceError: Unknown Service: WANIPConnection:1
Aug 20 22:37:53 raspberrypi collectd[1996]: read-function of plugin `python.fritzcollectd' failed. Will suspend it for 20.000 seconds.

Any ideas? If I disable username/password I don't get any obvious error message but I also don't see any data in Grafana. Not sure how to check if something is inserted into the DB.`

After some further digging it seems the error already happens with fritzconnection, e.g. fritzstatus shows the following:
FritzStatus:
version:            0.7.1
Traceback (most recent call last):
  File "/usr/local/bin/fritzstatus", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzstatus.py", line 239, in main
    _print_status(_get_cli_arguments())
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzstatus.py", line 235, in _print_status
    password=arguments.password,
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzstatus.py", line 190, in print_status
    fs = FritzStatus(address=address, port=port, user=user, password=password)
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzstatus.py", line 60, in __init__
    self.last_bytes_sent = self.bytes_sent
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzstatus.py", line 111, in bytes_sent
    'GetTotalBytesSent')
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py", line 442, in call_action
    action = self._get_action(service_name, action_name)
  File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py", line 415, in _get_action
    raise ServiceError('Unknown Service: ' + service_name)
fritzconnection.fritzconnection.ServiceError: Unknown Service: WANCommonInterfaceConfig:1

Fallback to fritzconnection 0.7.3 seems to solve my problem but in general it would be good to understand what's going wrong here ..,

Thanks for the report and for starting the discussion in https://bitbucket.org/kbr/fritzconnection/issues/37/unknown-service-wancommoninterfaceconfig-1.
For the time being I've updated the package (v0.6.3) to require fritzconnection<0.8.0. I need to find time to look into the fritzconnection change and see how fritzcollectd has to be adapted.


unable to build setup.sh & pip build doesn't import

i have the same problem that several people mentioned here.
Environment info
Operating System: MACOS 10.10.5
Compiler: gcc
Package used (python/R/jvm/C++):
xgboost version used: latest from git.
i have tried to update gcc using brew install gcc --without-multilib, it upgraded my old version 6.something to 7.01. didn't worked, i also tried to install gcc5 brew install gcc5 --without-multilib it also got installed.
but  gcc --version returned(after both installation):
caners-MacBook-Pro:make canereren$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

beside of it i can't update my xcode via app store. i thought maybe problem coused by outdated xcode. i will try if you suggest so.
here the outputs i get:
caners-MacBook-Pro:xgboost canereren$ cp make/minimum.mk ./config.mk; make -j4
g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
g++ -c -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
g++ -c -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/logging.cc -o build/logging.o
g++ -c -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api.cc -o build/c_api/c_api.o
g++ -c -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/learner.cc -o build/learner.o
In file included from src/c_api/c_api_error.cc:6:
dmlc-core/include/dmlc/thread_local.h:40:12: error: thread-local storage is not supported for the
      current target
    static thread_local T inst;
           ^
1 error generated.
make: *** [Makefile:119: build/c_api/c_api_error.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/c_api/c_api.cc:7:
dmlc-core/include/dmlc/thread_local.h:40:12: error: thread-local storage is not supported for the
      current target
    static thread_local T inst;
           ^
1 error generated.
make: *** [Makefile:117: build/c_api/c_api.o] Error 1

caners-MacBook-Pro:xgboost canereren$ cd python-package/
caners-MacBook-Pro:python-package canereren$ sudo python setup.py install
Traceback (most recent call last):
  File "setup.py", line 19, in <module>
    LIB_PATH = [os.path.relpath(libfile, CURRENT_DIR) for libfile in libpath['find_lib_path']()]
  File "xgboost/libpath.py", line 46, in find_lib_path
    'List of candidates:\n' + ('\n'.join(dll_path)))
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/Users/canereren/xgboost/python-package/xgboost/libxgboost.so
/Users/canereren/xgboost/python-package/xgboost/../../lib/libxgboost.so
/Users/canereren/xgboost/python-package/xgboost/./lib/libxgboost.so
/Users/canereren/anaconda/xgboost/libxgboost.so
caners-MacBook-Pro:python-package canereren$

caners-MacBook-Pro:python-package canereren$ sudo -H pip install xgboost
Collecting xgboost
  Using cached xgboost-0.6a2.tar.gz
Requirement already satisfied: numpy in /Users/canereren/anaconda/lib/python3.6/site-packages (from xgboost)
Requirement already satisfied: scipy in /Users/canereren/anaconda/lib/python3.6/site-packages (from xgboost)
Requirement already satisfied: scikit-learn in /Users/canereren/anaconda/lib/python3.6/site-packages (from xgboost)
Building wheels for collected packages: xgboost
  Running setup.py bdist_wheel for xgboost ... done
  Stored in directory: /var/root/Library/Caches/pip/wheels/5e/c1/d6/522af54e5cc001fad4dd855117f8bf61b11d56443e06672e26
Successfully built xgboost
Installing collected packages: xgboost
Successfully installed xgboost-0.6a2

pip seems to work (because of gcc5 i think, wasn't like this yesterday) but i can't import package from xgboost in python(anaconda 3.6)
caners-MacBook-Pro:Section 49 - XGBoost canereren$ python3 xgboost.py
Traceback (most recent call last):
  File "xgboost.py", line 30, in <module>
    from xgboost import XGBClassifier
  File "/Users/canereren/Documents/workspace/Machine Learning A-Z /Part 10 - Model Selection & Boosting/Section 49 - XGBoost/xgboost.py", line 30, in <module>
    from xgboost import XGBClassifier
ImportError: cannot import name 'XGBClassifier'

what can be the issue, i feel very lost on this?
thanks.

caners-MacBook-Pro:Section 49 - XGBoost canereren$ $PATH
-bash: /Users/canereren/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/canereren/Library/Haskell/bin:/usr/local/bin:/Users/canereren/.local/bin:/Users/canereren/.cabal/bin:/Applications/ghc-7.10.3.app/Contents/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS: No such file or directory

decided to update MACOS to 10.12.4 (sierra), so i can update xcode to latest version 8.2.
successfully built and import python package.


Implementation for adding addtional Vault tokens from the environment variable

security-file-token-provider now can take the environment variable,
ADD_SECRETSTORE_TOKENS that takes a comma-separated list of additional service keys
for which to create tokens.
The tokens create with the default token parameters and policies.
Unit tests refactored to reduce some duplicate codes

Fix: #2266
Signed-off-by: Jim Wang<EMAIL_ADDRESS>PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://wiki.edgexfoundry.org/display/FA/Contributor's+Guide
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

The current security-token-file-provider can only take the pre-configured services from the TOML configuration file and it is asked for adding additional service token on the fly from the environment variable.
Issue Number: #2266
What is the new behavior?
With this PR, the additional Vault tokens can be created via the environment variable ADD_SECRETSTORE_TOKENS.  This suits the need for application function related services, which is more dynamic configured.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Are there any specific instructions or things that should be known prior to reviewing?
No
Other information
To test this locally, do the following steps:

Clone this branch
Build the docker image of security_secretstore_setup via make from the base of this repo:

$ make docker_security_secretstore_setup

It should produce the docker image: edgexfoundry/docker-edgex-security-secretstore-setup-go:master-dev
3. Modify the docker-compose-nexus-mongo.yml from the developer-script to use the built docker image from local and add the entry in the environment section of vault-worker like this example:
vault-worker:
    #image: nexus3.edgexfoundry.org:10004/docker-edgex-security-secretstore-setup-go:master
    image: edgexfoundry/docker-edgex-security-secretstore-setup-go:master-dev
    container_name: edgex-vault-worker
    hostname: edgex-vault-worker
    environment:
      - "SECRETSTORE_SETUP_DONE_FLAG=/tmp/edgex/secrets/edgex-consul/.secretstore-setup-done"
      - "ADD_SECRETSTORE_TOKENS=test-env-add-service"
    networks:
      edgex-network:
        aliases:
            - edgex-vault-worker

Here we are adding test-env-add-service as an additional or extra service for creating Vault token of it.
4. Run docker-compose up of vault-worker  eg.:
$ docker-compose -f docker-compose-nexus-mongo.yml up vault-worker
edgex-files is up-to-date
edgex-secrets-setup is up-to-date
edgex-core-consul is up-to-date
edgex-vault is up-to-date
Recreating edgex-vault-worker ... done
Attaching to edgex-vault-worker
edgex-vault-worker        | Clearing secretstore-setup completion flag
edgex-vault-worker        | creating /vault/config/assets
edgex-vault-worker        | + exec /consul/scripts/health security-secrets-setup
edgex-vault-worker        | starting vault-worker...
edgex-vault-worker        | passing
edgex-vault-worker        | Initializing secret store
edgex-vault-worker        | level=INFO ts=2020-03-25T23:23:09.456239697Z app=edgex-security-secretstore-setup source=file.go:60 msg="Loaded configuration from ./res/configuration.toml"
edgex-vault-worker        | Creating directory: /logs
edgex-vault-worker        | level=INFO ts=2020-03-25T23:23:09.456365624Z app=edgex-security-secretstore-setup source=init.go:67 msg="using certificate verification for secret store connection"
edgex-vault-worker        | level=INFO ts=2020-03-25T23:23:09.460556844Z app=edgex-security-secretstore-setup source=requestor.go:63 msg="successful loading the rootCA certificate."
edgex-vault-worker        | level=INFO ts=2020-03-25T23:23:09.50545955Z app=edgex-security-secretstore-setup source=common.go:97 msg="successfully made request to health check"
edgex-vault-worker        | level=INFO ts=2020-03-25T23:23:09.50704265Z app=edgex-security-secretstore-setup source=vault.go:64 msg="vault health check HTTP status: StatusCode: 200"
<.... Omit due to lengthy printout ...>
edgex-vault-worker        | Executing custom command:
edgex-vault-worker        | Signaling secretstore-setup completion
edgex-vault-worker        | Waiting for termination signal

Inspect the /tmp/edgex/secrets directory, and it should create a new directory for that named service from the environment variable. ie. test-env-add-service like this:

$ sudo ls -al /tmp/edgex/secrets/test-env-add-service
total 12
drwx------  2 root root 4096 Mar 25 16:23 .
drwxr-xr-x 21 root root 4096 Mar 25 16:23 ..
-rw-------  1 root root  515 Mar 25 16:23 secrets-token.json

Compose down if needed:

docker-compose -f docker-compose-nexus-mongo.yml down -v

cc: @eno-intel

Codecov Report

Merging #2459 into master will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2459      +/-   ##
==========================================
+ Coverage   37.56%   37.73%   +0.17%
==========================================
  Files         156      156
  Lines       12790    12826      +36
==========================================
+ Hits         4804     4840      +36
  Misses       7728     7728
  Partials      258      258

Impacted Files
Coverage Δ

internal/security/fileprovider/provider.go
62.00% <100.00%> (+2.00%)
:arrow_up:

internal/security/fileprovider/tokenconfig.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Ready for re-review and merging.

@lenny-intel can you re-review to see if changes are ok and please remove the change request status.
@tingyuz request your review and 2nd approval from Non-Intel like Bryon mentioned.
Thanks!

Rebase


onSelect callback function is executed when page loads, without selecting any filter

I don't know why onSelect callback function is executed then the script loads, even with no filter selecting. Can I get rid of this behaviour?
Thanks!

Hello
It's just showing you that the values are selected by default. Nothing else.
On Thu, Apr 4, 2019, 11:38 AM mikelweb<EMAIL_ADDRESS>wrote:

I don't know why onSelect callback function is executed then the script
loads, even with no filter selecting. Can I get rid of this behaviour?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/gsrajpurohit/multi-select/issues/3, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AhgfpT0HV8U0GAfCg0wUQ72WZMY5VXl_ks5vdZb0gaJpZM4ccAC-
.


Suggestion - Add chip with keyboard / TextInputAction

Thanks for the awesome package!
Would be great if you can add a chip by selecting "Done" on the keyboard. Currently i have a chip input that is limited to a single chip. The users sometimes forget to select the overlay before continuing, causing the chip not to be selected.
Ex.
It would be great to type something, and select done on the keyboard to dismiss the keyboard, and add the keyboard content as a chip

Hi @Theunodb,
This actually sounds like a great idea.
Problem is that at the time the user is typing on the keyboard there's no option that will be presently selected.
Essentially this would mean that by the time the user selects 'Done' it pick the first option on the overlay right?

Correct, whenever the user selects done, the first option in the list should be selected

Hello, Any progress on this?
My situation is - i do not want to have any suggestions i just want users to be able to add text peaces as chips.

@vytautas-pranskunas-
I posted a workaround for another issue here that can help you with this.


how to pdb text-generation-server

System Info
2024-01-25T09:10:08.096040Z  INFO text_generation_launcher: Runtime environment:
Target: x86_64-unknown-linux-gnu
Cargo version: 1.70.0
Commit sha: 9f18f4c00627e1a0ad696b6774e5ad7ca8f4261c
Docker label: sha-9f18f4c
nvidia-smi:
Thu Jan 25 09:10:08 2024
   +---------------------------------------------------------------------------------------+
   | NVIDIA-SMI 535.113.01             Driver Version: 535.113.01   CUDA Version: 12.2     |
   |-----------------------------------------+----------------------+----------------------+
   | GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
   | Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
   |                                         |                      |               MIG M. |
   |=========================================+======================+======================|
   |   0  NVIDIA GeForce RTX 3090        Off | 00000000:1A:00.0 Off |                  N/A |
   | 30%   28C    P8              24W / 350W |      5MiB / 24576MiB |      0%      Default |
   |                                         |                      |                  N/A |

Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
When i add pdb.set_trace() in .py of text-generation-server, text_generation_launcher repeats the following log and seems to be stuck:
2024-01-25T09:07:04.875448Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:07:14.894477Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:07:24.911704Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:07:34.928347Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:07:44.947306Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:07:54.965355Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:08:04.984481Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:08:15.004175Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:08:25.022317Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:08:35.041246Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:08:45.059839Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:08:55.078293Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:09:05.097024Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:09:15.117255Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:09:25.136635Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:09:35.156270Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:09:45.175864Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:09:55.194405Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-25T09:10:05.214396Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0

Expected behavior
I want to know how to debug .py of text-generation-server except logger?

In order to dev on TGI and get shells it's easier to not use the launcher but the various processes manually.
text-generation-server server MODEL_ID
# In another shell
text-generation-router --tokenizer-name MODEL_ID

Both will launch and you can then execute commands normally.
The commands when doing TP>1 are less trivial (you need to add all the information about the sharding and launch all the shards so that NCCL sync works).
Does this help ?

@Narsil Thank you very much. I successfully used pdb via text-generation-server and text-generation-router.


Search input: support TAB

If autocomplete list has some values, by pressing TAB the first match should be selected

related #704


Expose Drug, Gene, Interaction metadata through API

Is there any way to retrieve identifiers through the API for the biological entities in the response? The interactions endpoint only returns a drugName field, but no identifiers, such as CAS, Drugbank, or Pubchem IDs.
It looks like these are present in the database dump for drugs from at least several of the data sources. I understand data sources often do not provide this information.
Also, I'm wondering if you all have attempted to normalize drugs when a data source does not provide sufficient identifiers. For example, mycancergenome only provides drug names. If a drug is in both mycancergenome and another source, is it treated as two separate entities?
Thanks in advance

Hey @stuppie. Thanks for the feedback. We've been making some big changes recently in preparation for our v3.0 launch, and among them we're restructuring how we serve up interaction results.
We agree that this information should be accessible via the API, and our plan is to incorporate the appropriate endpoints and documentation to do so once we've finished refactoring the web side. Watch here for progress.

@stuppie, I should also mention that we do normalize drug and gene concepts, as described in the original paper (there called drug groups and gene groups, repectively).

We should create a services_v2 that is centered around the new interaction group, and exposes more of the content of DGIdb.

Hi.  It would also be nice if the API provided IDs of supporting publications for each interaction.  Currently I only see the source database - but not the pubs referenced by each.

Thanks for the feedback, @mbrush. This is absolutely part of our effort to expose the metadata from the various resources we've assembled. We're prioritizing literature extraction (as available) from our new and existing resources as part of our upcoming 3.0 update.


API 5 released

We've just released API version 5, which contains many enhancements and new features. API 5 is the successor to API 4 (https://github.com/weserv/images/issues/141).
For more information: https://images.weserv.nl/news/2019/09/01/introducing-api-5/
The new source code has been published in the 5.x branch.
API 5 also brings better documentation: https://images.weserv.nl/docs/
Contributions to the documentation can be made to our documentation repository.
The default branch will switch to 5.x within a couple of days, after which the 4.x branch will be retired.

Thanks, your great work and continuous improvements are very appreciated!


Domain SSL Configuration - Fails to Progress

App Id: d1hwp3a8wmszym
Region: us-east-2
Step: SSL Configuration
Status: Never changes
Issue/question
Been trying to connect my custom domain. Consistently stuck on SSL Configuration step
Error message
No error message (waiting for well over an hour)
Additional information
I recently switch my website to use React, so tried to use Amplify with my custom domain. It didn't properly switch over, so I entirely removed the hosted zone, created a new one, and any time I try to add my custom domain; it gets stuck. The CNAME that it is looking for does exist in the new hosted zone, and I tested all of the servers in the hosted zone to verify I can get to them. Completely stuck at this point.

Hi @geoffwild11,
Could you look at the comment here to see if it helps: https://github.com/aws-amplify/amplify-console/issues/798#issuecomment-650279695
If not, let me know. I can look further.

Everything has always been managed by Route 53. It matches everything
exactly as specified in the View DNS Records section. I just tried
re-creating the CNAME using the values from it, and it's still not working.
On Fri, Jun 26, 2020 at 12:04 PM Abhishek Raj<EMAIL_ADDRESS>wrote:

Hi @geoffwild11 https://github.com/geoffwild11,
Could you look at the comment here to see if it helps: #798 (comment)
https://github.com/aws-amplify/amplify-console/issues/798#issuecomment-650279695
If not, let me know. I can look further.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aws-amplify/amplify-console/issues/797#issuecomment-650289533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFW56V77NV6B6T5FXNVCDLRYTIITANCNFSM4OIZ6ZQQ
.

--
Geoff Wild

Hi @geoffwild11,
Did you try deleting and re-adding the custom domain in your amplify app?

I tried that as well. There is no difference
On Mon, Jun 29, 2020, 3:40 PM Abhishek Raj<EMAIL_ADDRESS>wrote:

Hi @geoffwild11 https://github.com/geoffwild11,
Did you try deleting and re-adding the custom domain in your amplify app?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aws-amplify/amplify-console/issues/797#issuecomment-651351062,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFW56U3QMXUCBUGGKM4KFTRZD33PANCNFSM4OIZ6ZQQ
.

Is there anything else I can try?
On Mon, Jun 29, 2020, 6:51 PM Geoff Wild<EMAIL_ADDRESS>wrote:

I tried that as well. There is no difference
On Mon, Jun 29, 2020, 3:40 PM Abhishek Raj<EMAIL_ADDRESS>wrote:

Hi @geoffwild11 https://github.com/geoffwild11,
Did you try deleting and re-adding the custom domain in your amplify app?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aws-amplify/amplify-console/issues/797#issuecomment-651351062,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFW56U3QMXUCBUGGKM4KFTRZD33PANCNFSM4OIZ6ZQQ
.

Hi @geoffwild11,
Sorry to hear you are still stuck. Let me see if I can find some logs on our end.

I finally got back around to looking at this. I'm in the process of re-adding the domain. I updated the DNS servers on Route 53 per the status instructions I saw earlier. It looks like it's at the domain activation step, so configuration appears to be working now. Whatever changes were made to the Amplify console were incredibly helpful.


Multi-part forms and SwiftHTTP

I don't this is working for me. Unfortunately, I am not using GO - I am using a simple post API with and expect form data in nodejs, so I can not drop in your server code and test. I have a form that works, but I'm unable to post to the form (Which takes the image and sends to an s3 bucket). I've tried the following code:
This does not create a multipart request or upload, i get an error back.
   let opt = try HTTP.POST(Urls.UPLOAD_IMAGE_URL , parameters: ["file": Upload(data: data!, fileName: "user-profile.jpg", mimeType: "image/jpeg")])
            opt.start { response in
                print("file upload status: \(response.statusCode) text:\(response.text)")
                if let error = response.error {
                    print("error: \(error.localizedDescription)")
                    errorCallback(error: NSLocalizedString("GENERIC_ERROR_MSG", comment: "generic error message"))
                    return //also notify app of failure as needed
                }
                let resp = ObjectResponse(JSONDecoder(response.data))
                if resp.status == "success" {
                    let imageUrl: String? = resp.data["imageUrl"].string
                    if let url = imageUrl {
                        successCallback(imageUrl: url)
                    }

                } else {
                    errorCallback(error: NSLocalizedString("GENERIC_ERROR_MSG", comment: "generic error message"))
                    return //also notify app of failure as needed
                }
            }

I just did the same thing a yesterday with a multi part form upload using SwiftHTTP and a go server that sends that file to s3 😄. Mine worked ok, is there any other info you can provide? What error does node.js print back when getting the upload?


timeSync() syncs to Jan, 01-1970, if NTP-Server fails

Issue
Hi Tobias,
I'm logging data with an ESP32 and pass them to InfluxDB, by wifi.secure. If timesync to NTP fails, because of the NTP-server not responding, time gets synced to Jan, 01-1970.
Reason:
while (time(nullptr) <<PHONE_NUMBER>l && i < 40) {
The while loop in helpers.cpp, line 37, terminates if GMT: Sunday, 9. September 2001 01:46:40 is reached, or 40 loops have run, whichever occures first.
After NTP-sync failure, tnow in line 45 syncs time to Jan 01.-1970 and reports "Synchronized time:" 2 lines later.
I now have some data in InfluxDB at 1970, which I saved today though. I think, this is not as intended.
Is there any reason for this behavior? Any ideas how to change this?
Regards, Rainer
void timeSync(const char *tzInfo, const char* ntpServer1, const char* ntpServer2, const char* ntpServer3) {
  // Accurate time is necessary for certificate validion

  configTzTime(tzInfo,ntpServer1, ntpServer2, ntpServer3);

  // Wait till time is synced
  Serial.print("Syncing time");
  int i = 0;
  while (time(nullptr) <<PHONE_NUMBER>l && i < 40) {
    Serial.print(".");
    delay(500);
    i++;
  }
  Serial.println();

  // Show time
  time_t tnow = time(nullptr);
  Serial.print("Synchronized time: ");
  Serial.println(ctime(&tnow));
}

@Prescaler, timeSync is a convenient helper function for time synchronization.  It doesn't guarantee that time is synced.
Mostly, it takes only a few seconds to sync time. You have to choose an NTP server close to your location: https://www.pool.ntp.org/zone/


Revert "Add remove function success return value"

Reverts ethereum/dapp-bin#93

Reverts ethereum/dapp-bin#93


mise install fails to install missing npm:... package

Describe the bug
When the active configuration file lists an npm package that isn't installed, mise install fails with an error:
Error:
   0: failed to execute command: npm install -g<EMAIL_ADDRESS>--prefix /Users/david/.local/share/mise/installs/npm-tldr/3.4.0
   1: No such file or directory (os error 2)

Location:
   src/cmd.rs:242

Version:
   2024.5.21 macos-arm64 (2024-05-23)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

To Reproduce

In an empty directory, create the following config:

[tools]
"npm:tldr" = "latest"

[settings]
# needed for npm packages
experimental = true

run mise install

Expected behavior
The npm package tldr is installed and the tldr command works.
mise doctor output
version: 2024.5.21 macos-arm64 (2024-05-23)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS
  Built: Thu, 23 May 2024 03:16:31 +0000
  Rust Version: rustc 1.78.0 (9b00956e5 2024-04-29) (Homebrew)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (x86_64-apple-darwin22.0)

dirs:
  data: ~/.local/share/mise
  config: ~/.config/mise
  cache: ~/Library/Caches/mise
  state: ~/.local/state/mise
  shims: ~/.local/share/mise/shims

config_files:
  ~/.config/mise/config.toml
  ~/Desktop/tt/mise.toml

backends:
  cargo
  core
  go
  npm
  pipx
  ubi

plugins:
  bun     (core)
  deno    (core)
  elixir  https://github.com/mise-plugins/mise-elixir.git#7b06439
  erlang  (core)
  go      (core)
  java    (core)
  node    (core)
  python  (core)
  ruby    (core)
  zig     (core)

toolset:
<EMAIL_ADDRESS>      (missing)
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>

env_vars:
  MISE_SHELL=zsh

settings:
  activate_aggressive = false
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf_compat = false
  cargo_binstall = true
  color = true
  disable_default_shorthands = false
  disable_tools = []
  experimental = true
  go_default_packages_file = "~/.default-go-packages"
  go_download_mirror = "https://dl.google.com/go"
  go_repo = "https://github.com/golang/go"
  go_set_gopath = false
  go_set_goroot = true
  go_skip_checksum = false
  jobs = 4
  legacy_version_file = true
  legacy_version_file_disable_tools = []
  node_compile = false
  not_found_auto_install = true
  paranoid = false
  plugin_autoupdate_last_check_duration = "7d"
  python_default_packages_file = "/Users/david/.default-python-packages"
  python_pyenv_repo = "https://github.com/pyenv/pyenv.git"
  raw = false
  trusted_config_paths = []
  quiet = false
  verbose = false
  yes = false
  ci = false
  debug = false
  trace = false
  log_level = "info"
  python_venv_auto_create = false

  [status]
  missing_tools = "always"
  show_env = false
  show_tools = false

No warnings found
No problems found

Additional context
I thought this was related to https://github.com/jdx/mise/issues/2154, but I see that was fixed (and released) and I can still reproduce.
Also weirdly, the command that's listed as failing (npm install -g<EMAIL_ADDRESS>--prefix /Users/david/.local/share/mise/installs/npm-tldr/3.4.0) works if run directly. I've confirmed the /Users/david/.local/share/mise/installs/npm-tldr directory exists, but is empty.

Same as me.

The same issue occurred for me with other backends, at least with cargo and ubi.

Also experiencing this with some specific npm libs
From this list https://github.com/bellini666/dotfiles/blob/master/mise/config.toml#L44, I'm experiencing issues with:

"npm:eslint_d"
"npm:@astrojs/language-server"
"npm:@biomejs/biome"

I have the same issue. And after looking into it, mise adds to PATH only the packages you pass as parameters, so if you do mise install npm:xxx npm:yyy, only the bin path to /mise/path/to/xxx and /mise/path/to/yyy will be included, but not /mise/path/to/npm. So you will see the error if you don't have a system version of npm.
A workaround is to add the mise shims dir in your PATH, or do mise install npm npm:xxx npm:yyy every time (even if you already installed and used npm with mise).
It would be nice to also improve the error message here, as it's misleading that people would interpret the error message as if the path is not found, but it actually says npm is not found!

Looks like this is an issue across all experimental backends? Probable duplicates:

https://github.com/jdx/mise/issues/2315
https://github.com/jdx/mise/issues/2457
https://github.com/jdx/mise/issues/2458

Ok, I had some time for this today.
I think ultimately it comes down to the the ctx.ts.list_paths() not correctly including the deps (in this case, node):
https://github.com/jdx/mise/blob/6730416d39a8b95418670d9853e0cc1e4ad5cafc/src/backend/npm.rs#L73
Adding .envs(self.dependency_env()?) fixes the issue, but given that it affects so many of the experimental backends, there's probably a more central way to do this


Bug on update

Sorry about this! I had an unreleased version that apparently Foundry was trying to distribute as an update. I've since released this version and it should update now.


Turn on Mac OS X testing in Travis.

NOTE: This feature is still in beta according to
https://docs.travis-ci.com/user/multi-os/
See #2136

In my experience with the zope.* packages, the Mac OS/X builds are hideously slow -- they need more hamsters!

The osx build failed with a failure to untar a directory holding Python. Talk about beta! I restarted it before I could capture the error, hopefully it will improve.

Failed again
The command "sudo tar xjf python-2.7.tar.bz2 --directory /" failed and exited with 1 during .

Found https://github.com/travis-ci/travis-ci/issues/5975

https://github.com/serverdensity/sd-agent/pull/126/files seems to have a working approach

OK it turns out osx support is so beta we need to tell Travis that the osx env. is not Python but it is language: generic and then we need to manually install a version of Python ourselves.

See OSX infra instability. All OSX builds are stopped.

@dhermes Given the poor state of the OSX support, I'm inclined to hold off and let the pioneers collect the back-arrows:  we've got enough on our plate with Travis.

I somewhat agree, though it seems like brew install python would work on the pre-installed image. Or we could install via conda

There's always http://hacbook.com... ;)

How does that help? That's a physical piece of hardware, not a CI. Maybe I'm misreading the website?

Well you get OSX for cheap so someone could put one of those in a corner someplace and then just open up the IP. Sorry @dhermes, it was more of a joke than a serious suggestion.
Well partially I guess, if I setup a Jenkins server, I may be able to find an OSX host to set it up on for the private repo. Just trying to brainstorm a little.

Looks like a lot of the OSX hosted CI has been shutdown? There are some references to services supporting it and now you can't find anything on their sites.
I found...
http://devcenter.bitrise.io/docs/available-stacks
It looks like even CircleCI may only support iOS builds and not give you direct CLI access to an OSX vm.
https://circleci.com/docs/ios-builds-on-os-x/#supported-build-and-test-tools
HostedCI looks like it's been kind of dead. Last blog post was about xcode in 2014 and I don't see any documentation on OSX.
https://hosted-ci.com/blog/
Buildbot.net is a python based build system but we would have to self host :(.
https://github.com/buildbot/buildbot

Do we have any reason to expect a homebrew-driven bulid to fail?  I mean, if we were trying to test with Apple's b0rken system python, that would be one thing....

I agree @tseaver

We can re-open or rework later if we decide testing on Mac is worth the pain.


[Site] Mark current header page with aria-current

Related Issue
Fixes VSO 30961098
Description
There's no indication on the site header of which option is currently being viewed:

This change adds aria-current="page" to the currently-viewed page. Note that there's no visual indication. It appears that Narrator doesn't look at this property, but NVDA (and presumably others) do.
How Verified

local build, devtools, NVDA

Microsoft Reviewers: Open in CodeFlow

If this doesn't fix the issue for narrator do we need another fix that does? Or is that more considered a bug in narrator itself?

follow from our contact is that they will follow up with Narrator folks, so we're good to take this fix.


[ISSUE 4042] EventMesh Integrated k8s with different components.

Fixes #4042.
Motivation
Different components integrated k8s.
Modifications
Different components integrated k8s.
Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented?  docs

@Alonexc please make a folder named eventmesh-operator, and put this doc in it.

What is the best level to put this file under? Or the root directory?


LocationGlobber: Fix issue when CWD contains wildcard char

PR Summary
Do not escape CWD when LiteralPath is used.
This causes issues when both -LiteralPath and CWD contains special characters.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[ ] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

User-facing changes

[ ] Not Applicable
OR
[ ] User-facing Documentation needed

[ ] Issue filed - Issue link:

Testing - New and feature

[ ] Not Applicable or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] if the change is significant or affects feature tests

@kwkam Could you please add samples in the PR description and tests?

@iSazonov Sorry, this should be in #7398


add http access logging

Add http access logging

@tcolgate added -log.level and -log.json flags. Access logging goes under info level. Default is warning. Errors from exp exp while trying to proxy http go under error. What do you think?

Cool, thanks, that looks good enough.

Thanks for you're contributions and efforts, they are very much appreciated. We don't make much of of expexp internally anymore, but it does get reasonable interest and use in the community, so I'm happy to keep maintaining it. Without your efforts it would be pretty stale by now.


Feature/composer lock

As mentioned by the docs the lock file should be added to the repo in order to ensure that all packages stay equal during its lifetime:
https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control

This is due the fact that there will be references more versions which the lock cant handle


Build for Arm ?

Is it possible to Build for Arm devices like the Pi with this action ?

This would also be nice to support devices like the Pinephone

electron-builder has instructions for cross-compiling ARM binaries here: https://www.electronjs.org/docs/development/build-instructions-linux#cross-compilation

Hypothetically you should be able to use this action to build for arm by specifying the --arm64 flag when you run the electron-builder command.


notification from<EMAIL_ADDRESS>saying they have not completed the training.

I have raised a support case with Microsoft (Case #:26254527). The case was closed and resolved as a bug thus why I'm posting this here.
To summarize, we have users who have completed all their assigned training but still constantly get the email notification from<EMAIL_ADDRESS>saying they have not completed the training.
Any help to fix this issue would be great appreciated.

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

ID: 59c87455-77af-093a-6fb6-286049aad15a
Version Independent ID: b2690e98-781d-4a27-a9bc-bd621964feb0
Content: Get started using Attack simulation training - Office 365
Content Source: microsoft-365/security/office-365-security/attack-simulation-training-get-started.md
Product: m365-security
Technology: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

@HarrisburgUSysAdmin, we typically don't update the documentation for bugs until we find out what the end goal is: if they're going to fix the bug, that would then render any updates incorrect, which would then need to be fixed.
It's been quite a while. Has the bug been fixed? Are the notifications behaving correctly now?

This was fixed for Microsoft and listed as a bug.

@HarrisburgUSysAdmin, sorry, so does this mean the problem still exists for you? Or have you noticed an improvement?
I'm asking because it's been 4+ months, and I thought you might have noticed if the problem no longer exists.

The issue was resolved.  We no longer have the issue.

Excellent!
Thanks for the feedback.
Closing.


ISettings interface does not include pooling options

This issue pertains to the following package(s):

[x] GraphQL Playground HTML
[x] GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?
maxOS 10.14.3
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
"graphql-playground-middleware-lambda": "^1.7.13"
What is the expected behavior?
I should be able to set settings to customize the pooling options
What is the actual behavior?
TS is complaining that ISettings interface does not have "schema.polling.*" options
What steps may we take to reproduce the behavior?
Update ISettings interface to include new playground configurations

Type '{ 'schema.polling.enable': boolean; }' is not assignable to type 'ISettings'.
Object literal may only specify known properties, and ''schema.polling.enable'' does not exist in type 'ISettings'.ts(2322)

Note: Other configuration options might be affected, I haven't check all the new playground configurtation options

+1 this is a problem on my side as well.


Consider creating a tag for releases

Makes it easier to develop against last-stable version

closing as this probably isn't going to happen


Error running node example

I followed the directions on the README and I get the following error:
npm ERR! path /Users/codydaig/dev/face-api.js/examples/examples-nodejs/node_modules/.staging/face-api.js-8127d704/node_modules/@babel/code-frame
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/codydaig/dev/face-api.js/examples/examples-nodejs/node_modules/.staging/face-api.js-8127d704/node_modules/@babel/code-frame' -> '/Users/codydaig/dev/face-api.js/examples/examples-nodejs/node_modules/.staging/@babel/code-frame-dce0a722'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR!      /Users/codydaig/.npm/_logs/2019-02-03T10_27_19_451Z-debug.log

I tried changing the version in package.json of "@tensorflow/tfjs-node" to "0.1.21" and performing a fresh install and get the same error.
I've tried this on two different computers.
Primary computer:
Mac OS X 10.14.2.
Node v 11.1.0
npm v6.5.0
Any suggestions? Thanks in advance!

Hi, @codydaig!
I got the same error.
To fix this I have just changed version of tensorflow/tfjs-node to 0.1.9:
"@tensorflow/tfjs-node": "^0.1.9",

Try cleaning your node_modules and reinstall them.

I’ve tried both of those several times and same error.

@justadudewhohacks Circling back to this. I've tried multiple times on multiple different computers, operating systems, etc... and am unable to get any of the examples to run. Any suggestions?

Same error here on Windows or Linux

I was having this issue. I rolled back to 0.1.9 as @NikolayYakovenko suggested, deleted my node_modules folder and package-lock, reinstalled with npm install, and restarted my development server- and this fixed it.


Change "Browse for Folder" dialog to use different style

The current "Browse for Folder" dialog box when selecting the directory to use for the "Path to game files" is incredibly cumbersome and should be changed to the more standard File Browser dialog.
The File Browser dialog is much easier to navigate, has built-in support for copy-pasting paths, quick-access panel, favorites etc. that a user would expect in any other program.
Current

What it should be

Actually you can copy-paste paths and use autocompletion in path field left to the "Browse" button. The dialog which you see now is real "standard". Personally I like the way of seeing files and directories (what you propose) more, it's just much harder to implement - Windows has complex API for that.

Done, https://github.com/gildor2/UEViewer/commit/2f810e29d666cd1d40705dbfbec8e4765a7bae84


Removing the Limit of 1000 Lines & Improving the Hungarian Notation Check

Removing the Limit of 1000 Lines in alobject.ts (otherwise an error occurs in diagnostics.ts line 20, because myObject.alLine[i] has only 1000 entries) and
Improving the Hungarian Notation Check (only the start of the variable will be checked now)

Thanks.
I think the hungarian notation should also test the endswith.
The 1000 line limitation was a result of my limited experience with TypeScript. Was one of my first lines of code. ;-)


refactor(package.json): Drop check-coverage and uncovered files from …

…reports
Also add --bail option to build, and drop check-coverage thanks to coveralls.

Changes Unknown when pulling b090bcad8065c825c3e98aa924e1b6445203427b on JaKXz:chore/coverage-ignores into ** on rsnara:master**.


java.security.UnrecoverableKeyException: Failed to obtain information about private key

Since upgrading to the Android 8.1 beta, K9 with certificate authentication no longer works. adb logcat shows the following: java.security.UnrecoverableKeyException: Failed to obtain information about private. I'd imagine something must have changed in the Android API to cause this to happen, but I figured I'd open this here before submitting a ticket into the abyss of Android bug reports.
Steps to reproduce

Set up K9 with certificate auth
Upgrade to Android 8.1 beta
K9 can no longer authenticate

Environment
K-9 Mail version: 5.301
Android version: 8.1
Account type (IMAP, POP3, WebDAV/Exchange): IMAP w/ Certificate Authentication

https://issuetracker.google.com/issues/68371442 -- here's an upstream bug report in case this is not an issue with K9 itself.

https://stackoverflow.com/questions/36652675/java-security-unrecoverablekeyexception-failed-to-obtain-information-about-priv
Looks like we need to retry in certain cases. I expect it's pretty rare to hit this scenario given the app has to be doing an SSL session very soon after a device restart very soon after reload.

I tried a force quit after my phone was up all day and it still hasn't successfully connected. I haven't been able to get it to connect at all.


Access to showInputBox

monaco-editor version: 0.10.0
Browser:Chrome
OS: MacOX
Steps or JS usage snippet reproducing the issue:
I think it would be nice to have access to showInputBox to add additional inputs to Action Commands.
I do see we can able input the line number when open the go to line is selected from the palette. But I could not find a way to add action commands to accept quick inputs to execute the action.
  private editorDidMount(editor, monaco) {
    editor.addAction({
      id: 'my-unique-id',
      label: 'Test: Add value',
      keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10],
      contextMenuGroupId: 'Test',
      contextMenuOrder: 1,
      run: function (ed) {
           showInputBox({
           acceptInput: 'accept input',
           prompt: 'add any value',
           ignoreFocusOut: true,
         })
      },
    });
    editor.focus();
    this.monaco = monaco;
    this.editor = editor;
  }

Please add this, this would help a lot.

Still no workarounds (?


Retrieving all timeline variables for a given trial

I currently have a design that uses a lot of timeline variables, and one annoying aspect is that I sometimes forget adding one of the timeline variables to the data section (I'm actually not sure why they are not automatically put into the data, as otherwise that information is just lost).
So some data section looks like this:
data: {
    segment: "word-classification",
    audiofile: jsPsych.timelineVariable('audiofile'),
    word: jsPsych.timelineVariable('word'),
    trial: jsPsych.timelineVariable('trial'),
    repetition: jsPsych.timelineVariable('repetition'),
    group: jsPsych.timelineVariable('group'),
    choices: jsPsych.timelineVariable('choices'),
}

This is because I couldn't find a way to just retrieve all timeline variables, in which case I could just do something like:
data: jsPsych.allTimelineVariables()

Is it only possible to ask for one specific variable name and get back whether it exists or not, or is there not an actual list accessible somewhere?

Hi @jkrumbiegel, I don't think there's currently a way to get the list of timeline variables for each trial, but that's a good idea so I've created an issue to suggest it (#1246).
In the meantime, to make this a little easier and less error-prone, you could create a function that generates your data object containing each variable name and associated timeline variable. Then you would call that function (with parenthesis) in your trial's data parameter, e.g.
function getAllTimelineVars() {
  all_timeline_vars = {
    audiofile: jsPsych.timelineVariable('audiofile'),
    word: jsPsych.timelineVariable('word'),
    trial: jsPsych.timelineVariable('trial'),
    repetition: jsPsych.timelineVariable('repetition'),
    group: jsPsych.timelineVariable('group'),
    choices: jsPsych.timelineVariable('choices')
  }
  return all_timeline_vars;
}

var trial = {
    type: 'html-keyboard-response',
    stimulus: jsPsych.timelineVariable('word'),
    choices: jsPsych.ALL_KEYS,
    trial_duration: 1000,
    data: getAllTimelineVars()
};

And if you wanted to add information that changes across trials, blocks etc., you could add some parameters into your function:
function getAllTimelineVars(task_seg) {
  all_timeline_vars = {
    audiofile: jsPsych.timelineVariable('audiofile'),
    word: jsPsych.timelineVariable('word'),
    trial: jsPsych.timelineVariable('trial'),
    repetition: jsPsych.timelineVariable('repetition'),
    group: jsPsych.timelineVariable('group'),
    choices: jsPsych.timelineVariable('choices'),
    segment: task_seg
  }
  return all_timeline_vars;
}

and then call it like this:
data: getAllTimelineVars('word-classification')

I hope that helps!

Hi Becky, thanks for your response! It is true that I could encapsulate the data segment in a function, but that doesn't solve the underlying issue that I have to remember all the timeline variables. It's just moving them to a different place.
I guess it would be easy enough to write this function myself if I understood how the timeline variables are represented. From looking at some of the source code around timelineVariable() it appeared to me that they are looked up dynamically in a hierarchical fashion (traversing up nested timelines) so I guess that makes it problematic to retrieve all variables?

@jkrumbiegel yes, totally agree that the custom function that I suggested doesn't really solve the problem, it just make your code a little less repetitive/error-prone in the meantime.
I like the jsPsych.allTimelineVariables() idea - glad to see that @jodeleeuw added this to the 7.0 milestone.
Not sure if there's a simple modification you could make to jspsych.js prior to the 7.0 release to automatically grab all of the timeline variables on each trial, but I couldn't see an easy way to do it myself. Maybe @jodeleeuw has suggestions?

I'm imagining that this kind of functionality can be added along with things like #823 and the option to ignore any parameter from the data on a trial by trial basis. Basically, an overhaul of how we manage the trial-level data to allow a lot more customization without these kinds of hacks.
The timeline variable part may be the trickiest because they are dynamic. I don't think 7.0 will be when we refactor all the underlying code for timelines... that's probably 8.0... but when we do this would be something to think about. The dynamic search upwards in nested timelines should still allow us to recover all the current timeline variables. We can generate a list of all of them as we navigate up the tree.

I implemented a first pass at this in the features-all-timeline-vars branch. I added a single test case to the end of timeline-variables.test.js. It needs a lot of expansion to make sure this implementation works.


hi, redux, I like you, and i also recommend react-control-center

react-control-center is totally different with redux, it is the very very close to react, write your app in react way with react-control-center ^_^

react-control-center is totally different with redux, it is the very very close to react, write your app in react way with react-control-center ^_^


Make zsh default shell in devContainer

At the moment, when you open a shell in VSCode by clicking on the +-symbol a rudimentary shell is instantiated despite of the fact that we have ohmyzsh extension installed on purpose. zsh is only the second option.
Steps to reproduce:

Start the vehicle app python template devContainer
Open the terminal with ctrl+`
Click + symbol to create an additional shell

Expected result:

zsh is created

Actual result:

bash shell is created

use the options in devContainer.json for setting the default shell:
        [...]
        // Set *default* container specific settings.json values on container create.
	"settings": {
		[...]
		"terminal.integrated.defaultProfile.linux": "zsh",
		"terminal.integrated.profiles.linux": {
			"zsh": {
				"path": "/bin/zsh"
			}
		}
	},
        [...]


Overlay not completely removed after break.

Prerequisites

[x] I'm using latest version: v 1.1.0
[x] I've checked Known issues
[x] I've checked Open issues

Description
Overlay not completely removed after break.
Operating system: Mac OS 10.15.6
Steps to Reproduce

Turn off Stretchly completely
Start Stretchly, see it in the top bar
cmd + tab -> Shows no Stretchly icon
Start a mini break
cmd + tab -> There is a Stretchly icon.
After break there is a transparent overlay and ~a lot of keys~ keyboard is unresponsive.

Expected behavior: After break there should be no Stretchly-overlay or Stretchly-icon available if you use cmd + tab to switch between applications.
Actual behavior: After a break Stretchly-overlay is not completely closed.
Reproduces how often: [What percentage of the time does it reproduce?] 100% so far.
Additional Information
Did not experience this in v 1.0.0.

Thank you for a great application and please tell me if I can help with more information.

Hi @davidwessman , what do you mean by overlay after break?
I am seeing Stretchly in cmd+tab after breaks finishes, but not any overlay or keys not working.
Maybe send screenshot? Keys you mean keyboard?

Update
After the break, the Stretchly overlay is not always in focus - but if I switch to the window using cmd + tab the keyboard becomes completely unresponsive. If I click anywhere it focuses on the window in the background instead and I can use the keyboard again.
First image: Just selected Stretchly with cmd + tab.
Second image: Stretchly is selected and the top bar is fading out (as when an application goes full screen). Here the keyboard is unresponsive until I click with the pointer.
(I had to do a screen recording to get the cmd + tab interaction, but could not upload the file here)

Same issue here on Catalina 10.15.6!

Having exactly the same issue, making some pain, as a workaround, after break I am quitting the app and launching it back.

Did you guys change any settings? Having troubles reproducing

Seems that this is the bug in electron? https://github.com/electron/electron/issues/25427

@hovancik it seems that the problem with fullscreen app. I have a setting to show breaks in fullscreen app. And after showing the break it happens. Thanks.

Same issue here on Catalina 10.15.6!

Also experiencing the same issue in macOS 10.15.6 (on MacBook Pro). There is no escape for me once I have entered the trap via CMD+TAB. Cannot (force) quit, keyboard and trackpad are unresponsive and I have to restart to regain control.  I have only experienced this behaviour since Stretchly 1.1.0.
Aside from that, this is a great app which has really improved my daily worklife. Thank you very much!

I am experiencing some of these symptoms as well on Mac 10.14.6. Mainly, I notice the Stretchly icon in the dock after a break. I have to quite and restart Stretchly to make it go away. I am not using Stretchly in fullscreen mode. Maybe that is why my keyboard remains responsive.

Are you all using Stretchly 1.1.0 ? Do you have the transparency enabled or disabled in Theme ?

These are my settings (I have tried using windowed mode, it still behaves weird but less intrusive).

Installed through brew, maybe that helps recreating the error? And yes, I'm in full screen mode

@hovancik The bug could be related to the background color being in ARGB even when transparency is disabled, which means that the opacity of the background is set regardless of the value of transparency. It's the only thing that changed in the options of BrowserWindow for the breaks windows in v1.1.0.

I'll try to reproduce tomorrow, then I can test the transparency thingy. Could be also the electron issue I linked to.

@hovancik commented 4 days ago:

I am seeing Stretchly in cmd+tab after breaks finishes

Was that an intentional change or part of this issue? If it was intentional, can you make it optional, as I'd prefer not to have Stretchly in the apps listed during cmd+tab.

@cameronsstone not intentional, no idea why it's there.

Good news, I've been able to reproduce :)
I've tried to disable dock icon - did not help
I've tried to remove transparency from background color - did not help
Downgrading electron to 9.1 - helped.
I'll comment to similar Electron issue that I have found as it's 99.9% related I would say

Good news, I've been able to reproduce :)
I've tried to disable dock icon - did not help
I've tried to remove transparency from background color - did not help
Downgrading electron to 9.1 - this seems to help in combination with hiding dock. Which is weird because it would suggest that 1.0 should have the same issue as dock icon was reintroduced in 1.0
I'll comment in the similar issue in Electron that I have found earlier

Good news, I've been able to reproduce :)
I've tried to disable dock icon - did not help
I've tried to remove transparency from background color - did not help
Downgrading electron to 9.1 - this seems to help in combination with hiding dock. Which is weird because it would suggest that 1.0 should have the same issue as dock icon was reintroduced in 1.0
I'll comment in the similar issue in Electron that I have found earlier

Please reach out if we can help in any other way! 🙂

I am downgrading for now and disabling dock icon.


feat(posfilter): Adds config model for Position Filtering

Overview
This PR adds configuration pydantic model for future position filtering routine. At the moment, it adds a way to pass in the Roll Pitch Heading data.
Closes #129

This is ready for your 2nd round of review. Thanks @aniketfadia96


Add a function for getting maximum level of detail in terrainProvider

This PR adds a method for getting the maximum level of detail for a specific zone of the globe from a terrainProvider instance.
The reason for which I'm adding this is that it is very useful for getting the height of the terrain in a specific point. According to this example the following code can be used for sending a query to the terrain provider and getting back the height of the terrain:
// Query the terrain height of two Cartographic positions
var terrainProvider = new Cesium.CesiumTerrainProvider({
    url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles'
});
var positions = [
    Cesium.Cartographic.fromDegrees(86.925145, 27.988257),
    Cesium.Cartographic.fromDegrees(87.0, 28.0)
];
var promise = Cesium.sampleTerrain(terrainProvider, 11, positions);
Cesium.when(promise, function(updatedPositions) {
    // positions[0].height and positions[1].height have been updated.
    // updatedPositions is just a reference to positions.
});

Now as it can be seen the call to sampleTerrain needs to specify the level-of-detail (LOD) to be used for the query. Since the LOD varies from one region to another, it is not possible (nor suitable) to hard-code the maximum LOD in one region and hope that it will work for another region.
Thus, this PR enables to call terrainProvider.getMaxigetMaximumLevelAtPosition(position) in order to get the maximal LOD in the region of interest and then query the terrainProvider to get the most precise height of the terrain.

Welcome to the Cesium community @nacho-carnicero!
Can you please send in a Contributor License Agreement (CLA) so that we can review and merge this pull request?
I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.
I am a bot who helps you make Cesium awesome! Thanks again.

Thanks for the contribution, @nacho-carnicero!  We received your CLA.
@nacho-carnicero can you please update CHANGES.md and add a unit test to CesiumTerrainProviderSpec.js?
@tfili can you please review?

Thanks @nacho-carnicero.
Since you added a method to the TerrainProvider.js, you need to add the method to all other TerrainProviders. This method can return undefined if its not implemented. This broke 3 tests
1) conforms to TerrainProvider interface
     Core/GoogleEarthEnterpriseTerrainProvider
     Expected function 'getMaximumLevelAtPosition' to exist on GoogleEarthEnterpriseTerrainProvider because it should implement interface TerrainProvider.
2) conforms to TerrainProvider interface
     Core/VRTheWorldTerrainProvider
     Expected function 'getMaximumLevelAtPosition' to exist on VRTheWorldTerrainProvider because it should implement interface TerrainProvider.
3) conforms to TerrainProvider interface
     Core/EllipsoidTerrainProvider
     Expected function 'getMaximumLevelAtPosition' to exist on EllipsoidTerrainProvider because it should implement interface TerrainProvider.

Also, you need to a few few tests. Probably need to verify a provider that hasn't been successfully loaded gracefully handles calling this function, along with a test that shows the function works correctly.

Thanks for the PR, @nacho-carnicero, but I don't really think this change is needed.  availability is a public property, so users can access that directly.  The wrapper function in TerrainProvider doesn't really add much, IMO.  Also, we already have a function that directly addresses the stated use case: https://cesiumjs.org/Cesium/Build/Documentation/sampleTerrainMostDetailed.html
Perhaps there's something we can do to make that function more discoverable?

I totally agree @kring, it does not add much but it enables to show this method on the terrain provider documentation so that someone that does not have the time to look at the code can have access to this information.
Nevertheless the function sampleTerrainMostDetailed is exactly what I was looking for, I spent quite a time looking for something like this in the  documentation (but I guess I got obsessed with getting the maximum LOD instead). Perhaps a mention to this function in the sampleTerrain documentation would be useful. Indeed, when you type in Google "get terrain height cesium" the only function that shows up is sampleTerrain, so a link to sampleTerrainMostDetailed  in that documentation would certainly save a big amount of time to people interested in this.
As far as I'm concerned I don't see any other use case for this PR, so I'm going to close it. If you want me to add the link to sampleTerrainMostDetailed  in the documentation let me know.

Glad to hear sampleTerrainMostDetailed is what you were looking for, @nacho-carnicero.  I think adding a link to that function from the sampleTerrain doc is a great idea.  If you don't mind opening that pull request (and add yourself to CONTRIBUTORS.md while you're at it), I'd be very happy to merge it.  Thanks again!


Apple Silicon - Node - ARM64/AARCH64

Hi @wilsonzlin. I am currently working on a Mac based on the silicon platform.
When I try to run this module with node I experience the following exception:
Error: Cannot find module '@minify-html/node-darwin-arm64'
Dependency in the package.json: "@minify-html/node": "0.15.0",
As I understood: There is a module for darwin-aarch64 that should also work with arm64. When I try to load and use this module (darwin-aarch64) manually, I get an error that aarch64!=arm64 from npm while installing it.
Please help me. :)
Thanks,
Thomas

Same error here

Thanks for raising, this should be fixed in the next version. As you have noticed, the correct value should be arm64, not aarch64.
Once the next version is out, let me know if it works on your end.

Same problem for me.
Any plans when you'll plan to publish the next version? :)

Confirmed this is an issue.

Same issue here. @wilsonzlin when are you planning to release the new version?

Theres no @minify-html/node-darwin-arm64 in NPM
https://www.npmjs.com/package/@minify-html/node-darwin-arm64
So, It's impossible to install in any Mac M Series

As a temporary solution, you can use @minify-html/wasm. Don't forget to add the --experimental-wasm-modules flag.

@wilsonzlin Can you release it?

++

same issue

When's the fix?

As a temporary workaround, add the following to your package.json:
"@minify-html/node-darwin-arm64": "npm<EMAIL_ADDRESS>
then pnpm install (I use pnpm)

@maxchang3

As a temporary workaround, add the following to your package.json:
"@minify-html/node-darwin-arm64": "npm<EMAIL_ADDRESS>

The temporary workaround doesn't work:
npm error code EBADPLATFORM
npm error notsup Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","cpu":"aarch64"} (current: {"os":"darwin","cpu":"arm64"})
npm error notsup Valid os:   darwin
npm error notsup Actual os:  darwin
npm error notsup Valid cpu:  aarch64
npm error notsup Actual cpu: arm64

npm error A complete log of this run can be found in: /Users/andrea/.npm/_logs/2024-08-28T20_14_32_898Z-debug-0.log

Also, this workaround would be a nightmare to manage because:

One must remember about it and remove it if/when a proper fix is provided.
Having to deploy to production (or at least to staging or testing), explicitly adding an arm-specific package would break deployments.

@wilsonzlin, is there a work in progress or, even better, any ETA for the fix?
I can't find any PR or branch related to this issue, even though it affects many people.

Any solution to this yet?

@JordanchoEftimov I ended up just cross compiling the module myself for ARM64 and included the native node module (w/ JS interface) directly in my codebase.

Well, okay, I'll simply fork ...


fix removeScripts Plugin

What if we could install the plugin by
npm i @scullyio/scully-plugin-remove-scripts

instead of
npm i @scullyio/plugins-scully-plugin-remove-scripts

@puku0x  that looks like something went haywire somewhere! I'll fix this.


dx: remove Product and CartLine alias components

as well as their nested / dotted versions, such as Product.Image.
BREAKING CHANGE: removed Product, CartLine, and their associated nested component aliases.

Description
Closes #599
I also fixed an issue on the demo store on main where the cart wasn't working due to a change to remove render props.

Before submitting the PR, please make sure you do the following:

[x] Add your change under the Unreleased heading in the package's CHANGELOG.md
[x] Read the Contributing Guidelines
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123)
[x] Update docs in this repository for your change, if needed

@frehner Could we also remove the references to aliases in the docs? Here's a commit on the shopify-dev side that you can refer to: https://github.com/Shopify/shopify-dev/pull/16194/commits/d366fbb270891cae85c358d1f830d0799ec968e7
Essentially, we'd need to remove:

.md files that reference alias information, like this one: https://github.com/Shopify/hydrogen/blob/main/packages/hydrogen/src/components/CartLinePrice/docs/alias.md
Alias information in the generated README.md files, like this one: https://github.com/Shopify/hydrogen/blob/main/packages/hydrogen/src/components/CartLinePrice/README.md#alias
References to aliases in this topic: https://github.com/Shopify/hydrogen/blob/main/packages/hydrogen/src/docs/components.md

Part of me is sad to see this go, as Product.<name> felt like a nice affordance. This work is a good exercise, though, to see if we can go without it and hopefully net some tree-shaking wins.

Yeah, I agree, it's a nicer DX with the downside of worse tree-shaking.
I was thinking that perhaps we could do something with our bundles themselves to gain that nice DX back; something like
import {Image, Title, Description} from '@shopify/hydrogen-ui/products
and
import {Image, Title, Description} from '@shopify/hydrogen-ui/cartlines
Or something like that.


custom name for deployed application

I have created a domain model file with following content
appDeployments:
    Application:
        "payments-cardpayment":
            SourcePath: "wlsdeploy/applications/payments-cardpayment-ear-137045-20190807.103010-1.ear"
			ApplicationName: 'payments-cardpayment-137045'
            ModuleType: 'ear'
            Target: 'managed1,managed2'

and when i try to deploy this application using deployApps.sh, the tool is not taking the ApplicationName parameter as defined in the model file.
It computes application name as "payments-cardpayment-ear-137045-SNAPSHOT" and below is the content of my MANIFEST file

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: 006w5vf
Build-Jdk: 1.7.0_171
Specification-Title: payments-cardpayment-ear
Specification-Version: 137045-SNAPSHOT
Implementation-Title: payments-cardpayment-ear
Implementation-Version: 137045-SNAPSHOT
Extension-Name: payments-cardpayment-ear-137045-SNAPSHOT
Version: 137045
artifact-name: payments-cardpayment-ear
artifact-version: payments-cardpayment-ear

I would like the name of the application (as seen in weblogic console) to be as i specified in ApplicationName paramter of the model. Is it a bug?

We will go research this a little more and get back to you.


definitions to structures not properly handled.

here is what I get when I try to parse
`#define AFLASH_0  (*(volatile struct AFLASH_tag *)      0xC3F33000UL)
from preprocessor import Preprocessor
p = Preprocessor()
p.include('/home/ubuntu/works/perf_definitions/MRC7765.h')
print(p.evaluate('AFLASH'))

  result = eval(expr)
  File "<string>", line 1
    (*(AFLASH_tag *)      0xC3F44000UL)
                   ^
SyntaxError: invalid syntax

Yes - I would expect evaluation of that expression to fail - as it has very limited evaluation capabilites.
It will expand correctly however, try print(p.expand('AFLASH')) , and see if that is what you expect.
Otherwise, could you tell me what result you did expect, and also supply me your source header?

Actually , I think this will work. I will double check and should I not respond in a couple of days , then we can close this.

I am marking this closed.
Feel free to let me know if there are any features that would help you out.


Fixing issue with Registration page falling over itself...

Well - I can't apologise enough for this - it was my code that went "a little kaka" here...
This pull request will resolve the following issues:
#512, #514, #524, #525, #529...
Essentially, the Organizations list wasn't getting included on the model if the Register View was being presented because of invalid data on it's initial submission!

Thx, Need to investigate when I'm on a PC but looks like some related unit tests getting a null reference

@tonysurma I've added a further commit to the pull request to fix the unit tests... Basically I wasn't creatting a mock of the Organization service...


data collection starts at 11am daily

Hi all - a small band of Alpha ESS and Home Assistant users out there so thanks to everyone for getting to this integration, Charles especially. I am new to HA and Solar (battery is commissioned and on, but the final inspection of the solar install is still due so I have started playing with the AlphaESS monitoring to understand it before it all leaps into action).
I decided to try a few charge cycles overnight to get a measure of how long the battery lasts under normal use. I can watch this well in the app, but via the integration the data always starts at 11am... I suspect this is a timezone issue but beyond checking that's set correctly in HA (yes, I'm in Melbourne, Aus and so is the timezone) I have no idea how to fix.
Any ideas?

Thanks all! Ian

I'm not passing any kind of time zone details into Alpha so I wonder if there's something that needs to be set on their backend for your account.
I do see that on their web portal under https://www.alphaess.com/BasicSettings/userInfoSettings there are fields for time zone, geographic location etcetera - can you check there and make sure what's listed is correct for you?

Well this seems to have steadied itself - a couple of days starting at 8am followed by complete days. I suspect this is down to unreliability in network connection - I have started with an old laptop and VM over wifi - seems like the worst possible way of running HA. Have bought myself an RPi4 for Christmas and will sit it next to the router... then we'll see how we go!


Typo in publish.sh

In the publish.sh in confluence-publisher\asciidoc-confluence-publisher-docker is an Typo
I think this asciidocBuildFolder="$ASCIIDOC_ROOT_FOLDER"  should be asciidocBuildFolder="$ASCIIDOC_BUILD_FOLDER"

Thank you @rgillessen for reporting this issue. It will be fixed in the next milestone build.

Thank you for fixing