Cmd popups when I open vscode

VSCode Version: Code 1.15.1 (41abd21afdf7424c89319ee7cb0445cc6f376959, 2017-08-16T18:05:38.342Z)
OS Version: Windows_NT ia32 10.0.15063
Extensions:

Extension
Author (truncated)
Version

python
don
0.7.0

php-debug
fel
1.11.1

When I open vscode a bunch of terminals relating to the -login popup and then disappear very quickly. Not sure why this started happening or how to fix it.
Steps to Reproduce:

Open vscode...
This only just started happening. Haven't had issues in the past.

Reproduces without extensions: Yes/No

likely a dupe

@AustinKerr42 What are your user settings?

It seemed to be an issue with my git settings. I had the "git.path" set to my bash executable and when I commented that out it stopped happening. Solved.


Twig integration

https://www.npmjs.com/package/gulp-twig

or nunjucks
https://www.tengio.com/blog/nunjucks-templates-with-gulp/


error :(( cannot do bash install.sh

install.sh: line 12: syntax error near unexpected token fi' 'nstall.sh: line 12: fi

just copy the green code from here https://github.com/mrprogrammer2938/Black-Tool/pull/39/files

currently checking it will inform about works or not

There is a syntax error - line 13, function etc()
sudo python3 install.py - installed and running.

Fixed!
bash install.sh


Move request body parsing into Parser's responsibilities

The lack of control over the incoming request body parsing is becoming problematic. I.e. the default app blueprint doesn't work out of the box, because we need to specify the JSONAPI media type to the body parser middleware.
Since the Parser class is responsible for understanding the shape of the incoming request, it should be responsible for buffering/parsing the JSON too. This would also allow for first-class implementations of streaming parsers, file uploads, etc.
The open question is how to handle middleware that need the buffered and parsed request body. One suggestion from @willviles that I like was that we use this rule as a good answer to "does my middleware belong in config/middleware.js or as an action filter?" If it needs the request body parsed, it belongs in Denali-land (i.e. a before filter on ApplicationAction). If not, i.e. if it's low level operations on the req/res objects, then config/middleware.js it is.

Can this be closed now?


flutter first StatefulWidget dispose method not called when app quit

Internal: b/142035030
if flutter app first page is StatefulWidget, in android when user press back button,State dispose method not called.
[✓] Flutter (Channel master, v1.2.1-pre.142, on Mac OS X 10.14.2 18C54, locale zh-Hans-CN)
    • Flutter version 1.2.1-pre.142 at /Users/yuyanhui/Desktop/flutter/flutter
    • Framework revision fec01201b1 (9 days ago), 2019-02-09 11:23:28 -0500
    • Engine revision 067045757f
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 174d6fec3d)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/yuyanhui/Library/Android/sdk
    • Android NDK at /Users/yuyanhui/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    ✗ Verify that all connected devices have been paired with this computer in Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
      To update with Brew, run:
        brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew unlink usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.2
    ✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy
    • CocoaPods version 1.5.0

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2018.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 183.5153.38
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.30.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • Nexus 5X • 00f11dd26565c098 • android-arm64 • Android 8.1.0 (API 27)
    • m1 note  • 71MBBL524BNG     • android-arm64 • Android 5.1 (API 22)

! Doctor found issues in 3 categories.

When the app is exited then no further Dart code is executed.
So this is working as intended.
Are you looking for https://github.com/flutter/flutter/issues/6827
or https://stackoverflow.com/questions/52074265/flutter-detect-killing-off-the-app/52074534#52074534?

i think State.dispose lifecycle method should called when this state destroy,just like android Activity.onDestroy,whether quit this State(Activity) or quit app.i hava to do something when state dispose,but when app quit dispose method not called.
this is my code
import 'package:flutter/material.dart';
import 'package:flutter/services.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: 'Flutter Demo',
      theme: ThemeData(primarySwatch: Colors.blue, primaryColor: Colors.white),
      home: MainActivity(),
    );
  }
}

class MainActivity extends StatefulWidget {
  @override
  _MainActivityState createState() => _MainActivityState();
}

class _MainActivityState extends State<MainActivity>
    with WidgetsBindingObserver {
  @override
  void initState() {
    super.initState();

    print('initState');
    WidgetsBinding.instance.addObserver(this);
  }

  @override
  void deactivate() {
    super.deactivate();
    //this method not called when user press android back button or quit
    print('deactivate');
  }

  @override
  void dispose() {
    super.dispose();
    WidgetsBinding.instance.removeObserver(this);

    //this method not called when user press android back button or quit
    print('dispose');
  }

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    //print inactive and paused when quit
    print(state);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Title'),
      ),
      body: Center(
        child: RaisedButton(
          onPressed: () {
            SystemNavigator.pop();
          },
          child: Text('Quit'),
        ),
      ),
    );
  }
}

I don't think this will happen, but I leave it open to let the specialists make the final take.

I encounter the same problem at the moment, I can't dispose resources in dispose method.
Even worse, App crashed.
W/art     (19306): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[14,tid=19333,Native,Thread*=0x9e73ec00,peer=0x12ebe0a0,"Thread-19292"]
E/SensorManager(19306): Exception dispatching input event.
D/AndroidRuntime(19306): Shutting down VM
E/AndroidRuntime(19306): FATAL EXCEPTION: main
E/AndroidRuntime(19306): Process: com.github.flutter.xxx_example, PID: 19306
E/AndroidRuntime(19306): java.lang.RuntimeException: Cannot execute operation because FlutterJNI is not attached to native.
E/AndroidRuntime(19306): 	at io.flutter.embedding.engine.FlutterJNI.ensureAttachedToNative(FlutterJNI.java:514)
E/AndroidRuntime(19306): 	at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:444)
E/AndroidRuntime(19306): 	at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:74)
E/AndroidRuntime(19306): 	at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:149)
E/AndroidRuntime(19306): 	at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:142)
E/AndroidRuntime(19306): 	at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:213)

flutter doctor -v
[✓] Flutter (Channel master, v1.3.3-pre.17, on Mac OS X 10.14.3 18D109, locale zh-Hans-CN)
    • Flutter version 1.3.3-pre.17 at /Users/xxx/git/dart/flutter
    • Framework revision 740fb2a8bb (5 hours ago), 2019-03-02 13:19:49 +0000
    • Engine revision 39c46dea4b
    • Dart version 2.2.1 (build 2.2.1-dev.0.0 7c70ab1817)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/xxx/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Users/xxx/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5264788/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Users/xxx/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5264788/Android Studio.app/Contents
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
    • IntelliJ at /Users/xxx/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 30.0.2
    • Dart plugin version 182.5124

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

It seems to resemble this situation ?
Cannot execute operation because FlutterJNI is not [attached] to native. #28651

same in case you main app class is state full dispose is not being called when app exit.

Encountered the same issue, but I found a good workaround that works for me:
return MaterialApp(
      home: WillPopScope(
          child: HomePage(),
          onWillPop: () {
            dispose();
            return Future.value(true);
          }),
    );

This seems to work perfectly for me. No errors too.

Encountered the same issue too，I handled this way：
//flutter
import 'package:flutter/services.dart';
@override
void initState() {
  super.initState();
  print('initState');
  new MethodChannel("flutter.temp.channel").setMethodCallHandler(platformCallHandler);
}

Future<dynamic> platformCallHandler(MethodCall call) async {
  if (call.method == "destroy"){
    print("destroy");
    dispose();
  }
}

//MainActivity.java
@Override
protected void onStop() {
    super.onStop();
    Log.i("=== MainActivity ===", "onStop: ");
    new MethodChannel(getFlutterView(), "flutter.temp.channel").invokeMethod("destroy", null, null);
}

@Override
protected void onDestroy() {
    super.onDestroy();
    Log.i("=== MainActivity ===", "onDestroy: ");
    new MethodChannel(getFlutterView(), "flutter.temp.channel").invokeMethod("destroy", null, null);
}

We need a recommendation or a fix here. Various Google teams are hitting this as well and the workarounds described above are gnarly.
I am especially intrigued by
return MaterialApp(
      home: WillPopScope(
          child: HomePage(),
          onWillPop: () {
            dispose();
            return Future.value(true);
          }),
    );

since it indicates Flutter is getting the signal to pop its home route. I was originally assuming that we are simply missing the back button press since the activity is being finished. That does not seem to be the case, so why isn't the widget tree purged?

@goderbauer Is the navigator refactor going to solve this issue?

(My speculations):
This is more related how FlutterView is embedded into native platform and what events it emits/does'n on activity destroy. So maybe @blasten can give some clarity :)

I believe this is an issue independent of the nav refactor, but some additional investigation will be necessary to figure out what's really going on here.
The WillPopScope solution is indeed interesting (we should confirm that it indeed works). I had also assumed that the framework just never gets informed when the entire FlutterActivity is destroyed. This will need some additional investigation to figure out what happens when the app gets closed via the back button and why the framework is not purging the widget tree in that case.

From a quick look it looks like the framework is informed that somebody pressed the back button. The navigator then tries to pop the route, but since it is the only route on the stack the route refuses to be popped and instead we hand the event back to the native side, which decides to pops the entire activity. However, before the route refuses to pop it informs all register WillPopScopes that a pop may be about to happen. That's why that workaround works. However, I do not recommend that workaround. There's no guarantee that a route actually pops after WillPopScope is informed. Another WillPopScope may as well block the pop!
This is intended behavior because WillPopScope is meant to prevent the pop altogether when you have unsaved data in a route.
Back to the issue at hand: What is the actual use case for this? Why is it important for people that dispose gets called? In general, it will probably be very hard to guarantee that dispose gets called in all situations. For example, if we get killed due to low memory while running in the background it's unlikely that we will have enough time to properly dispose the tree.

Why is it important for people that dispose gets called?

Resource leaks. Particularly w.r.t. plugins which are tied to application lifecycle. Some plugins (such as camera) depend on register/dispose calls and if you acquire a resource and you don't dispose it, the application process hangs onto it after the activity quits.
This can be solved by hooking into Android lifecycle directly:

Dispose resources when WidgetsBindingObserver reports the AppLifecycle as paused.
Code plugins such that they watch activity lifecycle and release resources as needed.

However, cleaning up the same resource N different ways is hard. If you are acquiring something in initState(), you should be able to reasonably expect it to be released at dispose(). We don't expect dispose to run if the OS kills you for whatever reason.

The work in add 2 app, the flutter app can live without an activity. If we want to do this, it will be flutter engine on destroy need to notify framework to take another frame cycle to dispose the widget

If the engine lives without an activity, isn't it tied to application? At that point a destroy would mean the process is being terminated so I don't think you need to dispose the widget tree.
This is specifically for cases where the activity (not the process) is being terminated.
However, you bring up a good point. The background execution use case makes this interesting and also confusing. Do we really want to dispose all state when activity is terminated? If not, we are basically asking users to consider State lifecycle and App lifecycle separately :-/
Since we expect 99% of the use case of a widget tree to require a vsync, could we make this an opt-out behavior? Dispose the widget tree upon activity termination, unless some special widget (BackgroundWidget?) is used as the root which keeps the tree from being terminated (or at least takes control of what happens).

I have a pr to add a new lifecycle state (detached) for flutter app that does not have a activity attached
https://github.com/flutter/engine/pull/11913
I think it is inevitable to distinguish between State lifecycle and App lifecycle. Add 2 app need this to properly warm up the engine before the activity is launched.
With this new life cycle enum, one can use a lifecycle observe to release resource if it is in detached state. I am not certain whether we should make it a default behavior to wipe out widget tree when it is in detached state.
The main issue is that we don't know how to distinguish between
1, engine first initialize and no activity has created
2, activity has been destroy after navigator pop
Both of them are considered as detached state, but it seems like what we want here is to do the clean up in 2 only.

Thanks @chunhtai.
Just to respond to my own comment above:

However, cleaning up the same resource N different ways is hard. If you are acquiring something in initState(), you should be able to reasonably expect it to be released at dispose(). We don't expect dispose to run if the OS kills you for whatever reason.

We discussed this and it turns out such resources should not be acquired at initState() because widget tree might be built without an activity. We should instead register with the WidgetBindingObserver and acquire them when app state is resumed (and get rid of them when it is paused or detached).

After we discussed, I tried to write pseudocode for camera plugin and came up with this:
CameraWidgetState {
  initCamera() {}
  disposeCamera() {}

  initState() {
    // This is why the willpopscope does not quite work.
    // You might get an initState when the app is not resumed.
    if (WidgetsBinding.currentLifecycle == resumed) {
      initCamera();
    }
    WidgetsBindingObserver.addObserver(this);
  }

  dispose() {
    WidgetsBindingObserver.removeObserver(this);
    disposeCamera();
  }

  onLifecycleChange(lifecycle) {
    if (lifecycle == resumed) {
      initCamera();
    } else {
      disposeCamera();
    }
  }
}

This is still pretty confusing. It would be better if the plugin managed the app lifecycle itself and the app only managed the CameraWidget itself via initState/dispose. That way, CameraWidget could remain attached to an inactive Camera which comes back alive onResume.

I found another solution by trial-and-error, but it worked.
import 'main.dart' as main;
Then add this line under the onPressed.
main.MyAppState().printSample();

The dispose method on State should not be called when the app quits.
The behaviour of the following three cases should all be the same:

Hitting the home button
Hitting the back button on the first page
Switching applications in the app switcher

(And the behaviour of the above should be, to the user, the same as other cases, such as the app being terminated by the OS due to memory pressure, or the user explicitly killing the app.)

This can be solved by hooking into Android lifecycle directly:

Dispose resources when WidgetsBindingObserver reports the AppLifecycle as paused.
Code plugins such that they watch activity lifecycle and release resources as needed.

This is the correct answer. (The second bullet can be done from either the framework side or the OEM side.)
On the framework side, you could write a mixin that abstracts this out for you.

The behaviour of the following three cases should all be the same:
Hitting the home button
Hitting the back button on the first page
Switching applications in the app switcher

In principle, I agree with you. I think that's what most devs want. However, be aware that, that's not how Android apps work so it would be surprising for that platform.  On Android, 1 and 3 are the same (app is paused). 2 is not. Android finishes the activity which then restarts when you tap the app icon with a clean state. If you have a textbox with a value in it, (2) will reset that value if the app does not explicitly save state.
@goderbauer Do we intend to solve the save state problem this way? Because it would look like the state is surviving activity.close operation but it won't survive the process kill by Android OS which is what the state saving issue was about IIRC.

Saving/Restoring instance state will happen whenever Android or iOS call us to do it.
On Android, instance state will be saved when Activity.onSaveInstanceState is invoked and restored when  Activity.onRestoreInstanceState is invoked by the OS.

@hixie what about cases when application has more active components? E.g. foreground service, activity and user press back button to close that last activity.
Application in that case is kept running. All plugins don't get dismiss callback. Which means that plugins:

Keep doing what they were doing
Hold refs to their resources and leaks memory

New activity is created after user opens app again.

@audkar The point is that plugins should not keep doing what they were doing when there is no Flutter activity/engine attached. There's a new plugin API under development that should make this much easier.

The point is that plugins should not keep doing what they were doing

Yes. Of-course. That is my point. And there is problem which this ticket describes. That neither flutter widget, neither plugins gets callbacks when flutterView and flutterEngine is destroyed. So they continue their work. Example is EventChannel onCancel method is not called. And there is zero plugin developers who knows that additional listeners are required to properly handle this specific case.

That neither flutter widget, neither plugins gets callbacks when flutterView and flutterEngine is destroyed.

They do though. That's what WidgetsObserverBinding is.
We can't fix people not using this by disposing the widgets when activity ends. That creates other problems (such as for background handling). Since the Flutter team agrees on the expected behavior, this issue can be closed.

Encountered the same issue too，I handled this way：
//flutter
import 'package:flutter/services.dart';
@override
void initState() {
  super.initState();
  print('initState');
  new MethodChannel("flutter.temp.channel").setMethodCallHandler(platformCallHandler);
}

Future<dynamic> platformCallHandler(MethodCall call) async {
  if (call.method == "destroy"){
    print("destroy");
    dispose();
  }
}

//MainActivity.java
@Override
protected void onStop() {
    super.onStop();
    Log.i("=== MainActivity ===", "onStop: ");
    new MethodChannel(getFlutterView(), "flutter.temp.channel").invokeMethod("destroy", null, null);
}

@Override
protected void onDestroy() {
    super.onDestroy();
    Log.i("=== MainActivity ===", "onDestroy: ");
    new MethodChannel(getFlutterView(), "flutter.temp.channel").invokeMethod("destroy", null, null);
}

It was really helpful for me, I appreciate you!

The dispose method on State should not be called when the app quits.
The behaviour of the following three cases should all be the same:

Hitting the home button
Hitting the back button on the first page
Switching applications in the app switcher

(And the behaviour of the above should be, to the user, the same as other cases, such as the app being terminated by the OS due to memory pressure, or the user explicitly killing the app.)

This can be solved by hooking into Android lifecycle directly:

Dispose resources when WidgetsBindingObserver reports the AppLifecycle as paused.
Code plugins such that they watch activity lifecycle and release resources as needed.

This is the correct answer. (The second bullet can be done from either the framework side or the OEM side.)
On the framework side, you could write a mixin that abstracts this out for you.

copy paste of my comment from similar issue:
I'd like to point that the behavior in the first case will never be the same in general because of how android works:
in the 2nd and 3rd case, the app will generally not be terminated immediately (unless the system is tight on resources). Therefore if a user navigates back to the app via 'recent apps' switcher, the old connection will still be open (unless server closes it due to application specific timeout of client inactivity) and the server will not even notice that a user navigated away and returned again.
However, in the first case, the app is always terminated immediately and all its OS resources released. It may be removed from switcher or not (depending on android version/flavor, but not sure here). If it's not removed and a user navigates back to it, the old state will be already discarded by this time, a new instance of state will be created and a new connection to the server will be established.
Therefore, since the state is always destroyed in the 1st case (but not necessarily in 2nd and 3rd case), I claim that there should be a reliable way to release state's child resources according to general rule of object ownership mentioned before. Since dispose method already exists and many devs expect it to be exactly this mechanism, I claim that dispose method should be guaranteed to be called on app exit.
If there is a desire to unify behavior in the above 3 cases, then the only way to achieve this is by reliably terminating app in all 3 cases and thus reliably calling dispose also. (which personally I think is a terrible idea: I don't want to lose app's state whenever I switch to another for 10 seconds to copy some text).


Nuki bridge shows error in Eve App

Is there anything I have to do?

Could you increase the Log Level to 2 and, after a couple of minutes, capture the Homebridge log into a file and attach that?

Okay here is the log.
homebridge.log.txt

That doesn’t contain any debug messages.  Are you running Homebridge with debug enabled?

I will check tomorrow and upload a new log file.

New log uploaded.
homebridge.log-2.txt

Thanks.  Your bridge seems to be running older firmware (v1.17.1) than mine (v2.7.0).  I doesn't report wlanConnected, that Homebridge NB evaluates setting Status Fault.  Could you try and upgrade the bridge from the Nuki app?

My bridge has the newest firmware. It is just a hardware revision 1 model, look at this: https://developer.nuki.io/t/nuki-bridge-firmware-release-notes-public-releases/2797
I registered my lock and the opener to the Nuki beta program (you can do this too by submit them your serial numbers). Also I have paired a keypad as you mention.

Thanks for the info.  Other than the firmware version, the API gives no clues on hardware versions.  I also see that wlanConnected is missing from the API documentation; I'll include a check whether this attribute is actually reported before setting Status Fault.
Not sure I want to use beta software to let me into my apartment.  I'm doing this as a hobby and don't have the (financial) resources to setup a test lab for beta versions.

I just triggered the opener from the home app and this appeared in the log.
Is the UTC time correct?

[18.11.2020, 14:43:22] [Nuki] Nuki_Bridge_4A443E5F: request 31: GET /info
[18.11.2020, 14:43:22] [Nuki] Nuki_Bridge_4A443E5F: request 31: GET /info?ts=2020-11-18T13:43:22Z&rnr=1230&hash=200cb42112d2a9fb6c7f400538539ac09d3f227f6e953acf708b5ad14d5f3a7f: http status 503 Service Unavailable undefined
[18.11.2020, 14:43:22] [Nuki] Nuki_Bridge_4A443E5F: warning: GET /info?ts=2020-11-18T13:43:22Z&rnr=1230&hash=200cb42112d2a9fb6c7f400538539ac09d3f227f6e953acf708b5ad14d5f3a7f: http status 503 Service Unavailable

For Germany?  Looks like it’s consistent with the localtime.  I think you’ll see an unauthorised message if the time is off by too much.
The GET /info is Homebridge NB polling the bridge.  Do you see more warning or error messages?  I think 503 means the bridge is too busy to accept an API call right now.  Did the opener respond?

My question was if it is normal that the UTC time is shown.
No I don't see more error messages or warnings. But yes the opener responded.
Another question. Is it normal that unlocking the smart lock from home app opens the door? This should not be default I think... In my test it opened the door not just unlocking it.

I send an unlock command, not an unlatch.  It should behave the same as unlock from the Nuki app.

I tested it again, it opened the door. From the Nuki app it works as expected.

Odd.  I’m new to Nuki, not sure what’s happening here.  Did the app connect to the lock over Bluetooth or through the bridge?  I think the app connects to the bridge through the Nuki server (at least, that’s what the connection status in the app suggests), whereas Homebridge NB uses the local http API.

Do you have a knob or a handle for your smart lock?  According to the API documentation, an unlock results in unlatch for a smart lock with knob.

When I look in the app it shows first the connection over the Nuki servers.
Hm okay, I have a knob.

Ok, I'll use /lockAction instead of /lock and /unlock.

Fixed in v0.0.5.


Wrong rotary encoder schematic

Fritzing doesn't have the right graphic for the type of rotary encoder that we use. Therefore the schematic for this component doesn't match what we actually have in real life. This is the closest approximation of what we have done.

A graphic like this one would encapsulate the wiring better

As of #5 this is fixed


Attempt 2

👷 Deploy Preview for graceful-eclair-4981f5 processing.

Name
Link

🔨 Latest commit
b98054d7ae3e3d6f10c9cbd34307a07d891bc4c6

🔍 Latest deploy log
https://app.netlify.com/sites/graceful-eclair-4981f5/deploys/65be9bc9140e9c0008893b4d


Documentation updates and exporting types and prop interfaces.

No JIRA ticket
This PR does the following:

Various documentation updates and updating links and syntax.

Bigger updates

The pull request template now includes an Accessibility Checklist section and an Open Questions section.
The README had the most changes.

Removes recommendations that are no longer relevant.
Update example code syntax.
Removes the "npm link" section for local development because I'm pretty sure that no longer works with node 18. We now recommend release candidates.
Removes the unpkg references to the older DS versions since we should really just support v3.

Exports all types and props from components. Some apps need various ones and we might as well export all of them now.

Minor updates

For links, @bigfishdesign13 I updated the vercel links for the V2 and V1 instances to the github pages link. So from https://nypl-design-system-git-reservoir-v216-nypl.vercel.app to https://nypl.github.io/nypl-design-system/reservoir/v2. Let me know what you think.

How has this been tested?

Accessibility concerns or updates

Checklist:

[ ] I have updated the Storybook documentation accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] Review the Vercel preview deployment once it is ready.

@jackiequach good catch, updated


Zabbix Server Install -- Fails with MySQL

I'm trying to use this role to setup and configure a Zabbix Server on CentOS 7, however I can't get it to pass the MySQL part.  Am I doing something wrong?
TASK [dj-wasabi.zabbix-server : MySQL | Create database] *******************************
fatal: [vagrant-cms-zabbix.cyclops -> <IP_ADDRESS>]: FAILED! => {"changed": false, "failed": true, "msg": "unable to find /root/.my.cnf. Exception message: (2002, \"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)\")"}

Relevant configuration:
zabbix_version: 3.2
zabbix_repo: zabbix
zabbix_agent_package_state: latest
zabbix_selinux: true
zabbix_timezone: UTC
zabbix_web: true
zabbix_database_creation: true
zabbix_database_sqlload: true
database_type: mysql
database_type_long: mysql
server_dbport: 3306

I think you don't use a mysql role? This Zabbix role will only install Zabbix, not MySQL.

Actually, this is what we had to do: https://github.com/CTL-Fed-Security/ansible-zabbix-server/commit/ad83b5db89f973ae4a671bada0ab086b2d687618
Sorry, I've been meaning to contribute some of that upstream, but I was under the gun for some quick fixes.

Ok, but that is not really the responsibility of the (this) Zabbix role, but for the mariadb/mysql role you are using. This role assumes that Apache/MariaDB or any other dependent role is executed successfully.

Yup, I see what you're saying: you're totally right. It's definitely the job of the mariadb/mysql role.
So, to use this role [with a mariadb backend], the idea is to:

use a separate mariadb role to get the database running
run this role and have the zabbix-server communicate with maria db

Would it make sense for this role to have the option of automatically configuring the database? I ask because I typically think of roles as when I run them, once they're done, the service (in this case Zabbix-Server) is completely good to go.
But I could be thinking about it wrong too. Would love to hear your thoughts. :-)

Sorry for late answer. What do you mean with automatically configuring the database??
This role already creates a zabbix-server database in MySQL and imports the sql files to create the basic table structure Zabbix needs. If there are more "actions" needed to configure the created MySQL database for the Zabbix Server, then yes please add them if you think this is needed for a default installation/configuration.


Add autoscaling values support for min-max count =0

Both auto_scaling_min_count and auto_scaling_max_count only allow a valid input range from 1-100
They should allow 0 when auto_scaling_enable is set to false, since Terraform requires that max_count and min_count must be set to 0 if autoscaling is set to false

@jmolla31 I can't see any validation that don't allow you to put "0" to auto_scaling_min_count and auto_scaling_max_count, but default values that you should override if you turn off autoscaling:
https://github.com/cloudcommons/terraform-azure-kubernetes/blob/36b84fa164bcdd973ae08c20196728eaf832417a/variables.tf#L96-L112
Could you please provide me with steps to reproduce the issue?

Got you! :)


Error when parsing google.cloud.storage.object.v1.finalized events using StorageObjectData

Expected Behavior
We're able to parse the event and populate data into StorageObjectData object.
Actual Behavior
Got a JSON parse error instead, detailed log below:
2021-01-13 18:25:04.911  WARN 1 --- [nio-8080-exec-7] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of `com.google.events.cloud.storage.v1.Generation` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('1610562282793984'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.google.events.cloud.storage.v1.Generation` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('1610562282793984')
at [Source: (PushbackInputStream); line: 7, column: 17] (through reference chain: com.google.events.cloud.storage.v1.StorageObjectData["generation"])]

Steps to Reproduce the Problem
I'm using the following version
<project>
  <dependencies>
    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>google-cloudevent-types</artifactId>
      <version>0.1.5</version>
    </dependency>
  </dependencies>
</project>

Event body:
{
  "kind": "storage#object",
  "id": "events-quickstart-danglu-knative-dev-290519/java123.txt/1610563082244022",
  "selfLink": "https://www.googleapis.com/storage/v1/b/events-quickstart-danglu-knative-dev-290519/o/java123.txt",
  "name": "java123.txt",
  "bucket": "events-quickstart-danglu-knative-dev-290519",
  "generation": "1610563082244022",
  "metageneration": "1",
  "contentType": "application/octet-stream",
  "timeCreated": "2021-01-13T18:38:02.251Z",
  "updated": "2021-01-13T18:38:02.251Z",
  "storageClass": "STANDARD",
  "timeStorageClassUpdated": "2021-01-13T18:38:02.251Z",
  "size": "1465",
  "md5Hash": "oSOOGqhh4IeDNQ8n7oRxoQ==",
  "mediaLink": "https://www.googleapis.com/download/storage/v1/b/events-quickstart-danglu-knative-dev-290519/o/java123.txt?generation=1610563082244022&alt=media",
  "contentLanguage": "en",
  "crc32c": "w3lquA==",
  "etag": "CLafn4PHme4CEAE="
}

Code:
import com.google.events.cloud.storage.v1.StorageObjectData;

@RestController
public class EventController {

  @PostMapping("/")
  public ResponseEntity<String> receiveMessage(@RequestHeader HttpHeaders headers,
                                               @RequestBody StorageObjectData storageObjectData) {

    System.out.println("Detected change in GCS bucket: " + storageObjectData.getBucket());
    ...

}

cc @bryeung

cc @bryeung

Thanks for reporting.
We need to figure out how to make the program parse the JSON string input as a Long.
Here is the field that it is tripping up on:
https://github.com/googleapis/google-cloudevents-java/blob/master/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java#L37

Thanks for reporting.
We need to figure out how to make the program parse the JSON string input as a Long.
Here is the field that it is tripping up on:
https://github.com/googleapis/google-cloudevents-java/blob/master/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java#L37

@grant I think this error is referring to https://github.com/googleapis/google-cloudevents-java/blob/v0.1.5/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java#L37, as I'm using v0.1.5. is there a way to declare a maven dependency on a specific commit?
The Long generation field is introduced in https://github.com/googleapis/google-cloudevents-java/pull/54/files#diff-899e9027c6e4e6755f2f0e293e2217e4fccd8a00f359b55a9477dcf0b3b96168L37

@grant I think this error is referring to https://github.com/googleapis/google-cloudevents-java/blob/v0.1.5/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java#L37, as I'm using v0.1.5. is there a way to declare a maven dependency on a specific commit?
The Long generation field is introduced in https://github.com/googleapis/google-cloudevents-java/pull/54/files#diff-899e9027c6e4e6755f2f0e293e2217e4fccd8a00f359b55a9477dcf0b3b96168L37

is there a way to declare a maven dependency on a specific commit?
Played with Maven and Gradle a bit, Maven does not support this, Gradle does support but I cannot get it working against this repo as it's a maven project.

is there a way to declare a maven dependency on a specific commit?
Played with Maven and Gradle a bit, Maven does not support this, Gradle does support but I cannot get it working against this repo as it's a maven project.

When testing against the latest commit in master branch by checking out the repo, I'm able to parse the generation field, but found 2 more issues:
Code:
 ObjectMapper objectMapper = new ObjectMapper();
 StorageObjectData data = objectMapper.readValue(JSON_STR, StorageObjectData.class);

by default we cannot deserialize 2021-01-13T18:38:02.251Z into json as java.time.OffsetDateTime because jackson does not understand it, like the following error:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `java.time.OffsetDateTime` (no Creators, like default constructor, exist): no String-argument constructor/factory method to deserialize from String value ('2021-01-13T18:38:02.251Z')
 at [Source: (String)"{"kind":"storage#object","id":"events-quickstart-danglu-knative-dev-290519/java123.txt/1610563082244022","selfLink":"https://www.googleapis.com/storage/v1/b/events-quickstart-danglu-knative-dev-290519/o/java123.txt","name":"java123.txt","bucket":"events-quickstart-danglu-knative-dev-290519","generation":"1610563082244022","metageneration":"1","contentType":"application/octet-stream","timeCreated":"2021-01-13T18:38:02.251Z","updated":"2021-01-13T18:38:02.251Z","storageClass":"STANDARD","timeStora"[truncated 322 chars]; line: 1, column: 401] (through reference chain: com.google.events.cloud.storage.v1.StorageObjectData["timeCreated"])

we need to depend on
    <dependency>
      <groupId>com.fasterxml.jackson.datatype</groupId>
      <artifactId>jackson-datatype-jsr310</artifactId>
      <version>2.11.4</version>
    </dependency>

and register the module:
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
StorageObjectData data = objectMapper.readValue(JSON_STR, StorageObjectData.class);

problem with crc32c field, in the data.proto it's lowercase, but here it's crc32C, so I get the following error:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "crc32c" (class com.google.events.cloud.storage.v1.StorageObjectData), not marked as ignorable

Changed the event to use crc32C, now I can parse the event successfully.

When testing against the latest commit in master branch by checking out the repo, I'm able to parse the generation field, but found 2 more issues:
Code:
 ObjectMapper objectMapper = new ObjectMapper();
 StorageObjectData data = objectMapper.readValue(JSON_STR, StorageObjectData.class);

by default we cannot deserialize 2021-01-13T18:38:02.251Z into json as java.time.OffsetDateTime because jackson does not understand it, like the following error:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `java.time.OffsetDateTime` (no Creators, like default constructor, exist): no String-argument constructor/factory method to deserialize from String value ('2021-01-13T18:38:02.251Z')
 at [Source: (String)"{"kind":"storage#object","id":"events-quickstart-danglu-knative-dev-290519/java123.txt/1610563082244022","selfLink":"https://www.googleapis.com/storage/v1/b/events-quickstart-danglu-knative-dev-290519/o/java123.txt","name":"java123.txt","bucket":"events-quickstart-danglu-knative-dev-290519","generation":"1610563082244022","metageneration":"1","contentType":"application/octet-stream","timeCreated":"2021-01-13T18:38:02.251Z","updated":"2021-01-13T18:38:02.251Z","storageClass":"STANDARD","timeStora"[truncated 322 chars]; line: 1, column: 401] (through reference chain: com.google.events.cloud.storage.v1.StorageObjectData["timeCreated"])

we need to depend on
    <dependency>
      <groupId>com.fasterxml.jackson.datatype</groupId>
      <artifactId>jackson-datatype-jsr310</artifactId>
      <version>2.11.4</version>
    </dependency>

and register the module:
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
StorageObjectData data = objectMapper.readValue(JSON_STR, StorageObjectData.class);

problem with crc32c field, in the data.proto it's lowercase, but here it's crc32C, so I get the following error:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "crc32c" (class com.google.events.cloud.storage.v1.StorageObjectData), not marked as ignorable

Changed the event to use crc32C, now I can parse the event successfully.


Add initial support for reusing drivers as PE drivers

Add functions to read data from driver .ini files
Copy driver files required into the PE driver folder for system devices, scsi and raid controllers, keyboards and mice

This PR should filter and copy the files for the PE stage. I'll test the code and add fixes as required.
@rbalsleyMSFT
This should minimize the amount of copied files for the PE stage while enabling the usage of all necessary devices.

First successful test run completed. I'll test the PE drivers on real hardware asap.
The code copied more than 70 drivers to the PE folder.

Successful test run for Surface Laptop Go 3.
The PE driver folder ended to be 200MB though. Which is a bit too large for me.

The regular Surface Laptop Go 3 driver folder is 2.3GB, so 200MB isn't that bad.
Apparently, Intel says that the 180MB audio driver is required for system stability, so they classified it as System driver.

Avoiding drivers that reference some keywords brings the size of the PE folder for the Surface Laptop Go 3 down to 19.6MB.
I think that's a good size.
I'll test more models later to find out if there are other unexpected sizes.

The list of tested devices for PE driver copy so far are:

HP Z4 G4 Workstation
Microsoft Surface Book 3
Microsoft Surface Laptop Go 3
Microsoft Surface Pro 6
Microsoft Surface Pro 8
Microsoft Surface Pro 11th
Microsoft Surface Studio 2+
Lenovo ThinkBook 16p G2 ACH

It looks like the current code works exactly as expected so far.
I think now would be the time to test this on real hardware.


v3: The autocomplete app where YOU are the hero

This PR contains a PoC for the new design (using select2), please refer to README for specs.

Note that I'm using django-querysetsequence for generic autocompletes now and the API is soooooo sexy, since it's compatible-enough with the QuerySet API, that means even more code removal !

So there's indeed a need for a registry, particularely when it comes to generic relations :)
This is what the new one looks like:
class WidgetMixin(object):
    def __init__(self, url=None, *args, **kwargs):
        self.url = url
        super(WidgetMixin, self).__init__(*args, **kwargs)
        self.attrs['data-autocomplete-light-url'] = url

    @cached_property
    def view(self):
        return resolve(self.url).func.view_class

Yep, that replaces a 166 SLOCs module !

For the curious, here's what the feature list looks like:
django-autocomplete-light v3: the autocomplete app where you are the hero
so simple it should hang itself with a wifi cable.
FEATURES

Django (multiple) choice support,
Django (multiple) model choice support,
Django generic foreign key support,
Django generic many to many relation support,
External app supported in extensions, ie. django-taggit,
Multiple widget support: select2.js, easy to add more.
Creating choices that don't exist in the autocomplete,
Offering choices that depend on other fields in the form,
Dynamic widget creation (ie. inlines), supports YOUR custom scripts too, in case you need any
Public and clean test API for your awesome autocompletes, to support YOUR custom
use cases too,
Django-autocomplete-light V2 compatibil-ish extension in dal_smart, for those
who like DRY and already have a solid understanding of django and autocompletes.

CHANGES from DAL v2

no registry,
no magic,
no url / view,
multiple autocomplete script support
use-case based test system, see tests/ directory at the root of the repo,
no autocomplete classes, but dal_smart extension provides DumbField and
DumbWiget, which delegate rendering, validation and all to SmartView for DRY
purposes, SmartView reuses the API from Autocomplete because it has just kept
on checkmating me no matter how many nights and days I try every possible
refactoring combination. But it comes at a price: pass the request object to
the field or we can't garantee your security :)

Features left to implement / test / demo:

autocompletion filtered per request user
autocompletion filtered by current form state
tags (django-taggit, django-taggit-ng, django-tagging)

Note that in addition to django-generic-m2m, support for django-gm2m was implemented.

Intead of tight coupling like in v2, check out all the loosely coupled modules we end up with: https://github.com/yourlabs/django-autocomplete-light/tree/v3/src

This is feature complete in the admin !
Test coverage, is a lot better than I thought it would be (97%).
An interresting change is that V3 relies on forward compatibility with django ModelForm, properly delegating business logic to form fields, instead of a soup of ModelForm mixins.
Also, instead of adding add-another feature directly into DAL, I'd like to add it in a separate app providing something like django admin's RelatedFieldWidgetWrapper, particularely since I've seen the code pasted in another autocomplete app's code ^^ Note that v3 has better object creation feature integration.
Dal_smart is not there yet, I don't think it's blocking the v3 release because it should provide equivalent features than v2 and we're going to maintain v2 for a while. Only, for new comers v3 is much easier to support and maintain, so we do want this out there.
So far here's the plan I thought could work:

Don't support new versions of django in v2, we support up to 1.10 already so that means we'd support v2 until both 1.8 and 1.10 are deprecated + ~6 months or something on a best effort basis,
Release 3.0 as soon as possible, that means after writing docstrings and documentation,
Implement the non-admin equivalent update-forms in the example apps, with several dynamic inline formset support (the new JS was designed to support any widget as you know, but also on any kind of dynamic inline script),
Release 3.1 with dal_smart, with actual DRY-style autocompletes and nice things from JAL like templated options etc ...

It passes and I'm working on the last page of documentation. Expect a release in minutes !!!


⚠ Bofrost.lu has degraded performance

In 29c32fe, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1255 ms

Resolved: Bofrost.lu performance has improved in 3fa3a8d after 7 minutes.


South Texas invalid object name

https://github.com/zimolzak/instruct-project-etrigger-sql/blob/4302cb9b808eaa49dce02339be17d2382d6d155e/Lung.sql#L2984
The invalid object name seems to be Lung_Sta3n528_3_Exc_NonDx_3_PrevProc_Inpat_0_UnionAllInpICD10Proc.
More specifically:

Msg 208, Level 16, State 0, Line 2850
Invalid object name '#Lung_Sta3n671_3_Exc_NonDx_3_PrevProc_Inpat_0_UnionAllInpICD10Proc'

Line number on Github is not exactly the same as quoted above, and the table name is also not exactly as above. Note the difference in the "sta3n..." string in the object name.

S. Texas reports code working as expected, after re-download of current version.


libopencm3: init at unstable-2023-08-16

Description of changes
Libopencm3 is a low level peripheral library for various ARM Cortex-M microcontrollers. Though it's primarily used as git submodules, several distros, such as Arch Linux and FreeBSD, have packaged it. It is especially a good idea to package this into Nixpkgs so embedded development can benefit from Nixpkgs' awesome cross compilation support.
Things done

Built on platform(s)

[x] x86_64-linux.pkgsCross.arm-embedded
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
[x] Tested building a simple blinky program for STM32F103
23.11 Release Notes (or backporting 23.05 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.

Result of nixpkgs-review pr 251421 run on x86_64-linux 1

This package is intended for cross compiling to arm-none only, which isn't supported by nixpkgs-review. You can checkout this PR in your nixpkgs repo and build it
cd nixpkgs
git fetch https://github.com/NixOS/nixpkgs pull/251421/head:pr251421
git checkout pr251421
nix-build . -A pkgsCross.arm-embedded.libopencm3


Fix news/changelog link

NEWS.md does not exist anymore, so I updated it to the documentation changelog (https://tidierorg.github.io/Tidier.jl/dev/news).

Thank you!


iOS - Module not able to Download file from Camera roll path e.g ph://19816598-0009-4C6B-BE19-2939E73737E8/L0/001

URI = ph://19816598-0009-4C6B-BE19-2939E73737E8/L0/001
local storage URI doesn't download the image.
const getColors = async (uri) => {
    try {
      const colors = await ImageColors.getColors(uri, {
        fallback: '#fff',
      });
      return Platform.OS === 'ios' ? colors.background :  colors.lightMuted;
    } catch (e) {
      console.log(e);
    }
  };

Error:
Error: Could not download image.
    at Object.promiseMethodWrapper [as getColors] (NativeModules.js:103)
    at Object.getColors (index.js:8)
    at getColors$ (index.js:40)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:293)
    at Generator.next (runtime.js:118)
    at tryCatch (runtime.js:63)
    at invoke (runtime.js:154)
    at runtime.js:189
    at tryCallTwo (core.js:45)

Please help @osamaq

The file path looks weird. It should be file://.... Googling tells me it's a common issue when importing an image from the camera roll.
If I'm correct, could you try:
https://github.com/react-native-community/react-native-video/issues/1572#issuecomment-489347591
Or
https://github.com/pentarex/react-native-gallery-manager

Closing due to no follow up.

I have the same issue. Even converted to base64 beforehand, and get the error Error: Could not download image.

save issue


[META] Add product tracking events

Is your feature request related to a problem? Please describe.
Product analytics was recently added into docs to track page views. Let's add improve our ability to understand anonymized user journeys by tracking the following events
### Tasks
- [ ] wallet-connected
- [ ] wallet-logout
- [ ] mouseover
- [ ] touchstart
- [ ] click

CC: @xuan-ytr this is the backlog ticket for adding clicks to Docs.near.org

Given that click through search rate is an OKR, would it be possible to prioritize adding this tracking?

@s-n-park can you connect with @gagdiez to scope out what is needed for this ticket to be completed?

I believe that @gagdiez already added this in since it's showing up in Algolia:

Have been adding to regular metrics reporting, so closing this out as done! :)


Add University of Riau Domain

I'm requesting a free license for student, please accept my request. thank you.

@rizkiadil I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host student.ac.id not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for understanding!


Importing history

I would like to import history from another clipboard manager. When cating that (newline delimitted) file into greenclip, I get
greenclip: Data.Binary.Get.runGet at position 0: not enough bytes

What's a safe way to import?

Hello,
The history of greenclip is in a binary format in order to support newline.
If you want to import your history you can do something like that
for line in $(cat my_old_history.file);
do
 greenclip print "$line"
 sleep 1
done


Update dependabot.yml

coverage: 26.816%. remained the same
when pulling 710a0b0b3356816dcda28bb6548491348ed51613 on DemoBytom-patch-1
into 4041aece67c384a2d815ab23e92583ec8c9ef8ba on develop.


Make GUI window borderless and without the current cyan background.

Has a cyan background and the classic Windows window bar. I just want to have the black imgui part.

Probably moving to qt so this is irrelevant


Added Tecnológico Universitario Vida Nueva

Website: Tecnológico Universitario Vida Nueva
Facebook Page: Tecnológico Universitario Vida Nueva
Higher Technology in Software Development (Third Level Career)

@devAbreu First stage of verification passed, official domain is vidanueva.edu.ec as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://vidanueva.edu.ec/

Hello @philipto, This comment adds more information for the verification process.
Virtual Classroom for this institution. Aula Virtual VIDA NUEVA

@devAbreu First stage of verification passed, official domain is vidanueva.edu.ec as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://vidanueva.edu.ec/

Hello @philipto, This comment adds more information for the verification process.
Virtual Classroom for this institution. Aula Virtual VIDA NUEVA

@devAbreu Pull request merged. Thank you!

@devAbreu Pull request merged. Thank you!

Thank you.


[cyclonedds-cxx] Update to 0.10.3

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

Depends on https://github.com/microsoft/vcpkg/pull/30413

Feature cyclonedds-cxx[idllib] passed on x64-linux.

Please add the following codes in portfile.cmake:
if ("idllib" IN_LIST FEATURES)
    if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
    	file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
    endif()
endif()

@LilyWangLL
Why is it needed? These folders do not exist

PS E:\Lily\30414> .\vcpkg.exe install cyclonedds-cxx[idllib]:x64-windows-static
Computing installation plan...
The following packages will be built and installed:
    cyclonedds-cxx[core,idllib]:x64-windows-static -> 0.10.3
Detecting compiler hash for triplet x64-windows-static...
Installing 1/1 cyclonedds-cxx:x64-windows-static...
Building cyclonedds-cxx[core,idllib]:x64-windows-static...
-- Downloading https://github.com/eclipse-cyclonedds/cyclonedds-cxx/archive/0.10.3.tar.gz -> eclipse-cyclonedds-cyclonedds-cxx-0.10.3.tar.gz...
-- Extracting source E:/Lily/30414/downloads/eclipse-cyclonedds-cyclonedds-cxx-0.10.3.tar.gz
-- Using source at E:/Lily/30414/buildtrees/cyclonedds-cxx/src/0.10.3-36c9dfb596.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Installing: E:/Lily/30414/packages/cyclonedds-cxx_x64-windows-static/share/cyclonedds-cxx/copyright
-- Performing post-build validation
warning: DLLs should not be present in a static build, but the following DLLs were found:

    E:\Lily\30414\packages\cyclonedds-cxx_x64-windows-static\debug\bin\cycloneddsidlcxx.dll
    E:\Lily\30414\packages\cyclonedds-cxx_x64-windows-static\bin\cycloneddsidlcxx.dll

warning: There should be no bin\ directory in a static build, but E:\Lily\30414\packages\cyclonedds-cxx_x64-windows-static\bin is present.
warning: There should be no debug\bin\ directory in a static build, but E:\Lily\30414\packages\cyclonedds-cxx_x64-windows-static\debug\bin is present.
warning: If the creation of bin\ and/or debug\bin\ cannot be disabled, use this in the portfile to remove them
    if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
        file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
    endif()

error: Found 2 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile:

@ex-purple This is the output log.

@LilyWangLL I understand this only happens on Windows.
But if I remove these libraries, then the [idllib] feature will lose its meaning.
The cycloneddsidlcxx library always must be dynamic, because it is a dynamic plugin for idlc tool from cyclonedds port.
We should suppress this warning or I can disable this feature for the "windows & static" case. The first option is preferred because it makes the code generation feature available in Windows.

@LilyWangLL

it is unreasonable to generate *.dll files under static build

But this is exactly what the design of the CycloneDDS project implies.
You can build the cyclondds library statically or dynamically, but the IDL library must always be a dynamic plugin
This restriction deprives port users of a convenient code generation tool

Example of the usage:
find_package(CycloneDDS-CXX CONFIG REQUIRED)

file(GLOB IDL_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/idl/*.idl)

# this command run idlc tool that use dynamic **idlccxx** as plugin
idlcxx_generate(TARGET dds_data_structures_cxx
    FILES "${IDL_SOURCE}"
    DEFAULT_EXTENSIBILITY final
)

# this command links main target with **ddscxx** library that may by static or dynamic
target_link_libraries(main PRIVATE CycloneDDS-CXX::ddscxx

The dll plugin library it is a part of building system application based on DDS. It's not runtime library, it's part of the code generation.
I use static linkage for the CycloneDDS, but I need dynamic IDL plugin library for the code generation. CycloneDDS may builds as static library but for the code generation you need IDL dynamic library as plugin for the idlc tool.
Maybe I should install the IDL plugin library to the tools folder?

cc @vicroms About installation of this feature, could you please give some suggestions? Thanks in advance.

The dll plugin library it is a part of building system application based on DDS. It's not runtime library, it's part of the code generation.
I use static linkage for the CycloneDDS, but I need dynamic IDL plugin library for the code generation. CycloneDDS may builds as static library but for the code generation you need IDL dynamic library as plugin for the idlc tool.
Maybe I should install the IDL plugin library to the tools folder?

cc @vicroms About installation of this feature, could you please give some suggestions? Thanks in advance.

cc @BillyONeal  Please give some suggestions about this PR. Thanks~

Maybe I should install the IDL plugin library to the tools folder?

@ex-purple Sorry for the late reply, this point is correct, please install the IDL plugin library to the tools folder. Thanks.

Maybe I should install the IDL plugin library to the tools folder?

@ex-purple Sorry for the late reply, this point is correct, please install the IDL plugin library to the tools folder. Thanks.

Please also fix port cyclonedds.

Please also fix port cyclonedds.

It looks like https://github.com/microsoft/vcpkg/pull/30413/ already did?

vcpkg-team-review: Do we allow DLLs in static? I always get this mixed up (as to me without single binary deployment static loses all meaning).

... in "static" as in x64-windows-static (static CRT) or as in x64-windows-static-md (dynamic CRT) or as in x64-mingw-static (dynamic CRT)?

... in "static" as in x64-windows-static (static CRT) or as in x64-windows-static-md (dynamic CRT) or as in x64-mingw-static (dynamic CRT)?

As in x64-windows-static. I don't remember if that's what we require right now or not.

Please also fix port cyclonedds.

It looks like #30413 already did?

cyclonedds generated *.dll files under the static build too.

As in x64-windows-static.

The last file list from vcpkg.ci shows 128 files matching *.dll in x64-windows-static, 19 of them being in bin/ (6 llvm, 4 gfortran, 2 directx-dxc, 2 geotrans, 2 lapack-reference, 1 winsparkle, 1 xaudio2redist, 1 arpack-ng). The others are in debug, lib, tools, plugins.

@JavierMatosD @dan-shaw @vicroms @ras0219-msft and I discussed this today but ran out of time to fully cover the topic. There is some nuance with how many CRTs are implicated in the process and similar; my understanding of 'static means single binary deployment is the point' is not how this was interpreted before (as @dg0yt points out).
We'll be discussing it again soon I guess.

I just want to point out that this port would be pretty much useless without the idl plugin library. And it doesn't matter if it is builds statically or dynamically. In any of these cases, we need idlcxx plugin library.

@JavierMatosD @dan-shaw @vicroms @ras0219-msft @markle11m and I discussed this last Thursday. (Sorry, I dropped the ball on writing up the results until now :( )
Static is a request to build everything that is possible to build statically statically. The idea is adhere to the user's request to the maximum extent possible. Our choice is "fail their build" or "give them something that might be acceptable" we chose the latter. This is why we disallow static linking the CRT in that condition in vcpkg_check_linkage, beause most of the world isn't prepared for multiple CRTs flying around. This means x64-windows-static-md is allowed but x64-windows-static is not.

But if I remove these libraries, then the [idllib] feature will lose its meaning.
The cycloneddsidlcxx library always must be dynamic, because it is a dynamic plugin for idlc tool from the cyclonedds port.

Does this mean that those DLLs should be in the tools directory and not in the bin directory at all? That would totally resolve all concerns here.

@BillyONeal

That would totally resolve all concerns here.

Not really.
If we save the plugin to the tools folder, then it is not quite obvious how exactly idlc tool will look for it.
idlc is installed in the tools/cyclonedds and look plugins in the library folder. If we will install idlcxx plugin to the tools/cyclonedds-cxx folder idlc just will not find it

The situation is "in bin means end user must deploy with their app", so if this is some kind of plugin for a tool it should not be in bin. Perhaps there needs to be some patching of the tools in question to do the right thing?
The DLLs in question do appear to break the 'several copies of CRT' rule / exception carved out above; packages\cyclonedds_x64-windows-static\debug\bin\cycloneddsidl.dll for example was built with /MTd which embeds a copy of the CRT into that DLL.
That "ddsperf" depends on "idlc" as a host dependency suggests that the "idlc" feature not supporting static-windows is not too big a problem? After all, if you want the tool to be runnable it needs to be a host dependency, and all the default native triplets on Windows are dynamic.


table.layout

Here are before and after screenshots, with the ugliness circled in red.

This is probably the pragmatic solution for all the inconsistencies in browser rendering with the more semantic label elements. Can I just request one minor change? Instead of the very generic class name of "layout" for the table element, can we use same-line-label-layout?

Sounds fine to me. Go ahead and make that revision if you like.

I renamed the class.


[Suggestion - Not Bug] Make support for X Server Official

Alot of us uses WSL and Win desktop merged to offer the best experience of both side, the result is great!
A bit of work on dbus and also the support of GUI & Desktop manager will be almost complete.
I think that the two side are not in competition, but in fact I think they are very complementary when used with the respective applications merged on a single desktop (Windows).

@iz0eyj - We are glad to hear that you are loving the Win+WSL combo pack! Work is in progress on AF_LOCAL sockets, which should get dbus mostly to a working state. If you would like to see better support for X Server, please head on to our User Voice Page and also provide the feedback there. And, thanks for trying out WSL.

@sunilmut OK, done.
To vote: https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/15693798-make-support-for-x-server-official

which should get dbus mostly to a working state
@sunilmut what things of dbus will not work even with the support for AF_LOCAL sockets?

@ajaykagrawal - Currently, the work is in progress for passing credentials (SCM_CREDENTIALS), which seem to be used by XFCE. With that done, we are not aware of any more broken dbus scenarios. I haven't tried all the scenarios, but if something comes up, we would like to hear about it. Note that these changes in the AF_LOCAL support is in our dev branch and hasn't made it to the release branch yet.

@sunilmut I installed the new Insider build... is possible to provide a new commando Win side?
The command is: lxrun /chengelog... prints the changelog for the present version :)

Closest thing we have to a changelog is our Release Notes.  I also send out each build as a "release" to our documentation repo over at Microsoft/CommandLine-Documentation.
The lxrun /changelog is an interesting idea but will be rather difficult with our current build system.  Something to keep an eye on.

I think the smart way to get your LInux apps into a Window would be to support Wayland protocol.
Once that is done all apps that use a modern tool kit will be able to open windows on the desktop and be managed by the task bar int eh normal windows way.

@barry-scott this is Ubuntu, so Mir and not Wayland.

For me is a good idea!

As Mir is out of the game for ubuntu I would suggest Wayland support.

Closing this comment. There are several X Servers available for use on Windows


Initialize Project

Initialize Project:

[ ]  Discoused a suitable development stack for a social media platform

[ ]  Create a .NET MVC application using the specified development stack.

[ ]  Set up Docker for a more efficient development environment.

 Initialize Project


Fix bug in snap-plugin-collector-docker

The snap collector for docker crashes every 10 - 15 hours which makes the kubernetes app unusable.
Anthony has filed an issue:
https://github.com/intelsdi-x/snap-plugin-collector-docker/issues/44
TODO:

[x] Fix bug

[x] Liveness probe for snap pod so that it restarts if it ever crashes.

Done and done.


Add or_insert_default() to Entry API

Calling or_insert_default() would be equivalent to calling or_insert(Default::default()), but the first might save an allocation.

or_insert(Default::default) is a type error (unless you store function pointers in your map).
I assume you meant or_insert_with(Default::default).
Why do you think would there be any difference in number of allocations?

You're right, I corrected that blunder, I meant or_insert(Default::default()). I would expect that if the key already exists, the default value needs not be allocated (if it allocates at all, of course). Using or_insert you rely on optimizations to avoid the allocation. I might be wrong, but I think that's why unwrap_or_default() exists.

or_insert_with(Default::default) already saves a call to default when the entry is occupied.

@apasel422
Point taken.


Maria: UX/UI Design, 2 weeks

My prototype
Learning Objectives
1. Design Thinking

[x] 🥚 User Empathy: You understand what user empathy is, and can use it
to understand a classmate's needs and help them plan a home page.
[x] 🥚 Design Cycle: You will be able to describe the design cycle and
what steps you will take in each state (Empathize, define, ideate,
prototype, testing and implement).
[x] 🥚 Double Diamond: You can separate the design and deliver phases of a
project. Design and delivery are a never-ending cycle, but it helps to be
clear when you are focusing one or the other.
[x] 🥚 Stakeholder Interviews: You can interview another student to learn
their motivations, needs, and blocks
[x] 🥚 Rapid Prototyping: You can use rapid prototyping techniques (such
as paper prototyping) to test initial design hypotheses and receive user
feedback.
[ ] 🥚 User Journeys: You can write user journeys for websites that you
use.

@MMikhailova I am not sure there are any magic tricks to make designing faster other than a lot of practice 🙂 of course, in terms of UI design, there are some guidelines that can be implemented for composition, color, contrast, etc. but as usual, rules are to be broken, once you know them..you can also try to use style guides (e.g. Material UI by Google)..for UX, you can check out this fun site: https://lawsofux.com/

Week 2
I Need Help With:
I don't need help with week since there are a lot of materials provided for us so it's enough for me to get familiar with UX/UI concepts.
What went well?
I've studied materials provided for this module, practiced Figma more.
I also practiced stakeholder interview with my husband in order to develop a homepage for his work.
What went less well?
We have not yet managed to meet with my partner for the assignment since she was abroad.
The end of the week is very busy for me so I hope I will be able to perform the assignment on time.
Lessons Learned
Stakeholder interview is very important in order to understand what is really expected from the future site.
Sunday Prep Work
Started preparation for JS module.


Failed to fetch Maven dependency @org_apache_thrift_libthrift//jar

I can't download the package from maven.twttr.com.
Referring to the resolution in #832,  I changed the maven_server to maven central repository. And downloaded the jar to my local maven repository.
ls ~/.m2/repository/org/apache/thrift/libthrift/0.5.0-1 libthrift-0.5.0-1.jar  libthrift-0.5.0-1.pom  libthrift-0.5.0-1-sources.jar
But it try to download the package, which is only available in maven.twttr.com, from maven central repository instead.
ERROR: /heron/heron/healthmgr/src/java/BUILD:56:1: no such package '@org_apache_thrift_libthrift//jar': Failed to fetch Maven dependency: Could not find artifact org.apache.thrift:libthrift:jar:0.5.0-1 in org_apache_thrift_libthrift (http://central.maven.org/maven2) and referenced by '//heron/healthmgr/src/java:healthmgr-unshaded'.
Any help to work around this?
Thanks!

@yesimsure - we compile Heron multiple times everyboday and seems to work. Wondering if you are able to connect maven.twttr.com (repo). Try http://maven.twttr.com/ in a browser and navigate and you will find libthrift.jar

@kramasamy Thanks for your replying. http://maven.twttr.com/  is blocked in China. Bazel can't access it in terminal. I can access http://maven.twttr.com/ and download libthrift.jar in my browser some way. I would think I've put the jar in the right path in my local maven repository.
ls ~/.m2/repository/org/apache/thrift/libthrift/0.5.0-1
libthrift-0.5.0-1.jar libthrift-0.5.0-1.pom libthrift-0.5.0-1-sources.jar
Is there any way to let bazel find the maven dependency in my local maven repository? Or it just retrieves jars from the maven_server?


Panic on setting Bitmap font

When setting any of the font options to use Tewi, a bitmap font, attempting to start Alacritty using rofi or dmenu causes it to briefly open before force closing.
When trying to start alacritty from another terminal, it briefly opens and force closes again. Running with backtrace enabled:
device_pixel_ratio: 1
width: 715, height: 217
Initializing glyph cache
num fonts = 790
num fonts = 790
num fonts = 790
thread 'main' panicked at 'index 4 out of range for slice of length 3', /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/slice.rs:560
stack backtrace:
   1:     0x562e86ed05fa - <unknown>
   2:     0x562e86ed596f - <unknown>
   3:     0x562e86ed556e - <unknown>
   4:     0x562e86ed5e17 - <unknown>
   5:     0x562e86ed5ca4 - <unknown>
   6:     0x562e86ed5bc9 - <unknown>
   7:     0x562e86ed5b57 - <unknown>
   8:     0x562e86f01c1d - <unknown>
   9:     0x562e86f01cf9 - <unknown>
  10:     0x562e86e680af - <unknown>
  11:     0x562e86df9044 - <unknown>
  12:     0x562e86df3e3e - <unknown>
  13:     0x562e86dd1037 - <unknown>
  14:     0x562e86dd09e5 - <unknown>
  15:     0x562e86edcd5a - <unknown>
  16:     0x562e86ed6556 - <unknown>
  17:     0x7f24ab0b4290 - __libc_start_main
  18:     0x562e86daa799 - <unknown>
  19:                0x0 - <unknown>

This is the current font configuration in ~/.config/alacritty.yml:
# Font configuration (changes require restart)
font:
  # The normal (roman) font face to use.
  normal:
    family: tewi # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    # style: Regular

  # The bold font face
  bold:
    family: tewi # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    # style: Bold

  # The italic font face
  italic:
    family: tewi # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    # style: Italic

  # Point size of the font
  size: 9.0
  # Offset is the extra space around each character. offset.y can be thought of
  # as modifying the linespacing, and offset.x as modifying the letter spacing.
  offset:
    x: 2.0
    y: -7.0

Please let me know if there's anything else I can provide

I'm also affected by this.
Let me know if you need any debug info.
First rust project I ever tried, will need some guidance how to provide required info.
Usually pretty happy with bitmap version of terminus.
However, there is a workaround.
I downloaded a nerdfont version of Terminus from here  http://nerdfonts.com/
and using ttf no longer crashed alacritty
I even achieved almost pixel perfect setup with the new font.
~ is a bit off, but I think it's because different version of the font.
here is a screenshot of alacritty overlayed by semi-transparent st (which is using bitmap terminus) both running cal.

screen dpi is 227
st runs with static char font[] = "terminus:pixelsize=32:antialias=true:autohint=true";
and here is some parts from yml
dpi:
  x: 227.0
  y: 227.0
...........
size: 10.0
  offset:
    x: 4.0
    y: 12.0

I've run into this issue as well (specifically the 'index 68 out of range for slice of length 64' version of the panic). Here is some gdb info at the point where the panic occurs in font/src/mod.rs:
(gdb) next
212             let mut packed = Vec::with_capacity((bitmap.rows() * bitmap.width()) as usize);
(gdb)
213             for i in 0..bitmap.rows() {
(gdb)
214                 let start = (i as usize) * pitch;
(gdb)
215                 let stop = start + bitmap.width() as usize;
(gdb)
216                 packed.extend_from_slice(&buf[start..stop]);
(gdb) info locals
stop = 8
start = 0
i = 0
iter = core::ops::Range<i32> {start: 1, end: 16}
packed = collections::vec::Vec<u8> {buf: alloc::raw_vec::RawVec<u8> {ptr: core::ptr::Unique<u8> {pointer: core::nonzero::NonZero<*const u8> (0x7ffff511a080 "\000"), _marker: core::marker::PhantomData<u8>}, cap: 128}, len: 0}
pitch = 4
buf = &[u8] {data_ptr: 0x7ffff07f5b80 "\000", length: 64}
bitmap = freetype::bitmap::Bitmap {raw: 0x7ffff50855d8}
glyph = 0x7ffff07e1c08
index = 128
c = 127 '\x7f'
size = 10
face = 0x7ffff07e1bf8
faces = std::collections::hash::map::HashMap<font::FontKey, freetype::face::Face, std::collections::hash::map::RandomState> {hash_builder: std::collections::hash::map::RandomState {k0:<PHONE_NUMBER>83202956, k1:<PHONE_NUMBER>554616794}, table:
std::collections::hash::table::RawTable<font::FontKey, freetype::face::Face> {capacity: 32, size: 4, hashes: std::collections::hash::table::TaggedHashUintPtr (core::ptr::Unique<usize> {pointer: core::nonzero::NonZero<*const usize> (0x7ffff07e1a00), _marker: core::marker::PhantomData<usize>}), marker: core::marker::PhantomData<(font::FontKey, freetype::face::Face)>}, resize_policy: std::collections::hash::map::DefaultResizePolicy}
self = 0x7fffffff4f78
glyph_key = 0x7fffffff3c80
have_recursed = true

Note that pitch = 4, while the difference between start and end (i.e. bitmap.width()) is 8. On our last iteration, we end up here (some variables omitted):
(gdb) info locals
stop = 68
start = 60
i = 15
iter = core::ops::Range<i32> {start: 16, end: 16}
pitch = 4
buf = &[u8] {data_ptr: 0x7ffff07f5b80 "\000", length: 64}
c = 127 '\x7f'

Not sure how best to fix it. My stopgap is to replace line 216 in mod.rs with:
let stop = cmp::min(buf.len() as usize, start + bitmap.width() as usize);

...but I'm sure there's a better way. Let me know if there is any other info from the trace you need.


ENH: Add subset and subsets methods to DisjointSet class.

What does this implement/fix?
This PR adds methods for getting subsets in the DisjointSet class.
@charris the logic is based on the code you kindly shared. Can I interest you in taking a look?

I'll try to take a look at this tomorrow.

Build failure is unrelated (FAILED ../../sparse/linalg/eigen/arpack/tests/test_arpack.py::test_symmetric_modes).
I'd support this being merging in ~24 hour if there are no other comments.

Thanks @pmla, this is a nice helper function for disjoint set

Thanks for the review and merge @sethtroisi


Codeblock not working correctly with mdsvex

Current Behavior
I can pass a string into the Codeblock prop without issues, however passing line numbers or buttonCopied isn’t working for me. Also, the animation upon clicking copy does not work, nor does the text copying at all.
I am not using your highlight store, but doing Syntax highlighting with highlight js myself.
Here is an example of what I have tried:

<CodeBlock language="rust" code={code} buttonCopied="test" lineNumbers=True/>

Expected Behavior

Clicking the copy button should copy the text and display the thumbs up emoji (or whatever was passed into the prop)
Line numbers should show up when passing in the line numbers prop

Steps To Reproduce
mdsvex config:
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import relativeImages from 'mdsvex-relative-images'
import autolinkHeadings from 'rehype-autolink-headings'
import slugPlugin from 'rehype-slug'
import remarkExternalLinks from 'remark-external-links'
import readingTime from 'remark-reading-time'

const config = defineConfig({
	extensions: ['.svelte.md', '.md', '.svx'],

	smartypants: {
		dashes: 'oldschool'
	},

	remarkPlugins: [
		readingTime(),
		relativeImages,
		// external links open in a new tab
		[remarkExternalLinks, { target: '_blank', rel: 'noopener' }],
	],
	rehypePlugins: [
		slugPlugin,
		[
			autolinkHeadings,
			{
				behavior: 'wrap',
			},
		],
	]
});

export default config;

.md file:
---
title: Markdown test
date: 2021-08-30
published: true
tags:
  - svex
  - markdown
  - svelte
  - skeleton
---

This is just here whilst I'm testing a few things.

<CodeBlock language="rust" code={code} buttonCopied="test" lineNumbers=True/>

Package.json
{
	"name": "veloxide.dev",
	"version": "0.0.1",
	"private": true,
	"scripts": {
		"dev": "vite dev",
		"build": "vite build",
		"preview": "vite preview",
		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
		"test:unit": "vitest",
		"lint": "prettier --plugin-search-dir . --check . && eslint .",
		"format": "prettier --plugin-search-dir . --write .",
		"codegen": "kysely-codegen --dialect postgres --out-file ./src/lib/db.d.ts"
	},
	"devDependencies": {
		"@floating-ui/dom": "^1.4.4",
		"@iconify-json/fe": "^1.1.6",
		"@skeletonlabs/skeleton": "^1.9.0",
		"@sveltejs/adapter-auto": "^2.0.0",
		"@sveltejs/kit": "^1.5.0",
		"@tailwindcss/forms": "^0.5.3",
		"@tailwindcss/typography": "^0.5.9",
		"@total-typescript/ts-reset": "^0.4.2",
<EMAIL_ADDRESS>"^0.0.12",
		"@types/pg": "^8.10.2",
		"@types/showdown": "^2.0.1",
		"@typescript-eslint/eslint-plugin": "^5.45.0",
		"@typescript-eslint/parser": "^5.45.0",
		"autoprefixer": "^10.4.14",
		"better-sqlite3": "^8.4.0",
		"eslint": "^8.28.0",
		"eslint-config-prettier": "^8.5.0",
		"eslint-plugin-svelte": "^2.26.0",
		"highlight.js": "^11.8.0",
		"kysely-codegen": "^0.10.1",
		"mdsvex": "^0.11.0",
		"mdsvex-relative-images": "^1.0.3",
		"postcss": "^8.4.25",
		"prettier": "^2.8.0",
		"prettier-plugin-svelte": "^2.8.1",
		"rehype-autolink-headings": "^6.1.1",
		"rehype-slug": "^5.1.0",
		"remark-external-links": "^9.0.1",
		"remark-reading-time": "^2.0.1",
		"sass": "^1.64.0",
		"sqlite3": "^5.1.6",
		"svelte": "^3.54.0",
		"svelte-check": "^3.0.1",
		"tailwindcss": "^3.3.2",
		"tslib": "^2.4.1",
		"typescript": "^5.0.0",
		"unplugin-icons": "^0.16.5",
		"vite": "^4.3.0",
		"vitest": "^0.25.3"
	},
	"type": "module",
	"dependencies": {
		"@lucia-auth/adapter-postgresql": "^1.0.1",
		"html": "link:highlight.js/lib/languages/html",
		"kysely": "^0.26.1",
		"lucia-auth": "^1.8.0",
		"pg": "^8.11.1",
		"rehype-document": "^6.1.0",
		"rehype-external-links": "^2.1.0",
		"rehype-format": "^4.0.1",
		"rehype-infer-reading-time-meta": "^1.1.0",
		"rehype-meta": "^3.3.2",
		"rehype-parse": "^8.0.4",
		"rehype-sanitize": "^5.0.1",
		"rehype-stringify": "^9.0.3",
		"remark-parse": "^10.0.2",
		"remark-rehype": "^10.1.0",
		"showdown": "^2.1.0",
		"unified": "^10.1.2"
	}
}

Link to Reproduction / Stackblitz
No response
More Information
Svelte Config
import { mdsvex } from 'mdsvex';
import mdsvexConfig from './mdsvex.config.js';
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
	extensions: ['.svelte', ...mdsvexConfig.extensions],

	// Consult https://kit.svelte.dev/docs/integrations#preprocessors
	// for more information about preprocessors
	preprocess: [vitePreprocess(), mdsvex(mdsvexConfig)],

	vitePlugin: {
		inspector: true
	},

	kit: {
		// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
		// If your environment is not supported or you settled on a specific environment, switch out the adapter.
		// See https://kit.svelte.dev/docs/adapters for more information about adapters.
		adapter: adapter()
	}
};
export default config;

@liamwh
I didn't try your setup with mdsvex but you have incorrect syntax in the CodeBlock.
you should either do:
<CodeBlock language="rust" code={code} buttonCopied="test" lineNumbers/>

or
<CodeBlock language="rust" code={code} buttonCopied="test" lineNumbers={true}/>

after changing this, the component should work as expected, please confirm it, If it is still not working I will replicate your setup and try to find the problem. 😄

@liamwh just following up to check if this resolved your issue or not

Unfortunately the problem is not resolved. Even if I just do this:

    <CodeBlock language="html" code={`<div>This is meta</div>`}></CodeBlock>

The button still doesn't work with mdsvex. Double checked and there are no console errors.

@liamwh thanks for confirming. We'll take a look.

@liamwh , fwiw, I've had issues getting Skeleton's CodeBlock utility to work inside of MDSveX. I'm not sure, but I think MDSveX's built in syntax highlighter somehow interferes. I've found it much easier to just use MDSveX triple fenced blocks, and they work just fine inside of Skeleton. Other users have definitely added copy buttons to those (https://github.com/pngwn/MDsveX/issues/385).

@liamwh thanks for confirming. We'll take a look.
In the meantime it might be worth looking at using Highlight.js directly per their instructions here:
https://highlightjs.org/usage/

I am already using it directly, so syntax highlighting is fine. Just the copy button and line numbers aren't working 🤔

@liamwh we're going to close this due to inactivity. Happy to reopen if the suggestions above are tested and and reproduction is provided though.


Re-order GPG signing docs and fix code blocks

Moved the section about generating a GPG key to before the config options, as it is technically a pre-requisite and also re-enforces that Gitea will use a specific key for signing rather than a user's etc.
Also changed some code blocks that currently don't render correctly.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a6dc8f7). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #10349   +/-   ##
=========================================
  Coverage          ?   43.72%
=========================================
  Files             ?      585
  Lines             ?    81019
  Branches          ?        0
=========================================
  Hits              ?    35423
  Misses            ?    41210
  Partials          ?     4386

Continue to review full report at Codecov.

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

wake up LGTM bot

wake up LGTM bot


DO NOT MERGE: Testing ProjFS version 2019.1002.3-pr

DO NOT MERGE: This PR was generated to run functional tests on an updated driver.

Closing this PR due to inactivity, Abhijeet please feel free to re-open if you need this PR.


Fix filename

This package is named tailwind, so for better or for worse, we will keep the current naming. Thanks!


Fix resolution of bar charts

Merging PR #310 seems to have failed, in the end leaving only its changelog entry on main.

Weird. The merge commit still looks okay, but the PR reports only the changelog entry.
Btw, adding ".diff" to a URL can give you a diff file which you can apply locally: https://github.com/FlexMeasures/flexmeasures/commit/fd848f09565566b568e85588cf0e2b8dcd86c8a8.diff

The Unix patch command should help applying such a diff file.

Huh, upon further inspection it looks like the changes are actually already incorporated on main. It seems as if my pre-merge (from project-9 into the dev branch for PR #310) ended up moving the meat of that PR into PR #313.


Support for Apple Metal

Hello, I was wondering if there was any support for apple metal or if golearn can utilize a GPU for training

您好，您的邮件已收到，我会尽快查看，^_^

邮件已收到，谢谢！
                 ——赵淼


Material Support and ValidityState API

I'm having an issue when pre-rendering an angular material beta 3 project using ng-render. It is failing on this line: https://github.com/angular/material2/blob/2.0.0-beta.3/src/lib/input/input-container.ts#L243 as validity is undefined on the native element that's being returned. If Domino doesn't support the ValidityState web API, can we add a polyfill for it?

Yes. This has been resolved and md-inputs work now.


Managed State Ideas

Just a thought, if you use stateful widget as di and service locator patterns you get state management without forcing devs into that singleton mess that inherited does..
I use flutter modular see https://github.com/Flutterando/modular
Not the only stateful widget solution out there but one of the better ones, my own internal one had sucked :)

Seems like an interesting project but integration with it would make more sense as a 3rd party library


Inspector ellipsis for more content in large object is not displayed correctly

When inspecting a large object, e.g. the Win32Constants pool dictionary, the PublishedAspectInspector shows only the first 200 aspects, and a further ellipsis entry that when clicked shows the next 200, and so on. The displayed key and value for this ellipsis entry are incorrect, being an integer from the sequence 201, 401, and so on, and a value with the icon "..." (correct) and the string value "a MessageNotUnderstood" (clearly not correct).

It can be fixed with implementing:
KeyedAspectBatch
readFrom: anObject
^'next ', batchSize printString, ' items'
But in the "Key" column you have you will have [batchSize] value


Flerovium: Java Edition

This is meant to be a replacement of the older Python based Flerovium, since discord.py is dead...
But it got revived recently (like 3 weeks ago) so I think I'll stash this version on the drawer for now.
Who knows, it might die again.

darn it, why do I do it here


Fabric 4.4.5-4.5 tp boat/horse bug

While sat in a boat or on a horse, the /home may not fully work.
I don't think it is teleporting the player at all, you just seem to fall through the world endlessly till you use the /back or redo the /home  commands.
Short video showing what I mean
https://drive.google.com/file/d/1S12Nb5hn4KXMZSttUWDH65qGy83dXyKZ/view
Other mods were installed when I first heard of this from another user but in this video I had removed all mods from the server and only have;
fabric-api-0.88.1+1.20.1
HuskHomes-Fabric-4.5
Installed on the server and the client is 100% vanilla.
The server was running HuskHomes-Fabric-4.4.5 when the player first told me about it, and I updated the server in hopes it fixed it and then tested with HuskHomes-Fabric-4.5 for the video.
I have not tested with other teleport commands, only what you see in the video.

probably need to add some checks to not let you teleport in those situations. fabric is complicated lol

I do remember a couple versions back (not sure which) where I could teleport while sat in a boat with no problems. When teleporting back, it would take me back, just not in the boat, so I would start to sink under the boat which I was okay with.
Right now when it does work and teleport you out of the boat/horse to where you want to go, going back does place you back into the boat/horse which is also nice but I personally don't mind how you want to do it.
As long as you know :)