Bug: error message when running move_from_insdc.py script

Description of the task:
When I run the following command:
python3 move_data_from_insdc.py -s SRP162461 -o s3://hca-util-upload-area/3f2f2a39-9d8f-4b61-9edf-7f7d470a5b5f
I get the below pasted error message.
I am not sure what this error message is indicating. It would be great to get it fixed so that I can transfer the data. This is not urgent as I am waiting on a new ontology term for this submission.

`During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/urllib/request.py", line 1542, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/usr/lib/python3.7/urllib/request.py", line 2410, in retrfile
sys.exc_info()[2])
File "/usr/lib/python3.7/urllib/request.py", line 2406, in retrfile
conn, retrlen = self.ftp.ntransfercmd(cmd)
File "/usr/lib/python3.7/ftplib.py", line 359, in ntransfercmd
host, port = self.makepasv()
File "/usr/lib/python3.7/ftplib.py", line 337, in makepasv
host, port = parse227(self.sendcmd('PASV'))
File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
return self.getresp()
File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
raise error_perm(resp)
urllib.error.URLError: <urlopen error ftp error: error_perm('500 OOPS: socket')>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.7/multiprocessing/pool.py", line 47, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "move_data_from_insdc.py", line 185, in transfer_file
file_stream, file_size, filename, source = define_source_parameters(path)
File "move_data_from_insdc.py", line 129, in define_source_parameters
streamable = urlopen(path)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 1553, in ftp_open
raise exc.with_traceback(sys.exc_info()[2])
File "/usr/lib/python3.7/urllib/request.py", line 1542, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/usr/lib/python3.7/urllib/request.py", line 2410, in retrfile
sys.exc_info()[2])
File "/usr/lib/python3.7/urllib/request.py", line 2406, in retrfile
conn, retrlen = self.ftp.ntransfercmd(cmd)
File "/usr/lib/python3.7/ftplib.py", line 359, in ntransfercmd
host, port = self.makepasv()
File "/usr/lib/python3.7/ftplib.py", line 337, in makepasv
host, port = parse227(self.sendcmd('PASV'))
File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
return self.getresp()
File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
raise error_perm(resp)
urllib.error.URLError: <urlopen error ftp error: URLError("ftp error: error_perm('500 OOPS: socket')")>
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "move_data_from_insdc.py", line 294, in
main(parser_args)
File "move_data_from_insdc.py", line 286, in main
p.starmap(transfer_file, output_args)
File "/usr/lib/python3.7/multiprocessing/pool.py", line 276, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
urllib.error.URLError: <urlopen error ftp error: URLError("ftp error: error_perm('500 OOPS: socket')")>`

@ami-day was this resolved?

There were a couple of bugs related to xml to dict conversion + a couple of bugs introduced when trying to fix the errors
The latest version should fix it. Going to test once the EC2 instance is available.
If fixed, I will close this ticket

Aside from 421  error (Which the script should handle better in the future), this specific bug is fixed now.
Moving to "Done"


Add consumer interface to CompletableCompletionStage

So that it can be added to whenComplete().. etc without anonymous lambda functions

Thanks, it's an interesting idea. Can you please add some JavaDoc? And just to satisfy my curiosity, may please shortly describe your use case? (an example would be great)

I added more javadoc. A use case for the BiConsumer is to use it as a target of the whenComplete operation:
CompletionStage<X> someComplettionStage = ...
CompletableCompletionStage<X> ccs = completionStageFactory.createCompletionStage();
someCompletionStage.whenComplete(ccs); // ccs will be completed with the same result (success or failure) as someCompletionStage

I have been thinking about it extension of Consumer and BiConsumer feels confusing. It may be caused by my lack of experience when designing Java 8 APIs. In my opinion something like this 5f9242082e1bfb8e04ca531640117d365246ae43 makes more sense. You have to use method references, but I find it less confusing. What do you think?

Yes, method references is fine. I think you don't need for them to return void, the ones that return boolean should work fine. Have you tried them? The one I'd be interested in this case is void doComplete(T result, Throwable throwable)

Unfortunately the methods have to return void, otherwise their signature does not match Consumer interface. I will close this pull request and merge and release my changes. Thanks a lot for the idea.


Contract for TypeConverter.ConvertFrom(object)

As far as I can tell this is a valid contract, it doesn't appear that ConvertFrom should ever return null - it either successfully returns the conversion or throws a NotSupportedException

Should doesn't mean can never. The following is an example of getting the method to return null. Pathological, but possible.
  public class NullTypeConverter : TypeConverter
  {
    public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
    {
        return null;
    }
  }

  [TypeConverter(typeof(NullTypeConverter))]
  public class MyNullClass
  {
  }

  public static class Program
  {
    public static void Main()
    {
      /// Should print true
      Console.WriteLine(TypeDescriptor.GetConverter(typeof(MyNullClass)).ConvertFrom("foo") == null);
    }
  }

Is there any return point from this sort of problem to what was probably intended in the framework originally?
I know it would be a breaking change – could we somehow make contracts breaking changes at runtime by a ‘strict’ flag in application manifest?
From: Nathan Dykman<EMAIL_ADDRESS>Sent: Saturday, 5 September 2015 9:16 AM
To: Microsoft/CodeContracts<EMAIL_ADDRESS>Subject: Re: [CodeContracts] Contract for TypeConverter.ConvertFrom(object) (#236)
Should doesn't mean can never. The following is an example of getting the method to return null. Pathological, but possible.
public class NullTypeConverter : TypeConverter
{
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

{

    return null;

}

}
[TypeConverter(typeof(NullTypeConverter))]
public class MyNullClass
{
}
public static class Program
{
public static void Main()

{

  /// Should print true

  Console.WriteLine(TypeDescriptor.GetConverter(typeof(MyNullClass)).ConvertFrom("foo") == null);

}

}
—
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/CodeContracts/pull/236#issuecomment-137876550.

According to the Microsoft Reference Source:
TypeConverter:
        public object ConvertFrom(object value) {
            return ConvertFrom(null, CultureInfo.CurrentCulture, value);
        }

one two, skip a few...

        public virtual object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) {
            InstanceDescriptor id = value as InstanceDescriptor;
            if (id != null) {
                return id.Invoke();
            }
            throw GetConvertFromException(value);
        }

InstanceDescriptor:
        public object Invoke() {
            object[] translatedArguments = new object[arguments.Count];
            arguments.CopyTo(translatedArguments, 0);

            // Instance descriptors can contain other instance
            // descriptors.  Translate them if necessary.
            //
            for(int i = 0; i < translatedArguments.Length; i++) {
                if (translatedArguments[i] is InstanceDescriptor) {
                    translatedArguments[i] = ((InstanceDescriptor)translatedArguments[i]).Invoke();
                }
            }

            if (member is ConstructorInfo) {
                return ((ConstructorInfo)member).Invoke(translatedArguments);
            }
            else if (member is MethodInfo) {
                return ((MethodInfo)member).Invoke(null, translatedArguments);
            }
            else if (member is PropertyInfo) {
                return ((PropertyInfo)member).GetValue(null, translatedArguments);
            }
            else if (member is FieldInfo) {
                return ((FieldInfo)member).GetValue(null);
            }
            else {
                Debug.Fail("Unrecognized reflection type in instance descriptor: " + member.GetType().Name);
            }

            return null;
        }

Thus in the following code, convertedValue will be null:
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;

namespace TypeConverterExaggeration
{
	class Program
	{
		static void Main(string[] args)
		{
			var descriptor = new InstanceDescriptor(null, null);
			var converter = new TypeConverter();
			var convertedValue = converter.ConvertFrom(descriptor);
		}
	}
}

So even if the framework intended ConvertFrom to never return null, the framework's own implementation can do so. I don't see any logical way to apply non-null as a postcondition, even if you want your own code to be stricter than the framework.


⚠ ClamAV has degraded performance

In 2317bbc, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 59 ms

Resolved: ClamAV performance has improved in 5e85c09.


not able to connect to the inverter

using HA 2022.8.7
using v<IP_ADDRESS> of this integration
when entering in the ip of the inverter I get the error 'Unknown error occurred' and in the logs I see this
2022-08-28 13:20:29.566 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 277, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/goodwe/config_flow.py", line 93, in async_step_user
inverter = await connect(host=host, retries=10)
File "/usr/local/lib/python3.10/site-packages/goodwe/__init__.py", line 52, in connect
return await discover(host, timeout, retries)
File "/usr/local/lib/python3.10/site-packages/goodwe/__init__.py", line 70, in discover
response = await Aa55ProtocolCommand("010200", "0182").execute(host, timeout, retries)
File "/usr/local/lib/python3.10/site-packages/goodwe/protocol.py", line 109, in execute
await response_future
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 1017, in _read_ready
data, addr = self._sock.recvfrom(self.max_size)
ConnectionRefusedError: [Errno 111] Connection refused

dam wrong inverter ip


Updating content on App (Home page) of the Application - Enhancing the Predictive Calc

🌟 Is your feature request related to a problem?:
The home page currently lacks detailed descriptions for each type of calculation available in the Predictive Calc feature. Users are confused about the purpose and functionality of each calculation, which leads to a poor user experience and misuse of the tool.
💡 Describe the solution you'd like:
I propose updating the home page to include clear, concise descriptions for each type of calculation provided by the Predictive Calc feature.
🔀 Describe alternatives considered:

Adding an extender for all calculators/detectors that reveals more information.
Integrating an FAQ or "Learn More" button (maybe).

📄 Additional Context:
This update is intended to improve the user experience by making the Predictive Calc feature more user-friendly and accessible. Clear descriptions will help users better understand the different types of calculations available, thereby reducing confusion and enhancing the app’s overall usability.
To be Mentioned while taking the issue:

GSSOC Extd'24, Hacktoberfest

Note:

Please review the project documentation and ensure your code aligns with the project structure.
Please ensure that either the predict.py file includes a properly implemented model_details() function or the notebook contains this function to print a detailed model report. The model will not be accepted without this function in place, as it is essential for generating the necessary model details.
Prefer using a new branch to resolve the issue, as it helps keep the main branch stable and makes it easier to manage and review your changes.
Strictly use the pull request template provided in the repository to create a pull request.

@yashasvini121 Please assign it to me as part of GSSoC'24 Extended along with all the appropriate labels.
I look forward to your positive response.
Thanks and Regards

@yashasvini121 please assign this issue to me.

@yashasvini121 please assign the issue to me, I've been looking forward to your response since many days.

@yashasvini121 thanks for assigning it.

@yashasvini121 I've completed the issue #128 and raised the PR, please review and give your suggestions (if any).
Looking forward to getting my PR merged. Most importantly add all the labels (GSSOC, Hacktoberfest and level).
Thank you


RequireJS support

Hello, I've been trying to use transliteration in browser via RequireJS  but to no avail.
When I inspected the dist/browser/transliteration.js, I found out that the CommonJS support just doesn't do the job. On the other hand, when I tried adding
define(function(require, module, exports) {
        return {
            transliterate: _.transliterate,
            slugify: _.slugify
        }
    });

after line 223, RequireJS was able to give me what I needed.
Is it possible to check if this approach doesn't break anything and add it to production?

We've also just discovered that it is possible to make RequireJS work with current build by pointing requireConfig of individual modules to built file, eg:
require.config({
    paths: {
        'transliterate': '../bower_components/transliteration/lib/browser/transliteration',
        'slugify': '../bower_components/transliteration/lib/browser/transliteration',
    }
});

and in place of usage requiring individual functions from the module like this:
define(['transliterate', 'slugify'], function(transliterate, slugify) {
// ...
});

though in my opinion, this is not a way to go because

in general this way you have to require N modules from one file
module names specified at definition may lead to name collisions

Apologize for the late reply. I haven't used much of RequireJS so I'm not quite sure how it works. If your solution works, would you please provide a PR?

Works well for me with this configuration
require.config({
  paths: {
    transliteration: "lib/transliteration/transliteration.min", // 1.6.2 bower install<EMAIL_ADDRESS>  }
});

...

require(['transliteration', 'slugify'], function(transliteration, slugify) {
  // Use slugify & transliteration here
});


Beware Scammer Wallet still active on Binance !

GABFQIK63R2NETJM7T673EAMZN4RJLLGP3OFUEJU5SZVTGWUKULZJNL6
BEWARE: Fund sent to this account are associated with illegally obtained funds extorted from users !!!
This scam wallet has already been report by myself, not sure if Binance or the authorities are looking in this atm but please report if you have been a victim of these guys !!
Best

I had lost a lot of coins in some scam case just like this thanks to the best hacker in the world who helped me recover all my funds,message him on telegram his telegram username is https://t.me/Blackhathacker110


Migrate to PyInstaller binary distribution

Currently, clip only uses Linux-centric shell scripts to install and run the program, which is insufficient for package distribution and end-user accessibility in the software ecosystem. A better approach is to use a distribution tool to create a native executable binary of the application.
Current plan is to implement PyInstaller support, which may enable formal Windows support in the future.

Closed by pr #4


[Bug] Social links not working

Is there an existing issue for this?

[X] Yes, I have searched the existing issues

Product Variant
Self-Hosted
Current Behavior
whenever I download pdf form of resume the social links doesn't work whenever i hover over those links it wont show  option to access attached website
it only happens to theme castform
Expected Behavior
No response
Steps To Reproduce
No response
What browsers are you seeing the problem on?
No response
Anything else?
No response

Same issue on https://rxresu.me
Same theme.
Tested on chrome and firefox.

Facing same issue

Which template are all of you using? Probably needs a fix in some specific one, would be helpful to know which one :)

I am using 'Gengar' template. Please fix it.
@AmruthPillai

Which template are all of you using? Probably needs a fix in some specific one, would be helpful to know which one :)

Castform. The same as the author of this issue.

Same with Gengar

Castform. Website and social links don't work.

Hey @AmruthPillai is there an estimate for a fix on this? Or a work around we can do manually to fix it?
Thanks!

I face same issue with Gengar template

Same issue with Gengar

The issue still exists in Gengar


Unable to launch Bot Framework Composer (Struck at "server starting" screen)

Already installed desktop version of composer(c#) was working completely fine.
When we launch composer from PVA console  --> Logged in successfully with the Microsoft AD Account on consent --> After these steps also the composer was launched successfully.
Here when we restart the system --> Tried to launch the composer directly or from PVA Console --> Getting struck at "server starting" screen.

Attaching the screenshot for reference...

In the below screenshot you can check the error shown while logging In from PVA.

Thanks in advance...

Hi @nisarkhan916

Here when we restart the system --> Tried to launch the composer directly or from PVA Console --> Getting struck at "server starting" screen.

To clarify; when you are attempting to re-launch a bot from Composer on its own, or Composer from PVA, you get a Server Starting screen, and then you get the Something Went Wrong error? But when you first launch Composer from PVA, login, etc; it works fine that time.

Hey @dmvtech,
The composer via PVA was launched and then it asked for my creds, then on creds submission i got  something went wrong error but still it was logged in and the composer was working fine.
After a system restart i am unable to launch composer at all

Thank you @nisarkhan916
Can you please (attempt to) run Composer in debug mode. I want to see what the debug output looks like when it fails.

Go to Composer's install location (mine is at C:\Users{username}\AppData\Local\Programs\Bot Framework Composer)
Open a terminal here
run set DEBUG=composer*
run the executable from the terminal Ex. "Bot Framework Composer.exe"

Once it fails, copy the output from the terminal and paste it here.

Hey @dmvtech,
Here is the output from the terminal
(node:28376) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token (node:28376) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token (node:28376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:28376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:28376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:28376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Can you ensure you have the (newest) C++ redistributable installed? Please see more information here: https://stackoverflow.com/questions/72447436/bot-framework-composer-stuck-on-starting-server

Closing due to lack of response. Please comment and confirm whether the redistributable resolved the issue and we will reopen.


[AnimatedController] unsafe setState cause an exception in test unit

The AnimatedController did not check mounted before the setState method, cause an exception in my project
The following assertion was thrown while notifying status listeners for AnimationController:

setState() or markNeedsBuild() called during build.

This WeeklyChartContentLoading widget cannot be marked as needing to build because the framework is

already in the process of building widgets. A widget can be marked as needing to be built during the

build phase only if one of its ancestors is currently building. This exception is allowed because

the framework builds parent widgets before children, which means a dirty descendant will always be

built. Otherwise, the framework might not visit this widget during this build phase.

The widget on which setState() or markNeedsBuild() was called was:

  WeeklyChartContentLoading

The widget which was currently being built when the offending call was made was:

  JoyPadding

When the exception was thrown, this was the stack:

#0      Element.markNeedsBuild.<anonymous closure> (package:flutter/src/widgets/framework.dart:4424:11)

#1      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4439:6)

#2      State.setState (package:flutter/src/widgets/framework.dart:1141:15)

#3      _WeeklyChartContentLoadingState.build.<anonymous closure> (package:bmw_points/src/activity/widgets/weekly_chart/weekly_chart_content_loading.dart:329:43)

#4      ImplicitlyAnimatedWidgetState.initState.<anonymous closure> (package:flutter/src/widgets/implicit_animations.dart:372:25)

#5      AnimationLocalStatusListenersMixin.notifyStatusListeners (package:flutter/src/animation/listener_helpers.dart:233:19)

#6      AnimationController._checkStatusChanged (package:flutter/src/animation/animation_controller.dart:815:7)

The setState in _handleAnimationChanged  not check the widget is mounted or not, when AnimatedController embed as the child in parent widget.

AnimationController._checkStatusChanged (package:flutter/src/animation/animation_controller.dart:815:7)

abstract class AnimatedWidgetBaseState<T extends ImplicitlyAnimatedWidget> extends ImplicitlyAnimatedWidgetState<T> {
  @override
  void initState() {
    super.initState();
    controller.addListener(_handleAnimationChanged);
  }

  void _handleAnimationChanged() {
    setState(() { /* The animation ticked. Rebuild with new animation value */ });
  }
}

Flutter doctor
[✓] Flutter (Channel unknown, 2.10.5, on macOS 12.5 21G72 darwin-x64, locale
    en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2021.2)
[✓] VS Code (version 1.70.0)
[✓] Connected device (1 available)
    ! Error: US的iPhone is not connected. Xcode will continue when US的iPhone is
      connected and unlocked. (code -13)
[✓] HTTP Host Availability

any update?

Hi @LongXiangGuo, Thanks for filing the issue. Inorder to investigate the issue further we would need a minimal and complete code sample.

I have both tried the project and example code locally on Mac but there is no such problem. But the jenkins  server some times throw the error above.
example code
import 'package:flutter/material.dart';
import 'dart:core';
import 'dart:math';

import 'package:flutter/scheduler.dart';

void main(List<String> args) {
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: IssueWidget(
        itemCount: 200,
      ),
    );
  }
}

class IssueWidget extends StatefulWidget {
  final int itemCount;

  const IssueWidget({
    Key? key,
    required this.itemCount,
  }) : super(key: key);

  @override
  _IssueWidgetState createState() => _IssueWidgetState();
}

class _IssueWidgetState extends State<IssueWidget> {
  @override
  void initState() {
    super.initState();

    SchedulerBinding.instance!.addPostFrameCallback((timeStamp) {
      setState(() {});
    });
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        ShaderMask(
          shaderCallback: (rect) {
            return const LinearGradient(
              begin: Alignment.centerRight,
              end: Alignment.centerLeft,
              colors: [Colors.black, Colors.transparent],
            ).createShader(
              Rect.fromLTRB(0, 0, 30, rect.height),
            );
          },
          blendMode: BlendMode.dstIn,
          child: Container(
            constraints: const BoxConstraints().loosen().tighten(height: 150),
            child: Stack(
              clipBehavior: Clip.none,
              children: [
                Positioned.fill(
                  top: -12,
                  left: -16,
                  right: widget.itemCount > 8 ? 0 : 46,
                  child: SizedBox(
                    key: const Key('__container__'),
                    height: 162,
                    child: Row(
                      crossAxisAlignment: CrossAxisAlignment.end,
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: [
                        for (var i = 0; i < widget.itemCount; i++) ...[
                          Flexible(
                            flex: 8,
                            child: ShaderMask(
                              shaderCallback: (rect) {
                                return const LinearGradient(
                                  begin: Alignment.centerRight,
                                  end: Alignment.centerLeft,
                                  colors: [Colors.transparent, Colors.black],
                                ).createShader(
                                  Rect.fromLTRB(
                                    0,
                                    0,
                                    i == 8 ? rect.width / 2.5 : 0,
                                    i == 8 ? rect.height : 0,
                                  ),
                                );
                              },
                              blendMode: BlendMode.dstIn,
                              child: Column(
                                mainAxisAlignment: MainAxisAlignment.end,
                                children: [
                                  Padding(
                                    padding: const EdgeInsets.only(
                                      right: 16,
                                      bottom: 8,
                                    ),
                                    child: AnimatedContainer(
                                      color: Colors.blue,
                                      onEnd: () {
                                        if (mounted) {
                                          print('object');
                                        }
                                      },
                                      height: () {
                                        return Random().nextInt(20).toDouble();
                                      }(),
                                      duration: () {
                                        return const Duration(seconds: 1600);
                                      }(),
                                      curve: Curves.easeIn,
                                    ),
                                  ),
                                ],
                              ),
                            ),
                          ),
                        ],
                      ],
                    ),
                  ),
                ),
              ],
            ),
          ),
        ),
      ],
    );
  }
}

```

Thanks for the code sample @LongXiangGuo, I ran your code sample and unfortunately it doesn't seem to render anything nor do I see any error in the console. Can you please recheck if the code sample is correct and is working as intended locally? And then we can investigate what could be wrong in your deployed environment.
Also please ensure you are using the latest stable version of flutter 3.0.5.

flutter doctor -v (mac)
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-IN)
    • Flutter version 3.0.5 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (5 days ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

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

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

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 103.0.5060.114

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

• No issues found!


Moving files instead of copying them to save space

https://github.com/conda-forge/clangdev-feedstock/blob/b5eea1e32c5118ea572e21e22a1f91e2c7a3cd90/recipe/install_libclang.sh#L10
I'm going through a size audit of a package of mine and noticed that the libclang.so and libclang.so.10 are actully two seperate files and not symlinks.
Would it be acceptable if I made a PR for one to be a symlink to an other?

Sure


Deploy a CAP Business Application to SAP Cloud Platform

Tutorial URL: https://developers.sap.com/tutorials/cap-service-deploy.html
Please specify the step you are referring to

when execute command 'cf push -f gen/db', exception is raised in terminal as below:
-----> Installing binaries
engines.node (package.json): ^8
engines.npm (package.json): unspecified (use default)
ERROR Unable to install node: no match found for ^8 in [10.18.1 10.19.0 12.16.0 12.16.1 13.7.0 13.8.0]
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
I checked the gen/db/package.jason file:
{
"name": "deploy",
"dependencies": {
"@sap/hdi-deploy": "^3"
},
"engines": {
"node": "^8"
},
"scripts": {
"start": "node<EMAIL_ADDRESS>}
}

How can i fix this problem ? Thanks.

Hi All, i update the node version to ^10,  no issue anymore.


Failure Threshold ENV variable or ENV var for config file

It would be pretty useful to be able to alter the failure threshold configuration via env variable, so for instance you could force failure to generate new snapshots or just use a harsher threshold on the fly when spot checking some component or another.
An alternative and perhaps better, more flexible approach would be to have different configuration files that could be selected, again via env variable.  This might be useful for the above mentioned use case as well as having harsher checks per CI gate or other workflow or condition (dev vs prod etc).

I realized this is easily done in the default commands.js file so this could be closed (since anyone can do it), or easily incorporated into the default and docs provided by this package.  🤷♂


⚡ Support 11ty !!! npm init @vitejs/app ➜ eleventy

Clear and concise description of the problem
Vite + 11ty
I want the benefits of using 11ty's powerful yet simple static site generator that supports multiple templating engines alongside Vite's powerful yet simple dev server/ build system. Together they will provide an amazing developer experience and workflow.
Suggested solution
This is what I want:
npm init @vitejs/app my-eleventy-app --template eleventy

Could this ever be a possibility @yyx990803 @zachleat ?
Alternative
Vite + 11ty Projects
There's been a few projects created that attempts merging the two together
eleventy-with-vite
I'm currently using this one with success (by @fpapado)
https://github.com/fpapado/eleventy-with-vite
vite-plugin-eleventy
The project is still in alpha stage but shows a lot of promise (by @Snugug)
https://github.com/Snugug/vite-plugin-eleventy
https://snugug.com/musings/eleventy-plus-vite/
Additional context
I originally started the discussion here https://github.com/vitejs/vite/issues/1861#issuecomment-877739777 but @Shinigami92 had suggested I make a feature request.
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

I just want to quickly point out that this is issue #4211
42 is the answer to the ultimate question of life, the universe, and everything
11 is Eleventy
It's a sign guys... Lol

Just to repeat my point of view:
Every additional framework we add natively to vite repo we need to officially also support it, and I think this template is not in scope for vite.
Therefore a place like https://github.com/vitejs/awesome-vite is maybe a better place for such templates and plugins.
BUT as I said, this is just my opinion and we will bring it up in one of our next team meetings :slightly_smiling_face:

Great spirit and marketing for the proposal 🙌🏼
I also think that we should keep this in awesome-vite. If we include 11ty, why not including VuePress, VitePress, and the list will just keep growing. The scope of create-vite is to quickly scaffold a simple Vite app with popular frameworks to test Vite (and maybe use it as a base for simple apps or prototypes). A general scaffold app is not in the scope of vite core, as it will be too much maintenance burden for this repo and the team. Each framework should have its own app scaffold scheme, like SvelteKit for svelte. It would be great too see a page about Vite in each framework with detailed instructions to how to get started, @oneezy maybe once the options for 11ty are mature enough you can send a PR to the 11ty docs or work with them to create scaffold options that play nicely with their own ecosystem. We need that each framework/lib takes this responsibility so we are able to scale these solutions and the maintenance of docs involved.

Haha.. thanks! 😅
That makes a lot of sense @patak-js . After reading the comments it does sound more suitable for awesome-vite.  I believe @snugug has been on top of that and aligning his plugin to work with 11ty's v1 release. I guess I was just doing a little pre-marketing for everyone to build awareness lol..
Vite is such an awesome tool and I don't think a lot of devs know about it yet so I'm just doing my part.

That is a great attitude @oneezy, I hope that we end up with formal docs in 11ty at one point 💯
And looking forward to seeing these options in awesome-vite. Let's close this issue then for the time being, if create-vite changes its scope we can revisit this call.


[EGGO-46] Initial Jenkins jobs

Initial work for a jenkins job against the spark-ec2 impl.  There are still some holes/cleanup to fill in here, but at least it will work.

@tomwhite I've merged this just so we can get a jenkins job running, but would you mind reviewing this anyway?  Especially around the organization etc.  Also, I'm curious whether you think that the python tests should be broken up into lots of small functions.

This looks great. Thanks for getting it working @laserson.
I think the organization in test/jenkins is fine. Also, I think having the python tests in one function is good.


Running latest source shows version as 2021-12-17

Checklist

[X] I'm asking a question
[X] I've looked through the README and FAQ for similar questions
[X] I've searched the bugtracker for similar questions including closed ones

Question

I've downloaded the source in https://github.com/ytdl-patched/youtube-dl/releases/tag/2<IP_ADDRESS>4 and ran it using python (through a batch file in this case)
Running the --version command however shows it as a 2021-12-17 version, not 2024-06-17. I have no idea how that's happening

Update: ???

That's the last "stable" (aka obsolete, broken) version. When running from checked-out source the version is shown as the HEAD commit.
For non-development use, run a nightly build (#30839).
See #32039.


Coordinates data red when there's nothing to review

The dot disappears after the edit dimension window has been opened

Note to self: I believe this issue would be addressed by manually getting rid of the dot as described, downloading a new save file, and using that new save file to replace the sample.json file. The issue is due to a minor incompatibility between the old and and new save file formats.


Add Doctests

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.00%. Comparing base (35810e3) to head (e896454).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #3       +/-   ##
==========================================
- Coverage   58.53%   0.00%   -58.54%
==========================================
  Files           5       4        -1
  Lines          82      80        -2
==========================================
- Hits           48       0       -48
- Misses         34      80       +46

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


The identifier parser should accept parenthesized operators like (+)

The identifier parser doesn't accept '(+)' as a reference to +, and instead requires @('+')@ which is very unreadable IMHO.

Maybe we should also consider rendering the entirety of (+) as a link, as the + inside is a very small target for the mouse cursor.

Fixed in a5199600c39d25d7b71dcb2328000c1c49ad95a2. Proof:


Convert the library to a ECMAscript module instead of a CommonJS module

Rationale: https://web.dev/commonjs-larger-bundles/

I'd be willing to review and merge the PR 👍

After having spent a couple of hours to investigate this issue:

It's unclear whether it's ok just to convert this lib to an es6 module, or should we somehow provide it in both formats - UMD and ES6 - to the users
Even simply converting this lib to es6 is not trivial - I'm getting errors while trying to run tests, seems like we'll need to use a different test runner
Converting the lib to an ES6 module does not provide any real benefit in terms of bundle size, since the lib is tiny, and it anyway contains just a single exportable symbol.

Having said that, I'm not sure whether it makes sense to spend any more time on this issue. Please feel free to close it.

I'm not actively using memorystorage in any of my current work, so I have no interest in spending much time on it atm. So I am closing this, but feel free to re-open if you change your mind.


issue to install @graphprotocol/graph-cli on Ubuntu

I want to install @graphprotocol/graph-cli on Ubuntu. I have tried to install graph-cli with npm and yarn, both of them.
# NPM
npm install -g @graphprotocol/graph-cli

# Yarn
yarn global add @graphprotocol/graph-cli

But after that when I tried graph init, I met this error bash: /usr/bin/graph: No such file or directory.
What can I do? What was my fault?
Is anybody help me with this issue?

unable to reproduce on ubuntu


docs(Design): Started a design document. Added packages structure

Hey,
Added a simple diagram that shows the package structure as I understand it.
This PR is meant to hold feedback on the project structure.
Some things are left out.. For example the packages relations (what package depends on which package) is left out and should be discussed as well.
As I see it, the dependency tree should look like so:
Client: View -> Client Logic -> Transport
Server: Server Logic -> Transport, Data store
Would love some feedback here.

@davidyaha Your understanding of the package structure is correct.

An addition I would make to the server side would be the http servers (express, koa, hapi). We need to provide the necessary middleware to setup the routes or graphql depending on the user's choice of framework. I'm not sure whether these should reside in @accounts/accounts, in the server side transports, or as their own packages.

The diagram is missing the oauth portion. https://github.com/simov/grant is the package I was intending on using. This also means that we need to provide callback routes for the oauth flow as part of the middleware.

Yeah so I was thinking about it earlier and I think I missed crucial layer which is the actual network transport/protocol to use with REST or GraphQL.
Theoretically speaking, both can use HTTP or WebSockets or any other cloud based transport like Pusher or any other thing that someone will come up with.
So basically I propose having something like this on the diagram

Data fetching Client (GraphQL, Rest, DDP)
Transport (HTTP (express, koa, etc..)/WS)
Data fetching API (GraphQL, Rest, DDP)

I was thinking oauth would be implemented as part of the client/server logic that would basically  be every package used and exposed by the accounts package. Your thoughts?

Looks good.
Could you please expound on that? The way I see it is @accounts/accounts provides the logic to for oauth logins (this includes initiating the request and creating/logging in as the user via the provided db package). Each of the server side transports (express, koa, hapi) need to provide callback routes for the oauth flow, this is achieved by the middleware provided from the grant package.

@TimMikeladze Update the diagram.
I think we should merge that and the current devel branch and start working on an example. What do you think?

@davidyaha Diagram looks good. I have some additional work to do on devel today and then I'll send a PR for review.


[es] Spanish folder localization docs/languages

This issue is to track the translation pages for the folder docs/languages
Below, you can check the list of the pages we recommend translate.

[ ] opentelemetry.io/content/en/docs/languages/_index.md - https://github.com/open-telemetry/opentelemetry.io/issues/5229
[ ] opentelemetry.io/content/en/docs/languages/cpp/_index.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/api.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/examples.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/exporters.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/getting-started.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/instrumentation.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/library.md
[ ] opentelemetry.io/content/en/docs/languages/cpp/registry.md
[ ] opentelemetry.io/content/en/docs/languages/erlang/_index.md
[ ] opentelemetry.io/content/en/docs/languages/erlang/api.md

opentelemetry.io/content/en/docs/languages/erlang/examples.md
opentelemetry.io/content/en/docs/languages/erlang/exporters.md
opentelemetry.io/content/en/docs/languages/erlang/getting-started.md
opentelemetry.io/content/en/docs/languages/erlang/instrumentation.md
opentelemetry.io/content/en/docs/languages/erlang/libraries.md
opentelemetry.io/content/en/docs/languages/erlang/propagation.md
opentelemetry.io/content/en/docs/languages/erlang/registry.md
opentelemetry.io/content/en/docs/languages/erlang/resources.md
opentelemetry.io/content/en/docs/languages/erlang/sampling.md
opentelemetry.io/content/en/docs/languages/erlang/testing.md
opentelemetry.io/content/en/docs/languages/go/_index.md
opentelemetry.io/content/en/docs/languages/go/api.md
opentelemetry.io/content/en/docs/languages/go/examples.md
opentelemetry.io/content/en/docs/languages/go/exporters.md
opentelemetry.io/content/en/docs/languages/go/getting-started.md
opentelemetry.io/content/en/docs/languages/go/instrumentation.md
opentelemetry.io/content/en/docs/languages/go/libraries.md
opentelemetry.io/content/en/docs/languages/go/registry.md
opentelemetry.io/content/en/docs/languages/go/resources.md
opentelemetry.io/content/en/docs/languages/go/sampling.md
opentelemetry.io/content/en/docs/languages/java/_index.md
opentelemetry.io/content/en/docs/languages/java/api.md
opentelemetry.io/content/en/docs/languages/java/configuration.md
opentelemetry.io/content/en/docs/languages/java/examples.md
opentelemetry.io/content/en/docs/languages/java/getting-started.md
opentelemetry.io/content/en/docs/languages/java/instrumentation.md
opentelemetry.io/content/en/docs/languages/java/libraries.md
opentelemetry.io/content/en/docs/languages/java/performance.md
opentelemetry.io/content/en/docs/languages/java/registry.md
opentelemetry.io/content/en/docs/languages/java/sdk.md
opentelemetry.io/content/en/docs/languages/js/_index.md
opentelemetry.io/content/en/docs/languages/js/api.md
opentelemetry.io/content/en/docs/languages/js/benchmarks.md
opentelemetry.io/content/en/docs/languages/js/context.md
opentelemetry.io/content/en/docs/languages/js/examples.md
opentelemetry.io/content/en/docs/languages/js/exporters.md
opentelemetry.io/content/en/docs/languages/js/getting-started/_index.md
opentelemetry.io/content/en/docs/languages/js/getting-started/browser.md
opentelemetry.io/content/en/docs/languages/js/getting-started/nodejs.md
opentelemetry.io/content/en/docs/languages/js/instrumentation.md
opentelemetry.io/content/en/docs/languages/js/libraries.md
opentelemetry.io/content/en/docs/languages/js/propagation.md
opentelemetry.io/content/en/docs/languages/js/registry.md
opentelemetry.io/content/en/docs/languages/js/resources.md
opentelemetry.io/content/en/docs/languages/js/sampling.md
opentelemetry.io/content/en/docs/languages/js/serverless.md
opentelemetry.io/content/en/docs/languages/net/_index.md
opentelemetry.io/content/en/docs/languages/net/examples.md
opentelemetry.io/content/en/docs/languages/net/exporters.md
opentelemetry.io/content/en/docs/languages/net/getting-started.md
opentelemetry.io/content/en/docs/languages/net/instrumentation.md
opentelemetry.io/content/en/docs/languages/net/libraries.md
opentelemetry.io/content/en/docs/languages/net/metrics-api.md
opentelemetry.io/content/en/docs/languages/net/netframework.md
opentelemetry.io/content/en/docs/languages/net/registry.md
opentelemetry.io/content/en/docs/languages/net/resources.md
opentelemetry.io/content/en/docs/languages/net/shim.md
opentelemetry.io/content/en/docs/languages/net/traces-api.md
opentelemetry.io/content/en/docs/languages/other/_index.md
opentelemetry.io/content/en/docs/languages/php/_index.md
opentelemetry.io/content/en/docs/languages/php/context.md
opentelemetry.io/content/en/docs/languages/php/examples.md
opentelemetry.io/content/en/docs/languages/php/exporters.md
opentelemetry.io/content/en/docs/languages/php/getting-started.md
opentelemetry.io/content/en/docs/languages/php/instrumentation.md
opentelemetry.io/content/en/docs/languages/php/libraries.md
opentelemetry.io/content/en/docs/languages/php/propagation.md
opentelemetry.io/content/en/docs/languages/php/registry.md
opentelemetry.io/content/en/docs/languages/php/resources.md
opentelemetry.io/content/en/docs/languages/php/sdk.md
opentelemetry.io/content/en/docs/languages/python/_index.md
opentelemetry.io/content/en/docs/languages/python/api.md
opentelemetry.io/content/en/docs/languages/python/benchmarks.md
opentelemetry.io/content/en/docs/languages/python/cookbook.md
opentelemetry.io/content/en/docs/languages/python/distro.md
opentelemetry.io/content/en/docs/languages/python/examples.md
opentelemetry.io/content/en/docs/languages/python/exporters.md
opentelemetry.io/content/en/docs/languages/python/getting-started.md
opentelemetry.io/content/en/docs/languages/python/instrumentation.md
opentelemetry.io/content/en/docs/languages/python/libraries.md
opentelemetry.io/content/en/docs/languages/python/mypy.md
opentelemetry.io/content/en/docs/languages/python/propagation.md
opentelemetry.io/content/en/docs/languages/python/registry.md
opentelemetry.io/content/en/docs/languages/ruby/_index.md
opentelemetry.io/content/en/docs/languages/ruby/api.md
opentelemetry.io/content/en/docs/languages/ruby/examples.md
opentelemetry.io/content/en/docs/languages/ruby/exporters.md
opentelemetry.io/content/en/docs/languages/ruby/getting-started.md
opentelemetry.io/content/en/docs/languages/ruby/instrumentation.md
opentelemetry.io/content/en/docs/languages/ruby/libraries.md
opentelemetry.io/content/en/docs/languages/ruby/registry.md
opentelemetry.io/content/en/docs/languages/ruby/sampling.md
opentelemetry.io/content/en/docs/languages/rust/_index.md
opentelemetry.io/content/en/docs/languages/rust/api.md
opentelemetry.io/content/en/docs/languages/rust/examples.md
opentelemetry.io/content/en/docs/languages/rust/exporters.md
opentelemetry.io/content/en/docs/languages/rust/getting-started.md
opentelemetry.io/content/en/docs/languages/rust/libraries.md
opentelemetry.io/content/en/docs/languages/rust/registry.md
opentelemetry.io/content/en/docs/languages/sdk-configuration/_index.md
opentelemetry.io/content/en/docs/languages/sdk-configuration/general.md
opentelemetry.io/content/en/docs/languages/sdk-configuration/otlp-exporter.md
opentelemetry.io/content/en/docs/languages/swift/_index.md
opentelemetry.io/content/en/docs/languages/swift/examples.md
opentelemetry.io/content/en/docs/languages/swift/getting-started.md
opentelemetry.io/content/en/docs/languages/swift/instrumentation.md
opentelemetry.io/content/en/docs/languages/swift/libraries.md
opentelemetry.io/content/en/docs/languages/swift/registry.md

Hi! I'm interested in translating opentelemetry.io/content/en/docs/languages/python/instrumentation.md.
Is there a process/checklist described somewhere? Thanks!

Hi! I'm interested in translating opentelemetry.io/content/en/docs/languages/python/instrumentation.md. Is there a process/checklist described somewhere? Thanks!

Hi @marcorichetta , I did a basic sample using the spanish translation. Take a look here: https://krolcloud.notion.site/OpenTelemetry-Traducci-n-10cfbe995e9480739979fa231be6f519

HI! I am going to translate opentelemetry.io/content/en/docs/languages/js/_index.md to spanish.

Question: I received some warnings from the Spelling check

Warning: Unknown word (configurarlo) Suggestions: (configurarão, configurarmo, configurá-lo, configurar, configura-o)

Can we add this words to some list, so it passes the check?


Allow for multiple hosts to be specified via values.yaml

PR for issue: https://github.com/nickytd/kubernetes-logging-helm/issues/11
Currently, we have access to only 1 host name:
opensearch_dashboards.ingress.host
This means, when I create a DNS entry under my own domain, I must wait until the ingress is created, and depending on which hyperscaler I am on, either use an AWS load balancer CNAME or on Azure, use the IP address assigned.
I had noticed with ELK, I could create multiple hosts, and was able to use a DNS name for the cluster.  So this name would always resolve.
It looks something like this in values.yaml:
opensearch_dashboards:
  ingress:
    enabled: true
    hosts:
      - logs-os.sandbox.my.domain
      - kibana.ingress.sandboxbsh-a.iotdevk8s.shoot.canary.k8s-hana.some.com

This will generate the following ingress:
  - host: logs-os.sandbox.my.domain
    http:
      paths:
      - backend:
          service:
            name: ofd-opensearch-dashboards
            port:
              number: 5601
        path: /
        pathType: Prefix
  - host: dashboards.ingress.sandboxbsh-a.iotdevk8s.shoot.canary.some.com
    http:
      paths:
      - backend:
          service:
            name: ofd-opensearch-dashboards
            port:
              number: 5601
        path: /
        pathType: Prefix

Which means, when I create the DNS entry:
logs-os.sandbox.my.domain
I can point it at the automatically exposed hostname:
kibana.ingress.sandboxbsh-a.iotdevk8s.shoot.canary.k8s-hana.some.com
And then don't have to mess around with my DNS entries after the fact.
PR is completed and tested.
It allows for backwards compatibility if you continue to use:
opensearch_dashboards:
  ingress:
    enabled: true
    host:

But it will also check for:
opensearch_dashboards:
  ingress:
    enabled: true
    hosts:

Thanks @dfishburn . It is a valid case. You may want to have the same pattern implemented for the other ingress exposing the opensearch rest point as well.


add line changes diff bot to CI

Base on #895.
Add a diff mode to sz.py when it detects more than 2 arguments source dir and target dir which are specified in szdiff.yml. It's default action is still to show the total line count. Also set skip_unchanged and ignore_empty in CI to true to prevent the bot from spamming.
The output format and some test commits (line changes, same lines changes to skip, no changes ignore) that I did can be found in https://github.com/g1y5x3/tinygrad/pull/2

Is this ready to go?

Is this ready to go?

I believe so, all bots behavior are tested on my own branch.

Here is the scenario that I haven't given into consideration. Whenever there is a brand new file being added or a entire file being deleted inside the directory, it is going to break sz.py since both table are going to have different row coutns.
Also @madt2709 I think the case where line diff is 0 can be some what countered if I also compute the tokens/line diff. And if both are 0 when there's still edits, I believe it would be something that's not difficult to review in the code anyway.

Here is the output from a pretty through test I did. Another sample output can be seen in https://github.com/g1y5x3/tinygrad/pull/2
Name                              Lines    Diff    Tokens/Line    Diff
------------------------------  -------  ------  -------------  ------
tinygrad/tensor.py                  526     -14           22.9    +0.5
tinygrad/lazy.py                    290      -4           17.6    +0.1
tinygrad/codegen/optimizer.py       284      -1           16.2    +0.0
tinygrad/shape/symbolic.py          284      -3           14.8    -0.0
tinygrad/shape/shapetracker.py      217     +97           17.1    +4.2
tinygrad/mlops_copy.py              147    +147           14.3   +14.3
tinygrad/helpers.py                 115      -1           15.3    -0.2
tinygrad/codegen/kernel.py           92      -2           17.1    +0.2
tinygrad/nn/__init__.py              91      -4           19.2    +0.3
tinygrad/shape/view.py                0    -118            0.0   -18.5

total lines changes: +97

@wozeparrot still trying to think what assert we could add for some output that obviously seems wrong. But it should be very unlikely now since I manually match file names.

I think it's ready @geohot @wozeparrot

merged, lets see how it works out on some prs


Won't run on an M2 MacBook Air

Simple example:
import puppeteer from<EMAIL_ADDRESS>
const args = [`--window-size=${800},${600 + 74}`]
const browser = await puppeteer.launch({ headless: true, slowMo: 50, args })
const page = await browser.newPage()
await page.goto('https://google.com')
await page.screenshot({ path: 'example.png' })

await browser.close()

When run I get the error:
% deno run -A --unstable simple.spec.js
error: Uncaught (in promise) Error: Bad CPU type in executable (os error 86)
    this.proc = Deno.run({
                     ^
    at opRun (ext:runtime/40_process.js:46:14)
    at Object.run (ext:runtime/40_process.js:132:15)
    at BrowserRunner.start (https://deno.land/x/puppeteer@16.2.0/src/deno/BrowserRunner.ts:64:22)
    at ChromeLauncher.launch (https://deno.land/x/puppeteer@16.2.0/src/deno/Launcher.ts:108:12)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async file:///Users/x/simple.spec.js:4:17

What version of Deno are you using? I remember encountering a similar error, I think deno upgrade fixed it for me.


RC2 - unable to return image/png through jax-rs

Environment Details

Helidon Version:2.0.1
Helidon MP
JDK version:11
OS:Mac

Easily reproducible. @Produces("image/png") returns with the following error when attempting to generate a BufferedImage
Caused by: org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=image/png, type=class java.awt.image.BufferedImage, genericType=class java.awt.image.BufferedImage.
In version 1.4.1, this functionality was working correctly, however now it errors.

BufferedImage is no longer a default provider - closing this issue out!

https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/message-body-workers.html#d0e7606


Add number of columns and shuffle as args

Added number of columns being pruned from metadata as an argument, alongside whether or not we want to shuffle the metadata.
Added a unit test for the new behaviour.
Tested on openai's gpt3.5/4, claude-3-opus, mistral-mediumm, gemini-pro, and api server and the results are meaningful.

Nice thanks for this! Should we also update the CLI flags section in the readme with num_columns?

Nice thanks for this! Should we also update the CLI flags section in the readme with num_columns?

Sounds good, updated all of the CLI args in the README while I was at it.


Incorrect table references GatewayDiagnosticLog

Configuration changes are audited in the GatewayDiagnosticLog table. It could take some minutes before changes you execute are reflected in the logs.
Here you have a sample query as reference.
AzureDiagnostics
| where Category == "GatewayDiagnosticLog"
| project TimeGenerated, OperationName, Message, Resource, ResourceGroup
| sort by TimeGenerated asc
I want to confirm if the GatewayDiagnosticLog table exists. It is not mentioned here: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/tables-category
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 30d31f6b-f375-d433-f010-4f52142f7327
Version Independent ID: eedc33c6-f47a-53e1-3e87-fdcc171c79cd
Content: Troubleshooting Azure VPN Gateway using diagnostic logs
Content Source: articles/vpn-gateway/troubleshoot-vpn-with-azure-diagnostics.md
Service: vpn-gateway
GitHub Login: @stegag
Microsoft Alias: stegag

@applefacts GatewayDiagnosticLog exists for a Gateway and we can confirm it.

@KapilAnanth-MSFT thank you for confirming. The confusion from my end is why it says to use the GatewayDiagnosticLog table but provide a sample query for the AzureDiagnostics table.
Here you have a sample query as reference.
AzureDiagnostics
| where Category == "GatewayDiagnosticLog"
| project TimeGenerated, OperationName, Message, Resource, ResourceGroup
| sort by TimeGenerated asc

@applefacts  I understand your concern. It appears the naming convention is resulting in such confusion.
AzureDiagnostics for VPN Gateway would be enabled in Resource-specific format.

This is how we end up with the category, "GatewayDiagnosticLog"
More details about this is given here

@KapilAnanth-MSFT please help me understand if you state it should be in resource-specific format why is data still going to the AzureDiagnostics table and not its specific table? "Category" is a column so not sure why you're relating it to a table.

Please also see this comment https://learn.microsoft.com/en-us/answers/questions/216637/how-to-enable-vpn-gateway-diagnostics and there's no instructions on how to configure the resource specific tables like GatewayDiagnosticLog on your public docs

Also the schema says this: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/azurediagnostics#azure-diagnostics-mode
The following services use Azure diagnostics mode for their resource logs and send data to the Azure Diagnostics table.
VPN Gateways

@applefacts my sincere apologies on the confusion.
Yes, you are correct. Currently, Azure VPN Gateways uses AzureDiagnostics mode and "Category" is a column in the Azure Diagnostics Table.
Now, wrt the logs being mentioned as "Table" in this document,

The "GatewayDiagnosticLog table" does not actually mean there is a table under this name
Rather, it refers to the set of logs we get by filtering with the column Category=="GatewayDiagnosticLog" in the AzureDiagnostics Table.
This is done solely for the purpose of readers understanding of grouping of logs.

Should you feel this terminology should be updated across the document, please do let me know and I shall assign this to the author, who can further review it.


Parser

Hi,
This library looks super interesting and I am thinking of using it to store information in my obsidian vault.
I am looking for a way to programmatically add information into an already existing Markdown document.
Has anyone built a compatible parser that converts existing markdown into this json structure?

I have not heard of anyone making a parser for this library yet. It sounds really useful, though.

How do you use it?

It is currently best used as a support library within a node JS program, pulling it in as a package from a package source like NPM. It has support for TypeScript in case you use that. Though, I have seen some people use it to generate documentation through github.
In the past, I was working on a web scraping project where I would read content with browser automation like Google puppeteer and then turn that into data, and then I would feed the data into this library to make markdown, either to write to files or to append to files.
I eventually finished the project, and now I keep this repo around for the people who use it.

I maintain a playground with a cookbook that shows examples: https://kgar.github.io/ts-markdown/pages/cookbook.html

Thanks! I am probably going to fork to create a parser!

That sounds awesome!

Thanks! I am probably going to fork to create a parser!

Did you do it?


added rst doc for Overview section 1.2 (including all figures) and ch…

…anged chapter ordering

All of chapter 1 is done, pending resolution to equation issues. html looks nice. PDF is a mess with figures (different learning curve here, I can try to fix), but pdf does equations labels properly. A few other issues with the pdf we should discuss/fix.

My process here was to first get the html figures (svg or png) to look ok and appropriately sized using rst figure width spec, then check the pdf. PDFs need to be cropped (using acrobat, easy) after tweaking in photoshop or illustrator.  But there's something funky about pdf sizing behavior (it is affected by the width %) where I'm not getting what it is doing; in general, would prefer to shrink some of the pdf figures more, opinions?

Not sure I'm following - doesn't width just scale the figure to be a percentage of textwidth?

We could restore some equation alignment if we got rid of unused labels.  Less than half the equations in the overview section are actually referenced anywhere in the manual.

Approve this.


Cross-Account ( profile ) Support

I am trying to migrate an existing Angular-based Mobilehub project ( Project A ) generated by me, under my account, to a Mobilehub project ( Project B ) under an Assumed Role to a different account.
I am able to create the Mobilehub project under the Assumed Role by Importing the mobile-hub-project.yml of Project A. I now have the resources provisioned for Project B
I’m able to push the Project A code to Codecommit repository in Assumed Role account using git credential-helper invoking the --profile flag
!aws codecommit credential-helper --profile MyCrossAccountAccessProfile $@"

But the cli throws an error when I try to init the code to the project id of Project B
awsmobile init <project_b_id>

failed to link to backend awsmobile project with id = project_b_id

Should the awsmobile cli support the --profile flag, or am I doing something wrong?

before you run awsmobile init, get out of any valid awsmobilejs project, and run
awsmobile configure aws --profile MyCrossAccountAccessProfile.
This sets the general aws access configuration for the awsmobile-cli, which will be used next time when you execute awsmobile init or awsmobile start.
then cd to your local project root folder, and execute:
awsmobile init <project_b_id>

Ah!  That makes way more sense that what I was trying to do.  Thanks.

I'm still not able to init the project.
I'm able to invoke AWS cli for mobile and see the projects listed in my other profile but I can't seem to init the backend.
$ aws mobile list-projects --profile MyCrossAccountAccessProfile
{
    "projects": [
        {
            "projectId": “<project_b_id>”,
            "name": “PROJEC_NAME”
        }
    ]
}

$ awsmobile configure aws --profile MyCrossAccountAccessProfile

configure aws
Setting awsmobile-cli to use named profile: MyCrossAccountAccessProfile

Done

$ awsmobile init <project_b_id>

this project's backend is currently set to be <project_a>
with mobile project id = <project_a_id>
and was initialized at 2018-05-01-17-46-04
? switch backend to awsmobile project with id = project_b_id Yes
init will now try to switch to the newly specified backend

failed to link to backend awsmobile project with id = <project_b_id>
{ NotFoundException: No such project exists : <project_b_id>
   .
   .
  message: 'No such project exists : <project_b_id>',
  code: 'NotFoundException',
 }

I also tried
$ export AWS_PROFILE=MyCrossAccountAccessProfile

per the AWS CLI docs but no luck.
my ~/.aws/config
[default]
region = us-east-1
output = json

[profile MyCrossAccountAccessProfile]
role_arn = arn:aws:iam::*****************:role/MyCrossAccountAccessProfile
region = us-east-1
source_profile = default

and ~/.aws/credentials
[default]
aws_access_key_id = MYACCESSKEYID
aws_secret_access_key = mysecretaccesskey

[MyCrossAccountAccessProfile]
aws_access_key_id = MYACCESSKEYID
aws_secret_access_key = mysecretaccesskey


feat(collections): support Iterableinput in slidingWindows()

Support Iterable for collections slidingWindows
Maintains the current sliding windows for Arrays for the empty Array case. Using the iterable version would change the output from an empty array causing the case is covered by the "slidingWindows() handles empty Array" test to fail.
Example:
slidingWindows(new Array(3), 1)

// The difference is
// [ [ <1 empty item> ], [ <1 empty item> ], [ <1 empty item> ] ]
// vs
// [ [ undefined ], [ undefined ], [ undefined ] ]

If the array specific implementation was removed, this would become a breaking change
With an infinite iterator this function would never return.
I added a maxWindows option that limits the number of windows created which would be useful to prevent that case. (maybe it should throw instead?)
However I can remove if we think a seperate take function e.g
function* take<T>(iterable: Iterable<T>, count: number): Iterable<T> {
  let i = 0;
  for (const item of iterable) {
    if (i++ >= count) {
      break;
    }
    yield item;
  }
}
function* infiniteNumbers() {
  let i = 0;
  while (true) {
    yield i++;
  }
}

slidingWindows(
  take(infiniteNumbers(), 5),
  3,
); // [ [ 0, 1, 2 ], [ 1, 2, 3 ], [ 2, 3, 4 ] ]

#5470

Failing tests seem unrelated to this change

On second thought, maxWindows is not really needed

Will make a new pr instead of modifying this one with the new approach to adding unstable apis


ListObjectsV2Response.keyCount is always null

The code snippet below returns an instance of ListObjectsV2Response with null keyCount regardless of the contents.
    final ListObjectsV2Response objectsToCopy =
        amazonS3Client.listObjectsV2(
            ListObjectsV2Request.builder().bucket(masterBucket).prefix(key).build());

https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html

Many thanks for reporting this! 👍


After a successful login with redirect the user does not get redirected back to redirectStartPage

Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.27.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.2.0
Public or Confidential Client?
Public
Description
I have an issue that is occurring quite often where users are not redirected back to the provided redirectStartPage after successfully logging in via loginWithRedirect.
It seems that the navigation client is not being invoked after the user logs in (I have log events fired in those functions, and I don't see an event being fired)
Error Message
No error message, the thing just not happens
MSAL Logs
No response
Network Trace (Preferrably Fiddler)

[ ] Sent
[ ] Pending

MSAL Configuration
msal: {
    auth: {
      clientId: "****",
      authority: "****",
      redirectUri: "****",
      knownAuthorities: ["****"],
      protocolMode: "OIDC",
    },
    scopes: {
      login: ["openid", "profile", "api.backend"],
      token: ["api.backend"],
    },
  },
};

// I have blured out thins to keep it anonymous

Relevant Code Snippets
import {
  IPublicClientApplication,
  PublicClientApplication,
} from "@azure/msal-browser";
import type { Config } from "auth/config";

export async function getMSAL(config: Config) {
  const auth = config.appConfig.msal.auth;
  const msal = new PublicClientApplication({ auth });

  return msal.initialize().then<IPublicClientApplication>(() => msal);
}

---------PROVIDER

class CustomNavigationClient extends NavigationClient {
  private appInsights: ApplicationInsights;
  private history: ReturnType<typeof useRouter>["history"];

  constructor({
    appInsights,
    history,
  }: {
    history: ReturnType<typeof useRouter>["history"];
    appInsights: ApplicationInsights;
  }) {
    super();
    this.history = history;
    this.appInsights = appInsights;
  }

  async navigateInternal(
    url: string,
    options: NavigationOptions
  ): Promise<boolean> {
    try {
      if (options.noHistory) {
        this.history.replace(url);
        this.appInsights.trackEvent({
          name: "navigation-client",
          properties: { target: url, variant: "replace" },
        });
      } else {
        this.history.push(url);
        this.appInsights.trackEvent({
          name: "navigation-client",
          properties: { target: url, variant: "push" },
        });
      }
      return false;
    } catch (e) {
      this.appInsights.trackException({
        exception: isError(e)
          ? e
          : new Error("Navigation client navigate internal fail"),
        severityLevel: SeverityLevel.Error,
      });
      throw e;
    }
  }
}

export function MSALContext({
  children,
  msal,
}: PropsWithChildren<{ msal: IPublicClientApplication }>) {
  const appInsights = useAppInsights();
  const { history } = useRouter();

  const setAuthenticatedUserContext = useCallback(
    (account: AccountInfo | null) => {
      if (account) {
        const session = createSession(account);
        appInsights.setAuthenticatedUserContext(session.patientId);
      } else {
        appInsights.clearAuthenticatedUserContext();
      }
    },
    [appInsights]
  );

  const instance = useMemo(() => {
    const result = msal;
    msal.setNavigationClient(
      new CustomNavigationClient({ appInsights, history })
    );

    /**
     * Event list
     * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/events.md
     */
    result.addEventCallback((message) => {
      const failureEvents = new Set<EventType>([EventType.LOGIN_FAILURE]);
      if (!failureEvents.has(message.eventType)) {
        return;
      }

      appInsights.trackException({
        error: message.error ?? undefined,
        exception: message.error ?? undefined,
        severityLevel: SeverityLevel.Error,
      });
    });
    result.addEventCallback((message) => {
      if (message.eventType !== EventType.LOGIN_SUCCESS) {
        return;
      }
      const payload = message.payload as AuthenticationResult;
      result.setActiveAccount(payload.account);
      setAuthenticatedUserContext(payload.account);
    });
    result.addEventCallback(({ eventType }) => {
      if (eventType !== EventType.INITIALIZE_START) {
        return;
      }
      const activeAccount = result.getActiveAccount();
      setAuthenticatedUserContext(activeAccount);
    });

    return result;
  }, [appInsights, msal, setAuthenticatedUserContext, history]);

  return <MsalProvider instance={instance}>{children}</MsalProvider>;
}

---AUthenticated wall:
export function Authenticated({
  children,
  ErrorView,
}: PropsWithChildren<AuthenticatedProps>) {
  const { error, login } = useMsalAuthentication(InteractionType.Redirect, {
    scopes,
    redirectStartPage,
    redirectUri,
  });
  const loginCallback = useCallback(() => {
    return login(InteractionType.Redirect, {
      scopes,
      redirectStartPage,
      redirectUri,
    });
  }, [login, scopes, redirectStartPage, redirectUri]);

  useEffect(() => {
    if (!error) {
      return;
    }

    appInsights.trackException({
      exception: error,
      severityLevel: SeverityLevel.Error,
    });
  }, [error, appInsights]);

  useEffect(() => {
    // Means the ID token has expired and we need to re-login
    if (error?.errorCode === "invalid_grant") {
      login();
    }
  }, [error?.errorCode, login]);

  // if Id token has expired, we don't want to show an error screen
  if (error && error.errorCode === "invalid_grant") {
    return null;
  }

  if (error) {
    return <ErrorView login={loginCallback} error={error} />;
  }

  const isReady = !!(isAuthenticated && session);

  return (
      {isReady && <>{children}</>}
  );
}

Reproduction Steps
I can't find a way to reproduce it (works on my machine)
Expected Behavior
After user logs in, I expect them to be redirected back to the url they came from.
I see this trend only on IOS safari users
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Safari
Regression
No response

I found some related issues: here with solution suggested here

I am seeing the same behavior for a PWA-based iOS app.  For my development, it is easy to reproduce this issue when TestFlight distributes a new build for Internal Testers.
After the credentials are entered by the user, a white screen appears and the application freezes - offering no possible means of navigation.  Currently, the only remedy is to completely remove and re-install the application.
Additionally if the user does not use the React/MSAL PWA-based iOS mobile app within 24 hours, MSAL will throw exceptions - instead of leveraging acquireTokenSilent for subsequent MSAL interaction.
Please advise if I need to offer more information regarding Stralos (and my) situation.


fix link to go to pod-lifecycle page

Updating the Container Probes to directly link to the correct concepts page.

This change is

@ejc3 Please make sure you sign the CLA using the same email address as your GitHub account so I can merge this PR. Thanks for your contribution!

"I signed it!"


GEOMESA-521 Remove objenesis from main pom

Excluded objenesis from kryo and removed objenesis dependency from main pom. Now is only included as a transitive dependency from specs2

:+1:

Committed as c1cd649a89c58850a9d5e06ef7f8d8e4af254efd on 1.5.


display contract addresses in sozo migrate plan

draft PR for #1908

umm looks like a git merge got messed up, can you please rebase your changes to main branch?


[Todoist] Add the label "focus" on tasks set as focus from Raycast

Extension
https://www.raycast.com/doist/todoist
Description
🧑 Story
Implement a feature where tasks marked as focus in Raycast are automatically labeled with "focus" in Todoist, ensuring users can easily identify and manage their priority tasks across both platforms.
🕵♂ Background/Context
Users often use Raycast to quickly mark tasks as focus. Syncing this status with Todoist by adding a "focus" label helps maintain consistency and improves task management efficiency. This feature enhances the user experience by providing seamless integration between the two tools.
🔨 Acceptance Criteria

Tasks set as focus in Raycast must be labeled with "focus" in Todoist.
Label must be applied automatically without manual intervention.
Existing tasks in Todoist should not be affected unless marked as focus in Raycast.

🧪 Testing Criteria

Verify that tasks marked as focus in Raycast are labeled with "focus" in Todoist.
Test edge cases where multiple tasks are marked as focus simultaneously.
Ensure no duplicate labels are created.
Validate performance and synchronization speed.

Who will benefit from this feature?
Everyone using the feature "focus".
Anything else?
No response

@raycastbot assign me

@raycastbot assign me

Thanks!


Spelling

Description

This PR corrects misspellings identified by the check-spelling action.
The misspellings have been reported at https://github.com/jsoref/doctest/commit/fa7822296205041a95e241a89fddc1047599b334#commitcomment-59485590
Typos make everything harder to understand and they make it harder for people to search for things.
The action reports that the changes in this PR would make it happy: https://github.com/jsoref/doctest/runs/4114680499?check_suite_focus=true

GitHub Issues

https://github.com/Roblox/luau/pull/119#discussion_r742898026

Thanks! I'll also rename the issues & prs referenced in the changelog as it will be regenerated at some point with the same mistakes


fix: require distinct argument and property names

Restrict the usage of datatype parameters in functions, so that
languages with keyword argument support can inline datatype parameters
into the function declaration. This means it cannot share any field
names with remaining function argument names.
Fixes #268.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Can we also annotate the method in the jsii spec that keyword arguments can be expanded?


Some extra proofs + NewType constructor docs

This is a sort of random PR with things that I added while working with Agda2HS, but I thought they might be useful to include.
It includes:

Documentation (and a test) on how to get the same constructor name in newtype as the type name
A few proofs about if_then_else_,  ++ and ||
Exports of proofs that were already there but weren't available

Great, thank you for the PR!


Ben/find 350 reach out to projects and help them with

Should I setup a mainnet admin and run them?

Yes please


how to generate new wallet?

hi,
I forgot to make a note on the words and would love to generate a new wallet, how could i do it?
thx,
fuligjimmy

I would consider a fresh setup. But you can keep the blockchain:

cash out all your funds and channels
exit to terminal - run command: ./XXcleanHDD.sh (it will keep the blockchain data)
shutdown - run command: sudo shutdown -r now
make a fresh sd card
and then follow the fresh setup

@rootzoll I didn't want to reopen a new issue for the same thing, but this was a year ago.
Is there a way to create a new wallet without cleaning the drive and a fresh raspiblitz SD build?

To reset the LND wallet check in the SSH Main Menu REPAIR > RESET-LND ... if you dont see this option, you may need to update the RaspiBlitz release. v1.5 final is now available.

Hi i received a ready 2 go raspi. I made my Lnd wallet but not an on chain one. Never asked for it.

@billgre The LND is managing both - your on-chain and off-chain funds. By default Bitcoin is just an information service on the blockchain for LND.


[MOD-1518] Add batched API for uploading files to volumes

Usage example:
vol = modal.Volume.lookup("some-vol")

with vol.batch_uploads() as batch:
  batch.add("foo.txt")
  batch.add("bar.txt", "/optional/remote/path.txt")
  batch.add("some_dir")

(We will likely eventually want similar batch APIs for removal and possibly renaming)

vol.upload([
modal.FileUpload("foo.txt", "/remote/path.txt"),
...
])

Did you consider just a dict?
vol.upload({
    "/remote/path.txt": "foo.txt",
    ....
})

alternatively a list of tuples could work
Additionally, I think we should support file-like values of this dict in case you pass it a file stream (it's something like io.BufferedIOBase but I don't quite remember)

@erikbern I think what it boils down to is if we want to stay somewhat consistent with the API for NetworkFileSystem (and Mount, to a lesser extent). If we don't, then we have a more options.
NetworkFileSystem (and Mount) has behaviour that is odd to replicate in some APIs, e.g. add_local_file("/foo/bar/baz.txt") will upload the file to /baz.txt, without having to specify the remote path.

I don't necessarily think that's great though, probably better to be explicit?
Replicating ^ in a dict-based API gets really weird.

 Adds a type that's gonna pollute documentation but at least you don't have to import it

Additionally, I think we should support file-like values as well as paths (it's something like io.BufferedIOBase but I don't quite remember). It's always annoying when a library only takes file paths and you have some content in the process you have to flush to a temporary file

:+1:
This is an argument against a more limiting dict- or list-based API. If you support file-like values you're quickly going to run into cases where you want to specify mode as well, which would make a dict-based API really clunky.
I.e. you're going to want to do things like this:
with vol.batch_uploads() as batch:
    batch.add(my_file_like_obj, "/remote", mode=0o755)
    ...

This is an argument against a more limiting dict- or list-based API. If you support file-like values you're quickly going to run into cases where you want to specify mode as well, which would make a dict-based API really clunky.

Would it be fine to support mode as an argument for all the files? I.e.
vol.put(["foo.txt", "bar.mp3"], mode=0o755)

(and same with remote path). It's a theoretical limitation but I don't know if it's super critical to support batch uploading and have different file permissions or different remote directories?

Would it be fine to support mode as an argument for all the files? I.e.
vol.put(["foo.txt", "bar.mp3"], mode=0o755)

Might be inconvenient for edge cases but yeah that would work.
A bit of a weird API IMO, but we're in yak shaving territory here :shrug:

(and same with remote path).

Doesn't work well file file-like objects - the name needs to be explicit for file-like objects since we cannot derive it from a local path. At a minimum we need a dict-style API for supporting file like objects:
vol.put({"/remote/path.txt": file_like, "/foo.txt": "foo.txt"})

(and if we ever need it, we could always support a list argument for mode – i.e. if its an int then it applies to all files, but if it's a list then it's zipped with the local files. but this feels quite non-v0)

Maybe it's just me, but I think that would be a terrible API.
I'm leaning context manager at the moment - feels like that results in a more usable and intuitive API to me, and it allows us to remain somewhat consistent with NetworkFileSystem and Mount.

I'm leaning context manager at the moment - feels like that results in a more usable and intuitive API to me, and it allows us to remain somewhat consistent with NetworkFileSystem and Mount.

Sounds good! I think the context manager approach feels pretty intuitive for batching. We can revisit the API in the future if/when we support low-cost incremental changes.

Looks like a big improvement, just had some thoughts on the API.

Thanks for the review @ekzhang ! Only reason for current naming and APIs was to try to stay consistent with already existing APIs.
Good names are nice of course, but as is consistency - so I'm torn.
Happy to change things around though - though I might wait for someone else to chime in as well.

I added some analysis / thoughts in a notion doc here: https://www.notion.so/modal-com/Volume-file-transfer-API-design-77a359585e1e45eca15f56777038de01?pvs=4
Main takeaways are that

I think there is value in using similar verbs for the CLI and object methods
I agree that within symmetric operations (i.e. read/write, get/put, we should try to accept the same types
I also like the context manager approach to batched operations a lot!

That said I'm sure I'm missing some things and haven't been thinking about this for as long as y'all so very open to feedback!


circe-java8  for Scala 2.13

I have updated to 0.12.0-M3 but it seems like circe-java8 only reached 0.12.0-M1 for Scala 2.13.0-RC1. Maybe a small oversight in updating the library? Last reference  to this module is in https://github.com/circe/circe/issues/975 but that seems to be solved.
TIA.

Please see the 0.12.0-M3 release notes for an explanation of why we're no longer publishing circe-java8. You should be able to migrate simply by removing the dependency and imports, unless you are referring to the instances explicitly, in which case you'll need to replace io.circe.java8.X with Decoder.X or Encoder.X as appropriate. If you run into other issues with the migration, please let us know.

Thank you for the information. Will do.


Release 1.0.0-preview.1

Initial release. Please review the entire codebase. We can create additional PRs if needed.
cc @mkobaly

Gave it a quick read, will go back through it tomorrow also.  This API caught my eye:
public void Sign(ReadOnlyMemory<byte> message, Memory<byte> signature)

Do you think it would be more natural to instead have it return the signature?
public Memory<byte> Sign(ReadOnlyMemory<byte> message)

Gave it a quick read, will go back through it tomorrow also. This API caught my eye:
public void Sign(ReadOnlyMemory<byte> message, Memory<byte> signature)

Do you think it would be more natural to instead have it return the signature?
public Memory<byte> Sign(ReadOnlyMemory<byte> message)

the intention is to avoid memory allocations or at least give the opportunity to do so. in the future if we can update the underlying ed25519 functions we can also introduce Span versions as well.


Fixed issue where base class compare fails for class name with underscore

I've added a new test in BeStringUtilities that is testing the core reason for this bug.
It's currently failing so I've added it to the ignore list with the appropriate explanation.


Quick search: flicker when typing

It seems to me that when I type, all results go away and are replaced with the find result, resulting in flicker:

I wonder if, given that we are making the query more specific, we can just filter what we have existing.

I think that is what we do with quick open (file search).


Fix/unqiue handle comparison

Codecov Report

Merging #4 (4efa6ad) into development (6824da1) will not change coverage.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##           development        #4   +/-   ##
=============================================
  Coverage       100.00%   100.00%
=============================================
  Files                6         6
  Lines              416       425    +9
=============================================
+ Hits               416       425    +9

Impacted Files
Coverage Δ

include/Simple-Utility/unique_handle.hpp
100.00% <ø> (ø)

tests/unique_handle.cpp
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6824da1...4efa6ad. Read the comment docs.


User should not specify more than 5 DNS nameservers per subnet

The default max_dns_nameservers for neutron is 5, so using less than 5 DNS namesservers per subnet can avoid the exception DNSNameServersExhausted.
Closes-Bug: 2039403

/canonical/self-hosted-runners/run-workflows c416de68b152d18cbce37211fe9c1efec6853723

This is my self test result after applying this fix on stsstack (stsstack has more than 5 dns servers), it has already avoided the exception DNSNameServersExhausted - https://paste.ubuntu.com/p/YPPRJdyQSn/

/canonical/self-hosted-runners/run-workflows cd47205f69c1e1fcf9e7bfcbc4a0292e1714e5fb

@zhhuabj Can you sign the commits

/canonical/self-hosted-runners/run-workflows https://github.com/canonical/snap-openstack/commit/cd47205f69c1e1fcf9e7bfcbc4a0292e1714e5fb

/canonical/self-hosted-runners/run-workflows ef724c90713f45c5a4b92367938470ec96024ea9

Thank you for your work @zhhuabj!


Issue regarding time picker

I have used datetimepicker with the option timepicker: false still, it shows me time picker but it's disabled so my main doubt is why it appears after selecting a date? Is there any way to hide the time picker and just show date picker.
here is my code,
$('#date-p').datetimepicker({
 format: 'dd/mm/yyyy',
 footer: true,
 modal: true ,
 timepicker: false,
 });

try just using
$('#date-p').datepicker({
 format: 'dd/mm/yyyy',
 footer: true,
 modal: true ,
 });


Is it possible to convert a script with pandas_profiling to executable using pyinstaller?

Missing functionality
I have been writing a very simple tkinter application reading a csv and running pandas profiling.  I couldn't convert my application  to windows executable using pyinstaller. Is it possible for you to share  .spec file which is working ?  I have already tried to write mine without success. My intention is to share pandas_profiling withouth necessarily asking people to install python.
The spec that I tried is below. Here I include extra packages like zmq because the error I get seemed related. But frankly I am not sure if I am on the right track.
Thanks,
main spec
block_cipher = None
import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5)
import zmq
a = Analysis(['main.py'],
pathex=['/venv/Lib/site-packages', 'C:\Working\git\rds_ui', '/venv/Lib/site-packages/zmq'],
binaries=[],
datas=[],
#hiddenimports=[zmq.backend,zmq.backend.cython, zmq.backend.cffi, zmq.error, zmq.sugar, zmq.utils],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
a.datas += Tree('./venv/Lib/site-packages/pandas_profiling', prefix='pandas_profiling')
a.datas += Tree('./venv/Lib/site-packages/pandas_profiling/report/presentation/flavours/html/templates/', '.')
a.datas += Tree('./venv/Lib/site-packages/pandas_profiling/visualisation/', '.')
a.datas += Tree('./venv/Lib/site-packages/zmq', '.')
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True )

Which error are you getting? Which version are you using?
Happy to support compatibility with pyinstaller if we discover the issue.
(related issues: https://github.com/pandas-profiling/pandas-profiling/pull/175 and https://github.com/pandas-profiling/pandas-profiling/issues/246)

Thank you so much for such a quick reply. I would really appreciate your help. I don't know if there is anybody tried this earlier but I suspect it might be a general issue for different Python and pandas_profiling versions somehow. Is there  any spec which worked before?
My setup and error is as following:
My Python version: 3.6.5
My pandas_profiling version:  2.10.1
I was  getting a bunch of different errors. I kept trying different specs. The latest I get (with the spec from above) is:

@ahmetbaglan pyzmq should not be dependency for this package.
I'd recommend asking on stackoverflow (tag pyinstaller) to have higher chances of getting your question answered: https://stackoverflow.com/questions/tagged/pandas-profiling.
Again, feel free to create a PR once you've found the solution.

Which error are you getting? Which version are you using? Happy to support compatibility with pyinstaller if we discover the issue.
(related issues: #175 and #246)

Hello, not OP but I'm having issues as well.
At the moment I am using auto-py-to-exe to build an exe that automatically runs pandas-profiler but apparently I can't build the exe due to the error in the image below. This error appears in the console right before it shuts and I have no idea what to do, I've searched everywhere and tried every solution possible and still I couldn't figure it out.
Any idea on what to do?
I also tried using Python 3.7 and using cx_freeze instead of PyInstaller but I couldn't manage to get it working...