Reverse admin url of Customer Model

how can I get the reverse admin URL of the customer model?
I tried:
reverse('admin:shop_customer_changelist')
but could not get it.
could anyone help me, please?

It's admin:shop_customerproxy_changelist
Small hint to find out yourself:

Go to the admin page you are looking for.
Copy the URL without the site part, here /en/admin/shop/customerproxy/.
Run ./manage.py shell
Use that URL in function resolve.
Recheck with reverse if the URL is the same.

>>> from django.urls import *
>>> resolve('/en/admin/shop/customerproxy/')
ResolverMatch(func=django.contrib.admin.options.changelist_view, args=(), kwargs={}, url_name=shop_customerproxy_changelist, app_names=['admin'], namespaces=['admin'])
>>> reverse('admin:shop_customerproxy_changelist')
'/en/admin/shop/customerproxy/'

I really appreciated your comprehensive answer.
I could get the URL using your solution.
I wanted to ask your idea about getting this URL dynamically using the Customer model.
I have a decorator like this:
@admin.register(AnswerSheetModel)
class AnswerSheetModelAdmin(admin.ModelAdmin):
    list_display = ('get_customer')

    @admin_link('customer', 'Customer')
    def get_customer(self, customer):
        return customer

and here is my decorator:
def admin_change_url(obj):
    app_label = obj._meta.app_label
    model_name = obj._meta.model.__name__.lower()
    return reverse('admin:{}_{}_change'.format(
        app_label, model_name
    ), args=(obj.pk,))

def admin_link(attr, short_description, empty_description="-"):
    def wrap(func):
        def field_func(self, obj):
            related_obj = getattr(obj, attr)
            if related_obj is None:
                return empty_description
            url = admin_change_url(related_obj)
            return format_html(
                '{}',
                url,
                func(self, related_obj)
            )
        field_func.short_description = short_description
        field_func.allow_tags = True
        return field_func
    return wrap

It gives the admin URL for change model page.
Is adding an if statement for determining the Customer model only solution? like this:
def admin_change_url(obj):
    app_label = obj._meta.app_label
    model_name = obj._meta.model.__name__.lower()
    if model_name == 'customer':
        return reverse('admin:shop_customerproxy_change', args=(obj.pk,))
    return reverse('admin:{}_{}_change'.format(
        app_label, model_name
    ), args=(obj.pk,))

Is there any better solution?

What shall AnswerSheetModelAdmin do?
BTW, if you are using a tuple in list_display = ('get_customer'), don't forget the comma – you did. It is better to use lists anyway.

Here is my AnswerSheetModel:
class AnswerSheetModel(BaseModel):
    questionnaire = models.ForeignKey(QuestionnaireModel, on_delete=models.DO_NOTHING, related_name='answers')
    customer = models.ForeignKey(Customer, on_delete=models.DO_NOTHING, null=False, blank=False)
    ip = models.CharField(null=True, max_length=20)

    def __str__(self):
        return self.questionnaire.name + ': ' + self.customer.first_name + ' ' + self.customer.last_name

BTW, if you are using a tuple in list_display = ('get_customer'), don't forget the comma – you did.
thank you very much, yes I have trailing comma, I deleted it Here for simplicity :-)

It's admin:shop_customerproxy_changelist
Small hint to find out yourself:

Go to the admin page you are looking for.
Copy the URL without the site part, here /en/admin/shop/customerproxy/.
Run ./manage.py shell
Use that URL in function resolve.
Recheck with reverse if the URL is the same.

>>> from django.urls import *
>>> resolve('/en/admin/shop/customerproxy/')
ResolverMatch(func=django.contrib.admin.options.changelist_view, args=(), kwargs={}, url_name=shop_customerproxy_changelist, app_names=['admin'], namespaces=['admin'])
>>> reverse('admin:shop_customerproxy_changelist')
'/en/admin/shop/customerproxy/'

Regarding that URL, I have problems accessing the following addresses:
http://localhost:8000/es/admin/shop/customerproxy/4/change/
or
http://localhost:8000/es/admin/shop/customerproxy/add/
I have the following error:
TypeError at /es/admin/shop/customerproxy/4/change/

has_add_permission() takes 2 positional arguments but 3 were given

Request Method: 	GET
Request URL: 	http://localhost:8000/es/admin/shop/customerproxy/4/change/
Django Version: 	3.0.7
Exception Type: 	TypeError
Exception Value:

has_add_permission() takes 2 positional arguments but 3 were given

Exception Location: 	/home/ikki/.virtualenvs/vmedexample/lib/python3.6/site-packages/django/contrib/admin/options.py in get_inline_instances, line 596
Python Executable: 	/home/ikki/.virtualenvs/vmedexample/bin/python
Python Version: 	3.6.0
Python Path:

['/home/ikki/Desarrollo/implementacion/medexample',
 '/home/ikki/Desarrollo/implementacion/medexample',
 '/home/ikki/Desarrollo/ide/pycharm-2020.1.1/plugins/python/helpers/pycharm_display',
 '/home/ikki/.pyenv/versions/3.6.0/lib/python36.zip',
 '/home/ikki/.pyenv/versions/3.6.0/lib/python3.6',
 '/home/ikki/.pyenv/versions/3.6.0/lib/python3.6/lib-dynload',
 '/home/ikki/.virtualenvs/vmedexample/lib/python3.6/site-packages',
 '/home/ikki/Desarrollo/ide/pycharm-2020.1.1/plugins/python/helpers/pycharm_matplotlib_backend']

Server time: 	Lun, 15 Jun 2020 16:33:36 +0000

I have made from the installation  cookiecutter-django-shop  by default with all the sample data.
what is the solution?


update Split example to be internally consistent

strFull was changed in commit bfe5afc, but the explanations in the comments refer to the old string.  This change updates them to the current example.

Docs Build status updates of commit 7b55703:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Language/Reference/User-Interface-Help/split-function.md
:bulb:Suggestion
View
Details

Language/Reference/User-Interface-Help/split-function.md

Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Unable to open password protected excel file.

Hi @justkawal , am unable to decrypt following excel file:
Password: temp
<encryption xmlns="http://schemas.microsoft.c
om/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password" xmlns:c="http://schemas.microsoft.com/office/2006/keyEncryptor/certificate"><keyData saltSize="16" blockSize="16" keyBits="128" hashSize="20" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA1"

test.xlsx

Had the same issue, even though I was not able to view the file a similar file created on Python can be viewed but not able to be edited.


feat: add optimizing_threads to function

Fix #195
Add a new function select alter_vector_index("t_idx", 'optimizing.optimizing_threads', 100); to alter index.

This PR will be blocking until #314 handler Oid implemented.

Please resolve conflicts.

Please raise a doc issue in doc repo for tracking


Nuget is not up-to-date?

Nuget package seems to be pretty old. can you make a new release? for example source code has
 [Parameter]
        public bool ShowStop { get; set; } = true;

but nuget doesn't

Package updated, feel free to get latest.


suffixIcon/prefixIcon alignment in an growing multiline TextField

Use case
I'd like to add prefix/suffix icons which are vertically aligned to the top or bottom of a multiline TextField. The TextField might have a fixed height TextField(maxlines: 4) or an auto-growing height with a limit: TextField(maxlines: 4, minlines: 1). Think about a Telegram chat input box.
This feature has been requested in https://github.com/flutter/flutter/issues/42651 with ideal example images:

And it has been closed by https://github.com/flutter/flutter/pull/91998 which add some doc how to do it. However, the PR doesn't work:

The code snippet only covers simple one-line TextField situation.
The technique given in the comment https://github.com/flutter/flutter/pull/91998#issue-1029071224 results in wrong paddings and alignments:

I'm wondering if using Align with heightFactor in this multiline situation is just no possible, considering icon and text have different sizes.

Proposal
I need a way to do this correctly.

Hi @thezjy, Can you please take a look at this code sample and see if this works for your usecase

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (13 days ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/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.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.61.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 96.0.4664.110

• No issues found!

code sample
import 'dart:async';
import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final StreamController<int> indexStream = StreamController<int>();

  int x = 0;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
          body: Column(
        children: const [
          TextField(
            maxLines: 10,
            textAlignVertical: TextAlignVertical.top,
            decoration: InputDecoration(
              border: OutlineInputBorder(),
              labelText: 'Enter your text here',
              prefixIcon: Padding(
                padding: EdgeInsets.only(top: 20),
                child: Align(
                  alignment: Alignment.center,
                  widthFactor: 1.0,
                  heightFactor: 10.0,
                  child: Icon(
                    Icons.lock,
                  ),
                ),
              ),
            ),
          ),
        ],
      )),
    );
  }
}

@maheshmnj Thanks for your help. I'm doing exactly the same as your code. The problem is the icon positioned this way seems to push the bottom away from the text, resulting a much bigger bottom padding (as you can see in your screenshot). The gap grows if it's an auto-growing TextField and you use lineCout as heightFactor.

I now use a Stack and Positioned to place the icon instead of suffixeIcon or prefixIcon, which works fine:

code sample
import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
          body: SafeArea(
        child: Padding(
          padding: const EdgeInsets.all(24.0),
          child: Stack(
            children: [
              const TextField(
                minLines: 1,
                maxLines: 6,
                textAlignVertical: TextAlignVertical.top,
                decoration: InputDecoration(
                  contentPadding: EdgeInsets.fromLTRB(12, 12, 36, 12),
                  border: OutlineInputBorder(),
                  labelText: 'Enter your text here',
                ),
              ),
              Positioned(
                right: 0,
                bottom: 0,
                child: IconButton(
                  onPressed: () {},
                  icon: const Icon(Icons.note_add_outlined),
                ),
              ),
            ],
          ),
        ),
      )),
    );
  }
}

Nonetheless, the suggested approach in the doc does not solve the original issue.

The problem is the icon positioned this way seems to push the bottom away from the text, resulting a much bigger bottom padding (as you can see in your screenshot). The gap grows if it's an auto-growing TextField and you use lineCout as heightFactor.

thanks for the info @thezjy

Hi @thezjy

@maheshmnj Thanks for your help. I'm doing exactly the same as your code. The problem is the icon positioned this way seems to push the bottom away from the text, resulting a much bigger bottom padding (as you can see in your screenshot). The gap grows if it's an auto-growing TextField and you use lineCout as heightFactor.

This is more of an implementation issue than a new feature, If you want to do have the same behavior as the Telegram text field, you certainly need to only grow multiline value for TextField but after a certain height, it should stop increasing the height of the text field but only add more lines in the text field without increasing the actual height of the text field.
As you can see here, when you hit the new line, you also increase the height of the textfield which updates the layout aka rebuilding it so any height factor for Align should also be updated.
https://user-images.githubusercontent.com/48603081/147737749-76ed5a27-8bea-4663-bd4a-cc747a5325a4.mp4
This could use another example where you need to update the height of the text field and max lines according. Try doing this without thinking icon. It would require some effort.

@TahaTesser This "grows with content between a min and max" behavior is already supported: https://api.flutter.dev/flutter/material/TextField/maxLines.html.

@TahaTesser This "grows with content between a min and max" behavior is already supported: https://api.flutter.dev/flutter/material/TextField/maxLines.html.

@thezjy
Yes, since the height is changed, Align constraints have to update as well. It can't be attached to maxLines since adding more lines shouldn't increase the height always. I think a new Flutter cookbook which shows different styles of text field would be really useful, this could be one of them.

Still same, any update?

I now use a Stack and Positioned to place the icon instead of suffixeIcon or prefixIcon, which works fine:

That is nice workaround however contentPadding: EdgeInsets.fromLTRB(12, 12, 36, 12), is not proper since the default one varies by state:
https://api.flutter.dev/flutter/material/InputDecoration/contentPadding.html

The padding for the input decoration's container.
The decoration's container is the area which is filled if filled is true and bordered per the border. It's the area adjacent to icon and above the widgets that contain helperText, errorText, and counterText.
By default the contentPadding reflects isDense and the type of the border.
If isCollapsed is true then contentPadding is EdgeInsets.zero.
If isOutline property of border is false and if filled is true then contentPadding is EdgeInsets.fromLTRB(12, 8, 12, 8) when isDense is true and EdgeInsets.fromLTRB(12, 12, 12, 12) when isDense is false. If isOutline property of border is false and if filled is false then contentPadding is EdgeInsets.fromLTRB(0, 8, 0, 8) when isDense is true and EdgeInsets.fromLTRB(0, 12, 0, 12) when isDense is false.
If isOutline property of border is true then contentPadding is EdgeInsets.fromLTRB(12, 20, 12, 12) when isDense is true and EdgeInsets.fromLTRB(12, 24, 12, 16) when isDense is false.

So instead of contentPadding: EdgeInsets.fromLTRB(12, 12, 36, 12), use suffixIcon: SizedBox.shrink(),, here is the updated version:
updated code sample
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Padding(
          padding: const EdgeInsets.all(24),
          child: Stack(
            children: [
              const TextField(
                minLines: 1,
                maxLines: 6,
                textAlignVertical: TextAlignVertical.top,
                decoration: InputDecoration(
                  // SizedBox.shrink is not a problem since InputDecoration will provide a default ConstrainedBox which sets proper minWidth / minHeight
                  suffixIcon: SizedBox.shrink(),
                  border: OutlineInputBorder(),
                  labelText: 'Enter your text here',
                ),
              ),
              Positioned(
                right: 0,
                bottom: 0,
                child: IconButton(
                  onPressed: () {},
                  icon: const Icon(Icons.note_add_outlined),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}


getting error when change webrtc version to 114.5735.3.0

Hello @crow-misia , I changed webrtc version to 114.5735.3.0, but my build gets failed with following errors.
/home/crow-misia/libmediasoup-android/core/deps/libmediasoupclient/src/Handler.cpp:212:36: error: no viable conversion from 'rtc::scoped_refptr<webrtc::RtpTransceiverInterface>' to 'webrtc::RtpTransceiverInterface *'
                  webrtc::RtpTransceiverInterface* transceiver = this->pc->AddTransceiver(track, transceiverInit);
                                                   ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/crow-misia/libmediasoup-android/core/deps/libmediasoupclient/src/Handler.cpp:359:30: error: assigning to 'webrtc::RtpSenderInterface *' from incompatible type 'rtc::scoped_refptr<RtpSenderInterface>'
                  sendResult.rtpSender     = transceiver->sender();
                                             ^~~~~~~~~~~~~~~~~~~~~
/home/crow-misia/libmediasoup-android/core/deps/libmediasoupclient/src/Handler.cpp:700:38: error: assigning to 'std::unordered_map<std::basic_string<char>, webrtc::RtpTransceiverInterface *>::mapped_type' (aka 'webrtc::RtpTransceiverInterface *') from incompatible type 'rtc::scoped_refptr<webrtc::RtpTransceiverInterface>'
                  this->mapMidTransceiver[localId] = transceiver;
                                                     ^~~~~~~~~~~

Am i missing something or we need to add patch for  114.5735.3.0 version ?
Can you try this and make a recommendation for the same?

Okay. I will try by adding patch. Thanks you for your response.

@ishabodiwala Did you manage to solve this? Would you mind to share your solution?

...and it is not the only problem with M114

yes, we have also identified issues with other versions. However, we have not yet begun working on those issues.

It's easy to "fix". All the same problem


E/gralloc4( 9073): Empty SMPTE 2094-40 data

Steps to Reproduce
1 connect my android with mac by usb
2 run main.dart
there are many logs like below , I want to know what it is and how to solve it

I/ui.in_so_net_ui( 9073): This is non sticky GC, maxfree is 8388608 minfree is 524288
I/ui.in_so_net_ui( 9073): This is non sticky GC, maxfree is 8388608 minfree is 524288
I/ui.in_so_net_ui( 9073): This is non sticky GC, maxfree is 8388608 minfree is 524288
I/ui.in_so_net_ui( 9073): This is non sticky GC, maxfree is 8388608 minfree is 524288
I/ui.in_so_net_ui( 9073): This is non sticky GC, maxfree is 8388608 minfree is 524288
........
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
E/gralloc4( 9073): Empty SMPTE 2094-40 data
.....

flutter analyze
no issue

flutter doctor -v
[✓] Flutter (Channel stable, 3.7.3, on macOS 13.2.1 22D68 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.7.3 on channel stable at /Users/xhkang/Documents/DevelopmentEnvironment/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (9 天前), 2023-02-08 15:46:04 -0800
    • Engine revision 248290d6d5
    • Dart version 2.19.2
    • DevTools version 2.20.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/xhkang/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Users/xhkang/Library/Java/JavaVirtualMachines/azul-1.8.0_362/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (Zulu <IP_ADDRESS>-CA-macos-aarch64) (build 1.8.0_362-b08)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

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

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

[!] Android Studio (version 2022.1)
    • Android Studio at /Users/xhkang/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9514443/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
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.2)
    • IntelliJ at /Users/xhkang/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.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 2022.3.2)
    • IntelliJ at /Users/xhkang/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8617.56/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.75.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (3 available)
    • M2104K10AC (mobile) • n7fqmrlnlbjbdavk • android-arm64  • Android 13 (API 33)
    • macOS (desktop)     • macos            • darwin-arm64   • macOS 13.2.1 22D68 darwin-arm64
    • Chrome (web)        • chrome           • web-javascript • Google Chrome 109.0.5414.119

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Happening here too.

Hello @gkdgo. These logs are coming from the Android OS and not Flutter. You would be able to see these logs in the Android Studio logcat as well. From a quick Google search, it looks like it has something to do with the Vulkan Graphics API, but take that with a grain of salt as I am not an expert on Android :). Since this is not related to Flutter itself, I am closing this issue. Thank you


Fix GitHub Actions

Fix GitHub Actions

@xylar You mentioned in https://github.com/E3SM-Project/zppy/pull/429#issuecomment-1562210348 "You want to avoid mixing conda-forge and pip packages whenever possible."
However, reverting that change, as done in this PR, seems to be the only way to get the GitHub Actions checks passing. I imagine the same will hold true for the equivalent zstash error: https://github.com/E3SM-Project/zstash/pull/271#discussion_r1231591802


No longer working in DnD5e or level up a5e

Describe the bug
No longer works.
To Reproduce
Check error log.
https://cdn.discordapp.com/attachments/964191150586089553/1230457834781540424/image.png?ex=66336428&is=6620ef28&hm=cc593daa4b7e1b37724455b9de9b480153457a9b73cae0a8199469346ca2c9de&
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Game Specifics (please complete the following information):

DnD5e latest, a5e latest
newest update

Additional context
Hey, I know other users are experiencing the issue- I'm not too experienced in the technical matters but I love the module and hate when it's not working 😆

Can you try reinstalling? That method shouldn't be called on either system, only on Custom System Builder and the system-agnostic provider. Even then, it should be available since it is defined on the base class.

That error provided above was someone else's who was experiencing the issue. I uninstalled and reinstalled, still not working. However my 5e game IS working :(
Here are errors on the Level Up a5e system:


Facing error while using FSDP for training

Hi @haotian-liu
I am getting the following errors while using FSDP training with 7B Lightening model.
import flash_attn_cuda
ImportError: /share/softwares/anaconda/anaconda3/envs/llava_beta/lib/python3.10/site-packages/flash_attn_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl

**Torch:** 2.1.0.dev20230515+cu118
**CUDA:** Build cuda_11.8.r11.8/compiler.31833905_0
**Flash-attn:** 1.0.5

I have downloaded/installed the LLaVA repo after May 1st.

Hi, thanks for your interest in our work.
There seems to be some update in the CUDA drivers in the latest PyTorch nightly, you may need to make sure the CUDA version matchse with the PyTorch CUDA version.  Do you want to do FSDP pretraining, or FSDP finetuning?  If you just want to use the FSDP finetuning, you can use the stable version of PyTorch with CUDA 11.7 with the commands this user from our community provides: https://github.com/haotian-liu/LLaVA/issues/123#issuecomment-1539434115. Thanks!

It works fine with the stable pytorch 2.0 version as well. Thanks


Problem installing the Indy SDK in Ubuntu 22.04

Error raises when doing sudo apt-get install -y libnullpay or any other library.
Error message:Depends: libssl1.1 but it is not installable
Any solution/workaround?

Seems like something is wrong with my current libssl version, solved as detailed in this comment.
Just for curiosity, is there any other way to install it without downgrading the libssl?
Anyway you can mark it as closed.

Fixing by install with ROOT SUDO
sudo -i
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb


[Windows] - GVIM compiled with python and python 3 yet omnisharp still says it needs to be compiled with python.

I am not sure if I can be more descriptive than this already, my apologies if the issues was poorly written.

The error message may be slightly misleading. gVim for Windows usually does have python support compiled in - but that doesn't mean necessarily that python is installed in Windows, or that Vim can find it in your path.
In my gVim or terminal Vim I can run the following: :python print("Hello from python") and :python3 print("Hello from python3"). Do either of those work for you?
If not, you need to configure your Vim to use python, see :help python-dynamic
Alternatively, you could use the not-so-new-any-more stdio option, by adding let g:OmniSharp_server_stdio = 1 to your .vimrc. stdio mode is entirely handled in vimscript and python is therefore no longer a requirement. Note that a different version of the OmniSharp-roslyn server is used for stdio so you'll need to reinstall it: restart gVim with the new option and open a .cs file, then run :OmniSharpInstall

Sorry for the late reply. I will test this tomorrow at work (where I have more environments to test) and follow up with the result, thank you for the support!


[Codelab Issue] Testing Codelab 5.#, Step # - Issue description

awaitNextValue is not defined

Thanks, fixed in next release.


Planning migrate to Django 2.2?

@dbuxton @frankh @JeanFred Is this project live or dead. It is a great project but since some time ago there is not news. Is there plans to migrate to newer Django Version?

We're willing to address PRs but we're not actively maintaining or updating. I'm keen to hear from others who could take the project over and indeed address some of these issues...

@dbuxton if that's the case, I think it would be useful to mention in README that you're looking for new maintainers - I only found out by accidentally clicking on this issue! 😄

@vvarp good idea, done


page jumps when interacting with OSD

is it possible to disable this? can be seen on example pages

@fgrs I'm not sure what you're talking about. Can you describe your repro steps and what occurs, as well as what browser you're using?

this is a good example https://openseadragon.github.io/ without clicking anywhere scroll down the page so you can see only a small portion of the image now click the image like you would normally do to zoom in, on chrome page jumps right to the top of the image

Interesting! Looks like it's because the openseadragon-canvas div has a tabindex attribute. I believe we use this to support keyboard interaction, which is definitely a feature we want to keep.
tabindex was added with #577, and it's settable via the tabIndex option when creating the viewer. It looks like if you set a tabindex to an empty string, Chrome won't pop you to it like that. Unfortunately we're currently just testing to see if the given tabIndex option is falsy, so there's no way to set an empty string. It would be an easy enough fix here, though:
https://github.com/openseadragon/openseadragon/blob/master/src/viewer.js#L237
@fgrs Would you like to write a patch for it?
cc @msalsbery who wrote #577 in case he has additional thoughts.


put everything under 'PhoneFormat' namespace

This is to avoid name crash and make your code cleaner. Also it doesn't explode dependencies e.g. google's libphonenumber to global

+1
@hotienvu Modifying the closure.txt file would be ideal in this case since the js file is built with it.

@hotienvu:  Definitely don't want your work to go unnoticed, it is definitely a great improvement.  Having a top level object would be awesome, but this would break the current API and any changes going forward need to be backwards-compatible.  Ideally we want to autogenerate a wrapper to get it pushed into a top level object without having to modify the source file.
If you can figure this out before I get to it, please submit another PR.

@hotienvu I added a phone-format-global.js to the /dist folder which puts everything in a global PhoneFormat object.


Self is undefined when server rendering.

I'm struggling with Angular2 server rendering via Angular Universal. The main idea of that solution is that all Angular2 code executes in Node.js server. So, you can't use "self" variable in Node. When compiler runs my code where localforage is defined, I get:
node.exe : C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:1184
строка:1 знак:5
+ node <<<<  dist/server/server.js -n vd* -verbose 2>log.log
    + CategoryInfo          : NotSpecified: (C:\Users\slava\...lforage.js:1184:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    })(typeof window !== 'undefined' ? window : self);
                                                ^

ReferenceError: self is not defined
    at Object.exports.__esModule (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:1184:46)
    at __webpack_require__ (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:719:30)
    at exports.__esModule (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:739:18)
    at C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:742:10
    at webpackUniversalModuleDefinition (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:692:20)
    at Object.<anonymous> (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:699:3)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.c (C:\Users\slava\dev\mea2n\dist\server\server.js:967:19)
    at __webpack_require__ (C:\Users\slava\dev\mea2n\dist\server\server.js:20:30)
    at Object.<anonymous> (C:\Users\slava\dev\mea2n\dist\server\server.js:907:20)
    at __webpack_require__ (C:\Users\slava\dev\mea2n\dist\server\server.js:20:30)

I'm not shure, that it's an issue of localforage itself, but
var globalObject =  Function('return this')();
// global in node
// window in browser
// worker global in web worker

solves my problem.

Thanks for the issue! Sadly, I don't think this is an issue with localForage.
Including Function like that isn't something we can include as it's likely to violate CSP rules and isn't a good practice.
We also don't focus on node support. If Angular Universal is meant to be drop-in I would file an issue with them.


Fix: 'if' condition when bbox.lat or bbox.lon == 0

If bbox.lat or bbox.lon == 0 'if' condition is wrongly false

@DanielJDufour Could you review please?

@DanielJDufour Hi, is it possible for you to make the review? Thanks.

Hi, @nboisteault .  I'm terribly sorry for the delay.  I'll try to review this as soon as I can.  Thank you!


Remove ammonite from guide.md

Ammonite itself is using scalameta, which causes issue when users want to use it to experiment with the parser.
I propose we remove that section altogether as it seem we will never be able to make it work properly.
Fixes https://github.com/scalameta/scalameta/issues/2294

Just thought that maybe we could change example to use worksheets from metals, but they suffer the same problem, right?

I opened an Ammonite issue here https://github.com/com-lihaoyi/Ammonite/issues/1177
If we publish a separate org.scalameta:semanticdb module that only contains the auto-generated ScalaPB classes then we should be able to fix the root cause of this problem. Users will continue to want to use Ammonite with Scalameta, removing the mention is an improvement for beginners reading the docs but it's not a sustainable solution.

As commented in https://github.com/com-lihaoyi/Ammonite/issues/1177, just pass the --thin option to Ammonite, and there shouldn't be any conflict.

As commented in com-lihaoyi/Ammonite#1177, just pass the --thin option to Ammonite, and there shouldn't be any conflict.

Good idea, thanks!


Design solution for knowledge graph

Created by: @bayegan Jan 04 2022 at 10:09 CET
Last updated: Jan 28 2022 at 11:58 CET
ClickUp ID: IK-1987
Design a solution for where and how to store domain-specific objects.
Acceptance criteria:
Document on wiki the design solution, which covers:
Requirements relevant for where and how to store domain specific objects
How the Neo4j driver directs design decisions
Identity relevant solutions
Evaluation of pros and cons on relevant solutions
Conclusion
Recommendation of next steps

Commented by: @bayegan Jan 28 2022 at 11:58 CET
@yetizer : shall we close - assuming no longer needed?


Pytest-copie investigation

Change Description
I'm spending a little time looking at this neat package, pytest-copie which does a good job of wrapping up the manual work on creating hydrated projects with copier and allows you to programmatically test them using pytest.
I've implemented a couple of unit tests and I'm working on getting this incorporated with pre-commit as well.
The current issue is a little annoying, but I'm hoping that we can find a way around it. I'll do my best to describe it succinctly.
Since our template has git tags associated with it, Copier will only create a hydrated project with it from the latest git tag. When developing, and testing manually, we get around this by passing the --vcs-ref flag (copier copy --vcs-ref=HEAD <template> <project>). That flag instructs copier to use the latest commit as the template to create a project.
So, annoyingly, if we want to run the unit tests as part of pre-commit, we have a bit of a race condition. The unit tests use Copier under the hood and will look at the latest tag (or commit), but the work that we want to test hasn't been committed when pre-commit is running. Pre-commit theoretically can run hooks at any git stage, so for instance, we could specify this hook to execute on pre-push after all the commits have been staged.
Ultimately this may be a set of unit tests that are executed manually or via github CI, but not via pre-commit.
Checklist

[ ] This PR is meant for the lincc-frameworks/python-project-template repo and not a downstream one instead.
[ ] This change is linked to an open issue
[ ] This change includes integration testing, or is small enough to be covered by existing tests

I know it's bad form, but after the approval from @delucchi-cmu I've removed the .pre-commit-config.yaml file from this PR. I was never able to actually see it run, and instead of polluting the main branch, I felt it appropriate to simply remove it and reconsider what the best approach is for ensuring that unit tests are run.


Carthage Support. The library is building each time.

*** No cache found for zlib-spm, building with all downstream dependencies
*** Skipped building common-crypto-spm due to the error:
Dependency "common-crypto-spm" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/daltoniam/common-crypto-spm/issues/new
*** Skipped building zlib-spm due to the error:

I have the same issue, although with Starscream. Anyone has a solution?


News classification using Naive bayes algorithm

I am a participant of LGMSOC'21. I want to work on this issue. In this project, if any text is given to the algorithm,it will classify it to different news groups like politics, religion, space etc. Please assign me this issue.

Please assign it to me

@drishtibaranwal go for it .


Exception: failed to pack apk

Windows 10 using WSL2. Debian.
Successfully installed & tested these tools python3, apktool, zipalign and apksigner.
Successfully generated a xapktoapk.sign.properties file with default Android SDK debug keystore.
Test apk is AI_Bubble_GPT_chat_in_any_app.xapk [Package ID: the.bravenewworld.input]
┌──(username㉿DESKTOP)-[~/xapk-to-apk]
└─$ python3 xapktoapk.py test.xapk
[*] start
[*] unpacking xapk
[*] xapk file unpacked. 3 parts discovered
[*] unpacking 1 of 3
[*] unpacking 2 of 3
[*] unpacking 3 of 3
[*] repack apk
Traceback (most recent call last):
  File "/home/username/xapk-to-apk/xapktoapk.py", line 588, in <module>
    main()
  File "/home/username/xapk-to-apk/xapktoapk.py", line 579, in main
    build_single_apk(path_dir_tmp, apk_main['apk_dir_path'], should_sign_apk, sign_properties)
  File "/home/username/xapk-to-apk/xapktoapk.py", line 439, in build_single_apk
    pack_apk(path_to_tmp_dir, path_to_main_apk_dir)
  File "/home/username/xapk-to-apk/xapktoapk.py", line 318, in pack_apk
    raise Exception("failed to pack apk")
Exception: failed to pack apk

┌──(username㉿DESKTOP)-[~/xapk-to-apk]
└─$

Investiaging manually...
└─$ apktool b ./.xapktoapk/the.bravenewworld.input
I: Using Apktool 2.7.0-dirty
I: Checking whether resources has changed...
I: Building resources...
W: aapt: brut.common.BrutException: brut.common.BrutException: Could not extract resource: /prebuilt/linux/aapt_64 (defaulting to $PATH binary)
W: res/drawable/$avd_hide_password__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hide_password__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hide_password__2.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_show_password__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_show_password__1.xml: Invalid file name: must contain only [a-z0-9_.]

I had a similar issue as @robo187 so I installed Apktool v2.9.3 as @a365344743s had suggested. Now, this is the output I receive when executing:
user@host:~/git/xapk-to-apk$ ./xapktoapk.py Reddit_2024.32.1_APKPure.xapk
/home/user/git/xapk-to-apk/./xapktoapk.py:9: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.spawn import find_executable
[*] start
[*] unpacking xapk
[*] xapk file unpacked. 20 parts discovered
[*] unpacking 1 of 20
[*] unpacking 2 of 20
[*] unpacking 3 of 20
[*] unpacking 4 of 20
[*] unpacking 5 of 20
[*] unpacking 6 of 20
[*] unpacking 7 of 20
[*] unpacking 8 of 20
[*] unpacking 9 of 20
[*] unpacking 10 of 20
[*] unpacking 11 of 20
[*] unpacking 12 of 20
[*] unpacking 13 of 20
Traceback (most recent call last):
  File "/home/user/git/xapk-to-apk/./xapktoapk.py", line 588, in <module>
    main()
  File "/home/user/git/xapk-to-apk/./xapktoapk.py", line 560, in main
    unpack_apk(path_dir_tmp, apk_file, index + 1, unpack_number_total)
  File "/home/user/git/xapk-to-apk/./xapktoapk.py", line 309, in unpack_apk
    raise Exception("failed to unpack %s" % apk_file)
Exception: failed to unpack com.reddit.frontpage.apk

Now, if I manually run the command that's failing, I get this:
user@host:~/git/xapk-to-apk$ apktool d -s Reddit_2024.32.1_APKPure.xapk
I: Using Apktool 2.9.3 on Reddit_2024.32.1_APKPure.xapk
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

And this is the output:
user@host:~/git/xapk-to-apk/Reddit_2024.32.1_APKPure.xapk.out$ ll
Permissions Size User  Date Modified Name
drwxr-xr-x     - user  8 Aug 16:44   original
drwxr-xr-x     - user  8 Aug 16:44   unknown
.rw-r--r--   766 user  8 Aug 16:44   apktool.yml

Here's the directory listing for the unknown directory:
user@host:~/git/xapk-to-apk/Reddit_2024.32.1_APKPure.xapk.out/unknown$ ll
Permissions Size User  Date Modified Name
.rw-r--r--  100M user  8 Aug 16:44   com.reddit.frontpage.apk
.rw-r--r--  1.1M user  8 Aug 16:44   config.ar.apk
.rw-r--r--  349k user  8 Aug 16:44   config.armeabi_v7a.apk
.rw-r--r--  840k user  8 Aug 16:44   config.de.apk
.rw-r--r--  1.2M user  8 Aug 16:44   config.en.apk
.rw-r--r--  1.2M user  8 Aug 16:44   config.es.apk
.rw-r--r--  897k user  8 Aug 16:44   config.fr.apk
.rw-r--r--  2.5M user  8 Aug 16:44   config.hdpi.apk
.rw-r--r--   99k user  8 Aug 16:44   config.hi.apk
.rw-r--r--   91k user  8 Aug 16:44   config.in.apk
.rw-r--r--  824k user  8 Aug 16:44   config.it.apk
.rw-r--r--   95k user  8 Aug 16:44   config.ja.apk
.rw-r--r--   95k user  8 Aug 16:44   config.ko.apk
.rw-r--r--  131k user  8 Aug 16:44   config.my.apk
.rw-r--r--  1.2M user  8 Aug 16:44   config.pt.apk
.rw-r--r--   95k user  8 Aug 16:44   config.ru.apk
.rw-r--r--   95k user  8 Aug 16:44   config.th.apk
.rw-r--r--   91k user  8 Aug 16:44   config.tr.apk
.rw-r--r--   95k user  8 Aug 16:44   config.vi.apk
.rw-r--r--  168k user  8 Aug 16:44   config.zh.apk
.rw-r--r--   51k user  8 Aug 16:44   icon.png
.rw-r--r--  3.5k user  8 Aug 16:44   manifest.json

So it seems as if on CLI the command apktool d -s [FILENAME.APK] is correctly splitting the xapk file? But the Python script is somehow failing somewhere?
Any ideas?

@shayaknyc it was able to unpack all the apks with version 2.9.3 but repacking failed again!!!

@shayaknyc it was able to unpack all the apks with version 2.9.3 but repacking failed again!!!

Yeah, I couldn't get it to repack either..... at this point, I've given up, which makes me sad because I can't "revance" the reddit app unless I get a complete APK file.... very annoying LOL

@shayaknyc it was able to unpack all the apks with version 2.9.3 but repacking failed again!!!

Yeah, I couldn't get it to repack either..... at this point, I've given up, which makes me sad because I can't "revance" the reddit app unless I get a complete APK file.... very annoying LOL

me too, i was trying to patch the latest version of X (twitter)

Hi everyone @robo187 @a365344743s @shayaknyc @MohmmadQunibi. Thank you guys for the interest to the project and your attentiveness. Sorry for the late answer, haven't been looking into GitHub repos for a while.
The script indeed had poor compatibility with Windows, unfortunately, but I have recently accepted and merged a pull request that added that compatibility (https://github.com/LuigiVampa92/xapk-to-apk/pull/4). Unfortunately I have no Windows machine to check it out myself, but everything looks right. On my machine I was able to repack and run AI Bubble GPT chat apk mentioned in the first message, and it should work on Windows as well after the fix.
Can you please check again if it works? Thank you

int, I've given up, whi

I found a way if you are intreseted

Hi everyone @robo187 @a365344743s @shayaknyc @MohmmadQunibi. Thank you guys for the interest to the project and your attentiveness. Sorry for the late answer, haven't been looking into GitHub repos for a while.
The script indeed had poor compatibility with Windows, unfortunately, but I have recently accepted and merged a pull request that added that compatibility (#4). Unfortunately I have no Windows machine to check it out myself, but everything looks right. On my machine I was able to repack and run AI Bubble GPT chat apk mentioned in the first message, and it should work on Windows as well after the fix.
Can you please check again if it works? Thank you

thank you for such great projects, but i rememeber trying this on wsl, which should work there, but i will definitly try the windows script


Putting magic jewel in the crafting bench

I tried to add this item on the crafting bench:
Wright's Cobalt Jewel of the Elements
Item Level: 64
Implicits: 0
4% increased Cast Speed while wielding a Staff
+14% to Critical Strike Multiplier with Elemental Skills
Got error:
In 'OnFrame': Classeds/ItemsTab.Lua:1638: attempt to index local listmod (a nil value)

Confirmed. The root cause is that there are no "crafting bench" mods for the BaseType, so it's trying to grab the mod that is currently selected in the dropdown in order to add it to the tooltip, but there is nothing selected. The crafting bench option shouldn't be displayed at all, there appears to be a logic bug that was partially fixed (for abyss jewels but not regular jewels) in https://github.com/Openarl/PathOfBuilding/commit/9d42348617ff992600ceee2dfe3290c079a50201
Patch to follow.


integrate payment gateway

Description
make  a simple payment gateway which we can integrate in website
Screenshots
No response

Can I work on this issue??

@navyasharma0203
What the update on your work?

@navyasharma0203 What the update on your work?

almost done...


Static rendering

Description
https://github.com/vivid-planet/comet/pull/2836 for Starter.
Adds basic styling for NotFound:

I had to remove export const dynamic = "force-static";

This is not good, that can easily result in dynamic renders. Isn't there an alternative way to access the cookie? Could a middleware help?


Varshini test for editing PRs

Proposed changes

Merge timing

Related issues (optional)

@vanand17 closing this issue. If we still need to do this work, please let us know.


Update code to CDK v2 (#7)

update cdk version to v2
fix minor issues
fix: remove package-lock.json
Closes #6

LGTM


plotjuggler takes cabana shared links

Description ./juggle.py "https://my.comma.ai/cabana/?..."
Verification Plotjuggled all the things. Seems to only work with recent cabana shared links.

Why do you need a token from auth_config? In this case you can call api_get directly and skip the token part.

@pd0wm , I'm unable to get it to work without a token:
    query = parse_qs(urlparse(route_name).query)
    logs = CommaApi().get(f'v1/route/{query["route"][0]}/log_urls?sig={query["sig"][0]}&exp={query["exp"][0]}')

Traceback (most recent call last):
  File "./juggle.py", line 119, in <module>
    juggle_route(args.route_name, args.segment_number, args.segment_count, args.qlog, args.can, args.layout)
  File "./juggle.py", line 52, in juggle_route
    logs = api.get(f'v1/route/{query["route"][0]}/log_urls?sig={query["sig"][0]}&exp={query["exp"][0]}')
  File "/home/user/openpilot/tools/lib/api.py", line 27, in get
    return self.request('GET', endpoint, **kwargs)
  File "/home/user/openpilot/tools/lib/api.py", line 19, in request
    raise UnauthorizedError('Unauthorized. Authenticate with tools/lib/auth.py')
tools.lib.api.UnauthorizedError: Unauthorized. Authenticate with tools/lib/auth.py```

Try using api_get: https://github.com/commaai/openpilot/blob/master/common/api/init.py#L39

Trying api_get in juggle.py:
    query = parse_qs(urlparse(route_name).query)
    logs = api_get(f'v1/route/{query["route"][0]}/log_urls', sig=query['sig'][0], exp=query['exp'][0])
    print(logs)

and printing endpoint and params in api/__init__.py:
  print(endpoint)
  print(params)

Gives a 401 error code. I have so little idea about how to form an HTTP request.
v1/route/72597da3b82d1dc6|2020-08-29--20-04-10/log_urls
{'sig': '9Qoh1lpzDG5RezA9tTwa4cm0mQiR6f4DkeKWjvBtlbg=', 'exp': '1659157547'}
<Response [401]>
Loading b'{"error": 1, "status_code": 401, "description": "The server could not verify that you are authorized to access the URL requested'
Loading b". You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credenti"
Loading b'als required."}'

@pd0wm , got api_get() working, but still require an auth token for the request. I assumed that JWT token is required for any request?

Cabana manages to show the route without logging in, so it should be possible!

Oh, you're right. It still expects a JWT, but it can be from any user


uhh bns tool issue

Hey, seems no matter what I do I can't get your picture tool to work. I take a fresh picture ingame, I took a screenshot from ingame and resized it to 378x620 JPG. Uploaded both in the same order, saved the picture that your tool/site created as 'download' (JPEG) in Character Shot folder. I go back into game and I don't see the picture I uploaded as it says I should in your guide/tutorial. Also when I registed the fresh/valid picture it just uses that exact picture. Please help i'm pulling my hair out over this :(
Also I don't know how this works but I thought maybe because I am using WTFast maybe it could be interfering somehow? I tried without WTFast and no luck either but thought maybe it's worth suggesting lol.
Edit: Using google chrome and windows 10 if thats of any use. Thanks.

Hi,
I just tried to check if it hasn't Something to do with the update of yesterday, but it's working fine.
Please, post your legit character shot, your custom image, and the image you get as a result, so i can check where this goes wrong. :)

Hey bud thanks for the quick reply, appreciate it.
Ok so here is valid pic: http://imgur.com/a/zNJbI
Here is what I want to have: http://imgur.com/a/DyFKd
This is what the site gives and I place that in character shot: http://imgur.com/a/D7cut
Thanks again.

I can't find why, but the problem seems to come from the valid pic. When I try with some I take myself, it works fine.
Here's your image :

Tell me if it work

Thanks, so I'm not doing something wrong what a relief, somewhat haha. Just about to jump on the pc will let you know in a tick

Hey, didn't work either. I just took a fresh picture ingame now.
http://imgur.com/a/7srXj
I uploaded fresh, chose same custom pic from my desktop, and downloaded your pic for character shot folder and didn't work either. Not sure.

I just don't get why this isn't working. I just tried again with a fresh new ingame picture, and it worked.
Strange thing is, your legit CharacterShot is 413×678px, mine are 386×633. For some reason, these are not the same "pictures types", and I don't know why, but that must be the cause of the problem. Are you on EU or US server? I don't know if it could matter, but i'm exploring any possibility…

Can you try with this one as a legit ?

Sure, do I just copy this into my Character Shot and then do normal process?

Hmm, copying it into my folder, it doesnt appear in portraits, what do I do step by step sorry ;x

I noticed after i copied this pic into my folder there is a blue line on my old picture on right hand side you can see it ingame, dunno if thats a clue xD
http://imgur.com/a/to89Q

Aight, scrap all that above. I renamed your pic above to portrait_002 etc and I could use that picture, but when i tried the normal method using that pic as valid pic, it doesn't change anything still ;/

That's really strange.
Can you test this tool to see if it does the job? It's the same process (but watch out, it will try to open a new tab to give you the final image, your adblocker will surely stop it. You'll just have to click on "authorize" at the top right of your browser) : http://f4rnham.github.io/BnS_pictures/

Yeah it sucks, maybe I should reinstall BnS? I've tried that 50 times before someone linked me to this site doesn't work either. I just tried it with your pic as valid and still no good :(

This is crazy… But reinstall BnS would take you hours !

Hmm either that or you could log my account maybe? xD

I don't know if I can. It depend if you’re on US or EU servers, i guess.
If you wanna give it a try, I suggest you change your password first, so you don’t post and give your original one. Then you’ll change it back when done. This is just a safety check.


Docs translate to English?

I was interested if there was documentation in English.

We are working on it. Stay tuned.

https://github.com/sipt/shuttle/blob/master/README.md


No longer able DAG to update via AirFlow

Hello! I am getting the following error:
   return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/var/www/html/python/DAGs/dbt_cloud_utils.py", line 110, in run_job
    job_run_id = self._trigger_job()
  File "/var/www/html/python/DAGs/dbt_cloud_utils.py", line 77, in _trigger_job
    assert self.account_id == response_payload["data"]["account_id"]
TypeError: 'NoneType' object is not subscriptable
[2022-02-27, 16:01:38 PST] {local_task_job.py:154} INFO - Task exited with return code 1
[2022-02-27, 16:01:39 PST] {local_task_job.py:264} INFO - 0 downstream tasks scheduled from follow-on schedule check

Do you know what would cause this error now? I recently had my trial expire but I just switched it to developer to continue my tests. I ran the DBT job successfully in the cloud web app, but my DAG no longer runs.  Maybe the response changed? I'm not skilled enough to determine :(
Thank you.

Nevermind, I printed the response payload and see the issue :(
[2022-02-27, 17:23:29 PST] {logging_mixin.py:109} INFO - {'status': {'code': 401, 'is_success': False, 'user_message': 'The API is not accessible to unpaid accounts.', 'developer_message': None}, 'data': None}

Thanks for detailing it out in this issue! Let me know if you need any help otherwise.
I'll go ahead and close this issue!


"来園者" needs to be replaced with "ゲスト"

Strongly recommend to replace "来園者" with "ゲスト" , I can see "来園者" is used as a localized Japanese word of "guest" in English, however, it should be "ゲスト" which stands for guest user of Microsoft Teams.
https://docs.microsoft.com/ja-jp/microsoftteams/configure-desktop-sharing

ドキュメントの詳細
⚠ このセクションを編集しないでください。 docs.microsoft.com で必須です ➟ GitHub の問題のリンク。

ID: 9ce30163-6327-899b-281d-d4ef982fce5e
Version Independent ID: e61dcbb8-4877-ef6f-1987-981cdd7fc82f
Content: Microsoft Teams でのデスクトップ共有を構成する
Content Source: Teams/configure-desktop-sharing.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: Lolaj

@hyoshioka0128 The "guest" string has been updated and it's displayed as suggested

@OfficeGlobal Thanks.
Close #1725


Rayon does not work well with the optick profiling and performance logging library

I made a sample repo (that contains a sample capture) to demonstrate the issue - https://github.com/vladkvit/test_rayon_optick
When rayon's par_iter() is used, none of the optick::event!() calls are logged from the spawned threads. I'm curious if this is an issue on the optick side or the rayon side, would love someone more knowledgeable to take a look.
FWIW, I also cross-posted the issue here - https://github.com/bombomby/optick-rs/issues/9

If optick is using thread-specific state, then it wouldn't surprise me at all that it fails to see inside the rayon thread-pool. I've never used it, but at a glance optick::start_capture() does look like it's only for the current thread.
You might be able to use a ThreadPoolBuilder::start_handler to turn it on, but it will probably still get confused about the hierarchy of events due to rayon's work-stealing. See also #915.


Slow performance?

How long should speakerDiarization.py take to run on a typical system with a GPU?
I ran the speakerDiarization.py example and it segmented the file correctly. However, it's very slow. It takes about twice the length of the wav file to run, which makes it impractical to run on large files. For example, the sample file is about 2 minutes long, and it took 4 minutes to process. I also tested it with a custom wav file that was 3 minutes long, and it took 6 minutes to run.
My system is 2.80GHz quadcore with 32GB of memory.
Is this the typical processing time? Is there anyway to speed up processing?

I'm afraid you should reimplement the uis-rnn by yourself if you need speed up, and the short-coming of the original uis-rnn also obviously since you have figure it out in #16

I guess I'm more curious what typical performance is like on a system with a GPU, since I don't have one and the code is heavily dependent on Torch and Tensorflow, which are both optimized for GPUs. I don't have any systems on hard built to do high performance computing so I can't test it myself. Do you have any reference numbers to share? How long does it take to process the rmdmy.wav file on a system with a GPU?
I'd like to do more testing, and I'm trying to decide if I should invest in a GPU, but I don't want to waste my time if it's only a minor speed up.

Sorry, I haven't test it on GPU. However, you can adjust the parameters in ghostvlad, such as hop_length to reduce the piece count of the whole wav file.

Wouldn't reducing the hop_length effectively reduce the resolution at which a unique speaker can be detected, and result in more errors?

Do you have any thoughts on how you could translate the speaker labels from one run to another? I'm thinking, instead of running uisrnn on the whole file, I'll split it into parts and then run it on each file in parallel. That would drastically speed it up. You'd then stitch the speaker labels together to get the complete speaker segmentation. The only problem is correlating the different speaker labels, since each run would potentially refer to completely different speakers.

I think there will be more complexity since you should compute the similarity of each speaker segmentation by different parallel threads. And the uis-rnn seems to require store the speaker Id which has processed before since it use ddCRP(distance dependent Chinese restaurant process) model.


Security of plists, consider recommending programmatic approach

Currently your project recommends to set configuration in the Info.plist of a project. You have implemented a programmatic configuration for TrustKit though (kudo's!). It's trivally easy for a hacker/script kiddie on a compromised device to change the Info.plist, and thus the TrustKit configuration. Reverse engineering and changing the binary is also possible, but requires a much higher skill level hacker.
Please consider encouraging users to use the programmatic configuration (and make the Info.plist the alternative) or mention at the programmatic configuration that you might want to do this if you want to implement it more securely.

Hello and thanks for the feedback!
I respectfully disagree tho: a compromised App/device is not part of SSL pinning's thread model. SSL pinning adds security against network attacks; the fact that it makes reverse-engineering an App sightly harder is merely a side-effect, but not the goal.
There's plenty of tools available to disable pinning even when initialized programmatically ( such as my own: https://github.com/nabla-c0d3/ssl-kill-switch2 ) so it doesn't really make it that much harder.
Overall if you want to make your App very hard to reverse-engineer, you will have to write your own, heavily-obfuscated and custom SSL pinning implementation; leveraging a widely used pinning library will not work for this. I would advise against this tho as I personally don't see researchers reverse-engineering an App as a big security threat (it has more to do with IP protection and DRMs).
Hope this makes sense!


Feedback for "Application Plans"

The section Upgrading to the Standard-Edition Plan misses IMHO information about necessary entitlement for the subaccount. This could be listed as a prerequisite in this section.

I have added the following note:
If you don't see the standard-edition plan option in the list, make sure that there's an entitlement for SAP Business Application Studio in your subaccount. See Configure Entitlements and Quotas for Subaccounts.
It will be published in the next release.

https://people.sap.com/j.klingelhoefer


Compute inertia tensor?

It would be nice if the lib could compute the inertia tensor of each hull at the same time it computes volume.
Bullet's convex hull inertia tensor computation seems to treat all the mass as if condensed in the vertices, so the inertia is innacurate, mostly on elongated objects.
The inertia tensors's three coordinates of each hull could be output perhaps in a text file.
Thank you for reading this feature enhancement petition.

Have you had any luck on this front? I am importing some meshes into a simulated physics engine and I need some reasonable inertia tensor for this purpose.


Is it possible to support multiple upstream caches?

My use case is I have a cachix cache which is set to not cache anything already present in cache.nixos.org. In my builds I'd like for the magic-cache to only contain anything not present in either of my cache or cache.nixos.org, so there is no obviously correct (to me at least) value for which I should set upstream-cache if I only had to pick one

Did some digging in the magic-nix-cache sources, looks like any new store paths get uploaded which does not take into account whether the upstream cache(s) also include it
https://github.com/DeterminateSystems/magic-nix-cache/blob/a2eb0c6759c08aa7b288708effccf9047a1bb525/magic-nix-cache/src/api.rs#L52-L57


fix delete favicon

fix delete which seems only work on logo but not with favicon.

Hello @hijaumuda, can you please explain the use case for which this PR was made?

@bvipul settings page.
oops, I should PR to dev?

Yes if you can send PR to develop branch again then it will be good. thanks.


Not using Custom Serializer in linqSerializerOptions

Describe the bug
Custom serializer options are not used when using GetItemLinqQueryable.
To Reproduce
var customSerializer = new NewtonsoftJsonCosmosSerializer(new JsonSerializerSettings { DateFormatString = "yyyy-MM-ddTHH:mm:ss.fffZ" });
var cosmosClient = new CosmosClient("myConnectionString"), new CosmosClientOptions { ConnectionMode = ConnectionMode.Gateway, Serializer = customSerializer });
myContainer = cosmosClient.GetContainer("database", "container");

var myDateTime = DateTime.UtcNow
await myContainer.CreateItemAsync(new MyClass { Id = Guid.NewGuid(),  MyDateTime = myDateTime })

var iterator = myContainer.GetItemLinqQueryable<MyClass>()
    .Where(c => c.MyDateTime == myDateTime)
    .ToFeedIterator();

var result = new List<MyClass>();
while (iterator.HasMoreResults)
{
    result.AddRange(await iterator.ReadNextAsync());
}

var item = result.FirstOrDefault();

Assert.NotNull(item)

Expected behavior
Expected to find the item that was just created.
Actual behavior
Item is not found. The generated query is
SELECT VALUE root FROM root WHERE (root["MyDateTime"] = "2023-03-20T12:28:12.1353978Z"
with the custom datetime serialization, the query should actually be
SELECT VALUE root FROM root WHERE (root["MyDateTime"] = "2023-03-20T12:28:12.135Z"
Environment summary
SDK Version: 3.32.2 (3.32.1 works as expected)
Additional context
The problem seems to be because CustomCosmosSerializer = this.ClientContext.ClientOptions.Serializer is removed from the linqSerializerOptions in this commit: https://github.com/Azure/azure-cosmos-dotnet-v3/commit/682b0011dd8224fbbd8f66691abf28cb53929e28

Duplicate of https://github.com/Azure/azure-cosmos-dotnet-v3/issues/3697.
The serializer was removed because the PR that added it caused other regressions, please see the linked issue. The team is working on a different fix for this.


flush pongs

Pongs weren't being explicitly flushed to the server. If the connection was sitting idle (no publishes/subscribes to flush the connection) it was possible for no pongs to be sent as a response, and the server to sever the connection. Explicitly flushing pongs prevents this.

Thanks again Brian


Features requested by @aryanbaburajan

These were the improvements suggested by @aryanbaburajan, I just took the liberty to post a gh issue for them

[ ] command to delete last n messages

[ ] Adding Reaction roles to the bot to get roles for different languages

this issue has been superseded by https://github.com/TheSlayerishere/Actual-Working-Better-DS-bot/issues/7


Type: String, wrong date value transformation to update form

Hi,,
if you use
{
date: {
type: String,
autoform: {
type: "bootstrap-datepicker"
}
}
}
Insert is OK, but when you want to use update form, the date value  in input is wrong and bad formatted to.
If i am using type: Date, everything is OK

I think next version will fix this


Typescript uses any instead of union type for nested records

Bug Report
type SpecificModelMetrics = {
    [target: string]: {
        [metricName: string]:
            Record<MetricType, number>;
    }
}

// Same as SpecificModelMetrics, but null instead of metric, since we don't display it on the comparison table
type SpecificCompareModelMetrics = {
    [target: string]: {
        [metricName: string]:
            Record<MetricType, null>;
    }
}

i would expect TS to reduce SpecificModelMetrics | SpecificCompareModelMetrics to
type CombinedType = {
    [target: string]: {
        [metricName: string]:
            Record<MetricType, number | null>;
    }
}

instead the map entry is [string, any], requiring me to manually specify the type like Object.entries(metrics).map((targetEntry: [string, Record<string, Record<MetricType, number | null>>])
🔎 Search Terms
nested records
🕗 Version & Regression Information

This is a crash
This changed between versions ______ and _______
This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
I was unable to test this on prior versions because _______

⏯ Playground Link

https://www.typescriptlang.org/play?#code/C4TwDgpgBAshwCcCWBjAKuaBeKAiRAhkgHYD6AtvMigM65QA+ewENwFVqdjeAbgQBskAEwLAkAezKVEXXAG4AUKEhQAypBRIAZqhgThEAXFm0oOAN6KoNqAG1gBBAHN4ALihtkxZwF0PVrZB9jLUAHIElB5eJH5u1sGJAEoQKBIIwgA8JtQYkAA0UMQAruQARhAIAHxKQQC+ig2KAPTN6pHQBDTqmjp6BkY5XIVlxcBFxQICUCRsEATCUBLaUKGohTQkKNAA7tDCUgDk48JINGACBCAz41JQwAAW0GnkYE5nd45lAhDKmD2pPooADCEleTgg+kMxk4ZksCRsDicrmA0VkPn8UECiRCsIiUU86LiCJxNhSaQy2VheQghRKUxqJIaTTSxDYqxUEA8Q3Q-xw+AQRGksLoSlZ7LWtAATOYsfhkfAAIy4AK4SXKgLkTkeAAsdX1UC6AK0uhQUMGIqUinF4xWOAAFJKaB4NIDTeaYaZukxXSb+tCeTQAJTmKpYkkAeTKACtUsAAHQQYiyViOkVB+PkAhge2OFzwACiyYQ1ywYexOJt9jzKMKNfgADVBMVWL5ZfXgEXECBaqSo7GUAmkymaLmFcAmwIW8HM9m06Yu8hWKHw6SglW7JL8bTVtTMDQ2zhJYukKxe2uoOKJD94wIJM557l9-HCCQOF6g+fgnUg0zf01tEfLgpU-IA
💻 Code

// We can quickly address your report if:
//  - The code sample is short. Nearly all TypeScript bugs can be demonstrated in 20-30 lines of code!
//  - It doesn't use external libraries. These are often issues with the type definitions rather than TypeScript bugs.
//  - The incorrectness of the behavior is readily apparent from reading the sample.
// Reports are slower to investigate if:
//  - We have to pare too much extraneous code.
//  - We have to clone a large repo and validate that the problem isn't elsewhere.
//  - The sample is confusing or doesn't clearly demonstrate what's wrong.

🙁 Actual behavior

🙂 Expected behavior

The playground link uses  SpecificModelMetrics | SpecificModelMetrics, which seems like a typo, and changing it to SpecificModelMetrics | SpecificCompareModelMetrics produces unknown (and an error), not any as described here.
Please file a new issue with a working repro.


0.0.4 - fixed newlines in event data

Fixed newlines appearing in event data on platforms that do not use carriage return line feeds. #2
Needs merge & npm publish.

Thanks!


[manual-sync] Add an objectSelector to ConfigurationPolicy

Manual sync of:

https://github.com/open-cluster-management-io/config-policy-controller/pull/317

The objectSelector is implemented as a pure
LabelSelector so it can be passed directly to a
List operation in the dynamic watcher.
ref: https://issues.redhat.com/browse/ACM-15389
Signed-off-by: Dale Haiducek<EMAIL_ADDRESS>(cherry picked from commit defcac53de98e862c31fd7f489a84281560134fb)
Signed-off-by: Dale Haiducek<EMAIL_ADDRESS>Closes #1105

/retest


README and doc/ have the same information

README.rst and the doc/ folder have similiar information. Would be good to cleanup README so the doc content is only in the doc/ folder.
Eg. https://github.com/SUSE-Cloud/socok8s/blob/master/doc/source/deploy-guide/prepare-localhost.rst#configure-openstack-deployment-mechanism and https://github.com/SUSE-Cloud/socok8s#configure-engcloud

This is due to a recent merge regression. I have discussed this on the channel, but got no answer on when this will be solved.


GORA-406 Upgrade Solr dependencies to 4.10.3

Dependency upgrade to Solr 4.10.3.

+1
I always furious with forcing to add log4j.properties, but has to be done =(


Search improvements POC

This is a POC of various changes I've been experimenting with in a private fork.
Some of the things I've changed/tweaked:

Use one index instead of two
Attempted to improve ranking/scoring
Truncate summaries while attempting to retain useful highlights
Attempted to fix #2438

Things that probably need more work/resarch:

~Summaries aren't truncated at word boundaries~
Titles aren't highlighted
Tests
Make sure memory usage didn't get worse

From a UI perspective it might be worth considering adding page links and making the page title/item selectable, which would alleviate the need for the placeholder section item.
I need to dig into the structurizedData data generation at some point. In my private branch I added a content processing regex to split merged paragraphs (e.g. This is the first.The is the second), but it's kinda hacky (content.replace(/(\w)\.(\w)/, '$1. $2')).
Another possible useful feature would be the ability to define keywords in frontMatter, which would help with page discovery/ranking when the section data isn't enough.

Since your PR contains a lot of changes, unit tests are highly required, to see how search results become different.

Absolutely. I'll also include unit tests for the helper functions as well.

I don't know what the proper way of testing this, I tried to help you and added initial tests for flexsearch in the following PR #2455

Yeah, I think it will be a mix of unit tests and manual testing. Creating unit tests for "good" results is going to be tricky. But I'll definitely do a first pass of all the obvious stuff.
I did a fair bit of manual testing using my docs and the nextra.site docs, but I might also try to pull down the data files from sites listed in the showcase and see how those look.
I also need to do some testing in other languages, I've only tested English thus far.
We might also need to tweak the summary length and such based on the language (need to do a little research on Javascript unicode handling in regards to regex word boundaries and string lengths... it's been a while since I did anything non-trivial).

I don't think that want to make some changes for v2 since v3 will be out soon. Could you change your base branch to #2455 ?

Definitely. Just timing wise, assuming this ends of being useful and you decide to merge, is it something you'd want to get in before the v3 GA release? If so I can make sure I get it done before then.

I added a falling test for your case
https://github.com/shuding/nextra/blob/62eb7436bfd3fec9aa7a75d0cca03127c9ae4444/packages/nextra-theme-docs/__tests__/search.test.ts#L25-L27
and for some bug that I saw previously
https://github.com/shuding/nextra/blob/62eb7436bfd3fec9aa7a75d0cca03127c9ae4444/packages/nextra-theme-docs/__tests__/search.test.ts#L21-L23

Awesome.

Let's fill this file with unexpected search results and see how results will be changed in your PR

Will do.

Suspense
Before

After

This is a page
Before

After

SWRConfig
Before

After

Pre-fill
Before

After

Fourth Long ToC Item That Definitely Needs to Wrap
Before

After

This page should not have the sidebar
Before

After

google.com

Key Change + Fallback
Before

After

@silas thank you for working on it, I am in retreat right now, will review your work next week

@silas thank you for working on it, I am in retreat right now, will review your work next week

Yeah no worries, I'm just pasting screenshots so I can remember to fix issues, but I should probably just be doing that locally.
I'll mark it as ready for review and directly ping you once it's ready, didn't mean to spam your notifications.

Thanks! Sounds good

@dimaMachina ready for review when your back next week

@dimaMachina Friendly ping. Anything I can do to make this easier to review?

@dimaMachina Cool. This definitely adds a bunch of complexity and I think it's probably better to go with a simpler solution if you can.
We decided to switch to markdoc, so I probably won't have the time/motivation to get this merged in the future.
If any the code seems useful, feel free to/copy fork as you see fit!


No support for test orgs?

I got this to work for a production org, but I don't see a place to specify if the org is a test org (access through test.salesforce.com).  Does this app work with Salesforce test orgs?

I cannot believe I forgot to do this...Thanks for pointing out.
I'll add a new env process variable, in the meanwhile you can change line 54 of file sf-git.js with:
sfConnection : (new jsforce.Connection(loginUrl: 'https://test.salesforce.com')),


FAQ Section

I would like to propose the addition of a Frequently Asked Questions (FAQ) section to our website. This section can address common queries that our users may have, providing them with quick and easy access to the information they need.
If you agree, I would be happy to take on the responsibility of gathering common questions and compiling them for the FAQ section.
@anuragverma108 , I would like to kindly request that this issue be assigned to me under the Hacktoberfest label. I am eager to contribute and work on resolving it. Thank you for considering my request.

Thanks for creating the issue in WildGuard! The issue has been assigned to you.
Before you start working on your PR, please make sure to:

⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Attach before & after screenshots in your PR for clarity.
Include the issue number in your PR description for better tracking.

Don't forget to follow @anuragverma108 – Project Admin & @PriyaGhosal-Project Collaborator  – for more updates!
We're excited to see your contribution as part of Hacktoberfest 2024! 🎉
Happy open-source contributing!

hi @PriyaGhosal @anuragverma108
Iam getting merge conflict could you help me to avoid it
This branch has conflicts that must be resolved
Only those with write access to this repository can merge pull requests.
Conflicting files
assets/css/style.css
assets/js/script.js
index.html

Iam somewhat new to open source so could you please help me to resolve it

done with the work please check my pr https://github.com/anuragverma108/WildGuard/pull/156


Wrap could have an option to make it's children share the same width per run

Use case
I wanted to make this with a Wrap:

As you can see, all the items in one line share the same width, so Wrap would have to expand it's children after it layouts so all share the same width.
Proposal
We could have 2 options, a simple one to "expand items evenly to make them take the remaining space", and another one to "make all items in a run have the same width", which would require a more complex layout behaviour.

I'll start working on implementing the equal width per run feature for the Wrap widget. Planning to add the equalWidthPerRow parameter and modify _RunMetrics for enforcing equal widths within each row.
Let me know if you have any specific preferences on the implementation approach.


Delay in minutes cannot be changed in Coversion Settings

The issue is self descriptive.
Once I try to change the default value from 60 minutes in the FPU, “save it” and then 60’ value can be found again.

Minimum delay is 60 minutes. Maximum is 120 min.

Fixed in dev. Now you can make adjustments

In dev you now can make bigger adjustments

Big thanks!!


fix(select): errors not shown on submit

Fixes mat-select error messages not being shown when the parent form is submitted.
Fixes #7634.
@mmalerba this is more or less what the input does already. I was considering moving it into the MatFormFieldControl, but having lifecycle hooks in there might look weird. What do you think?

I was thinking we should just move all the ErrorStateMatcher stuff into mat-form-field anyways. It's essentially all the same logic duplicated between input and select, and anyone who implements a custom control is probably going to want similar behavior. (but also fine if you just want to do this for now to fix select)

My issue with having it there is that some bindings on the form field control depend on it (e.g. the aria-invalid on the input). We'd have to introduce another subject like stateChanges, but on the form field, which could make things even more convoluted.

Hmmm I see, what if we changed to, instead of an @Input to a @Directive: [matErrorStateMatcher] which would basically do this:
@Directive({
  ...
  providers: [{provide: ErrorStateMatcher, useExisting: MatErrorStateMatcherDirective}]
})
export class MatErrorStateMatcherDirective implements ErrorStateMatcher {
  @Input('matErrorStateMatcher') errorStateMatcher: ErrorStateMatcher;

  isErrorState(...) {
    return this.errorStateMatcher.isErrorState(...);
  }
}

This way form field and input could both just inject the token and not worry about dealing with the @Input. It also has a cool side-effect of being able to do this:
<form class="my-special-error-group" [matErrorStateMatcher]="myMatcher">
  <!-- bunch of form fields that all get my custom matcher -->
</form>

I don't think that would react to changes either. Angular marks it for checking if the @Input value changes. Since the input is the error matcher itself, it won't do anything when the error state changes.

Ok then, let's do this for now, I'll keep thinking if there's any good way to move this common logic somewhere else...

@crisbeto when will this fix be released?

Is this fix released?


How to bind flat menu with web category

I created simple website. Website tree is something like:
Homepage
Topic A (content page)

Page 1 (content page)
Product catalogue (product index page)
** Product 1 (Product page)
** Product 2 (Product page)
Page 2 (content page)
Page 3 (content page)
Page 4 (photogallery page)

Topic B

Page 1 (content page)
Page 2 (content page)
Page 3 (content page)
Product catalogue 2 (product 2nd type, index page)
** Product 1 (Product2 page)
** Product 2 (Product2 page)

Topic C

Page 1 (content page)
Page 2 (content page)
Page 3 (content page)

Topic D

Page 1 (contact page)
Page 2 (form page)

The problem is: for each Topic i need sidebar menu linking some pages. So i created more flat menus, specific for each topic. But in flat menus i'm missing option to specify for which tree is menu made. All topics use the same template (content_page.html) and i can't hardcode like {% flat_menu 'topic_a' %}, but i need it to bind somehow else. Please, can you help me or give me direct url i overlooked how to do it, because i think there must be some easy way how to do it, including translations.

Hi @moreplavec,
I would advise that having this 'loose linking' between sections and flat menus is a bad idea. What if you decide to move the sections around, or change one of the slugs for the sections? And what is keeping your menu items / pages in sync?
My recommendation is that you use the section_menu tag instead here, which will automatically identify the 'Topic D' page from the current one, and output a menu powered entirely by your page tree (no separate defining of menus/menu items required).
If there are additional links needed in those menus that aren't currently pages in your page tree, you have two options there:

Create a LinkPage model based on AbstractLinkPage and add the links into your tree alongside the pages
Or, if the additional items can be sensibly generated dynamically, and are consistent for each sectiom, you could take this approach instead: https://wagtailmenus.readthedocs.io/en/stable/menupage.html#using-menupage-to-manipulate-sub-menu-items

If you are really stuck on your current approach, this might work for identifying the correct menu based on the slug of the section root:
{% flat_menu wagtailmenus_vals.section_root.slug %}


Add test for edit and delete accommodation command

Josh, can update this? I wanna see what the coverage percentage will be lol

Josh, can update this? I wanna see what the coverage percentage will be lol

Ok, going to update now


Removed kube2iam and added support for IRSA

Removed kube2iam and all references
Added IRSA support to cloudwatch agent, fluentd, and external-dns
Updated some external-dns settings
Upgraded to the most recent EKS module
Upgraded to the newest EKS version and AMI
Renamed and standardized some role names

Still want to fill in the readme a bit more and remove the CNI role from the workers, and instead add IRSA support to the aws-node daemonset.


BMI Calculator  React JS

BMI Calculator

Make a bmi calculator using HTML CSS JS

Hey !
This is my very first time contributing to open source. How exactly should I contribute to this project ? I am new to Open Source , it would be great if you could help.

Hey!
I would like to contribute in this project, please assign it to me.


Apiserver receives unsupported field label

Apiserver continuously logs following errors in current HEAD.
errors.go:66] apiserver received an error that is not an api.Status: field label not supported: Status.Host

This is caused by receiving a request like /api/v1beta1/pods?fields=Status.Host%3D<IP_ADDRESS>&namespace= from kubelet. And it is fixed by just adding Status.Host case here, but I'm not sure that's right.

This is because the v1beta1 version of Pod (https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/v1beta1/types.go#L510) does not have a Status field.
You should use DesiredState.Host instead of using Status.Host in the URL.

Dup of https://github.com/GoogleCloudPlatform/kubernetes/issues/5202


Shared options when mixing generators on the command line.

For the generator I'm making, the sub generators can rely on some of the same options.  For instance, if I had devjs:readme and devjs:package, an option name could be used for both (in the title, and in the "name" field in package.json)...
But the problem is, I don't want to have to have the user to supply that option (or be prompted for it) twice, because once they enter it the first time, the other sub-generator could use it.
Right now, to solve this issue, I have a global object (which is named after the generator, devjs), this is used by all of the sub generators (when mixed, and since it is global, they can all access it)...  Then I have a prompting wrapper that checks to see if that value is already defined in devjs, before prompting the user to get that option.
Essentially, my desire is to have this functionality built.
How exactly this would be implemented safely along-side this.options?  Not a clue.  It should be a separate thing entirely...  I kept thinking with the mindset of "options" for some reason, but in reality it's just a shared storage.

Maybe "options" was the wrong term...  Just like a shared store in the yeoman environment, for all the generators to use.

When you use composeWith, you can pass options down to generators.
We don't want a shared global object approach as that'll make our ecosystem easier to break.

I mean when you compose them both at once, not when one composes another.  For instance: yo foo:bar, foo:baz
If foo:bar prompts for a username, how would I continue to use that data in foo:baz?

Then ask for the name from the top level generator and pass it down to both.
We don't plan to change that part, but you might be interested in this discussion https://github.com/yeoman/generator/issues/894

@SBoudrias: Now that I think about it, this could be as simple as a Map on the environment, since all generators under it hold a reference:
Generator foo:bar:
this.env.storage.set('name', this.options.name);

Generator foo:baz:
this.env.storage.get('name');

Yeoman would never adopt something like that?
I could just set properties right on this.env, like this.env.foobar, but I believe doing that has V8 performance reductions (opposed to using something like a map).
Probably not useful when initializing different generators from third parties, but very useful for composing sub generators together, where they can rely on some of the same data.


Top-Link at website links to https://awesome-static-analysis.com/

The link at the hat (top left corner) at https://matthias-endler.de/awesome-static-analysis/ links to a non-existing website https://awesome-static-analysis.com/

Thanks! Fixed. 🌞


Add TargetingPack and enable net46 builds for source-build.

dotnet/sdk enabled net46 builds in source-build, which requires repos that sdk depends on to also bring back net46 builds.  This change enables the net46 builds and adds the TargetingPack reference to make the build work.  See also: https://github.com/dotnet/source-build/issues/592, https://github.com/dotnet/sdk/pull/2309, https://github.com/dotnet/source-build/pull/588.

@dotnet-bot test OSX10.13 Build for CoreCLR please (looks like an unrelated file locking issue)

@weshaggard Any idea what the solution is to all the reference errors in Microsoft.Build.Tasks? eg,
ComDependencyWalker.cs(228,72): error CS0518: Predefined type 'System.Object' is not defined or imported [/mnt/resource/j/w/Microsoft_msbuild/master/innerloop_RHEL7.2_CoreCLR_SourceBuild__prtest/src/Tasks/Microsoft.Build.Tasks.csproj]

@jeffkl @AndyGerlicher @weshaggard I'm not sure what to do with this error:
D:\j\w\innerloop_Win---c5dcd6be\src\Package\MSBuild.VSSetup\files.swr(57,2): error SWIX1108: Could not find file at path: D:\j\w\innerloop_Win---c5dcd6be\artifacts\Debug\bin\MSBuild\net46\ref\mscorlib.dll. [C:\Users\runner\.nuget\packages\roslyntools.repotoolset\1.0.0-beta2-62901-01\tools\VisualStudio.SetupPackage.swixproj]

Should the net46 build need this netstandard2.0 mscorlib?

Yes, we ship that ref assembly for inline tasks to compile against.

@dotnet-bot test Windows_NT Build for CoreCLR please

@dotnet-bot test Windows_NT Build for CoreCLR please

@dotnet-bot test Windows_NT Build for Full please


Bruteforce protection ?

It has been a few days i am getting my portainer bruteforced non stop(see logs bellow)
I am all up to date.
is there a protection in place that i could enable ?
i have read on this https://github.com/portainer/portainer/pull/1866 that there is currently a limiter in place but is it possible to teak the rates ?

@P6g9YHK6 we don't give the ability to configure the rate limiter at the moment.
If you're exposing Portainer over the Internet, I would heavily recommend put a firewall/white-list mechanism in front of it to only allow a list of IP addresses to be able to access it.
You could also connect Portainer to an external authentication provider of your choice (github for example) where you would be able to enable 2FA.

Ok but could we make it easier to take
measures?
I do have a firewall but nothing to feed him as ruIes to get this blocked i think the minimum would be giving in the log the ip address & user agent that failed the auth in the log to help giving basic clue  what is happening.
And maybe also in the future a whitelist/blacklist feature integrated.

After checking my reverse proxy log i have isolated a repeat of this: "<IP_ADDRESS> - - [16/Jun/2021:16:39:18 +0000] "POST /api/auth HTTP/1.1" 400 67 "-" "GuzzleHttp/6.3.3 curl/7.77.0 PHP/7.3.27" "-""
the ip is not showing for some reasons and is pointing to my gateway... on any other request it's the correct IP.
firewall is not picking up anything either. i will check the router log if i can find anything repeatedly hitting port 80...
i do still feel safe as the password of the admin user is strong but if i cannot isolate the issue i will have to take down the reverse proxy forward...

It isn't on the current roadmap, but it is reasonable to expect that tools that implement authentication also help make brute-force protection easier (personally, i prefer to hide behind someone else's auth).
The most likely result will be some documentation though.

I'd love 2fa tho

For 2FA just enable OAuth in Portainer: https://documentation.portainer.io/v2.0/auth/oauth/
(e.g. use Google, Auth0, Okta etc)
And to get better insight, the Business Edition has Authentication logs: https://www.youtube.com/watch?v=cU8u4lGHaFQ


Update GitHub urls referenced in ARM templates with the raw.githubusercontent.com ones

Azure can only works with the "raw.githubusercontent.com" links to GitHub items referenced in an ARM template. For example,
https://github.com/Azure/azuremls/blob/master/tools/deployment/sparkClusterInVnetTemplate.json
needs to be changed to
https://raw.githubusercontent.com/Azure/mmlspark/master/tools/deployment/sparkClusterInVnetTemplate.json

@tongwen11,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

All the items referenced in the ARM templates are hosted in azure blob storage and the blob storage urls are used for testing.

Merging, but it will need to change to avoid using githubusercontent.


added custom get request + tests

Hey @garrylachman, thanks for contributing! I'm not sure I see why we would need to go so low level. There has been some discussions about implementing a plugin system which you're welcome to contribute to (dev-plugins branch and PR #64).

I think before addons implementation we need fist the ability to create some low level abstraction request functions, the next step is extend this function to create more customized request functions/addons and re-use the code...

I see what you're saying but I don't think this should be exposed to the user. We already have internet get/post and ones with defaults for people making those plugins. But the user probably just wants to "use" the API.

@Schmavery ^

But something the user wants the ability to customise the request or make
some not included one...
On Sun, Sep 6, 2015 at 1:27 AM, Benjamin San Souci<EMAIL_ADDRESS>
wrote:

@Schmavery https://github.com/Schmavery ^
—
Reply to this email directly or view it on GitHub
https://github.com/Schmavery/facebook-chat-api/pull/67#issuecomment-138004388
.

--
Best Regards,
Garry Lachman
Phone: +972 (0) 547759006
Skype: garryplastik
E-Mail<EMAIL_ADDRESS>

Well that's why we'd have the plugin system :)
It's just that we've figured out most of the stuff for you already, so the user can built on top of what we've already built (like the defaultGet and defaultPost which include a bunch of data that a lot of requests need).

I'm going to close this PR as we need to further discuss this. Can you start an issue if you're still interested in contributing?


CI build currently fails

CI build currently fails because a dependency of espflash 1.7.0 requires a newer nightly

error from building the .devcontainer/Dockerfile:
#7 186.6 error: failed to compile `cargo-espflash v1.7.0`, intermediate artifacts can be found at `/tmp/cargo-install9L4SSX`
#7 186.6
#7 186.6 Caused by:
#7 186.6   package `comfy-table v6.1.3` cannot be built because it requires rustc 1.62 or newer, while the currently active rustc version is 1.61.0-nightly
#7 186.6      Summary Successfully installed ldproxy! Failed to install cargo-espflash (see error(s) above).
#7 186.6 error: some crates failed to install
------
executor failed running [/bin/sh -c $HOME/.cargo/bin/cargo install cargo-espflash ldproxy]: exit code: 101

With #125 merged this issue should be now fixed!


Add Support for IEnumerable tokens on TextTransformationExtensions

I would like to add the ability for adding a dictionary of tokens.
I have a JSON file of key values, and when I use newtonsoft to deserialize, it defaults into an IDictionary<string,object>, and so I'd like to simply pass that into the TextTransform Extension Method.

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

Updated as requested in feedback.

@gep13 No open issue. I just thought this would be helpful to have this option
@patriksvensson I believe I made the changes as requested. Can you take another look when you have a chance?
thank you

@gep13 I recently added a similar request in #2375 before discovering this PR just now.
@maldworth @patriksvensson can we sort out the final details and merge this in time for Cake 0.31? Before that however, I do have a couple of suggestions for my own requirements:
As per the sample code in my issue, this extension method would be much more convenient and useful if:

do not throw if the tokens parameter is null
do not register tokens without a value

Re the second point, from experience I've found it much cleaner and safer to leave token placeholders behind for tokens without a value. This is especially helpful if staging a template after rendering, before publishing as an artifact, as it helps to diagnose issues at build-time.

@gitfool if it was silent to missing tokens or null params, then perhaps it would be a .TryWithTokens(). Or perhaps add a parameter to ignore missing tokens? anyways it would be nice to see this merged in sooner rather than later. Or we can combine both into one PR. Doesn't matter to me.

@maldworth your suggested behavior is problematic as TextTransformationTemplate.Replace already silently replaces tokens without a value, technically with a null value, with empty strings. These can be hard to spot, from recent experience, whereas leaving the token placeholders behind clearly stands out. Note that that would also be equivalent to not registering the token at all, which can happen, so has a nice consistency to it. (This is not a problem when calling TextTransformationTemplate.Render directly as you can conditionally call it.)
I suppose the other option would be to throw an exception if a token value is null, and ideally this behaviour is managed and enforced in one place, by TextTransformationTemplate itself, so you can register tokens with null values, either directly or via the proposed dictionary extension, and Render will later enforce its policy. This would require plumbing settings and may complicate the API unnecessarily, so let's wait for feedback from the Cake maintainers.

This have been merged. Sorry for the delay...
Thank you for your contribution 👍

As a result of this PR https://github.com/cake-build/cake/pull/2509 the overall aim of this PR has changed a little bit, so I have updated the title of this one (which will be included in the release notes) to reflect the final outcome.


can we build our images for taf_common and compose to run it on riscv machine

Hi All,
As we have developed our own images for edgex services for riscv machine,now thinking to build a required setup for Edgex-TAF framework on RISCV machine using docker.Is there any Dockerfile available for these two Images used while running TAF.
TAF_COMMON_IMAGE=nexus3.edgexfoundry.org:10003/edgex-taf-common${USE_ARM64}:latest
COMPOSE_IMAGE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-compose${USE_ARM64}:latest
If not,please let me know how can i create these Images for Riscv.
Thanks in advance

duplicated to https://github.com/orgs/edgexfoundry/discussions/135


use  tag instead of deprecated

Not a big thing, but it looks as  tag is deprecated and obsolete, so new sites are recommended to use  tag instead...

Could you change it so when someone uses a strike role it generates s tags?
That way you don't break current users.