add cruijff function

Hi @HDembinski
This PR is regarding  #40
Description:
This PR adds a Cruijff distribution
At present access to pdf and logpdf are provided
Checks:
If we choose the following parameters, then we expect gaussian distributions with sigma 1 and mean 0:
alpha_left = 0
alpha_right = 0
sigma_right = 1
sigma_left = 1
mean = 0
Comparing with scipy.stats.norm
from numba_stats import cruijff
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
import math
x = np.linspace(-5, 5, 100)
y = cruijff.pdf(x,0,1,1,0,0)
z = norm().pdf(x)*math.sqrt(2*math.pi) # scale by root(2pi)
plt.plot(x,y,label='cruijff')
plt.plot(x,z, label='gauss')
plt.legend()

@amanmdesai Please merge the main branch, I just committed a fix for the failing tests - this was unrelated to your changes.

Hi @HDembinski
Thanks for the feedback and suggestions.
I will try to explore option 2. (Actually I had tried to evaluate the integral (symbolic) using sympy but it does not work.)
I will try to see how this can be done numerically with the help of your suggestions.

I did some research on how scipy calls the integration routine. It looks to me like we cannot access it from numba.
You can try to use with numba.objmode() to call scipy.integrate.quad from inside a jitted function.

Hi @HDembinski
The recent commit that I have pushed, implements the normalization calculation, and also adds the pdf.
However it does not work with numba, I am not sure what I will need to make it work with numba.
(I am using numba.objmode).

The code looks ok, but yes, it does not work. I am not sure why at first glance.

Some further investigation seems to indicate that one cannot use any code in numa.objmode. It does not like the lambda in quad, quad without the lambda works. I think there is no way to fix this, so let's just provide the unnormalized density and wrap this up. I am going to commit some changes for this PR.

Yeah the lambda function seems to be the likely problem.
I was wondering if the following may be useful in any way
https://numba.pydata.org/numba-doc/dev/user/generated-jit.html

I was wondering if the following may be useful in any way https://numba.pydata.org/numba-doc/dev/user/generated-jit.html

Not to my understanding. With generated_jit, you can define which Python code is compiled based on the type of argument, but that won't help us here.

Okay. I see. Just curious.. is there an alternative of lambda function in the way we want to implement it?

Not to my knowledge. The only option I see at the moment is to port a numerical integration routine to Python and compile it with Numba, but that's a major undertaking which I would not use here.
I would like to merge this PR as is, because putting too much energy into this Cruijff distribution is not worth it. It is not a particular interesting distribution. I believe that a non-central students t-distribution serves a similar purpose to this one.

Okay. I see. Just curious.. is there an alternative of lambda function in the way we want to implement it?

Not to my knowledge. The only option I see at the moment is to port a numerical integration routine to Python and compile it with Numba, but that's a major undertaking which I would not use here.
I would like to merge this PR as is, because putting too much energy into this Cruijff distribution is not worth it. It is not a particular interesting distribution. I believe that a non-central students t-distribution serves a similar purpose to this one.

Okay, thanks.


wrong bitrate setting for opus postprocessing

Checklist

[ ] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.03.03
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: [u'-o', u'%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-ix', u'--audio-format=opus', u'https://www.youtube.com/watch?v=MU9oF-YmnyU']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2021.03.03
[debug] Python version 2.7.16 (CPython) - Linux-5.6.0-0.bpo.2-amd64-x86_64-with-debian-10.8
[debug] exe versions: ffmpeg 4.1.6, ffprobe 4.1.6, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] MU9oF-YmnyU: Downloading webpage
[debug] Invoking downloader on u'https://r7---sn-uxax4vopj5qx-cxge.googlevideo.com/videoplayback?expire=1615301355&ei=izZHYLqUJ92ux_APyca-SA&ip=<IP_ADDRESS>&id=o-AFOJQoqh2GFpmeuN_v7jgQIJ0Zaho9BxYA_FcyILjqwx&itag=140&source=youtube&requiressl=yes&mh=hO&mm=31%2C29&mn=sn-uxax4vopj5qx-cxge%2Csn-4g5e6nez&ms=au%2Crdu&mv=m&mvi=7&pl=18&gcr=de&initcwndbps=935000&vprv=1&mime=audio%2Fmp4&ns=Sfcnv3ir99luxfd_eSGq7KIF&gir=yes&clen=4035697&dur=249.159&lmt=1600680540168690&mt=1615279473&fvip=1&keepalive=yes&fexp=24001374%2C24007246&c=WEB&txp=1311222&n=UeUjBTMcHkv2mY5n&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgfAOZCi60Kem7_V4-Y3fQtvoI5Voscf2Dm28IU_fkz6QCIQCVwERNf05uFz70_woDviyq248KcM46nn0vzrkM-v3AEw%3D%3D&sig=AOq0QJ8wRQIgRX2sD14z8klAVFFtqxT20oYSuHiYydOAYDLywvYE1dECIQDqIBUvYHNuUZOXlxu9-V7YQ8_NEhWR3kP9YS0n3Jc4VA=='
[download] Destination: Alles Was Ich Habe.m4a
[ffmpeg] Correcting container in "Alles Was Ich Habe.m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Alles Was Ich Habe.m4a' -c copy -f mp4 'file:Alles Was Ich Habe.temp.m4a'
[debug] ffmpeg command line: ffprobe -show_streams 'file:Alles Was Ich Habe.m4a'
[ffmpeg] Destination: Alles Was Ich Habe.opus
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Alles Was Ich Habe.m4a' -vn -acodec libopus '-b:a' 5k 'file:Alles Was Ich Habe.opus'
Deleting original file Alles Was Ich Habe.m4a (pass -k to keep)

Description

When extracting audio, and the containing format isn't 'opus', but the requested format is, then youtube-dl will call ffmpg to do the convertion. Without specifying the preferred quality, youtube-dl defaults to '5'. This is fine. However, libopus does not support quality-based encoding, which is even mentioned in the youtube-dl source code: https://github.com/ytdl-org/youtube-dl/blob/c6a14755bb9629967fb12536ee8660ca67ff4345/youtube_dl/postprocessor/ffmpeg.py#L307
However, the following check does this:
                if int(self._preferredquality) < 10 and extension != 'opus':
                    more_opts += ['-q:a', self._preferredquality]
                else:
                    more_opts += ['-b:a', self._preferredquality + 'k']

So, in case no quality is set on the command line and opus is requested, self._preferredquality is 5, resulting in execution of the 'else'-branch and an encoding with a bitrate of 5k, also visible in the log above, second to last line. The encoding does not fail, but you can imagine it's quality ...
It is not immediately clear how to resolve this. Assuming we treat values < 10 as quality (like the rest of the code also does), then we could at least set the bitrate to a typical value for music. According to https://wiki.hydrogenaud.io/index.php?title=Opus, this could be 192k. If you want to be really nice, it could be set to (self._preferredquality * 38.4) This would result in 192k for the default of 5, but would make other quality settings at least mean something.

^^^^^^^
Was about to make an issue about some videos having unacceptable quality when downloaded as opus. Have reproduced many times -- seems to happen more on older videos?

Confirming this bug. It's intermittent though, different URLs give different results.
youtube-dl --extract-audio --audio-format opus "https://www.youtube.com/watch?v=azOiTtlN-6E"
^gives good quality output
youtube-dl --extract-audio --audio-format opus  "https://www.youtube.com/watch?v=t1C83sIxUyg"
^gives 5k quality output

I figured out what triggers the different results.

Confirming this bug. It's intermittent though, different URLs give different results.
youtube-dl --extract-audio --audio-format opus "https://www.youtube.com/watch?v=azOiTtlN-6E"
^gives good quality output
This is downloaded as a webm, so a lossless conversion is probably used (the ffmpeg command doesn't specify -b:a)
youtube-dl --extract-audio --audio-format opus "https://www.youtube.com/watch?v=t1C83sIxUyg"
^gives 5k quality output
This is downloaded as an m4a, so a lossy conversion is performed (and the ffmpeg command does specify -b:a)

The --audio-quality 0-10 syntax was originally designed for mp3. Due to this, similar issues exist for other conversions as well. For example, while 0 is "best" for mp3, it refers to the worst quality for vorbis.
yt-dlp deals with these issues by re-scaling the user input according to format. Same can be done here. I opted to not convert the 0-10 scale to bitrate for formats that do not support -qa, but I can see the appeal of doing that (might be difficult to agree on the factor to use).
https://github.com/yt-dlp/yt-dlp/blob/5792c950bfd9f8b6730659b3046b41c1aea64c98/yt_dlp/postprocessor/ffmpeg.py#L403-L423

0 being best is what --help describes, so vorbis should change accordingly. Different codecs will warrant different scales, as 128 kb/s MP3 is vastly different from 128 kb/s Opus. Opus is just a much better codec that can do more with less.

With this issue I did not necessarily want to create the best possible solution, but to get to a workable solution fast. The current state of a default of 5 and this being interpreted as 5 kb/s for opus is not really usable. I agree that using an codec-provided quality scale would be ideal. However, as this does not seem to exist, we are left with the question what to choose as default. Assuming we stick with a default of 5 and assuming we stick with the interpretation of values in the range of 0<x<10 as quality rating and not bit rate, we have to come up with some mapping of that to bit rates on our own, thus my original suggestion in the ticket description.

@knarrff in case it wasn't obvious, I filed pull request #30957 fixing this issue, and used your scaling idea (but ended up using 24 instead of 38.4 giving a range of 6 <--> 210 kb/s)

Indeed I was not aware of the request. Thanks!


Incorrect information on configuring the Mimecast Personal Portal SSO

Point 1 in the "Configure Mimecast Personal Portal Single Sign-On" section is incorrect. It states the user should log into the "Mimecast Personal Portal" as an administrator. It should say to lo into the Mimecast Administration Console. It needn't say "as an administrator, as only administrators would have access to it.
Additionally the Mimecast UI has changed. This affects the method users use to navigate to the creating an Authentication Profile (points 2 and 3). Instead of clicking on the "Services" button and selecting the "Applications" menu item, they now click on the "Administration" toolbar button and select the "Services | Applications" menu item. Point 4 onwards is still correct, although the images displayed are old and no longer reflect the Mimecast Administration Console UI.

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

ID: 2b85b077-78d6-8994-e5b2-14a05e6d8d2b
Version Independent ID: 59db0a3a-b498-c417-fb17-6b7659a2f811
Content: Tutorial: Azure Active Directory integration with Mimecast Personal Portal
Content Source: articles/active-directory/saas-apps/mimecast-personal-portal-tutorial.md
Service: active-directory
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@MimecastDocumentation Thank you for your feedback! We will review and provide an update as appropriate.

@chetansriv and @v-nagta Can youplease review this change?

@MimecastDocumentation I have updated the article, please review
#please-review

#please-close


generated qr code but it is not qr code , it is like earthwarm

what is problem

I using this packages
"react-native-camera-kit": "^8.0.4",
"react-native-qrcode-svg": "^6.0.3",

"react-native-svg": "^12.0.2",

I'm getting the same problem

Same problem with this versions:
"react-native-qrcode-svg": "^6.0.3",
"react-native-svg": "^12.0.2",
Some fix please

It woks fine with<EMAIL_ADDRESS>We need to find out what happened after upgrading rn-svg to v12.
Note that the issue is only on Android to me.
/cc @awesomejerry

I confirmed the issue have been fixed by<EMAIL_ADDRESS>(https://github.com/react-native-community/react-native-svg/commit/df4ff9caa7cedfabcbb8e470977ad92db3773830)

It woks fine with<EMAIL_ADDRESS>We need to find out what happened after upgrading rn-svg to v12.
Note that the issue is only on Android to me.
/cc @awesomejerry

Confirmed. This version fix the bug.
Apparently, the lines of the QR are rounded using the last version of the react-native-svg

Confirmed. This version fix the bug.
Apparently, the lines of the QR are rounded using the last version of the react-native-svg
If you get this error:
bundling failed: Error: Unable to resolve module ./elements/NativeComponents from node_modules/react-native-svg/src/ReactNativeSVG.ts
Follow this comment https://github.com/react-native-community/react-native-svg/issues/1165#issuecomment-579276381

Confirmed. This version fix the bug.
Apparently, the lines of the QR are rounded using the last version of the react-native-svg
If you get this error:
bundling failed: Error: Unable to resolve module ./elements/NativeComponents from node_modules/react-native-svg/src/ReactNativeSVG.ts
After downgrading the version of react-native-svg.
Follow this comment react-native-community/react-native-svg#1165 (comment)

I confirmed the issue have been fixed by<EMAIL_ADDRESS>(react-native-community/react-native-svg@df4ff9c)

How to do that with expo?

I had this issue after upgrading from Expo SDK 33 to 37 (and therefore RN from 0.59 to 0.61). I fixed it by downgrading react-native-svg to 11.0.1.

Confirmed. This version fix the bug.
Apparently, the lines of the QR are rounded using the last version of the react-native-svg
If you get this error:
bundling failed: Error: Unable to resolve module ./elements/NativeComponents from node_modules/react-native-svg/src/ReactNativeSVG.ts
After downgrading the version of react-native-svg.
Follow this comment react-native-community/react-native-svg#1165 (comment)

I confirmed the issue have been fixed by<EMAIL_ADDRESS>(react-native-community/react-native-svg@df4ff9c)

How to do that with expo?

in your package.json replace react-native-svg dependency row with  “react-native-svg”: “^11.0.1", then run yarn install.


Sliders add checkbox to invert the range

I have implemented it as follows. Technically the label of the checkmark should be invert range but it will take too much space.

Possibly we could add a tooltip to fix this issue. What are your thoughts?

@giobetti closing the issue since I have implemented it. Please re-open it if there is something else you would like me to change


Problem with animations

Hello Sascha,
Animations are not working correctly in the viewer. For instance, when I load the AnimatedMorphCube model from the official glTF sample models repo, nothing is animating! Same with the AnimatedMorphSphere model - I believe I remember them animating a few months back. AnimatedTriangle is still working - haven't checked rest of the models.
Another issue which I encountered is if I hardcode the AnimatedTriangle model to load by default instead of the DamagedHelmet - I get this error:

I am a big fan of your work and would highly appreciate if you could take some time to fix this!
Thanks,
Rajdeep

That's to be expected. Morph targets aren't implemented, and as such glTF files that use them may either fail to load or aren't displayed correct (see https://github.com/SaschaWillems/Vulkan-glTF-PBR#gltf-20-model-loading). As of now I don't have plans to add support for morph targets.

Ah, got it!
But what about the crash which I see when I load the AnimatedTriangle model as the default model to start with? I believe that model has just a simple rotating animation.

The animated triangle sample from the repo you linked works fine for me.

Bizarre - I am not able to reproduce it anymore either! Thanks anyway!


Make git repositories public

There are a couple of things we have to remember and take care of when we publish the git repositories as part of our open source project. This issue is meant to collect them so we don't forget anything.

[x] Review content we will make public for secrets or anything else we don't want to publish (https://github.com/dtr-org/unit-e-project/pull/113)
[x] Flip the switch to public for unit-e
[x] Flip the switch to public for uips
[x] Flip the switch to public for unit-e-project
[x] Flip the switch to public for docs.unit-e.io
[x] Flip the switch to public for unit-e-clonemachine
[x] Flip the switch to public for https://github.com/dtr-org/secp256k1-fork
[x] Remove password protection from https://docs.unit-e.io

It's done 🚀


Implement custom error page

Ghost allows theme developers to provide a custom error page to be served in place of the default one. I think it would be awesome to have a clean page that can apologize for the error and guide the visitor back to the blog.
Some thoughts on layout and style:

Keep it similar to the existing theme template
Have the error code somewhere on the page, so people understand what's happening.
Main focus should be a nice flow back to the main content - either a list of recent posts, or an inviting button to navigate back home
If possible, figure out whether this is a 404, and if so, add a cute message (there's many examples online)
All of this is done in a minimalistic style, consistent with the theme.

Thoughts?
P.S. Some resources: https://github.com/TryGhost/Ghost/blob/master/core/server/views/user-error.hbs, http://www.ghostforbeginners.com/custom-error-page/

Sounds great! Can we have any other error pages than 404? Are you thinking 500?
+1 for the cute message. I think that a small list of posts might fit better with the style than a button. It's more of a text-first approach overall.

Yep, all error codes are ours to catch. There are some helpers, {{code}} and {{message}} that provide the details. I don't know of a good way to test for equality in hbs files though, so not sure if a generic error message is all that's possible, or if it can be tailored.
Regarding the post list, what's the helper for listing them? Are you thinking the last N posts, or something like that?

Right, we can't do any comparisons in hbs. Let's go with something else: a cute message for an error has occurred but here's a list of the latest posts.
Post list: https://github.com/mihneadb/no-nonsense/blob/master/partials/loop.hbs
What do you think? If the posts helper that's used in loop.hbs is not available, we could just leave a link (not button) to @blog.url and that's it.

I checked, seems the post helper isn't available. Threw together some code over lunch:
https://github.com/issmirnov/no-nonsense/blob/error-page/error.hbs

I'll be on a trip till April, so if you want to hack away on it as well by all means!

Haha, cool. I'll try to find something shorter in the meantime.
Enjoy your trip!

Hey, I'm back. Did you have time to take a look?

Hey there, sorry for the delay.
I had an idea, what if we also used a photo? Here are some examples:
Message about something like "you took a wrong turn" or "dead end" or something like that.

Message about "got lost", or "nothing is here", something like that.

I think I like the first one better. The photos are "do whatever you want with them" from https://unsplash.com/, so that's cool.
What do you think?

I really like the first one as well. Good call!

:D
On Wed, Apr 8, 2015 at 11:53 PM, Ivan Smirnov<EMAIL_ADDRESS>wrote:

I really like the first one as well. Good call!
--
Reply to this email directly or view it on GitHub
https://github.com/mihneadb/no-nonsense/issues/21#issuecomment-91034161.

--
Mihnea Dobrescu-Balaur

I'm not sure, I think a central box would fit the overall style better. Kind of like the post photo looks now. BTW, we'd have to reduce the photo's resolution a bit.

Makes sense. Do you want me to look into it, or planning on throwing up some code yourself?

Went ahead and implemented it! :) Thanks for the suggestion and the help!


MCS-1138: Add Scene Option to Toggle All Lights Off or On at Specific…

This introduces the option to add light-toggling into the JSON scene files, which causes the lights in the scene to be disabled at the given stepBegin, and re-enabled at the given stepEnd.  Multiple pairs of begin and end can be added to toggle the lights multiple times in a scene.
The holes.json changes were included as an example for your own testing, but I will remove them before the PR is merged.

@alexcraneunity @brianpippin Unfortunately I had to deal with some problems generating the eval data earlier today and didn't get to finish looking at this PR until after it had been merged, but there are some significant issues that should get resolved ASAP.

The lights need to be re-enabled in MCSMain.ChangeCurrentScene. Right now, if they turn off, and then you load a new scene using the same MCS controller (Unity instance), they're still off when the new scene loads. This is definitely something the TA1s will encounter when training!
There's no PR for the corresponding Python (MCS) branch, which is required for this feature to work.

I've made MCS-1409 to address these issues.

Thank you @ThomasSchellenbergNextCentury  - I will create the missing PR for MCS-1138 in the MCS repo, and will work on resolving these issues.

I thought about doing that, but I don't think we need to. We're not planning on releasing what's on development soon. I just don't want us to forget about fixing it :)

Follow-up code review: https://github.com/NextCenturyCorporation/ai2thor/pull/256


Styling issues in Home / Navigation Bar / side bar / footer

This issue will track the styling issues in the staging site for Home / Navigation Bar / side bar. Please add any additional items you might find during testing to this issue.
DESKTOP 1280 x 800

Top image:

[x] The first image is supposed to cover all of the space from left to right. There is a small space of white to the right when you scroll.
[x] There should be a black line above and below the image

Home content:

[x] The buttons for each section (Reference, Example, etc) have a black border that is bold, the line for them should be thinner.
[x] The images are a square shape instead of rectangle
[x] The Donate text at the bottom of the page should be 56 px, it is currently 40px. Same for Download p5.js
[x] The Donate button should be widder.
[ ] New: the images should should alternate left - right - left- right. They are currently all to the right.

Footer:

[ ] The asterisk should start at the height of the  donate text. It starts now below donate.
[x] The text should be 20px, it is 18px.

TABLET 768 x 800

Header section:

[x] Reduce spacing between top menu and the start of the text.
[x] Reduce spacing between the top text and the description of the first image ‘ Lauren Lee… ‘

Navigation:

[x] Search text is not well centered from top to bottom
[x] The symbols (magnifying glass, world, setting) for the navigation items in pink are not well centered from top to bottom.

Home content:

[x] The buttons for each section (Reference, Example, etc) have the text overflow the limits of the button
[x] The sections of Explore the p5.js library reference and Learn p5.ks with examples shouldn’t have image previews.
[x]  The Donate text at the bottom of the page should be 56 px, it is currently 40px. Same for Download p5.js
[x] Images should be rectangles not squares
[x] The Donate button should be widder.
[ ] New: the main image should be taller from top to bottom.

Footer

[x] - [ ] There should only be 3 columns in the footer. Socials should be below Information per figma

Mobile 428x800

Navigation:

[ ] Search should be at the top, above English and Accessibility

Home content:

[x] Images should be rectangles not squares
[ ] At the bottom, the Download Library button should be displayed in one line, not two.

Posting updated status of issues plus new items identified during second round of testing:
DESKTOP

Home content:

[ ] New: the images should should alternate left - right - left- right. They are currently all to the right.

Footer:

[ ] The asterisk should start at the height of the  donate text. It starts now below donate.

TABLET 768 x 800

Home content:

[ ] New: the main image should be taller from top to bottom.

Mobile 428x800

Navigation:

[ ] Search should be at the top, above English and Accessibility

Home content:

[ ] At the bottom, the Download Library button should be displayed in one line, not two.  This is a reopened item.

In the sidebar on a tutorial page (e.g. https://p5js-wip.online/tutorials/setting-up-your-environment/), the category name is not capitalized (maybe using the slug version rather than the full name?) Here, it says "introduction" rather than "Introduction to p5.js":

Also seems like the bottom left area is scrollable even though it is sized to match the content:

I'm seeing the sidebar usually not scrolling to the bottom:

[ ] Sidebar. In tablet, the references title remains visible when menu is closed

Closing as all items have been retested and addressed


HIVE-25724: Support external tables only for special databases

What changes were proposed in this pull request?
Forbid ACID table creation when a property 'EXTERNAL_TABLES_ONLY'='TRUE' is set on the database. In that case only external tables creation is allowed in these databases.

Why are the changes needed?
Easy for Old replication engines like BDR to replicate tables.

Does this PR introduce any user-facing change?
Users will have to create a database with the property 'EXTERNAL_TABLES_ONLY'='TRUE' so that only external table creation is allowed within the database.

How was this patch tested?
Local machine, Remote cluster

fix has been committed to master. Please close the PR.


[CoreWM] Animations/Effects for all elements

Currently only Windows have the fade-in/out effect. This should also be applied to Menus and desktop notifications

@PewienTyp This has now been added to the latest commit :smile:


Switch from ToggleSwitch to radio buttons for pen tip in InkCanvas page

Description

Replaced toggle switch for pen tip with radio buttons.
Motivation and Context

Fixes #219
How Has This Been Tested?

Tested manually by navigating to InkCanvas page and testing if both pen tip options work correctly.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

thank you!


leap: sync

Sync the leap exercise with the latest data, as defined in https://github.com/exercism/problem-specifications/tree/main/exercises/leap.

Thank you! :)


Arr::flatten exception in PHP 7.3.0RC3

Laravel Version: 5.7.9
PHP Version: 7.3.0RC3
Database Driver & Version:

Description:
Arr::flatten produces error "Unsupported operand types"
Possible related issue : https://bugs.php.net/bug.php?id=75533
Steps To Reproduce:
Create a Fresh Laravel App
change the welcome view to
<?php $a=\App\User::all(); ?>
reload browser
Exception in console (php-fpm error log)
[21-Oct-2018 09:08:01 UTC] PHP Fatal error:  Uncaught Error: Unsupported operand types in /vendor/laravel/framework/src/Illuminate/Support/Arr.php:219
Stack trace:
#0 /vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2706): Illuminate\Support\Arr::flatten(Array)
#1 /vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2027): Illuminate\Database\Query\Builder->getBindings()
#2 /vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2015): Illuminate\Database\Query\Builder->runSelect()
#3 /vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2499): Illuminate\Database\Query\Builder->Illuminate\Database\Query{closure}()
#4 /vendor/laravel/framework/sr in /vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 219

I can't reproduce that. What do you get when you put dd($this->bindings); in Builder::getBindings()?

Fedora - Rawhide, php-7.3 just landed in updates and it broke ever laravel project
packages installed
php-opcache-7.3.0~rc3-1.fc30.x86_64
php-pdo-7.3.0~rc3-1.fc30.x86_64
php-mysqlnd-7.3.0~rc3-1.fc30.x86_64
php-recode-7.3.0~rc3-1.fc30.x86_64
php-process-7.3.0~rc3-1.fc30.x86_64
php-bcmath-7.3.0~rc3-1.fc30.x86_64
php-gd-7.3.0~rc3-1.fc30.x86_64
php-tidy-7.3.0~rc3-1.fc30.x86_64
php-soap-7.3.0~rc3-1.fc30.x86_64
php-cli-7.3.0~rc3-1.fc30.x86_64
php-7.3.0~rc3-1.fc30.x86_64
php-common-7.3.0~rc3-1.fc30.x86_64
php-gmp-7.3.0~rc3-1.fc30.x86_64
php-mbstring-7.3.0~rc3-1.fc30.x86_64
php-json-7.3.0~rc3-1.fc30.x86_64
php-fpm-7.3.0~rc3-1.fc30.x86_64
php-imap-7.3.0~rc3-1.fc30.x86_64
php-xmlrpc-7.3.0~rc3-1.fc30.x86_64
php-xml-7.3.0~rc3-1.fc30.x86_64
php-intl-7.3.0~rc3-1.fc30.x86_64
php-pgsql-7.3.0~rc3-1.fc30.x86_64

It works for me on Windows and Ubuntu.
Do you get the same error from <?php echo INF - 1; ?>?

yes, no error when reinstalled OS with direct install of php-7.3 and not updating from php-7.2
probably some conflicting configuration files

@hopeseekr What code is triggering the error? A query?
Does <?php echo INF - 1; ?> work for you?

<?php echo INF -1; ?> returns INF.
The code works on 7.1-7.2, when I upgrade to 7.3.0, it explodes.
When I edit Illuminate\Database\Query\Builder and change it from:
    public function getBindings()
    {
        return Arr::flatten($this->bindings);
    }

to
    public function getBindings()
    {
        return Arr::flatten($this->bindings, 255);
    }

it works fine on PHP 7.3.0.

What OS are you using? Does Arr::flatten([[]]); trigger the same error?

Fresh App in Homestead(Per Project Installation)
Laravel : 5.7.18
vagrant box : 6.4.0
PHP : 7.3.0RC4
Update to PHP7.3.0
sudo apt update
sudo apt upgrade

phpinfo
PHP Version 7.3.0-2+ubuntu18.04.1+deb.sury.org+1

Homestead.yaml
sites:
    -
        map: homestead.test
        to: /home/vagrant/code/public
        php: "7.3"

routes/web.php
Route::get('/', function () {
    \Illuminate\Support\Arr::flatten([[]]);
});

=> Unsupported operand types
echo INF - 1;

=> Unsupported operand types

Same issue here.
Unsupported operand types in Arr.php line 219
PHP: 7.3.0
OS: macOS 10.14.2 (Mojave)
Laravel: 5.5

This is very weird. I'm using the same Homestead configuration, but I can't reproduce it.

@driesvints Can you reproduce this?

I can't reproduce this locally on my machine. Since we also don't have reports of this on Forge etc I suspect this to be a bug within Homestead itself. Please make sure you're at least running the stable 7.3.0 release and not an RC and open an issue on the Homestead repository.

Actually I don't think this is a Homestead issue but rather something else obscure. Maybe try one of the following channels first:

Laracasts Forums
Laravel.io Forums
Discord
Larachat
IRC
StackOverflow

This is happening to me inside Docker via https://github.com/phpexpertsinc/laravel_quickstart
Definitely not specific to Homestead.

Same issue for me in Docker when using an image built from php:7.3-apache.

I really think this is a configuration issue of some sort and not a Laravel problem because we can't reproduce it. If you can provide the exact setup and PHP configurations for this bug to be reproduced we could have another look.

Hit the same issue on the following system:
Ubuntu 18.04
Laravel 5.6.38
PHP 7.3
In case it's of use to anyone, disabling xdebug resolved the issue for us. Need to dig into it a bit more to understand why...

Anything that works perfectly on PHP 7.2 and not on PHP 7.3 but isn't a documented PHP 7.3 breaking change shouldn't be considered a framework bug.

Tried disabling xdebug and now working fine for me too.  Sorry.
Will wait for the final release of xdebug for 7.3 before trying it again.

Thx to @gdhnz 👍
Same problem with Xdebug (v2.7.0beta1) under Archlinux (4.19.13-1-MANJARO) with Apache (2.4.37) and PHP 7.3.0

Same error here, but with the 7.3.0 Stable (not the RC one). And on the lastest release of Laravel, the v5.7.19.
<?php echo INF - 1; ?> returns INF.
$ php -v
PHP 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Dec 17 2018 09:22:12) ( NTS

The latest (unreleased) versions of php 7.3 and xdebug DO WORK now. ;)
PHP 7.3.1RC1 or later + xdebug master (23rd December or later).

I've documented the required versions at https://github.com/laravel/framework/issues/27052.


[WEB] Special characters not rendered correctly with canvaskit renderer

Steps to Reproduce
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
        body: Text("Special char : ← ↑ → ↓ \u2190 \u2191 \u2192 \u2193"));
  }
}

$ flutter run -d chrome --web-renderer canvaskit
Expected results:
Special characters rendered correctly (html renderer here)

Actual results:

Reproductible with current master/dev/beta channels

Logs

 ~/Documents/repos/flutter_playground  flutter run --verbose -d chrome --web-renderer canvaskit
[  +74 ms] executing: uname -m
[  +37 ms] Exit code 0 from: uname -m
[        ] x86_64
[  +16 ms] executing: [/home/william/Documents/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 696e4f70d1a7a9b9b793aa3fc4ad2d8d3d8eac17
[        ] executing: [/home/william/Documents/flutter/] git tag --points-at 696e4f70d1a7a9b9b793aa3fc4ad2d8d3d8eac17
[  +15 ms] Exit code 0 from: git tag --points-at 696e4f70d1a7a9b9b793aa3fc4ad2d8d3d8eac17
[   +1 ms] executing: [/home/william/Documents/flutter/] git describe --match *.*.* --long --tags 696e4f70d1a7a9b9b793aa3fc4ad2d8d3d8eac17
[  +35 ms] Exit code 0 from: git describe --match *.*.* --long --tags 696e4f70d1a7a9b9b793aa3fc4ad2d8d3d8eac17
[        ] 1.27.0-1.0.pre-98-g696e4f70d1
[  +45 ms] executing: [/home/william/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/william/Documents/flutter/] git ls-remote --get-url origin
[   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +46 ms] executing: [/home/william/Documents/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +74 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +63 ms] executing: /home/william/Android/Sdk/platform-tools/adb devices -l
[  +21 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +75 ms] executing: /home/william/Android/Sdk/platform-tools/adb devices -l
[  +15 ms] Skipping pub get: version match.
[  +19 ms] Found plugin barcode_scanner at /home/william/.pub-cache/git/barcode-scanner-750bd8ac35fdbff88eaff07a4488acea6b50a514/
[  +59 ms] Found plugin url_launcher at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[   +3 ms] Found plugin url_launcher_linux at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[   +3 ms] Found plugin url_launcher_macos at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[   +5 ms] Found plugin url_launcher_web at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[   +2 ms] Found plugin url_launcher_windows at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[  +25 ms] Found plugin integration_test at /home/william/Documents/flutter/packages/integration_test/
[  +85 ms] Found plugin barcode_scanner at /home/william/.pub-cache/git/barcode-scanner-750bd8ac35fdbff88eaff07a4488acea6b50a514/
[  +31 ms] Found plugin url_launcher at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[   +1 ms] Found plugin url_launcher_linux at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[   +1 ms] Found plugin url_launcher_macos at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[   +3 ms] Found plugin url_launcher_web at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[   +1 ms] Found plugin url_launcher_windows at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[  +22 ms] Found plugin integration_test at /home/william/Documents/flutter/packages/integration_test/
[  +16 ms] Generating /home/william/Documents/repos/flutter_playground/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +164 ms] List of devices attached
[   +5 ms] List of devices attached
[ +104 ms] Launching lib/main.dart on Chrome in debug mode...
[ +132 ms] Updating assets
[ +104 ms] Waiting for connection from debug service on Chrome...
[   +5 ms] Found plugin barcode_scanner at /home/william/.pub-cache/git/barcode-scanner-750bd8ac35fdbff88eaff07a4488acea6b50a514/
[  +23 ms] Found plugin url_launcher at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[   +2 ms] Found plugin url_launcher_linux at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[   +1 ms] Found plugin url_launcher_macos at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[   +2 ms] Found plugin url_launcher_web at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[   +1 ms] Found plugin url_launcher_windows at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[   +9 ms] Found plugin integration_test at /home/william/Documents/flutter/packages/integration_test/
[   +5 ms] Found plugin barcode_scanner at /home/william/.pub-cache/git/barcode-scanner-750bd8ac35fdbff88eaff07a4488acea6b50a514/
[  +17 ms] Found plugin url_launcher at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[   +1 ms] Found plugin url_launcher_linux at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[   +1 ms] Found plugin url_launcher_macos at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[   +2 ms] Found plugin url_launcher_web at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[        ] Found plugin url_launcher_windows at /home/william/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[  +11 ms] Found plugin integration_test at /home/william/Documents/flutter/packages/integration_test/
[ +102 ms] <- reset
[   +5 ms] /home/william/Documents/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/william/Documents/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/william/Documents/flutter/bin/cache/flutter_web_sdk/ --incremental --target=dartdevc --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=false -DFLUTTER_WEB_USE_SKIA=true --output-dill
/tmp/flutter_tools.OWJPPB/flutter_tool.FXIFSJ/app.dill --libraries-spec file:///home/william/Documents/flutter/bin/cache/flutter_web_sdk/libraries.json --packages
/home/william/Documents/repos/flutter_playground/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-root /tmp/flutter_tools.OWJPPB/flutter_tools.DTBFAO
--filesystem-scheme org-dartlang-app --initialize-from-dill build/5ce7c659493310451672e1cde9a7cc60.cache.dill.track.dill --platform file:///home/william/Documents/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill
--no-sound-null-safety
[  +13 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+23358 ms] Waiting for connection from debug service on Chrome... (completed in 23,6s)
[        ] Synced 29.3MB.
[        ] <- accept
[        ] Caching compiled dill
[  +98 ms] Using Google Chrome 88.0.4324.150

[ +686 ms] [CHROME]:
[  +10 ms] [CHROME]:DevTools listening on ws://<IP_ADDRESS>:36465/devtools/browser/b95169ad-0f17-4df6-b48a-8c14bed29a6a
[ +607 ms] DwdsInjector: Received request for entrypoint at http://localhost:45147/main_module.bootstrap.js
[   +7 ms] MetadataProvider: Loading debug metadata...
[  +19 ms] MetadataProvider: Loaded debug metadata (no sound null safety)
[  +18 ms] DwdsInjector: Injected debugging metadata for entrypoint at http://localhost:45147/main_module.bootstrap.js
[+2211 ms] ChromeProxyService: Initializing expression compiler for main_module.bootstrap.js with sound null safety: false
[ +544 ms] DevHandler: Debug service listening on ws://<IP_ADDRESS>:40433/yCLcfBjNrHI=/ws

[  +10 ms] Debug service listening on ws://<IP_ADDRESS>:40433/yCLcfBjNrHI=/ws
[        ] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[   +8 ms] 🔥  To hot restart changes while running, press "r" or "R".
[   +2 ms] For a more detailed help message, press "h". To quit, press "q".

Analyzing flutter_playground...
No issues found! (ran in 3.4s)

 ~/Documents/repos/flutter_playground  flutter doctor -v
[✓] Flutter (Channel master, 1.27.0-2.0.pre.98, on Linux, locale fr_FR.UTF-8)
    • Flutter version 1.27.0-2.0.pre.98 at /home/william/Documents/flutter
    • Framework revision 696e4f70d1 (il y a 14 heures), 2021-02-13 18:31:02 -0500
    • Engine revision 1d537824d6
    • Dart version 2.13.0 (build 2.13.0-30.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /home/william/Android/Sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment 18.9 (build 11.0.10+9)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 11.0.0 (Fedora 11.0.0-2.fc33)
    • cmake version 3.18.4
    • ninja version 1.10.2
    • pkg-config version 1.7.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] VS Code (version 1.53.2)
    • VS Code at /usr/share/code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.150

! Doctor found issues in 2 categories.

possible duplicate of https://github.com/flutter/flutter/issues/73628

Closing as duplicate of https://github.com/flutter/flutter/issues/76003. Please follow up on that issue.
Thank you


Load Data | Non-Annotated CSV

Targeting Oct 12, 2022 - InfluxDB Cloud users will be able to drag and drop a Non-Annotated CSV into the UI as a way of loading data. As of now (9/28/22), this feature is still in development.
Relevant URLs

https://docs.influxdata.com/influxdb/cloud/write-data/no-code/load-data/#load-csv-or-line-protocol-in-ui

on hold


Cannot import a package with "type": "module" from cjs even if the package has an exports map

Bug Report
🔎 Search Terms

type: module
node16
The specifier only resolves to an ES module, which cannot be imported synchronously.

🕗 Version & Regression Information
I was unable to test this on prior versions because it's a brand new feature.
⏯ Playground Link
N/A
💻 Code
Code:
import foo from "my-dep";

tsconfig.json:
{
  "compilerOptions": {
    "module": "Node16"
  }
}

Dependency's package.json:
{
  "name": "my-dep",
  "type": "module",
  "exports": {
    "types": "index.d.ts",
    "import": "index.mjs",
    "require": "index.cjs"
  }
}

🙁 Actual behavior
Module 'my-dep' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead. ts(1471)
🙂 Expected behavior
TypeScript should be able to find the right import of my-dep from its exports map. The type field shouldn't prevent this.
Extra info
If I do any one of the following, everything works as expected.

specify "type": "module" in my own package.json
remove "type": "module" from my-dep's package.json
change my code's file extension to .mts

No changes to tsconfig.json seem to fix the issue.
I would have expected that the following would have worked but it didn't:
{
  "compilerOptions": {
    "module": "ESNext",
    "moduleResolution": "Node16"
  }
}

So the issue happening here is that the line "types": "./index.d.ts" declares a types file that is inferred as an ESM module because of the "type": "module", i.e. because of "type": "module" the fact that ./index.d.ts ends with .ts means it gets treated as an ESM module declaration file.
An alternative fix (for the library) is to make ./index.d.ts a .cts file instead, which would be importable by both. Alternatively just providing types for the esm/cjs entry points separately would work i.e.:
"types": {
   "require": "./index.d.cts",
   "import": "./index.d.mts"
}

While it does seem like it would be reasonable for "types": "./index.d.ts" to apply for both, consider the following declaration:
export default function foo(): number;

If this declaration is interpreted as ESM, the intention is clear, however interpreted as CJS, is this supposed to be a CJS module with { default: () => number } OR is the intention that this behaves like module.exports = foo (in TS syntax export = function foo(): number.

If I hover over foo in the import statement, in vscode; I do get the correct types.

is this supposed to be a CJS module with { default: () => number }? OR is the intention that this behaves like module.exports = foo (in TS syntax export = function foo(): number

TypeScript should just treat it as { default: () => number } as not doing so would break a lot of existing libraries (as this is how things have always worked, up until TS 4.7)

If I hover over foo in the import statement, in vscode; I do get the correct types.

Note that from TS's perspective, there is no CJS module, this is because when "types" is specified TS will look through "exports" find that "my-dep" has a "types": "./index.d.ts" and stop searching.
Even though import foo from "my-dep" is technically require, from TS's perspective the resolution to this is still "./index.d.ts" because it the earliest match for the query ["types", "require", "default"], basically the first entry in "exports" whose keys are all in the given conditions will win. (This is the same reason why if you put "default" first in "exports" it will always win regardless of other entries in "exports".)

So basically the issue is that by the dependency specifies "type": "module", the .d.ts file will be interpreted as a module and thus cjs files cannot import it.
I assume the same thing would happen but in reverse if "type": "commonjs" was specified?
So if "type" is not specified, then the .d.ts file is free to be interpreted either way? Thus why removing "type" from the dependency seems to fix the issue.
If this is indeed the case, is it consider safe to take this approach or should a library always give both a .d.mts and a .d.cts file, even if the two files would be identical?

So if "type" is not specified, then the .d.ts file is free to be interpreted either way? Thus why removing "type" from the dependency seems to fix the issue.

No then it will be interpreted as commonjs, however ESM can import so there won't be an error reported.
However, this isn't without hazards, i.e. consider if we had like I suggested above, however we also had an ESM file:
import foo from "my-dep";

console.log(foo);

Under the CJS resolution the shape of the module is { default: () => number }, so this means the program prints:
{ default: function foo() { ... } }

This is probably not what was intended, because in ESM we would want the program to print the function itself:
function foo() { ... }

This is unlike prior TS code, because in prior TS code there was esModuleInterop, which would've extracted the default export from the CJS namespace. But actual Node ESM doesn't extract the default export.

If this is indeed the case, is it consider safe to take this approach or should a library always give both a .d.mts and a .d.cts file, even if the two files would be identical?

Yes. It is kind've a shame that the files would be identical, although given identical contents is ideal for compression there's not really any loss to it.

Oki, that makes sense.
What about in the case of a JS library providing it's own type declarations?
Would the following be valid?
index.d.ts:
import type { Foo } from './types/foo.js';
import { Bar} from './types/bar.js';

export {
  Foo,
  Bar as default,
};

index.d.mts:
export Foo from "./index.js";
export default from "./index.js";

index.d.cts:
import Bar from "./index.js";
export = Bar;

Or would all the .d.ts files need to be converted to .d.mts and .d.cts?

@Jamesernator from my testing, it seems to fail. With #47807, I believe it's possible to make it work but I haven't tested too much.
Also with regard to index.d.cts in my last comment, is it possible to also export the type Foo while using export = Bar?

With #47807, I believe it's possible to make it work but I haven't tested too much.

Ah yeah, you probably need resolution-mode for this pattern.

Also with regard to index.d.cts in my last comment, is it possible to also export the type Foo while using export = Bar?

Kind've, you can export = a namespace and it'll allow type exports in that namespace. This may require changes to Bar, but namespace can generally merge with most kinds.
As an example if the CJS module.exports was a function then you can do:
declare function Bar(): number;
declare namespace Bar {
    export type Foo = {};
}

export = Bar;

And this will allow Bar to be both a function and a namespace with Bar.Foo as a type. (And will even work with import { Foo } from "..." in both ESM and CJS).


Feature/special details

Addresses issue #420 (nice). I did finish this while pretty stuffed with snot, so you might spot some inaccuracies. One thing I was not able to solve was the fact that the help text for has_special_details (in study/models.py) is not picked up by makemessages -a, so it's not translated....

Creating test database for alias 'default'...
CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0024_alter_study_has_traits, 0024_auto_20221018_1653 in studies).
Proceeding without LDAP settings
To fix them run 'python manage.py makemigrations --merge'
Error: Process completed with exit code 1.

Looks like there are two migrations 0024

Alright, I think I addressed all your comments @miggol. Do please let me know what you think of the dependency logic and whether there are other things I have not yet addressed.

Okay, update for the time being: the logic for the field dependencies has been updated, but it glitches if the user changes several fields too quickly after one another. If you wait 4 seconds between toggles of fields, there is no issue, but if you do not, the dependent field will appear and then immediately disappear again. Any insight on why this happens is appreciated, at this point I am ready to rewrite all the dependency logic to solve this.

Okay, update for the time being: the logic for the field dependencies has been updated, but it glitches if the user changes several fields too quickly after one another. If you wait 4 seconds between toggles of fields, there is no issue, but if you do not, the dependent field will appear and then immediately disappear again. Any insight on why this happens is appreciated, at this point I am ready to rewrite all the dependency logic to solve this.

Yes I can provide some insight;
There are 2 problems working here, both related to code speed.
The first:
The dependency checks using jQuery were unnecessarily slow. This was caused by (re-)searching for the relevant elements in the entire DOM. For example:
$('input[type=checkbox]').each( //something );
$('input[type=checkbox]').change();

This will do the search for all checkboxes on the page twice, which is slow.
let checkboxes = $('input[type=checkbox]');
checkboxes.each( //something );
checkboxes.change();

This will do it once, taking half the time.
As you can guess, this causes some of the problems, as sometimes the checks were taking longer than the speed of the user's clicks.
I've pushed a commit which not only removes the duplicate searches, it also limits the searches where possible to part of the DOM. (Mostly when searching for the checkboxes, which is now limited to the ul element that contains them.) This makes the entire process much more speedy. It's still possible to get the problems as before, but it should be way harder.
The second:
This one is similar, but also different, to the first. check_field_required does a POST request and resolves it asynchronously. This means the JS is unblocked while waiting for the server's response, allowing changes that might invalidate the post request that's being done. Thus, throwing the page into an invalid state.
I didn't resolve this issue, as I'm unsure on how to tackle that problem right now.

Okay, update for the time being: the logic for the field dependencies has been updated, but it glitches if the user changes several fields too quickly after one another. If you wait 4 seconds between toggles of fields, there is no issue, but if you do not, the dependent field will appear and then immediately disappear again. Any insight on why this happens is appreciated, at this point I am ready to rewrite all the dependency logic to solve this.

Yes I can provide some insight;
There are 2 problems working here, both related to code speed.
The first: The dependency checks using jQuery were unnecessarily slow. This was caused by (re-)searching for the relevant elements in the entire DOM. For example:
$('input[type=checkbox]').each( //something );
$('input[type=checkbox]').change();

This will do the search for all checkboxes on the page twice, which is slow.
let checkboxes = $('input[type=checkbox]');
checkboxes.each( //something );
checkboxes.change();

This will do it once, taking half the time.
As you can guess, this causes some of the problems, as sometimes the checks were taking longer than the speed of the user's clicks.
I've pushed a commit which not only removes the duplicate searches, it also limits the searches where possible to part of the DOM. (Mostly when searching for the checkboxes, which is now limited to the ul element that contains them.) This makes the entire process much more speedy. It's still possible to get the problems as before, but it should be way harder.
The second: This one is similar, but also different, to the first. check_field_required does a POST request and resolves it asynchronously. This means the JS is unblocked while waiting for the server's response, allowing changes that might invalidate the post request that's being done. Thus, throwing the page into an invalid state.
I didn't resolve this issue, as I'm unsure on how to tackle that problem right now.

Nice! This is indeed faster and better, thank you for explaining. As for the second issue: I must confess I do not fully understand, but I am happy to hear your in-person explanation of the problem!


Is there a d.ts type definition file for 0.14?

Is there a d.ts type definition file for 0.14?

Closing as the TypeScript definitions are actually a third-party project, so you should get in touch with the maintainers.


[2.3 beta] Use of @placeholder on other fields to aid input

The use of $param placeholder in the DS editor is great. Reduces annoyingly verbose help text. Is there anywhere else this could be applied?

the URL Parameters input on the page editor, param1/param2 or similar, since there is nothing in the UI to indicate they should be separated by slashes

That's as long as my list got.

Perhaps if the Text Input has a link validation rule it displays a http:// as placeholder?

Added your example as it's low hanging fruit (and a pretty good boost to UX as well!)
My comment is more complicated and more prone to error as only the regex is stored in the database, not the 'validator name' so working this out would be involved than I'd like. I'm also having second thoughts on how accurate http:// would be in this scenario.
Leaving open for others to brainstorm on @placeholder opportunities but to be honest I think we have most of them :)

Adding placeholders would be a nice addition to your Custom Field Captions, Brendan. An option to switch between label or placeholder text.

Good idea!


chore(main): release 0.2.1

:robot: I have created a release beep boop
0.2.1 (2023-12-29)
Bug Fixes

need the token, yo (d483e79)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/bt-macole/flask-muck/releases/tag/v0.2.1 :sunflower:


Segfault on node server running on linux with a particular xls file

Hi,
I got a  Segmentation fault (core dumped) while trying to execute the readFile method on the following xls file. It's only happening while the node server is running on a linux machine. Works fine on windows.
Something to do with the compiler maybe? I'm using gcc 4.9.2 if that can help.
The incriminated file!
Thanks.

It is possible you ran into a node bug like https://github.com/nodejs/node-v0.x-archive/issues/8208 , especially if it worked on windows and not in linux.
For future reference: the original link 404s, based on the URL my best guess is https://files.datapress.com/london/dataset/london-business-survey-2014-business-performance-and-outlook/LBS 2014 BPM1 Turnover of London businesses.xls and this file works in the browser and in node


Manually Label New Windows

As a regular user of VSCode I would love the ability to manually label windows.
Use case:
I have a working window with a series of directories and all sorts of tabs. Let's say I'm developing a large application.
I open a new window as a scratch pad for something I want to remember that's outside of the context of the development.
A coworker asks for help on a project.  I open a 3rd window and open the working directory to begin helping them.
Given 3 windows now all named VSCode it would be easier to distinguish them in my desktop if they were labeled something specific.
Current State
Right now each window displays the current opened file

window.title can be used to change the title. Since you can store it as a workspace setting, you can have a prefix per window.

Thanks! This is a nice feature


Test and benchmark on VGG11 instead of VGG19

Codecov Report

Merging #27 (6c4150a) into master (39f2669) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #27   +/-   ##
=======================================
  Coverage   93.00%   93.00%
=======================================
  Files           9        9
  Lines         200      200
=======================================
  Hits          186      186
  Misses         14       14

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 39f2669...6c4150a. Read the comment docs.


Test files should be valid PureBasic source code

Originally written by @tajmone as part of some contribution guideline proposals:

Because we often need to cover invalid syntax elements which would lead to a compiler error (e.g. an invalid escape like \Z would raise a compiler error), or cover syntax quirks which are valid for the PBCompiler (e.g. a floating point number like 1.575e+1bananas is perfectly valid PB code, just as decimals with leading zero like 0001 are) we should ensure that each test file is a valid PB source that can be compiled.
In the case of tests for invalid code which is expected to raise compiler errors, we should just annotate what compiler errors are expected — e.g. the \Z escape resulting in the compiler error:
Invalid escape sequence in literal string: \Z

For a practical example of the above (except for the file naming convention), see the Tests-Fail/syntax_test_escapes.pb on my fork.
Since syntax tests can quickly grow in number and size, I think that annotating them is beneficial for both maintainers and contributors, especially if in the future the package might need a major revisiting because of a new PureBasic version having been released after the package wasn't updated for a long time (these things do happen, since life is unpredictable and it might as well be that both of use might end up not working with PB in the future, for various reasons).
Leaving behind well annotated tests and code can be a blessing for anyone taking on the project in the future, and also of great help for us if we end up not working on the package for a while — I often end up being spread thin across multiple projects, so my memory tends to fade away fast as I focus on what's right in front of me. Personally, I find annotated comments really useful when resuming work, they allow me to quickly get back on track knowing where I left things at.
Also worth keeping in mind, someone might use this repository as a reference to create a PureBasic syntax for another editor, in which case these comments will help adapting the tests and syntax definition to whatever system/format the target editor adopts. It's not unusual to come across a ST syntax based on a TextMate, Atom or VScode package.
Any annotations in the test file won't end up in the final package, so they are not a burden for the package, but can make a huge difference for contributors.
And, if my add, the list of PureBasic's language quirks is so long that it's hard to remember them all, and without comments they are not intuitive to grasp either. Example, try to compile the following code:
FloatingApples.f  = 1.575e+1apples
FloatingBananas.f = 1.575e+1bananas

If FloatingApples = FloatingBananas
  Debug "They are identical!"
EndIf

it's perfectly valid and will pass the test — a reminder that documentation claims like PureBasic being IEEE 754 compliant need to be taken with a pinch of salt, for even if it is compliant in behavioural terms it surely isn't compliant when it comes to its notation. Since PB relies on .f and .d to distinguish between the different types of float numbers, the PBCompiler captures and ignores any trailing [a-z] characters. Of course, none of this is documented anywhere, it's part of those "PureBasic things" which need to be learned the hard way, via trial and error, and often discovered by accident.
That's an example of an edge case that needs to be well commented in the test files, otherwise anyone looking at the test will fail to grasp what's happening. And of course, being able to compile the actual test file is the final proof regarding the quirk.

As mentioned in #45 this could be even be automated with something simple like this shell script:
#!/bin/zsh

set -e

for FILE in Tests/*(.)
do
    pbcompiler --check "$FILE"
done

The shell script is not portable enough, though. Originally this was only a proposal for the syntax tests anyway. I guess it is sufficient to just add it it to the CONTRIBUTING.md document.

Some PB Test Files Expected to Fail Compiling

As mentioned in #45 this could be even be automated ...

Bear in mind that we'll also need to include tests catching invalid scopes, i.e. code examples that would lead to compiler failure — e.g. an invalid escape character inside an escapable string, which should be scoped as invalid.[etc.], to warn the user that it will lead to a compiler error.
If you add to the build automation of testing all PB code by compiling, then you'll also need to ensure that there's either:

A file naming convention that allows to distinguish tests that are excepted to fail compiling (e.g. a trailing _fail before the .pb extension).
A dedicated folder for tests files that fail compiling.

The you could either skip the failing tests altogether, or expect an error exit code (although there is not much of a point in testing compiling failures).
Issue with PB License
Another issue worth considering is that PureBasic is a commercial tool, and its EULA doesn't allow installing it on third party machines.
I actually brought up the issue with Fred regarding using PB for CI tests (see fantaisie-software/purebasic#3), but he hasn't yet come up with a solution, although he is interested in this. Ideally, he could make an hoc version of the compiler that only tests the source, without generating a compiled file, which he could then make freely available for testing purposes. Either that, or authorize CI usage, provided that all precautions are taken to ensure that the uploaded PB package can't be downloaded by third parties or used to compile online by people who don't have a PB license.
I'm afraid that until then, or lacking and explicit permission, there's no way to integrate the PBCompile in a third party CI service, but only on machines owned by PB licensee.

You are completely right. Thanks for the CI issue reference, I subscribed to it.


CSV upload revamp

What does this PR do and why?
Closes #2017. Adds CSV upload for V1 and V2 payouts and reserve allocations. Adds template CSV files which can be downloaded for all CSV upload spots. Refactors CSV uploader into a generic, reusable component, and moves parsing logic into utils/csv
Future work could include populating the downloaded template with existing splits data.
Screenshots or screen recordings

Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

@jmilldotdev this looks perfect!!!
I think the UX is a bit visually confusing though. I think your initial idea of a tooltip with a download link in it is superior.
^ Upload CSV (?)

(hovering question mark reveals tooltip with Download CSV template download link in it).
WDYT?

not totally sure about having a double glyph @tomquirk

closing in favor of https://github.com/jbx-protocol/juice-interface/pull/2059


[Event Request] Page 54 - Purchase Order Subform - OnAfterNoOnAfterValidate

Hi AL-Team,
can you please add the following publisher with "IncludeSender" to NoOnAfterValidate?
procedure NoOnAfterValidate()
   begin
       UpdateEditableOnRow;
       InsertExtendedText(false);
       if (Type = Type::"Charge (Item)") and ("No." <> xRec."No.") and
          (xRec."No." <> '')
       then
           CurrPage.SaveRecord;

       // NEW >>>>
       OnAfterNoOnAfterValidate
       // NEW <<<<
   end;

[IntegrationEvent(true, false)]
   local procedure OnAfterNoOnAfterValidate()
   begin
   end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


optimize(apigateway): use climc ssh for cloud shell

What this PR does / why we need it:

Does this PR need to be backport to the previous release branch?:

3.11
/area apigateway webconsole

/hold waiting cherry pick to other branches

/hold cancel


docs: fix typo in import-types example

The current example is incorrect, the PR fixes that.
(Sorry about the EOL change creeping in, but that's odd that it wasn't there in the first place, as most sane editors always add it. Don't you want to enforce it? And perhaps adopt .editorconfig?)

Thank you @IlyaSemenov !
I'm all in with adding .editorconfig if you think it's useful. Didn't have the chance to try it for real :)


Windows Support

With ConEmu and Windows Subsystem for Linux (WSL) this should work.
References:

https://github.com/powerline/fonts
https://medium.com/@patoncrispy/oh-my-windows-4a8aa0a276db

@aaronkjones Have you considered Scoop instead of Chocolatey?
Here's a comparison between the two from the Scoop Wiki. Here's some other pertinent info as well.
Thanks!

@brianjking Thanks for the suggestion. I will check it out. I haven't been a Windows user in quite a while, so my knowledge on what tools are available is dated. Thanks again.

@aaronkjones -- Not a problem, thank you! I really hope you might opt for Scoop over Chocolatey for the Windows support.
I know the feeling about the Windows tools as I'm actually moving away from Mac and more towards Windows 10 & Linux.
I'm happy to help test this and have tagged @lukesampson (creator of Scoop) here as perhaps he can weigh in on any integrations. He also has a tool named Pshazz for customizing Powershell inspirted by Oh-My-Zsh.
Thanks!

Thanks @brianjking
On first glance it looks like Scoop does not have a bucket for Hyper by default.
Hyper is in the scoop-extras.
So I think this adds another step to installing Hyper.
Also, the Hyper install instructions reference Chocolatey.
I will continue to look into Scoop though.

@brianjking, I think this is a worthy replacement to Chocolatey. I will rewrite the steps in README.md. Thanks.

@aaronkjones Fantastic, thanks! Let me know how I can help out.


Added test for reservedNames bug in classes

Use case
I want to obfuscate a class, but I need one function name not to be obfuscated.
I specify the name of the function in 'reservedNames'
Expected
No matter how many times I perform the obfuscation, I am expecting the function name never to be obfuscated
Results
Running the test several times, I can see that the results are never consistent, and most of the time the behaviour is not the expected

Unfortunately I am not good with TypeScript so I was not able to provide a fix, but I was able to add a test case as a PoC of the bug.
Hope this was helpful

--Hạn Sử Dụng
if os.date("%Y%m%d") >= "20240925" then
gg.alert(" Script Hết Hạn","Ok")return end
--Mật Khẩu
Password = 'khaipham2006'
Pass = gg.prompt({"Nhập Pass Để Vào Script"},{},{"text"})
if not Pass then os.exit() end
if Pass[1] == Password then
gg.toast('Mật khẩu đúng')
else
gg.alert('nhập lại mật khẩu') os.exit()
end
function HOME()
  LOBE = gg.multiChoice({

  	"speed x60",

      end
      if LOBE[68] == true then
      A()
      end
      if LOBE[69] == true then
      Exit()
    end
  end
  LOBE = -1
end

function A()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("1.10000002384;-0.94999998808;10000;40000", gg.TYPE_FLOAT)
gg.refineNumber("1.10000002384", gg.TYPE_FLOAT)
gg.getResults(100)
gg.editAll("50", gg.TYPE_FLOAT)
gg.clearResults()
gg.toast("ᴀᴄᴛɪᴠᴀᴛᴇᴅ")
end
while true do
if gg.isVisible(true) then
LOBE = 1
gg.setVisible(false)
end
gg.clearResults()
if LOBE == 1 then
HOME()
end
end


Spike detection

This PR brings SpikeDetekt to phy (1 CPU only for now).

Individual spike detection processing algorithms in phy.traces
Spike detection main class in phy.cluster.algorithms
Improvements to the feature view
Improved HTML view models
Added a file logger
Clearer color map
Refactored feature view dimensions
KwikCreator creates Kwik files.
Load raw data from .kwd or .dat files in KwikModel
Multi-shank capabilities in MEA class
session.detect_spikes() can be used to launch spike detection on the data
Bug fixes

Closes

Closes #212
Closes #217
Closes #220
Closes #343
Closes #347
Closes #348
Closes #351
Closes #352
Closes #356
Closes #360
Closes #364
Closes #365
Closes #369
Closes #370
Closes #371

rebased

@nippoo you can start reviewing this

rebased done


wip Rollback

test passed, let's see if it was luck
/retest

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

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

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

/close let's sweep this under the rug.

let's sweep this under the rug.


@material-ui/core

Is this dependency really required?
Is on your roadmap remove it? I could try to help you with this

Hi Ivan,
The only reason I did use this depencency was to give a basic UI to the component.
I would appreciate a pull request.


[BUG]pydantic_core._pydantic_core.ValidationError: 1 validation error for Config paint_by_example_example_image   Input should be an instance of Image [type=is_instance_of, input_value=None, input_type=NoneType]

Model
LAMA
Describe the bug
[2024-01-24 09:36:41,914] ERROR in app: Exception on /inpaint [POST]
Traceback (most recent call last):
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\lama_cleaner\server.py", line 259, in process
p2p_guidance_scale=form["p2pGuidanceScale"],
File "E:\wss\python\pycharm-work\lama-cleaner-0.37.0\venv\lib\site-packages\pydantic\main.py", line 164, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for Config
paint_by_example_example_image
Input should be an instance of Image [type=is_instance_of, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.4/v/is_instance_of
System Info
(venv) E:\wss\python\pycharm-work\lama-cleaner-0.37.0>python main.py --model=lama --device=cpu --port=8085

Platform: Windows-10-10.0.19041-SP0
Python version: 3.7.2
torch: 1.13.1
Pillow: 9.5.0
diffusers: 0.12.1
transformers: 4.30.2
opencv-python: <IP_ADDRESS>
xformers: N/A
accelerate: 0.20.3
lama-cleaner: N/A

2024-01-24 09:33:59.046 | INFO     | lama_cleaner.helper:load_jit_model:102 - Loading model from: C:\Users\wss.cache\torch\hub\checkpoints\big-lama.pt
2024-01-24 09:33:59.799 | INFO     | lama_cleaner.helper:load_jit_model:102 - Loading model from: C:\Users\wss.cache\torch\hub\checkpoints\clickseg_pplnet.
pt

Running on http://<IP_ADDRESS>:8085/ (Press CTRL+C to quit)
<IP_ADDRESS> - - [24/Jan/2024 09:34:06] "GET / HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:07] "GET /model HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:07] "GET /inputimage HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:07] "GET /is_desktop HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:07] "GET /is_disable_model_switch HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:07] "GET /is_enable_file_manager HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:07] "GET /is_enable_auto_saving HTTP/1.1" 200 -
<IP_ADDRESS> - - [24/Jan/2024 09:34:14] "GET /model HTTP/1.1" 200 -

Hello, could you please try the new version? 'Lama-cleaner' has been renamed to 'iopaint'. pip install iopaint


Resource group template

Afternoon,
i had to edit the rg- template
from:
"type": {             "value": "Microsoft.Resources/resourceGroups"           }
to:
{             "field": "type",             "equals": "microsoft.resources/subscriptions/resourcegroups"           },
in order for it to work.
Thanks,

Dear @jagsandhu,
thanks for reporting that issue. It is fixed now (already merged to master)!
Best regards, Matthias


Support non-simple refs in rule heads

The following Rego is valid now
package test

a["b"][{"c":"d"}] = 5

Earlier in my experiments this didn't seem to be valid and we have an explicit check against this. producing a "not a simple ref" error.
We will need to revisit this.

Reproduction example:
package test

multi[null][1] = 1


UCAN redelegation API exploratory phase

Estimated to take a couple of days at most. The basic idea is what used to be called app-to-app linking in AOL, but even that was really the ability to delegate a subset of capabilities.

Fast follow for AOL app-to-app linking!


ci: Switch working directory for aspnetcore-publish job

Description
During the last release, I noticed a warning in the aspnetcore-publish job. I've updated the working-directory to target the .NET project instead of the .NET solution to get rid of the warning.

@xC0dex seems like theres a formatting error? https://github.com/scalar/scalar/actions/runs/11149554994/job/30988695293?pr=3346

Yeah but I don't know why. I didn't touch the file 👀. I'll try to fix it on Friday, when am back at home.

It looks like your editor does other line endings than ours. When I modified some of your files it changed all line endings, maybe that’s why. We should probably add an .editorconfig to the root.

@hanspagel Maybe the .editorconfig in the aspnetcore package folder has some configuration that doesn't fit the requirements?

Warning will be fixed in https://github.com/scalar/scalar/pull/3370

Finally, no pipeline failures 😆.

we are so back :)


Stop using print() for logging

I've noticed that GPy uses a non-uniform system of logging, some messages are logged with logging lib, some with warning, and there are many cases where the print() function is used (sourcegraph scan). It makes difficult to control output messages of the lib. Please, can you use only logging lib with a defined logger?

This is a good idea but would benefit from a contribution from the reporter. As this is stale, I'll close it, but that doesn't invalidate the concern by any means.


Built-in spell-checker is cool, but I think it should be turned off by default.

Just a little suggestion.
First of all, since the spell-checker is just a tool for checking english typo, but not other languages, it become useless when user writes in other language, because it cannot recognize them. Secondly, not every words are collected into the spell-checker's dictionary. For example, currenly the type-checker does not understand the word Photoshop. Lastly, I don't think we need a spell-checker
at any time, since writing is not coding. Sometimes I just want to note something, and I do not care if there are any typos in my sentences.

I think spell-checking isn't an essential job to a editor, in contrast, recording markdown, translating it to html and displaying it properly on the preview is. In my opinion, the out-of-box features should only includes those essentials. If anyone wants more, he/she can add extra function via config.

Do you try options.spellchecker: false ?


Add error link

Description
Add default graphql error links. Mostly from 1 & 2
Before the error link

after error link

Type of change

[ ]  Patch: Bug (non-breaking change which fixes an issue)
[x]  Minor: New feature (non-breaking change which adds functionality)
[ ]  Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[ ] I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish new version)

Thanks for the review @TheMallen
would love to know if you have any feedback on how to make the code nicer.
Apollo tired really hard NOT to conflate network error with GraphQL error.
This implementation here actually take a network error and pretend it is an GraphQL error. Which mean this error would show up as an error in const {error} = useQuery()
I can also leave it as a network error with better message. But so far in my test I dont see the network error getting log in splunk.


[feat]: enable preserveConstEnums

This should always enable when enabled isolatedModules. That means you cannot disable this when enabled isolatedModules.

Moreover, we should not use const enum expression.


[ Conv2D ] Add Thread to calculate backwarding

Add Thread to accelerate backwarding calculation.
Seperate DelK Calculation.
Signed-off-by: jijoongmoon<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #442. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.

Threading for performance enhancement requires validation with experiments in target devices. You need to check if there are excessive overheads from it.
Although I'm not familiar with C++/std/thread (so I'm not sure if they are already addressed with std::thread or not), you need to check:

The need for thread pooling: if (re)creating threads incur some overheads, you may consider thread pooling (persistent threading?)
Task distribution (skewed? even?), and critical sections (safety).
Overheads / inefficiency due to data locking.

Certainly we have to test it on device. But I share the pc result about mnist example ( 1 epoch ).
without thread.
#0/1 - Training Loss: 2.30256 >> [ Accuracy: 11.5927% - Validation Loss : 2.29918 ]
real 0m5.183s
user 0m10.069s
sys 0m0.305s

with thread
#0/1 - Training Loss: 2.30256 >> [ Accuracy: 11.5927% - Validation Loss : 2.29918 ]
real 0m4.433s
user 0m.9.592s
sys 0m0.160s ```

Creating thread internally in backwarding for a layer is a CPU specific solution.
These multiple threads might not directly speedup for GPU/other devices.

Creating thread internally in backwarding for a layer is a CPU specific solution.
These multiple threads might not directly speedup for GPU/other devices.

I guess these calculations can be done at the same time. They are not totally independent. And I think con2d function itself can be accelerated by the GPU/other devices. not the layer I guess. However reusing thread pool is better I guess. I will leave it at #453. Let's have this issues in mind when we implement delegate.


[Feature]: Add contributors to the readme

Feature Summary
Show off all the people who work on Cuttle
Detailed Description
Maybe something like this? https://contrib.rocks/preview?repo=cuttle-cards%2Fcuttle
ideally this could be a node script on this repo as a tool to generate a static list, could also be manual. Might be nice to show off with this service to start.
Part of this issue should be to research other repositories and see what they are doing.

Assign Me

Please check PR

@Pavan-Kamthane sure thing! Before implementing anything I’d really like to see what other open source repositories are doing to showcase their contributors.
I’ll do some research in my side, too. Once you post some examples or put up a PR @itsalaidbacklife snd I will look at it and make a call as to which style we prefer.
Possibly something like all contributors, https://github.com/all-contributors/all-contributors.
It would be nice to give non coders a chance to be in there, too. We have a lot of people helping in the Discord server, too.

There’s also a bot that will handle a lot of it, https://allcontributors.org/docs/en/bot/overview.
I think for the time being a contributors section on the readme might be enough, never hurts to look around though.

@seriouslysean pr is drafted (#145)

Closed by #145


Fix incorrect use of display slot indexes

Sponge | SpongeAPI
In this PR I'm attempting to fix the bug I found updating display slots in API-8.
The use of the display slot indexes was wrong. So for example when I tried to display an objective to the sidebar, it actually appeared in the sidebar.aqua.
I decided to put an id field on the SpongeDisplaySlot. I tested every cases when display slots were used, and it seems to fix the bug.
Also, I noticed that some the parameters ChatFormatting color, @Nullable final Function<ChatFormatting, DisplaySlot> withColorFunction are always null, even for colored display slots.
I can update this PR to fill the color parameter, but for withColorFunction I don't know what I need to put into.
Need your feedbacks for this.
Also, I made a little change in the API, like we talked about a while ago with Zidane and Masa.
Thanks for reading this PR

Hi @thibaulthenry - I'm sorry this hasn't been looked at until now.
withColorFunction is really weird here. It's meant to be used as a function to get a DisplaySlot based on the supplied colour. For some reason, it's been made an instance method on DisplaySlot when really, it should not be.
That said, is there a use for getting an objective by colour? I'm not sure there is. If not, the withTeamColor method should be removed, and with it, the withColorFunction parameter. If so, that method should be static and (probably) call into a factory that does the selection for you.

Hey, I'll not be able to look at it until this week-end but yeah, I'll try to fix things with your feedbacks


refactor: Node’s native functionality used to get random port

Typings. nuxt.listen() handles numbers and strings as port property (see test). For example, a string might be useful if config is read using process.env.
URL class. I had to add it, because nuxt.listen() returns url with trailing slash included. That’s why ctx.url + '/' did not work. In general URL makes usage more flexible for the user (see test).
get-port. Was factoring out. I was looking at get-port’s code and could not fully understand how it works. Went to check Node’s docs on server.listen():

If port is omitted or is 0, the operating system will assign an arbitrary unused port...

It means that by calling nuxt.listen(0) we get random port with having a dependancy. Factoring out also effectively mitigates get-port’s tiny chance of a race condition.
Benchmark. Checked speed, but I did not find any before / after difference.
Tests. I was trying to see if there is any need to validate the port value before passing it to nuxt.listen(). Only number and string are allowed in typings, so I was focusing only on these two (not arrays, objects, etc). Seems like nuxt, connect and node handle everything properly and throw errors. There is no need to validated the value. Tests were left in place as a proof. Good to have them for the future as well.

To move on I would like to:

[ ] add one feature to get-port-please
[ ] make one optimisation inside listhen
[ ] find out why got is not working with listhen (did not look at it carefully and, of course, will migrate to ohmyfetch, but would be good to know what didn’t work).

Working on this. Really fun to play with these small libraries.

get-port update (2.2.0) released

Found better solution.


test: Change test case

Checklist:

[ ] Tests for the changes have been added (for bug fixes / features / refactoring)

Codecov Report

Merging #144 (db6ce84) into main (f8011ee) will increase coverage by 1.35%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #144      +/-   ##
==========================================
+ Coverage   19.90%   21.26%   +1.35%
==========================================
  Files           5        5
  Lines         221      221
==========================================
+ Hits           44       47       +3
+ Misses        175      171       -4
- Partials        2        3       +1

Impacted Files
Coverage Δ

internal/openapi3/mediatype.go
76.19% <0.00%> (+14.28%)
:arrow_up:

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 f8011ee...db6ce84. Read the comment docs.


Bug: Uv can't install Ruff when given a minimum bound spec

Setup:
uv init --name bug-report-1 --lib --package ./bug-report-1
cd bug-report-1
uv add 'ruff>=6'

Error:
Using CPython 3.13.0
Creating virtual environment at: .venv
  × No solution found when resolving dependencies:
  ╰─▶ Because only ruff<=0.8.0 is available and your project depends on ruff>=6, we can conclude that your project's requirements are
      unsatisfiable.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing.

My env:
MacOS latest
uv --version
uv 0.5.4 (Homebrew 2024-11-20)

Do you mean ruff>=0.6?

Haha it’s all good! Glad it’s an easy fix.


Send webhook based on field value change of model.

Hi,
Works like a charm, but wondering how i could best implement the following:
Is there a way to save a specific webhook per field of a model. For example:
I have a transaction model, that has an options field that can be "expired", "pending", "completed".
I would like to setup specific webhooks when:

status has changed to exipred
status has changed to pending
status has changed to completed.

Thanks

ah got it. That worked well.
One more question :)
Is there also a way to NOT send a webhook, when i'm using webhook_data()  ?
I only want to send a webhook on a model UPDATE if the transaction belongs to an organization. I currently achieve this be checking if the webhook.url corresponds with endpoint.url. However, if that statement is false, it will still send an empty webhook. How do i make sure that webhook is not send?
Thanks!

I can confirm this works perfectly. Thanks for that release!

One more thing ;)
We want to use this for our customers, so they can get webhooks from our application. However... they should only receive the webhooks from their organization.
I tried it with setting up different webhooks on the same model in the backend like this:
Customer1:
models: api.models
signal: update
endpoint url: www.xxx.com
Customer2:
models: api.models
signal: update
endpoint url: www.yyy.com
And the custom code:
        webhook = Webhook.objects.get(endpoint=self.organization.payload_url)

        if webhook.endpoint == self.organization.payload_url:

            return {
                'order_id': self.order_id,
                'order_number': self.order_number,
                'first_name': self.first_name,
            }
        else:
            raise WebhookCancelled("Transaction not completed")

However, that won't work. Because one of the webhooks will always fire and send the webhook to both organizations. Perhaps i'm missing something obvious, but i can't figure out to split this per customer.

Hmm, you might need to write a custom post_save_handler (see the default one here) to filter the webhooks that get fired based on the data you get from .webhook_data(). Then you point to your handler in the project settings:
SIGNAL_WEBHOOKS = {
    "HOOKS": {
        "path.to.my.model": {
            "CREATE": ...,   # default handling
            "UPDATE": "path.to.my.handler",  # custom handling
            "DELETE": ...,   # default handling
        },
    },
}

It's not ideal, as you might need to duplicate a lot of the code in the default handler. I'll make a note on this, maybe I can think of a good abstraction level where the filtering rules could be placed. Tell me how it works out!
ps. I'll close the issue as the original problem as been solved, but feel free to keep commenting if you have any questions

Hi, I simplified the inner workings of the library a bit and added an abstraction level for filtering the webhooks that are fired per-model, per-method. You can now define a FILTER_KWARGS setting for a custom function that adds keyword arguments to the QuerySet.filer() used to fetch the hooks. In you case, you could do something like this:
# /myproject/settings.py

SIGNAL_WEBHOOKS = {
    ...
    "FILTER_KWARGS": "path.to.file.my_filter_handler",
    ...
}

# /path/to/file.py

def my_filter_handler(instance: Model, method: Literal["CREATE", "UPDATE", "DELETE"]) -> Dict[str, Any]:
    if isinstance(instance, Customer) and method == "UPDATE":
        return {"endpoint": instance.organization.payload_url}
    return {}

This has been released in v0.2.4. If you decide to update, you'll need to adapt your custom hook handler (if you decided to write one based on my previous comment) to the new function signature or use the new abstraction level with FILTER_KWARGS.


How will this app be useful for the average user?

After configuring the client, on the phone, and the server, on the computer, will I be able to use the IP address specified on the server side, on the phone?

Sorry, I missed this important part. Client Token should be  "<IP_ADDRESS>:22333" currently.
"<IP_ADDRESS>" is your server ip.
22333 is your server deploy config.
no security authentication is applied yet.

Update and close


Feature/operation improvements

Store stages in slice instead of map to keep order of execution

/hold

/unhold

/lgtm

/lgtm


Enable GitHub auth for leap grafana and enable "allow_sign_up" for 2i2c

Follow-up to https://github.com/2i2c-org/infrastructure/issues/1437
Reference: https://github.com/2i2c-org/infrastructure/issues/1279

I've deployed this and it works


how to support the spi+rgb lcd (st7701s) (IDFGH-8787)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
in idf5.0, there is a RGB lcd demo,but that cant driver the lcd IC st7701s,there are some doc about the lcd,how can I make it to support the lcd.
Uploading ST7701S_SPEC_ V1.pdf…

I guess you have to use the SPI interface to configure some ST7701 registers, then the normal RGB interface can work. FYI, Espressif has one reference design of RGB LCD kit which also relies on a special SPI initialization sequence: https://github.com/espressif/esp-dev-kits/blob/master/esp32-s3-lcd-ev-board/components/bsp/src/boards/lcd_panel_config.c

thank for your reply
anther question, how can I make it to running  in a idf5.0 demo derectly

Except for the SPI initialization code, other parts you can reuse the IDF example code.


Busy on Busy options

Another way to connect this for people is to use the term "Call Waiting", at least that is what I tell North American customers what Busy-on-Busy options are.  Just a thot.

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

ID: 410fc30b-f530-8443-0602-9150c9cba115
Version Independent ID: c5b33b25-147b-f7d4-056a-987088950e7c
Content: Calling policies in Microsoft Teams - Microsoft Teams
Content Source: Teams/teams-calling-policy.md
Service: msteams
GitHub Login: @SerdarSoysal
Microsoft Alias: tonysmit

@Korbyn72 Thanks for the suggestion. We appreciate your feedback.


Issue #42 A better way to manage the version on install

Hi @xabbuh , is this PR ok for merging ? :smile:

@Pierstoval I'm not the one to decide, but to me it looks ready. :)

Fine, thanks ! We'll just wait for it to be merged, I think it's an awesome feature !
I just installed a new SF2.6 app some days ago and was surprised that I couldn't do "new app/ 2.6" , when I remembered that it was only available in my local machine :laughing:

Thanks @Pierstoval for working on this feature. The Symfony Installer is now almost complete!


utxo balance cache

right now we are updating it based on mempool to allow for tx chaining, but that causes inconsistencies

fixed here https://github.com/CounterpartyXCP/counterparty-core/pull/2828