Route "brands/5f3a602cf738c87a3f55ac87/add-announcement" not found

ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS.
Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
After updating GetX, some routes are no more recognized
**Reproduction code
app_route.dart
import 'package:chairwatch_flutter/authentication/screens/forgot_password.dart';
import 'package:chairwatch_flutter/authentication/screens/login.dart';
import 'package:chairwatch_flutter/authentication/screens/sign_in_form.dart';
import 'package:chairwatch_flutter/authentication/screens/sign_up_form.dart';
import 'package:chairwatch_flutter/chat/screens/stand_chat_page.dart';
import 'package:chairwatch_flutter/config/flavor_banner.dart';
import 'package:chairwatch_flutter/error_page.dart';
import 'package:chairwatch_flutter/misc/screens/settings.dart';
import 'package:chairwatch_flutter/screens/add_announcement.dart';
import 'package:chairwatch_flutter/screens/appointment_details.dart';
import 'package:chairwatch_flutter/screens/checkout_page.dart';
import 'package:chairwatch_flutter/screens/commodity_details.dart';
import 'package:chairwatch_flutter/screens/explore_map.dart';
import 'package:chairwatch_flutter/screens/home_page.dart';
import 'package:chairwatch_flutter/chat/screens/notification_screen.dart';
import 'package:chairwatch_flutter/screens/quick_tutorial.dart';
import 'package:chairwatch_flutter/screens/withdraw_page.dart';
import 'package:chairwatch_flutter/store/screens/away_dates_times.dart';
import 'package:chairwatch_flutter/store/screens/departments_view.dart';
import 'package:chairwatch_flutter/store/screens/edit_business_hours.dart';
import 'package:chairwatch_flutter/store/screens/get_started.dart';
import 'package:chairwatch_flutter/store/screens/promo_code_list.dart';
import 'package:chairwatch_flutter/store/screens/share_store.dart';
import 'package:chairwatch_flutter/store/screens/store_client_details.dart';
import 'package:chairwatch_flutter/store/screens/store_clients.dart';
import 'package:chairwatch_flutter/store/screens/store_community.dart';
import 'package:chairwatch_flutter/store/screens/store_editor.dart';
import 'package:chairwatch_flutter/cart/screens/incomplete_appts.dart';
import 'package:chairwatch_flutter/store/screens/store_qr_code.dart';
import 'package:chairwatch_flutter/store/screens/store_user_view.dart';
import 'package:chairwatch_flutter/cart/screens/cart_view.dart';
import 'package:chairwatch_flutter/user/screens/account_page.dart';
import 'package:chairwatch_flutter/user/screens/purchase_history.dart';
import 'package:chairwatch_flutter/user/screens/user_favorites.dart';
import 'package:get/get.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:chairwatch_flutter/chat/blocs/notification_selection/notificationselection_bloc.dart';

class GetRoutes {
  static final routes = [
    GetPage(
      name: '/error',
      page: () => ErrorPage(),
    ),
    GetPage(
      name: '/home/:initial',
      page: () => FlavorBanner(child: HomePage()),
    ),
    GetPage(
      name: '/map',
      page: () => ExploreMap(),
    ),
    GetPage(
      name: '/settings',
      page: () => SettingsPage(),
    ),
    GetPage(
      name: '/quick-tutorial',
      page: () => QuickTutorial(),
    ),
    GetPage(
      name: '/user/:user_id/account',
      page: () => AccountPage(),
    ),
    GetPage(
      name: '/brands/:store_id/add-announcement', ///here
      page: () => AddAnnouncementPage(),
    ),
    GetPage(
      name: '/brands/:store_id/edit-hours',
      page: () => EditBusinessHoursPage(),
    ),
    GetPage(
      name: '/brands/:store_id/away-dates',
      page: () => AwayStoreDatesTimes(),
    ),
    GetPage(
      name: '/brands/:store_id/withdraw',
      page: () => WithDrawPage(),
    ),
    GetPage(
      name: '/brands/:store_id/community',
      page: () => StoreCommunity(),
    ),
    GetPage(
      name: '/brands/:brand_id/user-view',///this want also
      page: () => StoreUserView(),
    ),
    GetPage(
      name: '/brands/:brand_id/qr-code', ///here too
      page: () => StoreQrCode(),
    ),
    GetPage(
      name: '/user-favorites',
      page: () => UserFavorites(),
    ),
    GetPage(
      name: '/share-store/:store_id',
      page: () => ShareStore(),
    ),
    GetPage(
      name: '/appointments/:apt_id',
      page: () => AppointmentDetails(),
    ),
    GetPage(
      name: '/conversations/:conversation_id',
      page: () => StandAloneChat(),
    ),
    GetPage(
      name: '/login',
      page: () => FlavorBanner(child: LoginPage()),
    ),
    GetPage(
      name: '/register',
      page: () => SignUpForm(),
    ),
    GetPage(
      name: '/forgot-password',
      page: () => ForgotPassword(),
    ),
    GetPage(
      name: '/sign-in',
      page: () => SignInForm(),
    ),
    GetPage(
      name: '/notifications',
      page: () => BlocProvider(
        create: (context) => NotificationselectionBloc(),
        child: NotificationPage(),
      ),
    ),
    GetPage(
      name: '/cart',
      page: () => CartViewPage(),
    ),
    GetPage(
      name: '/checkout',
      page: () => CheckoutPage(),
    ),
    GetPage(
      name: '/incomplete-apt',
      page: () => IncompleteAppts(),
    ),
    GetPage(
      name: '/stores/:store_id/edit',
      page: () => StoreEditor(),
    ),
    GetPage(
      name: '/stores/create',
      page: () => StoreEditor(
        isFirstTime: true,
      ),
    ),
    GetPage(
      name: '/departmentsview',
      page: () => DepartmentsView(),
    ),
    GetPage(
      name: '/commodities/:commodity_id',
      page: () => CommodityDetails(),
    ),
    GetPage(
      name: '/purchase-history',
      page: () => PurchaseHistory(),
    ),
    GetPage(
      name: '/get-started',
      page: () => GetStarted(),
    ),
    GetPage(
      name: '/stores/:store_id/clients',
      page: () => StoreClients(),
    ),
    GetPage(
      name: '/stores/:store_id/clients/:client_id',
      page: () => StoreClientDetails(),
    ),
    GetPage(
      name: '/brands/:store_id/promo-codes',
      page: () => PromoCodeList(),
    ),
  ];
}

NOTE: THIS IS MANDATORY, IF YOUR ISSUE DOES NOT CONTAIN IT, IT WILL BE CLOSED PRELIMINARY)**
example:
void main() => runApp(GetMaterialApp(

              getPages: GetRoutes.routes,home: Home()));

class Home extends StatelessWidget {  @override
  Widget build(context) => Scaffold(
      appBar: AppBar(title: Text("counter")),
      body: Column(children[
       ListTile(
            onTap: () {
                Get.toNamed("brands/${store.id}/add-announcement");
              },
            title: Text(
              'Make an Announcement',
              style: TextStyle(
                fontSize: 17,
              ),
            ),),
]),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () => count.value++,
      ));
}

To Reproduce
Steps to reproduce the behavior:

Tap on 'Make an Announcement',

Expected behavior
Navigate to the corresponding page
Flutter Version:
flutter 2.2.0
Getx Version:
get: ^4.1.4
Describe on which device you found the bug:
Xiaomi Note 9 pro
Minimal reproduce code
Provide a minimum reproduction code for the problem

Hi @loicgeek  Were they recognized before?

@jonataslaw  absolutely

ok @jonataslaw  I found the issue, from routes definitions I am using a trailing slash, but when navigating I didnt, BUT THIS WAS WORKING BEFORE.


Add "generate-ssh-keys-type" flag for VM/VMSS creation to support Ed25519

Preconditions

[X] No need to upgrade Python SDK or the Python SDK is ready.

Related command
No response
Resource Provider
Microsoft.Compute
Description of Feature or Work Requested
As discussed with Juju over email, in the VM create scenario, we want the ability to create an SSH key locally for the Ed25519 key format.
Minimum API Version Required
2023-09-01
Swagger PR link / SDK link
https://github.com/Azure/azure-rest-api-specs/pull/26090
Request Example
No response
Target Date
2024-10-08
PM Contact
@vamsi.kavuru
Engineer Contact
@kamusta
Additional context
No response

@yanzhudd created


No Error when two defaultprops are used for the same component

I am on a team have that is using this plugin, and we recently ran into an issue where someone added two defaultprops to the same component, and eslint did not throw an error. I am wondering if this could be added to the recommended settings?
eslint-plugin-react verision
7.16.0
.eslintrc.json
{
  "env": {
    "node": true,
    "browser": true,
    "jest": true,
    "es6": true
  },
  "parserOptions": {
    "ecmaVersion": 2018
  },
  "parser": "babel-eslint",
  "plugins": ["import", "react", "jsx-a11y", "react-hooks"],
  "extends": [
    "eslint:recommended",
    "plugin:import/errors",
    "plugin:import/warnings",
    "plugin:react/recommended",
    "plugin:jsx-a11y/recommended"
  ],
  "rules": {
    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "error",
    "no-unused-vars": [
      "error",
      {
        "ignoreRestSiblings": true
      }
    ],
    "import/namespace": [
      "error",
      {
        "allowComputed": true
      }
    ],
    "react/no-find-dom-node": "off"
  }
}

It would be an error if it were static class fields; there’s generally not any linter rule that governs duplicate imperative mutation of the same property, and I’m not convinced it’s a good rule to have.
Since you’re using babel-eslint, why are you not using static class fields for defaultProps?

The component is a functional component that is wrapped in a React.forwardRef as shown below.
const Icon = React.forwardRef(buttonSwitcher(Link, Button));

Icon.defaultProps = { type: "button" };

Icon.defaultProps = { size: "normal" };

Since it is not a class and we can't destructure props the only option we have available is to use Icon.defaultProps`.

I've seen this problem as well. Some tools like react-docgen need to use SomeFuctionalComponent.someField to be able to parse properly.

defaultProps on functional components are being deprecated - i wasn't aware forwardRef even supported defaultProps.
Regardless, I'd expect the thing being wrapped should have defaultProps if it needs them, not the wrapper.


Optional decision

So I want to know are we really going to force Optional<Entity> down everyone's throat? I've been using it the last few day, and yew, it really is just as crappy as I figured it was, nothing like a proper option or nullable type.
But if that's where the whole Java world is going ... well, I dunno, I guess we should be consistent.
Thoughts?

OK, given the votes in favor from @vietj, @FroMage, @aguibert, and the lack of strong objection from anybody else, I think I'll go ahead and merge #93.

OK, sounds good to me

Plus, if we realize that it makes sense to have Optional somewhere we can always add the method later

Done.


Installed components uses kebab-casing for file names?

Sorry if this seems like a non-issue, but is there a reason behind the kebab-casing for installed components? Most react components adopt the PascalCasing naming convention for both class names and file names.
Just curious behind this approach.

@shadcn Also it's a great approach because you will never need to deal with issues with case mismatches on git

I see. Anyways, it's not a big deal to rename them as the components are copy-pasted. Thanks, this satisfied my curiosity.

With the new components.json file, can we have an option to opt into PascalCase? The components.json file is pretty dope.


⚠ Bofrost.at has degraded performance

In c58e086, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2093 ms

Resolved: Bofrost.at performance has improved in e7acc79.


Refactor README and other documentation files

List of necessary changes:

Add some gifs to the README file
Link to dev env setup doesn't work
TODO

Done for now


[SP-3275][PDI-14334] Copy Files - overwrites files if subfolders used

find file in subfolder, relative to destination directory
add unit and integration tests
rename to camel case

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f engine/build.xml clean-all resolve jacoco && ant -f engine/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  engine/src/org/pentaho/di/job/entries/copyfiles/JobEntryCopyFiles.java
  engine/test-src/org/pentaho/di/job/entries/copyfiles/JobEntryCopyFilesIT.java
  engine/test-src/org/pentaho/di/job/entries/copyfiles/JobEntryCopyFilesTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.job.entries.copyfiles.JobEntryCopyFiles

Branch Change:  + 11.88%
Complexity Change:  + 4.10%
Instruction Change:  + 10.52%
Line Change:  + 14.37%
Method Change:  + 4.76%

org.pentaho.di.job.entries.evaluatetablecontent.JobEntryEvalTableContent

Branch Change: -1.01%:small_red_triangle_down:
Complexity Change: -1.06%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.job.entries.sql.JobEntrySQL

Instruction Change:  + 3.28%
Line Change:  + 3.87%

org.pentaho.di.job.entry.JobEntryBase

Complexity Change:  + .73%
Instruction Change:  + .57%
Line Change:  + .45%
Method Change:  + .80%

org.pentaho.di.repository.kdr.KettleDatabaseRepositoryCreationHelper

Branch Change: -1.64%:small_red_triangle_down:
Complexity Change: -.69%:small_red_triangle_down:
Instruction Change: -2.40%:small_red_triangle_down:
Line Change: -3.51%:small_red_triangle_down:

org.pentaho.di.trans.steps.checksum.CheckSumMeta

Instruction Change:  + .11%

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -.10%:small_red_triangle_down:

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Instruction Change: -.09%:small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -.11%:small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change:  + .66%
Complexity Change:  + .41%
Instruction Change:  + .50%
Line Change:  + .24%

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -1.04%:small_red_triangle_down:
Complexity Change: -1.05%:small_red_triangle_down:
Instruction Change: -.14%:small_red_triangle_down:
Line Change: -.37%:small_red_triangle_down:

org.pentaho.di.trans.steps.insertupdate.InsertUpdateMeta

Instruction Change:  + .05%

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change:  + .06%

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change:  + 1.18%
Complexity Change:  + 1.35%

org.pentaho.di.trans.steps.pgbulkloader.PGBulkLoaderMeta

Branch Change: -.88%:small_red_triangle_down:
Complexity Change: -.93%:small_red_triangle_down:

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change:  + .07%

org.pentaho.di.trans.steps.singlethreader.SingleThreaderMeta

Instruction Change:  + .10%

org.pentaho.di.trans.steps.synchronizeaftermerge.SynchronizeAfterMergeMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change:  + .18%

org.pentaho.di.trans.steps.webservices.WebServiceMeta

Branch Change:  + 1.79%
Complexity Change:  + 1.19%
Instruction Change:  + .07%

org.pentaho.di.www.TransformationMap

Branch Change: -1.14%:small_red_triangle_down:
Complexity Change: -1.54%:small_red_triangle_down:


Saving a rule bounces back to General tab

Saving any rule in the MFE Settings app causes the focus to return to the General tab.  It should instead stay focused on the currently visible tab (and just disable the Save button).

I know, but I can't do that. It returns to General tab because it reloads config file.

Ah, makes sense, but I suspect it wouldn't be too hard to store the current tab in a variable (each time you change tabs) and then, upon loading the config, attempt to return to that stored tab if it still exists.

That would be nice, You're right this is possible. I didn't try to save it because it may doesn't exist, but I can check if it exists then return to that tab.

Awesome.  Works well!
One behavior I'm observing in the current version that could be seen as either distracting or a good way to remind users that they need to Save to apply changes:
Switch from the General tab to any other tab and the Save button will very briefly appear as enabled and then switch to the disabled state.

Well I don't handle enabling and disabling save button, I let xaml binding do that for me.


Incorrect syntax, errors, references, etc.

Issue Description
Omnisharp regularly crashes. This results in references displaying in incorrect positions, hides errors and shows errors where there are none, incorrect syntax, etc. See below:

Steps to Reproduce
Inconsistent. Will sometimes occur on save. Sometimes when moving between tabs of an unsaved file. Making a change to the document corrects the display. Noticed this behavior about a month ago.
Expected Behavior
N/A
Actual Behavior
See description.
Logs
OmniSharp log
Starting OmniSharp server at 5/16/2022, 2:43:26 PM
    Target: d:\Coding\godot\Arenbee\Arenbee.sln
OmniSharp server started.
Path: c:\Users\Dael.vscode\extensions\ms-dotnettools.csharp-1.24.4-win32-x64.omnisharp\1.38.2\OmniSharp.exe
PID: 23300
    Starting OmniSharp on Windows 6.2.9200.0 (x64)

    Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK

    DotNetPath set to C:\Program Files\dotnet\dotnet

    Located 2 MSBuild instance(s)
        1: Visual Studio Community 2022 17.2.32505.173 17.2.1 - "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin"
        2: StandAlone 17.1.1 - "c:\Users\Dael\.vscode\extensions\ms-dotnettools.csharp-1.24.4-win32-x64\.omnisharp\1.38.2\.msbuild\Current\Bin"

    Registered MSBuild instance: Visual Studio Community 2022 17.2.32505.173 17.2.1 - "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin"

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Detecting Cake files in 'd:\Coding\godot\Arenbee'.

    Did not find any Cake files

    Detecting projects in 'd:\Coding\godot\Arenbee\Arenbee.sln'.

    Queue project update for 'd:\Coding\godot\Arenbee\Arenbee.csproj'

    Detecting CSX files in 'd:\Coding\godot\Arenbee'.

    Did not find any CSX files

    Configuration finished.

    Omnisharp server running using Stdio at location 'd:\Coding\godot\Arenbee' on host 24556.

    Loading project: d:\Coding\godot\Arenbee\Arenbee.csproj

    Successfully loaded project file 'd:\Coding\godot\Arenbee\Arenbee.csproj'.

    Adding project 'd:\Coding\godot\Arenbee\Arenbee.csproj'

    Update project: Arenbee

    Solution initialized -> queue all documents for code analysis. Initial document count: 206.

    ************ Request ************

{
"Type": "request",
"Seq": 7,
"Command": "/inlayHint",
"Arguments": {
"Location": {
"FileName": "d:\Coding\godot\Arenbee\Framework\Actors\State\StateController.cs",
"Range": {
"Start": {
"Line": 32,
"Column": 0
},
"End": {
"Line": 168,
"Column": 1
}
}
}
}
}
[fail]: OmniSharp.Stdio.Host
************  Response (21.5511ms) ************
{
"Request_seq": 7,
"Command": "/inlayHint",
"Running": true,
"Success": false,
"Message": ""System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\r\nParameter name: index\r\n   at Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)\r\n   at OmniSharp.Extensions.TextExtensions.GetPositionFromLineAndOffset(SourceText text, Int32 lineNumber, Int32 offset) in D:\\a\\1\\s\\src\\OmniSharp.Roslyn\\Extensions\\TextExtensions.cs:line 28\r\n   at OmniSharp.Extensions.TextExtensions.GetSpanFromRange(SourceText text, Range range) in D:\\a\\1\\s\\src\\OmniSharp.Roslyn\\Extensions\\TextExtensions.cs:line 55\r\n   at OmniSharp.Roslyn.CSharp.Services.InlayHints.InlayHintService.d__6.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Roslyn.CSharp\\Services\\InlayHints\\InlayHintService.cs:line 56\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Endpoint.EndpointHandler2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler2.d__20.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Host\\Endpoint\\EndpointHandler.cs:line 230\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Endpoint.EndpointHandler2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 138\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__14.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 218\"",   "Body": null,   "Seq": 129,   "Type": "response" } [warn]: OmniSharp.Stdio.Host         ************ Request ************ {   "Type": "request",   "Seq": 17,   "Command": "/inlayHint",   "Arguments": {     "Location": {       "FileName": "d:\\Coding\\godot\\Arenbee\\Framework\\Actors\\State\\StateController.cs",       "Range": {         "Start": {           "Line": 32,           "Column": 0         },         "End": {           "Line": 168,           "Column": 1         }       }     }   } } [fail]: OmniSharp.Stdio.Host         ************  Response (0.5629ms) ************  {   "Request_seq": 17,   "Command": "/inlayHint",   "Running": true,   "Success": false,   "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\\r\\nParameter name: index\\r\\n   at Microsoft.CodeAnalysis.Text.SourceText.LineInfo.get_Item(Int32 index)\\r\\n   at OmniSharp.Extensions.TextExtensions.GetPositionFromLineAndOffset(SourceText text, Int32 lineNumber, Int32 offset) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn\\\\Extensions\\\\TextExtensions.cs:line 28\\r\\n   at OmniSharp.Extensions.TextExtensions.GetSpanFromRange(SourceText text, Range range) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn\\\\Extensions\\\\TextExtensions.cs:line 55\\r\\n   at OmniSharp.Roslyn.CSharp.Services.InlayHints.InlayHintService.<Handle>d__6.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\InlayHints\\\\InlayHintService.cs:line 56\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler2.d__19.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Endpoint.EndpointHandler2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler2.d__16.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Host\\Endpoint\\EndpointHandler.cs:line 138\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Stdio.Host.d__14.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Stdio\\Host.cs:line 218"",
"Body": null,
"Seq": 141,
"Type": "response"
}

C# log
(None)
Environment information
VSCode version: 1.67.1
C# Extension: 1.24.4
Dotnet Information
.NET SDK (reflecting any global.json):
 Version:   6.0.300
 Commit:    8473146e7d
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19044
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\6.0.300\
Host (useful for support):
Version: 6.0.5
Commit:  70ae3df4a6
.NET SDKs installed:
6.0.300 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

csharp
ms-dotnettools
1.24.4

LiveServer
ritwickdey
5.7.5

mono-debug
ms-vscode
0.16.2

powershell
ms-vscode
2022.5.1

vscode-firefox-debug
firefox-devtools
2.9.6

vsliveshare
ms-vsliveshare
1.0.5561

I suspect this is related to the "fileChanged" behavior that was introduced in https://github.com/OmniSharp/omnisharp-vscode/pull/5088

I seeing this all the time as well, in multiple projects. Seems to be coupled with this exception in the OmniSharp Log:
[fail]: OmniSharp.Stdio.Host
        ************  Response (0.5495ms) ************
{
  "Request_seq": 1249,
  "Command": "/inlayHint",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\\nParameter name: index\\n  at Microsoft.CodeAnalysis.Text.SourceText+LineInfo.get_Item (System.Int32 index) [0x0000f] in <ebb143507af8464da18f46e5ed0accdf>:0 \\n  at OmniSharp.Extensions.TextExtensions.GetPositionFromLineAndOffset (Microsoft.CodeAnalysis.Text.SourceText text, System.Int32 lineNumber, System.Int32 offset) [0x00006] in <3997e19046634a39a20d03c6385fc69b>:0 \\n  at OmniSharp.Extensions.TextExtensions.GetSpanFromRange (Microsoft.CodeAnalysis.Text.SourceText text, OmniSharp.Models.V2.Range range) [0x00033] in <3997e19046634a39a20d03c6385fc69b>:0 \\n  at OmniSharp.Roslyn.CSharp.Services.InlayHints.InlayHintService.Handle (OmniSharp.Models.v1.InlayHints.InlayHintRequest request) [0x00128] in <013e1d73869645519db61be39695f2b9>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <2c738f48401c42ab8866fe9742b40aa0>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <2c738f48401c42ab8866fe9742b40aa0>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x002d8] in <2c738f48401c42ab8866fe9742b40aa0>:0 \\n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <b65fb505403e4a9f95ed53beadc952de>:0 \"",
  "Body": null,
  "Seq": 56737,
  "Type": "response"
}

Hopefully this helps a bit.

Getting a lot of these in the logs too:
Received response for /rename but could not find request.
Received response for /findusages but could not find request.
Received response for /quickinfo but could not find request.

It's actually almost unusable when refactoring. Don't suppose there might be a workaround while we wait for a fix?

Updated the extension, but having the following omnisharp error:
[fail]: OmniSharp.Stdio.Host
        ************  Response (1.9614ms) ************
{
  "Request_seq": 94,
  "Command": "/v2/highlight",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Sequence contains more than one element\\n   at System.Linq.ThrowHelper.ThrowMoreThanOneElementException()\\n   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found)\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.CreateSemanticSpan(IEnumerable`1 results, TextLineCollection lines) in /Users/runner/work/1/s/src/OmniSharp.Roslyn.CSharp/Services/SemanticHighlight/SemanticHighlightService.cs:line 82\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.<>c.<Handle>b__3_2(IGrouping`2 grouping) in /Users/runner/work/1/s/src/OmniSharp.Roslyn.CSharp/Services/SemanticHighlight/SemanticHighlightService.cs:line 75\\n   at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray()\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.Handle(SemanticHighlightRequest request) in /Users/runner/work/1/s/src/OmniSharp.Roslyn.CSharp/Services/SemanticHighlight/SemanticHighlightService.cs:line 71\\n   at OmniSharp.Endpoint.EndpointHandler`2.GetFirstNotEmptyResponseFromHandlers(ExportHandler`2[] handlers, TRequest request) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 218\\n   at OmniSharp.Endpoint.EndpointHandler`2.HandleRequestForLanguage(String language, TRequest request, RequestPacket packet) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 234\\n   at OmniSharp.Endpoint.EndpointHandler`2.Process(RequestPacket packet, LanguageModel model, JToken requestObject) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 143\\n   at OmniSharp.Stdio.Host.HandleRequest(String json, ILogger logger) in /Users/runner/work/1/s/src/OmniSharp.Stdio/Host.cs:line 258\"",
  "Body": null,
  "Seq": 155,
  "Type": "response"
}

Not sure if it is connected to this one


Uncaught TypeError: moment.locale is not a function

Hello,
I have a react application served by nginx and im getting following error so that the application wont start:
twix.js:630 Uncaught TypeError: moment.locale is not a function
    at makeTwix (twix.js:630)
    at Object.eval (twix.js:666)
    at Object.eval (twix.js:682)
    at eval (twix.js:684)
    at Object../node_modules/twix/dist/twix.js (main-c4c32c697fee679fc096.js:21351)
    at __webpack_require__ (main-c4c32c697fee679fc096.js:20)
    at eval (PeriodFilter.jsx:18)
    at Module../app/components/PeriodFilter/PeriodFilter.jsx (main-c4c32c697fee679fc096.js:4307)
    at __webpack_require__ (main-c4c32c697fee679fc096.js:20)
    at eval (index.js:2)

the application runs locally without problems but when I deploy it to the server on nginx it doesnt work.
any idea what it could be?
thanks in advance
dependencies:
"devDependencies": {
        "@babel/core": "^7.8.4",
        "@babel/plugin-proposal-class-properties": "^7.0.0",
        "@babel/plugin-proposal-decorators": "^7.0.0",
        "@babel/plugin-proposal-do-expressions": "^7.0.0",
        "@babel/plugin-proposal-export-default-from": "^7.0.0",
        "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
        "@babel/plugin-proposal-function-bind": "^7.0.0",
        "@babel/plugin-proposal-function-sent": "^7.0.0",
        "@babel/plugin-proposal-json-strings": "^7.0.0",
        "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
        "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
        "@babel/plugin-proposal-numeric-separator": "^7.0.0",
        "@babel/plugin-proposal-optional-chaining": "^7.0.0",
        "@babel/plugin-proposal-pipeline-operator": "^7.0.0",
        "@babel/plugin-proposal-throw-expressions": "^7.0.0",
        "@babel/plugin-syntax-dynamic-import": "^7.0.0",
        "@babel/plugin-syntax-import-meta": "^7.0.0",
        "@babel/polyfill": "^7.0.0",
        "@babel/preset-env": "^7.8.4",
        "@babel/preset-react": "^7.0.0",
        "@babel/preset-typescript": "^7.8.3",
        "auto-changelog": "*",
        "autoprefixer": "^7.1.6",
        "babel-core": "^7.0.0-bridge.0",
        "babel-eslint": "^10.0.3",
        "babel-loader": "^8.0.5",
        "babel-plugin-add-module-exports": "^1.0.2",
        "cheerio": "^0.22.0",
        "css-loader": "^0.28.7",
        "enzyme": "^3.11.0",
        "enzyme-adapter-react-16": "^1.15.2",
        "eslint": "^6.8.0",
        "eslint-config-airbnb": "^15.0.1",
        "eslint-import-resolver-webpack": "^0.8.1",
        "eslint-loader": "^1.8.0",
        "eslint-plugin-import": "^2.20.0",
        "eslint-plugin-jsx-a11y": "^5.0.3",
        "eslint-plugin-react": "^7.18.0",
        "extract-text-webpack-plugin": "^4.0.0-beta.0",
        "html-loader": "^0.5.1",
        "html-webpack-plugin": "^3.2.0",
        "identity-obj-proxy": "^3.0.0",
        "jest": "^25.1.0",
        "jest-junit": "^10.0.0",
        "jest-transform-stub": "^2.0.0",
        "node-sass": "^4.13.1",
        "postcss-loader": "^3.0.0",
        "react-transform-hmr": "^1.0.4",
        "redux-mock-store": "^1.2.3",
        "sass-loader": "^7.3.1",
        "style-loader": "^0.19.0",
        "typescript": "^2.7.2",
        "ts-loader": "^4.1.0",
        "url-loader": "^0.6.2",
        "webpack": "^4.15.0",
        "webpack-cli": "^3.0.8",
        "webpack-dev-server": "^3.0.8"
    },
    "dependencies": {
        "@types/react": "^16.9.19",
        "axios": "^0.19.2",
        "classnames": "^2.2.6",
        "immutable": "^3.8.2",
        "isomorphic-fetch": "^2.2.1",
        "js-cookie": "^2.2.1",
        "keymirror": "^0.1.1",
        "lodash": "^4.17.15",
        "modules-values-extract": "^1.0.3",
        "moment": "^2.24.0",
        "normalize.css": "^8.0.1",
        "postcss-cssnext": "^3.1.0",
        "prop-types": "^15.7.2",
        "react": "^16.12.0",
        "react-barcode": "^1.4.0",
        "react-date-range": "^0.9.4",
        "react-dom": "^16.12.0",
        "react-hot-loader": "^4.12.19",
        "react-immutable-proptypes": "^2.1.0",
        "react-intl": "^2.9.0",
        "react-notifications": "^1.4.3",
        "react-prefixr": "^0.1.0",
        "react-redux": "^5.1.2",
        "react-router": "^3.2.5",
        "react-router-redux": "^4.0.8",
        "react-to-print": "^2.5.1",
        "react-toolbox": "2.0.0-beta.12",
        "react-toolbox-themr": "^1.0.2",
        "react-tooltip": "^3.11.2",
        "react-transition-group": "^2.9.0",
        "redux": "^3.7.2",
        "redux-logger": "^3.0.6",
        "redux-thunk": "^2.3.0",
        "uglifyjs-webpack-plugin": "^2.2.0",
        "unstated": "^2.1.1",
        "urijs": "^1.19.2",
        "xml-loader": "^1.2.1"
    }

Try to roll back to version 2.24.0

npm uninstall moment

Then

npm install --save-exact<EMAIL_ADDRESS>

i have 2.24.0 as you can see in the dependencies

it worked thanks!


How do I use this SDK in APIv2?

I am afraid that apiv1 will expire soon.
Is there a way to apply this Unity SDK to Dialogflow APIv2?

@spacedino22 take a look at this repository https://github.com/ITP-xStory/uniFlow
also this simple example https://github.com/ITP-xStory/uniFlow/tree/master/bot_Unity_Example


Fix unnecessary edit linkifier error display and use tippy tooltip instead of HTML title.

@akshatdalton can you post a screencast showing this working?

Error message displays:

@timabbott screencast of what exactly? As I've done many changes :sweat_smile:.

https://user-images.githubusercontent.com/67277428/118057423-96749600-b3a9-11eb-8288-8770c49a0f1c.mp4
Here is the screencast showing add, edit and delete operation on the linkifier with a tippy tooltip and ? icon to link to the respective documentation.
Error message on editing the linkifier is no more shown below the edit linkifier modal, and Saving -> Saved status is shown.

In Settings > Custom Profile Fields, to edit the fields we can use modal.
There are two js files for realm playground handling events separately; possibly we should also split settings_linkifiers.js?
When a user is deactivated in Settings > Users, the list is updated there (updated to reactivate them) but the list in Settings > Deactivated users is not updated; this requires a reload.
And do we really need two separate sections in Settings to show the deactivated users list and non-deactivated users list? Can't we just show them in Users section with two separate section in there?

I merged the first few commits; the last couple add new strings and have some other minor issues, so it's not worth trying to do them this late in the release cycle.
As a sidenote, it'd be better to have a commit that just reorders buttons (with no text changes), and then another that just fixes table headings, and then a final one doing tooltips; I'd be able to probably merge those first two today (since they should be safe and the strings being used, like "Actions", are already in the translation data set).

Is there any a reason to exclude uploaded_files_list.hbs from static/templates/settings/*?
That file should probably be in static/templates/settings/*.
@timabbott, please review.

See 41a477bbfb96922927f6eba45cc249b360025958; you should always fix linter errors in the commit that introduced the bug, or we'll get test failures when merging things incrementally.

Earlier, sorry for the trouble.
Download and Delete button in Settings > Uploaded files need some work

It doesn't look good when the button is pressed; the background effect gives a feeling that we are clicking some square button

Tooltips are also misaligned because the padding is added to the btn class.
The vertical alignment of the buttons also differs a bit.
Also, a general question, would it be fine if I split commits like https://github.com/zulip/zulip/pull/18470/commits/a7403c33c63219dfab8c8504a3d670274fbe8382, https://github.com/zulip/zulip/pull/18470/commits/e5112cc21003d88143d724cf9ce333f1f8ac4b27 into further smaller commits (splitting them would generate a total of 30+ commits; is that OK)?
@timabbott, please review.

I merged the template files renames as the series ending with b98ad46459654ddf48a4d2403454788bfc65ba3b.
I'm not sure about the string changes you have in the tooltip commits; I think Edit and Delete are fine strings for those columns, and using those strings (rather than ones that specialize the name of the row) saves work for translators.  It could be worth a quick #design thread to get others' feedback, but I think we just want to keep the exact same strings but just move to TippyJS for the tooltip system.

(I'd be happy with the next commit for this being a tippyjs migration with no string changes, so I don't think the specific commit split you suggested makes sense to me).

Changes in the current push:

Added commit for the tippyJS migration with no string changes. https://github.com/zulip/zulip/pull/18470#issuecomment-853538350

@timabbott, please review.


Voting power chip is displayed incorrectly

// Edit after @m-i-k-e clarification
Steps to reproduce
Actual behavior

Voting Power chip is visible all the time.
Expected behavior

It should be visible only when user is either registered DRep or a Sole Voter

OK NOW - chip is shown now

Other: Voting power is not updated - tracked in separate issue

Tested on 17 May. Voting Power is showing zero, but it should be ₳4649.310524, I am registered as a Sole Voter (I think)

Voting power is calculated at the epoch boundaries


SampleGen: update Node.js const name for library package

Fixes #2962
Update Node.js standalone samples to name library packages required thusly:
const {LibraryServiceClient} = require('@google-cloud/library').v1

Rather than:
const library = require('@google-cloud/library').v1;

Hmm, I broke it 😇
com.google.api.codegen.gapic.GapicCodeGeneratorTest > test[nodejs_samplegen_config_migration_library.baseline] FAILED
    com.google.api.tools.framework.model.testing.BaselineTestCase$BaselineComparisonError

@hzyi-google Can I see a more specific error like the diff? I ran ./gradlew test locally and copy/pasted the new baseline generated over the one in tests which gets compared against. What should I do to fix? (Note: feel free to tweak, Allow edits from maintainers is enabled)


Fix various warnings

@homu r+

:pushpin: Commit 821f376 has been approved by gkoz

:hourglass: Testing commit 821f376 with merge ebb1e49...

:sunny: Test successful - status


installation order of MutatingWebhookConfiguration

Hello,
I have a question on the installation order of MutatingWebhookConfiguration, i checked the code
https://github.com/helm/helm/blob/master/pkg/tiller/kind_sorter.go, and i got a list of install order as below, but i cannot figure out the order of MutatingWebhookConfiguration.
    "Namespace",
"ResourceQuota",
"LimitRange",
"PodSecurityPolicy",
"PodDisruptionBudget",
"Secret",
"ConfigMap",
"StorageClass",
"PersistentVolume",
"PersistentVolumeClaim",
"ServiceAccount",
"CustomResourceDefinition",
"ClusterRole",
"ClusterRoleBinding",
"Role",
"RoleBinding",
"Service",
"DaemonSet",
"Pod",
"ReplicationController",
"ReplicaSet",
"Deployment",
"StatefulSet",
"Job",
"CronJob",
"Ingress",
"APIService",

Thanks,
yzha

Thanks @mailzyok for the asking about this.
@mattfarina What is the Helm procedure for adding Kubernetes objects to the installation order. FYI, MutatingWebhookConfiguration object is still in beta.

@hickeyma Adding an object is a PR like anything else. PodDisruptionBudget, in the current list, isn't GA either. The trick will be to get MutatingWebhookConfiguration in the ordering before anything that would use it is installed.

@mattfarina The instantiation order of the hooks is actually pretty important, and it is not as easy as "before its user"
I.e. if we are registering a validating hook for a core API like Pod, or Deployment, and the hook is created before the webserver serving the validating requests, none of the objects belonging to that API will be instantiated anymore
The problem is that MutatingWebhooks can also double as validating hooks. So, sometimes you need them earlier, but sometimes you need them last to avoid above scenario
Therefore IMO the only surefire way of instantiating them in the right order requires user config: only the chart dev knows what kind of webhook is in the chart.

I'm also dealing with issues around deploying a MutatingWebhookConfiguration. I tried using the helm post-install hook but that doesn't seem to work. In addition when running helm delete the hooks are not removed. I assume this is all related.

The problem is that MutatingWebhooks can also double as validating hooks.

This sounds like a bad practice to me. Should we really be allowing this fact to factor in how we order MutatingWebhookConfigurations in the helm kind InstallOrder?

Not stale please.

@mattfarina
I am facing this issue now. The webhooks are now out of beta. Can we add them now in the kind order? How can I help here?
The mutating webhooks and validating webhooks need to be created before the deployments/stateful sets so the calls can be made to the appropriate service when the required events are created.

I thing you want the webhooks to be created after the deployment that will approve request. If webhookconfig is created before the needed service is running, all will fail. for ever...

How about adding a weight annotation and use that to sort and install them? The ones that don't have any weight annotation will be installed at the beginning?

I'm also interested in this.


Multiple background images and dim

What a simple and elegant launcher. There are only two things it is missing for my purposes:

The ability to periodically switch between background images, like a slideshow. So instead of specifying just one image, I'd like to specify a folder.
Screensaver mode when the launcher has been idle for X amount of time.

The ability to periodically switch between background images, like a slideshow. So instead of specifying just one image, I'd like to specify a folder.

I have this planned for a future release. I envision it as being similar to Kodi's Artist Slideshow addon. The user specifies a folder that contains background images. The program will rotate the backgrounds randomly and provide a nice fading effect for the transition between the images. The user will be able to specify the background duration, and the transition/fade time between images.

Screensaver mode when the launcher has been idle for X amount of time.

This is a good idea that I hadn't considered yet. The screen will go dim after it has been idle for a while, and the user could specify the idle time and the amount to dim the screen (e.g. 50%)? Is that what you had in mind?

Yes, exactly what I had in mind, thanks!

Thanks for the feedback. I will implement both of these features in a future release. Not the next release, but the one after that most likely.
I'll keep this issue open in the meantime.

Both features are implemented in the latest release, v1.2. The screensaver is disabled by default, so you will need to enable it in your configuration file. See the latest configuration file documentation for details.
If you encounter problems with either feature, please open a new issue.


Breaks Statsample 1.4.0

It seems that the latest version of this gem 1.2.0 (https://rubygems.org/gems/statsample-bivariate-extension/versions/1.2.0 ) prevents us from using statsample 1.4.0. It results in an infinite loop of dependency:
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove either gem 'statsample' or gem 'statsample-bivariate-extension' and try again.

It can be reproduced by using bundler with this Gemfile file in an empty folder:
source 'https://rubygems.org'

gem 'statsample', '1.4.0'

I'm not sure whether this is something you would want to support, nor what the solution is.

There are pretty big differences between statsample 1.4.0 and 2.0.1. The updated bivariate-extensions uses 2.0.1 because they both now use daru for storage of data.
Is there some specific reason why you're not updating to the latest statsample? Could you share it here? If it's critical then maybe we can think of adding support.
@agarie

We've now upgraded to 1.4.3, the original issue why we stuck to 1.4.0 was:
https://github.com/SciRuby/statsample/issues/21#issuecomment-86559933
but now I'm applying the workaround I suggested to this issue (check whether all values are equal before calling statsample), so we're no longer affected by the issue and we were able to go to 1.4.3 yesterday and this solves the issue.
TL;DR: We moved to statsample 1.4.3, this issue disappeared and you can still use it with Rails 3

Cool!
Could you send a PR to statsample with your fixes?

Well, we actually implemented the check in the wrapper we have around statsample.
The problem with implementing this in the statsample code is that since the retrieval of the values does the calculation, there's no really elegant way of doing this check. I.e. whenever I retrieve the coefficients, I would have to check whether the y_var is constant or not and return it.
I don't have a really good idea for doing this that would not break the interface.

I'm using the latest version of statsample, but I still get this problem ->
Your bundle requires gems that depend on each other, creating an infinite loop. Please
remove either gem 'statsample' or gem 'statsample-bivariate-extension' and try again.

I'm using Rails 4.2. I tried locking the gem version to 2.0.1, but its dependency reportbuilder's version is conflicting with prawn's version.
  In snapshot (Gemfile.lock):
    prawn (= 2.1.0)

  In Gemfile:
    prawn (~> 2.1.0)

    statsample (>= 2.0.1) was resolved to 2.0.1, which depends on
      reportbuilder (~> 1.4) was resolved to 1.4.0, which depends on
        prawn-svg (~> 0.9.1) was resolved to <IP_ADDRESS>, which depends on
          prawn (>= 0.8.4)

    statsample (>= 2.0.1) was resolved to 2.0.1, which depends on
      reportbuilder (~> 1.4) was resolved to 1.4.0, which depends on
        prawn (~> 0.8.4)

I think downgrading my gems would help, but I dont want to do that.
Please help.


[brew-services] Won't load- Down completely

Extension – brew-services
Author: @es183923
Description
Debug log:
Reason: Could not load manifest
Domain: commands
Time: 01:36:52.571
Steps To Reproduce

Attempt to use

The current behavior
Borked
The expected behavior
Not borked
Raycast version
Version:
1.42.2

My bad. The install gets wonky if you wipe the wrong files (dot files in my home folder cleanup) that forces you to uninstall/reinstall each extension to get them working again.


PHP 8 required after composer update?

Hi,
I just installed as directed:

git clone git://github.com/trendschau/typemill.git
composer update
make certain folders writable

Afterwards, I got this error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".
I cannot force my host to be PHP 8, so is there any way to get requirements back down to PHP 7 (as in the typemill readme). I don't know how to figure out which package has forced composer/PHP to go so high.
Thanks!

I'm excited to rebuild two sites in typemill, one will replace Jekyll (slow builds, always breaking) and another an old CodeIgniter site that has broken after 11 years with the steady march of PHP.

Hi and thank you!
I am not aware of PHP 8.0.2 requirement, version 1.5.1 should run with PHP 7.4 (my servers run with 7.4, too). I will test the github version again in the next days, in the meantime you could use the zipped version from the typemill website that I use for my sites.

Thanks! I will decide what to do when I've finished developing the site locally.

I tested it today with:
git clone git://github.com/trendschau/typemill.git
composer update

On my xampp/windows machine with php 7.4 installed and it works without problems. I also checked requirements with composer
C:\xampp\htdocs\typemill>composer check-platform-reqs
Checking platform requirements for packages in the vendor dir
ext-dom        20031129    success
ext-gd         7.4.15      success
ext-json       7.4.15      success
ext-libxml     7.4.15      success
ext-mbstring   7.4.15      success
ext-simplexml  7.4.15      success
php            7.4.15      success

On my linux it also runs without problems.
I am not sure why your version requires PHP8. Do you have the chance to test it on another computer/server?

I get this:
$ composer check-platform-reqs
Checking platform requirements for packages in the vendor dir
ext-dom        20031129    success
ext-gd         8.0.13      success
ext-json       8.0.13      success
ext-libxml     8.0.13      success
ext-mbstring   8.0.13      success
ext-simplexml  8.0.13      success
php            8.0.13      success

I'm on macOS if that makes any difference.

I suppose that means you are running on php 8.0.13 and that is enough for dependency-requirements.
I checked all my live websites with 7.4 and 8 and they run without problems, live and locally.
checked most of the dependencies manually and none require php8
So it is very likely a problem with your local setup and I can't help here. Maybe this thread can help: https://laracasts.com/discuss/channels/laravel/unable-to-run-composer-update-or-composer-install-command
So you can try to update composer and clear cache
composer clearcache
composer selfupdate

OK, i think I solved it.
I am running MAMP with PHP 7.4.21 Screenshot
But my macOS system default /usr/local/bin/php is PHP 8.0.13 and this is what composer sees from the command line.
So I looked into it and /usr/bin/php is still PHP 7.3.29
Then doing /usr/bin/php /usr/local/bin/composer update will set everything as required for running with PHP 7.


Update path of TextInputState

This pull request updates the path of TextInputState imports, changed in version 0.61.
This is a breaking change!

Thank you for your PR.
It destroyed compatibility.  maybe I should try to find another way to fix it.

Should have checked open PR's before making mine, but happy to see this!

fixed

fixed

same question in RN 0.61.2,and fixed failed.

same question in RN 0.61.4,and fixed failed.

@ATShiTou Will you make a release with this fix soon or is there anything that makes it complicated?


Custom logFormat should use the configured timeZone

I tried to add the time zone to log entries. According to the logback documentation, this should work by adding %d{z} (or adding z to an existing %d pattern). And indeed, a time zone appears, but it’s not the one configured with timeZone, but the system default.
I’ve found #3530 but I don’t really see the need for %dwTimeZone. %d{z,%dwTimeZone} would work but I think any %d pattern without the timezone parameter should use the one set by timeZone. I’m not entirely sure but the following line could be the one causing %d{z} to display the system default timezone.
https://github.com/dropwizard/dropwizard/blob/1b652299c64af16cf617bff702f0003c33a606ee/dropwizard-logging/src/main/java/io/dropwizard/logging/BootstrapLogging.java#L54
I use Dropwizard 2.0.28 but this doesn’t seem to have changed in 2.1.x.

The %d patterns are handled by Logback's DateConverter which only sets a custom time zone if it's included in the pattern:
https://github.com/qos-ch/logback/blob/4eb2914cb65214d13e14a9ed3dfb9f044df98358/logback-classic/src/main/java/ch/qos/logback/classic/pattern/DateConverter.java#L52-L56
Otherwise the SimpleDateFormat in CachingDateFormatter will always use TimeZone.getDefault().
To override this behavior, Dropwizard would have to parse the logFormat string and figure out where to insert the time zone ID before passing the format to Logback. I think this would potentially result in a much more complicated and fragile implementation than the %dwTimeZone placeholder.
Also, the Logback documentation you linked explicitly says

Note that in the absence of the timezone parameter, the default timezone of the host Java platform is used.

So automatically modifying the logFormat string might even be seen as unexpected behavior.

Thanks for the explanation. I did not expect any other timezone to be used in the logging than the one configured by the appender’s timeZone parameter but I see why this is the case now. I will add %dwTimeZone to my pattern.


Possible approach to implement the tls server

I believe that mantainers intended to not include tokio-rustls as the project dependencies. However, i could not think in any solution to implement the accept_tls_connection() function due to the RequestAdu and OptionalResponsePdu, which are private from the frame module. Any suggestion of how to solve this issue?

I think i found a way to create the OnConnected() function without an accept_tls_connection() function.

Please rebase and resolve the conflicts.


torchmetric is outdated.

Would you update the version of torchmetric. torchmetic is already version 1.x. But, your package requires torchmetric 0.10.2.

updated version 0.1.4  which requires torchmetrics >= 1.0.0 is released


📝 🐛 Easy local build of docs

As demonstrated in this thread it's not trivially easy for users to preview changes they are making to documentation.
We ought to improve upon or replace the existing functionality outlined in README of the moj-analytical-services/user-guidance repository.
User Story
As someone wanting to create documentation and merge it
I want to preview it locally
So I can confirm I have created it correctly
This should be considered as part of this epic.

This was done as part of https://github.com/moj-analytical-services/user-guidance/pull/398


Enable JVM Servicability Agents (jstack, etc) on slaves

https://bugs.openjdk.java.net/browse/JDK-7050524?focusedCommentId=12450509&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12450509

You can revert to the more permissive policy in one of two ways: 1) temporarily (until the next reboot) by changing the value to 0 in /proc/sys/kernel/yama/ptrace_scope, or 2) more permanently by changing the value to 0 in /etc/sysctl.d/10-ptrace.conf and rebooting. Option 1 does not require a reboot and option 2 does require a reboot.

Context: I was working on a script to use in the Jenkins Script Console to list all JVMs running across all slaves and to collect a thread dump from one of them:
import hudson.util.RemotingDiagnostics;

print_ip = 'println InetAddress.localHost.hostAddress';
print_hostname = 'println InetAddress.localHost.canonicalHostName';

jps = "def proc = Runtime.getRuntime().exec(['jps', '-lv'] as String[]); proc.waitFor(); println proc.in.text";

slaveProcess = "jenkins-worker-behemoth-1"
slavePid = "26192"

for (slave in hudson.model.Hudson.instance.slaves) {
  println slave.name;
  println RemotingDiagnostics.executeGroovy(print_ip, slave.getChannel());
  println RemotingDiagnostics.executeGroovy(print_hostname, slave.getChannel());
  println RemotingDiagnostics.executeGroovy(jps, slave.getChannel());
  if (slave.name == slaveProcess) {
    jstack = "def proc = Runtime.getRuntime().exec(['jstack', '-F', '$slavePid'] as String[]); proc.waitFor(); println proc.err.text";
    println RemotingDiagnostics.executeGroovy(jstack, slave.getChannel());
  }
}

This resulted in:

Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: cannot open binary file
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: cannot open binary file
	at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:163)
	at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:278)

I can run jstack when ssh-ed to the machine, so my diagnosis was wrong here.


Tuesday 19-03-2024 roll call

Roll Call!
Leave a comment with these two things:

A summary of your study using only emojis
Something you'd like to share, anything goes! (within respect)

emoji cheat sheet

gud mrng

hi

Good mornin'

good morning

Hello

Hello

Good morning!

good morning

Hello

GoodMorning

Good morning

🥳

✌

good morning


support uint16 RGB images with the OpenGL backend

uint16 RGB seems to be already supported in the OpenGL backend, except for these 2 lines.
I have been testing it for a few days, now.
To test it:
from silx.gui import qt
from silx.gui.plot import PlotWidget
import numpy

img_rgb = numpy.empty((300, 300, 3), dtype=numpy.uint16)
img_rgba = numpy.empty((300, 300, 4), dtype=numpy.uint16)

max_uint16 = numpy.iinfo(numpy.uint16).max

r, g = numpy.meshgrid(numpy.arange(0, max_uint16, max_uint16 / 300),
                      numpy.arange(max_uint16, 0, - max_uint16 / 300))

b = (r + g) / 2
a = b.T

img_rgb[..., 0] = r
img_rgb[..., 1] = g
img_rgb[..., 2] = b

img_rgba[..., 0:3] = img_rgb
img_rgba[..., 3] = a

app = qt.QApplication([])

pw = {}
for be in "gl", "mpl":
	pw[(be, "rgb")] = PlotWidget(backend=be)
	pw[(be, "rgba")] = PlotWidget(backend=be)

	pw[(be, "rgb")].setGraphTitle(be + "uint16 RGB")
	pw[(be, "rgba")].setGraphTitle(be + "uint16 RGBA")

	pw[(be, "rgb")].addImage(img_rgb)
	pw[(be, "rgba")].addImage(img_rgba)

	pw[(be, "rgb")].show()
	pw[(be, "rgba")].show()

app.exec_()

Unfortunately I had to stop converting uint16 to uint8, because it seems most of my  uint16 data files have most of their values in range 0 -- ~1000, except for a few hot pixels at >50 000.
Converting to uint8 causes my "useful" dynamic range to be encoded on 4 or 5 values.

What about log normalization in this case?
So you consider support of uint16 to be useful?
I had a question in this comment: https://github.com/silx-kit/silx/pull/2889#issuecomment-577768068

I don't really understand the question. To me, clipping the int types to 0--255 is equivalent to saying we do not support them at all. So support of uint16 (no more clipping) can only been considered a progress.
But obviously you never know if some weird user is not using what i consider to be a bug as a feature :)

Btw, i searched on the internet, and I found a few PNG files with a RGBA 4x16 bits. So it is not completely exotic.

It's just I had no answer, it's fine for me.

Ready for review

PNG 16bits channels o_O weird

I'll add a test.

Test added.


Latest EC2 Controller Forces tags to be in CRs

Describe the bug
With the latest release of the EC2 controller, tags were added to the VPC CR. With this addition, the controller now fails if a user does not give the tags attribute when applying the CR.
Steps to reproduce

Install the operator on OpenShift (I assume the same issue is on k8s)
Apply a new VPC CR with no tags (oc apply -f or via the web ui)

oc apply -f - <<'EOF'
apiVersion: ec2.services.k8s.aws/v1alpha1
kind: VPC
metadata:
  name: rosa-rds-vpc
  namespace: ack-workspace
spec:
  cidrBlocks:
    - <IP_ADDRESS>/18
  enableDNSHostnames: true
  enableDNSSupport: true
EOF

Tail the logs of the controller pod, and see the below failure.

2022-09-27T14:56:47.379Z	ERROR	controller.vpc	Reconciler error	{"reconciler group": "ec2.services.k8s.aws", "reconciler kind": "VPC", "name": "rosa-rds-vpc", "namespace": "ack-workspace", "error": "InvalidRequest: The request received was invalid.\n\tstatus code: 400, request id: 31966f27-02b3-4481-ad3d-5193706ebd29"}

Expected outcome
I'd expect the above CR to work properly since tags are supposed to be optional. When tags are added to the above CR, the controller reconciles the resource.
ie
apiVersion: ec2.services.k8s.aws/v1alpha1
kind: VPC
metadata:
  name: rosa-rds-vpc
  namespace: ack-workspace
spec:
  cidrBlocks:
    - <IP_ADDRESS>/18
  enableDNSHostnames: true
  enableDNSSupport: true
  tags:
    - key: name
      value: rosa-rds

It would be great if the tests for this controller were also update to have some positive and negative tests, ie with and without the tags field present in the CR. To me it looks like all current tests have tags present.
Environment

Kubernetes version: ROSA/OpenShift
Using EKS (yes/no), if so version? no
AWS service targeted (S3, RDS, etc.) EC2

Hi @acornett21 , I'm testing on my EKS cluster with ec2-controller v0.0.20 and cannot reproduce the issue. I'm not too familiar with OpenShift-- is the Operator using the latest controller version?
[29/09/22 12:30:40] ➜  test-yaml cat vpc-test.yaml
apiVersion: ec2.services.k8s.aws/v1alpha1
kind: VPC
metadata:
  name: vpc-ack-test
spec:
  cidrBlocks:
  - <IP_ADDRESS>/16
  enableDNSSupport: true
  enableDNSHostnames: true%

[29/09/22 12:30:44] ➜  test-yaml kubectl apply -f vpc-test.yaml
vpc.ec2.services.k8s.aws/vpc-ack-test created

[29/09/22 12:30:56] ➜  test-yaml kubectl describe vpcs
Name:         vpc-ack-test
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  ec2.services.k8s.aws/v1alpha1
Kind:         VPC
Metadata:
  Creation Timestamp:  2022-09-29T17:30:56Z
  Finalizers:
    finalizers.ec2.services.k8s.aws/VPC
  Generation:  2
<truncated for readability...>
Spec:
  Cidr Blocks:
    <IP_ADDRESS>/16
  Enable DNS Hostnames:  true
  Enable DNS Support:    true
  Instance Tenancy:      default
Status:
  Ack Resource Metadata:
    Owner Account ID:  <ID>
    Region:            us-west-2
  Cidr Block Association Set:
    Association ID:  vpc-cidr-assoc-<ID>
    Cidr Block:      <IP_ADDRESS>/16
    Cidr Block State:
      State:  associated
  Conditions:
    Last Transition Time:  2022-09-29T17:30:58Z
    Message:               Resource synced successfully
    Reason:
    Status:                True
    Type:                  ACK.ResourceSynced
  Dhcp Options ID:         dopt-<ID>
  Is Default:              false
  Owner ID:                <ID>
  State:                   available
  Vpc ID:                  vpc-<ID>

It would be great if the tests for this controller were also update to have some positive and negative tests, ie with and without the tags field present in the CR. To me it looks like all current tests have tags present.

+1 , improvements to e2e tests are ongoing; I'll be sure to include this.

Hi @acornett21 , I'm testing on my EKS cluster with ec2-controller v0.0.20 and cannot reproduce the issue. I'm not too familiar with OpenShift-- is the Operator using the latest controller version?

The OpenShift operator is packaged on release of the controller code, so whatever is in the controller image for the runtime version, it's the same in OpenShift as k8s. Are any flags/params to pass to the controller to get more logs other than the 400 bad request?

@brycahta How are you deploying into your k8s cluster? Helm or k8s manifests?

The OpenShift operator is packaged on release of the controller code, so whatever is in the controller image for the runtime version, it's the same in OpenShift as k8s. Are any flags/params to pass to the controller to get more logs other than the 400 bad request?

 Helm or k8s manifests?

I'm using k8s manifest. I have the code checked out, use go run command above, then  kubectl apply -f vpc-test.yaml  (manifest in first comment)

Here is some more info for the requests that end up in AWS...I think tagSpecificationSet is always being included in the request and on OpenShift it would be empty
 "requestParameters": {
        "cidrBlock": "<IP_ADDRESS>/18",
        "tagSpecificationSet": {
            "items": [
                {
                    "resourceType": "vpc",
                    "tags": [
                        {}
                    ]
                }
            ]
        }
    },
    ```

    and on k8s it is not
    ```
        "requestParameters": {
        "cidrBlock": "<IP_ADDRESS>/18",
        "tagSpecificationSet": {
            "items": [
                {
                    "resourceType": "vpc",
                    "tags": [
                        {
                            "key": "services.k8s.aws/controller-version",
                            "value": "ec2-v0.0.20"
                        },
                        {
                            "key": "services.k8s.aws/namespace",
                            "value": "ack-system"
                        }
                    ]
                }
            ]
        }
    },
    ```

    since the k8 install is would have the below values
    https://github.com/aws-controllers-k8s/ec2-controller/blob/main/config/controller/deployment.yaml#L69
    feed into the controller, by default

    where in openshift this would not be present.
    https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/operators/ack-ec2-controller/0.0.20/manifests/ack-ec2-controller.clusterserviceversion.yaml#L498-L510

   So when the controller goes to look for those. Is the `ACK_RESOURCE_TAGS` ENV that is used by default in helm/k8s manifest install, is that a REQUIRED argument for all controllers now? That might be more of a question for @RedbackThomson or @jaypipes

@acornett21 appreciate the help with deep diving this. I'm looking more on my end and runtime::GetDefaultTags seems like it can handle nil config values for ResourceTags. However, the configuring-default-tags documentation, implies that the config needs to be present whether you want default tags or not:

To remove the ACK default tags, set the resourceTags Helm value to be {} inside values.yaml file or use --set 'resourceTags={}' during helm chart installation.

@jaypipes @RedbackThomson @A-Hilaly  would y'all be able to help us clarify the expected behavior?

I will take a look at complete issue later today. But i can clarify the default behavior below:

However, the configuring-default-tags documentation, implies that the config needs to be present whether you want default tags or not

If you do not provide any command-line override for resource tags during helm installations, these defaults from helm values.yaml  are used. ACK team wanted this to be default controller behavior.
A parameter during helm installation is only required if you wish to use no tags "{}" or want to override the default tags.

This is the confusing part for me, if we say that CR.Tags is optional then give a default value, then the field is not optional it's a required field with a default value.
If we need a default value in OpenShift as well, the olm template would need to change and probably the code that way the default values get populated at build/release time of a controller. (Assuming this a concept in all controllers)

Good feedback, @acornett21 . During the release of this feature i did not test with open-shift, and forgot to take it's behavior and templates into account. I primarily focussed on customer behavior with helm installations. It's a good learning.
@A-Hilaly , will it be it alright if i explain the issue to you offline and you can own the fix?

@vijtrip2 No worries The template update would look something like this
- op: add
          path: '/spec/template/spec/containers/0/env/1'
          value:
            name: ACK_RESOURCE_TAGS
            value: "services.k8s.aws/controller-version=%CONTROLLER_SERVICE%-%CONTROLLER_VERSION%,services.k8s.aws/namespace=%K8S_NAMESPACE%"

but not sure how these values would be populated (ie code olm.go) or during the build process (olm sh files). Let me know if you all need more help.

root cause for the invalid request is hook code in ec2-controller, specifically updateTagSpecificationsInCreateRequest:
input.TagSpecifications = []*svcsdk.TagSpecification{&desiredTagSpecs}

This is always assigned even if desiredTagSpecs is empty. The fix will be to update all resources' hook code to move this assignment into if r.ko.Spec.Tags != nil check as well as setting input.TagSpecifications = nil at the start of the function.

Hey @acornett21 was this issue fixed, or shall we leave this open?

@A-Hilaly I didn't realize a PR went in for this. I'll retest this week.

/reopen


Decompile classes asynchronously

Would be nice to decompile classes asynchronously.
For example org.bukkit.Material takes more than 5 minutes to decompile on a i7-4790k due to the amount of enum entries.
This task freezes the whole IDE each time I want to decompile that class or when I decompile it by mistake.

This is an intellij issue out of our control.


Typescript compatible?

Hi, I want to use this library. However, the language that I use is typescript and seems like I can't use the library. Is it typescript compatible?

You can get around this by adding a custom TypeScript definition file global.d.ts at the project root and including this in your tsconfig.json as part of the typeRoots field:
"typeRoots": ["./node_modules/@types", "./global"],

Inside global.d.ts you can then define the type of the component:
declare module 'rn-bottom-drawer' {
  import {FC} from 'react';
  const BottomDrawer: FC<{
    containerHeight: number;
    offset?: number;
    downDisplay?: number;
    backgroundColor?: string;
    startUp?: boolean;
    roundedEdges?: boolean;
    shadow?: boolean;
    onExpanded: () => void;
    onCollapsed: () => void;
  }>;
  export default BottomDrawer;
}


Is there a way extract images or image links from the source using prompt?

Is your feature request related to a problem? Please describe.
I want to extract images from a website matching a prompt
Describe the solution you'd like
Use same SmartScraperGraph API but return image links or special scraper API designed for image results
Describe alternatives you've considered
Tried different prompts but didn't get any sensible outputs.
Additional context

Hey @anirudh1800, you are asking at the right time! We just released OmniScraperGraph which uses GPT-4o and GPT-4 to extract information and describe the content of images as well! #238

Great!! Excited to try to this now. Thank you.


region double click

I want to use region-dblclick event on my wavesurfer project
this is code pen;
Double click on any region, wavesurfer just start playPause() whereever the mouse clicked, but what I wanted was like just play clicked region for once like this code pen
Plz help me out if there is anyway I can use region-dblclick but still get the same result like single click does .THANKS !

@maxmood you're using an ancient version of wavesurfer.js, please try 2.2.1 or the upcoming 3.0.0.

no feedback, closing.


resvg silently skips emoji when raster-images feature is turned off

Reproduction repo: https://github.com/si14/resvg-emoji-bug
With raster-images enabled:

Without:

That was quite fun to debug 😅

How about enabling logs? It would print "Images decoding was disabled by a build feature.".

@RazrFalcon at the very least the requirement is not reflected in the documentation or the log message itself. Emoji fonts might secretly be images and thus require raster-images, but it's not trivially evident.


fix out of range panic

This adds a test case that expects InvalidPresentationData when someone tries to create a range proof with a value that is outside the required range.
Without the fix, it panics:
thread 'out_of_range_panic' panicked at 'attempt to add with overflow', src/presentation/range.rs:147:38
This PR adds a check for out of range in presentation/range.rs in RangeBuilder.commit.

@haroldcarr — thanks for the PR. We can’t merge the PR until the DCO (DCO - Developer Certificate of Origin - https://github.com/apps/dco) is applied.  Can you please fix that as per the “Details” in the failed check above?  Thanks!

DONE
On Thu, Jul 18, 2024 at 6:54 AM Stephen Curran @.***>
wrote:

@haroldcarr https://github.com/haroldcarr — thanks for the PR. We can’t
merge the PR until the DCO (DCO - Developer Certificate of Origin -
https://github.com/apps/dco) is applied. Can you please fix that as per
the “Details” in the failed check above? Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/hyperledger/anoncreds-v2-rs/pull/28#issuecomment-2236591869,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFE4KVYBHOX7OUFV2CQVFDZM7CILAVCNFSM6AAAAABLA6JJ22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWGU4TCOBWHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@haroldcarr — the DCO check is still failing.   Sorry for the pain.

done
https://github.com/hyperledger/anoncreds-v2-rs/pull/29


train.py file missing

Discussed in https://github.com/changcheng967/Kata_speed/discussions/26

Originally posted by changcheng967 June 19, 2024
should we change it to bin.gz because that's easier

this doesn't sounds great

yep

pretty bad


Can we build esp-idf-svc on Window ?

Hi everyone,
I'm new with esp-idf-svc. I'm trying to use this to my ESP32C6 device. However, I'm running into an issue when building example code with command:
cargo run --example wifi
I'm concerned that if it support building on Window. Could you guys help me with this ?

Do what it says. Clone esp-idf-svc as c:\esp. Then build and run it as usual.

@TuEmb I came across the same issue when using Windows at work. I solved it by enabling long paths (see this) and then executing set ESP_IDF_PATH_ISSUES=warn in a terminal.

@thetek42 Thanks so much. I worked for me. I can step over this issue
Which the target are u using ? Currently, I'm using ESP32C6 and run command:
cargo run --example wifi --target riscv32imac-unknown-none-elf
Still having another issue. Could you help me with it ?

Thanks so much

Unfortunately I don't have an ESP32-C6 around, so I won't be able to help you that well. This is what I executed in order to get it running (on a regular ESP32 - note the different target):
set ESP_IDF_PATH_ISSUES=warn
set ESP_IDF_TOOLS_INSTALL_DIR=global
set RUSTFLAGS=--cfg espidf_time64
set ESP_IDF_VERSION=v5.1.1
cargo +esp build --target xtensa-esp32-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort --example wifi
espflash flash target\xtensa-esp32-espidf\debug\examples\wifi

Probably a bunch of these options are not even necessary, I just copied them from somewhere else. My guess is that the -Zbuild-std flags might fix the issue.

@thetek42 Thanks so much. It worked for me. I can step over this issue Which the target are u using ? Currently, I'm using ESP32C6 and run command:
cargo run --example wifi --target riscv32imac-unknown-none-elf
Still having another issue. Could you help me with it ?
Thanks so much

The correct target is riscv32imac-esp-espidf. Why are you not using the esp-idf-template project to generate all configuration and a sample binary crate?

@thetek42 @ivmarkov Thanks for your support. I used esp-idf-template and run successful on my ESP32C6


Adding sha256 hasing

Please read how to contribute first!
Description
Submission description here
Checklist

[x] I've checked the issue list BEFORE deciding what to submit
[x] I've read the contribution guidelines
[x] I've edited the README.md link to my code

Don't forget to visit our website!
Feel free to add this badge after your submission is accepted!

Please read how to contribute first!
Description
Submission description here
Checklist

[x]  I've checked the issue list BEFORE deciding what to submit
[x]  I've read the contribution guidelines
[x]  I've edited the README.md link to my code

Don't forget to visit our website!
Feel free to add this badge after your submission is accepted!

Can you verify that it is your own Work/Code ?

I used similar code in my project. You can look into it
https://github.com/harshareddy794/Project-Hashely/blob/0dd38d6037d1f5cb6c98d98eb244f7472cd0e28b/hashely.py#L13

I used similar code in my project. You can look into it
https://github.com/harshareddy794/Project-Hashely/blob/0dd38d6037d1f5cb6c98d98eb244f7472cd0e28b/hashely.py#L13
This Repository deals with Algorithms and data structure so if you can make a .py file and Explain the code.
Anyone can use a library and get things done. We are more interested in what happens behind the screens.
Thank you


Added feature to align title of the block

This is PR for https://github.com/fdehau/tui-rs/issues/450

Added title_alignment field to block struct
Added title_alignment() method to set title_alignment of the block
Added comments and title alignment to the example/block.rs
Added tests for title alignment in tests/widgets_block.rs
Added tests in srs/block.rs for inner

For all above, used layout::Alignment enum as the type for title_alignment.

Committed updates based on the suggestions and fixed behavior of the center alignment when used without left border.


Added Volunteer Form Section

I have added the Volunteer Form Section to the Webpage

Thank you for contributing! Merging it !🚀


[SPARK-20028][SQL] Add aggreagate expression nGrams

What changes were proposed in this pull request?
This is the implementation of ngrams aggregate expression which is also implemented by Hive. It takes use of n-gram concept in natural language processing to understand texts.
An n-gram is a contiguous subsequence of n item(s) drawn from a given sequence. This expression finds the k most frequent n-grams from one or more sequences.
This expression has the pattern of : ngrams(children: Array[Array[String]](or Array[String]), n: Int, k: Int, accuracy: Int), it can be used in conjuction with sentences to split the column of String to Array. Among the parameters:
Children indicates the 'given sequence' we collect n-grams from;
N indicates n-gram's element number, size 1 is referred to as a "unigram", size 2 is a "bigram", size 3 is a "trigram"...
K indicates top k;
Accuracy is related to the memory used for frequency estimation, more memory will give more accurate frequency counts.
A simple example:
SELECT ngrams(array("abc", "abc", "bcd", "abc", "bcd"), 2, 4); will get
[{["abc","bcd"]:2.0},  {["abc","abc"]:1.0},  {["bcd","abc"]:1.0}]. Because there are four 2-grams for the input which are ["abc", "abc"], ["abc", "bcd"], ["bcd", "abc"], ["abc", "bcd"], and ["abc", "bcd"] occurs 2 times, the other two 2-grams occurs 1 time each, while ["abc","abc"] is alphabetically before ["bcd","abc"], so the answer is like that.
An interesting example for presidential candidates' speech analysis:
I watched the US presidential election a few months ago, and wanted to get candidates' viewpoints and the phrases they'd like to use. How can I easily analyze the text without too much programming?
I did a simple test using this expression:

Download the final debate transcript
Seperate different candidates' words to different files, translate punctuations to space
load 2 files each as a single string to different tables in Spark SQL
Execute SELECT ngrams(sentences(lower(text)), 4, 40) from debate_trump(/clinton)

If I ignored the word sequences like (we, are, going, to) which is said 27 times by Trump and 18 times by Clinton, the phrases they said a lot during the debate will be:
For Trump, (millions, of, people, that) for 4 times, (iran, is, taking, over) for 3 times, (putin, has, outsmarted, her) for 3 times, (she, wants, open, borders) for 3 times, (a, country, of, laws) for 2 times
For Clinton, (30, years, of, experience) for 2 times, (clear, to, the, russians) for 2 times, (grow, the, economy, to) for 2 times, (have, met, with, women) for 2 times.
Another example for movie reviews analysis:
If you have a column with movie or product reviews from users expressed as natural language strings. You want to find the top 10 most frequent word pairs. Let's do a simple test first, executing SELECT ngrams(sentences("I hated this movie. I hated watching it and this movie made me unhappy."), 2, 4) will get [{["I", "hated"]:2.0}, {["this", "movie"]:2},{["hated", "this"]:1},{ngram: ["hated", "watching"]:1}]. And that result tells you people have a negative evaluation on that movie.
How was this patch tested?
Unit tests are in NGramsQuerySuite

Can one of the admins verify this patch?

cc @chenghao-intel @yucai @adrian-wang @cloud-fan @gatorsmile

Why do we want this? Seems extremely low usage on this function in the wild.

@rxin My fault, the example I gave is far from practical use and I have updated. Actually, we can use it whenever the text analysis is reasonable to be based on frequencies of word sequences. For example, analyze movie or product reviews, find common sequences of URL accesses, etc.

@rxin nGram is the built-in UDAF in Hive, and some users complaints they faced performance issue when running the queries with nGram.

@rxin @cloud-fan @gatorsmile @viirya @tejasapatil  Could you please help me review this PR? Or is there anything I can do on this work?

Regarding the performance issue, does this change have significant improvement compared with Hive's?

@viirya  Sorry for the late reply. It seems Spark cannot use Hive GenericUDAFnGrams, since Spark only supports subclass of AbstractGenericUDAFResolver & UDAF for Hive UDAF, while GenericUDAFnGrams is subclass of GenericUDAFResolver. Spark will return a No handler for Hive UDF exception. So this may be a good reason to add new feature for Spark aggregate expression.
Or do you think it's reasonable to make Spark support registering subclass of GenericUDAFResolver?

@viirya Updated, as the last sentence mentioned, I have tried to make Spark support GenericUDAFResolver. But it lacks some interfaces comparing with AbstractGenericUDAFResolver so this can't be done.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

cc @wzhfy @viirya Are you interested in reviewing this PR?

@gatorsmile Sure, I haven't read the context, but it's been nearly half a year since last update, is this PR still active @gczsjdy ?

@gatorsmile I will try to take a look again.

Sorry, but I think this is inactive. Thanks for your attention. @wzhfy @viirya @gatorsmile

Would love to see this feature in Spark SQL.


Turn on vscode to trigger GitHub issues

https://code.visualstudio.com/blogs/2020/05/06/github-issues-integration

it works meh... not auto-trigger but meh


How are packages made like tensorflow.net?

Hello
I'm a student who is currently using Tensorflow.net very well.
I'm curious about the Tensorflow.net development process, and
I'd like to know what language you develop Tensorflow.net in.
Thank you.

We use C# and C++ for tf.net. Welcome to join the development if want to contribute.

I want to unsubscribe.
2020년 9월 20일 (일) 오전 10:55, Haiping<EMAIL_ADDRESS>작성:

Closed #547 https://github.com/SciSharp/TensorFlow.NET/issues/547.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SciSharp/TensorFlow.NET/issues/547#event-3785657170,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMLDVQFKT5SH2FM45IABTOTSGVOH7ANCNFSM4NBJMVYQ
.


stop building/publishing DEB/RPM to complete our move to managed plugins

related to #1051 and refer https://github.com/vmware/docker-volume-vsphere/issues/1051#issuecomment-294250409 for more information.
As of 0.13 vDVS release, we gave heads up about limited support for DEB/RPMs and going to be deprecated soon, so raising this issue to keep track of the work.

[ ] remove make targets to build DEB/RPMs
[ ] stop generating during regular builds
[ ] remove entry from .drone.yml for github releases hook while tagging the master
[ ] update README.md/Contributing.md/Installation Instruction after dropping build support

/CC @msterin @tusharnt

Setting to rafiki to either close or resolve. Only the managed plugin is supported anymore for docker.

We have had at least one customer who wanted an RPM for the plugin. Lets fix this as its already documented that the managed plugin is the only format supported.

@ashahi1 to add a test for validating RPM/DEB based install.


How to train to identify the color of a product?

Hello,
I want to identify the color of apparels and accessories. Some of the tshirts may have multiple color like white with green colors.
How can I train this? what should be the folder structure and what are the images I have to store in those?
I have tried like this:
colors/red
colors/green
colors/black
colors/while
in the above folder structure, corresponding colored images of the products copied. if a product have multicolor same image copied in the corresponding colors. Then used AlexNet to create the models.
for some of images it gives proper result but for some images the result is wrong.
Is this approach is fine? to get more accuracy what should I do?

Please ask questions about general deep learning questions on the user group.
If you think of a way to improve the DIGITS documentation or to improve the UI for solving complex problems, please do open an issue with your suggestion.


Make sure bind gets the dependencies for the ref

TODO: unit test!

This still does not do the trick for me - still missing a reference when using with the example found in ticket #125


MAINT: stats: fix docstring link in logistic

Use double backticks in stats.logistic docstring to fix the doc build (and stop CIrcleCI "uh-oh"-ing)

closing in favor of gh-15119


Anyway to disable dialog close on outside click ?

Question
For usage questions, please use Stack Overflow or use GitHub Discussions instead of posting an issue. This helps us keep bugs and feature requests prioritized, and it increases the liklihood that more people see your question and can answer it more qiuckly!

You could do event prevent default based on the source code https://github.com/radix-ui/primitives/blob/c31c97274ff357aea99afe6c01c1c8c58b6356e0/packages/react/dialog/src/Dialog.tsx#L329
Code:
onInteractOutside={(e) => event.preventDefault()}


No write access to InnoDB tables

Originally filed by meister.fuchs on 2011-07-25T13:59:32
What steps will reproduce the problem?

Execute an update or insert statement on an InnoDB table
The statement is executed without errors or warning but the data is not written to the database

What is the expected output? What do you see instead?
The data should be stored in the database
This works for MyISAM tables. If you change the table to MyISAM then all of a sudden the statement works ...

This actually isn't a bug.
InnoDB is a transactional table type, which means that changes to the database are not processed until the entire transaction is committed.  Therefore, to push your INSERTS/UPDATES/DELETES to the table, make sure to do a commit() on the database.
Alternatively, just turn autocommit on.


windows 2019 ?

How to apply on windows 2019 server ?
Same user interface, but it does not work.
[Enter feedback here]

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

ID: 3bb82418-b583-7023-f2e3-c3dca7d3245c
Version Independent ID: 0a65ac0a-9884-52a8-6485-c2825b1fb4d9
Content: Enable your device for development
Content Source: hub/apps/get-started/enable-your-device-for-development.md
Product: uwp
Technology: apps
GitHub Login: @GrantMeStrength
Microsoft Alias: jken

HI - I'm sorry, this doesn't appear to be a documentation issue. Please either re-open the issue with more information so I can help, or visit the Microsoft Q&A Forum which is a great place to ask questions. https://docs.microsoft.com/en-us/answers/products/
thanks, -john


@urql/exchange-persisted Module name, 'crypto' does not resolve to a valid URL.

Describe the bug
Hi,
I'm getting some errors logged from @urql/exchange-persisted.
Module name, 'crypto' does not resolve to a valid URL.
Pointing to this line: p = new Function('return import("crypto")')();
The issue seems to be mainly in safari
Reproduction

Urql version
"urql": "4.0.6",
"@urql/exchange-persisted": "4.1.1",
Validations

[X] I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
[X] Read the docs.
[X] Follow our Code of Conduct

Do you have a reproduction?
This shouldn't ever happen since we only attempt to import the Node Crypto module if the WebCrypto API is unavailable. If that was unavailable then that browser is well outside of our range of supported browsers

The relevant code: https://github.com/urql-graphql/urql/blob/d2c7441731bfc636a57c8864ea49464d59c13d6f/exchanges/persisted/src/sha256.ts#L26
Browser Support table for WebCrypto subtle: https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle

I haven't been able to reproduce it myself but here are som data from sentry

To be honest, I kind of expected this to be an issue report from an error analytics tool, like Sentry 😅
That's because this honestly doesn't sound like it would ever happen on "real" devices, but instead on requests that fake a user agent but are potentially crawlers.
That said, given that there's a lot of different devices in your report and hence a lot of user agents, there's still a chance there's something odd going on. Mind you though we haven't seen a similar report for a while so this is definitely weird, and could also hint at a faulty polyfill (?)
I'm afraid we won't have much to go on without a reproduction, but I realise that this might be tricky ❤

Yeah, I get it's really hard to do something without being able to reproduce it.
i'll keep testing different browsers/devices to see if I can get the error.

Ahh, thanks for pointing that out!
When i check now the reports are not on https. I have no idea how they end up on http though... they should be redirected to https :)

Then, if you don't mind, I'll close this as unplanned for now, until we have some information of whether this comes down to a real browser with an available reproduction ✌ happy to reopen this though when we've got something actionable, so no need to worry ❤


How to solve "no rule for roles" for jwt authorization?

I am trying to make a simple jwt-based authorization with a jwt secret
Update: found solution

Found solution.
I was calling the api end point which was not related to the "user" entity

I'm happy you were able to figure it out on your own!


How can I run this project with my own Firebase?

I have tried to build this project, and run this application on my device but I did not allow me to send symptom. So, I decided to create my new Firebase project. The app pop out a toast "message: 10 code: 10". After spending sometimes, I figured that I did not put "SHA certificate fingerprints" to my Firebase project. I tried to build the app again with my new google-service.json, the log in form was hanging out.

Hey John,
We're actually in the process of pivoting away from symptoms tracking.  I think if you pull the latest version of master that issue should be gone because tracking is gone and the app is now about tracking social distancing.  There's still a login with Firebase but it's anonymous, so you'll need to turn on anonymous login in Firebase.
If you want to help with development I can add you to our Firebase account.  If you don't let me know if you have issues with the latest version.  We just got designs, so there's quite a bit to do if you want to pitch in.  Email me if you are interested<EMAIL_ADDRESS>


When google something, access the top 3 url and then summarize the results

Current google command only open the google page and summarize the results from the google results.
If the extension can access the top 3 results, then the summarization would be more accurate and useful.
This behavior should be able to switch off in popup window

unnecessary


ROS bindings

We are hoping to make ROS bindings. It seems that the best way of doing so is either make our python source code work in Python 2.7, or implement it all in c++, and then create the associated ROS bindings. Forking our repository and porting our code to Python 2.7 is probably the easiest/best option.

ROS appears to refer to http://wiki.ros.org/
I don't think this should be on our roadmap


Apply-SPOProvisioningTemplate : The formula refers to a column that does not exist

Hi,
I ran into a new issue. When the formula is wrong we get this error message but is doesn't tell which column is causing the issue.
Fortunately I only had one wrong calculated column.
Apply-SPOProvisioningTemplate : The formula refers to a column that does not exist.  Check the formula for spelling mistakes or change the non-existing column to an existing column.
Fixing the error message to it'd give the column ID would be great.
Thanks!

After investigation, it was the same original problem as #234 however column name or id should be displayed in error message to help debugging. I will close this one and contribute to the other one.

I have tens of calculatged columns, so it is just impossible to debug without knowing which column has an error. Please add information about which column caused the error, for example if column XYZ did not exist, 'The formula refers to a column XYZ that does not exist'

Enable logging: Set-SPOTraceLog -On -Level Debug


pr.exit undefined error

Extension version: v0.37.20220224
VSCode Version:
Version : 1.65.0-insider (user setup)
Validation : 3112460dc48ce7e557ea9feeaae04b912164b48b
Date : 2022-02-24T05:15:20.989Z
Electron : 16.0.9
Chromium: 96.0.4664.174
Node.js : 16.9.1
V8 : <IP_ADDRESS>-electron.0
OS: Windows 10

Steps to Reproduce:

Check out a PR
Go back to the view that lists all the PRs
In the status bar branch selector, switch back to main
Quickly go to the PR in the PR list view, right click, exit review mode
:bug: error notification

If I wait long enough between steps 3 and 4, though, I notice that an info dialog pops up as well saying "The default branch is already checked out."

I'm not able to reproduce the error.
The info notification "The default branch is already checked out." is by design.


What happened to diesels embed_migrations! ?

Rust: 1.43.1
Diesel: 1.4.0
Database: sqlite in memory
Operating System: Linux 5.3.0

Feature Flags
diesel = { version = "1.4.0", features = ["sqlite","mysql","r2d2","chrono"] }
Problem Description
EmbedMigrations derive macro not found, which is called inside on declarative embed_migrations! one; function run from embedded_migrations module is absent.
What are you trying to accomplish?
Trying to migrate database structure to in-memory sqlite DB for tests.
What is the expected output?
compile that fine:
use diesel_migrations::embed_migrations;
embed_migrations!();
embedded_migrations::run(c)?;

What is the actual output?
cannot find derive macro ...; cannot find function run ...
Are you seeing any additional errors?
No.
Steps to reproduce
N\A
Checklist

[+] I have already looked over the issue tracker for similar issues.
[+] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)

P.S.
I checked actual source of diesel_migrations crate, macro doesn't generate the code

Basically a duplicate of #1764.
Importing macros via use statement is not supported on the current releases.