unable to install deep_autoviml

Collecting deep_autoviml
Downloading deep_autoviml-0.0.84-py3-none-any.whl.metadata (20 kB)
Requirement already satisfied: emoji in /opt/conda/lib/python3.10/site-packages (from deep_autoviml) (2.11.0)
Requirement already satisfied: ipython in /opt/conda/lib/python3.10/site-packages (from deep_autoviml) (8.20.0)
Collecting jupyter (from deep_autoviml)
Downloading jupyter-1.0.0-py2.py3-none-any.whl.metadata (995 bytes)
Requirement already satisfied: matplotlib in /opt/conda/lib/python3.10/site-packages (from deep_autoviml) (3.7.5)
Collecting numpy~=1.19.2 (from deep_autoviml)
Downloading numpy-1.19.5.zip (7.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 47.7 MB/s eta 0:00:0000:0100:01
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: optuna in /opt/conda/lib/python3.10/site-packages (from deep_autoviml) (3.6.1)
Requirement already satisfied: pandas in /opt/conda/lib/python3.10/site-packages (from deep_autoviml) (2.2.2)
Requirement already satisfied: regex in /opt/conda/lib/python3.10/site-packages (from deep_autoviml) (2023.12.25)
Collecting scikit-learn<=0.24.2,>=0.23.1 (from deep_autoviml)
Downloading scikit-learn-0.24.2.tar.gz (7.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 86.0 MB/s eta 0:00:00:00:0100:01
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1613 lines of output]
:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Partial import of sklearn during the build process.
:116: DeprecationWarning:
    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html

  INFO: C compiler: gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Hi @GDGauravDutta
thanks for trying out deep_autoviml in Kaggle 👍
I have updated the setup.py and requirements.txt files and have tested it on Kaggle. It installs correctly (see screenshot)

Please upgrade to the latest version and continue.
Auto Vimal

Working now


[main] Update community files

Cron -knative-prow-robot
/cc knative-sandbox/networking-wg-leads
/assign knative-sandbox/networking-wg-leads
Produced by: knative-sandbox/knobots/actions/update-community
Details:

/test pull-knative-sandbox-net-istio-integration-tests


Compatibility with metric system

Hello,
Can you add compatibility with the metric system for movement reduction by adding values in the settings, so we can define movement reduction ourselves?
Thx!

Absolutely, I'll add in some settings for this 👍

Hey, any news on that setting? 😄

Hey, any news on that setting? 😄

Added support for custom speed decrease values in the settings, and added a setting for custom unit strings to be displayed above the encumbrance bar. https://github.com/VanirDev/VariantEncumbrance/commit/bbcc060da806ce51b948e3a7b720b4c8fd444fac

Added support for custom speed decrease values in the settings, and added a setting for custom unit strings to be displayed above the encumbrance bar. https://github.com/VanirDev/VariantEncumbrance/commit/bbcc060da806ce51b948e3a7b720b4c8fd444fac


edits in additive_functionals.rst

move plotting functions out of AMF_LSS_VAR
replace deprecated numpy asscalar with item() to get rid of DeprecationWarning
avoids RuntimeWarning caused by taking ppf of norm dist with std dev of 0 by setting std dev in those cases to a small value.

Fixes #917, fixes #903

@jstac @shlff @sayaikegawa @Harveyt47
This PR is looking sad and unreviewed -- is there a better way for me to structure it? Hopefully this comment will make things clearer.

the main lines of interest in my opinion are 507-520 (my proposed solution to the RuntimeWarning). I am keen to hear your thoughts on this.

Below are screenshots of the output (before my changes on left, after on right). I set the numpy seed so that random variation would be removed -- they should be identical (and are, as far as I can tell.)

Thanks @mtiley .  I'll wait until at least one of @sayaikegawa @shlff and @Harveyt47 review.  Once someone has reviewed and feedback has been incorporated, please add the "ready" label and then I'll take a look.

Thanks @shlff , I agree.
@mtiley , would you mind to make those plots a better shape?  Perhaps a bit shorter vertically?

Thanks @mtiley and @shlff --- this was a lot of work.  The PR was very nicely done.
I might make some small tweaks later but for now I'm going to merge.


Judgement Metric not passed through

Line 341 of atm/worker.py does not pass the score target, so regardless of what the user chooses in run_config.yaml, the code determines the best classifier based on the mu_sigma computation.  It seems there is some inconsistency in nomenclature between the mu_sigma and the cv options.
Was the original intent to use mu_sigma to correspond to the highest lower error bound, cv to correspond to the average cv score, and test to correspond to average test score?  mu_sigma is not in the keys of the database, so its not a valid run_config.yaml value.  If we take cv to mean the same thing as mu_sigma, then one approach to deal with this may be (starting at Line 341 of atm/worker.py):
        if('cv' in self.datarun.score_target):
            score_target_in = 'mu_sigma'
        else:
            score_target_in = self.datarun.score_target
        old_best = self.db.get_best_classifier(datarun_id=self.datarun.id,
                                               score_target=score_target_in)

        cur_cv_val       = model.cv_judgment_metric
        cur_cv_err       = model.cv_judgment_metric_stdev
        cur_test_val     = model.test_judgment_metric

        if old_best is not None:
            old_cv_val   = old_best.cv_judgment_metric
            old_cv_err   = 2*old_best.cv_judgment_metric_stdev
            old_test_val = old_best.test_judgment_metric
        if('cv' in self.datarun.score_target):
            _log('Judgment metric (%s): %.3f +- %.3f' %
                 (self.datarun.metric, cur_cv_val, cur_cv_err))
            if old_best is not None:
                if (cur_cv_val - cur_cv_err) > (old_cv_val - old_cv_err):
                    _log('New best score! Previous best (classifier %s): %.3f +- %.3f' %
                         (old_best.id, old_cv_val, old_cv_err))
                else:
                    _log('Best so far (classifier %s): %.3f +- %.3f' %
                         (old_best.id, old_cv_val, old_cv_err))
        else:
            _log('Judgment metric (%s): %.3f' %
                 (self.datarun.metric, cur_test_val))
            if old_best is not None:
                if (cur_test_val) > (old_test_val):
                    _log('New best score! Previous best (classifier %s): %.3f' %
                         (old_best.id, old_test_val))
                else:
                    _log('Best so far (classifier %s): %.3f' %
                         (old_best.id, old_test_val))

Good catch.
There is definitely confusion elsewhere in the code -- mu_sigma should be a score_target, not a metric, as it's a way of using the cv_judgment_metric and its standard deviation to compute a lower confidence bound. There are other inconsistencies between the metrics used in metrics.py and the ones that ATM can actually be configured to use. I'm going to address all that (and this) in another pull request. I'll edit this comment once I push it.
I should point out that this isn't actually the code that chooses which classifier to try next -- that happens in btb, and scores are passed to BTB in Worker.select_hyperpartition() (the relevant line is 244). Still, this is confusing to users, as the output does not reflect the way ATM is working.


vaultService: list real files

Actually list files.

'no-restricted-syntax': 'off',

This won't let me use modern JS for loops. 👴

We might actually want to add a VAULT_GET_FILES_AND_DIRECTORIES API at some point so I designed the API with that in mind.

@Shuhala review plz!


Updating readme: use Java 8 instead of 7

The pom says 1.8, I guess this is outdated.

////
DO NOT EDIT THIS FILE. IT WAS GENERATED.
Manual changes to this file will be lost when it is generated again.
Edit the files in the src/main/asciidoc/ directory instead.
////

This is the file that should be fixed - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/docs/src/main/asciidoc/building.adoc

🤦🏼
https://github.com/spring-cloud/spring-cloud-build/pull/208


remove password for connection string non sql auth types

This PR fixes #19452.
Short-term fix for non-SQL auth types only.
Removes Password=******; from connection string.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
285 unchanged lines in 5 files lost coverage.
Overall coverage decreased (-0.008%) to 42.045%

Files with Coverage Reduction
New Missed Lines
%

src/sql/workbench/contrib/executionPlan/browser/executionPlanViewHeader.ts
24
1.96%

src/sql/workbench/contrib/executionPlan/browser/widgets/nodeSearchWidget.ts
30
14.41%

src/sql/workbench/contrib/executionPlan/browser/executionPlanPropertiesViewBase.ts
47
23.68%

src/sql/workbench/contrib/executionPlan/browser/azdataGraphView.ts
74
5.31%

src/sql/workbench/contrib/executionPlan/browser/executionPlanView.ts
110
17.33%

Totals

Change from base Build<PHONE_NUMBER>:
-0.008%

Covered Lines:
28013

Relevant Lines:
62324

💛  - Coveralls


PEP 8 formatting and Pythonic conventions

Supersedes PR #52 (I got burned from developing on master on my fork and learned a good lesson).
@danpaquin let me know if there's anything else you'd like to see in this specific PR. Of course these changes break any backwards compatibility but it will be good in the long run 😃

Could we merge this? 😃  I want to make a few changes, but don't want to work with all the old method names and definitions.

Sure! Im trusting you here since I won't be able to manually test for another 10 hours.

Thanks! Yes, unit tests would be valuable to add soon to ensure everything still works as we make changes 😀

Now that we comply to standards, it will surely help development in the long run.

Additionally, I'll be updating the readme doc as it's now out of date.

I did update the readme to jive with the changes but could have missed something.

Oops, I'm on mobile and scrolled by those changes. Thank you for the thorough work!

I ran through some manual tests for everything in the public client, and a majority of methods in the authenticated client and everything seems to be working well there.

@acontry Thank you! This is a great PR.


[Migrated] Document (implement?) way to use Zappa with Flask app factories

Originally from: https://github.com/Miserlou/Zappa/issues/1771 by gmolau
App factories are the recommended way to structure Flask applications, but the Zappa docs (the README) make not mention of them and setting the app_function to the factory does not work. I'm sure it must be possible to get this to work somehow, but it would be nice if it could be more clearly stated.

Context

Zappa + Flask
Expected Behavior

Ideally the init script should pick up the factory function automatically and do the right thing, but at least the docs should give a hint on how to do it manually.
Actual Behavior

zappa init claims it has found an <project>.__init__.app object, even though no such object exists, only a create_app function that would return an app object.
Possible Fix

Steps to Reproduce

Setup a Flask app with the app factory pattern
Run zappa init and zappa deploy with all the default settings
Calling the endpoint results in an exception

Your Environment

Zappa version used: 0.45.1
Operating System and Python version: macOS 10.14, Python 3.6.4
The output of pip freeze: Only Flask and Zappa
Link to your project (optional):
Your zappa_settings.py: Default settings created by zappa init

@jneves the workaround for this that I have come across is some run.py file that looks like the following:
# run.py
from name_of_my_app import create_app

app = create_app()

if __name__ == "__main__":
    app.run()

and update the settings:
# zappa_settings.json
{
    "dev": {
        "app_function": "run.app",
        ...
    }
}

This at least got me up and running with minimal change to my app structure. Curious if there is another more direct method.

appears to be resolved.
for flask you need to specify the app as mentioned above.


[Native Animated] Support for animated tracking in native driver

This PR adds support for Animated tracking to Animated Native Driver implementation on Android and iOS.
Motivation
Animated tracking allows for animation to be started with a "dynamic" end value. Instead of passing a fixed number as end value we can pass a reference to another Animated.Value. Then when that value changes, the animation will be reconfigured to drive the animation to the new destination point. What is important is that animation will keep its state in the process of updating "toValue". That is if it is a spring animation and the end value changes while the previous animation still hasn't settled the new animation will start from the current position and will inherit current velocity. This makes end value transitions very smooth.
Animated tracking is available in JS implementation of Animated library but not in the native implementation. Therefore until now, it wasn't possible to utilize native driver when using animated tracking. Offloading animation from JS thread turns out to be crucial for gesture driven animations. This PR is a step forward towards feature parity between JS and native implementations of Animated.
Here is a link to example video that shows how tracking can be used to implement chat heads effect: https://twitter.com/kzzzf/status/958362032650244101
In addition this PR fixes an issue with frames animation driver on Android that because of rounding issues was taking one extra frame to start. Because of that change I had to update a number of Android unit tests that were relying on that behavior and running that one additional animation step prior to performing checks.
Test Plan
As a part of this PR I'm adding three unit tests for each of the platforms that verifies most important aspects of this implementation. Please refer to the code and look at the test cases top level comments to learn what they do.
I'm also adding a section to "Native Animated Example" screen in RNTester app that provides a test case for tracking. In the example we have blue square that fallows the red line drawn on screen. Line uses Animated.Value for it's position while square is connected via tracking spring animation to that value. So it is ought to follow the line. When user taps in the area surrounding the button new position for the red line is selected at random and the value updates. Then we can watch blue screen animate to that position.
You can also refer to this video that I use to demonstrate how tracking can be linked with native gesture events using react-native-gesture-handler lib: https://twitter.com/kzzzf/status/958362032650244101
Release Notes
[GENERAL][FEATURE][Native Animated] - Added support for animated tracking to native driver. Now you can use useNativeDriver flag with animations that track other Animated.Values

@facebook-github-bot shipit

I looked into the failure and it looks like this is not passing some of our internal tests:
js/react-native-github/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m:987:18: error: unused variable 'frame' [-Werror,-Wunused-variable]
  for (NSNumber *frame in frames) {
                 ^
js/react-native-github/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m:1010:18: error: unused variable 'frame' [-Werror,-Wunused-variable]
  for (NSNumber *frame in frames) {
                 ^
stderr: js/react-native-github/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m:987:18: error: unused variable 'frame' [-Werror,-Wunused-variable]
  for (NSNumber *frame in frames) {
                 ^
js/react-native-github/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m:1010:18: error: unused variable 'frame' [-Werror,-Wunused-variable]
  for (NSNumber *frame in frames) {
                 ^

If you're surprised by this (Circle shows this PR as passing test_objc_ios), it's likely because I just found out yesterday that we haven't been running iOS tests at all since we moved them from Travis to Circle in https://github.com/facebook/react-native/pull/16354. On top of that, these tests were not running internally since December for an unrelated reason, but we fixed that internally last week.
The failure is not necessarily coming from this PR -- I haven't digged into that just yet -- but just wanted to let you know what's currently blocking it. I'll report back if it turns out this PR needs to be updated, but until then, assume that it's unrelated and that we need to fix our own internal breakage first.

@hramos Sometimes this happens on iOS because OSS and FB use different clang warning flags when building (I think because fb build uses buck internally to build iOS which is not open source).

@facebook-github-bot shipit

@kmagiera Did you know that the native tracking doesn't work as it should when the tracked value is animated (rather than being set directly). The tracking starts only after the initiating animation is complete. Is this some issue with how the native animations pre-calculate and serialize the values when the animation is started? Here are the screen shots for animations without and with native driver -

Without useNativeDriver

With useNativeDriver
I have animated the red circle to move with timing of duration 500, the green circle tracks the red with spring animation and the blue circle tracks the green one.
Here's a code for your reference:
<View style={{ flex: 1 }}>
    <View style={{ flex: 1 }}>
      <Circle color="red" position={first} />
      <Circle color="green" position={second} />
      <Circle color="blue" position={third} />
    </View>
    <Button
      title="Start"
      onPress={() => {
        const useNativeDriver = true;
        Animated.spring(second, { toValue: first, duration: 0, friction: 3, useNativeDriver }).start();
        Animated.spring(third, { toValue: second, duration: 0, friction: 3, useNativeDriver }).start();

        Animated.timing(first, {
          toValue: { x: 300, y: 300 },
          duration: 500,
          useNativeDriver,
        }).start();
      }}
    />
</View>


Use stackage nightly-2017-07-31 to fix haddock

The haddock documentation was not generated properly with ghc 8.0, but that is fixed now with the new ghc 8.2 stackage nightly.

This is no longer an issue.


atom as an editor is too big

compare to sublime 3 is 7.2MB
mint@gnome3-on-mac:~$ (cd Downloads/; ls -lh atom* sublime* )
-rw-r--r-- 1 mint users  68M Nov 19 13:45 atom-amd64.deb
-rw-r--r-- 1 mint users 7.2M Mar 26  2015 sublime_text_3_build_3083_x64.tar.bz2

install size: atom is 208M vs. sublime3 is 17M
$ (cd Downloads/; dpkg-deb --fsys-tarfile atom-amd64.deb ) |tar -xvv ./usr/share/atom/
drwxr-xr-x root/root         0 2015-11-19 13:44 ./usr/share/atom/
-rw-r--r-- root/root<PHONE_NUMBER>-11-19 13:44 ./usr/share/atom/natives_blob.bin
-rw-r--r-- root/root<PHONE_NUMBER>-11-19 13:44 ./usr/share/atom/snapshot_blob.bin
-rw-r--r-- root/root  10206624 2015-11-19 13:44 ./usr/share/atom/icudtl.dat
-rw-r--r-- root/root      1055 2015-11-19 13:44 ./usr/share/atom/LICENSE
-rw-r--r-- root/root<PHONE_NUMBER>-11-19 13:44 ./usr/share/atom/libgcrypt.so.11
-rwxr-xr-x root/root  59086736 2015-11-19 13:44 ./usr/share/atom/atom
-rw-r--r-- root/root         7 2015-11-19 13:44 ./usr/share/atom/version
[...]
mint@gnome3-on-mac:~$ \du -xsh ./usr/share/atom/
208M    ./usr/share/atom/
mint@gnome3-on-mac:~$ \du -xsh ./opt/sublime_text_3/
17M ./opt/sublime_text_3/

run like:
mint@gnome3-on-mac:~$ ./usr/share/atom/atom
App load time: 299ms

I'm trying to understand why it's so large: it seems a nodejs project / embedding a nodejs v0.10.40 binaries, and suffering the same nodejs project's recursive node_modules problem,
mint@gnome3-on-mac:~$ \du -xa ./usr/share/atom |sort -n
[...]
3748    ./usr/share/atom/resources/app/apm/node_modules/npm/node_modules/request
4244    ./usr/share/atom/resources/app.asar.unpacked/node_modules
4284    ./usr/share/atom/resources/app/apm/node_modules/first-mate
4884    ./usr/share/atom/resources/app.asar.unpacked
5864    ./usr/share/atom/chromedriver/chromedriver
5872    ./usr/share/atom/chromedriver
8540    ./usr/share/atom/content_shell.pak
9968    ./usr/share/atom/icudtl.dat
10784   ./usr/share/atom/resources/app/apm/node_modules/npm/node_modules
11184   ./usr/share/atom/resources/app/apm/bin/node
11196   ./usr/share/atom/resources/app/apm/bin
11796   ./usr/share/atom/resources/app/apm/node_modules/npm
16384   ./usr/share/atom/libnode.so
21744   ./usr/share/atom/resources/app/apm/node_modules
33516   ./usr/share/atom/resources/app/apm
33524   ./usr/share/atom/resources/app
57704   ./usr/share/atom/atom
73464   ./usr/share/atom/resources/app.asar
112480  ./usr/share/atom/resources
212484  ./usr/share/atom
mint@gnome3-on-mac:~$ ls -lh ./usr/share/atom/resources/app.asar
-rw-r--r-- 1 mint users 72M Nov 19 13:44 ./usr/share/atom/resources/app.asar
mint@gnome3-on-mac:~$ \du -xsh ./usr/share/atom/resources/app.asar [...]
72M ./usr/share/atom/resources/app.asar
33M ./usr/share/atom/resources/app/apm
22M ./usr/share/atom/resources/app/apm/node_modules
16M ./usr/share/atom/libnode.so
12M ./usr/share/atom/resources/app/apm/node_modules/npm
11M ./usr/share/atom/resources/app/apm/bin/node
11M ./usr/share/atom/resources/app/apm/node_modules/npm/node_modules
mint@gnome3-on-mac:~$ ./usr/share/atom/resources/app/apm/bin/node -v
v0.10.40
mint@gnome3-on-mac:~$ find ./usr/share/atom -name node_modules |wc -l
90
mint@gnome3-on-mac:~$ find ./usr/share/atom -name node_modules -exec ls -1 {} \; |wc -l
277
mint@gnome3-on-mac:~$ find ./usr/share/atom -name node_modules -exec ls -1 {} \; |sort -u |wc -l
223

The largest ones are app.asar (72M), apm (33M), and node binaries (16M+11M), and there are 90 node_modules directories totally, from 277 to unique 223 package names means a lot of potential duplicate code,
The app.asar (72M) resource file seems to be a large plain text file with 16 bytes binary header, is that a webpack or something I don't understand, look like a plain text javascript file, why it needs to be 72MB large? why not try some xz or gzip compressed resource?
mint@gnome3-on-mac:~$ file ./usr/share/atom/resources/app.asar
./usr/share/atom/resources/app.asar: data
mint@gnome3-on-mac:~$ hexdump -C ./usr/share/atom/resources/app.asar |& head -n40
00000000  04 00 00 00 b0 08 0b 00  ac 08 0b 00 a5 08 0b 00  |................|
00000010  7b 22 66 69 6c 65 73 22  3a 7b 22 64 6f 74 2d 61  |{"files":{"dot-a|
00000020  74 6f 6d 22 3a 7b 22 66  69 6c 65 73 22 3a 7b 22  |tom":{"files":{"|
00000030  2e 67 69 74 69 67 6e 6f  72 65 22 3a 7b 22 73 69  |.gitignore":{"si|
00000040  7a 65 22 3a 34 31 2c 22  6f 66 66 73 65 74 22 3a  |ze":41,"offset":|
00000050  22 30 22 7d 2c 22 69 6e  69 74 2e 63 6f 66 66 65  |"0"},"init.coffe|
00000060  65 22 3a 7b 22 73 69 7a  65 22 3a 33 38 36 2c 22  |e":{"size":386,"|
00000070  6f 66 66 73 65 74 22 3a  22 34 31 22 7d 2c 22 6b  |offset":"41"},"k|
00000080  65 79 6d 61 70 2e 63 73  6f 6e 22 3a 7b 22 73 69  |eymap.cson":{"si|
00000090  7a 65 22 3a 31 30 30 34  2c 22 6f 66 66 73 65 74  |ze":1004,"offset|
000000a0  22 3a 22 34 32 37 22 7d  2c 22 70 61 63 6b 61 67  |":"427"},"packag|
000000b0  65 73 22 3a 7b 22 66 69  6c 65 73 22 3a 7b 22 52  |es":{"files":{"R|
000000c0  45 41 44 4d 45 2e 6d 64  22 3a 7b 22 73 69 7a 65  |EADME.md":{"size|
[...]
mint@gnome3-on-mac:~$ tail -c +17 ./usr/share/atom/resources/app.asar | less
{"files":{"dot-atom":{"files":{".gitignore":{"size":41,"offset":"0"},"init.coffee":{"size":386,"offset":"41"},"keymap.cson":{"size":1004,"offset":"427"},"packages":{"files":{"README.md":{"size":60,"offset":"1431"}}},"snippets.cson":{"size":698,"offset":"1491"},"styles.less":{"size":762,"offset":"2189"}}},"exports":{"files":{"atom.js":{"size":1642,"offset":"2951"}}},"less-compile-cache":{"files":{"008ee39f25f61883969b7638fa1eee8c89057781":{"files":{"content":{"files":{"03fe3eda02e330109d9471f0f9bb8033fc5284ea":{"files":{"package-card.json":{"size":7316,"offset":"4593"},"package-readme.json":{"size":2464,"offset":"11909"},"settings-view.json":{"size":17570,"offset":"14373"},"variables.json":{"size":286,"offset":"31943"}}},"0ca72fa78b0f02602636d1eea2ee52e59c89b9ba":{"files":{"find-and-replace.json":{"size":7516,"offset":"32229"}}},"10da4fc591498d7e0cc359330a4c634853928cc9":{"files":{"incompatible-packages.json":{"size":1442,"offset":"39745"}}},"235ea17d31c14d2abdb70d798d0a0a2c444344c9":{"files":{"encoding-selector.json":{"size":725,"offset":"41187"}}},"38c4d79a3870966993e7817b7331827c4ff9d8f7":{"files":{"index.json":{"size":5280,"offset":"41912"}}},"3cf8cf26996687e169a7146b88246c1b913a6656":{"files":{"tree-view.json":{"size":1951,"offset":"47192"}}},
[...]

Could you atom developers try to reduce the size ? is there any one making effort on any node dedupe solution? if can't compare with sublime, anyway keep install size below 100M or even smaller would be much appreciated; thanks

Atom has been reduced in size significantly in the past (#6313, #6407, #6395, #6447, atom/notifications#54, among others). As a matter of fact, the app.asar that you mention compressing is a compressed file. (See the atom/asar repository for more information on the file format.)
If you have examples of duplicate code or specific suggestions of methods for shrinking the size of Atom, please open Issues or Pull Requests with that information. Unfortunately, I fear that simply "make it smaller" is not specific enough to be actionable.

I'm not a node developer don't even know how to hack this project.
Only providing my general feedback here, 208MB is beyond the size of an editor should be,
the app.asar not compressed anyway, if you open it with a hex editor, you will see 90%+ of this 72MB file is plain text, which means further compressable, here I apply a simple xz compress get a 13MB file, but I don't know how to change the main binary to load resource from the compressed file
-rw-r--r-- 1 mint users  72M Nov 19 13:44 app.asar
-rw-r--r-- 1 mint users  13M Nov 19 13:44 app.asar.xz

There are a number of things that Atom could do to reduce install size, but tbh, does it really matter? Engineering work costs time, and optimizing disk space isn't really worth that time given that you can buy a 16GB USB Thumb drive on Amazon for less than a cup of coffee. That's 227 copies of Atom, for $5.

I think the original user's concern is not about disk space but download bandwidth. Disk space is indeed cheap. Bandwidth isn't so, especially if you live somewhere where you can't switch ISPs.

can buy a 16GB USB Thumb drive

that's not a good excuse for doing nothing, not everybody as you github employees (I heard most atom developers are ?) have a macbook pro for each one, and there are many ones still using old computers, ...

you github employees

This is challenging the person, not the idea, and is generally considered poor form in online discussions.
You still haven't addressed my concern with this Issue, @crquan, namely that there isn't a method of determining if Atom is "beyond the size of an editor should be". You only state that 208MB is too much. A bug is nearly worthless if it cannot ever be fixed. And without a clearly defined goal, this bug cannot be fixed.
Is 207MB too big? Is 200MB? Is 10MB? Please give an example of what size is "small enough" and what size "too big" and, most importantly, why.

In any case, as long as Atom uses electron, it's going to be an order of magnitude larger on disk than the example you provided (sublime 3 at 7 megs) because of libchromiumcontent, etc. We're generally working on reducing the file size of the editor where we can, but I am going to close this issue in favor of more specific issues - you could, for example, have a conversation about the pros and cons of asar actually doing compression rather than concatenation on the electron repository, or file an issue about problems with dependency deduping in atom.
Still, Atom is likely going to be in the 100 meg order of magnitude, not 10 , for the forseeable future.

I really agree with @crquan , The package is too big, However the Atom is open source, May be This is a only advantage vs sublime, If so, How can atom accepted by common people. We all know sublime can use free for a long time which you can think. @lee-dohm as a common user, We already find the "bug" lies, not us to fix it. Not all common people go through all the code which Atom has. This is just suggestion or mind which everyone can see it.

I'll add my comment, albeit late. I am using Atom on Xubuntu running alongside Chrome OS. I only have a 16 GB SSD to play with and once you factor in the Chrome OS, Xubuntu and the necessary software that comes with them, there isn't much room left. I currently only have 2.5 GB left so Atom is taking up 10% of that.

@thedaniel, I do not think it is a good idea to close this, even have a plan to reduce the size of atom, why not keep this open as a place where can remind us we have a really important thing to do. not just a idea.
@lee-dohm, I want to speak directly, the words "very cheap to buy a USB" seems really ridiculous. if that is right, why not make atom more bigger, to 2G. or what else...... what is the meaning of one software which exist? especially loved by people. that is ..... everyone knows it. maybe you will tell me, Atom is a open source, you just work for it as volunteer. That make no sense, why you make efforts to a open source, because you love it. when you love it, why not keep it the best. Then about the purpose, 200M, 100M? @crquan already gives us a good example ###sublime###. your words looks so ridiculous, I have to say. no offence. Thanks.

Just installed it on my Mac. Gosh, it's 530 Mb...

Atom was taking up 1.5GiB in my %APPDATA% folder on Windows 10. Because this goes on my OS SSD where space is very limited, I ended up uninstalling it. It's ridicilous, but then again it's JavaScript.

Hey guys, Atom is taking 7GB on my SSD for 1 year of using it. Maybe its a problem after all?

Adding to this, Atom was taking 5.5GB on my SSD as well, most of it in local appdata. Windows 10.

Just saying: VSCode is < 100 mb download size, ~ 200 mb memory print and also build up on Electron.

There is a known issue on Windows where the auto-updater may fail to remove old versions of Atom.  It is safe to delete all the older versions.

I used to use atom a lot, and now it pushed me to vscode side, because obviously this HUGE beast become a problem~

I understand that Node.js style code must be transmitted as text, and 1.0 GB sounds reasonable for a piece of software with the versatility of Atom. Admittedly, I am also not a Node.js developer; I  haven't used it in about a year and a half. However, I'm installing software on Mint 19 right now, and it's had to download an entire gigabyte.
Part of why I picked up Atom was because it was so much quicker and more lightweight than something like Visual Studio. Is there anyway you could perhaps take a machine-compiled portion of that code, and put it together as a binary on the host, then distribute it selectively? Something like binary, dev, and src packages? Because it is losing its original grace, and if this keeps up, I may have to switch.

I was searching about Atom's size and found this thread. I downloaded it from atom.io for my Mac and the app is a whopping 865MB!!! So is this normal? I was searching because I was afraid the download could have been compromised on the website or something like that...
How can a text editor take more than 800 MB of disk space?


Modular_Exponentiation

Description of Change

Checklist

[ ] Added description of change
[ ] Added file name matches File name guidelines
[ ] Added tests and example, test must pass
[ ] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[ ] Relevant documentation/comments is changed or added
[ ] PR title follows semantic commit guidelines
[ ] Search previous suggestions before making a new one, as yours may be a duplicate.
[ ] I acknowledge that all my contributions will be made under the project's license.

Notes:

@Panquesito7 this is marked as a duplicate. Does the code already exist in the repo or is there an identical pull-request?

is there an identical pull-request?

I thought this was a duplicate of #1275 (even
though, that PR is recent), because this is a closed PR.
If I'm incorrect, I'll remove the duplicate label here.

@shriprakash22 please review the checklist and ensure that this contribution is not a duplicate of the one mentioned above. If  not a duplicate, please inform how is the code different and make sure that the contribution follows the checklist guidelines. Otherwise, this pull-request will be marked invalid and closed. It will not earn you any points towards hactoberfest.


Hello author, how do you measure loss_mask and loss dice, do you have any references?

Custom data set (10k), using the author's method, after a round of training, loss_dice and loss_mask have been fluctuating at a certain value, how do you know that it will converge if you continue to train?

Hi, you can draw a loss curve and observe the tendency of loss changing.

Hi, you can draw a loss curve and observe the tendency of loss changing.

Can you provide some code samples?


[schema endpoint] RFE: type "amount" not implemented

After more thoughts, I really don't think this deserves a type on its own. Since this is no longer documented, closing this.


[Event Request] Table 81 - Gen. Journal Line - OnBeforeCheckCurrencyForEmployee

Please add events to make it possible to create Employee Ledger Entry in Currency, there are several places where we cannot handle errors:
field(12; "Currency Code"; Code[10])
{
    Caption = 'Currency Code';
    TableRelation = Currency;

    trigger OnValidate()
    var
        BankAcc: Record "Bank Account";
    begin
        if "Bal. Account Type" = "Bal. Account Type"::"Bank Account" then begin
            if BankAcc.Get("Bal. Account No.") and (BankAcc."Currency Code" <> '') then
                BankAcc.TestField("Currency Code", "Currency Code");
        end;
        if "Account Type" = "Account Type"::"Bank Account" then begin
            if BankAcc.Get("Account No.") and (BankAcc."Currency Code" <> '') then
                BankAcc.TestField("Currency Code", "Currency Code");
        end;
        if ("Recurring Method" in
            ["Recurring Method"::"B  Balance", "Recurring Method"::"RB Reversing Balance"]) and
            ("Currency Code" <> '')
        then
            Error(
                Text001,
                FieldCaption("Currency Code"), FieldCaption("Recurring Method"), "Recurring Method");

        if "Currency Code" <> '' then begin
            // new event ++
            OnValidateCurrencyCodeOnBeforeCheckCurrencyForEmployee(Rec, IsHandled);
            if not IsHandled then
            // new event --
                if ("Bal. Account Type" = "Bal. Account Type"::Employee) or ("Account Type" = "Account Type"::Employee) then
                    Error(OnlyLocalCurrencyForEmployeeErr);
           ...

    end;
}

       field(63; "Bal. Account Type"; Enum "Gen. Journal Account Type")
{
    Caption = 'Bal. Account Type';

    trigger OnValidate()
    begin
        if ("Account Type" in ["Account Type"::Customer, "Account Type"::Vendor, "Account Type"::"Fixed Asset",
                                "Account Type"::"IC Partner", "Account Type"::Employee]) and
            ("Bal. Account Type" in ["Bal. Account Type"::Customer, "Bal. Account Type"::Vendor, "Bal. Account Type"::"Fixed Asset",
                                    "Bal. Account Type"::"IC Partner", "Bal. Account Type"::Employee])
        then
            Error(
                Text000,
                FieldCaption("Account Type"), FieldCaption("Bal. Account Type"));

        // new event ++
        OnValidateBalAccountTypeOnBeforeCheckCurrencyForEmployee(Rec, IsHandled);
        if not IsHandled then
            // new event --
            if ("Bal. Account Type" = "Bal. Account Type"::Employee) and ("Currency Code" <> '') then
                Error(OnlyLocalCurrencyForEmployeeErr);

        ReadGLSetup();
        if GLSetup."Journal Templ. Name Mandatory" then
            if GenJnlTemplate.Name <> "Journal Template Name" then
                GenJnlTemplate.Get("Journal Template Name");

        OnValidateBalAccountTypeOnBeforeSetBalAccountNo(Rec, xRec);
        ...
    end;
}

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 51294.


Missprint in the blockExplorerUriTemplate: address for xDai on prod

https://safe-client.gnosis.io/v1/chains/100/
{"address":"https://blockscout.com/xdai/mainnet/adddress/{{address}}/transactions"
"adddress" instead of "address", as a result,the issue on the mobile client with opening addresses in the blockexplorer (404)

This is not an issue of the client gateway. Will move itnto the config service.


Small bugs in eval agents

Hi @allenzren, I just wanted to bring to your notice that self.itr appears in eval agents without prior initialization.
https://github.com/irom-lab/dppo/blob/e0842e71dc62cc0079f737672a5ab7bd49abe9e3/agent/eval/eval_diffusion_agent.py#L31
https://github.com/irom-lab/dppo/blob/e0842e71dc62cc0079f737672a5ab7bd49abe9e3/agent/eval/eval_diffusion_img_agent.py#L35
https://github.com/irom-lab/dppo/blob/e0842e71dc62cc0079f737672a5ab7bd49abe9e3/agent/eval/eval_gaussian_agent.py#L31
https://github.com/irom-lab/dppo/blob/e0842e71dc62cc0079f737672a5ab7bd49abe9e3/agent/eval/eval_gaussian_img_agent.py#L35

oops thank you! it is fixed now.


Support mailto property of cron_d resource

This allows people to send the cron mail to someone other than the user the cron job is running as.

None of the build failures above are from the code changed in this pull request.


Disable compose box buttons in preview mode

When the compose box is in preview mode, it is not possible to edit the text. We should therefore disable all the other compose box buttons (other than "help" and "drafts"), as they cannot be used in that situation. The icons should be greyed out, and the cursor should be changed to disabled mode.
CZO discussion

@alya can I claim this issue

@zulipbot claim

Hey @alya, this is how it is looking should I commit?

Why are we deciding to disable the icons instead of hiding them?  GH hides them (you can test this as you replying to this message), and that feels much cleaner to me.


using Multiple directives, asking for new/isolated scope

Hi  @KillerCodeMonkey ,
When I use ment.io directive combine with ng-quill, it keep showing me the following error. Could you show the way how to solve it?
<ng-quill-editor ng-model="user.description" msd-elastic="1"
mentio
mentio-typed-text="typedTerm"
mentio-items="user.current | filter:username:typedTerm"
mentio-select="user.selected(item)"
mentio-menu-position="'top'">
</ng-quill-editor>

yeah i think this will not work. both are directives/components with isolated scope an the same element.
i do not know much about mentio and how it works.
But you could try the following:
add a hidden input with the same ngmodel as the ng-quill editor has + the mentio directives
But i think then, the list of users will be not positionated correctly.

or you add your own little directive without isolated scope --> with ng-quill you get informed if the model changed, and with the editor instance you can get cursor position --> a little regex listening on @ and so on. For details you can simply look in the mentio repo.

I get it. Thank you for your help. 👍

nice, but could you post your solution?

sure, I will.

I tried to write my own directive for a couple of hr. It didn't work well. And now I used the trickiest way as you said before, used the same model. 😝
<input
	type="hidden"
	name="users"
	class="input-mention hidden"
	ng-model="user.description"
	mentio
	mentio-typed-text="typedTerm"
	mentio-items="user.current | filter:username:typedTerm"
	mentio-select="user.selected(item)"
	mentio-menu-position="'top'"

/>

<ng-quill-editor
	ng-model="user.description"
	msd-elastic="1"
>
</ng-quill-editor>

Check result below.

Thanks @KillerCodeMonkey

lols^^ ... did not expect this, but nice!


Add Grafana tokens plugin

Added Grafana tokens plugin + tests

@chagrafana Do you have any documentation to how you formulated these regexes?


fix: bump edge-runtime to 1.65.0

What kind of change does this PR introduce?
Bump edge-runtime to 1.65.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 59.575%

Totals

Change from base Build<PHONE_NUMBER>2:
0.0%

Covered Lines:
6399

Relevant Lines:
10741

💛  - Coveralls


Decimation filter creating patches

Required Info

Camera Model
D435i

Firmware Version
<IP_ADDRESS>

Operating System & Version
Linux (Ubuntu 20)

Kernel Version (Linux Only)
5.8.0-50-generic

Platform
PC

SDK Version
2.45.0

Language
python

Segment
others

Issue Description
I've apply applying a decimation filter to my frames this way :
decimate_filter = pyrealsense2.decimation_filter(2)
frames = pipeline.wait_for_frames()
frames = decimate_filter.process(frames).as_frameset()
frames = align.process(frames)

depth_frame = frames.get_depth_frame()
color_frame = frames.get_color_frame()

But it doesn't reduces the amount of points. Instead, it is creating patches of 3*3 points with the same depth. I suppose it's to conserve the full color information while reducing the depth complexity, but I would rather have an actual decimation filter that reduces the number of points. Am I supposed to do that myself or is there an option I am missing ?

an exemple of those patches, with a decimation magnitude parameter of 4.

Hi @mathislm   An example of Python scripting for decimation and align in the link below may be a useful reference.
https://github.com/IntelRealSense/librealsense/issues/2356#issuecomment-465766323

Thank you.
Though, this is what I am doing in the code I shared I think. Am I missing something ?

They are structurally similar, though I note that your script has not got align_to set up before calling align.process

My bad, I forgot to add that in the issue description. This is how I declare my variable align :
align = pyrealsense2.align(pyrealsense2.stream.color)

No problem.  How does it behave if you use a decimation value of '3' instead of '2'?

Hi @mathislm  Do you require further assistance with this case, please?  Thanks!

Hello,
I understand with this previous link that the api doesn't really provide a way to apply filters "frame-wide". This means I'll have to apply my filters on myself, with scipy maybe. It is a bit troublesome but I'll manage. Thank you.

You are very welcome @mathislm - good luck!


Why are symbols of elf files ignored if there size is equals zero?

Is there a reason symbols of size 0 are ignored in elf_reader?
https://github.com/janweinstock/vcml/blob/103db7e51d5b7d57e6c86a7064d3d55d95d10043/src/vcml/debugging/elf_reader.cpp#L122-L123
I tried to get a symbol from an elf file that has been skipped in elf_reader due to unknown symbol size (syms[i].st_size == 0). I think, I my case the size of the symbol was 0 because it was a label in an assembly file (where the size of the "function" was not know).

Hi Nils,
in the past, we only cared for functions STT_FUNC and variables STT_OBJECT, both types should have a non-zero size. Therefore we are filtering everything else out. Also, it might lead to trouble if someone needs to calculate function boundaries and finds a zero-size function. Therefore I decided to throw those symbols out. Normally, people should annotate the size of a function in assembler code via .size, but some forget to, and I have seen this annotation missing even in kernel code.
I have no strong opinion on this though, feel free to remove this check if it helps you.
Gruss
Jan

Hi Jan,
thank you very much for your detailed reply! I'll check if I am able to annotate the size; otherwise I remove the check in my forked repository.
Best regards,
Nils


Add login form in swagger UI

This closes #1798

@milad-karimifard
first of all, thanks a lot for your contribution. I appreciate it a lot. 👍
the code you've provided seems to be borrowed from somewhere like this article:
https://www.codedesigntips.com/2021/06/28/swagger-ui-with-login-form-and-role-based-api-visibility/
so if it's borrowed plz provide the source in the code.
and also the javascript code needs to be converted to typescript first before getting reviewed.

IMO, it seems fine now.
@ysmoradi could you plz review this PR and also test the script on your machine?

I'm gonna merge this PR right after testing that on my local machine @milad-karimifard @msynk
Thanks!


Unable to run a 'Hello World' demo on the Windows platform, but it runs successfully on the Mac platform.

Unable to run a 'Hello World' demo on the Windows platform, but it runs successfully on the Mac platform.
The result on Windows is as follows:

The Go version is: go1.20.4 for windows/386.

Because the record function of the window environment depends on the capabilities provided by Openal.
`var (
modOpenAL32 = syscall. NewLazyDLL("OpenAL32.dll")
procalcCaptureCloseDevice = modOpenAL32.NewProc("alcCaptureCloseDevice")
procalcCaptureOpenDevice  = modOpenAL32.NewProc("alcCaptureOpenDevice")
procalcCaptureSamples     = modOpenAL32.NewProc("alcCaptureSamples")
procalcCaptureStart       = modOpenAL32.NewProc("alcCaptureStart")
procalcCaptureStop        = modOpenAL32.NewProc("alcCaptureStop")
procalcCloseDevice        = modOpenAL32.NewProc("alcCloseDevice")
procalcCreateContext      = modOpenAL32.NewProc("alcCreateContext")
procalcGetError           = modOpenAL32.NewProc("alcGetError")
procalcOpenDevice         = modOpenAL32.NewProc("alcOpenDevice")
)`


Fix time window in CVRPTW with Python

I want to apply time window (open time, close time) between previous day and next day each depot and stoppoint.
Example : open time 19:00 24-02-2020 , close time 4:00 25-02-2020, I convert range 48h,
0->24h is 24-02,   24-48 is 25-02.
Time window is converted, opentime = 19, closetime = 29.
But model don't run
"...SetRange return _pywrapcp.IntExpr_SetRange(self, l, u) Exception: CP Solver fail"

You should not use SetRange outside search.
Le lun. 24 févr. 2020 à 11:49, Hoaidang<EMAIL_ADDRESS>a écrit :

I want to apply time window (open time, close time) between previous day
and next day each depot and stoppoint.
Example : open time 19:00 24-02-2020 , close time 4:00 25-02-2020, I
convert range 48h,
0->24h is 24-02, 24-48 is 25-02.
Time window is converted, opentime = 19, closetime = 29.
But model don't run
"...SetRange return _pywrapcp.IntExpr_SetRange(self, l, u) Exception: CP
Solver fail"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1894?email_source=notifications&email_token=ACUPL3IUDNUFD2AIABDJPRTREOQ27A5CNFSM4K2FXLW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPWCQ5A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3LTRKSXXDZTXEYRYN3REOQ27ANCNFSM4K2FXLWQ
.

Did you try:
https://github.com/google/or-tools/blob/858fa626959f7e386153af82756384b79f983b5a/ortools/constraint_solver/samples/cvrptw.py#L190-L191

When you create your dimension did you set the "horizon" to 48 ?
horizon = 48
routing.AddDimension(
    time_evaluator_index,
    horizon,  # allow waiting time
    horizon,  # maximum time per vehicle
    False,  # don't force start cumul to zero since we are giving TW to start nodes
    "time")

When you create your dimension did you set the "horizon" to at least 48 ?
horizon = 48
routing.AddDimension(
    time_evaluator_index,
    horizon,  # allow waiting time
    horizon,  # maximum time per vehicle
    False,  # don't force start cumul to zero since we are giving TW to start nodes
    "time")

if your range is outside the horizon, it will fail (solver check `l <= horizon && u <= horizo

When you create your dimension did you set the "horizon" to at least 48 ?
horizon = 48
routing.AddDimension(
    time_evaluator_index,
    horizon,  # allow waiting time
    horizon,  # maximum time per vehicle
    False,  # don't force start cumul to zero since we are giving TW to start nodes
    "time")

if your range is outside the horizon, it will fail (solver check l <= horizon && u <= horizon)...

I set horizon is 48 and depot open timewindow = 21.5 and close timewindow = 43,
Stoppoint 1 :  open timewindow = 22 and close timewindown = 37
But model still fail.

I set horizon is 48 and depot open timewindow = 21.5 and close timewindow = 43,

You must use integer !

I set horizon is 48 and depot open timewindow = 21.5 and close timewindow = 43,

You must use integer !

I converted hour to seconds by 21.53600 and 433600


Copy image from another meteor server

Hello,
I'm trying to occasionally sync some of the data between 2 meteor servers.
It works fine for the data, but I have an issue with the images.
Images are sent with POST in base64 and are decoded on the destination server in the correct folder (i use the filesystem)
Meteor.http.call("POST",  serverIp+"/api/image/",
  {params:{imageData: base64image, imageName: image.copies.images.key, store: "thumbs"}},
  function (error,result) {...}
);

I also send the record of the sent images and have it inserted in cfs.images.filerecord
Image and record are correctly transferred to the destination server (I can see image in the filesystem and I have the record in mongo), but when I'm trying to display an image, I get this log (with debug on)
I20150925-12:55:31.558(2)? token: eyJhdXRoVG9rZW4iOiIxTGoxWERRV2U5MmVGVUNhakdWOWRyaUZ5VnJ5SmwwTlpjWUlzdEFzVUFpIn0=
I20150925-12:55:31.560(2)? GET FILERECORD: mK36tevft8uMTfd7s

But with and image uploaded normally with a client though cfs the log is
I20150925-12:58:27.121(2)? token: eyJhdXRoVG9rZW4iOiIxTGoxWERRV2U5MmVGVUNhakdWOWRyaUZ5VnJ5SmwwTlpjWUlzdEFzVUFpIn0=
I20150925-12:58:27.122(2)? GET FILERECORD: XZdNRPDAbBzwXWNZS
I20150925-12:58:27.123(2)? Read file "tisane.jpg" bytes 0-37673/37674
I20150925-12:58:27.123(2)? createReadStream thumbs
I20150925-12:58:27.123(2)? createReadStreamForFileKey thumbs

So with "synced" images It does not get to the Read file part..
In my attempt to find a solution I tried to erase my thumb with the image using cfs methods and I managed to get the new thumb displayed
image.createReadStream("images").pipe(image.createWriteStream("thumbs"));

Doing this works, but this is not what I want and it involves creating streams while image are already on server. It was just to try to get closer to a solution.
Do you have a suggestion so I could display the image?
Thank you.

I've found a workaround..
I write the image in a temporary location then I create a readStream from this image and I pipe it in the fsFile.createWriteStream([storeName])
// Save image in a temporary location and make a readstream
base64_decode(blogAttributes.imageData, tempPath);
var readStream = fs.createReadStream(tempPath);

// Get the associated image record and make a writestream on the store
var syncedImage = Images.findOne({'copies.images.key': blogAttributes.imageName});
var writeStream = syncedImage.createWriteStream(blogAttributes.store)

// Do the copy and delete the temp file
readStream.pipe(writeStream);
writeStream.on('finish', function() {
    fs.unlinkSync(tempPath);
});

It's certainly not the best solution and I'm open to other suggestions on how to sync some data or display the image.


Would SVG screenshots work for playback?

We were investigating another way to support record and playback for research studies, one that is more robust than recording input events.  I tried recording PNG screenshots, but it slowed down the performance quite a bit.  What about creating "mostly svg" screenshots by getting the scenery div svg tree?  Or even just saving the entire page HTML/css?

I tried the strategy at http://stackoverflow.com/questions/1750815/get-the-string-representation-of-a-dom-node and it worked pretty well aside from the embedding marks:

document.body.innerHTML works surprisingly well, but no WebGL.

Accessing the innerHTML is very fast, but it something like 144,443 characters per frame for bending light.  This is showing up as 145KB on my filesystem.  It should be very compressible but that could slow things down.  Perhaps we should re-investigate capturing small intermittent screenshots as a "ground  truth" check against input event recording.

I've used this approach for pixel-comparison unit tests, see Display.foreignObjectRasterization. There's some extra code that searches for Canvas elements, looks up their pixel content, and then replaces them with an image (with a data URL for the Canvas content).
For WebGL, this works, but requires the preserveDrawingBuffer Display flag (which triggers that on the WebGL Context, and can potentially slow down rendering performance).
Notably, this would be sharp (shows what is currently displayed), however may be platform-specific (Scenery might be using platform-specific features), and if there is a single screen-wide Canvas, then just simple screenshots would be smaller in size.

Linking to https://github.com/phetsims/phet-io/issues/1854 since @jonathanolson mentioned this strategy yesterday.  Tagging @zepumph so he is aware.

Some other ideas for dealing with playback:

https://github.com/rrweb-io/rrweb
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API

@kathy-phet mentioned a potential need to revisit Playback for a partner named TERC, possibly towards the end of 2024. I will bump in the priority here.


return object with id when creating notification

Is your feature request related to a problem? Please describe.
I need to pair id of notification object when the object is created to block closeOnClick, but i dont know when the notification dissapear.
If you get the id of object when created, then you just check if is equal to id emitted by destroy event.
Describe the solution you'd like
In the chapter before.
Describe alternatives you've considered
Another alternative is implement properties closeOnClick, pauseOnHover and so on. to a single instance (not whole component)
Additional context
Add any other context or screenshots about the feature request here.

Hi!
If you mean something like that...
const {id} = this.notify({text: 'foo'})
this.notify.close(id)

...you can use your own notification id:
https://github.com/kyvg/vue3-notification#programatically-closing
If you mean something else provide some examples, please :)

Hmm, i didnt notice that i can pass my own id as a object property...
Thank you for your reply.


Add test for comment spreadsheet generation

Issue #:
https://github.com/bcgov/met-public/issues/684
Description of changes:

Add resource test
Add frontend test

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

Codecov Report

Merging #1077 (4ed3dd4) into main (5851d42) will increase coverage by 0.46%.
The diff coverage is n/a.

:exclamation: Current head 4ed3dd4 differs from pull request most recent head 13f12de. Consider uploading reports for the commit 13f12de to get more accurate results

@@            Coverage Diff             @@
##             main    #1077      +/-   ##
==========================================
+ Coverage   73.52%   73.99%   +0.46%
==========================================
  Files         227      233       +6
  Lines        6530     6667     +137
  Branches      451      464      +13
==========================================
+ Hits         4801     4933     +132
- Misses       1659     1660       +1
- Partials       70       74       +4

Flag
Coverage Δ

metapi
79.61% <ø> (+1.42%)
:arrow_up:

metweb
68.20% <ø> (-0.30%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ementWidgets/WhoIsListening/WhoIsListeningForm.tsx
50.00% <0.00%> (ø)

met-web/src/models/comment.ts
100.00% <0.00%> (ø)

met-web/src/constants/commentStatus.ts
100.00% <0.00%> (ø)

met-web/src/models/surveySubmission.ts
100.00% <0.00%> (ø)

met-web/src/services/submissionService/index.tsx
20.45% <0.00%> (ø)

met-web/src/services/commentService/index.tsx
38.46% <0.00%> (ø)

.../components/comments/admin/reviewListing/index.tsx
83.33% <0.00%> (ø)

met-api/src/met_api/models/comment.py
73.17% <0.00%> (+3.65%)
:arrow_up:

met-api/src/met_api/services/comment_service.py
74.28% <0.00%> (+5.71%)
:arrow_up:

met-api/src/met_api/resources/comment.py
76.78% <0.00%> (+8.92%)
:arrow_up:

... and 4 more


What do you mean by " We apply DIRECTPROBE on the training and test set separately"?

Hi,
in your paper, A Closer Look at How FIne-tuning Changes BERT,  it is written that "We apply DIRECTPROBE on the
training and test set separately" in section 4.1.
For DirectProbing, we need train and test set. Then, does it mean that you split training set into train/test and test set into train/test set too?
Or just to use training as a test set too?
Thanks. :D

For DirectProbe, we do not need to differentiate the training or test set. What DirectProbe do is it takes into a labeled dataset and produces a set of clusters. It does not know about training or test set.
In Section 4.1, we apply DirectProbe to the training and test sets to show how fine-tuning changes the geometry of the embeddings, i.e., fine-tuning diverges the training and test set.
I hope that clarifies your questions.
Thanks!

@flyaway1217
Thanks! Now I understand that line.
Then train.txt and test.txt in config file are probed separately?
entities_path = ${common}/entities/train.txt
test_entities_path = ${common}/entities/test.txt

But when I runned the code with train.txt and test.txt only one per result text files are saved like below.

Oh, I found that the current codes actually probe only entities_path and embeddings_path and do not probe test files, right?

Yes. You are correct. Every time, DirectProbe only clusters for one dataset. That test_entities_path is something from the previous version. We do not use it in the paper "A Closer Look at How FIne-tuning Changes BERT."

By the way, You may want to pull the latest version. We recently fixed a minor bug in the code.

@flyaway1217
Thanks! Now I understand that line. Then train.txt and test.txt in config file are probed separately?
entities_path = ${common}/entities/train.txt
test_entities_path = ${common}/entities/test.txt

But when I runned the code with train.txt and test.txt only one per result text files are saved like below. Also I found that I should set both train and test files. How can I interpret the results? Or should I set both train and test files as the same one?

You need to provide something for the test_entities_path, but it will not be used. The output is the results of entities_path.

Thanks ! I will update the codes to the latest version.
Thank you for your clear comments. :)

@flyaway1217
Hi, I have one more question. When I run the codes with my own data which have 4 labels and about 7600 entities, It takes too much time (up to 4-5 hours) with the error below.
UserWarning: A worker stopped while some jobs were given to the executor. This can be caused by a too short worker timeout or by a memory leak.   "timeout or by a memory leak.", UserWarning
Do you have any solution to this problem? Or should I just wait till the end of the clustering?

Sometimes I had the same warning. Usually, I just wait until the end.
If Directprobe takes a long time to finish, your representation is non-linear for the given task.
One thing you could try is to change rate in the config.ini file. It controls the size of the step during the clustering process. I suggest that you can try between [0.05, 0.2].
In my own experiments, we don't have many non-linear cases. But I can say that 4-5 hours is within the normal range.

Also, the time depends on how many CPU you have because Directprobe uses multiple processes to do the linearity check. More CPU usually means faster clustering.


Add homeland coords for language groups ...

... computed as "minimal distance" as described in "Testing methods of linguistic homeland detection using synthetic data"
https://doi.org/10.1098/rstb.2020.0202

@d97hah This might be a useful addition as far as

it adds geocoords for each family languoid
it does so in a cheap yet principled way

Thoughts?

Implementation:
"""
Testing methods of linguistic homeland detection using synthetic data
Søren Wichmann and Taraka Rama
https://doi.org/10.1098/rstb.2020.0202
"""
import random
import collections

import pyproj
from pycldf import Dataset

def geodist(geod, p1, p2):
    return geod.inv(p1[1], p1[0], p2[1], p2[0])[2]

def md(g, coords):
    if len(coords) == 1:
        return coords[0]
    if len(coords) == 2:
        return random.choice(coords)
    random.shuffle(coords)
    mindist, mincoord = None, None

    for i, coord in enumerate(coords):
        dist = sum(geodist(g, coord, p) for j, p in enumerate(coords) if i != j)
        if (mindist is None) or (dist < mindist):
            mindist, mincoord = dist, coord
    return mincoord

if __name__ == '__main__':
    cldf = Dataset.from_metadata('cldf/cldf-metadata.json')
    subgroups = collections.defaultdict(list)
    vals = [v for v in cldf['ValueTable'] if v['Parameter_ID'] in ['level', 'classification']]

    # Find language-level languoids with coordinates:
    languages = {
        v['Language_ID'] for v in vals
        if v['Parameter_ID'] == 'level' and v['Code_ID'] == 'level-language'}
    languages_with_coords = {
        l['ID']: (l['Latitude'], l['Longitude'])
        for l in cldf['LanguageTable'] if l['ID'] in languages and l['Latitude'] is not None}
    names = {l['ID']: l['Name'] for l in cldf['LanguageTable']}

    # Collect sets of languages per language family/subgroup:
    for v in vals:
        if (v['Language_ID'] in languages_with_coords) and (v['Parameter_ID'] == 'classification'):
            clf = v['Value'].split('/')
            for i, _ in enumerate(clf, start=1):
                subgroups[' '.join(clf[:i])].append(languages_with_coords[v['Language_ID']])

    # Compute minimal distances per group:
    g = pyproj.Geod(ellps='WGS84')
    for group, coords in sorted(subgroups.items(), key=lambda i: ','.join(names[gc] for gc in i[0].split())):
        print('{}\t{}\t{}\t{}'.format(*[','.join(names[gc] for gc in group.split())] + list(md(g, coords)) + [len(coords)]))

The classic principle of max diversity seems to have these properties but
with better principles, i.e., in practice:

The homeland of a family is the point with the shortest distance to the
(inferred) location of its immediate daughters (recursively)
A cheap approximation to this is to take lat = avg([lat for (lat, lon) in
daughters]),  lon = avg([lon for (lat, lot) in daughters])
If the resulting point is in water, take the nearest point on land to this

all the best,
H
Pada tanggal Kam, 13 Okt 2022 pukul 09.18 Robert Forkel <
@.***> menulis:

@d97hah https://github.com/d97hah This might be a useful addition as
far as

it adds geocoords for each family languoid
it does so in a cheap yet principled way

Thoughts?
—
Reply to this email directly, view it on GitHub
https://github.com/glottolog/glottolog-cldf/issues/14#issuecomment-1277140656,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2QHSD2BLCW6BJLOKIBIEDWC6ZTTANCNFSM6AAAAAARD64SS4
.
You are receiving this because you were mentioned.Message ID:
@.***>

The "take the nearest point on land" bit seems non-trivial, though. The "minimal distance" approach gets around this in a somewhat crude way - but it comes with a citation to justify the approach :)

Arguably, though, having a coordinate for a language group on water, isn't completely non-sensical. It comes with the "the ancestors passed through here" connotation.
Anyway, I think it wouldn't be a problem to add more ways to infer homelands lateron. (We'd like to get coordinates for proto-languages right now for Steve's bdproto - and the "minimal distance" ones would do the trick :) )

I'll try to whip up a "max diversity" algorithm accepting locations on water and plot the results.

Found a fairly simple (and amazingly fast) solution to the "nearest point on land" problem. Will send around results soon.

Great, I have something similar implemented somewhere but you, as usual,
were faster! H
Pada tanggal Jum, 14 Okt 2022 pukul 09.53 Robert Forkel <
@.***> menulis:

Found a fairly simple (and amazingly fast) solution to the "nearest point
on land" problem. Will send around results soon.
—
Reply to this email directly, view it on GitHub
https://github.com/glottolog/glottolog-cldf/issues/14#issuecomment-1278627159,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2QHSDFBCNJG4MNYENTUB3WDEGQZANCNFSM6AAAAAARD64SS4
.
You are receiving this because you were mentioned.Message ID:
@.***>

My implementation is basically this:
    from shapely.geometry import MultiPoint
    from shapely.ops import nearest_points

    cent = MultiPoint([(p[1] + 360 if p[1] < 0 else p[1], p[0]) for p in coords]).convex_hull.centroid
    homeland = nearest_points(land, cent)[0]
    return (homeland.y, homeland.x - 360 if homeland.x > 180 else homeland.x)

where land is the MultiPolygon from https://geojson-maps.ash.ms/

@d97hah to get rid of the weirdest effects of languages like Hunsrik, one could limit the eligible languages for homeland computation to certain combinations of macroareas. Do you think that makes sense? E.g. exclude the Americas whenever there's other macroareas involved?

Looking over the families, a simple blacklist of macroareas for Atlantic-Congo, Austronesian and Indo-European would probably be enough, though.

@d97hah do you have a citation for this method of computing homelands? It isn't exactly the "diversity" method presented in Wichmann 2015.

Wikipedia sees to cite Campbell 2013 for this.

It goes back to Sapir and there's also a botanical analogue by someone
called Vavrilov (?, from memory). Neither has the 'in water' twist. It's
enough to cite Campbell 2013 I think, which should contain refs to the
history.
Pada tanggal Jum, 14 Okt 2022 pukul 15.55 Robert Forkel <
@.***> menulis:

Wikipedia sees to cite Campbell 2013
https://glottolog.org/resource/reference/id/547852 for this.
—
Reply to this email directly, view it on GitHub
https://github.com/glottolog/glottolog-cldf/issues/14#issuecomment-1279044424,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2QHSEJFEGO5PILRT4WGA3WDFQ5ZANCNFSM6AAAAAARD64SS4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Ok, I'll update #15 to include these homelands.


make initdb: Migration f392e419ea1b fails

I wasn't able to initialize the database on a clean dev environment.
$ make initdb

[snip]
{"event": "Running upgrade d8301a1bf519 -> f392e419ea1b, mandate sha256 hashes for all files", "logger": "alembic.runtime.migration", "level": "INFO"}
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
    context)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
    cursor.execute(statement, parameters)
psycopg2.IntegrityError: column "sha256_digest" contains null values

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/app/warehouse/__main__.py", line 19, in <module>
    sys.exit(warehouse())
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/app/warehouse/cli/db/upgrade.py", line 26, in upgrade
    alembic.command.upgrade(config.alembic_config(), revision, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/alembic/command.py", line 174, in upgrade
    script.run_env()
  File "/usr/local/lib/python3.5/site-packages/alembic/script/base.py", line 397, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/local/lib/python3.5/site-packages/alembic/util/pyfiles.py", line 81, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/local/lib/python3.5/site-packages/alembic/util/compat.py", line 68, in load_module_py
    module_id, path).load_module(module_id)
  File "<frozen importlib._bootstrap_external>", line 385, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 806, in load_module
  File "<frozen importlib._bootstrap_external>", line 665, in load_module
  File "<frozen importlib._bootstrap>", line 268, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/app/warehouse/migrations/env.py", line 49, in <module>
    run_migrations_online()
  File "/app/warehouse/migrations/env.py", line 42, in run_migrations_online
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "/usr/local/lib/python3.5/site-packages/alembic/runtime/environment.py", line 797, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/usr/local/lib/python3.5/site-packages/alembic/runtime/migration.py", line 312, in run_migrations
    step.migration_fn(**kw)
  File "/app/warehouse/migrations/versions/f392e419ea1b_mandate_sha256_hashes_for_all_files.py", line 28, in upgrade
    op.alter_column("release_files", "sha256_digest", nullable=False)
  File "<string>", line 8, in alter_column
  File "<string>", line 3, in alter_column
  File "/usr/local/lib/python3.5/site-packages/alembic/operations/ops.py", line 1414, in alter_column
    return operations.invoke(alt)
  File "/usr/local/lib/python3.5/site-packages/alembic/operations/base.py", line 318, in invoke
    return fn(self, operation)
  File "/usr/local/lib/python3.5/site-packages/alembic/operations/toimpl.py", line 53, in alter_column
    **operation.kw
  File "/usr/local/lib/python3.5/site-packages/alembic/ddl/impl.py", line 145, in alter_column
    existing_nullable=existing_nullable,
  File "/usr/local/lib/python3.5/site-packages/alembic/ddl/impl.py", line 118, in _exec
    return conn.execute(construct, *multiparams, **params)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 914, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection
    return connection._execute_ddl(self, multiparams, params)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 968, in _execute_ddl
    compiled
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
    context)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
    exc_info
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 189, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=exc_value)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 182, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
    context)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) column "sha256_digest" contains null values
 [SQL: 'ALTER TABLE release_files ALTER COLUMN sha256_digest SET NOT NULL']
make: *** [initdb] Error 1```

Yea sorry, it's temporarily broken because I'm in the middle of shuffling around the real database. I just woke up, give me a bit to be fully a alert and I'll re-import a new copy of the database from Test PyPI that should have this data already.

No worries!

If you want to work around it in the mean time, you can do everything that initdb does manually, except only upgrade to the revision before head, then just run a SQL query to throw some junk data in the sha256_digest column, and then finish upgrading to head.

Yeah, I've just deleted the last migration. That works for now.


Expose thresholds config options

This commit allows users to edit the thresholds in the chaos-recommender config to be able to identify outliers based on their use case.
Fixes #509

/lgtm


Provide option to fallback on original Terraform output when parser error occurs

Sometimes Terraform Landscape encounters an error while parsing the output from Terraform. It would be useful if Landscape provided an option to fallback on the original Terraform output when this happens.

I'm preparing a PR to add a --fallback flag that, when set, ensures Landscape falls back to the original Terraform output when an error occurs.

Thanks for the suggestion and pull request, @sdduursma!
Thinking about this, I have a hard time seeing a situation where you don't want this as the default behavior. Can we potentially invert the logic you've implemented to instead have a --debug flag that allows you to fall back to displaying the stack trace, but by default will gracefully return the original ouput?
Would love to hear your thoughts.

Hi @sds, yes I think that makes sense. We can probably find some time to do that in the next couple of weeks.

+1


[WIP] Dummy PR just to examine changes

Looks like the test is failing at zero steps as well, so I am looking into this.

Closing since this was not to be merged anyway


Update hammerhead (v14.10.1)

Update is necessary to apply changes related to the 'multi-browser-feature' feature.

Could we please wait for https://github.com/DevExpress/testcafe-hammerhead/pull/2160 ?

@testcafe-build-bot retest

@testcafe-build-bot retest

@testcafe-build-bot retest

@testcafe-build-bot retest

@testcafe-build-bot retest

@testcafe-build-bot retest

Waiting for https://github.com/DevExpress/testcafe/pull/4420

@testcafe-build-bot retest


(Native) English proofreading

Hi!
As non-native English speakers/writers, we are looking for people willing to proofread the documentation: https://github.com/TailorDev/monod/tree/master/doc.
Thank you for your help ❤

I'd be willing to look at this. Is it only the writing.md and templates.md files that need to be proofread?

Hi @gar! These two files are the most read I guess, but the README and CONTRIBUTING file could be checked too. As for the "code", we store all our text entries in this config.js file. It is up to you to proofread it too. Thank you so much!

I believe I have a good command over English and can help you guys to proofread the documentation.

Thanks @willdurand, I'll begin looking at that and I'll open a PR. @codeahead14 maybe I could ping you to review the PR when I have it done?

@gar Actually I had started working on the Writing.md file and made some suitable changes. I subsequently opened a PR but I doubt it was accepted. You could check the same at the link referenced by @willdurand .

@gar Actually I had started working on the Writing.md file and made some suitable changes. I subsequently opened a PR but I doubt it was accepted. You could check the same at the link referenced by @willdurand .

@codeahead14 thank you for having reviewed the writing file.  Yet, @gar raised his hand before, and therefore it would be nice to let him do the proofreading first, and then (as he suggested) you review his PR. Deal?

@willdurand I can take a look at the CODE_OF_CONDUCT file, if that's alright.

I can read over everything in a few days. I see a few places that could be improved.

Hi @cynicaldevil, we did not write the CoC file ourselves, so it should be ok. Better report at: https://github.com/ContributorCovenant/contributor_covenant.

@willdurand let me know your thoughts on the above pull-request. I made some changes to app/config.js as well, but all the tests are passing.

@gar thanks; just reviewed the PR

Done, thanks everyone!


SQS access policy document missing GetQueueAttributes permission fix

Summary
For AWS ControlTower integration using SSO, "sqs:GetQueueAttributes" is required. While as of 0.15 this permission is added to the cross account role policy, it has not yet been added to the SQS Access Policy, causing CloudTrail integration to encounter 403 errors.
How did you test this change?
Replicated issue in personal account and ControlTower using SSO, updated Access Policy for SQS queue manually to add sqs:GetQueueAttributes permission for the cross account role and CloudTrail integration began populating without errors.
Issue
N/A

Make it so! 💯


googleapis module issue with mocking single method

I'm using googleapis module which has so many apis and methods. I tried all the possible below thing, nothing working. Why the common approach for mocking is differentiating by modules.
My production code:
let google = require('googleapis');
const iam = google.iam('v1');

I want to mock iam method of googleapis module
Try 1:
jest.unmock('googleapis');
let google = require('googleapis');
google.iam = jest.fn().mockImplementation(function() {
  return { mock: 'mock' };
} );

Try 2:
jest.mock('googleapis', () => {
return jest.fn(() => { iam: 'mock' });
})

This allows mocking, but its working only if my production code is
const iam = google().iam;

Why these 2 ways not working.?

👋 @popkutty
I'll try to explain how this can be done using jest.
The following are some of the possible solutions:

Automatic mock

const google = require('googleapis');
jest.mock('googleapis'); // 'google' is now a mock api

beforeEach(() => {
  // Clear all instances and calls to constructor and all methods:
  google.mockClear();
});

// write assertions that check whether the 'aim' method is called, how many times, and with which arguments

simple mock using module factory parameter (Try 2)

jest.mock('googleapis', () => {
  return function() {
    return { iam: () => 'mock' }; // notice that 'iam' is a function that returns the string `mock`
  };
});

@ranyitz
Option 1:
I don't want to know if the method is called or not, I want to mock that method to return my desired value.
Option 2:
Will not work for me. because my production code is
require('googleapis').iam() Not require('googleapis')().iam Hope you can see the different.

@popkutty I see.
So just do the following and you're settled :wink:
jest.mock('googleapis', () => {
    return { iam: () => 'mock' };
});

Thank you @ranyitz! That should be sufficient

@ranyitz Thank you 🙏 I spent whole day and had 2 coffee.

@popkutty
You are welcome 🎉


Doom Retro/Woof issues

Game
Doom
Engine
Doom Retro/Woof
Linux Distribution
Steam Deck
Luxtorpeda Version
68.1.0
Bug description
Doom Retro: Does not launch due to an SDL Mixer error.
Woof: Launches, but has an error message about FluidSynth.
Steps To Reproduce
Doom Retro:

Update to latest Doom Retro
Launch
Window appears saying "The wrong version of SDL2_mixer.so was found. Doom Retro requires v2.6.2". Won't launch as a result and force quits instead

Woof:

Fresh install Woof
Launch
Window appears saying "Error loading FluidSynth soundfont:". Engine still launches, but Fluidsynth is not able to be selected, only Midi Emulation. Subsequent launches do not show the error, but same behaviour in-engine. Clearing out the config folder + install folder and re-downloading makes the error come up again, though.

Expected Behavior
Both launch without errors
Additional Context
No response
Relevant log output
No response

Thanks for the issue, I'll look into this as soon as I can.

Doom Retro & Woof should now be fixed. let me know how it goes for you


dokku nginx:build-config deploys broken template

Hey, this might save you and your users some headaches
Running nginx -t in the build-config process would bring template errors up faster.
Right now I'm doing these two commands to test:
$ dokku nginx:build-config api
-----> Configuring SSL for api.server.com...
-----> Overriding default nginx.conf with detected nginx.conf.template
-----> Configuring api.server.com...
-----> Creating https nginx.conf
-----> Running nginx-pre-reload
       Reloading nginx
$ nginx -t
nginx: [emerg] directive "add_header" is not terminated by ";" in /home/dokku/api/nginx.conf:18
nginx: configuration file /etc/nginx/nginx.conf test failed

We wouldn't be able to make the nginx file until that step, though running nginx -t is probably a good idea.


Sound Meter

Hi, I am having some issues manipulating the three dot sound icon animation. I am getting an error that says SE is not defined. How should I fix this?

I will fix that issue in the future.


[question] - how to specify a specific container (distro) in tye.yaml file

Hello everyone,
one of the needs we have in our project is to use some containers with a specific distro (alpine, for example).
When we use asp.net core and .net containers, the containers used by tye are the default ones (debian).
is there any way to use some other distro? alpine linux, ubunty jammy linux, etc.?
Thank you very much!

3 months already and not even a single answer. I guess this project is dead...?

See #1459

Thanks, I'll close this ticket.


angular.js:14800 ReferenceError: owlAPi is not defined

When I use this guide example, the browser is not have owlAPi defined. What is this error
Line:   console.dir(owlAPi); is raise error

My mistake not load owl.carousel.min.js before


ci: cache improvements

This PR improves the CI caching, roughly halving the time required when caches are hit (no dependency or toolchain changes).
Overview of changes:

Use rust-cache action. This forms the bulk of the time improvement as Rust dependencies are now cached.
Improve npm caching for conformance tests. This trims 2-3 minutes of build time.
Improve job and step naming.
Add a manual trigger for the workflow.
Remove core dump for macos, no longer required.

Further details can be found in the commits.
I've been running into sporadic conformance test failures on windows (link to run):
  1) .pubsub.subscribe
       multiple connected nodes
         should send/receive 100 messages:
     FetchError: request to http://<IP_ADDRESS>:50533/api/v0/pubsub/pub?arg=pubsub-tests-C-aIrZS_7OSQMNSVOMszV failed, reason: read ECONNRESET
      at ClientRequest.<anonymous> (node_modules\node-fetch\lib\index.js:1455:11)
      at Socket.socketErrorListener (_http_client.js:475:9)
      at emitErrorNT (internal/streams/destroy.js:106:8)
      at emitErrorCloseNT (internal/streams/destroy.js:74:3)
      at processTicksAndRejections (internal/process/task_queues.js:82:21)

ECONNRESET

these sound normal, but could be explained with something changing underneath in windows or just our tests lagging behind.

Excellent, looking great.
bors r+

bors r+


New variable in module 3

Hi Jake, no rush but when you get a chance can you reflatten module 3 in prod? there's a newly answered question d_784119588. It's in the raw table. I tried rerunning the flattening code but it didn't seem to apply the change

Hi Kelsey. I tried to run my flattening code and it broke for module3. These mixed type variables are breaking our flattening pipeline:
"D_633553324.entity.D_602102163","NULLABLE","STRING"
"D_633553324.entity.D_164707243","NULLABLE","STRING"
"D_633553324.entity.D_818310825","NULLABLE","STRING"
"D_633553324.entity.D_175385712","NULLABLE","STRING"
"D_633553324.entity.D_772143730","NULLABLE","STRING"
"D_633553324.entity.D_843593800","NULLABLE","STRING"
"D_633553324.entity.D_294629316","NULLABLE","STRING"
"D_633553324.entity.D_771426895","NULLABLE","STRING"
"D_470862706.entity.D_690918725","REPEATED","STRING"
"D_470862706.entity.D_178609656","REPEATED","STRING"
"D_470862706.entity.D_261957180","REPEATED","STRING"
"D_470862706.entity.D_688123102","REPEATED","STRING"
"D_470862706.entity.D_356133766","REPEATED","STRING"
"D_470862706.entity.D_715827646","REPEATED","STRING"
"D_470862706.entity.D_643512687","REPEATED","STRING"
"D_470862706.entity.D_912659087","REPEATED","STRING"

Are the variables you are interested nested under 633553324 or 470862706?

Interesting. No, that variable should only be the unnested d_784119588 as it is in the flattened tables

Ok. I added that one in manually. Can you let me know if it looks ok on your end?

Yes!! That worked, thank you

Great!

So sorry! @jacobmpeters  Could you do the same for the MW table?

MW has been updated!


Adding support for measurement of Ultraviolet(UV) light.

Signed-off-by: Murali Tejeshwar Janaswami<EMAIL_ADDRESS>

@MaureenHelm @avisconti please have a look at the issue #35354.

Despite the fact that the change is quite straightforward it would be nice, as said in #35354, to have in this PR also the driver that is using it.


Screenshotting fullscreen game results in "out-of-date" screenshot

Godot version:
3.1 beta8
OS/device including version:
Windows 10 x64, NVidia GTX 1060
Issue description:
When you make a screenshot (PrintScreen) of fullscreen game, the screenshot isn't... up-to-date. It results in capturing whatever the game was showing on startup. To get "up-to-date" screenshot, you need to unfocus the game and focus it again, so the captured content gets "updated". Running in borderless mode doesn't help.
Steps to reproduce:

Run a fullscreen game
Do something that changes stuff on the screen
Press PrintScreen
Look at your screenshot (happy being a time traveller? :v)

Minimal reproduction project:
TestProject.zip
Just run it and make a screenshot after few seconds. The Godot icon should be at the far left on the screenshot.

Same issue in Godot 3.0.6.
But also an old one https://github.com/godotengine/godot/issues/953

Tested 3.1.1 stable and v3.2.dev.custom_build.a52b21af2
Running on Window 10 x64, GeForce GTX 860M/PCIe/SSE2
Works fine for me.

I can still reproduce it in f410e7a8a.

I noticed this is a common problem when using PrintScreen with fullscreen games on Windows in general. I'm not sure if it can be fixed.

I tried with fullscreen option off, but always on top and borderless enabled and a full resolution, which makes it effectively a "non-exclusive fullscreen" and it still doesn't help. There ARE fullscreen games that can get screenshotted just fine, so there's a room for improvement there in Godot.

I noticed this issue is a duplicate of https://github.com/godotengine/godot/issues/953, so I'll close this one.


Option "errors" must be boolean

Fixing problem of "custom keyword definition is invalid: data.errors should be boolean".
Ex. issue in webpack:
https://github.com/webpack/webpack/issues/8768

Coverage remained the same at 100.0% when pulling 0a631d33dc1d7993d8ce7a9e1761b50407f2ee9c on DarkLink363:patch-1 into 5d134394acb6429840438cc262c36c76d91e356c on epoberezkin:master.

It's fixed in ajv 6.9.1 - please update


exclude PF from available resources if SR-IOV is enabled

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

6 of 9 (66.67%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 73.896%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/accelerator/accelDeviceProvider.go
3
6
50.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
2058

Relevant Lines:
2785

💛  - Coveralls


Minting dapp problem, white page after build

Hey everyone, so the minting dapp works fine on localhost3000, after npm run build and adding it to git and vercel my dapp is all white… anyone have this issue before or know a solution to this?

It is pointing to the wrong page. Is it in the root folder of your website?

Same problem, except i see some content with the mint button, but they do not work. Css is all messed up too.

i have saaaame problemmm just white page in cpanel

try pointing it to the build folder not the public

try pointing it to the build folder not the public

Can you plz explain more it is making me crazy I am stuck

Same problem....

Were you able to solve this ? Same issue here


xtools: set toolchain vendor to zephyr

For xtools, we set the vendor to zephyr directly and do not get it from
a variable.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #8918   +/-   ##
=======================================
  Coverage   52.28%   52.28%
=======================================
  Files         196      196
  Lines       24768    24768
  Branches     5151     5151
=======================================
  Hits        12951    12951
  Misses       9738     9738
  Partials     2079     2079

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 d505ca7...228ae0f. Read the comment docs.

Can you clarify why we should do this in the commit message.  Otherwise looks good.

Can you clarify why we should do this in the commit message. Otherwise looks good.

it is clarified, for xtools we do not use the variable and it is not defined. for those architectures.


feat: retry future up to three times with a one second delay

Add retry logic to the getTwitchBadges method in lib/models/adapters/chat_state.dart to handle the firebase_functions/unavailable error.

Use a loop to attempt the Firebase function call up to three times.
Add a one second delay between each retry attempt.
Catch the firebase_functions/unavailable error and retry if the attempt count is less than three.
Return an empty list if all attempts fail.

For more details, open the Copilot Workspace session.

@SputNikPlop can you verify this works? Just check that badges still load.

@SputNikPlop can you verify this works? Just check that badges still load.

They all still load


Don't use .aar to pack logs

The .aar format is propietary and can't be unpacked on other platforms. We should use (g)zip or something else that is well-supported on all platforms (especially Linux) instead.

Just for the record, this might be non trivial. At least it was the last time I checked.
See https://forums.developer.apple.com/forums/thread/750070


Directory traversal on template_origin variable

We have enabled debug toolbar on our test environment of Django 1.10.17. After auditing the site we have found that template_origin variable is not correctly sanitized. I understand this is a Debug addon that probably isn't aimed for production environments, but I wanted only to report this just as an informative post.
Maybe this is the intended behavior of this variable. If this is correct, sorry for this post!
Proof of concept:
http://FQDN/__debug__/template_source/?template=pages/home.html&template_origin=/etc/passwd

Affected file:
panels/templates/views.py
Affected portion of code:
`def template_source(request):
"""
Return the source of a template, syntax-highlighted by Pygments if
it's available.
"""
template_origin_name = request.GET.get('template_origin', None)
if template_origin_name is None:
return HttpResponseBadRequest('"template_origin" key is required')
template_name = request.GET.get('template', template_origin_name)
final_loaders = []
loaders = Engine.get_default().template_loaders

for loader in loaders:
    if loader is not None:
        # When the loader has loaders associated with it,
        # append those loaders to the list. This occurs with
        # django.template.loaders.cached.Loader
        if hasattr(loader, 'loaders'):
            final_loaders += loader.loaders
        else:
            final_loaders.append(loader)

for loader in final_loaders:
    if Origin:  # django>=1.9
        origin = Origin(template_origin_name)
        try:
            source = loader.get_contents(origin)
            break
        except TemplateDoesNotExist:
            pass
    else:  # django<1.9
        try:
            source, _ = loader.load_template_source(template_name)
            break
        except TemplateDoesNotExist:
            pass
else:
    source = "Template Does Not Exist: %s" % (template_origin_name,)

try:
    from pygments import highlight
    from pygments.lexers import HtmlDjangoLexer
    from pygments.formatters import HtmlFormatter

    source = highlight(source, HtmlDjangoLexer(), HtmlFormatter())
    source = mark_safe(source)
    source.pygmentized = True
except ImportError:
    pass

`
Regards,

Thanks for the report! What do you think about this? https://github.com/jazzband/django-debug-toolbar/pull/1008


Be more explicit about needing Yarn 1 (Classic)

This PR adjusts the wording on the Install and upgrade page to make it clearer that The Lounge specifically requires Yarn 1 (Classic), instead of a more modern version of Yarn.
Following a recent discussion in IRC:
15:48 <Maxpm> When installing The Lounge from an npm release,
              do you recommend using Yarn 1 instead of a modern Yarn?
15:50 <Maxpm> The instructions at https://thelounge.chat/docs/install-and-upgrade#from-npm-releases
              use `yarn global add`. That command doesn't exist in more modern versions because
              "managing system-wide packages is outside of the scope of yarn."
15:51 <Maxpm> There's `yarn dlx`, to download and run a command from a temporary environment,
              but I don't know if that's appropriate thing to put in a systemd service file or whatever.

15:58 <+bookworm> Maxpm: TL doesn't support yarn 2
15:58 <+bookworm> yarn 2 is a completely different approach and less of an upgrade

16:01 <Maxpm> Cool, thanks for clarifying. Would you accept a PR to note that in the install docs,
              for the benefit of those of us less versed in the JS ecosystem?
16:02 <Maxpm> The current docs do link to Yarn 1, but I guess I thought it was an accidentally outdated link.

16:03 <+bookworm> sure

Thanks!


fix: show "in microblock" label on activity

Description
Added "In microblock" label as fix for issue #2944
"In microblock" label shows when a transaction's microblock_canonical and is_unanchored settings are both set to true.
Checklist:

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

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

@mihirKachroo can you add a screenshot that capture the UI changes?

UI Change:

@fbwoolf ready to merge?

Closing this in favor of the cloned version: https://github.com/hirosystems/stacks-wallet-web/pull/3422