FR: Volvo Trucks Magazine Subscription Bar

Agile Requirement
As a business owner, I want users to be able to subscribe to the magazine so that they can receive the latest updates from Volvo.
https://www.figma.com/file/SDLKNiRf0s5Jbhqn9TJZ6H/Magazine?type=design&node-id=446-14332&mode=design&t=r6mxfCT8zuQckpuW-4
Description
A block used to allow users to subscribe to a newsletter will be developed. This block will be used on #211 - Template: Magazine Article but can be used outside of the template, as a stand-alone block (e.g. on the Magazine Page).

@DanielaPedrochevd Per discussion with @williebender, we need to reuse the subscription form on the homepage. No need to create a new one. Closing as duplicate.


align versions

currently package is <IP_ADDRESS>, a executable is 0.2.0
discuss and agree and update code

0.2.0


Row Detail Page / Dashboard

I am trying to implement a Dashboard like detail page for a row/entity type.
My plan is to create a dialog, (separate from the edit dialog) that is full page. I have successfully done this. I have a action button in my grid view to launch the full page dialog. That is where I am at so far.
The entity/table I am doing this for is Job, I have a separate table for Time Spent Entries, Employees, and Time Spent Categories. I would like to create a nested list with total time spent for the job, grouped but categories, then under categories with will be broken down again by user. Then I would like to do a second list doing the same but with the reverse.

Then I would like to have 2 bar graphs populated with this information.
I can't find any examples that actually do something like this with real data. Can someone help me get going in the right direction?
this is the starting code I have for my Detail Dialog
namespace BetzIntranetApplication.Betz {

    //@Serenity.Decorators.registerClass()
    //@Serenity.Decorators.responsive()
    @Serenity.Decorators.panel()
    export class JobDetails extends Serenity.EntityDialog<JobRow, any> {
        protected getFormKey() { return JobForm.formKey; }
        protected getIdProperty() { return JobRow.idProperty; }
        protected getLocalTextPrefix() { return JobRow.localTextPrefix; }
        protected getNameProperty() { return JobRow.nameProperty; }
        protected getService() { return JobService.baseUrl; }

        protected form = new JobForm(this.idPrefix);

    }
}

This is my JobDetail.Template.chtml Mock up code

Hours Spent by Catagory

Controls - 500 Hours

Bob - 200 hours

Jim - 300 hours

Mechnaical Design - 333 hours

Bob - 133 hours

Jim - 200 hours

Machining - 200 hours

Bob - 100 hours

Jim - 100 hours

Hours By Employee

Bob - 533 Hours

Controls - 200 hours

Mechanical Design - 133 hours

Machinging - 100 hours

Jim - 600 hours

Controls - 300 hours

Mechanical Design - 200 hours

Machining - 100 hours

Something similar https://github.com/volkanceylan/Serene/tree/master/Serene/Serene.Web/Modules/Organization/BusinessUnit

or SlickGrid Group  https://github.com/volkanceylan/Serene/tree/master/Serene/Serene.Web/Modules/BasicSamples/Grids/GroupingAndSummariesInGrid
and function
buttons.push({
                title: 'По договорам и типам',
                cssClass: 'expand-all-button',
                onClick: () => (this.view.setGrouping(
                    [{
                        formatter: x => x.value + '
' + (Math.round(x.totals.sum.Debet * 100) / 100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + "" + '' + (Math.round(x.totals.sum.Credit * 100) / 100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + "
",
                        getter: 'DogovorNumber'
                    },
                    {
                        formatter: x => x.value + '
' + (Math.round(x.totals.sum.Debet * 100) / 100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + "" + '' + (Math.round(x.totals.sum.Credit * 100) / 100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + "
",
                        getter: 'TypePayName'
                        }]),
                this.view.collapseAllGroups(1),
                this.view.collapseAllGroups(0), opt.rowsPerPage = 10000)
            });

Zahar611, Thank you for your response. Those are for grids though, can the Business Unit example be adapted to be placed in a widget like component?
I'm looking do do this for an individual Job row, so if they click on say Job number 501, it will give them a detail page for just the job. The first "Widget" I would like to put on there is a small tree view of the hours spent on that job. Really what I want to do is have a dashboard an individual Job row, with Graphs and other ideas. the hours spent tree is just the first step.
P.S. I'm doing this as a hobby/to learn. Nobody is paying me, I just want to learn. So help is very appreciated.

I have a similar solution, but not very beautiful
var model = new DashboardPageModel();

            string html_text = "";

            int OrgID = 0;
            int CategId = 1;
            var s = ServicesRow.Fields;
            string cat = "";
            using (var connection = SqlConnections.NewFor<ServicesRow>())
            {

                if (Convert.ToInt32(Authorization.UserId) > 0)
                    using (var connectionUser = SqlConnections.NewFor<UserRow>())
                    {
                        UserRow user = connectionUser.TryById<UserRow>(Convert.ToInt32(Authorization.UserId));
                        OrgID = Convert.ToInt32(user.OrganizationID);
                    }
                if (OrgID > 0)
                    using (var connectionOrg = SqlConnections.NewFor<OrganizationRow>())
                    {
                        OrganizationRow organization = connectionOrg.TryById<OrganizationRow>(OrgID);
                        model.Organization = organization;
                        CategId = Convert.ToInt32(organization.CategoryClientId);
                    }
                SqlQuery queryServices = new SqlQuery();
                queryServices.Select(s.ServiceId, s.Name, s.Price, s.Description, s.Limitation, s.Value,s.ServiceGroupId)
                .From(s)
                .Where(s.ServiceStateId == 1 & s.CategoryClientId.Like("%"+CategId+"%"))
                .OrderBy(s.ServiceGroupId,s.Cod,s.Name);

                var queryResult = connection.Query<ServicesRow>(queryServices);
                int ro = 0;
                int i = 0;
                /*

                 */

                string activ = " active";
                int gId = 0;
                foreach (var servis in queryResult)
                {
                  if (servis.ServiceGroupId!= gId) {
                        cat += servis.ServiceGroupId + ",";
                        if (ro > 0) html_text += "
";
                        if (gId != 0) html_text += "
";
                        html_text += "
";
                        activ = "";
                        if(servis.ServiceGroupId!=null) gId = (int)servis.ServiceGroupId;
                        ro = 0;
                    }

                    if (ro == 0) html_text += "
";
                    html_text += "

";
                    html_text += "
" + servis.Name + "
 " + servis.Value + "
";
                    html_text += "
";
                    html_text += "" + Convert.ToDouble(servis.Price).ToString("#,0") + " руб.";
                    html_text += "Срок: " + servis.Limitation + "
";
                    html_text += "Описание" + servis.Description + "
";
                    html_text += "
<button class='btn btn-box-tool pull-left' data-widget='collapse'>Подробнее</button>Заказать
";//javascript:new TSRUTS.LK.ServiceInOrganizationDialog().loadNewAndOpenDialog()
                    html_text += "

";

                    ro++;
                    i++;
                    if (i >= color.Length) i = 0;
                    if (ro == 2)
                    {
                        html_text += "
";
                        ro = 0;
                    }
                }
                if (ro > 0) html_text += "
";
                html_text += "
";
                model.ServiseRow = new HtmlString(html_text);
            }

            var sg = ServiceGroupRow.Fields;
            using (var connection = SqlConnections.NewFor<ServiceGroupRow>())
            {
                string[] cat_Arr = cat.Trim(',').Split(',');
                html_text = "";
                string activ = " class=\"active\"";
                foreach (var c in cat_Arr)
                {
                    var sG = connection.ById<ServiceGroupRow>(c);
                    html_text += "

" + sG.Name + "

";
                    activ = "";
                }
                model.ServiceGroup = new HtmlString(html_text);
            }

            return View(MVC.Views.Common.Dashboard.DashboardIndex, model);

.shtml

                                @Model.ServiceGroup

                                @Model.ServiseRow

Thank you very much Zahar661. I believe that is the direction I needed. It will probably be this weekend before I can try it myself though.

@Zahar661 I assume you meant not very elegant, cause I find your screeshot beatiful. I want to have interface like that, cause my boss does not like "admin"/wordpress-like interface.
How did u achieve that layout?
Did you ditch default theme completely?

this default theme. just the layout of the page

oh. no matter. still looks good. If only I could hide left menu for certain class of users.
Is this a Dash Board? (my Russian is dusty:)
I assume you have tabs on top. What do Icons do?
The items below icons are blog?
Can I put Sergen generated forms on tabs?

so you can hide the left panel for some users

Sergen generated forms on tabs

@Zahar661 This would make a nice wiki article - beautiful or not - looks pretty good to me ..


Hi Team,

[Enter feedback here]

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

ID: a7e0a294-1b8a-1711-6f80-cb9ee87730ad
Version Independent ID: 46e6645b-48ca-fa7c-1fb9-bc3442fde1d7
Content: Kubernetes on Azure tutorial  - Deploy an application
Content Source: articles/aks/tutorial-kubernetes-deploy-application.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

@satish225 Is there any specific document feedback you want to give on this document? If so please provide the entire feedback/query you have on this document and the appropriate team will look into the feedback.
As for now there is no issue/comment from you on this issue provided, I am closing this Issue.

External IP not responding Bad gateway 502


Hackage has version that has package constraints

Hi,
We are planning on using your tool in our system, however, the Hackage version of it unfortunately misses your commit 5abbc3e8c021b572b3b157b12be14b80a6485f3f, i.e. "remove package constraints"  This means that we can't add it as a dependency, as then we have issues with dependencies that cannot be met.
Maybe you have forgotten to upload the new version to Hackage? Or is there a reason why the new version is not on Hackage? I'd love to use your tool directly from Hackage. Would it be possible to push the new version, without the package constraints, to Hackage?
Thanks a lot in advance,
Mate

Greetings. I indeed didn't upstream the commit to Hackage. On Hackage, a more strict semver policy is enforced (though in practice, it seems to be only encouraged). The constraint removal commit is only a hacky one to quickly fix another project that depends on this.
I will add a more precise dependency and upstream it to Hackage ASAP.

Thank you so much! That would help us a ton. We are using it to parse the response from SMT solvers for our symbolic execution framework, in progress, here: https://github.com/ethereum/hevm (open source, of course)
Thank you again and looking forward to the fix on Hackage,
Mate

I relaxed the version constraint and tested it with stackage lts-19.27 and made it available at hackage. Let me know if this solves your problem.
Thank you for wanting to use it, but a word of warning though: only the function definition part is tested thoroughly in another project and I was told parsec may not be efficient enough for performance critical use cases.

Yaaaaay, that fixed it! Thank you so much! I am the developer of CryptoMiniSat and [ApproxMC](https://github.com/meelgroup/approxmc/ and work on https://github.com/stp/stp/ -- if you ever need anything, just ping me at @msoos
Cheers,
Mate

Glad to help.


Asset helpers not working post upgrading to ruby 2.7

@envygeeks
Hi ,
I am facing issue with  below scenario, is there anything I am missing ?
Gemlist
Upgraded ruby verison from 2.5 to 2.7
Jekyll version  3.9.2
Jekyll assets 3.0.6
Sprockets 3.7.2
sprockets-assets latest
sprockets-helpers
In css/main.scss
.bg {
 background: url(asset_path("account_member_roles_1@1x.png"));
}

tried
asset_path , asset_url, image-url, asset-url didn't work
_config.yaml
baseurl: "/help" # the subpath of your site, e.g. /blog/
destination: _site/help
incremental: true
plugins:

octopress-autoprefixer
jekyll-assets

markdown: kramdown
kramdown:
input: GFM
collections:
articles:
output: true
sass:
sass_dir: css
exclude:

/.asset-cache/* # Files with [._#] that Jekyll doesn't alread manage need a leading slash.
/.buildkite/*
.dockerfileignore
Capfile
cicd/*
circle.yml
config/*
Dockerfile
Gemfile
Gemfile.lock
gems/*
Guardfile
lib/*
nginx.conf
nginx.docker.conf
node_modules/*
Rakefile
README.md
script/*
spec/*
vendor/*

assets:
assets:
- "*.svg"
prefix: "/kb_assets"
sources:
- _kb_assets/images
- _kb_assets/stylesheets
- _kb_assets/javascripts
- _kb_assets/image
- _kb_assets/img
- _kb_assets/css
- _vendor/stylesheets
- _vendor/javascripts
sources:

_kb_assets/css
_kb_assets/fonts
_kb_assets/images
_kb_assets/videos
_kb_assets/javascript
_kb_assets/video
_kb_assets/image
_kb_assets/img
_kb_assets/js
_kb_assets/stylesheets
css

All css files sit in the root/css folder

It seems I have similar problem.

ruby-2.7.2
jekyll-4.3.2

Maybe I use it wrong way? I added this plugin to existing project which have folders:

:file_folder: _sass

:page_facing_up::page_facing_up: *.scss

:file_folder: assets

:file_folder: css

:page_facing_up: styles.scss — main file

:file_folder: images

I tried to move images and styles to :file_folder: _assets without any success.
Is there any documentation except README.md?


[BUG] Cuda out of memory on Linux during inference

Before You Report a Bug
My setup is a GTX 1660 Super, Ryzen 5600G (16GB ram).
Bug Description
I use Applio on both Windows 11 and Linux (Arch), but on Linux, it is giving this Cuda out of memory error, both in the last version and in the last commit.
Steps to Reproduce
Outline the steps to replicate the issue:

Simply make the inference with the default settings

Expected Behavior
Make the inference without giving cuda out of memory
Assets

Desktop Details:

Operating System: Linux (Arch Linux, Gnome)
Browser: Microsoft Edge

Additional Context
I'm not using IAHispano's fairseq.

It could be because a lot of things but I think is one of this:

Your GPU driver is outdated: https://docs.nvidia.com/deeplearning/cudnn/latest/reference/support-matrix.html
Your GPU only has 5 GB of VRAM and it's also a GTX which there's some people having issues with them

Thank you, it really was a driver problem, but it wasn't because it was outdated, it was because it wasn't installed, both cuda and cudnn. I installed it and solved the problem

Applio uses identical code for GPU detection and utilization in both RVC WebUI. We only chnaged the Torch version, hence I'm sharing this link (https://docs.nvidia.com/deeplearning/cudnn/latest/reference/support-matrix.html) for you to verify compatibility with our current setup.

@aitronssesin  In theory, my GPU was supposed to run smoothly. But even with the latest version of the drivers and cudnn in a clean Arch installation, it still gives me this Cuda out of memory problem, which doesn't happen with the RVC Web UI. Honestly, I don't know why this happens, since it doesn't happen on Windows on the same PC

It could be an issue with Arch because in my Ubuntu server it works without any issues.

It may be, but it doesn't make sense for the RVC WebUI to work without problems

Yes because of the torch version maybe

I tried updating torch, torchaudio and torchvision, but the Cuda out of memory problem still occurred

Sorry I didn't explain me well I was saying that probably the newer torch version we are using is broken in arch but try this:
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu121

I didn't explain myself well either, I updated to the version I was using on the RVC Web UI. But I tested the version you sent and the problem still exists. I also noticed that Applio doesn't seem to release the VRAM until I close its window in the terminal


default notification shows every time when vue-i18n changes lang

Describe the bug
notification shows when i18n updates template
To Reproduce
Steps to reproduce the behavior:

create component with custom template for notification
inside this template use vue-i18n and write something like v-html="$t('notification.some.text')" or just {{ $t('notification.some.text') }}
this notification shows and hides as expected
but another default notification (green with title "Success") shows with text as {some: { text: "actual text" }} EVERY TIME AS TRANSLATION CHANGES
it shows when I switch from default to another language, but not from another to default
template was created as separate component

Expected behavior
Success notification not shows when switching language
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Browser [chrome]
Version [latest]

Additional context
It seems like it shows when template updates was detected. Or may be bug in vue-i18n but how it triggers this notification to show ?

The problem was in word 'notification'. When you have translation for vue-i18n with key which start from 'notification' as $t('notification.some.text') this triggers notification to show up. If you change this to $t('anotherWord.some.text') it wont show up. Magic...


Pause @SqsListener receiver

Is your feature request related to a problem? Please describe.
I am using SQS to store messages that are bound for a database, in the event that the database goes down for service or unexpectedly.  I have a scheduled task checking the state of the database periodically, but it would be nice to be able to stop processing the SQS queues from SQS when I know the database is down, while still utilizing the simplicity of the @SqsListener annotation.
Describe the solution you'd like
Add a mechanism to pause the SQS listener thread and resume on demand.
Describe alternatives you've considered
Currently, I just use the NEVER_DELETE policy and return early from processing the received messages, but the overhead is still there.  Optionally, I am looking into moving away from the @SqsListener annotation and implementing the SQSMessagingTemplate with a manual scheduled task to pull from the queue.

@massivespace you can achive this by autowiring the SimpleMessageListenerContainer and then use the stop method.
At least this worked for me :)


Customer phone numbers can not be deleted.

Customers Version: v0.5.0-dev24
What were you trying to do?
Modify and delete a customer's phone numbers by PUTing an updated customer object to /customers/{customerID}.
What did you expect to see?
Removing a phone number object from the phones array and PUTing the new object will remove that phone from the customer.
What did you see?
Phone numbers can not be removed by a PUT to /customers/{customerID}
Modifying a number will create a duplicate of that number in the array.
How can we reproduce the problem?
Modify or delete a phone number from an existing customer object and PUT the result to `customers/{customerID}

Sweet, I'll look into this.


Blob Support

Last part fix

Wuat ?

This dude tryna allow botting lol

@Valdex If Blob can't create a WebSocket connection properly, it's not our problem...

@Agarian lol,


FoldersApi.List does not return full sub folder tree

The FoldersApi List method does not return a full list of subfolders, in my use case I am trying to get all template folders where some folders are 3 or 4 levels deep. Adding the query string "sub_folder_depth=-1" to the api call will return the full list of sub folders. This is not documented and the option does not exist in the FoldersApi.ListOptionsmodel.

@natersherman As you've already said, this isn't documented, so you can use it but at your own risk.


webcontents: notify guests of embedders' zoom level change

Fixes #940
One possible way as discussed with @zcbenz

:+1:


Move lookup docs that are in druid-proper back into lookups.md

:-1: We decided during the dev sync that all modules should have their documentation in separate files and have main docs link to those modules. We can discuss that decison more if you don't agree

@drcrallen this will have to be backported

Dynamic config is not an extension

@fjy well, this feature is in 0.9.1 not 0.9.0

@drcrallen okay
can we remove it from the 0.9.0 docs then?

they are not in 0.9.0: https://github.com/druid-io/druid/blob/0.9.0/docs/content/querying/lookups.md

@drcrallen is the namespaced lookup extension no longer suggested for use in 0.9.1, in favor of the dynamic config stuff?

@gianm that is still being developed. @sirpkt beat me to the punch on this part: https://github.com/druid-io/druid/pull/2716
Once #2716 is fleshed out a little more we'll know for sure. But right now there is not enough change in master to make the change in recommendation.

ok, I'm asking because this PR removes references to the namespaced-lookups extension from lookups.md. I feel like we should have some stuff on both lookups.md and the namespaced lookup extension docs that clarify the situation for readers.

@drcrallen In other words: I am happy with this PR to the degree that you are happy with how lookups.md and namespaced-lookup.md make it clear to readers what the options are for cluster-wide server-side query time lookups, and what the most recommended option is.

@gianm ah good point, I read

For lookups defined cluster-wide rather than embedded in the query, please look at the namespaced lookup extension.

and thought of the cluster wide config. I didn't think of the static config in the extension. I'll add that line back in.

@gianm changed to

For static lookups defined in runtime.properties rather than embedded in the query, please look at the experimental namespaced lookup extension.

:+1: looks good to me, thanks for catching this.


Use arrays for notes

If a single note in a measure it uses and object.
{"score-partwise":{
"$":{
"version":"3.0"
},
"part-list":{
"score-part":{
"$":{
"id":"P1"
},
"part-name":"Music"
}
},
"part":{
"$":{
"id":"P1"
},
"measure":{
"$":{
"number":"1"
},
"attributes":{
"divisions":"1",
"key":{
"fifths":"0"
},
"time":{
"beats":"4",
"beat-type":"4"
},
"clef":{
"sign":"G",
"line":"2"
}
},
"note":{
"pitch":{
"step":"C",
"octave":"4"
},
"duration":"4",
"type":"whole"
}
}
}
}
}

I'm not sure I understand what the issue is?

Some JSON serializers only generate JSON array notation if multiple objects are to be contained, whereas they output object notation if only a single object is handled. This leads to inconsistent data structures that require more logic on the processing than necessary. If a consistent notation in arrays is the only allowed option both these problems are solved.
E.G.
measures: [{note1}] vs measures: [{notes: [{note1}]}]

Hochschule für Musik Detmold
Zentrum für Musik - Edition - Medien
Benjamin W. Bohl
Hornsche-str. 44
D-32756 Detmold
Tel. +49 5231 975-874
---- Jakob Miland schrieb ----

I'm not sure I understand what the issue is?
—
Reply to this email directly or view it on GitHub.￼

Yes. Let's be consistent.


fly execute code that relies on the git repo being tagged --> no tags in the one-off container

Feel free to de-prioritize, ignore, close out, etc. This is an edge case. But...
Let's say you're writing a build script that relies on the repo being tagged, perhaps because it's using git describe to calculate a filename.
You can't use the --exclude-ignored option to fly execute to demo or test that functionality, because the tar'ed up source code doesn't get the tags.
Like I said, mostly just a heads-up -- doesn't really need to be a feature or anything.

Moved to concourse/concourse#1060


TextField does not unfocus correctly when calling setState on scroll notification using go_router

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Run the example (on iOS, enable software keyboard when using the simulator)
Focus the text field
Scroll

Expected results
The text field should unfocus.
Actual results
Notice that the text field unfocuses and the keyboard collapses, but shortly after the text field gets focus again and the keyboard opens again.
Could not reproduce this with another simple Navigator 2.0 implementation, unfortunately.
It does however also happen with a custom, more complex Navigator 2.0 implementation of mine. I thus think that this is not really a go_router issue, but more a Navigator 2.0 issue.
Code sample
Code sample
import 'package:example/state_preserving_tabs/scaffold_location.dart';
import 'package:example/state_preserving_tabs/tab1_location.dart';
import 'package:example/state_preserving_tabs/tab2_location.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:working_router/working_router.dart';

void main() {
  runApp(const Sample());
}

class Sample extends StatefulWidget {
  const Sample({Key? key}) : super(key: key);

  @override
  State<Sample> createState() => _SampleState();
}

class _SampleState extends State<Sample> {
  late final _router = GoRouter(
    routes: [
      GoRoute(
        path: "/",
        builder: (context, _) {
          return Scaffold(
            body: NotificationListener<ScrollNotification>(
              onNotification: (notification) {
                FocusScope.of(context).unfocus();
                setState(() {});
                return false;
              },
              child: ListView(
                children: const [TextField()],
              ),
            ),
          );
        },
      )
    ],
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerConfig: _router,
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
https://github.com/flutter/flutter/assets/26022902/92d9a96a-0309-441e-9e96-c0d1589890fc

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[!] Flutter (Channel stable, 3.10.5, on macOS 13.4 22F66 darwin-arm64, locale en-DE)
    • Flutter version 3.10.5 on channel stable at /Users/tobias/dev/tools/flutter
    ! Warning: `flutter` on your path resolves to /Users/tobias/Dev/Tools/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/tobias/dev/tools/flutter. Consider adding /Users/tobias/dev/tools/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/tobias/Dev/Tools/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/tobias/dev/tools/flutter. Consider adding /Users/tobias/dev/tools/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (5 days ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/tobias/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = /Users/tobias/Library/Android/sdk
    • Java binary at: /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9619390/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
    • IntelliJ at /Users/tobias/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 73.1.1
    • Dart plugin version 231.9065

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
    • IntelliJ at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.8109.175/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
    • IntelliJ at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9011.34/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.79.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • iPhone 14 Pro (mobile) • 81F2A201-82A9-4AF1-B8E6-6069F3222FB0 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 114.0.5735.133

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

This could be related to https://github.com/flutter/flutter/issues/124778, because keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag does also call FocusScope.unfocus.  The sample adjusted to use ScrollViewKeyboardDismissBehavior.onDrag shows the same behaviour.

 Other example
void main() {
  runApp(const Sample());
}

class Sample extends StatefulWidget {
  const Sample({Key? key}) : super(key: key);

  @override
  State<Sample> createState() => _SampleState();
}

class _SampleState extends State<Sample> {
  late final _router = GoRouter(
    routes: [
      GoRoute(
        path: "/",
        builder: (context, _) {
          return Scaffold(
            body: NotificationListener<ScrollNotification>(
              onNotification: (notification) {
                setState(() {});
                return false;
              },
              child: ListView(
                keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
                children: const [TextField()],
              ),
            ),
          );
        },
      )
    ],
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerConfig: _router,
    );
  }
}

Hi @saibotma. Thanks for filing this issue. I am able to reproduce this issue on the latest master and stable channels as well. Per this https://github.com/flutter/flutter/issues/124778#issuecomment-1512774798, can you try if this works in your use case?

The solution provided in #124778 works.

Adjusted example with working solution
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

void main() {
  runApp(const Sample());
}

class Sample extends StatefulWidget {
  const Sample({Key? key}) : super(key: key);

  @override
  State<Sample> createState() => _SampleState();
}

class _SampleState extends State<Sample> {
  late final _router = GoRouter(
    routes: [
      GoRoute(
        path: "/",
        builder: (context, _) {
          return Scaffold(
            body: NotificationListener<ScrollUpdateNotification>(
              onNotification: (notification) {
                final focusScope = FocusScope.of(context);
                if (notification.dragDetails != null && focusScope.hasFocus) {
                  focusScope.focusedChild?.unfocus();
                }
                setState(() {});
                return false;
              },
              child: ListView(
                children: const [TextField()],
              ),
            ),
          );
        },
      )
    ],
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerConfig: _router,
    );
  }
}

Thanks for confirming.


PageHeader: Remove tooltip from default details field

Fixes https://github.com/salesforce/design-system-react/pull/3091#issuecomment-1441214335
Additional description
This removes the dual title and tooltip now that truncate is present. If you want a Tooltip, add it yourself.

CONTRIBUTOR checklist (do not remove)
Please complete for every pull request

[ ] First-time contributors should sign the Contributor License Agreement.  If you haven't before, wait a few minutes and a bot will comment on this pull request with instructions.
[ ] npm run lint:fix has been run and linting passes.
[ ] Mocha, Jest (Storyshots), and components/component-docs.json CI tests pass (npm test).
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at DOM snapshot strings.

REVIEWER checklist (do not remove)

[ ] CircleCI tests pass. This includes linting, Mocha, Jest, Storyshots, and components/component-docs.json tests.
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] The Accessibility panel of each Storybook story has 0 violations (aXe). Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at DOM snapshot strings.

Required only if there are markup / UX changes

[ ] Add year-first date and commit SHA to last-slds-markup-review in package.json and push.
[ ] Request a review of the deployed Heroku app by the Salesforce UX Accessibility Team.
[ ] Add year-first review date, and commit SHA, last-accessibility-review, to package.json and push.
[ ] While the contributor's branch is checked out, run npm run local-update within locally cloned site repo to confirm the site will function correctly at the next release.

@chuyler Could you review this for me?

The second (gray) tooltip comes from title={label}.  I'm not sure which tooltip is the desired one but it appears that this version will work fine.  The other option is to keep all this code you are removing and just eliminate title={label}.


Add flags/capabilities system

We need a system whereby heartbeat can let the synthetics library know how wants to behave at a feature level. As we develop new features they may require new functionality in kibana or elasticsearch or heartbeat to function correctly. The problem is that the synthetics library versioning is completely independent of the rest of the stack. We could solve a number of ways, but one way that does not work is adding additional CLI flags. The main reason that is not a good idea is that a newer version of heartbeat would not work with an older version of the synthetics library that didn't support a newer flag.
I can think of two ways we can do this and I'm not certain which one is the best:

Add a --stack-version=X.Y.Z flag to synthetics, which can be used to determine which features are on/off
Add a --capability screenshot_refs --capability somenewcthing flag, to enable new features on a one-by-one basis

The advantage of the first approach is that no updates to the heartbeat code have to happen to add a new capability. The advantage of the second approach is that it's quite a bit cleaner and it is more related CLI testing.
We could also do a combination of approaches where setting the stack version sets a certain set of capabilities.

This came up in https://github.com/elastic/synthetics/pull/290 and as a blocker for that issue

I assume the starting point for this has to be a version (in terms of how Heartbeat itself is triggered to launch a test), in which case I would think it makes sense to pass this into Synthetics to work out how to behave (it seems more complex to have Heartbeat track the Synthetic capabilities based on the stack version and then send these to Synthetics).
Irrespective of which option to go with, how does Heartbeat know the stack version?

In the case of Fleet, it’s probably easier as I suspect we could include --stack-version=X.Y.Z in the configuration automatically.
In the case of a self managed heartbeat.yml, would Heartbeat have to make a query first to determine the stack version?
In the case of the Synthetics Service, the requesting platform (Heartbeat running in Cloud, or self-managed) would need to include the destination stack version in the API request when initiating the test.

In all cases, Heartbeat passing the version to Synthetics seems simpler (or Heartbeat would need to know how to convert these into Synthetic capabilities - which seems like a job for Synthetics).

@paulb-elastic it's much simpler than that, heartbeat knows its version when its compiled :) Looking through the rest of the comments now

Great point about how this would work with a synthetics service @paulb-elastic I think in that case we could provide a version override in the config sent to the service for execution "tell synthetics we are version X.Y.Z". Otherwise, I think we can assume the compiled version. It's really about heartbeat compat, not ES or kibana.
@vigneshshanmugam +1 on your thoughts. including major versioning
In terms of action it sounds like we should:

Enable --rich-events as discussed in #289
Add --heartbeat-compatible X.Y.Z
Add --capabilities  for feature flags.

Any objection to doing all the things here?


In theory: webtorrent and tor

I recently read this article: https://blog.torproject.org/blog/bittorrent-over-tor-isnt-good-idea and I asked myself if this also applies to webtorrent.
In short: Bittorrent and tor are a bad combination because a) the tracker needs (and distributes) your real IP and b) the bittorrent protocol uses UDP, which is not supported by tor.
(I am not talking about the tor browser bundle, which does not support WebRTC and blocks javascript per default - rather using tor as a proxy in general)
I am no expert with WebRTC so I´m asking you if these arguments also apply to webtorrent.
Privacy is a major problem, especially when a website uses it to distribute the server load - everybody can see who is visiting the website.  This actually is a reason for me not to use it at all in websites.
(similar: https://github.com/feross/webtorrent/issues/788)

WebRTC can connect over UDP or TCP, so I believe that TCP would be used if all your traffic was being tunneled over a Tor proxy.
But I'm not actually whether STUN would be supported over Tor. I thought they used UDP, but apparently they can also be sent over TCP. Unsure if browsers support that, but it's worth investigating further.
If all your traffic is set up to go through the Tor proxy then I believe you're safe, since you're never talking directly to the internet. But if STUN packets require UDP in current browsers, then I bet that WebRTC connections wouldn't work at all.
Only one way to find out!


Dependency CLI

Is your feature request related to a problem? Please describe.
Often it is important to understand dependency structure of a specific component or a package to untangle the metadata or to understand the impact on dependents before making any modification on a certain components or a metadata
Describe the solution you'd like
create below commands to get dependency tree
sfdx sfpowerkit:dependency:tree:package -u sandbox -n core
sfdx sfpowerkit:dependency:tree -u sanbox -m ApexClass,ApexTrigger
sfdx sfpowerkit:dependency:tree -u sanbox -m ApexClass:myclass,ApexTrigger:myTrigger
sfdx sfpowerkit:dependency:tree -u sanbox -p src/main/default/objects/Account
sfdx sfpowerkit:dependency:tree -u sanbox -x package.xml
Describe alternatives you've considered
run multiple SOQL in salesforce.
Additional context
Dependency API is a salesforce Beta feature from winter 20. https://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_api_metadatacomponentdependency_beta.htm

@manisfdcsfdx

Can you elaborate on how the metadata id is resolved into qualified names?
Whats the proposed output formats?
Why should we have a variant when depenedency cli exists

A early version of the command  is now merged, it features a depenedency cli which can produce a json output of the depenendencies.

Need this for a source package


[docs] Live demos

Some outstanding issues, but mostly dependant on upstream fixes, so ready for a first-pass review.
https://deploy-preview-24640--material-ui.netlify.app/components/buttons/

[x] JS demo support.
[x] TS demo support.
[x] Keyboard focus indicator.
[ ] Copy button / code sandbox to use the edited version?
[ ] Fix whitespace that appears at the bottom of the page when the editor is focused.
[ ] Fix cursor placement when code expands (restricted by react-simple-code-editor. (Instead, don't expand the code on click.)
[ ] Refine accessibility (partly restricted by Jarle). (Fix merged upstream)
[ ] Console dependancy warnings from Jarle & TypeScript
[ ] Bonus: Parse the docs markdown to detect which demos need import files.

Code:

Script to build the import maps for demos.
Updated Demo component.
DemoEditor wrapper component for react-simple-code-editor.

For those keeping score, that's +~300 LOC (~100 of which are copied from another script, and might make sense to merge back).

Do we really need to maintain 7000 new lines of code when codesandbox, stackblitz, jsbin and countless other solutions already exist?

Do we really need to maintain 7000 new lines of code when codesandbox, stackblitz, jsbin and countless other solutions already exist?

Do we really need to maintain 7000 new lines of code when codesandbox, stackblitz, jsbin and countless other solutions already exist?

The objective is to reproduce the DX you can get on:

https://baseweb.design/components/button/
https://sancho-ui.com/components/button/
https://react-bootstrap.github.io/components/buttons/
https://chakra-ui.com/docs/form/button

I think that it's important. It's about having the inline previews being editable. Opening a code sandbox takes ages when you want to quickly test something.

Do we really need to maintain 7000 new lines of code when codesandbox, stackblitz, jsbin and countless other solutions already exist?

The objective is to reproduce the DX you can get on:

https://baseweb.design/components/button/
https://sancho-ui.com/components/button/
https://react-bootstrap.github.io/components/buttons/
https://chakra-ui.com/docs/form/button

I think that it's important. It's about having the inline previews being editable. Opening a code sandbox takes ages when you want to quickly test something.

@oliviertassinari You just had no argument in what you said. You just said: We need it because we need it. But why is missing as usual.
Note that only one of these examples is valid. 3 of the 4 do not apply because they don't allow one-click csb edit.

@oliviertassinari You just had no argument in what you said. You just said: We need it because we need it. But why is missing as usual.
Note that only one of these examples is valid. 3 of the 4 do not apply because they don't allow one-click csb edit.

@eps1lon The argument is: CodeSandbox is slow too open. It's too slow when you need to quickly try something out, it breaks the flow.

@eps1lon The argument is: CodeSandbox is slow too open. It's too slow when you need to quickly try something out, it breaks the flow.

For future reference: Just like the i18n docs effort, bugs will be created that won't be fixed by the person that owns the solution. It'll be me again. Do what you must but don't ever think you have an argument for using a component library. You're doing the exact mistake like everybody else: Looking at a solution and dreaming that you can just re-implement.

For future reference: Just like the i18n docs effort, bugs will be created that won't be fixed by the person that owns the solution. It'll be me again. Do what you must but don't ever think you have an argument for using a component library. You're doing the exact mistake like everybody else: Looking at a solution and dreaming that you can just re-implement.

@eps1lon The argument in #24640 (comment) was: CodeSandbox is slow to open. It's too slow when you need to quickly try something out, it breaks the flow.

So you actually think you can do better. Hillarious.

@eps1lon The argument in #24640 (comment) was: CodeSandbox is slow to open. It's too slow when you need to quickly try something out, it breaks the flow.

So you actually think you can do better. Hillarious.

It seems that we cover different topics:

The cost of supporting live edits. At this point, we are exploring the potential. I think that we will know more about the effort required to make it work as Matt makes more progress and we review it.
The value of supporting live edits. Have you never needed to implement a custom UI and needed to try something quickly with a component? This has personally happed to me a couple of times these last few weeks with the implementation of the rebranding. I ended importing the demo locally and trying stuff out because it was still faster than opening CodeSandbox. Not great.
The long-term maintenance. I don't think that all the bugs need to be fixed. If it takes us 6 months to spot something, it could be an indicator that they are details with no significant value.
The ownership of the live editing. If you don't want to take ownership of this feature, it's fine :)

It seems that we cover different topics:

The cost of supporting live edits. At this point, we are exploring the potential. I think that we will know more about the effort required to make it work as Matt makes more progress and we review it.
The value of supporting live edits. Have you never needed to implement a custom UI and needed to try something quickly with a component? This has personally happed to me a couple of times these last few weeks with the implementation of the rebranding. I ended importing the demo locally and trying stuff out because it was still faster than opening CodeSandbox. Not great.
The long-term maintenance. I don't think that all the bugs need to be fixed. If it takes us 6 months to spot something, it could be an indicator that they are details with no significant value.
The ownership of the live editing. If you don't want to take ownership of this feature, it's fine :)

Regarding make opening an external editor faster, I have experimented with https://www.skypack.dev/, but it's not here yet https://github.com/skypackjs/skypack-cdn/issues/118.

Regarding make opening an external editor faster, I have experimented with https://www.skypack.dev/, but it's not here yet https://github.com/skypackjs/skypack-cdn/issues/118.

@mbrookes Regarding expanding the code editor when clicking the inline preview, I doubt it's an option. The inline preview allows easy copy and paste. It's no longer possible.

@mbrookes Regarding expanding the code editor when clicking the inline preview, I doubt it's an option. The inline preview allows easy copy and paste. It's no longer possible.

I doubt it's an option

It is an option, as demonstrated in the PR. Whether it's the best option is another question. 😄

The scroll position and cursor position state is lost at mouse down.

Yes, as previously mentioned.

I doubt it's an option

It is an option, as demonstrated in the PR. Whether it's the best option is another question. 😄

The scroll position and cursor position state is lost at mouse down.

Yes, as previously mentioned.

Things I have noticed:

[x] It's much better than what we had!
[x] It's a great DX that Ctrl+A selects all the content of the demo and only (not the whole page). I'm so much more used to this approach. Another significant win.
[ ] The font is different to before. The change of -webkit-font-smoothing is questionable. I personally find it too crispy on macOS with antialiased. Codesandbox set it back to auto, we were using subpixel-antialiased before. Monaco Editor is also on auto.
[ ] The demos aren't rendered anymore on the server
[ ] We add 70 kB gzipped for each page. https://mui-dashboard.netlify.app/size-comparison?buildId=23398&baseRef=next&baseCommit=4eafaae996f250b8c4473c9be3f5637c22f28ef7&prNumber=24640. I wonder if it's expected, I would have expected some of the increase to be inside a shared chunk. We could lazy load the interactiveness of the demo, to make it a progressive enhancement. Right now, it's quite to may the price upfront +170%. .
[ ] We add HTML validation warnings. I had a look at them. They can all be fixed in react-simple-code-editor, but it will be some work.
[ ] The new dependencies aren't React v17 friendly (peer dependency)
[ ] We can't iterate on a demo anymore. 1. Editing the source doesn't live update 2. Editing the source with new imports crashes.

Things I have noticed:

[x] It's much better than what we had!
[x] It's a great DX that Ctrl+A selects all the content of the demo and only (not the whole page). I'm so much more used to this approach. Another significant win.
[ ] The font is different to before. The change of -webkit-font-smoothing is questionable. I personally find it too crispy on macOS with antialiased. Codesandbox set it back to auto, we were using subpixel-antialiased before. Monaco Editor is also on auto.
[ ] The demos aren't rendered anymore on the server
[ ] We add 70 kB gzipped for each page. https://mui-dashboard.netlify.app/size-comparison?buildId=23398&baseRef=next&baseCommit=4eafaae996f250b8c4473c9be3f5637c22f28ef7&prNumber=24640. I wonder if it's expected, I would have expected some of the increase to be inside a shared chunk. We could lazy load the interactiveness of the demo, to make it a progressive enhancement. Right now, it's quite to may the price upfront +170%. .
[ ] We add HTML validation warnings. I had a look at them. They can all be fixed in react-simple-code-editor, but it will be some work.
[ ] The new dependencies aren't React v17 friendly (peer dependency)
[ ] We can't iterate on a demo anymore. 1. Editing the source doesn't live update 2. Editing the source with new imports crashes.

I now have write access to react-simple-code-editor wish should allow releasing fixes downstream as needed.

@eps1lon The argument in #24640 (comment) was: CodeSandbox is slow to open. It's too slow when you need to quickly try something out, it breaks the flow. This is the current DX:
Jan-27-2021.12-20-01.mp4

That’s probably no longer an issue for sandboxes.
You might like to explore:

https://blog.stackblitz.com/posts/introducing-webcontainers/


fix: cover all MetadataLastModified test case

:question: What
This is an update of PR #131. It adds the test case in which the date is set but it is zero.
:white_check_mark: Checklists

[x] Has make gofmt-write been run on the code?
[x] Has make govet been run on the code? Has the code been fixed accordingly to the output?
[x] Have the changes been added to the CHANGELOG.md file?
[x] Have the steps in CONTRIBUTING.md been followed to update a Go module?

Codecov Report

Merging #133 (f009ace) into main (f95aaa1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #133   +/-   ##
=======================================
  Coverage   47.25%   47.25%
=======================================
  Files          54       54
  Lines        3794     3794
=======================================
  Hits         1793     1793
  Misses       1809     1809
  Partials      192      192

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 f95aaa1...b6ff0f7. Read the comment docs.

As suggested by @tommyblue in #135 we can add additional information in the filter documentation about the field MetadataLastModified in the Metadata. Is there any documentation about the Record Metadata?


feat: add pagination to /dashboard

Hi @farisfaikar ,
I can work on this, based on my understand, I need to add pagination to render the overflowing rows in SentenceTable in app/dashboard/page.tsx right ?


cross-referenced Array type in docs

Updated Array explanation to contain a reference to Array class definition.

Rendered build is here: https://numba--6843.org.readthedocs.build/en/6843/reference/types.html#arrays

I updated the docs.


Change MISC from red to green

🛠 Note:
We are meticulous about merging code into the main branch, so please understand that pull requests not meeting the project's standards may be rejected. It's never personal!
🎮 Note for game-related scripts: These have a lower likelihood of being merged.

✍ Description
Provide a summary of the changes made and/or reference the issue being addressed.

Changed MISC from red to green.
I always think red looks like something evil or faulty :-)
@BramSuurdje what do you say?

🛠 Type of Change
Please check the relevant options:

[ ] Bug fix (non-breaking change that resolves an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
[ ] New script (a fully functional and thoroughly tested script or set of scripts)

✅ Prerequisites
The following steps must be completed for the pull request to be considered:

[ ] Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
[ ] Testing performed (I have thoroughly tested my changes and verified expected functionality.)
[ ] Documentation updated (I have updated any relevant documentation)

📋 Additional Information (optional)
Provide any extra context or screenshots about the feature or fix here.

LGTM!


Move surrogate to different domain

Currently surrogate operates on http://surrogate.hackedu.us (from memory). Most filtering systems (at least in Australia) block by the root domain, meaning that the entire site will get blocked, as opposed to just the surrogate. address.
This would be quite problematic, for labs and anything else we decide to put there.

Thoughts on the following:
carroteats.horse
svg.horse
adjoining-starfish.com

/cc @zachlatta

I'm cool with adjoining-starfish.com. Will do this.

Whoops, didn't mean to comment that.
Here's what I meant to say:
Now that we're using hackclub.com instead of hackedu.us, it's all good if surrogate remains on surrogate.hackedu.us because it's the only thing we're using that domain for.
Going to go ahead and close this issue as a result.


Only commit translations.json to repo if there is any change in it.

currently the git commit history is being polluted with changes that are basically same json in different order. so only add commit change if its a change in value or keys.
here is some pseudo code for it
PROJECT_ROOT = Path(__file__).parent

with open(PROJECT_ROOT / "translations.json") as CURRENT_JSON, open(
    PROJECT_ROOT / "translations_old.json"
) as OLD_JSON:
    f1 = json.load(CURRENT_JSON)
    f2 = json.load(OLD_JSON)

result = DeepHash(f1)[f1] == DeepHash(f2)[f2]

fixed in #35


IdpToken null after signing in with phone provider

Android device: Samsung Note3
Android OS version: 5.0
Google Play Services version: 11.8.0
Firebase/Play Services SDK version: 1.8.0
FirebaseUI version: 3.1.0

Observed Results:
onActivityResult after signingin
idpResponse.getIdpToken() is null
idpResponse has only the phone number and errorCode -1
all other fields are null
Relevant Code:
   public void onClick(View v) {
                FirebaseAuth auth = FirebaseAuth.getInstance();
                if (auth.getCurrentUser() != null) {
                    if (BuildConfig.DEBUG) Log.i(TAG, "onClick: already signed in");
                    // already signed in
                } else {
                    // not signed in
                    startActivityForResult(
                            AuthUI.getInstance()
                                    .createSignInIntentBuilder()
                                    .setAvailableProviders(Collections.singletonList(
                                            new AuthUI.IdpConfig.Builder(AuthUI.PHONE_VERIFICATION_PROVIDER).build()
                                    ))
                                    .build(),
                            RC_SIGN_IN);
                }
            }

   public void onActivityResult(int requestCode, int resultCode, final Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        // digits/Firebase-auth
        if (requestCode == RC_SIGN_IN && resultCode == Activity.RESULT_OK) {
            final IdpResponse idpResponse = IdpResponse.fromResultIntent(data);
            if (idpResponse != null)
                if (BuildConfig.DEBUG) Log.i(TAG, "onActivityResult: idpResponse token = " + idpResponse.getIdpToken());
            return;
        }

For phone-number auth do we ever get any unique token?(we used to get a token when we used Facebook account kit) or it will only return the phone number?

@parthanjaria you can get an ID token for any Firebase Auth user using this method:
https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseUser.html#getIdToken(boolean)
However it's not the same as a Facebook/Google access token.  It's a JWT you can use to send the user's authentication securely to your own server.  It expires every hour.


variety of errors on 1.18.x releases off curseforge

upon launching the game with tfc florae
java.lang.NoSuchMethodError: 'void
net.dries007.tfc.common.blocks.wood.TFCLeavesBlock.<init>(net.dries007.tfc.common.blocks.ExtendedProperties, int)'

TFC Florae (tfcflorae) encountered an error during the error event phase
java.lang.NullPointerException: Registry Object not present:
tfcflorae:wood/leaves/argyle_eucalyptus

TFC Florae (tfcflorae) encountered an error during the error event phase
java.lang.NullPointerException: Regsitry Object not present:
tfcflorae:wood/sapling/blue_bamboo

TFC Florae (tfcflorae) encountered an error during the error event phase
java.lang.ExceptionInInitializerError: null

with the following crash report:
crash-2023-05-03_02.09.08-fml.txt
im assuming it is an issue on this end as the extra steps and dependencies are clarified to only be relevant to 1.12.2 but please correct me if there are some extra steps i have indeed missed

Flroae v2.0.5 is not compatible with TFC v2.2.17 or later, since they changed how leaves work. This is fixed in dev.

gotcha, thank you


too strict requirements for label creation

hi,
i used this library for my webshop and to really create a label there are some parameters in Consignee ans Shipment that are not required for label creation. not only that - if you would supply them the label creation would fail (i.e. packstation ID).
also the response from dhl gives out a new label print format that isnt available to deserialize. (900-300-400/410).
i think the required fields are also not required in the openapi yaml by dhl. the document format is not listed by them though..

fyi. for now i added the document type manually in the code and made the variables optional in the according get-functions. i can submit a pull request. but i dont think thats the way with openAPI..

hey,
yes sorry, right now it seems that the openAPI generator for php does not support oneOf and anyOf specs which are used by DHL in the yaml.
waiting for a fix on openAPI side, so you can only manually patch it for now.


react usage?

Less an issue, but a question: Is it possible to use this with react?

I don't know, have you tried?

@MichaelLSmith You're going to have nothing but pain using this with react. bootstrap.native uses the browser DOM, which is going to wreck havoc with React's virtual DOM. In short: Don't do it!

@RyanZim what would you suggest to solve this?

@thednp React is a whole different way of doing things. React support is out of scope for bootstrap.native. It would require a completely separate codebase. I vote to close.


Webex botkit adapter: Ability to start adapter without creating a new webhook

Botkit Adapter
botbuilder-adapter-webex v. 1.0.9
What was the result you received?
A new webhook is being created every time the adapter starts
What did you expect?
Have the ability to disable auto-creation of webhook
In specific:
We use the webex adapter with botkit. We setup multiple webhooks for specific events in front before the adapter is used.
When the adapter first starts, it is always creating a new "all events" webhook which is listening on "/api/messages"
We need the ability to turn off the webhook creation.
Thanks in advance,
Nikos

Any update on this?
Thanks

Any update?

This is not currently possible. If you'd like to submit a pull request with this feature, I'd happily review it.


Pull-based data collection

I don't want to do this all the time, but occasionally I want to request some system data and the installed applications list from the server and the agent should send this information for storage and review.

Comfortable with my implementation of this now.


Compare IOSim to IOSpec

IOSpec is another free monad implementation of IO.

models heap
supports threads
pluggable scheduler
supports extensible effects. By default it comes with: thread forking, IORefs, MVars, STM, Teletype (reading and writing to/from stdout/stdin)
doesn't support partial order reduction


Error: Package name not found

Description
After integrating RN into an existing Android project, I get the following error:
Error: Package name not found in /home/.../AndroidManifest.xml    at Object.projectConfig (/home/.../rn_integrated_app/node_modules/@react-native-community/cli-platform-android/build/config/index.js:74:11)    at Object.get project [as project]
As I understand the problem is that there is no package attribute in the relevant AndroidManifest.xml file. Since my project has many flavors, the package attribute is added dynamically, while compiling, through app/build.gradle:
def pkgDataEntry = getRightValue(packagesData, variantMap) variant.getMergedFlavor().applicationId = pkgDataEntry.pkg
So that the final merged manifest file does have the package attribute.
The error occurs here(@react-native-community/cli-platform-android/build/config/index.js):
const packageName = userConfig.packageName || getPackageName(manifest); if (!packageName) { throw new Error("Package name not found in ${manifestPath}");   }
Is there a way to make RN read the merged manifest file? If not, how can I modify userConfig to contain the package name? I couldn`t find anything about it in the docs.
Version
0.67.3
Output of npx react-native info
System:
OS: Linux 5.13 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 1.38 GB / 15.36 GB
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.13.1 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/bin/yarn
npm: 8.1.2 - /usr/local/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 21, 23, 27, 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.0, 29.0.2, 30.0.2, 31.0.0, 32.0.0
Android NDK: 22.1.7171670
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.14 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.3 => 0.67.3
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Create Android app with different flavors
assign "package" attribute through app/build.gradle
Follow the integration tutorial https://reactnative.dev/docs/integration-with-existing-apps
Error occurs
Snack, code example, screenshot, or link to a repository
No response

If anybody encounters the same issue, when having multiple flavors AndroidManifest.xml files,here`s my conclusion:
RN has some kind of a bug that it requires the first folder alphabetically, in android/app/src, which has AndroidManifest.xml file,to have the package attribute. Otherwise, it will throw an error.
A simple solution would be to create a dummy folder, e.g aaa (first alphabetically) and to create AndroidManifest.xml inside of it, with the following attribute - package:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="aaa"
    xmlns:tools="http://schemas.android.com/tools">
    <uses-permission
        android:name="android.permission.GET_ACCOUNTS"
        tools:node="remove"/>
</manifest>

Closing as this issue is related to the CLI: https://github.com/react-native-community/cli
Also you can find relevant information on the cofniguration support here:
https://github.com/react-native-community/cli/blob/main/docs/configuration.md


Make doxygen a weak dependency

Skip building documentation in the case that Doxygen is not detected on the system.

Good catch. This is something I already do in personal project
https://github.com/ChrisThrasher/argon/blob/84fcce3c2c66ae87ba95e65ea587c985c620ce87/docs/CMakeLists.txt#L1-L5
My only nitpick is to use a guard clause rather than put all that Doxygen code inside the conditional then I'll merge this

My only nitpick is to use a guard clause rather than put all that Doxygen code inside the conditional then I'll merge this

Done


fix iter_geo a null value cause panic.

trying to fix issue #243
I have remove this line  https://github.com/geoarrow/geoarrow-rs/blob/main/src/array/zip_validity.rs#L24
But I am getting this panic.
  Finished test [unoptimized + debuginfo] target(s) in 0.15s
     Running unittests src/lib.rs (target/debug/deps/geoarrow2-698b5402eed14455)

running 1 test
thread 'array::zip_validity::tests::issue243' panicked at src/scalar/binary/scalar.rs:61:50:
called `Result::unwrap()` on an `Err` value: IoError(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
stack backtrace:
   0: rust_begin_unwind
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/std/src/panicking.rs:597:5
   1: core::panicking::panic_fmt
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/panicking.rs:72:14
   2: core::result::unwrap_failed
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/result.rs:1653:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/result.rs:1077:23
   4: geoarrow2::scalar::binary::scalar::<impl core::convert::From<&geoarrow2::scalar::binary::scalar::WKB<O>> for geo_types::geometry::Geometry>::from
             at ./src/scalar/binary/scalar.rs:61:9
   5: <T as core::convert::Into<U>>::into
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/convert/mod.rs:757:9
   6: geoarrow2::scalar::binary::scalar::<impl core::convert::From<geoarrow2::scalar::binary::scalar::WKB<O>> for geo_types::geometry::Geometry>::from
             at ./src/scalar/binary/scalar.rs:53:9
   7: <T as core::convert::Into<U>>::into
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/convert/mod.rs:757:9
   8: geoarrow2::trait_::GeoArrayAccessor::value_as_geo
             at ./src/trait_.rs:195:9
   9: geoarrow2::array::binary::array::WKBArray<O>::iter_geo_values::{{closure}}
             at ./src/array/binary/array.rs:187:33
  10: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &mut F>::call_once
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/ops/function.rs:305:13
  11: core::option::Option<T>::map
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/option.rs:1065:29
  12: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::next
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/iter/adapters/map.rs:103:26
  13: <geoarrow2::array::zip_validity::ZipValidityIter<T,I,V> as core::iter::traits::iterator::Iterator>::next
             at ./src/array/zip_validity.rs:37:21
  14: <geoarrow2::array::zip_validity::ZipValidity<T,I,V> as core::iter::traits::iterator::Iterator>::next
             at ./src/array/zip_validity.rs:138:39
  15: core::iter::traits::iterator::Iterator::fold
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/iter/traits/iterator.rs:2638:29
  16: core::iter::traits::iterator::Iterator::for_each
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/iter/traits/iterator.rs:857:9
  17: geoarrow2::array::zip_validity::tests::issue243
             at ./src/array/zip_validity.rs:212:9
  18: geoarrow2::array::zip_validity::tests::issue243::{{closure}}
             at ./src/array/zip_validity.rs:209:18
  19: core::ops::function::FnOnce::call_once
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/ops/function.rs:250:5
  20: core::ops::function::FnOnce::call_once
             at /rustc/09df6108c84fdec400043d99d9ee232336fd5a9f/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
test array::zip_validity::tests::issue243 ... FAILED

failures:

failures:
    array::zip_validity::tests::issue243

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 109 filtered out; finished in 0.27s

error: test failed, to rerun pass `-p geoarrow2 --lib`

 *  The terminal process "cargo 'test', '--package', 'geoarrow2', '--lib', '--all-features', '--', 'array::zip_validity::tests', '--nocapture'" terminated with exit code: 101.
 *  Terminal will be reused by tasks, press any key to close it.

I thinks there are some design mistaken about this struct
/// An [`Iterator`] over [`Option<T>`]
/// This enum can be used in two distinct ways:
/// * as an iterator, via `Iterator::next`
/// * as an enum of two iterators, via `match self`
/// The latter allows specializalizing to when there are no nulls
#[derive(Debug, Clone)]
pub enum ZipValidity<T, I, V>
where
    I: Iterator<Item = T>,
    V: Iterator<Item = bool>,
{
    /// There are no null values
    Required(I),
    /// There are null values
    Optional(ZipValidityIter<T, I, V>),
}

The problem is here V: Iterator<Item = bool> ,
this iterator may produce a value Some(false). if the value is false means this shoule be None value.
and you require I: Iterator<Item = T> to produce a value anyway.
If a array contains a null value there is no way to produce a value.
#[inline]
    fn next(&mut self) -> Option<Self::Item> {
        let value = self.values.next();  // value in array could be null , no way I am going to yield a value.
        let is_valid = self.validity.next();
        is_valid
            .zip(value)
            .map(|(is_valid, value)| is_valid.then_some(value))
    }

This is issue is more complex than I think.

pass the test, But this is ugly fix.

It's hard to understand what you're saying. We use ZipValidity in many places, so if there's something fundamentally wrong with it, I don't want to just put a band-aid on it.
ZipValidity is a hold-over from when we used the arrow2 library. It may be better now to switch to using something like BitIterator, BitSliceIterator, or BitIterator, which are fully supported in arrow-rs.

this iterator may produce a value Some(false). if the value is false means this shoule be None value.

None means that the iterator is finished and iteration should stop. Some(false) means that the iterator has not finished, but the current row is null. Some(true) means that the iterator has not finished, the current row is not null, and the value from the array should be returned.

from https://github.com/geoarrow/geoarrow-rs/pull/462 the issue was:

we can't use a ZipValidity here because in contrast to other geometry array types where a null value means that the result of value() is just nonsensical, in this case a null value means that value_as_geo will crash because it's trying to parse an empty array as a WKB


help(MatDatePicker): Implementing range date picker with custom header: problems and suggestions

What are you trying to do?
I am trying to build a date picker with the custom header which includes date presets like 'last month, this month, last 7 days, etc..' and date range selection feature.
I am close to be done there but I had to use several workarounds to bypass the following issues:

I cound't find a way to determine when date range selection is completed via calendar selection. This is important for me to know this since I have two sources of date range changes:

custom header when user clicks on date range preset(dates need to be set according to selected preset which causes unwanted (dateChange) event to be fired on date input)
regular date range selection using calendar(preset needs to be cleared)

When I use (dateChange) event on matEndDate input like this:
    <mat-date-range-input [rangePicker]="picker">
          <input [(ngModel)]="startDate" matStartDate matInput>
          <input [(ngModel)]="endDate" (dateChange)="handle($event)" matEndDate matInput>
    </mat-date-range-input>

I noticed the following issues:

my IDE(IntelliJ 2020.1) complains about (dateChange) event: Event dateChange is not emitted by any applicable directives nor by input element
dateChange event gets fired twice during date range selection via calendar: first time with null value and second time with the selected value.

since dateChange gets fired whenever date input changes no matter where this change comes from I wonder if it is possible to have something like this:
       <mat-date-range-picker #picker (dateRangeSelected)="handleDateRangeSelected($event)">
       </mat-date-range-picker>

, where (dateRangeSelected) gets fired when user completes range selection using calendar only?
Currenly I subscribe to calendar.selectedChange event and bypass this event through my custom header to workaround this issue.

I do believe that class MatDateRangePicker must support DateRange selection, but currently it allows only single selection which comes from it's parent class:

/** Selects the given date */
select(date: D): void;

Angular: 9.1.9
CDK/Material: 10.0.0-rc.1
Browser(s): Chrome v83.0.4103.97
Operating System (e.g. Windows, macOS, Ubuntu): Windows 64bit

You should be able to inject the MatDateSelectionModel inside your header which will tell you whether the selection is complete.
I'm not sure what the history behind the select method is, but I think it's doing what it's supposed to, because it's adding the start date first and then the end. If you want to override the entire range the same time, you can do it through the MatDateSelectionModel that is mentioned above.

Thanks for the hint regardless 1. point. I was trying to do something like this at the beginning but I was trying to inject MatDateRangeSelectionModel instead so I was getting NullInjection error.
But still this is only available from the custom header, right?
Regardless 2nd point I was trying to say that I can't select date range as follows:

Thanks for the answers!

@ahimik did you manage to resolve the issue? As I mentioned above, you can't select the entire range at once with select since it's meant to be the equivalent of the user clicking on a date so you'd have to call it twice, but injecting the MatDateRangeSelectionModel is supposed to work. If you post what your code looks like, I can look into why you were getting the injection error.

Closing because this issue has been inactive for 2 weeks or more after follow up was requested.


Amplify previews don't update after the initial deployment

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
XXXXX (I can provide privately)
AWS Region
us-east-2
Amplify Hosting feature
Backend builds, Deployments, Frontend builds, Web previews
Describe the bug
We deploy a web application, NextJS SSR, using Amplify. The application uses Amplify Hosting.
Starting yesterday, we are running into an issue where previews are not updates when a new commit is added to the branch. When a new commit is pushed to the branch, the preview is built and deployed successfully as shown in the UI. However, when I navigate to the preview page, nothing is updated from the first iteration. This is a new issue and everything was working as of 2 days ago.
Before this, all the previews where sharing the same backend. I have also tried changing that configuration so that each preview creates a new backend environment but that doesn't change anything. Still broken.
Expected behavior
I expect the previews UI to be updated when a new change is pushed to the branch associated with the preview.
Reproduction steps

Enable Previews for a branch.
Create a Pull Request to that branch.
Wait for the Preview to be built and deployed
Push a new commit to the branch
Wait for the Preview to be built and deployed
Expect the preview to be updated with new content but it is not

Build Settings
version: 1
applications:
  - backend:
      phases:
        build:
          commands:
            - amplifyPush --simple
  - frontend:
      phases:
        preBuild:
          commands:
            - yarn install
        build:
          commands:
            - yarn build
      artifacts:
        baseDirectory: .next
        files:
          - '**/*'
      cache:
        paths:
          - '/web/node_modules/**/*'
          - '/web/.next/cache/**/*'
    appRoot: web

Log output

# Put your logs below this line

Additional information
After some investigation, I can confirm that even-though the I see the log line that Deployment is complete, the S3 content don't seem to be updated

@yznima We identified the issue and have rolled out a fix already. Please create a new PR and let us know if you still see the issue. Thank you!


教程代码跑不起来cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device. (at /paddle/paddle/fluid/imperative/tracer.cc:221)

可能是我cuda版本不对？信息如下
python -u /root/autodl-nas/BaseMP/FleetX-develop/examples/recompute/recompute_dygraph.py
W0111 18:22:37.147157   515 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.5, Runtime API Version: 10.2
W0111 18:22:37.150291   515 device_context.cc:465] device: 0, cuDNN Version: 8.0.
.....
.....
......
......
SystemError: (Fatal) Operator uniform_random raises an thrust::system::system_error exception.
The exception content is
:parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device. (at /paddle/paddle/fluid/imperative/tracer.cc:221)

paddle与cuda版本不对，按照官网安装命令重装一下就行了，只是有个waring：
The installed Paddle is compiled with CUDNN 8.1, but CUDNN version in your machine is 8.0, which may cause serious incompatible bug.
问题不大


Clarify concurrency semantics of RaptorSplitSource

The previous version had unclear semantics and relied on an implicit
contract with the caller to use it correctly. The new verison guards
these invariants explicitly.

@martint reviewed this in person


Add OpenCensus parameters to charts

Need to support OpenCensus in forseti-security charts.
https://github.com/forseti-security/forseti-security/pull/2317

OBE.  Using Cloud Profiler


Caching Offline works on Windows/Android but not on IOS via Safari?

Am I doing something wrong here, I used this plugin with Needle.Tools exported via Vite - it installs and caches to open offline fine on Windows and Android but on IOS when saved to Home screen the PWA never opens when offline?
Is there anything we need to do that is Apple/IOS specific that I missed?
Tested with an iPhone 6 via Safari
https://demo.epm.digital/pwatest/
Vite Config:
import * as path from 'path';
import { defineConfig } from 'vite';
import viteCompression from 'vite-plugin-compression';
import basicSsl from '@vitejs/plugin-basic-ssl';
import { VitePWA } from 'vite-plugin-pwa'

export default defineConfig(async ({ command }) => {

    const { needlePlugins, useGzip, loadConfig } = await import("@needle-tools/engine/plugins/vite/index.js");
    const needleConfig = await loadConfig();

    return {
        base: "./",
        // publicDir: "./assets", // this would copy all assets in the outdir (but not inside assets)
        assetsInclude: ['*'],
        // logLevel: 'info',

        plugins: [
            basicSsl(),
            VitePWA({ registerType: 'autoUpdate',
            //devOptions: {  enabled: true },
            workbox: {
                globPatterns: ['**/*.{js,css,html,ico,png,svg,glb,webp,wasm}']
              },
            includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg'],
            manifest: {
            name: 'EPM Agency',
            short_name: 'EPM Agency',
            description: 'EPM Agency',
            theme_color: '#ffffff',
            icons: [
                {
                src: 'pwa-192x192.png',
                sizes: '192x192',
                type: 'image/png'
                },
                {
                src: 'pwa-512x512.png',
                sizes: '512x512',
                type: 'image/png'
                }
            ]
            }

             }),
            useGzip(needleConfig) ? viteCompression({ deleteOriginFile: true }) : null,
            needlePlugins(command, needleConfig),
        ],

        server: {
            // hmr: false,
            // watch: ["generated/**"]
            https: true,
            proxy: { // workaround: specifying a proxy skips HTTP2 which is currently problematic in Vite since it causes session memory timeouts.
                'https://localhost:3000': 'https://localhost:3000'
            },
            watch: {
                awaitWriteFinish: {
                    stabilityThreshold: 500,
                    pollInterval: 1000
                },
                ignored: ["dist/**/*", "src/generated/*", "**/package~/**/codegen/**/*"]
            },
            strictPort: true,
            port: 3000,
        },
        build: {
            outDir: "./dist",
            emptyOutDir: true,
            keepNames: true,
        },

        resolve: {
            alias: {
                'three': () => path.resolve(__dirname, 'node_modules/three'),
                '@needle-tools/engine': () => path.resolve(__dirname, 'node_modules/@needle-tools/engine'),
            }
        }
    }
});

Right after that I saw this: https://aatventure.news/posts/what-is-wrong-with-pwa-support-on-ios
Joy of joy.. Apple restrictions...

Service workers support is very limited compared to Android. You can only persist app data and cache its files (no background tasks). There is also a 50MB and “few weeks” limit for storage.

Same problem here, and also my app is nowhere near 50MB.

I had this issue and it turned out that I had disabled service workers in Safari a few months ago to test something 😅
Check Safari Settings: Safari has settings to enable or disable service workers. Go to Settings -> Safari -> Advanced -> Experimental Features and ensure that

I too am having the same issue. Service Workers are enabled under Feature Flags. This is my first foray into a PWA (so pretty clueless) and cannot seem to get iOS to cache and work offline from a "Add to Home Screen" bookmark.

50MB in assets is a huge application, maybe you can exclude images from sw precaching excluding them using workbox.navigateFallbackDenylist.
If the application needs 50MB in js/css there is no way, file an issue in iOS/macOS/Safari, as always Apple doing their "magic"...

I never said anything about having a large app.

@jslay88 there are a few things to do in the server side (cdn, Netlify, Apache, Tomcat, Vercel, AWS...):

any html page registering the sw and the sw with cache NO-CACHE and MUST-REVALIDATE (index.html in traditional Vite App or if using SPA or any html page if using MPA in some meta framework, Nuxt or SvelteKit for example):check the deployment section in the pwa docs
sw.js MUST be excluded from the sw precaching and sw interception
any assets emitted with hash, can be cached forever (since changing something will change the hash)
activate cleanup old cache entries: since you deploy the new build, old assets shouldn't be in the new build

Activating cleanup old cache entries may result in unexpected results when the user do a hard refresh and the old app still controlling the app in the browser. You can keep old resources, but then you will need to deal with quota storage errors (IIRC this shouldn't be a problem).
About cache headers, you can find the configuration we're using in the docs repo for Netlify:

https://github.com/vite-pwa/docs/blob/main/netlify.toml
https://github.com/vite-pwa/docs/blob/main/public/_headers#L34-L36

Tested with an iPhone 6 via Safari
https://demo.epm.digital/pwatest/

The app is missing...


CLI won't run. TypeError: 'module' object is not callable

After installing favicons in a virtualenv under Python  3.10.12, when I try to start the CLI with favicons --help, I get the following error:
Traceback (most recent call last):
  File "/home/tulpe/.virtualenvs/favtest/bin/favicons", line 8, in <module>
    sys.exit(cli())
TypeError: 'module' object is not callable

You can work around this by calling favicons/cli.py directly, such as: .env/lib/python3.8/site-packages/favicons/cli.py


'return list using regex' examples?

Hi, has anyone successfully used the 'return list using regex' action in their rules? I tried the example from the documentation (here) but I don't fully understand how it works or what it does

Kia ora Mike,
I'm sorry for the tardy reply, but because I have always been intrigued by this normalisation, I was hoping to get time to have a play and to get it working, but alas work always intervened.
I asked the group your question last week and nobody has an understanding of its purpose or use case nor how it may work.
I'm still hoping to give it a try, and will let you know if I/we gain a better understanding of the action.
Ngā mihi,
Craig.

Hi Craig,
I'm glad it's not just me!
It's a strange one as I get an error whenever I use it and then assign the Temp to a field. I might raise a support case at some point and see if they can shed some light.
Thanks
Mike


minor corrections

I write software that uses this json data alongside the gemp swccg server. I found 3 minor issues that prevent matching json cards to gemp cards:
"•Grotto Werribee" has a power of 2 in the json data, but a power of 1 in the gemp source code. I checked the printed card and the power should be 1.
"•Gardulla The Hutt (v)" this dark legacy card is using a lower case "v" - not a major problem but all the other cards use uppercase "V".
"Rapid Deployment" this light card was reprinted with no changes as part of the Second Anthology release so it's "printings" entry should include the "107" set.

Love the Grotto fix and the Gardulla fix.
The Printings fix for Rapid Deployment appears you may have been looking at the wrong part of the file. You've mistakenly added the printing to Tunnel Vision! And in fact if you look at Rapid Deployment, it already has a 107 printing listed. In short, it appears that no Light.json changes are needed.

Thank you, and yeah you are 100% - my automation had a bug that made me this Rapid Deployment was wrong but it never was, I reverted that and the weird line ending changes I didn't mean to do those either.
I've added a fix for "Dorme'" to remove the accent mark, that gemp team suggested that but I can easily code around that if you don't want that change in the json.


Allow infinity and NaN to be parsed.

When building with libc++, as opposed to libstdc++, operator>>(istream&, double&) accepts "inf" for infinity and "nan" for NaN. Account for this in some unit tests.
We might want to add a build/test variant in CI that tests this. I think all of them right now use libstdc++.

I'd have expected the llvm toolchain that's already in CI would use libc++ by default. (it has a special option to use libstdc++).


Setup CI and badge

Setting up CI, and add badge to README.
@Jimexist Please comment below about the tools you plan to use :)

[ ] travis CI
[ ] coverall.io
[ ] landscape
[ ] godoc
[ ] code report


Create stu.txt

Official website URL: https://www.scu.edu.cn
Sichuan university, China

@cairangxianmu I am sorry, the domain stu.scu.edu.cn is removed from our trusted domains list because the school allows to register an email address there even if you are not a student of the school. If you are the student of this school, please apply with official document (OFFICIAL DOCUMENT tab at https://www.jetbrains.com/shop/eform/students).

@cairangxianmu I am sorry, the domain scu.edu.cn is removed from our trusted domains list because the school allows to register an email address there even if you are not a student of the school. If you are the student of this school, please apply with official document (OFFICIAL DOCUMENT tab at https://www.jetbrains.com/shop/eform/students).


Directly depend on crossbeam_channel

Instead of the umbrella crate "crossbeam". This reduces the total number of dependencies.

Thanks for the contribution!


Contribute to https://invent.kde.org/frameworks/syntax-highlighting/

Hi,
would you allow your nim highlighting to be contributed to https://invent.kde.org/frameworks/syntax-highlighting/ ?
This will imply it will per default be shipped with e.g. KWrite/Kate/...

I got confused, somebody already added this to master there ;=)
Feel free to point at the current file from your repo.


Fix image names with hyphens being reported as invalid

Replaces #1068. Will fix #1070.
It seems like at some point Docker changed the format of image names to
be less restrictive: the image name can have multiple slash-separated
name components (with no bound on the number of components):

The image name which is made up of slash-separated name components...
Name components may contain lowercase characters, digits and
separators. A separator is defined as a period, one or two
underscores, or one or more dashes. A name component may not start or
end with a separator.

This commits removes the regexes in JobValidator that check the
"namespace" and "repoName" separately along with the limits on how long
each portion can be. It now validates that each slash-seperated name
component contains only the allowed characters and that the entire
repository name is below the limit of 255 characters.
See:
docker/docker@ea98cf7
https://github.com/docker/distribution/blob/master/reference/reference.go
https://github.com/docker/distribution/blob/master/reference/regexp.go

Note that I didn't implement checking that the "separator character" fits the exact definition of A separator is defined as a period, one or two underscores, or one or more dashes as that seems very restrictive.

@rohansingh @gimaker @davidxia @rwstephenson

Do we have any docs on image name that need to be updated?

Current coverage is 51.35% (diff: 100%)

Merging #1069 into master will decrease coverage by 0.06%

@@             master      #1069   diff @@
==========================================
  Files           274        274
  Lines         13069      13065     -4
  Methods           0          0
  Messages          0          0
  Branches       1690       1690
==========================================
- Hits           6719       6709    -10
- Misses         5847       5849     +2
- Partials        503        507     +4

Powered by Codecov. Last update c33070c...78a2385

@davidxia I can't find documentation in Helios that refers to what a valid image string or tag is (which is good - we shouldn't document what another system considers valid).


language

is there a VB version, rather than the C# that comes up to copy/Paste?
[Enter feedback here]

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

ID: ef71b45e-0bb6-6e61-3b42-8e8f150db9fb
Version Independent ID: 129fb470-7186-059a-fbe8-29b1caf96bf9
Content: Install and use a NuGet package in Visual Studio
Content Source: docs/quickstart/install-and-use-a-package-in-visual-studio.md
Product: nuget
GitHub Login: @karann-msft
Microsoft Alias: karann

There is not & no plans to support one in the relative near-term.
https://devblogs.microsoft.com/vbteam/visual-basic-support-planned-for-net-5-0/


Add: x86-windows build target

With this commit make will generate deta-x86-windows.zip and deta-x86_64-windows.zip which will support ARCH=386 and ARCH=amd64 respectively.

You will have to make changes to windows install script hosted at https://get.deta.dev/cli.ps1

@abdelhai

@abdelhai @rohanshiva @aavshr

waiting-for-someone-to-merge-or-close-this-request :smiling_face_with_tear:

thank you for the PR @SatvikG7 . Sorry but the cli has now been deprecated. Please contact us on discord or by email if you have any questions or concerns.


improve api for pending tests

there used to be pending in the dsl, now it is renamed to ignored.
I now think that pending was better than ignored but both are bad.
maybe add a pending flag to tests and and contexts. pending until would also be nice (pendingUntil="YYYY-MM-DD")

relates to #63


Better 404 page

Added style to not found page.

Can you please post a screenshot here?

sure i m posting the screenshot here...