Image.network() doesn't show some images on the web but works on android.

After latest update I'm unable to show some network images on the web platform. Everything works just fine on Android.
This is  error message:
════════════════════Exception caught by image resource service ════════════════════════════
The following ProgressEvent$ object was thrown resolving an image codec:
[object ProgressEvent]
When the exception was thrown, this was the stack
Image provider: NetworkImage("https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/yahts%2Fyaht.png?alt=media&token=dc4c2a5f-655c-4317-be80-68d6580c5a99", scale: 1)
Image key: NetworkImage("https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/yahts%2Fyaht.png?alt=media&token=dc4c2a5f-655c-4317-be80-68d6580c5a99", scale: 1)
═════════════════════════════════════════════════════════════════════════════
flutter doctor -v
[✓] Flutter (Channel dev, 1.26.0-1.0.pre, on macOS 11.1 20C69 darwin-x64, locale en-US)
• Flutter version 1.26.0-1.0.pre at /Users/antonkuznetsov/development/tools/flutter
• Framework revision 63062a6443 (2 weeks ago), 2020-12-13 23:19:13 +0800
• Engine revision 4797b06652
• Dart version 2.12.0 (build 2.12.0-141.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/antonkuznetsov/Library/Android/sdk
• Platform android-30, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.10.0.rc.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.0
[✓] Connected device (2 available)
• Pixel 5 (mobile) • 0A211FDD4006JF • android-arm64  • Android 11 (API 30)
• Chrome (web)     • chrome         • web-javascript • Google Chrome 87.0.4280.88
• No issues found!

I was able to open this image on the web platform:
https://images.pexels.com/photos/462118/pexels-photo-462118.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500
But I couldn't opent any images stored in the firebase storage I was able to open before update:
https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/yahts%2Fyaht.png?alt=media&token=dc4c2a5f-655c-4317-be80-68d6580c5a99
I tried also this one it's a gif from the example on flutter.dev and it's same error:
https://github.com/flutter/plugins/raw/master/packages/video_player/video_player/doc/demo_ipod.gif?raw=true

Hi @antakuznet
Can you please provide a minimal complete reproducible code sample?
Thank you

Hi @pedromassangocode
Thank you for the reply. Here is my code:
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Test Image',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Test Image'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(
'https://images.pexels.com/photos/462118/pexels-photo-462118.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
width: 100,
height: 100,
),
Image.network(
'https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/jets%2Fjetski.png?alt=media&token=f93b2680-6f03-4ba1-b1f5-17beb0df6648',
width: 100,
height: 100,
),
Image.network(
'https://github.com/flutter/plugins/raw/master/packages/video_player/video_player/doc/demo_ipod.gif?raw=true',
width: 100,
height: 100,
),
],
),
),
);
}
}

`import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Test Image',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Test Image'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(
'https://images.pexels.com/photos/462118/pexels-photo-462118.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
width: 100,
height: 100,
),
Image.network(
'https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/jets%2Fjetski.png?alt=media&token=f93b2680-6f03-4ba1-b1f5-17beb0df6648',
width: 100,
height: 100,
),
Image.network(
'https://github.com/flutter/plugins/raw/master/packages/video_player/video_player/doc/demo_ipod.gif?raw=true',
width: 100,
height: 100,
),
],
),
),
);
}
}
`

This is what I got:

And errors:
[object ProgressEvent]
When the exception was thrown, this was the stack
Image provider: NetworkImage("https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/jets%2Fjetski.png?alt=media&token=f93b2680-6f03-4ba1-b1f5-17beb0df6648", scale: 1)
Image key: NetworkImage("https://firebasestorage.googleapis.com/v0/b/jetsea.appspot.com/o/jets%2Fjetski.png?alt=media&token=f93b2680-6f03-4ba1-b1f5-17beb0df6648", scale: 1)
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by image resource service ════════════════════════════
[object ProgressEvent]
════════════════════════════════════════════════════════════════════════════════

Hi @antakuznet
I cannot reproduce this issue either in dev nor master channel.

flutter doctor
[✓] Flutter (Channel dev, 1.26.0-1.0.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.26.0-1.0.pre at /Users/pedromassango/dev/SDKs/flutter_dev
    • Framework revision 63062a6443 (3 weeks ago), 2020-12-13 23:19:13 +0800
    • Engine revision 4797b06652
    • Dart version 2.12.0 (build 2.12.0-141.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.1)
    • 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 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.1.5
    • Dart plugin version 203.5981.152

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

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 1EEFA5B2-DA95-49CC-AA0B-968BB248B8F3 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 87.0.4280.88

• No issues found!
Process finished with exit code 0

I'm also experiencing this error accessing images stored in MS Azure Blob storage.

I also saw this false behavior in Chrome (web-javascript) but it was always working on an Android device.
This bug is only seen after "git pull" my project on a different Computer.
After "flutter clean" everything works as expected again.

I also saw this false behavior in Chrome (web-javascript) but it was always working on an Android device.
This bug is only seen after "git pull" my project on a different Computer.
After "flutter clean" everything works as expected again.

I am also facing this issue when trying to load my youtube videos' thumbnail images using youtube data API, the images load on the emulator but not chrome.

I am also facing this issue when trying to load my youtube videos' thumbnail images using youtube data API, the images load on the emulator but not chrome.

Having the same issue. I'm on beta channel.
════════ Exception caught by image resource service ════════════════════════════
The following ProgressEvent$ object was thrown resolving an image codec:
  [object ProgressEvent]

When the exception was thrown, this was the stack
Image provider: NetworkImage("https://github.com/Imgkl/FlikiPedia/blob/master/implementation.png", scale: 1)
Image key: NetworkImage("https://github.com/Imgkl/FlikiPedia/blob/master/implementation.png", scale: 1)
════════════════════════════════════════════════════════════════════════════════

code:
class FlikipediaApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Image.network(
      "https://github.com/Imgkl/FlikiPedia/blob/master/implementation.png",
      height: 500,
      fit: BoxFit.contain,
    );
  }
}

Flutter doctor:
gokul@Kirans-MacBook-Pro-3 Imgkl.github.io % flutter devices
1 connected device:

Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.141

• Error: Gokul’s iPhone is not connected. Xcode will continue when Gokul’s iPhone is connected. (code -13)
gokul@Kirans-MacBook-Pro-3 Imgkl.github.io % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.25.0-8.3.pre, on macOS 11.1 20C69 darwin-x64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (1 available)
    ! Error: Gokul’s iPhone is busy: Waiting for Device. Xcode will continue when Gokul’s iPhone is finished. (code -10)

• No issues found!

Having the same issue. I'm on beta channel.
════════ Exception caught by image resource service ════════════════════════════
The following ProgressEvent$ object was thrown resolving an image codec:
  [object ProgressEvent]

When the exception was thrown, this was the stack
Image provider: NetworkImage("https://github.com/Imgkl/FlikiPedia/blob/master/implementation.png", scale: 1)
Image key: NetworkImage("https://github.com/Imgkl/FlikiPedia/blob/master/implementation.png", scale: 1)
════════════════════════════════════════════════════════════════════════════════

code:
class FlikipediaApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Image.network(
      "https://github.com/Imgkl/FlikiPedia/blob/master/implementation.png",
      height: 500,
      fit: BoxFit.contain,
    );
  }
}

Flutter doctor:
gokul@Kirans-MacBook-Pro-3 Imgkl.github.io % flutter devices
1 connected device:

Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.141

• Error: Gokul’s iPhone is not connected. Xcode will continue when Gokul’s iPhone is connected. (code -13)
gokul@Kirans-MacBook-Pro-3 Imgkl.github.io % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.25.0-8.3.pre, on macOS 11.1 20C69 darwin-x64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (1 available)
    ! Error: Gokul’s iPhone is busy: Waiting for Device. Xcode will continue when Gokul’s iPhone is finished. (code -10)

• No issues found!

I would like to confirm that running flutter run solves the issue for me. Very strange.

I would like to confirm that running flutter run solves the issue for me. Very strange.

To future readers,
It appears that this issue seems to be specific to VS Code.  Run the app, through the terminal with the command flutter run. Everything seems to be working fine.

Hot restart, enter r
Hot reload, enter R

To future readers,
It appears that this issue seems to be specific to VS Code.  Run the app, through the terminal with the command flutter run. Everything seems to be working fine.

Hot restart, enter r
Hot reload, enter R

Why is this issue not yet resolved?

I'm also having this issue, any solution?

I am having same issue
Another exception was thrown: ImageCodecException: Failed to load network image.

I also face this issue i don't know why
When the exception was thrown, this was the stack
Image provider: NetworkImage("https://firebasestorage.googleapis.com/v0/b/flutterprojectapp.appspot.com/o/Categogyimage%2F2021-02-16 13%3A49%3A04.707?alt=media&token=7db9d42f-1db8-4250-bf69-e21421956572", scale: 1)
Image key: NetworkImage("https://firebasestorage.googleapis.com/v0/b/flutterprojectapp.appspot.com/o/Categogyimage%2F2021-02-16 13%3A49%3A04.707?alt=media&token=7db9d42f-1db8-4250-bf69-e21421956572", scale: 1)
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by image resource service ════════════════════════════
[object ProgressEvent]
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by image resource service ════════════════════════════
[object ProgressEvent]
═══════════════════════════

Same for me with Firebase Image or AWS S3 The following ImageCodecException was thrown resolving an image codec:
Failed to load network image.
Image URL: https://layouceferie.s3.eu-west-2.amazonaws.com/feminity.png
Trying to load an image from another domain? Find answers at:
https://flutter.dev/docs/development/platform-integration/web-images
When the exception was thrown, this was the stack
Image provider: NetworkImage("https://layouceferie.s3.eu-west-2.amazonaws.com/feminity.png", scale: 1)
Image key: NetworkImage("https://layouceferie.s3.eu-west-2.amazonaws.com/feminity.png", scale: 1)

Same problem for me ? any update for this issue ?

Could anyone facing this issue provide flutter doctor -v, a minimal code sample that reproduce the issue along with the steps to reproduce it?
Thank you

In my case I solved issues with network images from firebase storage by setting up CORS on a bucket with files. The best way to set it up is to  create .json file with config:
[
{
"origin": ["*"],
"method": ["GET", "POST"],
"responseHeader": ["Content-Type", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers"],
"maxAgeSeconds": 7200
}
]
and then use gsutil to set it up:
gsutil cors set 'path to .json' 'bucket'
It solved problems with all images from my firebase storage. Also you can limit access to the files by specifying allowed "origin" in the .json file.

I have the same issue please help 😕

If this is a VSCode bug please file it in Dart-Code repo.
Issue filed here: https://github.com/Dart-Code/Dart-Code/issues/3176

The last few comments look like https://github.com/flutter/flutter/issues/73327 to me, which is a CORS issue. It might be affected by the web renderer being used (which might cause it to occur from VS Code but not from the terminal if you're not passing the same web-renderer.. VS Code passes --web-renderer=auto by default) (see https://github.com/flutter/flutter/issues/73327).

I'm also facing this issue. Can't load any images, not firebase or any other hosted image.
Tried running through terminal as suggested and still the same problem.

yup me too!

I use Firebase Storage and also faced this issue. I've resolved it by setting CORS configuration for my Cloud Storage bucket, as @antakuznet wrote above. See also https://firebase.google.com/docs/storage/web/download-files#cors_configuration for details.

This would be a fix when you have control over your image server or cdn.
What if we dont have access to the server. I think it should be done in flutter?
Tho flutter run -d chrome --web-renderer html works but not with canvaskit.

↑I really am confused to be mentioned my issue.
How do I erase that?

To future readers,
It appears that this issue seems to be specific to VS Code. Run the app, through the terminal with the command flutter run. Everything seems to be working fine.
* Hot restart, enter `r`

* Hot reload, enter `R`

This did the trick

Could anyone facing this issue provide flutter doctor -v, a minimal code sample that reproduce the issue along with the steps to reproduce it?
Thank you

Same issue I faced today:
flutter doctor -v :
[√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19041.867], locale en-IN)
• Flutter version 2.0.2 at C:\Program Files\flutter
• Framework revision 8962f6dc68 (13 days ago), 2021-03-11 13:22:20 -0800
• Engine revision 5d8bf811b3
• Dart version 2.12.1
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Samarjeet\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• 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 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.54.3)
• VS Code at C:\Users\Samarjeet\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.20.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
• Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.57
• No issues found!
code sample:
Container(
child:
Image.network(imagepath, width: double.infinity),
),

This solution work for me 🥇
https://github.com/LunaGao/flag_flutter/issues/49#issuecomment-803008314

I got this error in Android Studio as well.  Can you examine it and provide a better solution.

It is because canvaskit needs proper CORS policy. So if you want to use canvaskit you can't load content from servers that do not let for that. If server is your you can configure proper CORS. When you use --web-renderer html browser do not use CORS policy.
I would like to use canvaskit but the only way I found is to use own server as proxy for loading these files

It is because canvaskit needs proper CORS policy. So if you want to use canvaskit you can't load content from servers that do not let for that. If server is your you can configure proper CORS. When you use --web-renderer html browser do not use CORS policy.
I would like to use canvaskit but the only way I found is to use own server as proxy for loading these files

I can't confirm that. My images are hosted in the Google Cloud (Firebase Storage) which I configured to allow all origins.

Mhhh for me after adding CORS it was fixed, for external things I need to use CORS proxy
https://flutter.dev/docs/development/platform-integration/web-images

Use HTML renderer
flutter run -d chrome --web-renderer html
This is working for me you can click  the link below to know more about it


How to fix TypeError: expected 1D vector for x

The problem seems to be the x value in simple_diamitizer.py. I'm not sure which extra value is required for the vector or maybe a different approach is needed to fix the bug based on the intent of the developers in their design. Any help will be greatly appreciated.
Cell In[1], line 11, in run(output_dir, data_dir)
      9 """Run the example for extracting inputs for synthesis."""
     10 # Generate distribution from directory of neurons
---> 11 distr = extract_input.distributions(
     12     data_dir , "neurons", feature="path_distances", diameter_model="default"
     13 )
     15 # Save distributions in a json file
     16 with open(output_dir / "test_distr.json", "w", encoding="utf-8") as f:

File ~\anaconda3\lib\site-packages\neurots\extract_input\input_distributions.py:102, in distributions(filepath, neurite_types, threshold_sec, diameter_input_morph, feature, diameter_model)
    100     input_distributions["diameter"] = {}
    101     input_distributions["diameter"]["method"] = "default"
--> 102     input_distributions["diameter"]["diameter"] = build_diameter_models(
    103         morphology, config={"models": ["simpler"], "neurite_types": neurite_types}
    104     )
    105 else:
    106     raise NotImplementedError(f"Diameter model {diameter_model} not understood")

File ~\anaconda3\lib\site-packages\diameter_synthesis\build_models.py:82, in build(morphologies, config, with_data)
     71 """Build a model from a set of morphologies and a config file.
     72
     73 Args:
   (...)
     79     dict: parameter of the models (and possibly the data extracted if `with_data==True`).
     80 """
     81 all_models = _get_model_builder(config)
---> 82 models_params, models_data = all_models[config["models"][0]](morphologies, config)
     83 if with_data:
     84     return models_params, models_data

File ~\anaconda3\lib\site-packages\diameter_synthesis\simpler_diametrizer.py:68, in build_simpler_model(morphologies, config, fit_orders)
     65     all_lengths[neurite_type] = lengths.tolist()
     66     all_diams[neurite_type] += diams.tolist()
---> 68 p, extra = Polynomial.fit(
     69     all_lengths[neurite_type],
     70     all_diams[neurite_type],
     71     fit_orders[neurite_type],
     72     full=True,
     73 )
     74 residues[neurite_type] = float(extra[0][0])
     75 coeffs[neurite_type] = p.convert().coef.tolist()

File ~\anaconda3\lib\site-packages\numpy\polynomial\_polybase.py:980, in ABCPolyBase.fit(cls, x, y, deg, domain, rcond, full, w, window)
    977     window = cls.window
    979 xnew = pu.mapdomain(x, domain, window)
--> 980 res = cls._fit(xnew, y, deg, w=w, rcond=rcond, full=full)
    981 if full:
    982     [coef, status] = res

File ~\anaconda3\lib\site-packages\numpy\polynomial\polynomial.py:1362, in polyfit(x, y, deg, rcond, full, w)
   1214 def polyfit(x, y, deg, rcond=None, full=False, w=None):
   1215     """
   1216     Least-squares fit of a polynomial to data.
   1217
   (...)
   1360
   1361     """
-> 1362     return pu._fit(polyvander, x, y, deg, rcond, full, w)

File ~\anaconda3\lib\site-packages\numpy\polynomial\polyutils.py:616, in _fit(vander_f, x, y, deg, rcond, full, w)
    614     raise ValueError("expected deg >= 0")
    615 if x.ndim != 1:
--> 616     raise TypeError("expected 1D vector for x")
    617 if x.size == 0:
    618     raise TypeError("expected non-empty vector for x")

TypeError: expected 1D vector for x

Could you specify which versions do you use for NeuroTS, TMD, diameter-synthesis and Numpy please?

NeuroTS==3.3.1, TMD==2.2.0, diameter-synthesis==0.5.3 and numpy==1.23.5

Did you edit the files?
There are weird things in your backtrace...
For example, data_dir , "neurons" in the line 12 of
---> 11 distr = extract_input.distributions(
     12     data_dir , "neurons", feature="path_distances", diameter_model="default"
     13 )

should be data_dir / "neurons".
And the line 65 of diameter_synthesis\simpler_diametrizer.py should be:
all_lengths[neurite_type] += lengths.tolist()

(+= instead of =)

I got an error when I put "/" and I thought it must have been an error. So I put a comma instead which resolved the error. I forgot what the name of the error but the exception I got indicated that it was that after I had run the code.
I also changed how the path is put into the run function. I'm sorry for being unable to provide the name of the errors but I just put the string fo the path instead of calling the function Path() which resloved that error also. I can't recall from memeory whether the type of error it was, was related to it or not.
In all_lengths[neurite_type] += lengths.tolist() in the source code on my pc it looked like this all_lengths[neurite_type] /= lengths.tolist() . So I removed the "/" as I thought it was a mistake made. I didn't realize it was "+=" .
There were other things I changed as well but don't know in which .py file. The other were problem with the if statements were if neurite_types = None then it would add a list of two strings in the form of a list of types of dendrites. For some reason it was still None which I think was because of there being two if conditions "on top of each other" in a single if statement. If that makes sense.
Maybe the issue as to why the source code of these packages in regards to errors may be different or why I get errors could be because I installed it via pip? Idk but I hope this helps.

I suggest we try to solve your issue on the current code because I can't help you on your modified version of the code.
1st step: does the command python extract_synthesis_inputs.py works for you when run from the neurots/examples directory? If it does not, what is the error? If it does, what do you want to achieve exactly and how did you try to do it?
Anyway, the best would be to provide a minimal working example of your issue, so I can reproduce it on my side and try to understand it.

Thank you for the advice here's a sample of my code:
'''
import json
from pathlib import Path
import neurots
from neurots import extract_input
def run(output_dir, data_dir):
"""Run the example for extracting inputs for synthesis."""
# Generate distribution from directory of neurons
distr = extract_input.distributions(
data_dir , "neurons", feature="path_distances", diameter_model="default"
)
if name == "main":
result_dir = Path("results_extract_synthesis_inputs")
result_dir.mkdir(parents=True, exist_ok=True)
run(result_dir, "C:\\Users\\user\Documents\\Experiment_01\\Data\Human\\Neocortex_interneurons")
print("DONE!")

'''
Thank you again for sharing advice on how to properly ask a debugging question. Sorry for the hassle.

Here's a sample of the code:
''
import json
from pathlib import Path
import neurots
from neurots import extract_input
def run(output_dir, data_dir):
"""Run the example for extracting inputs for synthesis."""
# Generate distribution from directory of neurons
distr = extract_input.distributions(
data_dir , "neurons", feature="path_distances", diameter_model="default"
)
if name == "main":
result_dir = Path("results_extract_synthesis_inputs")
result_dir.mkdir(parents=True, exist_ok=True)
run(result_dir, "C:\\Users\\user\Documents\\Experiment_01\\Data\Human\\Neocortex_interneurons")
print("DONE!")

'''

Sorry, having a bit of brain fog and didn't read your question properly. I can't run the code from directory. I can only run it from jupyter notebooks. I had a seperate error that occured when running it in any other way besides jupyter notebook. I got an UnboundLocal error each time I did and I had to use jupyter notebook to resolve it.

Here also is the source code of build_models.py
"""Construct diameter models from cells."""

# Copyright (C) 2021  Blue Brain Project, EPFL
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

import logging
from functools import partial

from neurom import NeuriteType

import diameter_synthesis.morph_functions as morph_funcs
from diameter_synthesis.distribution_fitting import fit_distribution
from diameter_synthesis.exception import DiameterSynthesisError
from diameter_synthesis.simpler_diametrizer import build_simpler_model

L = logging.getLogger(__name__)

def _get_model_builder(config):
    """Get the diameter model builder.

    Args:
        config (dict): configuration dictionary.

    Returns:
        dict: dictionary of models.
    """
    all_models = {}
    for model in config["models"]:
        if model == "simpler":
            all_models[model] = build_simpler_model
        else:
            if model == "generic":
                distribution_types = {
                    "sibling_ratios": ["expon_rev", None],
                    "diameter_power_relation": ["exponnorm", None],
                    "terminal_diameters": ["exponnorm", None],
                    "trunk_diameters": ["exponnorm", None],
                    "trunk_diameters_method": "last",
                    "tapers": ["expon_rev", None],
                }
            elif model == "astrocyte":
                distribution_types = {
                    "sibling_ratios": ["expon_rev", None],
                    "diameter_power_relation": ["exponnorm", None],
                    "terminal_diameters": ["exponnorm", None],
                    "trunk_diameters_method": "mean",
                    "trunk_diameters": ["exponnorm", None],
                    "tapers": ["exponnorm", None],
                }
            else:
                raise DiameterSynthesisError(f"model not understood {model}")

            all_models[model] = partial(build_single_model, distribution_types)
    return all_models

def build(morphologies, config, with_data=False):
    """Build a model from a set of morphologies and a config file.

    Args:
        morphologies (dict): dictionary of morphologies.
        config (dict): configuration dictionary.
        with_data (bool): if set to True, the model data are also returned.

    Returns:
        dict: parameter of the models (and possibly the data extracted if `with_data==True`).
    """
    all_models = _get_model_builder(config)
    models_params, models_data = all_models[config["models"][0]](morphologies, config)
    if with_data:
        return models_params, models_data
    return models_params

def build_single_model(sampling_model, morphologies, config):
    """Build a single model.

    Args:
        sampling_model (dict): parameters for model building.
        morphologies (dict): dictionary of morphologies.
        config (dict): configuration dictionary.

    Returns:
        dict: parameter of the models data extracted.
    """
    all_data = extract_parameters(sampling_model, morphologies, config)
    all_models = fit_all_models(all_data, sampling_model, config)
    return all_models, all_data

def extract_parameters(sampling_model, morphologies, config):
    """Extract parameters from neurites to then use for model building.

    Args:
        sampling_model (dict): parameters for model building.
        morphologies (dict): dictionary of morphologies.
        config (dict): configuration dictionary.

    Returns:
        dict: data extracted.
    """
    all_data = {
        "sibling_ratios": {},
        "diameter_power_relation": {},
        "terminal_diameters": {},
        "trunk_diameters": {},
        "tapers": {},
    }

    for neurite_type in config["neurite_types"]:
        all_data["sibling_ratios"][neurite_type] = []
        all_data["diameter_power_relation"][neurite_type] = []
        all_data["terminal_diameters"][neurite_type] = []
        all_data["trunk_diameters"][neurite_type] = []
        all_data["tapers"][neurite_type] = []

        def _float(data):
            return [float(d) for d in data]

        for neuron in morphologies:
            for neurite in neuron.neurites:
                if neurite.type == getattr(NeuriteType, neurite_type):
                    all_data["sibling_ratios"][neurite_type] += _float(
                        morph_funcs.compute_sibling_ratios(
                            neurite, attribute_name=sampling_model["sibling_ratios"][1]
                        )
                    )
                    all_data["diameter_power_relation"][neurite_type] += _float(
                        morph_funcs.compute_diameter_power_relation(
                            neurite,
                            attribute_name=sampling_model["diameter_power_relation"][1],
                        )
                    )
                    all_data["terminal_diameters"][neurite_type] += _float(
                        morph_funcs.terminal_diameters(
                            neurite,
                            threshold=config["terminal_threshold"],
                            attribute_name=sampling_model["terminal_diameters"][1],
                        )
                    )
                    all_data["trunk_diameters"][neurite_type] += _float(
                        morph_funcs.trunk_diameter(
                            neurite,
                            attribute_name=sampling_model["trunk_diameters"][1],
                            method=sampling_model["trunk_diameters_method"],
                        )
                    )
                    all_data["tapers"][neurite_type] += _float(
                        morph_funcs.taper(
                            neurite,
                            params=config["taper"],
                            attribute_name=sampling_model["tapers"][1],
                        )
                    )
    return all_data

def fit_all_models(all_data, sampling_model, config):
    """Fit the parameters to get models.

    Args:
        all_data (dict): parameters to fit.
        sampling_model (dict): parameters for model building.
        config (dict): configuration dictionary.

    Returns:
        dict: models.
    """
    all_models = {
        "sibling_ratios": {},
        "diameter_power_relation": {},
        "terminal_diameters": {},
        "trunk_diameters": {},
        "tapers": {},
    }

    extra_params = config.copy()
    for neurite_type in config["neurite_types"]:

        extra_params["neurite_type"] = neurite_type
        extra_params["name"] = "sibling_ratios"
        all_models["sibling_ratios"][neurite_type] = fit_model(
            sampling_model["sibling_ratios"],
            all_data["sibling_ratios"][neurite_type],
            extra_params,
        )

        extra_params["name"] = "diameter_power_relation"
        all_models["diameter_power_relation"][neurite_type] = fit_model(
            sampling_model["diameter_power_relation"],
            all_data["diameter_power_relation"][neurite_type],
            extra_params,
        )

        extra_params["name"] = "terminal_diameter"
        all_models["terminal_diameters"][neurite_type] = fit_model(
            sampling_model["terminal_diameters"],
            all_data["terminal_diameters"][neurite_type],
            extra_params,
        )

        extra_params["name"] = "trunk_diameters"
        all_models["trunk_diameters"][neurite_type] = fit_model(
            sampling_model["trunk_diameters"],
            all_data["trunk_diameters"][neurite_type],
            extra_params,
        )

        extra_params["name"] = "tapers"
        all_models["tapers"][neurite_type] = fit_model(
            sampling_model["tapers"], all_data["tapers"][neurite_type], extra_params
        )

    return all_models

def fit_model(sampling_model, data, extra_params):
    """Fit a single parameter.

    Args:
        sampling_model (dict): model parameters.
        data (array): parameter to fit.
        extra_params (dict): additional parameters.

    Returns:
        dict: fit parameters.
    """
    if len(data) == 0:
        return {}
    return {
        "distribution": sampling_model[0],
        "sequential": sampling_model[1],
        "params": fit_distribution(
            data,
            sampling_model[0],
            attribute_name=sampling_model[1],
            extra_params=extra_params,
        ),
    }

Lastly here's the code for input_distributions.py:
"""Input distributions."""

# Copyright (C) 2021  Blue Brain Project, EPFL
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

import logging

import tmd
from diameter_synthesis.build_models import build as build_diameter_models
from neurom import NeuriteType
from neurom import load_morphologies

from neurots.extract_input import from_diameter
from neurots.extract_input.from_neurom import number_neurites
from neurots.extract_input.from_neurom import soma_data
from neurots.extract_input.from_neurom import trunk_neurite
from neurots.extract_input.from_TMD import persistent_homology_angles
from neurots.utils import format_values
from neurots.utils import neurite_type_warning

L = logging.getLogger(__name__)

def _append_dicts(*args):
    """Merge all dicts into the first one."""
    ret = args[0]
    for other_dict in args[1:]:
        ret.update(other_dict)
    return ret

def distributions(
    filepath,
    neurite_types=None,
    threshold_sec=2,
    diameter_input_morph=None,
    feature="path_distances",
    diameter_model=None,
):
    """Extracts the input distributions from an input population.

    The population is defined by a directory of swc or h5 files.

    Args:
        filepath (str): the morphology file.
        neurite_types (list[str]): the neurite types to consider.
        threshold_sec (int): defines the minimum accepted number of terminations.
        diameter_input_morph (str): if input set of morphologies is provided it will be used for the
            generation of diameter model, if no input is provided no diameter model will be
            generated.
        feature (str): defines the TMD feature that will be used to extract the persistence barcode
            (can be `radial_distances`, `path_distances` or `trunk_length`). It is also possible to
            define one different feature per neurite type using a dict like
            ``{<neurite type 1>: <feature 1>, ...}``.
        diameter_model (str): model for diameters, internal models are `M1`, `M2`, `M3`, `M4` and
            `M5`. Can be set to `external` for external model.

    Returns:
        dict: The input distributions.
    """
    if neurite_types is None:
        neurite_types = ["basal_dendrite", "apical_dendrite", "axon"]

    for i, neurite_type in enumerate(neurite_types):
        if neurite_type in ("basal", "apical"):
            neurite_type_warning(neurite_type)
            neurite_types[i] = neurite_type + "_dendrite"

    pop_tmd = tmd.io.load_population(filepath, use_morphio=True)
    pop_nm = load_morphologies(filepath)

    input_distributions = {"soma": {}, "basal_dendrite": {}, "apical_dendrite": {}, "axon": {}}
    input_distributions["soma"] = soma_data(pop_nm)

    if diameter_input_morph is None:
        diameter_input_morph = filepath
    morphology = load_morphologies(diameter_input_morph)
    if isinstance(diameter_model, str) and diameter_model.startswith("M"):
        input_distributions["diameter"] = from_diameter.model(morphology)
        input_distributions["diameter"]["method"] = diameter_model

    elif hasattr(diameter_model, "__call__"):
        input_distributions["diameter"] = diameter_model(morphology)
        input_distributions["diameter"]["method"] = "external"
    elif (
        isinstance(diameter_model, str) and diameter_model == "default"
    ) or diameter_model is None:
        input_distributions["diameter"] = {}
        input_distributions["diameter"]["method"] = "default"
        input_distributions["diameter"]["diameter"] = build_diameter_models(
            morphology, config={"models": ["simpler"], "neurite_types": neurite_types}
        )
    else:
        raise NotImplementedError(f"Diameter model {diameter_model} not understood")

    for neurite_type in neurite_types:
        if isinstance(feature, str):
            type_feature = feature
        else:
            type_feature = feature.get(neurite_type, "path_distances")
        nm_type = getattr(NeuriteType, neurite_type)

        input_distributions[neurite_type] = _append_dicts(
            trunk_neurite(pop_nm, nm_type), number_neurites(pop_nm, nm_type)
        )
        if type_feature in ["path_distances", "radial_distances"]:
            _append_dicts(
                input_distributions[neurite_type],
                persistent_homology_angles(
                    pop_tmd,
                    threshold=threshold_sec,
                    neurite_type=neurite_type,
                    feature=type_feature,
                ),
                {"filtration_metric": type_feature},
            )
    return format_values(input_distributions)

Hello! Thanks for trying to use this code! Here is a bit of advice before going to 'wild'.
Did you modify the code from a git clone?  In general, if you report a bug on a code on github, it should be the code that is on github, otherwise, we cannot help you. If you want to fix a but you found, you can open a Pull Request on, and we can then look at you have modified and see if it can be included in the code.
Alternatively, we can setup a call to discuss what you want to achieve, and if we can be of any help. Good luck with your research!


[Review] Updated migrations and scripts

Replaces https://github.com/aspnet/templating/pull/481
@bricelam @ajcvickers this is what the script generates for migrations now using EF-tools version 2.1.0-rc1-30613, I ran this in the current release/2.1 branch

@bricelam and I will look at this on Monday.

Updated with regex for ProductVersion and schema name...
The version in the batch file is hardcoded to 2.1.0-rc1, or should I just hardcode it to 2.1.0 so we can be done with this for 2.1 once and for all?

@ajcvickers since this is for 2.1, do I need to do anything wrt to ask mode before merging to release/2.1?

Yes, we will need to take it to shiproom. I'll prepare it for tomorrow--no huge rush since the branch is not open for RTM yet anyway.

Ok I'll wait for the branches to open / approval before merging

So I should skip the -rc1 version and go directly to 2.1.0 or 2.1.0-rtm?

Good call. Yes.

Updated version and pushed updated results

@HaoK release/2.1 branch is now open for RTM and this change is approved, so please merge. Don't forget to merge back into dev as well.

Merged this back into dev, but we'll need to figure out what version we really want in dev...2.2-preview1?  Or just 2.2.0 so we don't have to update it again?

@HaoK 2.2-preview1, I think. Because it helps in debugging issues to know that a migration was created with a pre-release version.

Sounds good, I'll merge the changes over as is, and then do a followup change immediately that just updates the version to 2.2-preview1 and includes the results of a new run of the script


Dedup signals

It would be useful if cadence server could handle dedupping of signals. I discovered the usefulness of this feature when writing archival signal processing. Basically the customer experience should be that for a target workflow execution only one signal will ever be delivered. If multiple signals are sent then the cadence server will handle dedupping and only deliver one signal.

I don't think we are going to support this feature. The reason is that it would require storing each signal id in the mutable state and also is not going to . work with continue as new.


Accurate memory tracking of immutable memory

@isaac-io - Please review the last commit. Thanks

I have squashed and pushed the branch


Now we can use "sudo: yes"

With my patch we can use "sudo: yes". Otherwise it tries to install once again under /root with no success.
I decided to install it once more under /root to simplify installation.

what is the benefit of installing under root versus the coreos user?

There only one benefit: I can use option "sudo: yes" in my ansible scripts now. Current version can't work at all because some part of your role relies on current user but other part relies on hardcoded "core" user. It breaks when I use "sudo: yes".
There was 2 options:

Install pypy always under /home/core even when current user is root. I don't like it by security reasons.
Install separate versions under /home/core and under /root.

I choose option #2. :-)


Address issue where initialization fails before cleanup is configured

Initialization and settings scripts must now succeed before cache cleanup can occur.  Cache cleanup is disabled until settings are configured.  On subsequent builds, we disable cleanup before evaluating init and settings scripts and only reenable once evaluation has succeeded.

@bot-gradle test this

OK, I've already triggered the following builds for you:

PullRequestFeedback build

@bot-gradle test and merge

OK, I've already triggered a build for you.


Add time taken by last query in SQL view

Showing time taken by last query in SQL view

Looks good, thank you for addressing the feedback changes 👍


Fix typo Update await-release.sh

Description:
This pull request fixes a typo in the comment for the PACKAGE variable. The original comment contains the word "packacke," which is a misspelling of "package." The corrected comment now accurately describes the purpose of the variable.
Changes:

Fixed the typo "packacke" to "package" in the comment for the PACKAGE variable.

Why is this important?:
Correcting typos in comments is important for maintaining clarity and professionalism in the codebase. This change ensures that the comment accurately reflects the purpose of the PACKAGE variable, improving readability and preventing confusion for future developers working with the code.

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


Vision

I have converted all of our vision to Java.
I have moved everything into the 'remote' directory. I cannot test that it works just yet, because i cannot figure out how to generate the proto-files.
Please help me make sure this works :unicorn:

I have made most of the changes you suggested, though all related to Java.
Please approve.


New person perspective: Documentation is worded very confusingly. Examples given.

Hello,
I'm loving all the great work so far and can see how I'll be productive with this is no time! There is only one hitch. Whenever I use Cntl+Click to look at the documentation, I leave the app.dart file more confused than when I started. Here is why:
In short, the documentation appears to have many lines that are sentence fragments, rather than complete sentences. To someone who doesn't already know the context, who doesn't know what is being referred to, this is extremely confusing. Here are a few examples from the app.dart file:
Line 35:
/// An application that uses material design.
What about it? I don't know. Is there more to this sentence that would help me understand? What if we look at it and the next few lines as a set?
/// An application that uses material design.
///
/// A convenience widget that wraps a number of widgets that are commonly
/// required for material design applications. It builds upon a [WidgetsApp] by
/// adding material-design specific functionality, such as [AnimatedTheme] and
/// [GridPaper].
(EDIT: Is the first line a title?? If so, a colon would have made that clear. As it is, a period leaves the reader confused.)
So:

"An application that uses material design." : This is the sentence fragment from line 35.
"A convenience widget that wraps a number of widgets that are commonly required for material design applications." ... is what? I'm not sure. This is another sentence fragment that is an incomplete thought, or idea.
"It builds upon a [WidgetsApp] by adding material-design specific functionality, such as [AnimatedTheme] and [GridPaper]." : This is more understandable. I can understand what it builds on and what specific functionality it adds... but I still have no idea what "it" is referring to.

If I make an assumption and join the first two then it seems to make sense:
"An application that uses material design" (is) "A convenience widget that wraps a number of widgets that are commonly required for material design applications."
However, I'm not comfortable about making assumptions about something I don't understand, and I'm reading the docs in the first place because I don't understand. Also, as Spock would say: "Logic would indicate that the two may not be joined as if they were a single sentence because the two fragments are separated by more than simply a period. They are, in fact, also separated by an empty line, as if they were completely different paragraphs."
Suggestion: Please write only in complete ideas or thoughts. If you were expecting me to say sentences then I understand why but the real point here has nothing at all to do with grammar. It has to do with the fact that a person reading these docs today can easily be left feeling as if they're reading a bunch of half-finished thoughts or ideas that don't make any sense... and this has been my personal experience. This is why I'm taking the time to report this as an issue.
Because to those of us who are trying to learn Flutter, who are trying to understand how all these pieces fit together, it's a monumental issue. Being able to understand the docs is what enables us to use Flutter at all; and not being able to understand them is what keeps us from being able to use it.
Thanks for taking the time to read this and thanks for all the great work! I'm loving what I can understand so far and I'm excited about learning and being able to do more!
Scott Stoll

Thanks for the feedback! When you say "Whenever I use Cntl+Click to look at the documentation" I assume you mean, "with IntelliJ or Android Studio" ?
When you Cntl+Click, can you provide a screenshot with what you see? I'm curious if only the first line of the API docs are displayed.
Thank you for the additional screenshot.

Sorry for the delay in response, I didn't see that you had replied.
I'm using IntlliJ. A screenshot of what I see in the tutorial might help but one of my screen won't, but I can tell you exactly what is happening. If I go to any number of key terms and CNTL+Right click, IntelliJ opens a new file in a new tab and places the carrot (cursor) in that term's definition. For Example:
CNTL+Click on crossAxisAlignment opens the file basic.dart and places the carrot on line # 3569.
CNTL+Click on StatelessWidget opens framework.dart and places the carrot on line #600
CNTL+Click on controller opens text_field.dart and places the carrot on line #123
In the tutorial I'm watching, the presenter says that he is using control click on a Mac to get IntelliJ to show a drop down list of possible choices. I'm enclosing a screenshot of what he's seeing. I can't seem to find a way to make my configuration do this, and it would be extremely helpful. I'm on Linux. Here is the screenshot of the choices he's getting, supposedly when he uses CNTL+Click on a Mac:

Also, some other unexpected behavior from IntelliJ is this:
        child: new Center(
          child: new Column(
            children: <Widget>[
              new Text("Placeholder Text") //Missed a comma here, all code below this is gray "dead code"
              new RaisedButton(child: new Text("Press me!"))
            ],
          ),
        ),
      ),```

When we miss a ; ] } or ) we get told that, but if we miss a , in a list like this, it just kills all the code below it. One would expect to get a reminder to add a comma, just like all the other punctuation.

Hi @ScottS2017 , could you help us by opening a new issue for the behavior when missing a ; ] } ?
Thank you!

Done, thanks Seth.

That's much more clear, yes.
Sorry for the delay, I've been crazy busy with everything from dealing with a wrist injury to my gf's cousin competing in the Olympics (yea, it's been tense around here).
I realized what the issue is. Basically, the comments don't have a header telling you where a new section begins. If you're familiar with that setup then you don't know why others have an issue but to others it looks like you changed chapters in mid-paragraph and didn't bother to tell the reader.
The issue I was having was that I'd keep reading from the comments about one class right into the next and not realize things had changed because she ended up finishing 13th in the qualifiers and I forgot to get sausage at the store so it makes it really hard to figure out what's going on since the docs are supposed to be explaining this stuff to people who aren't familiar with it.
Kind of like that.

Ah, yeah. That makes sense.
I'm not sure there's really much we can do about it... it's pretty standard practice to have documentation start with a noun phrase (not a complete sentence), describing the member being documented. And since the documentation in Dart comes before the member being documented, you sort of have to read the Dart code first then jump back up to read the documentation.
You can basically assume that every sentence fragment starts with "The member below is...". If we actually added that text everywhere it would become very hard to read the documentation since everything would start with "The member below is", which would be dizzying.
I recommend reading the docs at docs.flutter.io instead of in the IDE, if that is easier to understand.
I'm going to close this bug because I don't really see what we can do it improve matters, but if you have any ideas please don't hesitate to file a new bug for and we will definitely consider them!


Broken MySQL Query

https://github.com/Paultje52/better-mysql/blob/e0186da685cefca428139904c3e0fca7d0056403/src/client/index.js#L139
ALTAR should be alter.

https://github.com/Paultje52/better-mysql/blob/e0186da685cefca428139904c3e0fca7d0056403/src/client/index.js#L139
ALTAR should be alter.

Also on line 142


No module named xxx when langflow run

Bug Description
No module named xxx when langflow run
I created a langflow virtual environment in Windows 10 using Anaconda, with Python version 3.12. I activated the environment using anaconda activate langflow and installed langflow with python -m pip install langflow.
However, when I input langflow run or python -m langflow run, I always get the error "No module named xxx."
Please tell me why this is happening. I can see that these modules are listed when I run pip list, and I don't get an error when I run python and import xxx.
Why is this happening?
Reproduction
No module named xxx when langflow run
I created a langflow virtual environment in Windows 10 using Anaconda, with Python version 3.12. I activated the environment using anaconda activate langflow and installed langflow with python -m pip install langflow.
However, when I input langflow run or python -m langflow run, I always get the error "No module named xxx."
Please tell me why this is happening. I can see that these modules are listed when I run pip list, and I don't get an error when I run python and import xxx.
Why is this happening?
Expected behavior
run the langflow
Who can help?
No response
Operating System
win10
Langflow Version
python -m install langflow
Python Version
3.12
Screenshot
No response
Flow File
No response

Hey @shenshaowei,
To ensure compatibility with Langflow on Windows 10/11, I recommend installing it using WSL2. Some library incompatibilities with Windows can cause errors, and WSL2 helps avoid these issues.
Installing WSL2 allows you to run a Linux kernel within Windows (don't worry, it doesn't consume much processing power). This way, Langflow will run as expected.
For Langflow installation, I suggest using a virtual environment instead of Conda. Use the following commands:
python3 -m venv env
source env/bin/activate  # For WSL2/Linux
python -m langflow run

If you're still using Windows without WSL2, activate the virtual environment with:
env\Scripts\activate  # For Windows Command Prompt


Update README.md

The comment of the filter JeroenNoten\LaravelAdminLte\Menu\Filters\GateFilter::class should be labeled differently than "If you want".  The issue is if you don't comment the GateFilter and use your newly created Laratrust filter, the headers will still show because the array(permissions) is removed with $item = $item['header']; in the GateFilter

thanks mate! 👊


[Question] - Modifying Attribute routing routes for application part assemblies

Suppose I want to allow people to create plugins for my ASP.NET Core Web API application.
The plugins can include endpoints using attribute routing:
    [Route("[controller]")]
    public class SomePlugin: ControllerBase
    {

I can load these plugins and add AssemblyPart's to the Parts Manager in Asp.net core, and stuff will work - no problem so far. In the case above, I can send a request to /SomePlugin and it's routed to the plugin in question - cool stuff.
However suppose two plugins both use the same route accidentally. There is a chance their routes might accidentally conflict / collide with eachother - one plugin overriding the route of another. I don't want this as it will cause unexpected errors.
So what I need to do is make sure that each plugin / assembly (AssemblyPart), is assigned it's own dedicated URL space that all of its generated routes (generated from it's route attributes) will be within.
So in the case of the above plugin, even though the developer has used a Route attribute of [Route("[controller]")] - i don't want that to be the final route when I add this assembly part. I want to assign a unique prefix to that AsssemblyPart and have all of it's generated routes include that prefix. So in the case above, the final route I want generated would be [Route("{unique-prefix}/[controller]")].
This policy should hopefully guarantee that plugins can't conflict with each other routes, accidentally.
So hopefully now that I have explained the problem, my question is, what would be the appropriate way / mechanism to achieve this in asp.net core right 3.0 (I am using the new Endpoint Routing system).
Note: I've also opened this as a stackoverflow question: I've raised a stack overflow question, but also opening here to reach potentially a wider audience in the know. https://stackoverflow.com/questions/56619628/asp-net-core-web-api-extending-attribute-route-generation

Thanks for contacting us, @dazinator.
@pranavkm do you have any suggestions?


haskell.compiler.ghcHEAD: 9.7.20230406 -> 9.7.20230505

https://gitlab.haskell.org/ghc/ghc/-/compare/04b80850...983ce558
Adds support for callbacks to the JS backend.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Build for me


docs: update README.md

Coverage decreased (-71.4%) to 0.0% when pulling 038f6b1079ba80090379b8e9d6d25cd9178ea53f on update-docs into 689600be3a926d33ad84276ee752e0b8f09be0cd on develop.


implementation and test for SolutionBuilderAsync functionality

Date:      Mon May 2 12:07:52 2022 -0700
On branch sol-build-async
Changes to be committed:
new file:   src/compiler/tsbuildPublicAsync.ts
modified:   src/compiler/tsconfig.json
modified:   src/testRunner/tsconfig.json
new file:   src/testRunner/unittests/tsbuildWatch/publicApiAsync.ts
modified:   src/testRunner/unittests/tscWatch/helpers.ts
new file:   tests/baselines/reference/tsbuildWatch/publicApiAsync/with-custom-transformers.js

Feature described in #48894

@sheetalkamat - Hi.  I know you are really busy but since your are the creator of SolutionBuilder etc, any high level guidance  on this topic would be extremely valuable. Proposal is in #48894.

I'll close this pull for now because src/compiler/publicAPI.ts is undergoing a lot of changes with respect to package.json type resolution.  Those change will have to be incorporated in to an updated pull.


Type2Phone's link is wrong

NOTE: A similar issue may already be submitted! Please search among the issues before creating a new one.
NOTE: Each discrete (stand-alone) request should be in its own issue.
Types of Changes
→→→→→→→→→→Type2Phone's link is wrong
What types of change are you thinking about? Put an x in all boxes that apply

[ ] New addition to list
[x] Fixing bug in existing item in list
[ ] Removing item from list
[ ] Changing structure (organization) of list

Proposed Changes
Describe each of your changes here to communicate to the maintainers why we should accept this pull request.

If you're adding something to the list, be sure to explain why it should be added.
If you're fixing a bug or resolving a feature request, be sure to link to that issue.

Issue Checklist
Put an x in the boxes once you've completed each step. You can also fill these out after creating the issue. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before responding to the issue.

[ ] I have checked for other similar issues
[ ] I have explained why this change is important
[ ] I have added necessary documentation (if appropriate)

Further Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@wuruixialove I don't know where the link is wrong.


LatinV3 performance for european languages

I tried the LatinV3 for european languages like german or czech. The recognition quality is very poor or recognition is not working at all with the special characters in these languages like öäiéá etc.
Will there be a LatinV4 model in the future that delivers better quality?
Or are there specialized models for each language that I need to download somewhere?
The english V4 model is very good! Would love to see an equally good LatinV4 model :-)

You should follow the PaddleOCR. I find that PP-OCRv4 supports the multilingual model (ref) quite well, so you can update the paddleocr for your own testing.


Fixed the typo on the installation command

I actually think maybe the name of the addon on npm (and in the package.json) might be the actual typo, but this is actually the name of the addon on there indeed.

@kimroen except for this repo's name, the published addon and the package.json both uses this term.
https://www.npmjs.com/package/ember-browsery-stats
https://github.com/stefanpenner/ember-browser-stats/blob/master/package.json#L2

Yes, but the initializer uses ember-browser-stats. Both the published addon name and the name in package.json is created by the same command (npm init), so it's more likely that this one is the typo.
Either way though, the name is the name, so @stefanpenner will just have to pick one - most likely ember-browsery-stats, as about 80 people have installed it already :)

I'm happy as long as all the names are in sync :smiley:

haha this is totally a typo, the question is should it remain?

And then you have a third one ember-memory-stats in the readme, so who knows at this point ^^
Going with ember-browsery-stats is easiest, but if you're ever going to rename, then this is probably the time to do it. Can you redirect an npm-package?

oh man, this is a funny bug.
ember-browsery-stats it is!

@sivakumar-kailasam thanks for pointing all this out, i feel silly.

This is the best.

@stefanpenner happens :smile:


does rocm2.10 support printf in kernel?

i tried a demo code like this:
`
#include "hip/hip_runtime.h"
#define HIP_ENABLE_PRINTF
global void run_printf()
{
printf("hello world\r\n");
}
int main(int argc, char ** argv) {
hipLaunchKernelGGL(HIP_KERNEL_NAME(run_printf), dim3(1), dim3(1), 0, 0);
hipDeviceSynchronize();
return 0;
}
`
and compile
/opt/rocm/bin/hipcc $(/opt/rocm/bin/hipconfig --cpp_config) -L/opt/rocm/lib/ check_large_bar.c -o check_large_bar
and run check_large_bar, it prints nothing, does anybody know how to printf trace in kernel? thanks

Hi @hongbilu
Thanks for reaching out.
I will take a look and do the needful for you.

Hi @hongbilu
ROCm 2.10 is very old, which is released around 2 years back. It did not support printf that time.
Recommend to try with the latest ROCm 4.2GA which has printf support.
Hope this helps.
Thank you.


Convert nth_value builtIn function to UDWF

Which issue does this PR close?
Closes #12649
Rationale for this change
Context: #8709
What changes are included in this PR?

cleanup BuiltinWindowFunctions
move builtin nth_value function to udwf

It got pretty out of hand because of nth_value and BuiltinWindowFunction references across the repo so I wanted to open a draft PR to get feedback. I should remove the parts in the PR right?
Are these changes tested?

will comment out testing part and fix them

Are there any user-facing changes?
no

THis is so exciting. FYI @jonathanc-n and @Omega359

It got pretty out of hand because of nth_value and BuiltinWindowFunction references across the repo so I wanted to open a draft PR to get feedback.

I personally think it would be fine to leave BuiltInWindowFunction initially while we port over the function, and them remove it as a follow on PR
Perhaps you can leave a stub in like
enum BuiltInWindowFunction {
  // Never created, will be removed in a follow on PR
  Stub
};

Then we can focus this PR on making sure that nth_value is working as a user defined function and then move on in the next PR to mechanically ripping out the old BuiltInWindowFunction

It got pretty out of hand because of nth_value and BuiltinWindowFunction references across the repo so I wanted to open a draft PR to get feedback.

I personally think it would be fine to leave BuiltInWindowFunction initially while we port over the function, and them remove it as a follow on PR
Perhaps you can leave a stub in like
enum BuiltInWindowFunction {
  // Never created, will be removed in a follow on PR
  Stub
};

Then we can focus this PR on making sure that nth_value is working as a user defined function and then move on in the next PR to mechanically ripping out the old BuiltInWindowFunction

Thanks @alamb will continue with what you've said

Wanted to update here. I think I'm almost finished but probably encountered a side effect. This query fails in slt file:
External error: query failed: DataFusion error: Arrow error: Invalid argument error: It is not possible to concatenate arrays of different data types.
[SQL] select
c9,
sum(c5) over (order by c9) as sum1,
avg(c5) over (order by c9) as avg1,
count(c5) over (order by c9) as count1,
max(c5) over (order by c9) as max1,
min(c5) over (order by c9) as min1,
first_value(c5) over (order by c9) as fv1,
last_value(c5) over (order by c9) as lv1,
nth_value(c5, 2) over (order by c9) as nv1
from aggregate_test_100
order by c9
limit 5
at test_files/window.slt:97

Error: Execution("1 failures")
error: test failed, to rerun pass `-p datafusion-sqllogictest --test sqllogictests`

I hope to fix this and make this ready tomorrow

External error: query failed: DataFusion error: Arrow error: Invalid argument error: It is not possible to concatenate arrays of different data types.

In the built-in (older) version the output field is defined like:
    fn field(&self) -> Result<Field> {
        let nullable = true;
        Ok(Field::new(&self.name, self.data_type.clone(), nullable))
    }

In the current code the implementation of field the data type of the field is hard-coded as DataType::UInt64:
    fn field(&self, field_args: WindowUDFFieldArgs) -> Result<Field> {
        let nullable = true;

        Ok(Field::new(field_args.name(), DataType::UInt64, nullable))
    }

To fix this use field_args to get the data type of the input expression rather than hard-coding DataType::UInt64.

External error: query failed: DataFusion error: Arrow error: Invalid argument error: It is not possible to concatenate arrays of different data types.

In the built-in (older) version the output field is defined like:
    fn field(&self) -> Result<Field> {
        let nullable = true;
        Ok(Field::new(&self.name, self.data_type.clone(), nullable))
    }

In the current code, the data type of the field is hard-coded as DataType::UInt64:
    fn field(&self, field_args: WindowUDFFieldArgs) -> Result<Field> {
        let nullable = true;

        Ok(Field::new(field_args.name(), DataType::UInt64, nullable))
    }

To fix this use field_args to get the data type of the input expression rather than hard-coding DataType::UInt64.

Thanks, @jcsherin that was the fix. I've fixed that issue but encountered another one. I return Error from partition evaluator but I think it is not honored.
External error: query is expected to fail, but actually succeed:
[SQL] SELECT NTH_VALUE('+Inf'::Double, v1) OVER (PARTITION BY v1) FROM t1;
at test_files/window.slt:4895

Error: Execution("1 failures")
error: test failed, to rerun pass `-p datafusion-sqllogictest --test sqllogictests`

Caused by:
  process didn't exit successfully: `/Users/buraksen/d/datafusion/target/debug/deps/sqllogictests-267639e9b963ccc2 window` (exit status: 1)

But it should not succeed since:
        let n =
            match get_scalar_value_from_args(partition_evaluator_args.input_exprs(), 1)?
                .map(get_signed_integer)
            {
                Some(Ok(n)) => {
                    if partition_evaluator_args.is_reversed() {
                        -n
                    } else {
                        n
                    }
                }
                _ => {
                    return exec_err!(
                "Expected a signed integer literal for the second argument of nth_value"
            )
                }
            };

Thank you @jcsherin and @buraksenn  -- this looks so close 🙏

Working on about @jcsherin. I will commit some changes today so marking this PR draft until it becomes ready again

Thanks @buraksenn  -- I eagerly await this PR (as it will let us close out two projects and claim success). Very excited

Let us know if you need help

Let us know if you need help

Sorry @alamb this dragged on much longer than I anticipated. I could not find time for the recent days and by opening draft PR I kinda blocked other people working on it sorry about that. Will open more complete PRs and try not to block further on. I'm currently working on it and hopefully make it ready in a few hours

@buraksenn Tremendous effort 🙌. These changes look good to me.

@buraksenn and @berkaysynnada Thanks!
@alamb This PR is ready.

Awesome -- thank you so much. I will review this PR hopefully later today

I also took the liberty of merging up from main to make sure we haven't hit any logical conflicts with this PR

I don't think there is any reason to wait around for this PR -- people know it is coming, so let's get this in 🚀


keep distinct keys for different symbol with same name

closes #1400

Coverage decreased (-0.9%) to 88.701% when pulling dc73101b6cebb26dad9157bfe0302036e886d9fb on ywang007:issue1400 into a1aa9a2868494f875c41bb1d9c88c0ea666071e2 on blaze:master.

Coverage decreased (-0.9%) to 88.701% when pulling dc73101b6cebb26dad9157bfe0302036e886d9fb on ywang007:issue1400 into a1aa9a2868494f875c41bb1d9c88c0ea666071e2 on blaze:master.

Coverage increased (+0.03%) to 89.607% when pulling 20b5684eada3a48c376e2dab5350eaa83b16b477 on ywang007:issue1400 into a1aa9a2868494f875c41bb1d9c88c0ea666071e2 on blaze:master.

Coverage increased (+0.03%) to 89.607% when pulling 20b5684eada3a48c376e2dab5350eaa83b16b477 on ywang007:issue1400 into a1aa9a2868494f875c41bb1d9c88c0ea666071e2 on blaze:master.

Coverage increased (+0.03%) to 89.607% when pulling 20b5684eada3a48c376e2dab5350eaa83b16b477 on ywang007:issue1400 into a1aa9a2868494f875c41bb1d9c88c0ea666071e2 on blaze:master.

Closing to cleanup old PRs. Feel free to submit a new PR.


Mbedtls 2.4

Notes:

Pull requests cannot be accepted until the PR follows the contributing guidelines. In particular, each commit must have at least one Signed-off-by: line from the committer to certify that the contribution is made under the terms of the Developer Certificate of Origin.
This is just a template, so feel free to use/remove the unnecessary things

Description
A few sentences describing the overall goals of the pull request's commits.
Status
READY/IN DEVELOPMENT/HOLD
Requires Backporting
When there is a bug fix, it should be backported to all maintained and supported branches.
Changes do not have to be backported if:

This PR is a new feature\enhancement
This PR contains changes in the API. If this is true, and there is a need for the fix to be backported, the fix should be handled differently in the legacy branch

Yes | NO
Which branch?
Migrations
If there is any API change, what's the incentive and logic for it.
YES | NO
Additional comments
Any additional information that could be of interest
Todos

[ ] Tests
[ ] Documentation
[ ] Changelog updated
[ ] Backported

Steps to test or reproduce
Outline the steps to test or reproduce the PR here.

ok

Thank you for your contribution. Unfortunately, mbedtls 2.4 is no longer supported, and so we can not accept this PR.
We are currently supporting the 2.7.x and 2.16.x LTS series (With 2.7 nearing its EOL), as well as the latest version (2.25.0 at the moment).
I'd advise moving any projects to 2.16 or 2.25.


Bug with trailing comma rule

Hello,
First of all, thanks for your work on this library.
I'm facing an issue with the vue-tsc --noEmit command. I have a component with 2

This is a known issue and fixed in 0.27.4 (https://github.com/johnsoncodehk/volar/issues/383), please delete yarn.lock / package-lock.json and reinstall to update vscode-vue-languageservice.

It's not a problem with my editor or my volar extension, I'm running the vue-tsc from command line interface so updating vscode-vue-languageservice doesn't fix it.

vscode-vue-languageservice not just a extension module, it is also a depend of vue-tsc: https://github.com/johnsoncodehk/vue-tsc/blob/master/package.json#L21
Please take a try.

Ok sorry it actually did the trick. I thought it wasn't working in the first place because I'm using pnpm and after removing pnpm-lock.yaml and reinstall, the dependency didn't upgrade. After running pnpm up --latest vue-tsc I finally get the latest version of vscode-vue-languageservice.
Thanks


Add --compatibility flag while updating the repo metadata

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary

What does the PR accomplish, why was it needed?
Add --compatibility flag while updating the repo metadata.
Similar to the changes added to our Github repo tools in PR https://github.com/microsoft/CBL-Mariner/pull/7837 , this pr adds --compatibility flag while calling createrepo with --update flag as well. This flag does not change any existing behavior to previous versions of the package so it can be safely merged any time
Change Log

NA

Does this affect the toolchain?

NO
Associated issues

NA

Links to CVEs

NA

Test Methodology

Thanks @anphel31 for the review and approval.


version 0.6.21 for ios

Discussed in https://github.com/rafaelsetragni/awesome_notifications/discussions/643

Originally posted by MohamedSaad80 November  8, 2022
when I seclude more than 4 notifications in IOS delete from the first to add new notification

Closing this issue because its progress is still on the discussion thread.


Logging

Hey,
Old topic, simpler idea: I don't want to re-invent the wheel, but can we do something similar to https://github.com/grpc/grpc-go/tree/master/grpclog for gprc-gateway? Using glog means everyone is locked into glog's very opinionated way of storing output, and it means in a lot of cases (including mine) that I just completely lose grpc-gateway logs.
The only change in the code would be to get rid of v-level logging, but I mean this is minor as I see it within the code.

I agree on its benefit. But I prefer simply using grpclog package.
What do you think?

Wasn't there a very similar proposal before? https://github.com/gengo/grpc-gateway/pull/54 Or is this different?

I don't remember why I closed #54.  But maybe I confused it with adding dependency to dlog?
I did not want to add extra dependency for that small improvement.  But grpclog is free from that concern.

Fine with me!

I can put together a PR

Any reason not to simply use the package google.golang.org/grpc/grpclog directly? There's already a hard dependency on google.golang.org/grpc and this package is always at risk of dealing with the API changes in GRPC
I would assert that people who want to set the logging output for GRPC probably don't necessarily need to set different logging output for GRPC gateway - they generally either want it going somewhere they can control it, or they want it fully off

@crast You are right.  I am fine with grpclog.


RubyInstaller seems to install openssl 1.0.1l but Ruby claims it is using 1.0.0h

Hi,
I ran a simple "rake ruby19 TRUNK=1". In sandbox/openssl/bin, I'm seeing openssl.exe that return "OpenSSL 1.0.1l" when I run "openssl version".
However, when I start sandbox/ruby19_build/bin/irb and then enter "OpenSSL::OPENSSL_VERSION", I get "1.0.0h". Is there some constant that isn't getting properly updated? Is 1.0.1l not being properly installed?

And running the irb from ruby19_mingw/bin/irb, that one's OpenSSL::OPENSSL_VERSION is "OpenSSL 1.0.1" - which also isn't 1.0.1l. Not sure what's going on, and how these two are pulling in 1.0.0h and 1.0.1 when the only openssl downloaded through rubyinstaller is 1.0.1l...?

Right, so I honestly don't know.
I know that OPENSSL_VERSION is compile time hard coded, but it seems like you may be getting some versions from somewhere else.
You may run rake clobber before you compile again, just in case, but I doubt that's the problem.
I'll look into it some more when I get some time.

From what I can see Ruby uses the DLL/shared libray in
c:/ruby/lib/ruby/2.1.0/x64-mingw32/openssl.so
I'm currently running Ruby 2.1.6 on that machine.
If you type openssl on the command line - I understand at least that's what
you did - then you call some openssl.exe somewhere on your machine which
has nothing to do with aforementioned Ruby lib.
Try
which openssl
to find out where your command is located. On my machine there is one
version which come with git and that's even version 0.9.8zb from 6-AUG-2014.
2015-04-20 22:17 GMT-04:00 Justin Baker<EMAIL_ADDRESS>
Right, so I honestly don't know.
I know that OPENSSL_VERSION is compile time hard coded, but it seems like
you may be getting some versions from somewhere else.
You may run rake clobber before you compile again, just in case, but I
doubt that's the problem.
I'll look into it some more when I get some time.
—
Reply to this email directly or view it on GitHub
https://github.com/oneclick/rubyinstaller/issues/270#issuecomment-94615146
.

You're right - so I do have one ruby installed at C:\Ruby193-p194, which has an openssl configured at OpenSSL 1.0.0h. However, don't I need ruby installed to run rubyinstaller? Feels a bit circular, unless I need to replace the DLLs in my installed version of Ruby prior to running this Ruby, as well?

Alright - that turned out to be a horrible idea because replacing my two DLLs now makes it impossible for me to run:
require "openssl"
any other suggestions?

So, I just did a build of Ruby 1.9.3 using rake ruby19 and it looks like it compiled with new OpenSSL.
PS ...\rubyinstaller\sandbox\ruby19_mingw> .\bin\ruby.exe -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
OpenSSL 1.0.1l 15 Jan 2015

But, it looks like the current recipes don't work with Ruby 1.9.3's irb (because of rbreadline).
I dropped the mingw64 versions into an existing Ruby 1.9.3 and it seemed to be able to require 'openssl'.
I'm going to try a previous version of rbreadline and compile again so irb should work

Ok, to get a working version you'll have to change the rbreadline version to v0.5.0. This is the diff
Then see if you get:
PS ...\rubyinstaller> cd .\sandbox\ruby19_mingw
...\rubyinstaller\sandbox\ruby19_mingw
PS ...\rubyinstaller\sandbox\ruby19_mingw> .\bin\ruby.exe .\bin\irb
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> OpenSSL::OPENSSL_VERSION
=> "OpenSSL 1.0.1l 15 Jan 2015"

If you do then run rake ruby19:package:archive to get a 7z archive.

@Azolo Thanks so much - things are looking good now!

No Problem. Good Luck!


[Enhancement] Log version info when adding clone task for VERSION_INCOMPLETE (#27924)

Fixes SR-19200
This is a backport from pr #27924.

[FE PR Coverage Check]
:heart_eyes: pass : 41 / 48 (85.42%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/Partition.java
5
9
55.56%
[216, 217, 218, 219]

:large_blue_circle:
com/starrocks/clone/TabletSchedCtx.java
9
10
90.00%
[628]

:large_blue_circle:
com/starrocks/clone/TabletScheduler.java
24
26
92.31%
[222, 226]

:large_blue_circle:
com/starrocks/transaction/OlapTableTxnLogApplier.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/transaction/DatabaseTransactionMgr.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/system/Backend.java
1
1
100.00%
[]


copying a json config from one page to another does not result in the same behaviour

I created my own tile config and althought everything went just fine, I wanted to add the white box with the black borders, that you can see in the example config, to my map config.

On the left, its my map, on the right its the example map.
I copied over all attributes from right to left, but still, I do not have this box around the street name, and I have no clue why.
Is the box connected to something else? Shouldnt the exact same config result in the exact same result?
Thanks for you help

Hi @DominikReinert,

Is the box connected to something else?

The box on the right map is coming from the sprite, referenced with "icon-image"`.
Here is such a sprite used for the OSM Liberty style:
https://github.com/maputnik/osm-liberty/blob/gh-pages/sprites/osm-liberty.png
https://github.com/maputnik/osm-liberty/blob/gh-pages/sprites/osm-liberty.json
Are you using the same sprite for both maps?
You find the base URL for retrieving the sprite in the root properties of a style, e.g.
https://github.com/maputnik/osm-liberty/blob/gh-pages/style.json#L22

Well, I found out that I use another sprite, but if i export the one on the right side (working), i get a not working export value:

and this is the one on the left, thats at least working...:

if i export the one on the right side (working), i get a not working export value

Which style are you exporting? OSM Bright?
If you check the Style Settings before exporting the style, are there URLs for sprites and glyphs available?

Yes, they are set to the values taken from the JSON

How do you export the style?

I can't reproduce and for me it's not clear what you are doing exactly.
Are you able to provide a style where the export for the sprite and glyphs values fails?
Or could you please describe exactly how to reproduce the behaviour you are seeing?

The following is the result of exporting my working configuration:
my-domain.json.txt
I am already used to making changes using maputnik (for visual feedback) and re-applying them manually in the file.
In the above json you can see, that the glyphs get key=undefined instead of key={key}, just to tell you the most obvious export error.
This is the working config:
my-domain-working.json.txt
Zooming far enough into it, you can see that neither the road signs, nor stuff like railway stations (the example I refer to is this [from older, still working version]):

instead of this (current):

@DominikReinert thanks for the styles and further information.
There are two different issues here:

When exporting a glyph URL with key={key} the exported style has key=undefined instead.
You're right, this is a bug, it should remain key={key}. /cc @orangemug
Until this is fixed, a workaround would be to enter your Maptiler Cloud access key before exporting the style. This way you would be able to open your style again with Maputnik.

Missing railway stations for my-domain-working.json :
This is no issue related to Maputnik.
The layer poi-railway has "visibility": "none". If you change this to "visibility": "visible" the railway stations show up again (see my-domain-working.json.txt):

I didn't notice any missing road signs. If this is still the case, could you please provide an example?

@pathmapper Thank you for your great help!

The road signs magically appeared for me again. Maybe it was a bug on the glyphs side? However, in the original post you see how the missing road sign backgrounds looked like (left).

Okay, I will keep this in mind.

I think I tried turning the railways on, but it didnt work. However, it works now.

And thank you once more

@pathmapper is it possible that you remove the first picture of my third last comment on this, please? I accidentaly put a pic in here with my employers name visible...

@DominikReinert good to hear that your issues are solved.
I've noticed that you removed the screenshot yourself from the comment.
If you want to delete this screenshot also from the comment history, you are able to do this also yourself:
https://help.github.com/articles/tracking-changes-in-a-comment/#deleting-sensitive-information-from-a-comments-history


Technical paper/documentation

Contributing to FB NextGen MMM R script
Issue
I wanted to hear, if there's a technical paper regarding Robyn like the Facebook Prophet (here)
What's the main model? How is it created? What are the parameters etc. etc
Or is the way simply to understand the modelling process to sit down, open the code, and run it through step by step?
I know there's the feature-tab about e.g ridge-regression, but I struggle to find anything of how each feature, transformation etc. work together to create the final Robyn model.

Hi, we have to apologise that the documentation is not ideal for the moment. Please understand that Robyn is still quite new and only released since November.  Prophet is indeed our role model regarding documentation. We'll work on this in the second half of the year.

Hi Jakob,
Thanks so much for your interest. As Gufeng said, documentation is a work in progress. To your questions:

Model: r=Ridge regression with hyperparameter optimization algorithm based on Nevergrad's oneplusone evolutionary algorithm. Whitepaper here: [LINK]
How is it created: We pretty much do variables transformation for adstocking and media saturation curves,  and run prophet on top of data. Then run a ridge regression with the hyperparameter optimization algorithm mentioned above using 2 objective functions for pareto optimality: NRMSE and the decomp.rssd (Decomp Root sum of squared distance, which is the square root of the difference between share of spend and share of effect squared). Note: we use a third for calibration, if ground-truth experiment calibration is desired. Minimizing distance too between ground-trouth values for a certain date period in the data series. We loop through different parallel trials and iterations for this hyperparameter optimization, where we explore on parameter values such as alphas and gammas for the hill function, thetas for the adstock geometric function, or shapes and scales for weibull, for each channel.
We then plot top pareto optimal model solutions plots in a folder, where you can choose the best model according to your business context.
Once you choose your preferred model, you may run a budget allocator to either maximize your current budget output or reallocate based on certain total budget increase.

Hope it helps to shade some light and thanks so much for your interest in Robyn :)
Best,
Leo

@Leonelsentana Thanks a lot for that overview - that surely sheds some light of how Robyn is build.


How to iterate functions in the order of their definition in source file?

This is just a question - I have a bunch of scripts that are defining some processing function and list of unit tests for them. So after loading script with lua_view_.safe_script_file(...) I'm finding all functions prefixed with test_ with the following code:
        vector<pair<string, sol::protected_function>> functions;
        for (auto &kv: lua_view_) {
            if(kv.second.get_type() == sol::type::function && kv.first.as<string>().find("test_", 0) == 0) {
                functions.push_back(pair(kv.first.as<string>(), kv.second));
            }
        }

Now, the problem is that they come in random order - which, I believe, is because of how LUA iterates tables. So the question is - is there any way to iterate functions in the order they were defined in the source file?

Unfortunately, no! This is an intrinsic Lua limitation. The folks at Factorio added some deterministic ways of doing this by patching Lua directly, which is compleeetely outside of my jurisdiction!


add agent and additional info to crash report

FYI your lint issue should be resolved when you rebase main


[stable/apm-server] Use a non-root user

What this PR does / why we need it:
The chart for apm-server force the container to run as root, which goes against security best-practices. This PR allow to specify a non-root user (by default: 1000/apm-server) and run with it.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #16044

Special notes for your reviewer:
The use of an init container has been needed to set rights on the RW volumes.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

Signed-off-by: Clément Loiselet

/assign @mumoshu

Argh I missed the notification.

Didn't log into my mail for quite some time, didn't see the notifications on this PR