fix(library/init/logic): if_true and if_false need the instance as ar…

…gument

Would an implicit argument be even more general, at least in the context of rewriting? I encountered similar problems after importing prop_decidable in Lean 2 and switched to implicit versions of (d)if_pos/neg. But perhaps that sort of decidable instances mixing is more of a fringe case.

I don't see a use case where the instance wouldn't unify and hence would need to be synthesized either way. I changed it anyway though as you suggest, in case there are some edge cases I am failing to consider.

I was never quite sure why it happened even with prop_decidable's low priority, but I do get unification errors like these with the original if_pos in Lean 2:
  -fail to unify equation source
    @ite
      ...
      (@decidable_and (@RangeFrom.start ℕ r ≤ @length T s)
         (@length T s ≤ @length T s)
         (decidable_le (@RangeFrom.start ℕ r) (@length T s))
         (decidable_le (@length T s) (@length T s)))
      ?M_4
      ?M_5
      ?M_6
  with subterm
    @ite
      ...
      (@decidable_and (@RangeFrom.start ℕ r ≤ @length T s)
         (@length T s ≤ @length T s)
         (classical.prop_decidable (@RangeFrom.start ℕ r ≤ @length T s))
         (classical.prop_decidable (@length T s ≤ @length T s)))
      ...


Only explicitly match DNS domains for Split DNS

Need to only explicitly match Resource name when doing Split DNS on Apple.

This can't be done on Apple


Product Summary Description

Product Summary
Description
Our team (group nanofed) will be making a website for cooking recipes, where users can go and learn how to cook with a plethora of recipes of different food groups.
In scope

Different categories on hero section for different types of recipes (gluten free, vegan, vegetarian, etc...)
...This could also go for different types of food (Mexican, Chinese, etc...)

Out of scope
Things that will be introduced later on, probably not on first release:

Each month the recipes will switch (previous ones are available for download when live)
A community page where users share food they made based off the recipes

Hey @karmacappuccino
No big deal, but you put your text inside the HTML comments "<!--" and "-->" which is why your content wasn't showing up.

Oh! That makes a lot of sense, should be fixed now!

Hey @neilmispelaar
That makes a lot of sense! Should be fixed now!

Hi @imd1005-web-development-winter-2023/nanofed
Wait, what happened to the box store idea? That was such a great idea 🤪
Anyways, this sounds really great too!
Excited to see where you take your final designs.
Let me know if you need anything along the way.


Changelog min - max Shopware Version

Please describe the feature you would like to see implemented.
It would be nice if the Changelog shows the version Shopware Version compatibility to see if you must update to get this feature

The public api does not offer that info 😢


New package: Synfig.SynfigStudio version 1.5.3

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Resolve #190307

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.
Manual validation

x64 architecture

x86 architecture

Microsoft Reviewers: Open in CodeFlow

Verify:


Missing package references when building project containing three_dart

I'm seeing wierd missing class/function errors in my pipeline and in the action logs in this repo.
Worth investigating what the cause of this might be.
I have created an issue at the dart pub repo to see if they can help pinpoint the cause of this problem. (
https://github.com/dart-lang/pub/issues/3601)
This is also the likely cause of all failing actions on this repo: https://github.com/wasabia/three_dart/actions

@wasabia Still getting them on the latest commit sadly. Any other ideas?

currently i have no idea!
build web in release mode is ok on my macbook.
but can not work on Github  Actions.

Fixed by changing the last files to lowercase in this PR https://github.com/wasabia/three_dart/pull/102
Probably linux in CI being more strict with case sensitivity


Automatic page load progress bar

When i am open page at a time start progress bar like firfox start its owen progress bar on title
how can i set this

There may be a bit of language barrier here, so I'm not sure I understand the question.
You want to set a title on the progress bar?  There's no way to do this easily with this library.  If this is not your question, feel free to re-open

hi i am to implement progress bar on page load event. when page loading is
start at a time progress bar also start. how can i implement this

Best Regards,
Gajendrasinh Zala
On Tue, Feb 17, 2015 at 10:28 PM, Wes Cruver<EMAIL_ADDRESS>wrote:

Closed #171
https://github.com/chieffancypants/angular-loading-bar/issues/171.
—
Reply to this email directly or view it on GitHub
https://github.com/chieffancypants/angular-loading-bar/issues/171#event-237066911
.


Duplicates in validation data

Hour 00:00:00 is duplicated in validation data on some metering points, for example metering point ID:<PHONE_NUMBER>00000105

@kristianschneider as i was going through in the validation data i came across this bug, that probably needs to be fixed before we can do any validations on BRS-023.

Issue with time series generation resolved in: https://teams.microsoft.com/l/file/9B76E782-829E-476D-B225-EBA330FF92A2?tenantId=f7619355-6c67-4100-9a78-1847f30742e2&fileType=xlsm&objectUrl=https%3A%2F%2Fenerginet.sharepoint.com%2Fsites%2FJoules%2FDelte dokumenter%2FGeneral%2FTest data%2FExcel sheet (BRS-023%2BBRS-027)v15 (With results for<EMAIL_ADDRESS>


Default mode change: do not keep blank line before triple quotes.

Coverage remained the same at 100.0% when pulling 606dc5fae1462a126a1a2019927cead08f61cbdf on kapsh:unblank into 4b3191996ffe7c8cf594e8512e5694485a05af68 on myint:master.

Coverage remained the same at 100.0% when pulling 606dc5fae1462a126a1a2019927cead08f61cbdf on kapsh:unblank into 4b3191996ffe7c8cf594e8512e5694485a05af68 on myint:master.

Coverage remained the same at 100.0% when pulling 606dc5fae1462a126a1a2019927cead08f61cbdf on kapsh:unblank into 4b3191996ffe7c8cf594e8512e5694485a05af68 on myint:master.

Coverage remained the same at 100.0% when pulling 43ef941df765e05b11a9340980ccb784f53d1dcb on kapsh:unblank into 4b3191996ffe7c8cf594e8512e5694485a05af68 on myint:master.

Thanks!


revert meta apply in internal/db/database.{Invoke,NewStream}

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report

Merging #164 (10a558c) into master (8a8ec21) will decrease coverage by 30.52%.
The diff coverage is 34.17%.

@@             Coverage Diff             @@
##           master     #164       +/-   ##
===========================================
- Coverage   51.65%   21.12%   -30.53%
===========================================
  Files         139      131        -8
  Lines       15756    14696     -1060
===========================================
- Hits         8138     3104     -5034
- Misses       7159    11356     +4197
+ Partials      459      236      -223

Flag
Coverage Δ

1.14.x
?

1.15.x
?

1.16.x
?

1.17.x
21.12% <34.17%> (-30.53%)
:arrow_down:

connection
14.87% <23.41%> (+0.07%)
:arrow_up:

discovery
?

e2e
21.12% <34.17%> (-25.57%)
:arrow_down:

integration
21.12% <34.17%> (-25.57%)
:arrow_down:

macOS-latest
?

ratelimiter
16.57% <29.11%> (+0.14%)
:arrow_up:

scripting
16.96% <23.41%> (+0.06%)
:arrow_up:

table
?

ubuntu-latest
21.12% <34.17%> (-30.63%)
:arrow_down:

unit
?

windows-latest
?

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

Impacted Files
Coverage Δ

internal/errors/errors.go
22.85% <ø> (-34.84%)
:arrow_down:

internal/errors/grpc.go
0.00% <0.00%> (ø)

internal/errors/issues.go
0.00% <0.00%> (ø)

internal/errors/transport.go
12.84% <0.00%> (-27.25%)
:arrow_down:

internal/table/client.go
0.00% <0.00%> (-90.60%)
:arrow_down:

internal/table/retry.go
0.00% <0.00%> (-81.63%)
:arrow_down:

table/options.go
0.00% <ø> (-50.00%)
:arrow_down:

internal/conn/conn.go
59.16% <26.92%> (-11.86%)
:arrow_down:

internal/db/database.go
49.47% <47.61%> (-0.53%)
:arrow_down:

errors.go
8.06% <50.00%> (-3.23%)
:arrow_down:

... and 84 more

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 8a8ec21...10a558c. Read the comment docs.


Win Arm

Hi,
Just wondering if anyone knows why this is happening?
I'm watching a tut rn and it says to download FusionHelper_win_armx64.zip, but that isnt there, the only one that is there is FusionHelper_win_x64.zip?

there is one called "FusionHelper_mac_arm64.zip", but that is obviously for mac, so just stick to "FusionHelper_win_x64.zip" (if ur on windows)


Can't download facebook videos

youtube-dl --verbose "https://www.facebook.com/laurent.jockschies/videos/1740767422629341/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.facebook.com/laurent.jockschies/videos/1740767422629341/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.04.07
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-47-generic-x86_64-with-LinuxMint-19.1-tessa
[debug] exe versions: ffmpeg 3.4.4, ffprobe 3.4.4
[debug] Proxy map: {}
[facebook]<PHONE_NUMBER>629341: Downloading webpage
[facebook]<PHONE_NUMBER>629341: Downloading webpage
[facebook]<PHONE_NUMBER>629341: Downloading webpage
ERROR: Cannot parse data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 471, in _real_extract
video_id, fatal_if_no_video=True)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 380, in _extract_from_url
raise ExtractorError('Cannot parse data')
ExtractorError: Cannot parse data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

same here, but with python 3.7.2

Duplicate of #20711.


Could not add specific libraries using typescript compileroption

Typescript compiler option does not honor "lib".
With below config
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
	target: monaco.languages.typescript.ScriptTarget.ES5,
       noLib : true,
       lib : ['ES5'],
    allowNonTsExtensions: true
});

Expected : All ES5 classes and its functions are available.
Actual : None

In order to keep the bundled size low we don't ship all version of lib.xyz.d.ts but only some. To get a specific library into the worker use the addExtraLib-function.

Is there a way to see which libraries are available using the lib property? I haven't been able to get any of them to work, nor have I found a source of the strings except for pulling it directly out of monaco-typescript


Cleanup: standardize capitalization, fix some typos, clarify some comments.

Also remove duplicative logging (each debug statement was being logged twice!)

Thank you!


⚠ SkipTheCommericals has degraded performance

In 57333a8, SkipTheCommericals ($STC) experienced degraded performance:

HTTP code: 200
Response time: 2187 ms

Resolved: SkipTheCommericals performance has improved in 98a8f35.


Foldout menue not clickable in small dispaly view in blockscout

Expected Behavior
When blockscout is in responsive / mobile / small display view it should be possible to switch between celo info / transactions and other information
Current Behavior
The pull down menu is clickable but will always reload the page instead of folding out as seen here: https://explorer.celo.org/address/0x2fd49e97262d505fd76bb6e0e06ec10e1fd54589/celo

Looks like this has something to do with generating the assets, I just removed the static files locally and regenerated, and it started to work here...

fixed with the current release of blockscout thanks @mrsmkl


septentrio_gnss_driver: 1.3.0-1 in 'humble/distribution.yaml' [bloom]

Increasing version of package(s) in repository septentrio_gnss_driver to 1.3.0-1:

upstream repository: https://github.com/septentrio-gnss/septentrio_gnss_driver
release repository: https://github.com/septentrio-users/septentrio_gnss_driver_ros2-release
distro file: humble/distribution.yaml
bloom version: 0.11.2
previous version for package: 1.2.3-1

septentrio_gnss_driver
* New Features

  Recovery from connection interruption

  Add option to bypass configuration of Rx

  Add tests

  OSNMA

  Latency compensation for ROS timestamps

  Output of SBf block VelCovCartesian

  Support for UDP and TCP via IP server

  New VSM handling allows for unknown variances (INS firmware >= 1.4.1)

  Add heading angle to GPSFix msg (by diverting dip field, cf. readme)
* Improvements

  Rework IO core and message handling
  * Unified stream processing
  * Internal data queue
  * Prevent message loss in file reading

  Add some explanatory warnings for parameter mismatches

  Add units to message definitions
* Preliminary Features

  Output of localization and tf in ECEF frame, testing and feedback welcome
* Commits

  Merge pull request #83 from thomasemter/dev/next2
  Update readme

  Add expected release dates

  Add known issues to readme

  Update version

  Update readme

  Merge pull request #82 from thomasemter/dev/next2
  Fix spelling

  Categorize stream params

  Add keep alive check for TCP

  Fix spelling

  Add TCP communication via static IP server

  Add units to msgs

  Fix spelling

  Merge pull request #76 from thomasemter/dev/next2
  upcoming release

  Add heading to GPSFix msg

  Move constant

  Change log level of firmware check

  Add improved VSM handling

  Change INS in GNSS node detection to auto

  Fix invald v_x var case

  Refine readme on UDP

  Improve server duplicate check

  Add more info un UDP configuration

  Fix publish check

  Add more publishing checks for configured Rx

  Add const for max udp packet size

  Update readme and changelog

  Add device check to node

  Fix param name separators

  Add checks for IP server duplicates

  Add latency compensation to att msgs

  Add device check logic

  Add UDP params and setup logic

  Fix multi msg per packet

  Fix localization stamp and tf publishing

  Change VSM to be averaged and published with 2 Hz

  Change VSM to be averaged and published with 2 Hz

  Always publish raw IMU data as indicated

  Change to empty fields

  Refine diagnostics naming scheme and add trigger to ensure emission of ReceiverSetup

  Change diagnostics naming scheme

  Add missing new params to gnss.yaml

  Expand readme on AIM+

  Reformulate readme about ROS and ROS2

  Add custom message to report AIM+ status

  Catch invalid UTM conversion

  Robustify command reset

  Add RFStatus diagnostics

  Add VelCovCartesian output

  Refine Rx type check

  Add option for latency compensation

  Fix param type misinterpretation

  Add OSNMA msg and diagnostics

  Update changelog

  Refine README and fix compiled message logic

  Update changelog

  Add warning for configuring INS as GNSS

  Add warn log for misconfiguration

  Fix pose publishing rate

  Fix navsatfix publishing

  Make vars const

  Merge rework of internal IO handling

  Change connection thread

  Fix attitude cov flipped twice

  Add cov alignment from true north to grid north

  Rename meridian convergence and fix sense

  Remove obsolete define

  Add tests

  Rename example launch files so they are found by auto-completion

  Merge branch 'dev/ros2' into dev/next2

  Fix lat/long in rad

  Fix readme concerning ROS 2 distros

  Reorder localization msg filling

  Update readme

  Fix NED to ECEF rotation matrix

  Add localization ECEF publishing

  Add ecef localization msg

  Add local to ecef transforms

  Contributors: Thomas Emter, Tibor Dome

Humble is held for sync https://discourse.ros.org/t/preparing-for-humble-sync-2023-06-29/32110

No response to feedback in 2 weeks, so closing.  Feel free to respond to the feedback and reopen, thanks.


Still audible frequency

For me, page outputs a high pitched whine (VERY Audible).

Don't put your volume at maximum. I use this setting and it works well:


distro does not expose minor version on CentOS 7.3

Hello world,
we are using distro in our builds for a while now instead of hand-rolled distribution version detection. Thanks for helping us out!
A build for CentOS 7.3 was incomplete lately and it turns out that distro does not seem to correctly identify the minor version:
horatio:~$ sudo docker run -it centos:7
[root@2590b53eef75 /]# yum install --quiet -e 0 -y python
[...]
[root@2590b53eef75 /]# curl --silent https://bootstrap.pypa.io/get-pip.py | python /dev/stdin --quiet
[root@2590b53eef75 /]# pip install distro
Collecting distro
  Downloading https://files.pythonhosted.org/packages/c1/e4/933159b5f7f9f5b7ae463e76f58da84a30d0943ab3c162c366a9ad95f01e/distro-1.2.0-py2.py3-none-any.whl
Installing collected packages: distro
Successfully installed distro-1.2.0
[root@2590b53eef75 /]# python
Python 2.7.5 (default, Aug  4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro
>>> distro.id(), distro.version(), distro.version_parts()
(u'centos', u'7', (u'7', '', ''))
>>> distro.version(best=True)
u'7.3.1611'
>>> exit()
[root@2590b53eef75 /]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

I just noticed that best=False is actually the default and should fix our build. However, after distro.version() returns the minor version just fine on CentOS 6.9 I wonder if others will run into this.
Basically I would have expected that the amount of information in distro.version() to be stable across releases of a given distribution.
Feel free to close this immediately, I am just wondering if best=True would be a better default :-)
Greetings, Torsten

The reason why distro doesn't default to the best version is because it favors consistency over precision. Centos 7 versions only provide "7" as their version number in /etc/os-release but provide the exact version in another file distro deems lower priority.
To answer your question, the problem isn't with distro, but rather with the different distributions being "clever".
Having said that, there's an effort to provide a distro inconsistencies framework, which I hope we'll introduce soon. There, we can take care of weird quirks.

Thanks for your reply and consideration, much appreciated!


Lotty repo refresh

@sowmya9507 @GeorgiaHCA
have added two folder:

get-started - @sowmya9507 please could you add to this folder all the files you think are essentail to get set up for contributing to the platform development.
platform-code - @sowmya9507 in the "home-page" is where I suggest you put your work for the landing page.

@GeorgiaHCA what do you think about changing "Landing Page" to "Home page" - seems more intuitive?

@lottycoupat thank you, I will add all the files and also the code that I have worked on till now.


Shape checking rule issue

---------------------------------------------------------------------------
LayerError                                Traceback (most recent call last)
<ipython-input-75-a4586cbd092a> in <module>
      1 # sample prediction
----> 2 tmp_pred = model(x)
      3 print(type(tmp_pred))
      4 print(f"tmp_pred has shape: {tmp_pred.shape}")

/opt/conda/lib/python3.7/site-packages/trax/layers/base.py in __call__(self, x, weights, state, rng)
    165       self.state = state  # Needed if the model wasn't fully initialized.
    166     state = self.state
--> 167     outputs, new_state = self.pure_fn(x, weights, state, rng)
    168     self.state = new_state
    169     self.weights = weights

/opt/conda/lib/python3.7/site-packages/trax/layers/base.py in pure_fn(self, x, weights, state, rng, use_cache)
    448       name, trace = self._name, _short_traceback(skip=3)
    449       raise LayerError(name, 'pure_fn',
--> 450                        self._caller, signature(x), trace) from None
    451
    452   def output_signature(self, input_signature):
`
LayerError: Exception passing through layer Serial (in pure_fn):
  layer created in file [...]/<ipython-input-68-50afc500007a>, line 16
  layer input shapes: ShapeDtype{shape:(10, 27), dtype:int64}

  File [...]/trax/layers/combinators.py, line 88, in forward
    outputs, s = layer.pure_fn(inputs, w, s, rng, use_cache=True)

LayerError: Exception passing through layer Embedding_369_15 (in pure_fn):
  layer created in file [...]/<ipython-input-68-50afc500007a>, line 13
  layer input shapes: ShapeDtype{shape:(10, 27), dtype:int64}

  File [...]/trax/layers/core.py, line 150, in forward
    return jnp.take(self.weights, x, axis=0)

  File [...]/jax/numpy/lax_numpy.py, line 3298, in take
    slice_sizes=tuple(slice_sizes))

  File [...]/jax/lax/lax.py, line 835, in gather
    slice_sizes=canonicalize_shape(slice_sizes))

  File [...]/site-packages/jax/core.py, line 273, in bind
    return self.impl(*args, **kwargs)

  File [...]/jax/interpreters/xla.py, line 228, in apply_primitive
    compiled_fun = xla_primitive_callable(prim, *unsafe_map(arg_spec, args), **params)

  File [...]/jax/interpreters/xla.py, line 262, in xla_primitive_callable
    *avals, **params)

  File [...]/jax/interpreters/xla.py, line 320, in primitive_computation
    raise RuntimeError(msg) from e

RuntimeError: Invalid argument: Slice size at index 0 in gather op is out of range, must be within [0, 1), got 1.:
This is a bug in JAX's shape-checking rules; please report it!

Thanks! The traceback on its own is not particularly helpful for diagnosing the problem. Can you provide a minimal code snippet that reproduces this error?

I'm somewhat confident that the shape checking error is already fixed at jax head. #6822 should fix the remaining issue where we get a low-level shape check error when we should get a numpy-level error.


Improvement request: cadl vs install clarity

Background: I have multiple versions of visual studio installed including 2019 and 2022 as well as preview versions.
When I ran cadl vs install I saw the prompt to install to 2019, however I actually wanted to target 2022. It wasn't clear that the installer was going to attempt to install both i sequence.
Ask: It would be helpful to have a single prompt for which versions to target, or at least a warning that the installer will try to install for all versions of visual studio and to simply skip the versions that aren't desired.

+1, just ran into the same issue: cadl vs install installs an extension for VS 2019 without prompting which version I'd like which is 2022:

Oh, wow. Indeed! No. 2 worked for me: - I cancelled the installation for 2019 (I keep it just in case something goes wrong; by now I probably just should uninstall it altogether) and then it started an installation for 2022.
I'd wish there was an option like:

cadl vs install -v 2022
cadl vs install --version 2022


Clarification about the vset{i}vl{i} instructions (Section 6.1)

In Section 6.1, it says"
"Use of the instruction with a new SEW/LMUL ratio that would result in a change of VLMAX is reserved..."
The ratio will get changed over time, as different vector sets are used for different computations.
The question is what else is required in order to make the change? In other words between changing this ratios what needs to be done (set?cleared?...) and where is this specified?

That statement applies only to the variant that uses rs1=x0 and rd=x0.  It's legal to change the SEW/LMUL ratio when rd != x0 or rs1 != x0.

Thank you @aswaterman!
I really feel Section 6.1 is somewhat confusing. At least to clarify this specific issue if it could be said (addition in bold):
"Use of the  instruction when rs1=x0 and rd=x0 with a new SEW/LMUL ratio that would result in a change of VLMAX is reserved."
would be helpful.


recursive makefile or not?

Probably I should migrate https://github.com/pandoc-extras/luapandoc-filters to this one. Currently, the makefile I setup in pandoc-extras/luapandoc-filters is a plain makefile (that does not use recursion). But the makefile in pandoc/lua-filters by @jgm uses recursive makefile.
Recursive makefile will

allows more flexibility for each individual filters

while a "plain" makefile will

have less work for each pull request, that they may not know how to write a makefile
can still has a tailored rule for special filters if the default rule doesn't cut

I planned to setup a Travis CI to auto-check this, and requires pull requests should have a corresponding example for both a test and as an example. This example will not only be used as a test in CI, but also as a rendered example in an automated "gallery" for filters.

My reasoning was that, with recursive Makefiles, every
filter can be fitted with its own example and test suite.
There are other possible approaches, e.g. each filter could
come with a shell script that runs the tests.  But a
Makefile is very flexible.
Anyway, I'm open to other suggestions here; this was just
meant as one possible framework.

What do you think about using single makefile with optional custom rule overriding a general pattern rule?

+++ Kolen Cheung [Dec 12 17 04:57 ]:

What do you think about using single makefile with optional custom rule
overriding a general pattern rule?

Not sure what you mean, maybe you could give an example?

The makefile I wrote previously is in https://github.com/pandoc-extras/luapandoc-filters/blob/master/makefile.
The idea is to have one single makefile and convention for organizing stuffs (including test, example, etc.), but whenever a filter calls for deviation from this convention, an overriding rule can be created below it.

Seems like it has been settled.


Partial fix for function attribute highlighting

This change will now allow syntax highlighting to continue after
encountering a somewhat complex regular expression in a ValidateSet()
attribute, but with the side effect that value pairs in a Parameter()
block now only have the first pair correctly highlited.

Suppressed by the switch to https://github.com/PowerShell/EditorSyntax


Please update note on createproject page to inform user to enable 3rd party application access via OAuth if using new Organisation

There is a note on the page: https://azuredevopsdemogenerator.azurewebsites.net/environment/createproject     that gives instructions on what to do if you're using a new Azure DevOps organization.  This note requires information on an additional setting to be added.
The Azure DevOps new organizations have Third Party Application access via OAuth disabled by default, as a result the generator will not work until this setting is changed.
To fix this change the Azure DevOps organization settings as follows:
Organization Settings -> Security: Policies -> Enable - Third Party Application access via Oauth

@silversyst Thanks for your suggestion, this will be included.


export type on last line of normal script (without semicolon) alongside script setup will break

This is a low priority and can be closed
I'm using @antfu/eslint-config which remove semicolons
Vue Playground
VSCode (Night Owl)

VSCode (Default Theme)

Duplicate of #3468


Add already exist error

Checklist

[ ] Update changelog in CHANGELOG.md.

Tested in geckon
 kg get charts releases-kvm-unique                                                                                ⎈ (giantswarm-geckon/default)NAME                  VERSION                                          LAST DEPLOYED   STATUS
releases-kvm-unique   0.0.0-c43aadfdb012113167bca2aaa28f7bb789b77385                   already-exists


Update user-mgmnt.md

Description
Update user-mgmnt.md file. Replace "whitelist" and "blacklist" with "allowlist" and "blocklist" in Error Reporting docs to promote more inclusive language.
Motivation and Context
In an effort to promote more inclusive language. This change reflects our commitment to creating a welcoming and inclusive environment for all users.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Documentation fix (typos, incorrect content, missing content, etc.)

Checklist

[x] I have read the contributing document.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@jestrada-backtrace Thanks for your PR! The changes have been merged in PR https://github.com/saucelabs/sauce-docs/pull/1906.


[SDK-4009] Add support for custom parameters

[X] All new/changed/fixed functionality is covered by tests (or N/A)
[X] I have added documentation for all new/changed functionality (or N/A)

📋 Changes

This PR adds:

a utility function for taking an object and mixing in a custom map of parameters
support for custom parameters to loginWithRedirect (loginWithPopup to follow once #224 is merged)

Note: There is no type safety with this, it relies on the JS runtime to represent the Dart object as a JS object, then uses setProperty to add the custom parameter. There is no API to retrieve the value from the object again, but today this is not needed. Later, a function getCustomParameter(object, key) could be trivially added if this requirement appears.
🎯 Testing

Unit tests added, but also tested manually in the example app using screen_hint.

@Widcket I've updated the PR to include support for loginWithPopup now that #224 is merged.


Update greek and italian translations

Update greek and italian translations to include the new frases introduced in en.json

Thanks! 👍🏻


$output -match 'fail' regex too generic

Hi,
I'm having problems with Foil and ChocolateyGet.
https://github.com/ethanbergstrom/Foil/blob/a93836e6f047c703ecf7668ae8d61da3f81a40de/src/Foil.ps1#L109
This seems too generic of a regex.
E.g. Installing 'office365business' via DSC and ChocolateyGet, I got:

             [[PackageManagement]office365business] Installing the following

packages:
Office365Business
By installing you accept licenses for the packages.
Office365Business v13901.20336 [Approved]
office365business package files install completed. Performing other installation steps.
No custom configuration specified. Generating one...
No Product ID specified, using default: O365BusinessRetail
No excluded apps specified, installing all
No Language ID specified, using default: MatchOS
No updates value specified, using default: TRUE
No updates value specified, using default: TRUE
C:\windows\TEMP\chocolatey\Office365Business
Add
Updates
Display
Logging
RemoveMSI
Downloading Office365DeploymentTool
from
'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_13901-20336.ex
e'
Download of officedeploymenttool_13901-20336.exe (3.35 MB) completed.
Hashes match.
Installing Office365DeploymentTool...
Office365DeploymentTool has been installed.
Installing Office365BusinessInstaller...
Office365BusinessInstaller has been installed.
Installing Office365Business...
Office365Business has been installed.
Cannot remove item C:\windows\TEMP\chocolatey\Office365Business: The process cannot access the file
'C:\windows\TEMP\chocolatey\Office365Business' because it is being used by another process.
Only an exit code of non-zero will fail the package by default. Set
-- **failonstderr** if you want error messages to also fail a script. See
choco -h for details.
office365business may be able to be automatically uninstalled.
The install of office365business was successful.
Software installed to 'C:\Program Files\Microsoft Office'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Similarly, installing "sysinernals" to a custom location with ChocolateyGet results in a warning that has the word "fail" because it tries to referesh the environment variables.

Hey @dbaileyut
Always happy to see a fellow DSC+ChocolateyGet user!
I think this goes back to https://github.com/PowerShell/Crescendo/issues/63, where Cresendo doesn't have great any error handling, so I used something (very) simple to fill the gap.
I'll try to do some research as to what actual 'failure' output from Chocolatey looks like and write some better regex for it.
In the meantime, if it's an absolute blocker and you have an immediate need, I might suggest downgrading ChocolateyGet to v2.1.1, which still uses exit code logic for determining failures.

Thanks!
Yeah, I gave a thumbs up to https://github.com/PowerShell/Crescendo/issues/63 before I submitted this issue because I figured that was the case :)

Would you be able to provide a command example for sysinternals that yielded the "fail" output? I actually happen to use sysinternals with a custom install directory argument in my tests, and am not seeing the same behavior.
I did find a very helpful example of "uniquely error-like" text in https://github.com/chocolatey-community/chocolatey-coreteampackages/issues/1608 reported to the Chocolatey core package maintainers repo, so I can use googlechrome v87.0.4280.141 to test for what valid error text looks like.

Here's the new regex, I think it should work pretty well:
https://github.com/ethanbergstrom/Foil/blob/v0.0.4/src/Foil.ps1#L109
Version 0.0.4 is out on PowerShell Gallery, and I think that should fix your issue. Can you try upgrading Foil to see if that fixes your issue? I wasn't able to reproduce with sysinternals, and Office 365 takes so long to install on my slower internet, I got impatient and gave up :)

Awesome! I'll try it out in just a bit and report back on the sysinternals warning too.

Huh, I'm not able to reproduce either the Office or Sysinternals issue now. I my best guess is I might have been I accidentally used the built-in PackageMangement resource instead of PSDscResources/PackageManagement 1.4.7
The warning I was getting came from
Set-EnvironmentVariable.ps1
Called by (semi stack trace here):
Install-ChocolateyPath.ps1
Sysinternals/chocolateyInstall.ps1
I think the updated regex will be much more reliable either way.
Thanks again! And, kudos on a great name for the module.


grape/swagger POST arrays with embedded params don't work correctly in the UI

code like this:
desc 'create new symptom'
    params do
      optional :id, type: Integer
      requires :reasonCode, type: String
      requires :lifeThreatening, type: Boolean
      requires :msp, type: Boolean
      optional :symptomNamesAttributes, type: Array, default: [] do
          requires :name, type: String
          requires :primary, type: Boolean, default: false
      end
  end
end

The area of interest is the SymtomNamesAttributes.
First problem: you can only enter one symtomNamesAttributes despite it being declared as an array.
Second (bigger problem):  even though symtomNamesAttributes is marked as "optional", the UI makes it required because the nested names/primary fields are required.
Are these known issues?  Is there a work around?

Bump, I've also been trying to figure out how to pass arrays through grape swagger..

Does SwaggerUI claim to support these at all?

+1

status?

204

+1


Auto start service

Hi!
I have jailbreaked devices. and I need to automatically start service.
Don't u know how can I modify this app, or make some tweak for cydia to do that on my device? :)
Or maybe I can modify deployed app to do that?

You can use voip background mode. Here is a quote from Apple documentation:

The app provides Voice-over-IP services. Apps with this key are automatically launched after system boot so that the app can reestablish VoIP services. Apps with this key are also allowed to play background audio.

Is this the only way to do that?

Yes, it is the only way.

How about significant location change?  That's also a valid background / auto-launch, right?

Background location updates mode doesn't auto-start an app.

If the app is running in the background and the phone is rebooted, you have
to manually re-open the app and start the service?  I thought in the past
this ran continuously.   Am I misunderstanding something?
On Thu, Mar 17, 2016 at 3:04 PM, Anton Tananaev<EMAIL_ADDRESS>wrote:

Background location updates mode doesn't auto-start an app.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/tananaev/traccar-client-ios/issues/35#issuecomment-198036025

Yes, you have to re-open the app. Only Traccar Client for Android has auto-start option.

So the only reason is Apple politics about privacy? Technically for personal use do I just have to enable "voip" background mode to the main plist to add?
And then launch
self.trackingController = [[TCTrackingController alloc] init];         [self.trackingController start];
From for example - (void)viewDidAppear
https://developer.apple.com/library/ios/documentation/Performance/Conceptual/EnergyGuide-iOS/Art/xcode_project_capabilities_backgroundmodes_2x.png

I guess you can do it for your own developer build, but it will never be approved for the App Store.

Okay thanks! Yes it's just for my personal use.

can I ask if the auto start of traccar is still an issue on iphones ?


Widen scope to anything that can deserialise to an arbitrary R object.

E.g. No reason you couldn't get the same with the qs package deserialisation (AFAICT)

I have no context for that assertion. And, relying on a third-party package that has compiled C code is not something I'm likely interested in. Please feel encouraged to toss that out as an alternative solution if it is indeed an alternative solution.


Pin tins dependency to ruby 1.9.3-compatible version

tins is a dependency of term-ansicolor, which is a dependency of pact.
A recent change in tins (https://github.com/flori/tins/commit/9ebb625d8a987bd54526006441ff97bc14c30e53) made ruby 2.0.0 required for that gem.
Because we pull in the latest version and term-ansicolor allows upgrades to any 1.X, our tests have started failing after tins published 1.7.

/cc @steventux


Update Cake.Issues.Recipe to 0.4.2

Update to Cake.Issues.Recipe 0.4.2 bringing support for GitHub Actions.

@pascalberger your changes have been merged, thanks for your contribution 👍

New features are shown here

Superseded by https://github.com/cake-contrib/Cake.Recipe/pull/690


Readme improvement for Ensemble_facial_recognition

https://github.com/akshitagupta15june/Face-X/tree/master/Recognition-Algorithms/Ensemble_facial_recognition

would like to work on this


Preserve bullet item indent on newline

Before:
https://github.com/facebook/lexical/assets/7893468/6f3a3463-dbef-4109-9ccf-ddf84f51ff9b
After:
https://github.com/facebook/lexical/assets/7893468/c1b852bf-5877-447e-b73a-9c63c6e8fb74
This is a fix for https://github.com/facebook/lexical/issues/3999 technically.
Applying this on 'ul' level, I verified it behaves correctly in Safari as well.

@GermanJablo is this one OK with you?

check this one: https://github.com/facebook/lexical/issues/3999

check this one: #3999

I have, I've mentioned it in the description. 'inside' was already applied on list level, so changing to 'outside' at list-level fixes both indent for newline and the cursor position starts to work correctly in Safari on both Mac and iOS

Sorry, I hadn't seen the mention of the issue.
What I'm saying there is that:

on the one hand, list-style-position should be in outside, or directly omitted since outside is the default value.
on the other hand, apply the format property that is responsible for the alignment of the text on the ListNode (ol and ul), and not on the ListItem (li), to avoid the problem described in #2334 and #3807.

Browsers are known to behave differently with these types of things - have we checked Firefox, Safari, and Edge, at least?

Browsers are known to behave differently with these types of things - have we checked Firefox, Safari, and Edge, at least?

I have tested in Chrome, Safari and Firefox on Mac and it works consistently fine.


Tick version down to 0.9.4

Needed for compatibility with cloudant==0.5.9

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


Fix buffer overflow in dotnet module.

The file causing the overflow is included in this commit. The OSS-Fuzz's report is:
==1==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000e0b at pc 0x000000531d5a bp 0x7ffe5c85a470 sp 0x7ffe5c859c38
| READ of size 32 at 0x619000000e0b thread T0
  | SCARINESS: 26 (multi-byte-read-heap-buffer-overflow)
  | #0 0x531d59 in __asan_memcpy asan_rtl:3
  | #1 0x576a40 in yr_object_set_string yara/libyara/object.c:1094:5
  | #2 0x5ad45c in dotnet_parse_us yara/libyara/modules/dotnet.c:238:7
  | #3 0x5b52d5 in dotnet_parse_com yara/libyara/modules/dotnet.c:1606:5
  | #4 0x5b6b75 in dotnet__load yara/libyara/modules/dotnet.c:1723:9
  | #5 0x57494f in yr_modules_load yara/libyara/modules.c:179:16
  | #6 0x5e1e59 in yr_execute_code yara/libyara/exec.c:1004:18
  | #7 0x57e8b6 in yr_scanner_scan_mem_blocks yara/libyara/scanner.c:439:3
  | #8 0x57b223 in yr_rules_scan_mem_blocks yara/libyara/rules.c:217:12
  | #9 0x57b482 in yr_rules_scan_mem yara/libyara/rules.c:267:10
  | #10 0x563e72 in LLVMFuzzerTestOneInput yara/tests/oss-fuzz/dotnet_fuzzer.cc:74:3
Credit to OSS-Fuzz.

I can't replicate this on the latest master nor on v3.9.0. The change makes sense to me but I'm a little concerned I can't replicate this.


cannot install from pypi

../venv/bin/pip install facebook-sdk
Downloading/unpacking facebook-sdk
Could not find any downloads that satisfy the requirement facebook-sdk
No distributions at all found for facebook-sdk
This works fine though:
../venv/bin/pip install https://github.com/pythonforfacebook/facebook-sdk/tarball/master

../venv/bin/pip run on Wed Jan 18 11:56:29 2012
Downloading/unpacking facebook-sdk (from -r ../requirements.txt (line 6))
Getting page http://pypi.python.org/simple/facebook-sdk
URLs to search for versions for facebook-sdk (from -r ../requirements.txt (line 6)):

http://pypi.python.org/simple/facebook-sdk/
Getting page http://github.com/pythonforfacebook/facebook-sdk
Analyzing links from page http://pypi.python.org/simple/facebook-sdk/
Skipping link http://github.com/pythonforfacebook/facebook-sdk (from http://pypi.python.org/simple/facebook-sdk/); not a file
Analyzing links from page https://github.com/pythonforfacebook/facebook-sdk
Skipping link https://github.com/opensearch.xml (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .xml
Skipping link https://github.com/fluidicon.png (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .png
Skipping link https://a248.e.akamai.net/assets.github.com/stylesheets/bundles/github-d1bfa6946c377ecb72a5521e39143e8237807a51.css (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .css
Skipping link https://github.com/pythonforfacebook/facebook-sdk/tree/a61418460138aba9b02c361e47526c1d19661379 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commits/master.atom (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .atom
Skipping link https://github.com (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/plans (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/explore (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/features (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/blog (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/login?return_to=%2Fpythonforfacebook%2Ffacebook-sdk (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/facebook/python-sdk (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/watchers (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/network (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/pulls (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/issues (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/graphs (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk#readme (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://pythonforfacebook.com (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/zipball/master (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk.git (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .git
Skipping link git://github.com/pythonforfacebook/facebook-sdk.git (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .git
Skipping link https://github.com/pythonforfacebook/facebook-sdk/dismiss-tree-finder-help (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link javascript:; (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/tree/master (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commits/master (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/branches (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/tags (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/downloads (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commit/a61418460138aba9b02c361e47526c1d19661379 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/issues/15 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/martey (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commits/master/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/tree/a61418460138aba9b02c361e47526c1d19661379/examples (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commit/75ed8d2086c056e98bb3c85543ef2cff0e2a6200 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/wcdolphin (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/blob/a61418460138aba9b02c361e47526c1d19661379/.gitignore (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commit/cabe1e0e4ea004fbc7cc72d6372c46b899409dd0 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/blob/a61418460138aba9b02c361e47526c1d19661379/facebook.py (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .py
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commit/346e6de0ed8435204eff2171c3db30809efa83bc (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/issues/14 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/ash211 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/blob/a61418460138aba9b02c361e47526c1d19661379/readme.md (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .md
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commit/dbaef7c155f611bda6dcb92a9561455331c57fdc (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/pythonforfacebook/facebook-sdk/blob/a61418460138aba9b02c361e47526c1d19661379/setup.py (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .py
Skipping link https://github.com/pythonforfacebook/facebook-sdk/commit/b5ee678115391885a00cfd1ee114c6b5b22f7a55 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/aidanlister (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://developers.facebook.com/docs/api (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://github.com/facebook/connect-js (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://bugs.developers.facebook.net/enter_bug.cgi?product=SDKs (from https://github.com/pythonforfacebook/facebook-sdk); unknown archive format: .cgi
Skipping link https://github.com/about (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/contact (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/training (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://enterprise.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://status.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://get.gaug.es/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://speakerdeck.com (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://gist.github.com (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://mac.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://mobile.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://jobs.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://shop.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://octodex.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://help.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://developer.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://github.github.com/github-flavored-markdown/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://pages.github.com/ (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/site/terms (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/site/privacy (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link https://github.com/security (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://www.rackspace.com (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://www.rackspace.com%20 (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Skipping link http://www.rackspacecloud.com (from https://github.com/pythonforfacebook/facebook-sdk); not a file
Could not find any downloads that satisfy the requirement facebook-sdk (from -r ../requirements.txt (line 6))

This looks like a duplicate of issue #8, so I am closing it. I will see if we can get it resolved.


Support for Termination trait?

Allow support for using the generated error type with doctest output requiring a fn report() -> i32 addition
Motivation at https://github.com/rust-lang/rfcs/blob/master/text/1937-ques-in-main.md
https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and-panics/question-mark-in-main-and-tests.html

This is already supported completely independent of thiserror due to Result's Termination impls in the standard library. Any error type with just a Debug impl can be used with ? in doc tests, whether or not you also derive Error.


File is throwing insecure warning in the browser

This file:
http://dc28c2r6oodom.cloudfront.net/vid/cube-loop.mp4
Should be https.

@impressivewebs Thanks for the catch! Just pushed a fix.


Addition of DESI EDR to SPARCL

Assigning @adambolton to review. Note that this notebook in its current state won't run until the switchover from STAGE to PROD. To test the notebook in the meantime, make the following changes:

!pip install sparclclient==1.2.0b4
client = SparclClient(url='https://sparclstage.datalab.noirlab.edu)
qc.set_profile('db01')
In the Data Lab query, change FROM sparcl.main to FROM sparcl.main_new

Great notebook! It runs successfully for me in its entirety (after the indicated tweaks). For the record, I ran it on my Mac laptop at home using a VPN connection. Everything looks good except for one issue and one maybe-issue.
Issue: I don't think reorder() is ready for prime time in the case of results from retrieve_by_specid(), since specid is not unique within DESI-EDR (or between datasets for that matter), and res.reorder() has unexpected/ill-defined behavior when it encounters multiple instances of a single specid. I happened to trip this behavior in my own testing because my random set of 20 records became a set of 21 records via retrieve_by_specid(), but then dropped back down to 20 after reorder(). (The particular specid with multiple records was<PHONE_NUMBER>2991638 if you want to reproduce.)
I would recommend that we either (a) remove the demonstration of reorder() for the case of results from retrieve_by_specid(), (b) add a warning that using reorder() with results from retrieve_by_specid() may cause unanticipated behavior (this is what is done in the user guide right now), or (c) demonstrate some sort of work-around (which is probably not a good idea for right now given our timeline.) We also probably want a ticket for improving this in the future.
Maybe-issue: the call to client.missing() took much longer to complete than I remember, but maybe that is as expected since the database is bigger now:
CPU times: user 18.7 ms, sys: 4.29 ms, total: 23 ms
Wall time: 43.6 s
One other thing: I don't know if I have permission to merge this PR b/c I don't know if I have write permission on this notebooks-latest repo.

Thanks @adambolton , I went ahead and removed the reorder example using specids. I assigned @rnikutta to approve this PR

Are you running on STAGE? Because if so, it doesn't have DESI-EDR anymore
as of the STAGE/PROD swap this morning.
On Mon, Jun 12, 2023 at 10:06 AM Robert Nikutta @.***>
wrote:

Hi @jacquesalice https://github.com/jacquesalice Trying to review this
NB (running locally on my laptop, being on VPN, and following the pip
install and profile setting instructions you posted). However, at this line
I'm getting an error:
print(sorted(client.get_all_fields(dataset_list=['DESI-EDR'])))
KeyError: 'DESI-EDR'
I'm sure I'm doing something wrong...
—
Reply to this email directly, view it on GitHub
https://github.com/astro-datalab/notebooks-latest/pull/174#issuecomment-1587729164,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEKENRCG3TXZI6ENVN5JMI3XK5ECNANCNFSM6AAAAAAY7V7Y3M
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Adam S. Bolton
Director, Community Science and Data Center
NSF’s National Optical-Infrared Astronomy Research Laboratory
NEW EMAIL: @.***
[bolton-at-noao-dot-edu has been deactivated]

Thanks @adambolton! And @rnikutta , I believe it would be ok to merge the NB today as long as we don't announce it anywhere until tomorrow.

@jacquesalice NB runs good on my local laptop, if I execute the pip install cell. On gp12, without the pip install, it fails when instantiating the client:
client = SparclClient()

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-5-90a5240d1631> in <module>
----> 1 client = SparclClient()
      2 client

/data0/sw/anaconda3/lib/python3.8/site-packages/sparcl/client.py in __init__(self, url, verbose, connect_timeout, read_timeout)
    165                    f'{self.apiversion} from the SPARCL Server '
    166                    f'at {self.apiurl}.')
--> 167             raise Exception(msg)
    168         #self.session = requests.Session() #@@@
    169

Exception: The SPARCL Client you are running expects an older version of the API services. Please upgrade to the latest "sparclclient".  The Client you are using expected version 8.0 but got 9.0 from the SPARCL Server at https://astrosparcl.datalab.noirlab.edu/sparc.

Does the client need to be updated on gp12 maybe?

@rnikutta oh thank you for reminding me yes the client does need to be updated on gp12. Should I ask Mike to do that or maybe Igor? Cause it looks like Mike is on vacation for the rest of the month.....

I'll ask Mike right away. He said he's working half-time the next two weeks.

Just update to latest, or a specific version?

@rnikutta Update to latest (pip install sparclclient). It's changed from 1.1.0 to 1.2.0

Hi @stephjuneau I believe the delay is because the sparclclient hasn't been updated on gp12 yet (@mjfitzpatrick is the only one that can do this, apparently) so the notebook doesn't actually work unless the users uncomment the pip install cell and specify a release version. If we want to have this notebook available for tomorrow morning I can temporarily edit the pip install cell so that it does install the most recent sparclclient version and the notebook is merge-able.

Ah @adambolton this PR isn't ready for merge yet!! See my previous comment to Stephanie

Oops sorry!
On Mon, Jun 12, 2023 at 10:08 PM Alice Jacques @.***>
wrote:

Ah @adambolton https://github.com/adambolton this PR isn't ready for
merge yet!! See my previous comment to Stephanie
—
Reply to this email directly, view it on GitHub
https://github.com/astro-datalab/notebooks-latest/pull/174#issuecomment-1588554689,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEKENRHGX3YNSPWRBKR7TYTXK7YV5ANCNFSM6AAAAAAY7V7Y3M
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Adam S. Bolton
Director, Community Science and Data Center
NSF’s National Optical-Infrared Astronomy Research Laboratory
NEW EMAIL: @.***
[bolton-at-noao-dot-edu has been deactivated]

That's ok! I just made a PR to revert this PR if you can Approve it and merge it https://github.com/astro-datalab/notebooks-latest/pull/177

May I propose that reviewers don't merge? (unless they are Alice or myself hehe ;-)))

Hi @jacquesalice I think Mike might have actually updated the kernels on gp12 but it wasn't widely announced. Or at least Igor went to try to make the updated but he suspected Mike had beat him to it. I just tested in my notebook account and it now works as expected: (sparclclient:1.2.0, api:9.0, https://astrosparcl.datalab.noirlab.edu/sparc, verbose=False, connect_timeout=1.1, read_timeout=5400.0). So your new notebook should be ready to test and merge.


Norm computation issue

Hello,
Problem
I tried a configuration that make the computation go way off, (E+03). However, when using --norm to check deviation, the max error combined is 0. This is because 0 is greater than -999.

Still, the computation is wrong and this should get caught.
My wrapper script was missing this deviation because it is focusing solely on the combined result.
Setup
To reproduce:

compile with aocc 4.1.0; OpenMPI 4.1.5; OpenBLAS 0.3.23; FFTW 3.3.10

export CFLAGS="-O3 -march=native -mtune=native"
export CXXFLAGS="$CFLAGS"
export FCFLAGS="$CFLAGS"

could reproduce on latest AMD & Intel CPUs
run ectrans-benchmark-dp --norms -n 5 -l 137 -t 319 --vordiv --scders

Some Leads ?
After few investigation, I spotted 2 potential causes:

The max error is initialized with zmaxerr(:) = -999.0. It would be wiser to initialize the max error with 0.
https://github.com/ecmwf-ifs/ectrans/blob/8d13aa3f36b78a91fc45c05b5d8b29f063655318/src/programs/ectrans-benchmark.F90#L756
When enabling verbosity (and printing the divider), we could observe half of the arrays znormvor(:) znormdiv(:) znormt(:) znormsp(:) comming with NaN values.
https://github.com/ecmwf-ifs/ectrans/blob/8d13aa3f36b78a91fc45c05b5d8b29f063655318/src/programs/ectrans-benchmark.F90#L757-L784

Use this to print the divider:
  verbosity=1
  zmaxerr(:) = 0
  do ifld = 1, nflevg
    zerr(3) = abs(znormvor1(ifld)/znormvor(ifld) - 1.0d0)
    zmaxerr(3) = max(zmaxerr(3), zerr(3))
    if (verbosity >= 1) then
      write(nout,'("norm zspvor( ",i4,")     = ",f20.15,f20.15,"        error = ",e10.3)') ifld, znormvor1(ifld), znormvor(ifld), zerr(3)
    endif
  enddo
  do ifld = 1, nflevg
    zerr(2) = abs(znormdiv1(ifld)/znormdiv(ifld) - 1.0d0)
    zmaxerr(2) = max(zmaxerr(2),zerr(2))
    if (verbosity >= 1) then
      write(nout,'("norm zspdiv( ",i4,",:)   = ",f20.15,f20.15,"        error = ",e10.3)') ifld, znormdiv1(ifld), znormdiv(ifld), zerr(2)
    endif
  enddo
  do ifld = 1, nflevg
    zerr(4) = abs(znormt1(ifld)/znormt(ifld) - 1.0d0)
    zmaxerr(4) = max(zmaxerr(4), zerr(4))
    if (verbosity >= 1) then
      write(nout,'("norm zspsc3a(",i4,",:,1) = ",f20.15,f20.15,"        error = ",e10.3)') ifld, znormt1(ifld),znormt(ifld), zerr(4)
    endif
  enddo
  do ifld = 1, 1
    zerr(1) = abs(znormsp1(ifld)/znormsp(ifld) - 1.0d0)
    zmaxerr(1) = max(zmaxerr(1), zerr(1))
    if (verbosity >= 1) then
      write(nout,'("norm zspsc2( ",i4,",:)   = ",f20.15,f20.15,"        error = ",e10.3)') ifld, znormsp1(ifld),znormsp(ifld), zerr(1)
    endif
  enddo

This could come from these arrays being initialized with a function declared as C binding, iterating over non-contiguous segments.
But that would require more investigation to confirm :)
Best.

Thank you for this report. We will look into this.

Hi Antoine,
I don't understand how it's possible to get a max error of -999. The initial value of -999 is compared against the output of abs which is positive semidefinite. Even when e.g. znormvor(ifld) is NaN, and therefore zerr(3) is NaN,  I found that max then also produces a NaN. NaN should then appear as the max error combined. This was for the Intel compiler.
Could this be compiler-specific? Does the operation max(-999, NaN) return -999 for AOCC?

Hello,
I observed this behavior with AOCC 4.1 only. Despite the max operation behaving similarly with other compilers (see below), something must be wrong somewhere else too.
Regarding the result of this specific max operation, here is the result with some compilers I have in hand:
! print NaN too
print *, max(-999, NaN), NaN

With default flags (e.g., gcc input.F90)
aocc:4.1.0 :             0            0
gcc:13.2.0 :<PHONE_NUMBER><PHONE_NUMBER>
nvhpc:23.7 :             0            0
llvm:16.0.6 :  0 0
oneapi:2023.1.0 :         -999           0
oneapi-classic:2023.1.0 :            0           0

With aggressive flags (e.g., gcc -O3 -fastmath -march=native -mtune=native input.F90)
aocc:4.1.0 :             0            0
gcc:13.2.0 :            0           0
nvhpc:23.7 :          -999     15208769
llvm:16.0.6 :<PHONE_NUMBER> 858928177
oneapi:2023.1.0 :         -999           0
oneapi-classic:2023.1.0 :            0           0

Is this pseudo-code, or should I actually be able to compile this?:
print *, max(-999, NaN), NaN

The reason I ask is because I don't recognise NaN as a Fortran keyword. And indeed, ifort gives
main.f90(4): error #6404: This name does not have a type, and must have an explicit type.   [NAN]
    print *, max(-999, NaN), NaN
-----------------------^

Also I'm not sure what result you should expect when comparing -999 (an integer literal) with NaN (a floating-point literal).
Going back to the problem, I would need to be able to reproduce it exactly to figure out what's going wrong. Could you share the modifications you've made to produce these error norms? Perhaps I can reproduce the problem with ifort?
I tried running your benchmark command after building ecTrans with intel/2021.4.0 but it gives this
======= End of spectral transforms  =======

max error zspvor(1:nlev,:)    =  0.999E-14
max error zspdiv(1:nlev,:)    =  0.999E-14
max error zspsc3a(1:nlev,:,1) =  0.173E-13
max error zspsc2(1:1,:)       =  0.173E-13

max error combined =          =  0.173E-13

======= Start of time step stats =======

Again I can't see how it's possible for this calculation to give  -0.999E+03:
! MUST be >= 0.0
zerr(3) = abs(znormvor1(ifld)/znormvor(ifld) - 1.0d0)
! Also MUST be >= 0.0
zmaxerr(3) = max(zmaxerr(3), zerr(3))

I think the problem must be related to NaNs somehow but unless I can reproduce it with ifort I'm not much help :(

@antoine-morvan is there any update on this issue?

Hello,
I did not have time to work on this lately.
Best regards.


docs: fixes typo removeTokenFromRepsonse to removeTokenFromResponse

What?
Corrected a typo in the documentation example where removeTokenFromRepsponse was misspelled. It is now properly spelled as removeTokenFromResponse.
Why?
The typo could confuse developers copying the example code, leading to errors or invalid configurations.
How?
Updated the example code in the documentation to replace:
removeTokenFromRepsponse: true → removeTokenFromResponse: true
Fixes #10025

Thank you @urquico!


Fix #6609

#6609
set the distortion model of the l500 depth sensor to NONE & initialize coeffs

Hi @jangernert
Thank you for the pull-request, we will make sure to include it in the upcoming release

@jangernert , thanks again for the contribution!


Webpack build times can they improved in dev mode?

Can we have an option to disable the chunk optimize assets calls when in development? On my system (desktop/i3/4GB) typical build times exceed 30secs. Now if I go into the Compilation.js and skip the optimize-chunk-assets/after-optimize-chunk-assets calls then I get the bundle ready in a couple of secs.
With the implementations I tried so far I do not see side effects but would like to confirm it.

@sokra I thought I'd share here an one of the performance challenges I ran into with "optimize chunk assets" being triggered in development, which seems pertinent to this issue.
I was seeing 3-4s recompilation times in development mode, getting stuck at the optimize chunk assets step. I was confused why the optimization was even being triggered, as I had no plugins that enabled it (as @enigma1 had).
The issue was that I was using the -d CLI option, which was overriding my "cheap-eval-source-map" setting for devtool in my webpack config file to "source-map". In turn, the watch process was recreating the sourcemaps every time I made even the smallest change to a file. Recompilation speed drastically improved after removing the -d option.
Why does the "development shortcut" -d specify devtool "source-map" in the first place? It seems to lead to really slow build times in dev mode. Why not have -d equal "--debug --devtool cheap-eval-source-map --output-pathinfo"?

Why not have -d equal "--debug --devtool cheap-eval-source-map --output-pathinfo"?

Yes, I've changed that in the webpack-2 branch for the next major version, but it's a breaking change so we just can't change it in the 1.x version.

Great, thanks

I was drinking beer with some nice fellows some weeks ago and they told me that webpack works much better if it is used without gulp.  They couldn't specify what the issues were exactly but that it was simply problematic.  I don't need gulp at all as everything is performed with a loader.  I don't have a huge project and my build times were 8-10 seconds on an Ubuntu Thinkpad T430s and now I have a bit of a slower and light Macbook 12 and it is taking 20 seconds on first build in my Ubuntu VM.  So its become too slow and I think that I must be doing something wrong if other people are getting just several seconds.  My private project is based on this webpack config.  Is there anything glaringly wrong with this?  I'm not using angular in my private project.

I noticed significant build time boost of the "additional chunk assets" slowness by adding this in webpack-config:
var pkg = require('./package.json');
var excl = Object.keys(pkg.devDependencies).map(function(i){
	return new RegExp("node_modules/"+i);
});
module: {
   noParse: excl,
   ....

@JsonHunt I think that you might want to find a different way to do this because most of the Webpack and front end dependencies (to be compiled and provided to client) should be put into devDependencies.  Then if your application also requires something of a server process say like Socket.io then you can install those on the server by calling install to exclude devDependencies.  So in other words everything installed for Webpack is a devDependency (ie. Frontend framework, jquery, etc).

thanks @tkriplean! your hint do works

@IAMtheIAM
Is there any file I need to change to apply the setting "cheap-module-source-map"?
I'm just running "ng serve" and I can't find where to change to apply the configuration.

@trzenaro I think this is something youd want to modify in the anglar-cli code.
Take a look at this file, it has a devTools property -> https://github.com/angular/angular-cli/blob/5431abc8457b436e68799f481d0d40c4cdcb29e2/packages/angular-cli/models/webpack-build-development.ts

@guiomie
Thank you. That's what i needed. It solved

@trzenaro  I modified the file with 'cheap-eval-source-map' and I don't see an improvement. Did you do something after the modification to the file?

@guiomie I forgot to mention that It didn't work when I tried to modify the file in the globally angular-cli module.
Take a look at the same file on your project tree
../your-angular-cli-project/node_modules/angular-cli/models/webpack-build-development.js
One more tip:
I'm using "eval" instead of "cheap-eval-source-map" because I had some issues while debugging. I don't know why the generated file is pointing to the wrong line (most of the times is 3 or 4 lines above where it should be)

Thanks for the precisions. I tried with cheap-eval-source-map and eval in my local project node_module folder, and I'm still at around ~10s, maybe it's it my laptop that isn't strong enough.

Closing this issue since there is not really anything to fix here anymore...


Add `Unsafe flag for HTML rendering

🎵 The song for this PR is Gerudo Valley Theme Acapella, from the Legend of Zelda: Ocarina of Time soundtrack, performed by Smooth McGroove. 🎵
I'm having trouble rendering raw HTML from my Markdown using Cmark, even when omitting the Safe flag:
Cmark.of_string "**Hello World**" |> Cmark.to_html ~flags:[];;
> : string = "
Hello World
\n"

This makes it hard to render the content I'd like to render.
Looking at other cmark wrappers, it appears the flag 131072 can explicitly set "Unsafe" (source).
1 lsl 17;;
> : int = 131072

Haven't tested this since I haven't installed car or anything, but thought I'd try pushing it up before anything else.

Also have a branch, where I moved it over to Dune, because I'm still a little new to OCaml and that's the only build tool I'm super familiar with.


If I use the method Statsig.shutdown() on android my app crashes because of the runBlocking

unfortunately I wasn't able to catch any log from it, anyone have an Idea ?

Thanks for the report, we will start looking into this!

I am sorry, but this is for the android SDK

Created the issue in the android SDK repo
https://github.com/statsig-io/android-sdk/issues/2


Simplify/optimize characteristic and descriptor lookups

When a service, characteristic or descriptor cannot be found, NoSuchElementException is now thrown with a message stating the UUID that could not be found.
On Apple platform, services are now cached on service discovery (which matches behavior of the other platform targets).
Closes #14
Closes #38

Waiting on merge of #57 (so release drafter can be tested).

Waiting on merge of #57 (so release drafter can be tested).


Add fonts guide

What kind of changes does this PR include?

New or updated content

Description

Adds a guide on how to add fonts to an Astro site

One link and one comment, otherwise LGTM @delucis ! Thank you for this!


Automatic alignment of chat blocks, canvas tracks generated content blocks, no manual dragging required.

Can you diagram out what you mean by this? Ideally a screenshot of the canvas with a visual explanation


feature: Add wolf rbac plugin

Summary
wolf-rbac is an authentication and authorization (rbac) plugin.
The rbac feature is provided by wolf. For more information about wolf, please refer to wolf documentation.

@iGeeky many thx

@iGeeky please add this plugin to README.md and doc/README.md, in order to help to find it.

@moonming @membphis thx.
I created a new pr to add it.


Wait for data to copy before reading calibration data

Working with ESP32, I was finding that the calibration data was being read from registers before the data was fully copied there from NVM. This resulted in the first several registers being 0 and yielding incorrect values.

Please update version information.

Warning: the code in this pull request could lead to a lockup.
while (bme280_get_regs(BME280_STAT_ADDR, &stat_reg, 1, dev)
                          != BME280_OK || (stat_reg & 1) != 0)
                        dev->delay_ms(10);

I would like to propose:
for (int32_t try=100; try>0; try--) { // if we cannot get a good status after 100ms give up
     if (bme280_get_regs(BME280_STAT_ADDR, &stat_reg, 1, dev) != BME280_OK ||
         (stat_reg & 1) != 0)       dev->delay_ms(1);
     else try=0;                          }

@DG12 :
It would only lock up if the sensor wasn't present, in which case, bme280_soft_reset(dev) would return something other than BME280_OK, which means that this wouldn't run to begin with.

@ASerbinski

Attempting 100 times would not hurt.
2)How did you pick 10ms? Seems a long time. With spin, why not pick a short time?

I have an unrelated problem with the BME280 driver.
How do I present it? There doesn't seem to be an issues option.

Adding unnecessary complexity does hurt. It hurts compiled binary size (which can be extremely important on microcontrollers), it hurts maintainability. As a general rule, you don't add code unless there is a tangible benefit to it.
As far as the time goes, out of a hat. And actually, for something that most likely will be reading the sensor at 1 Hz, 10 ms is very fast. But you don't want it to be too fast or it will overwhelm the i2c bus. And do keep in mind that there can be other devices and other processes sharing the bus.

In fact, since this code is in the initialization function, i.e. not at every sensor reading, the possibly excessive delay may be less important.
However, if the watchdog timer is active, as it should be, this could become an issue.
Multiple (for example 1ms) bus activity will surely not overwhelm the bus.

It sounds to me like you are blurring the lines between this driver and whatever particulars there are with respect to the device that you are running it on.
If you are having trouble with a watchdog timer resetting your device, then you should look at its particulars when you are deciding how to implement this (or any other) driver into your code, making certain that you are signalling the watchdog as required. For instance, by handling the watchdog in another thread, or disabling the watchdog, or making provision for it in your user_delay_ms function.

Hi,
This is now handled in version 3.3.7. Thank you @ASerbinski


Verify is all async functions are mocked

all for node.js - not for browser.
since right now library is designed for node.js, that's sufficient. Browsers may require faking also functions like postMessage and requestAnimationFrame or MutationObserver object.


Update on Undo system + new tools

Undo System:
Now it can store erased states and less useless data.
New Tools:
Primitive polygons can now be drawn such as triangles, squares and circles.
The text tool now has a preview of the text.

LGTM

I'm currently working on a V2 of Draw, you can check out the repo at https://github.com/phedrakeson/draw2


Mark FirespitterCore and ATM at incompat with 1.0

Not sure how the ATM .netkan files will react but I'll whack them aswell I guess.

This change was done because I'm tired of people whining about firespittercore and upon installation of our version KSP spits out a warning saying it won't work so I'll just assume that it doesn't since users have reported it being non-worky.
Now a lot of mods available for 1.0 aren't shown in CKAN due to no firespitter.dll being available through us. I've asked in the firespitter thread for a version we can index.


Mock calls to AMQP in tests

Expected Behavior
Tests will execute without needing a connection to an AMQP broker. This will allow quicker validation for pull requests.
Actual Behavior
Tests require authentication and connection to Event Hubs.

For what it's worth, what I did was used vburenin/ifacemaker to generate interfaces for the vcabbage/amqp objects (i.e. Client, Session, Receiver and Sender); created thin interface implementations that delegated to the actual vcabbage/amqp library.  Then used counterfeiter to generate the mocks.
ifacemaker -f vendor/pack.ag/amqp/client.go -s Client -i amqpClient -p amqp -o _output-directory_

Generated Output:
// Connection ...
type Connection interface {
	// Close disconnects the connection.
	Close() error
	// NewSession opens a new AMQP session to the server.
	NewSession(opts ...amqp.SessionOption) (Session, error)
}

Example wrapper:
func Dial(addr string, opts ...amqp.ConnOption) (Connection, error) {
    amqpClient, err := amqp.Dial(addr, opts...)
    if err != nil {
        return nil, err
    }
    return &connection{client: amqpClient}, nil
}

type connection struct {
    client *amqp.Client
}

// Close disconnects the connection.
func (c *connection) Close() error {
   return c.client.Close()
}

// NewSession opens a new AMQP session to the server.
func (c *connection) NewSession(opts ...amqp.SessionOption) (Session, error) {
    amqpSession, err := c.client.NewSession(opts...)
    if err != nil {
        return nil, err
    }
    return &session{session: amqpSession}, nil
}

Generate the mock
counterfeiter -o _output_location _interface_generated_above_ Client

Then in the code that called the Dial function, I created an unexported var initialized to the amqp.Dial function. In the tests, I replaced the value of this var with the test Dial method above.
Hope that helps


Prepare Copilot Chat buffers in copilot-chat-ask-region

Currently, running copilot-chat-doc or similar functions before copilot-chat-display results in a "No buffer named Copilot-chat-prompt" error. This commit extracts the buffer preparation segment from copilot-chat-display into a separate function, which is then invoked within copilot-chat-ask-region.
In addition, this commit fixes a typo in copilot-chat-prompts

Thank you

Thank you for writing this package! I've been eagerly searching it on the Internet on a regular basis recently :).


Data Ingestion Stage

[x] Update config.yaml
[x] research or analysis
[x] update the entity
[x] update the configuration manager in src config
[x] update the components
[x] update the pipeline

Try run successfull for stage 01


Add support to generate a model as struct instead of class in csharp

We need to support the ability of generating structs for models in csharp.

Discussed Offline: We will add a @@modelAsStruct decorator to the C# emitter to enable the generation of a model as a struct instead of a class.
We will use this issue to track the C# generation in the generator. Here’s the issue #3619 to add the decorator in the emitter.


Dreamer CMS overreach loophole

Hello, I'm Li Jiakun, a security researcher
Affected version: 4.0.0
Any user can access the port without verifying the current user information

Background applications do not control permissions, or only control permissions on menus and buttons. As a result, malicious users can access or control data or pages owned by other roles by guessing the urls or sensitive parameter information of other management pages, achieving the purpose of enhancing permissions.

completed


Failed to attach volume

Describe the bug
We use MayaStore in a three-node cluster running MicroK8s. After a reboot, we
noticed that one of our pods, the MinIO tenant, was unable to attach a PVC.
However, many other PVCs provided by Mayastor are working as expected.
In the events of the MinIO pod, we observed warnings indicating failures in
volume attachment and mounting due to no online replicas being available and
timeouts waiting for the condition.
│ Events:                                                                                │
│   Type     Reason              Age                    From                     Message                                                                                │
│   ----     ------              ----                   ----                     -------                                                                                │
│   Warning  FailedAttachVolume  2m40s (x690 over 23h)  attachdetach-controller  AttachVolume.Attach failed for volume "pvc-aa014c14-f7b5-4b6f-8dfc-cfdc7a812661" : rpc error: code = Internal desc = Operation failed: PreconditionFailed("error in response: status code '412 Precondition Failed', content: 'RestJsonError { details: \"\", message: \"SvcError :: No │
│ OnlineReplicas: No online replicas are available for Volume 'aa014c14-f7b5-4b6f-8dfc-cfdc7a812661'\", kind: FailedPrecondition }'")                                                                                │
│   Warning  FailedMount         29s (x26 over 6h5m)    kubelet                  Unable to attach or mount volumes: unmounted volumes=[0], unattached volumes=[kube-api-access-7spmt 0 cfg-vol configuration]: timed out waiting for the condition

We also noted discrepancies in the kubectl-mayastor get pools output, where
two out of three pools showed a status of 'Unknown' with zero capacity (we
expected 'Online' and also 7TiB):
ID                     DISKS               MANAGED  NODE           STATUS   CAPACITY  ALLOCATED  AVAILABLE  COMMITTED
pool-on-spacekisste02  aio:///dev/nvme0n1  true     spacekisste02  Online   7TiB      1.5TiB     5.4TiB     623GiB
pool-on-spacekisste01  /dev/nvme0n1        true     spacekisste01  Unknown  0 B       0 B        0 B        <none>
pool-on-spacekisste03  /dev/nvme0n1        true     spacekisste03  Unknown  0 B       0 B        0 B        <none>

Further investigation into the logs of the mayastor-io-engine pods on the
affected nodes revealed errors related to failed pool imports due to an illegal
byte sequence and NVMe connection issues, such as invalid data parameters and
failed connection queues.
io-engine [2024-06-27T15:16:13.710438575+00:00  INFO io_engine::grpc::v1::pool:pool.rs:285] ImportPoolRequest { name: "pool-on-spacekisste01", uuid: None, disks: ["/dev/nvme0n1"], pooltype: Lvs }
io-engine [2024-06-27T15:16:13.718721274+00:00 ERROR io_engine::lvs::lvs_store:lvs_store.rs:306] error=EILSEQ: Illegal byte sequence, failed to import pool pool-on-spacekisste01
metrics-exporter-pool   2024-06-27T15:16:16.795647Z  INFO actix_web::middleware::logger: <IP_ADDRESS> "GET /metrics HTTP/1.1" 200 0 "-" "Prometheus/2.47.0" 0.000118
metrics-exporter-pool     at /build/cargo-vendor-dir/actix-web-4.3.1/src/middleware/logger.rs:421

Additionally, dmesg logs on these nodes displayed NVMe connection issues such as invalid data parameters and failed connection queues:
[23161.652647] nvme nvme3: Connect Invalid Data Parameter, subsysnqn "nqn.2019-05.io.openebs:595e6507-8be0-4a43-b2ce-1e141d894700"
[23161.654479] nvme nvme3: failed to connect queue: 0 ret=386

To Reproduce
Unfortunately, we have no idea on how to reproduce this issue as it appeared spontaneously after several system reboots which had previously completed without incident.
Expected behavior
We would have expected none of the issues described above.
** OS info:**

node OS: Ubuntu 20.04.6 LTS
k8s distro: MicroK8s v1.26.15 revision 6673
Kernel version: 5.4.0-187-generic
MayaStor image: docker.io/openebs/mayastor-io-engine:v2.4.0

Additional context
This is currently really blocking us, so we'd be glad for any advice or suggestions. Thanks!

It seems like the pool is not present on the disks where we expect perhaps.
I noticed you created pool with plain device uri, rather than /dev/path/by-id. Could it be possible that the order of your disks changed?

Thanks a lot for your answer. Unfortunately, that wasn't the issue. But we'll definitely use the /dev/disk/by-id next time.

Unfortunately, that wasn't the issue

Alright, then something else may be at play here.
Would you be able to upload a support bundle? Example:
kubectl mayastor -n mayastor dump system

Hi @tiagolobocastro, sure, I have attached the bundle to this comment. Thanks for taking a look!
mayastor-support-bundle.tar.gz

@hsteude would you be able to run a container on the node to run some metadata dump utility on the disk?

@tiagolobocastro : Yes, I can run containers on the nodes. Could you please provide the specific steps or command you would like me to use? Additionally, we will be resetting the cluster and reinstalling everything tomorrow afternoon, so I would need to complete this task by tomorrow morning (Berlin time).

Hey, hope it's still in time.
Simply run this and capture the out, thank you

docker run --rm --name mayastor-spdk -v /dev/hugepages:/dev/hugepages --privileged -it tiagolobocastro/mayastor-spdk-blobcli:v23.05 -b nvme -D

@tiagolobocastro Thanks, is the source of that image public?

It is now: https://github.com/openebs/mayastor/tree/blobcli-23.05
Just builds blobcli and puts it in a container with a config file
If you want to build yourself:
❯ docker load <$(nix-build -A images.mayastor-spdk)                                                                                ─╯
warning: 'https://mayastor-cp.cachix.org' does not appear to be a binary cache
building '/nix/store/x2m9hr9xy0jg6qsv750vfi0vp4jd8kdw-repo_org.drv'...
patching script interpreter paths in ./git-org-name.sh
./git-org-name.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash"
building '/nix/store/wdsqyjws8vmgd1m029bkzkl8ha2vzhmr-io-engine-version.drv'...
this derivation will be built:
  /nix/store/0v5ysdn7qd65q8v4yaawik7ldc2rdj7c-docker-image-mayastor-spdk.tar.gz.drv
building '/nix/store/0v5ysdn7qd65q8v4yaawik7ldc2rdj7c-docker-image-mayastor-spdk.tar.gz.drv'...
Adding layer...
tar: Removing leading `/' from member names
Adding meta...
Cooking the image...
Finished.
Loaded image: openebs/mayastor-spdk:703fff02c8ff

Then rename/tag as necessary.

That worked, this is the output on one of the broken nodes:
mayastor-spdk-output-spaceksisste01.txt.zip

Great thanks, could you also run:

docker run --rm --name mayastor-spdk -v /dev/hugepages:/dev/hugepages --privileged -it tiagolobocastro/mayastor-spdk-blobcli:v23.05 -b nvme0n1 -s bs

@tiagolobocastro Thanks a lot for your help. I'm getting an error running that:
~$ docker run --rm --name mayastor-spdk -v /dev/hugepages:/dev/hugepages --privileged -it tiagolobocastro/mayastor-spdk-blobcli:v23.05 -b nvme0n1 -s bs
[2024-07-10 14:13:46.235060] Starting SPDK v23.05 / DPDK 22.11.1 initialization...
[2024-07-10 14:13:46.235137] [ DPDK EAL parameters: blobcli --no-shconf -c 0x1 --huge-unlink --log-level=lib.eal:6 --log-level=lib.cryptodev:5 --log-level=user1:6 --iova-mode=pa --base-virtaddr=0x200000000000 --match-allocations --file-prefix=spdk_pid1 ]
EAL: Error creating '/var/run/dpdk': No such file or directory
EAL: No DPDK runtime directory created
TELEMETRY: No legacy callbacks, legacy socket not created
[2024-07-10 14:13:46.355574] app.c: 767:spdk_app_start: *NOTICE*: Total cores available: 1
[2024-07-10 14:13:46.399475] reactor.c: 937:reactor_run: *NOTICE*: Reactor started on core 0
[2024-07-10 14:13:46.446966] accel_sw.c: 603:sw_accel_module_init: *NOTICE*: Accel framework software module initialized.
[2024-07-10 14:13:46.575475] blobstore.c:4696:bs_recover: *NOTICE*: Performing recovery on blobstore
[2024-07-10 14:13:46.575630] blobstore.c:4643:bs_load_replay_md_cpl: *NOTICE*: Recover: blob 0x0
[2024-07-10 14:13:46.575720] blobstore.c:4643:bs_load_replay_md_cpl: *NOTICE*: Recover: blob 0x1
Error in load callback (err -84)
[2024-07-10 14:13:46.584808] app.c: 873:spdk_app_stop: *WARNING*: spdk_app_stop'd on non-zero
ERROR!

hmm this might require a lot more debugging of the data structures to find the issue.
If you could send us a dump of the start of the disk so we can better diagnose, maybe say 200MiB that would also help.
This is only metadata - by default you get 4MiB for the super and then 1 page (4kiB) for every cluster. On your 7T disk you can see you have 183141 pages, which means metadata lives up to 754MiB, before your data starts.

Alright, thanks a lot for your investigation. I'll create the dump and then proceed to nuke the drives, as we really need to get the deployment up and running again. Do you have any idea how I can easily verify that no sensitive data is included in the dump?
BTW: we're really looking forward to seeing this being released: https://github.com/openebs/mayastor/issues/1064

Do you have any idea how I can easily verify that no sensitive data is included in the dump?

Create the dump like so:
> sudo dd if=/dev/nvme0n1 of=dump.io bs=1M count=200

You can run strings against the dump, example:
> strings dump.io
SPDKBLOB
LVOLSTORE
TUUP
UQ@UUAU
...................
@@Q@A
uuid54c14dab-8461-49a3-ac7d-dbf1287d47c2
namepool-nvme0n1
name08b67cce-b785-4c3c-921e-39a660167d39
uuid08b67cce-b785-4c3c-921e-39a660167d39
sharedtrue
.......................

BTW: we're really looking forward to seeing this being released: #1064

It's released :)

Please reopen if required, thank you.


TensorFlow v2.x not supported

The current code is not TF v2.x compatible.
I managed to get it work under TF v2.3 by replacing
import tensorflow as tf

with
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

However it would be great to have native support to take advantage of TF2.x. TF1.x is obsoleted anyway.
Thanks!

Finally done with #2 !


Feature Request: Link to Blog picture came from

When its posting the tumblr blog/DA page (wherever it got the pic from) that it got the picture from how about making the name of the tumblr a link to said blog/DA page?
Eg:
Mirrored post from the tumblr blog "BOOM CLAP":
With BOOM CLAP being a link to dashingicecream.tumblr.com or the exact page where the pic was from up to you...

I don't this would be too difficult to implement (in fact, some newer plugins like the Derpibooru and FA ones do this IIRC).
I would propose a reply like this:
Mirrored post from the tumblr blog "BOOM CLAP":
...with the post link being the exact page where the picture was, and BOOM CLAP being the author's main page / Tumblr blog home.
Idk if I have time to implement this, but I may get around to it eventually.

No worries mate :) If I could program in Python might have given it a go myself!

Yeah, holidays and other projects is making it hard to find time to code it and (most importantly) test it.

I'll give it a shot on working on it, will also add it to VelvetBot's functionality.

@Shugabuga Additionally, is there a subreddit I should create or work with to test functionality of the bots?

/r/HeyItsShugaTest (my test subreddit) or /r/BotTest (for any bot) are both fine if you want to test it. My subreddit already is full of TheMirrorPool test posts. Also, if you PR the feature, I'll add it to TheMirrorPool (I try to keep it updated).

#42

Does this handle reblogs properly? For example, if user A posts picture B, and user C reblogs picture B, which then has the reblogged link posted on Reddit, will the link in the mirror comment go to User A's or User B's blog? If it just posts what the original Reddit link was, I see no reason to put it in the comment.

Not sure, although if it does post only the reblog, it should just be a quick fix by using tumblr's API or scraping to figure out where the original is from. Then I can post the original link in the comment. I'll test it soon.

Alright, updated pull request that now determines reblog information, if it exists, and now posts the original author URL to post, blog, and name of blog.

Neat!

Tumblr merged, now to work on the DeviantArt plugin.

Works according to test. Should be able to close this issue once this is merged.


Bug: SMS not working for HTTP health check (only TCP ping)

SMS does not seem to be working for HTTP endpoint tests, only for TCP pings (e.g. tcp-ping)

That's very strange, because the logic of notifications should be independent of the logic for whether you're using HTTP or TCP. Could you please share a link to a workflow and I can investigate?


CLI does no longer show stack traces

It seems that a recent change led to only error messages being shown for cli failures, rather than the full stack trace. It would be nice if we could at least have a --verbose option to switch traces on for debugging
cc @bestander  @Kureev

@facebook-github-bot label Icebox

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/cli-does-no-longer-show-stack-traces
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook-github-bot close


Controlling Size of X Matrix using nvec

Hello,
I'm trying to use the nvec option to choose a large matrix for sampling. However, when I set nvec = 10000 the integration function seems to generate a matrix that's only Mx 500 when it should be M x nvec. Is there anyway to ensure that the nvec option is implemented exactly? Why does it deviate from the selected nvec?
Code below:
import Pkg
Pkg.activate("joint_timing")
Pkg.instantiate()
using Cuba, Distributions
using BenchmarkTools, Test, CUDA
using FLoops, FoldsCUDA
using SpecialFunctions
using Suppressor

# User Inputs
M= 5 # number of independent uniform random variables
atol=1e-10
rtol=1e-10
nvec=100000
maxevals=1000000

## Setting up functions
function beta_pdf_cpu(x,a,b,dim)
    prod(x.^(a-1.0f0) .* (1.0f0 .- x).^(b-1.0f0)./(gamma(a)*gamma(b)/gamma(a+b)),dims=dim)
end

function int_cpu(x, f)
display(size(x))
  f[1] = beta_pdf_cpu(x,1.0,2.0,1)[1]
end

function int_thread_col_cpu(x, f)
    display(size(x))
    @floop for i in 1:size(x,2)
         f[i] = beta_pdf_cpu(x[:,i],1.0,2.0,1)[1]
    end
end

#Integrating

cuhre(int_cpu, M, 1, atol=atol, rtol=rtol,nvec = nvec)
suave(int_thread_col_cpu, M, 1, atol=atol, rtol=rtol, nvec = nvec, maxevals = maxevals)

## You can see here that the size of X is only 5x500 when it should be 5xNvec = 5 x 100000

Quoting from the upstream library documentation

Note that nvec indicates the actual number of points passed to
the integrand here and may be smaller than the nvec given to the
integrator.

There is nothing we can do from this wrapper.


Monorepo

We should make this repository a monorepo, so we can integrate other packages like hn-react and hn-react-webform into this repository. This allows us to streamline our build tools, and create new packages more easily.

Coverage remained the same at 60.606% when pulling 438a32a6b6c4a21d939d2a056e5473944f13a1b8 on monorepo into 4982a97e271c95fa4f1dc81566c90179914b9384 on master.


Added request input validation on API routes

PR Fixes:

1 This PR adds validations for request inputs on the backend API routes wherever it was needed.
2 Also fixes some wrong status codes in some routes (440 was being used instead of 404).

Resolves #484
Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I assure there is no similar/duplicate pull request regarding same issue

@hkirat Those big differences in files changed is just because zod schemas were created there

@hkirat could you please review this PR :)

/bounty $5