[Bug]: VScode not opening after command: Reload Vibrancy

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When installing vibrancy and reloading it, I will be prompted to restart vscode. After closing the program doens't open anymore. Problem is solved after reinstalling vscode without enabling this extension. Problem reocurd after enabling/reloading this extension
vscode . --verbose output:
[main 2024-10-09T09:03:01.348Z] PolicyConfiguration#updatePolicyDefinitions [
  'http.proxy',
  'http.proxyStrictSSL',
  'http.proxyKerberosServicePrincipal',
  'http.proxyAuthorization',
  'http.proxySupport',
  'http.systemCertificates',
  'http.experimental.systemCertificatesV2',
  'telemetry.telemetryLevel',
  'telemetry.enableTelemetry',
  'update.mode',
  'update.channel',
  'update.enableWindowsBackgroundUpdates',
  'update.showReleaseNotes'
]
[main 2024-10-09T09:03:01.352Z] NativePolicyService#_updatePolicyDefinitions - Found 1 policy definitions
[main 2024-10-09T09:03:01.368Z] [File Watcher (node.js)] Request to start watching: c:\Users\semva\AppData\Roaming\Code\User (excludes: <none>, includes: <all>, correlationId: <none>),c:\Users\semva\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, correlationId: <none>)
[main 2024-10-09T09:03:01.371Z] NativePolicyService#_onDidPolicyChange - Updated policy values: {}
[main 2024-10-09T09:03:01.371Z] PolicyConfiguration#update [ 'update.mode' ]
[main 2024-10-09T09:03:01.395Z] Starting VS Code
[main 2024-10-09T09:03:01.395Z] from: c:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app
[main 2024-10-09T09:03:01.395Z] args: {
  _: [ 'C:\\Users\\semva' ],
  diff: false,
  merge: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  'pre-release': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-gpu': false,
  'disable-chromium-sandbox': false,
  'ms-enable-electron-run-as-node': false,
  telemetry: false,
  debugRenderer: false,
  'enable-smoke-test-driver': false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'skip-welcome': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'use-inmemory-secretstorage': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': '5c1d3046-3d2a-4578-9b71-e5af7d88ee15',
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  'disable-gpu-sandbox': false,
  '__enable-file-policy': false,
  'enable-coi': false,
  'no-proxy-server': false,
  'no-sandbox': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  'disable-dev-shm-usage': false,
  'profile-temp': false,
  logsPath: 'C:\\Users\\semva\\AppData\\Roaming\\Code\\logs\\20241009T110301'
}
[main 2024-10-09T09:03:01.396Z] Resolving machine identifier...
[main 2024-10-09T09:03:01.397Z] Resolved machine identifier: a28f9d244a8d58463acf46c49818d3559ed6cb5bf160b65d6987a669a85615a6
[main 2024-10-09T09:03:01.397Z] Main->SharedProcess#connect
[main 2024-10-09T09:03:01.397Z] PolicyConfiguration#updatePolicyDefinitions [
  'terminal.integrated.automationProfile.linux',
  'terminal.integrated.automationProfile.osx',
  'terminal.integrated.automationProfile.windows',
  'terminal.integrated.profiles.windows',
  'terminal.integrated.profiles.osx',
  'terminal.integrated.profiles.linux',
  'terminal.integrated.useWslProfiles',
  'terminal.integrated.inheritEnv',
  'terminal.integrated.persistentSessionScrollback',
  'terminal.integrated.showLinkHover',
  'terminal.integrated.ignoreProcessNames'
]
[main 2024-10-09T09:03:01.398Z] PolicyConfiguration#updatePolicyDefinitions [
  'terminal.integrated.defaultProfile.linux',
  'terminal.integrated.defaultProfile.osx',
  'terminal.integrated.defaultProfile.windows'
]
[main 2024-10-09T09:03:01.401Z] PolicyConfiguration#update []
[main 2024-10-09T09:03:01.401Z] PolicyConfiguration#update []
[main 2024-10-09T09:03:01.403Z] StorageMainService: creating application storage
[main 2024-10-09T09:03:01.407Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2024-10-09T09:03:01.407Z] lifecycle (main): phase changed (value: 2)
[main 2024-10-09T09:03:01.407Z] windowsManager#open
[main 2024-10-09T09:03:01.409Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: '084b84c3aac32b8802e0f88a92308c37', uri: [$] },
    type: 2,
    exists: true
  }
]
[main 2024-10-09T09:03:01.409Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '084b84c3aac32b8802e0f88a92308c37', uri: [$] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2024-10-09T09:03:01.410Z] IPC Object URL: Registered new channel vscode:8a17cd45-2efd-45cc-afd3-c22d608dfdab.
[main 2024-10-09T09:03:01.410Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 0, y: 0, width: 352, height: 224 }
[main 2024-10-09T09:03:01.410Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1536, height: 816 }
[main 2024-10-09T09:03:01.410Z] window#ctor: using window state { mode: 0, x: 0, y: 0, width: 352, height: 224 }
**[main 2024-10-09T09:03:01.437Z] Error: Cannot find module './vibrancy.js'**
Require stack:
- c:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vscode-vibrancy-runtime-v6\index.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1129:15)
    at o._resolveFilename (node:electron/js2c/browser_init:2:117401)
    at Module._load (node:internal/modules/cjs/loader:974:27)
    at f._load (node:electron/js2c/asar_bundle:2:13377)
    at Module.require (node:internal/modules/cjs/loader:1195:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at App.<anonymous> (c:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vscode-vibrancy-runtime-v6\index.cjs:91:22)
    at App.emit (node:events:525:35)
    at s._init (node:electron/js2c/browser_init:2:10489)
    at new K (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:105:110100)
    at b.j (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:55:1241)
    at b.createInstance (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:55:733)
    at he.ob (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:44509)
    at he.ab (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:33833)
    at he.W (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:32058)
    at he.open (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:28339)
    at async ft.startup (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:56216)
    at async ye.a (C:\Users\semva\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:108:1116)
[main 2024-10-09T09:03:01.437Z] Lifecycle#kill()
[main 2024-10-09T09:03:01.437Z] Lifecycle#onWillShutdown.fire()
[main 2024-10-09T09:03:01.438Z] Lifecycle#onWillShutdown - begin 'instanceLockfile'
[main 2024-10-09T09:03:01.439Z] storageMainService#onWillShutdown()
[main 2024-10-09T09:03:01.439Z] Lifecycle#onWillShutdown - begin 'applicationStorage'
[main 2024-10-09T09:03:01.439Z] Lifecycle#onWillShutdown - begin 'extHostStarter'
[main 2024-10-09T09:03:01.439Z] Lifecycle#onWillShutdown - end 'extHostStarter'
[main 2024-10-09T09:03:01.439Z] StorageMainService: closed application storage
[main 2024-10-09T09:03:01.439Z] Lifecycle#onWillShutdown - end 'applicationStorage'
[main 2024-10-09T09:03:01.442Z] [File Watcher (node.js)] Request to stop watching: c:\Users\semva\AppData\Roaming\Code\User,c:\Users\semva\AppData\Roaming\Code\User\settings.json
[main 2024-10-09T09:03:01.442Z] [File Watcher (node.js)] stopping file watcher on c:\Users\semva\AppData\Roaming\Code\User
[main 2024-10-09T09:03:01.443Z] [File Watcher (node.js)] stopping file watcher on c:\Users\semva\AppData\Roaming\Code\User\settings.json
[main 2024-10-09T09:03:01.444Z] Lifecycle#onWillShutdown - end 'instanceLockfile'
[main 2024-10-09T09:03:01.450Z] Lifecycle#app.on(window-all-closed)
[main 2024-10-09T09:03:01.450Z] Lifecycle#app.on(before-quit)
[main 2024-10-09T09:03:01.451Z] Lifecycle#onBeforeShutdown.fire()
[main 2024-10-09T09:03:01.451Z] [WindowsStateHandler] onBeforeShutdown {
  lastActiveWindow: undefined,
  lastPluginDevelopmentHostWindow: undefined,
  openedWindows: []
}
[main 2024-10-09T09:03:01.451Z] Lifecycle#app.on(will-quit) - begin
[main 2024-10-09T09:03:01.452Z] Lifecycle#app.on(will-quit) - after fireOnWillShutdown
[main 2024-10-09T09:03:01.452Z] Lifecycle#app.on(will-quit) - calling app.quit()```
after a full reinstall, the problem still occurs.
This problem is not pressent on the newest version (1.94.1)

### Expected Behavior

restart vscode without an error, display the acrylic background and work correctly

### Steps To Reproduce

1. download vscode
2. select a theme (Dark+ or any other)
3. download vibrancy continued
4. reload vibrancy through the command
5. restart vscode

### Environment

```markdown
- OS: Windows 11
- VSCode: 1.85.2
- Extension: v1.1.40
- Theme: Dark+

Anything else?
Note: The module has worked for 2 days, without changing anything, this bug occurd. It is a wonderful module and I hope support for the newest version (window snapping) is out soon so I can use it again

After testing I've concluded that it is caused by the newer v1.1.40
After downgrading to v1.1.37, the issue is resolved.
This does mean that for further releases, this problem will probally still occur

I didn't properly test the last update on Windows, my apologies for causing your VSCode to crash, version 1.1.41 contains the fix and is now being released.


Update waf shebang for python2, fixes #13

I wonder why upstream does not do this? Locally I have python2 available as well, so sg.


Implement itertools.batched with a function to drop requirement of Python 3.12+ in InfluxDB demo

https://github.com/GreptimeTeam/demo-scene/blob/2f46a3dc673bf6020ccb8b561ff586925fa67dad/influxdb-lineprotocol/ingest.py#L27-L31
Ref Python Doc - https://docs.python.org/3/library/itertools.html#itertools.batched

I realize that there may be more than one solutions in pure Python, and you can choose the best one. Let me start with this:
def batched(iterable: Iterable[T],  n: int) -> Iterator[tuple[T, ...]]:
    iter_ = iter(iterable)
    while True:
        batch = tuple(itertools.islice(iter_, n))
        if not batch:
            break
        yield batch

@frostming Let's rocks :D
Would you send a patch directly or I'd do you a favor to convey this function ...
BTW, I just noticed that I don't add type checks here. And I ever thought of using PDM to build venv and deps but I rush into a working demo first.


cleanup iomanager

Quite a large refactor adopting the new world structure.

[x] IOmanager is mostly single purpose again. it stores recent proto messages and application manager receives messages when needed. This should remove most race conditions in our system already.
[x] game analyzer is not a singleton anymore. I realized that generating a full 'analysis report' is often unnecessary to calculate and the performance hit is just too big. I converted it to static function definitions: just call one when you need it. This needs restructuring in a later PR.
[ ] some necessary field refactors in some coaches, game analyzer, etc.

Field in World is a 'temporary' solution. I wanted to get it out of IOManager at least.
The const reference to the interface is probably a bug indeed. Although I am not sure if we would want a pointer.... we might want to think about a new method of communicating data to the interface. (Like rust channels or something similar). I know ER-Force uses QT slots and signals for this purpose. I do not specifically like that, but it might be the best option compared to other things i can think of.

Field in World is a 'temporary' solution. I wanted to get it out of IOManager at least.
The const reference to the interface is probably a bug indeed. Although I am not sure if we would want a pointer.... we might want to think about a new method of communicating data to the interface. (Like rust channels or something similar). I know ER-Force uses QT slots and signals for this purpose. I do not specifically like that, but it might be the best option compared to other things i can think of.

I am a bit confused why you talk about the interface? The bug I think exists, is in GameAnalyzer. Since GameAnalyzer barely takes any performance we probably can solve this by not making it a seperate thread anymore.
For a interface decoupling I have proposed to use protobuf/something else as a sole communication channel between interface and AI. Then you can just run the interface in a seperate thread and synchronize information every AI tick by something like:
interfaceOutput = Ai.tick(interfaceInput). Meaning you don't need to constantly monitor and forward all input from interface to AI. You just aggregate all interface inputs of the last 1/60th second. Similarly, you also aggregate all output from the AI into one message and send it to the interface.
Won't be easy and will be a lot of work though. I personally heaviliy dislike ER-Force's solution to this. It's very messy and hard to keep track of. They pass around massive protobuf objects between a ton of classes and allow each of these classes to write and read from them. This is almost worse than static globals IMO.

I am currently restructuring the game analyzer as well. It was a singleton running in a separate thread. Although it's results where almost always unused and it gave quite a performance hit. I am removing the singleton pattern and I am making a clear division of functions.  I expect this to give a performance improvement.

No. I’m stuck with the defenders now. New world doesn’t properly support them.

This PR is finished. Would like some critical reviews. Dont forget to check things like field side switching, color switching, running with a referee, etc.

Read more about the performance of this PR here: https://github.com/RoboTeamTwente/roboteam_ai/issues/815
Restructuring iOManager gave a 20% increase in performance on my machine.

No that was not the intention, the intention was to do a part of it. Changing world in one place makes it change in 10 other files so I suggest doing that in another PR

I see you are correct, will fix it soon.

Did a final test with GrSim and everything looked fine.


certgen - switch to cert-manager

Good day!
I see that inside of helm chart we are using kind: Job to generate certificates. I'd like to ask to support disabling of this job as I can issue these certificates with cert-manager like I proposed in another project https://github.com/wazuh/wazuh-kubernetes/pull/577

hey @gecube we highlight this integration in https://gateway.envoyproxy.io/v1.0.1/install/custom-cert/, in this case the job is a no-op, we can do better by adding explicit support to disable the job in helm

@arkodg Hi! Thanks, I already found this article on my own. It was tough, but anyway appreciate your fast reply.

we can do better by adding explicit support to disable the job in helm

super idea!!!!

It looks like we need to add a knob to turn/off, I think I should be able to complete this work.  :)

thanks for picking this one up @ShyunnY,
https://github.com/envoyproxy/gateway/blob/90a4b9910d86e19ed4a4d768c9e002eed54a2adc/charts/gateway-helm/values.tmpl.yaml#L68
thinking out loud, one UX in Helm for this could be
certgen: nil

Disabling the cert-get job may also impact other features like OIDC, and it may be hard to make the user aware of this for such cases.
Since running the cert-gen job for this above case is a no-op, we prefer to keep in on, and skip generating certs for this case


2nd PR: Replace Apache HttpClient with com.cloudant.http.Http class

What
This is the second part for replacing the http dependency from Apache’s httpclient to Java’s HttpURLConnection.  Migrating to HttpUrlConnection is required for us to use java-cloudant within sync-android.
How

Replace HttpPut and RESTful commands of Apache’s httpclient with sync-android’s Http (using Java’s HttpUrlConnection)
Replace HttpResponse with HttpConnection’s InputStream response
Remove imports for org.apache.http
Remove any methods that were only specific to Apache’s httpclient (i.e. connection manager)
Remove CouchDb Android class
Remove shutdown method from CloudantClient and CouchDbClient
Add URI’s getUserInfo to URIBuilder and CouchDbProperties.  This is needed for setting auth property in HttpConnection
Use sync-android’s executeToInputStream for executing HTTP calls and properly handling the response
Add Rich's commit for intermittent problems with Replicator and Replication tests (Rich’s branch 52593-replicate-tests).
Remove shutdown comment in javadoc
Fix return javadoc for HTTP API
Remove shutdown method from test cases
Ignore SSL test cases - will enable in next PR with Rich’s interceptor branch (53085-ssl-setters)
Ignore cookieNegativeTest - enable in next PR with cookie interceptor fixes
Ignore Replicator tests. Currently, they succeed for CouchDB but several fail for Cloudant database.
Will be enabled with the PR from 52593-replicate-tests.

Testing
Use existing test cases. Test cases from sync-android in next PR (i.e. HttpTest)
reviewer @ricellis
reviewer @rhyshort

+1 after my last little comment is fixed

Yep +1 after removing that note. This will need some squashing before merging.


Add resizing of images attached to emails

From @nzola

Why most of the pictures I receive from Africa are in kb, but all the pictures and videos I take from my Sumsung phone are .in Mb?
This means if I had to use my cellphone with the Lokole I won't be able send any pictures. Because the Lokole attachment is limited to 1Mb.

The higher size of the phone pictures is because of higher resolution and quality. We should implement image size reduction for emails sent from the app just like we implemented it for emails sent to the app in opwen-cloudserver's email_parser.

Can the edge app optimize photo attachments before sending them and only reject them if the optimized image is > 1 MB? optimage and pyjpegoptim are libraries that can be used to do this (optimage uses pyjpegoptim). You can also convert images to WebP.

We should pull the email processing code from the server into a shared library so that it can be leveraged on both sides of the exchange.


fix(kvdictAppendAction): maxsplit set to 1

Fixes #9

This PR sets the maxsplit parameter of the split method used in kvdictAppendAction to allow values such as >=1.2.3

the owners created a patch by their own based on this PR
thanks guys


🐛 [ Firebase Message] Unhandled Exception: NoSuchMethodError: The method 'toRawHandle' was called on null.

Describe the bug
I was having trouble updating firebase message
E/flutter (29231): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: NoSuchMethodError: The method 'toRawHandle' was called on null.
E/flutter (29231): Receiver: null
E/flutter (29231): Tried calling: toRawHandle()
E/flutter (29231): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
E/flutter (29231): #1      MethodChannelFirebaseMessaging.registerBackgroundMessageHandler (package:firebase_messaging_platform_interface/src/method_channel/method_channel_messaging.dart:181:42)
E/flutter (29231): #2      FirebaseMessagingPlatform.onBackgroundMessage= (package:firebase_messaging_platform_interface/src/platform_interface/platform_interface_messaging.dart:107:14)
E/flutter (29231): #3      FirebaseMessaging.onBackgroundMessage (package:firebase_messaging/src/messaging.dart:103:31)

file pubspec.yaml
environment:
  sdk: ">=2.7.0 <3.0.0"

module:
  androidX: true
dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: 1.0.0
  google_maps_flutter: 1.0.3
  google_map_location_picker: 4.0.0
  mvc_pattern: 6.3.0
  global_configuration: 1.6.0
  http: 0.12.2
  html: 0.14.0+4
  shared_preferences: ^2.0.4
  flutter_html: 1.2.0
  #laichi change 2020/2/25
  #flutter_svg: 0.18.1
  location: 3.0.2
  webview_flutter: ^1.0.7
  url_launcher: 5.7.7
  cached_network_image: ^2.5.0
  fluttertoast: 4.0.1
  flutter_staggered_grid_view: 0.3.2
  intl_utils: ^1.8.0
  carousel_slider: 2.3.1
  cloud_firestore: ^0.16.0
  image_picker: ^0.6.7+21
  firebase_storage: ^7.0.0
  photo_view: ^0.10.3
  numberpicker: ^1.3.0
  intl_translation: ^0.17.8
  firebase_core: ^0.7.0
  firebase_auth: ^0.20.0+1
  firebase_messaging: any #^8.0.0-dev.15
  google_sign_in: ^4.5.9
  sign_in_with_apple: ^2.5.2
  crypto: ^2.1.5
  flutter_facebook_auth: ^2.0.2
  flutter_svg: ^0.19.3
  #flutter_local_notifications: ^4.0.1+2
  flutter_local_notifications: ^3.0.0
dependency_overrides:
  intl: ^0.17.0-nullsafety.2
  #firebase_messaging: ^6.0.16

dev_dependencies:
  flutter_test:
    sdk: flutter

please help me

Hi @Bac-Pham
Do you mean when upgrading to the latest version of firebase messaging or on the current version?
Does the issue persist if you use all of the latest versions for the firebase packages from pub.dev?
Thank you

Hi @markusaksli-nc
I am using firebase message version ^8.0.0-dev.15
before i using firebase message version ^6.0.16
if i use version  ^6.0.16  then it is good but i use version ^8.0.0-dev.15 then show  on error
Note: i can update firebase version 7.0.3 or 9.0.0

Hi guy!
The function FirebaseMessaging.onBackgroundMessage need paramater is a top-level function and cannot be anonymous.
That all!
See example:
import 'dart:developer';
import 'dart:io';
import 'package:firebase_messaging/firebase_messaging.dart';
import '../barrel.dart';
Future backgroundMessageHandler(RemoteMessage message) async {
log("OnBackgroundMessage: $message");
return FirebaseCloudMessaging._handler(message);
}
class FirebaseCloudMessaging {
static final FirebaseMessaging instance = FirebaseMessaging.instance;
static initFirebaseMessaging() async {
if (Platform.isIOS) {
instance.requestPermission();
}
FirebaseMessaging.onMessage.listen((message) {
log("OnMessage: $message");
_handler(message, onlyShow: true);
});
FirebaseMessaging.onMessageOpenedApp.listen((message) {
log("OnMessageOpenedApp: $message");
_handler(message);
});
FirebaseMessaging.onBackgroundMessage(backgroundMessageHandler);
}
static _handler(RemoteMessage message, {bool onlyShow = false}) {
if (onlyShow) {
LocalNotification.showNotification(message.notification.title,
message.notification.body, message.data.toString());
} else {
selectNotificationSubject.add(message.data.toString());
}
}
}

You can just use the latest 9.0.0
Seems like what @lqmminh said is the case so if you just provide a valid top-level function it will work.


I cannot connect to MQTT broker on RPI3

Hello there!
I have an issue trying to make an ESP32 connect with MQTT to a Raspberry Pi 3B+. The issue is that once I try to establish connection I get the following error message:
[E][WiFiClient.cpp:258] connect(): socket error on fd 62, errno: 104, "Connection reset by peer" failed, rc=-2 try again in 5 seconds
My code is as follows:
  //Libraries
  #include "Arduino.h"
  #include "Wire.h"
  #include "SPI.h"
  #include "DHT.h"
  #include "WiFi.h"
   #include "PubSubClient.h"

  char ssid[] = "xxxxxxxx";
  const char* password =  "xxxxxxxx";
  //const char* mqtt_server = "xxxxx";

  //Constants
  #define CS 16 // Assignment of the CS pin
  #define DHTPIN A7     // what pin we're connected to
  #define DHTTYPE DHT11   // DHT 22  (AM2302)
  #define MSG_BUFFER_SIZE	(50)
  DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino

  //Variables
  int chk;
  float hum;  //Stores humidity value
  float temp; //Stores temperature value

    //MQTT
WiFiClient espClient;
    PubSubClient client(espClient);

void connectNetwork(){
  delay(10);
  pinMode(13, OUTPUT);
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  WiFi.mode(WIFI_STA);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.println(WiFi.status());
  }

  Serial.println(WiFi.localIP());
  Serial.println("Connected to the WiFi network");
}

void reconnect() {
  // Loop until we're reconnected
  while (!client.connected()) {
    Serial.print("Attempting MQTT connection...");
    // Create a random client ID
    String clientId = "ESP8266Client-";
    clientId += String(random(0xffff), HEX);
    // Attempt to connect
    if (client.connect(clientId.c_str())) {
      Serial.println("connected");
      // Once connected, publish an announcement...
      client.publish("outTopic", "hello world");
      // ... and resubscribe
      client.subscribe("inTopic");
    } else {
      Serial.print("failed, rc=");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds");
      // Wait 5 seconds before retrying
      delay(5000);
    }
  }
}

void setup(){
  dht.begin();
  SPI.begin(); // initialization of SPI port
  SPI.setDataMode(SPI_MODE0); // configuration of SPI communication in mode 0
  SPI.setClockDivider(SPI_CLOCK_DIV16); // configuration of clock at 1MHz
  pinMode(CS, OUTPUT); //configure pin connected to chip select as output
  connectNetwork();
  client.setServer(mqtt_server, 1883);
}

void publishData(){
    char msg[MSG_BUFFER_SIZE];
    int value = 1;
    snprintf (msg, MSG_BUFFER_SIZE, "hello world #%ld", value);
    Serial.println(msg);
    client.publish("test", msg);
    client.state();
}

void lightSensor(){
  byte intensity = 0;
  digitalWrite(CS, LOW); // activation of CS line
  intensity = SPI.transfer(0) << 3; // Aquisition of first 5 bits of data without leading zeros
  intensity |= (SPI.transfer(0) >> 4); //Aquisition of last 3 bits of data and appending
  digitalWrite(CS, HIGH);

  Serial.print("Light intensity = ");
  Serial.println(intensity);
  delay(1000);
}

void humiditySensor(){
    hum = dht.readHumidity();
    temp= dht.readTemperature();
}

void loop()
{

    if (!client.connected()) {
      reconnect();
    }
    client.loop();
    delay(100);
    humiditySensor();
    delay(100);
    lightSensor();
    publishData();
}

I don't quite know what is wrong. I've tried on several networks changing IPs of both the RPI and the ESP. I can easily publish from the raspberry to a subscriber on the raspberry, so it shouldn't be broker that is faulty, so I assume that the error is related to the library or the code I've written. Thanks in advance for the help!

I solved it by re-installing pubsubclient multiple times.


Download link broken for MacOS GUI client on official website

Not sure if this is the appropriate place to report this, but the download link for the MacOS GUI client is broken.
https://downloads.getmonero.org/gui/mac64
– Evan

Yes, this is the correct place. It's currently being worked on.

Should be fixed now.
+resolved

@dEBRUYNE-1 The bot isn't implemented here on monero-site.

@evantbyrne The download is up. Can you please close this issue?

Looks like it working now. Thanks everyone!

@QuickBASIC I'll page pigeons. I thought it was working here already :-P


#14 - Add proper support for string starts/ends operators

1. Issue Link:
https://github.com/intuit/graphql-filter-java/issues/14
2. Brief explanation of a change:
Implement START/END string operators instead of falling through CONTAINS.
3. Will it break existing clients and code in production?
Can possibly be considered a breaking change as behaviour will be more restrictive with this change.

Looks Good! 🚀  Thanks @roele for your contributions.


cleanup includes

Wow, @schiller-manuel! Serious job, thanks!

There is more to do here, please don't merge yet

After merging #292 this one unfortunately now has a conflict :( Something you could look into, @schiller-manuel ?

hm I don't know what happend here and why it is closed now
I rebased and pushed again, can you re-open and merge @chrfalch ?
If not, I can open a new PR.

I've reopened it again - no idea why it was closed... I've had a couple of issues with statuses and checks hanging on Github tonight so we'll see if this is all fixed tomorrow :)

@chrfalch can this be merged?

Yes, will do a quick build test, @schiller-manuel - and then it should be ready.

Yes, will do a quick build test, @schiller-manuel - and then it should be ready.

Thanks - awesome again, @schiller-manuel !!!! 🥳


Use action creators inside when clauses

See #8 . The interface should be the following:
when('text', actionCreator, ...params);

and optionally:
when('text', [actionCreator, ...params], [actionCreator, ...params], ...);

They can be recognized by Array.isArray(). Still, I am considering leaving out the latter.

Mostly works. There is still one small problem: Tests. Since when internally uses skipDependentTests from mochaHelpers -- and I want to test it is called when an error occurs. In order to do so, I'd have either to:

Mock skipDependentTests which I cannot do without exporting it within object.
Make skipDependentTests a parameter of an internal implementation of when.

I am going to close this issue and do something with tests in #12


Fix converting rows with FLOAT4 and BOOLEAN

From investigating with our external dev credentials, it looks like we were converting Float4 and Boolean from the wrong types. When I set the redshift column to the REAL type, it returned a Float4, so I don't think our issue was that we weren't supporting the type. Also, I suspect that the FLOAT type should also be converted as a double, but in Redshift it's synonymous with DOUBLE and I couldn't get it to actually return that type.
I'm a little suspicious of the solution because it implies either that FLOAT4 has never worked or that AWS changed the return type.
Fixes #204

Nice, thanks for checking this!
Do you think we should just consider FLOAT the same case as FLOAT8? It's what I'm seeing for the DOUBLE PRECISION column type.

I'm a little suspicious of the solution because it implies either that FLOAT4 has never worked or that AWS changed the return type.

Same about the boolean, right?
By the way, for future reference if we want to test this out, it's much easier to write a query like SELECT CAST('123456' AS REAL); than to create a cluster/table/column of a certain type.


data-prefix-icon & data-suffix-icon on all outer divs

Discussed in https://github.com/orgs/formkit/discussions/1575

Originally posted by lasseitorp December 15, 2024
Currently only certain inputs get the data-prefix-icon and the data-suffix-icon prop when an icon is added. As an example the select gets it, but the dropdown doesn't.
For consistency it would be nice if all related inputs get the same data props.

This is resolved at FormKit Pro v0.127.14


Add more tests from Pygments

Currently we have tests to parse expected token types. Need to add more test cases from https://github.com/pygments/pygments/blob/master/tests/test_data.py

closing against PR #6


Open source pull-to-refresh component

Another one of those staples on mobile. It would be ideal to be able to compose it with ListViews, ScrollViews, etc.

There's enough of a foundation now that this can be built independently.


[Idea] Effect dedicated to general transaction, subsuming STM and Relational DBs

Would it possible to have an effect in Kyo, which would encompass both

transaction in Kyo's STM
transaction in a Relational DB, like PostgreSQL

?
In a program using this effect, the programmer would be able to combine both pieces using Kyo's STM and relational DB operations. And the overall transaction would commit iff both STM and DB commit.

Do you mean persisting in-memory transactional references to a DB or just allowing arbitrary DB transactions with STM? Optimistic locking with more long-running DB transactions can be problematic due to retries but syncing the in-memory transactional state with a DB it's feasible since it's possible to coordinate validation and locking during commit. In fact, that was one my first projects in Scala (don't look at the code  😅)

allowing arbitrary DB transactions with STM

What I had in mind is this. Mixing together arbitrary DB transactions and STM operations. Within one effect.
But I have to admit I don't have the slightest idea about the feasibility of such an endeavor.

don't look

alright :+1: (or maybe I will :smiling_imp: )


The call-stack view does not display the profile status correctly while doing CPUProfile with JavaScript Debugger

Does this issue occur when all extensions are disabled?: No

VS Code Version: 1.66.2
OS Version:  macOS Big Sur 11.2

Steps to Reproduce:

start the project on JavaScript Debug Terminal.
start Performance Profile manually.
and you can see the button of Performance Profile does not display the profile status correctly. like bellow:

https://user-images.githubusercontent.com/9823838/168787325-ee18b266-62f7-4481-8438-0a2d51b30ca6.mp4

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.67.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!


How to document abandoned packages?

Issue description
I noticed recently on the ArchWiki that SLiM has been abandoned. I was wondering how we should document this, if at all?
Technical details

System: 17.03.git.8d8f57d (Gorilla)

SLiM: we've had quite some discussions around https://github.com/NixOS/nixpkgs/pull/12690. It's still our default displayManager.
Packages that are abandoned and don't work well should probably be removed. I don't think any documentation is really needed.

@vcunat Sounds good!


Loko air software

The base software for the loko air does not exist?, or has it not yet developed? I can't find it!

uploaded , check now

Thanks, I build the hardware and probé the software like beta tester, where I can share the experience?

@josmelmesa   you can share your experience on Hackaday page as well. I have discord channel (https://discord.gg/WFhu9mZ5) but I see it not very good as discussion blog page. Soon  discuss page will be up

Thanks!!
El domingo, 10 de abril de 2022, tomipiriyev @.***>
escribió:

@josmelmesa https://github.com/josmelmesa you can share your experience
on Hackaday page as well. I have discord channel (
https://discord.gg/WFhu9mZ5) but I see it not very good as discussion
blog page. Soon discuss page will be up
—
Reply to this email directly, view it on GitHub
https://github.com/tomipiriyev/Loko/issues/3#issuecomment-1094209122,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWMJF4WECN3L4KTN3YO7U6DVEKBP3ANCNFSM5RMLQAIA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @tomipiriyev,
Could you please provide some guidance on how to flash the firmware?
Thank you!


Encoded video play speed(frame interval) seems depended on fps.

Hi,
Thank you for your project.
I encoded avi file using public int Encode(Bitmap bmp);
and played this video on mediaplayer(windows).
but, video files encoded with different fps have different play speeds.
It seems to vary according to fps.
I want to keep the playing speed constant even if the fps are different.
Can you help me?
I used the timer to encode the screen capture in real time as follows.
_timer.Interval = 1000 / fps;   _timer.Tick += (sender, e) =>             {                 try                 {                     Bitmap screen = _provider.Capture();                     _encoder.Encode(screen);                 }                 catch                 { }             };

I'm sorry for late, very late reply.
I think you do not need the answer anymore, but anyway I answer.
It is natural that different fps have different playback speed.

10 bitmaps with 1 fps -> playback in 10 sec.
10 bitmaps with 10 fps -> playback in 1 sec.

To keep playback speed constant,
you need to change the number of bitmaps you supply.

10 bitmaps with 1 fps -> playback in 10 sec.
100 bitmaps with 10 fps -> playback in 10 sec.
300 bitmaps with 30 fps -> playback in 10 sec.

If this does not answer your question, please ask again.
Thank you.

I got it, Thank you!!


Refactor paper-detail /w class bindings

https://vuejs.org/v2/guide/class-and-style.html

Also make vue js studd hidden by default


MethodStubSetter refactor

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #54   +/-   ##
=======================================
  Coverage   94.16%   94.16%
=======================================
  Files          31       31
  Lines         548      548
  Branches       64       64
=======================================
  Hits          516      516
  Misses         23       23
  Partials        9        9

Impacted Files
Coverage Δ

src/MethodStubSetter.ts
100% <100%> (ø)
:arrow_up:

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 f751c09...30dc96f. Read the comment docs.


Added tenant scope deployments for the ARM Deploy action

Title pretty much says it all.
Added a deployment scope for tenant level deployments. This is specifically required if you wish to deploy from the root management group level.
I did not get to test the CI pipeline test cases in my own environment.

Hi @bishal-pdMSFT & @t-dedah!
Let me know if you need any changes to get this pulled through.
Thanks!

Hi @kanika1894, @microsoftopensource,
Anyone that can comments on this PR?
Thanks!

Would it be possible for someone to review and pass the pull request? I'm waiting for this update.

@bishal-pdMSFT, @t-dedah, would it be possible to take a look at this request? Many thanks!

@microsoftopensource, @bishal-pdMSFT, @t-dedah, @kanika1894, @fvilches17, @pulkitaggarwl, @PankajGovindRao, @tomkerkhove, @larryclaman, @tejasd1990, @harvey-k, @zainuvk, @N-Usha: Would any of you be able to look at this request? It would be a cool feature if you could still get to it and merge. Thank you! 🙏🏻

I do not work on ARM

I do not work on ARM

Apologies, given that this has been open for 2 years I simply took everyone who has ever committed to this repo. Hoping it nudges/pings someone who is still involved though!

I do not work on ARM

Apologies, given that this has been open for 2 years I simply took everyone who has ever committed to this repo. If you could help ping/nudge someone to take a look that is still involved, that'd be awesome. Thanks!


fix world space canvas issues

Hi,
I managed to get it working in world space as well. The previous method using world positions was causing issues, so I switched to local, which I think should be more robust.
Try it out and let me know what you think.

Yeah 100%, I should have done that from the beginning. Looks good to me. I rotated the work canvas and it works great! Thanks for the PR :)


Clear Room History

Is your feature request related to a problem? Please describe.
Can we be allowed to clear room history (undo/redo stack)? Similarly to a computer's file directory, a user in our product can navigate to multiple UI levels of the same project. Currently the undo stack will build up multiple actions from one level, and once the user changes levels the undo stack will affect offscreen elements. The ability to reset history would allow us to ensure the undo stack is relevant only to the view the user is currently on.
Describe the solution you'd like
Please expose a function to clear room history adjacent to history.undo() and history.redo(). Perhaps history.clear()
Additional context
We are using the REACT library.

Hi @griffins-planera – yes, we want to offer this API. It's on our roadmap, but we haven't started the work on this yet.

@nvie Thanks, do you have a link to a product roadmap? Otherwise, where is the best place to track the status of the feature? Here for now?

Our roadmap is not public (yet). But since this was just a small feature and we wanted to add support for it anyway, I just implemented it just now.

Hey @griffins-planera, we've just released Liveblocks 1.3, and this is now possible!
import { useHistory } from "../liveblocks.config";

function App() {
  const history = useHistory();

  return (
    <button onClick={history.clear}>
      Clear undo/redo history
    </button>
  );
}

You need to update all your Liveblocks packages to the same version, e.g.:
npm i @liveblocks/client@latest @liveblocks/react@latest [+ any other Liveblocks packages you're using]

API: https://liveblocks.io/docs/api-reference/liveblocks-client#Room.history.clear

@nvie @CTNicholas Awesome! Much appreciated


Using Support Fragment

Unable to instantiate from a support fragment and using the activity does not allow the activity on result function to go to the fragment.

Use the version v2.1.1. You can now instantiate the scanner activity from Support Fragment and it would work just fine.


update deployment sample, due to deprecated option

Creating a deployment using 'kubectl run' command was deprecated and is not supported anymore, starting with 1.18 version. In order to keep the example as relevant as possible, all 3 pods were kept.
Couple of changes:

fix example to use 'kubectl create deployment' command, and scaled it up explicitly
fix missing label for both Deployment and Service
update label key, from 'run' to 'app', as deployments automatically add the label with this key
update comment on how label's key could have used 'run' and 'app' values
update pods names and internal hostnames - which are based on the replicaSet (eg. hostnames-632524106).

Please have a look, /assign @sftim

/assign @sftim

update label key, from 'run' to 'app', as deployments automatically add the label with this key in https://deploy-preview-21065--kubernetes-io-master-staging.netlify.app/docs/tutorials/kubernetes-basics/expose/expose-interactive/  is not yet there, I'm still seeing "run" instead of "app"

Looking at an old comment: https://github.com/kubernetes/website/pull/21065#issuecomment-634182505
I'm not sure if there is a defect here or not. If there is, please file a new issue.


utils for layout and page metadata

add isDefaultLayout (similar to isDefaultComponent)
fix issue with getPageInstance and getLayoutInstance where they don't handle /meta correctly
add isPageMeta
add isLayoutMeta

Coverage remained the same at 100.0% when pulling c9867a29fb6f3766b40a775e49362fcd4518f8fe on meta into 728cf4433a16679a27a0b482dd10db98698c5587 on master.


[WIP] Use AddInstruction from .NET Core 2.2 Release branch

I replaced the existing class code with the corresponding .NET Core code minus the following:

They use different variable names, s_Int16 instead of _Int16 for example.
They use extension methods such as GetNonNullableType and IsArithmetic. Maybe we want to change them in separate PR for all files?

Also, the order of some methods is different. Do we want to keep our order?
Finally, they use InstructionName instead of overriding ToString. Do we want that change?

My preference would be to keep the two in sync as much as possible (static variable names, order of methods, etc). That way we can more easily bring in changes (or submit improvements) to .NET Core.
I believe we can change GetNonNullableType and IsArithmetic to an extension method without having to change any of the other source files. We should check that the implementations of these methods are in sync with the ones used by .NET Core.
I looked over the code base before and I believe the same is true for all the arithmetic instructions.
The default ToString is just InstructionName + "()" so we can probably use whatever they have.

I only applied the method changes for now.
I will do some other items, such as the InstructionName changes in a separate PR.


Agora cannot recover Enrollments from scratch if a node has been slashed

Not tested, but the following seems a bug leading to a potential crash during agora startup

UTXOs are passed to Ledger constructor, but validator count is 0, so we try to recover the enrollments:
https://github.com/bpfkorea/agora/blob/2db3509097a9b89b6bb148aadaa9aec1fcb4697a/source/agora/node/Ledger.d#L210
we assume UTXOs are are correct up until the latest height of X, and we also assume that UTXO U was enrolled at height Y (X - cycle length < Y < X), and we also assume that this UTXO U was slashed at height Z(Y<Z<X). As a result of this, we will not have UTXO U in the utxo_set at height X.

the following line will assert during restoration of the validator set:
https://github.com/bpfkorea/agora/blob/2db3509097a9b89b6bb148aadaa9aec1fcb4697a/source/agora/node/Ledger.d#L505
Let me know if I misread the code.

This is correct. Renamed the issue for clarity.

After a couple of days of tinkering (sadly), I realized that both UTXOSet and EnrollmentManager uses the stateDB, so the case here will probably never happen unless someone messes up the database externally. At that point we should not be trusting the existing UTXO set too.

Currently we have code to recover Enrollments if their length is 0, but still use the UTXOSet. With that assumption, we probably need to do a deep reset if either is empty.


Set the max SDK constraint to <3.0.0

Allows for version solving when the stable Dart2 SDK is released.

@xxgreg Could you publish a version that allows for version solving in an 2.0.0 SDK environment?

Apologies for the hold up. Swamped at the moment. Should be able to get to
this this evening.
On Wed, 1 Aug 2018 at 10:04, Nicholas Shahan<EMAIL_ADDRESS>wrote:

@xxgreg https://github.com/xxgreg Could you publish a version that
allows for version solving in an 2.0.0 SDK environment?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xxgreg/mustache/pull/40#issuecomment-409383330, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAACwCLqXB7RvGSZYog7c96tbYH13Znaks5uMNRigaJpZM4Vg73I
.


force_v for RasterPropMonitor-Core

The v prefix has been dropped on GitHub:

Now the bot will add it.

This seems fine, or I could update KSPBuildTools with an option to include a ‘v’ prefix..but I’m not sure I understand all the nuances here.  Would it be more straightforward if the bot just ignored a leading ‘v’ ?
Or would it make more sense to just bump the epoch?

update KSPBuildTools with an option to include a ‘v’ prefix

That's probably a good option to have in general. A lot of mods have a history of v1.2.3 formatting because GitHub either suggests it or used to suggest it in the repo creation page (I think because a purely numeric Git tag could be ambiguous, or something?), and consistency is always a plus.

Drew is working on some stuff for creating a release from a git tag, so people who use that option should be fine as long as they're consistent.  It's probably better overall but there's a few more things that need to get ironed out.


⚠ Cioos Pacific CKAN has degraded performance

In 1d483f4, Cioos Pacific CKAN (https://catalogue.cioospacific.ca) experienced degraded performance:

HTTP code: 200
Response time: 13254 ms

Resolved: Cioos Pacific CKAN performance has improved in 213f6cc after 27 minutes.


Add error propagation to couch_eval and couch_views_indexer

Overview
When ApiMod:acquire_map_context returns with {error, any()}, the caller(s) fail with badmatch. This PR changes the caller hierarchy so that those {error, _} are propagated back and a failing update gets retried (up to retry_limit times).
Testing recommendations

I tested manually: curl -XPUT -HContent-type:application/json -d'{"views": { "testView": { "map": "function(doc) {if(doc.name) {emit(doc.name)};}" } }, "language": "javascript"}'  http://adm:pass@<IP_ADDRESS>:15984/foo/_design/fooDD2 and curl http://adm:pass@<IP_ADDRESS>:15984/foo/_design/fooDD2/_view/testView and I watched as the badmatch log entries disappeared after the change.
Related Issues or Pull Requests

Checklist

[ ] Code is written and works correctly
[ ] Changes are covered by tests
[ ] Any new configurable parameters are documented in rel/overlay/etc/default.ini
[ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

Looks good. Good idea to write tests. Just a few minor formatting issue then +1

Thank you for the review, @nickva . I believe I've pushed commits for all the changes you've requested. Also, I ran emilio on the problematic files so they should be good now.

@bessbd we did try to integrate it, there is a make emilio check. One tricky part is having to figure out warning for existing code vs new code. One day we could perhaps one large reformat pass and have everything compliant with emilio. There is a formatter we could use too: https://github.com/WhatsApp/erlfmt

Thank you for the approve, @nickva ! I'm about to merge this.


Phaser 3: kill on world bounds out for matter physics?

 Or is there a better way?

I'm closing this one, as it's a question.

Sorry, I know this is closed, but here is how I dealt with identifying bounds in phaser3 with matter.
let bounds = this.matter.world.setBounds(0, 0, this.level.map.w, this.level.map.h); Object.values(bounds.walls).forEach(o => o.label = 'bounds')
When you first define the world bounds, loop over the walls object and assign a label to each wall. Then on a collision event, you can access the body label in the returned pair value.
For instance:
onPlayerCollide({gameObjectB, pair}) {         if (pair.bodyA.label == 'bounds') {...} })

I found a great plugin for collision detection:
https://github.com/mikewesthad/phaser-matter-collision-plugin/stargazers

I had to access the labels directly e.g.
 bounds.walls.left.label = 'lol';


The two links in the bottom of the page is missing.

The two links in the bottom of the page is missing.

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

ID: 28dc9ed5-19e7-a3a2-1c97-1d2931bc2b13
Version Independent ID: 28dc9ed5-19e7-a3a2-1c97-1d2931bc2b13
Content: What are init scripts? - Azure Databricks
Content Source: databricks/init-scripts/index.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@rocdong
Thanks for your feedback! We will investigate and update as appropriate.

@rocdong
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.
#Please-close


Implemented Feature Request #42 - Dark Mode

Hey @pawank0411,
Implemented Feature Request #42 - Dark Mode
Please let me know whether this PR meets your expectations. Please let me know if I had to do something better...
Thank You

Great work !! @VishnuSanal  Thanks for contributing


DataGrid.DoubleTapped not fired when using touch

Describe the bug
Double click with the mouse on a DataGrid.DataGridRow works. Double tap with your finger on a touch monitor does not work.
DataGrid.DoubleTapped += (sender, args) =>
{
    // mouse double click works
    // finger double tap does not work
};

To Reproduce
Create a DataGrid (set IsReadOnly=True), add some foo stuff to get some rows and double tap with your fingers.
Expected behavior
DataGrid.DoubleTapped event should be fired when double tap with finger.
Desktop (please complete the following information):
Edition	Windows 10 Pro
Version	21H2
Installiert am	06.07.2021
Betriebssystembuild	19044.1466
Leistung	Windows Feature Experience Pack 120.2212.3920.0

Avalonia v0.10.11

Should be fixed by this PR.
https://github.com/AvaloniaUI/Avalonia/pull/7213

Ah my mistake! I had seen the issue, but hadn't noticed that it wasn't included in the latest release.


Data attributes API

It might be nice to allow cursors to be configured via a data attributes API.  I imagine the implementation would still require the user to initialise the cursor plugin however, in a similar fashion to how Bootstrap tooltips are implemented.
The API itself would just be a different interface to the options hash, e.g.:

And then initialisation:
$('[data-ac-cursor]').awesomeCursor();

Would be easy enough for someone to build this into their own project, so disregarding.


Bump sourceror from 0.7.1 to 0.7.3

Description
Sourceror dependencies got upgraded.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Code quality improvements

How to test
Checklist

[x] I have tested this code
[ ] I have updated the documentation

Pull Request Test Coverage Report for Build 729771262

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 28.164%

Totals

Change from base Build 717884609:
0.0%

Covered Lines:
2252

Relevant Lines:
7316

💛  - Coveralls


Support other MCU through 16U2

I designed the 16U2 as a module

I'd like to upload HoodLoader2UnoMegaController to other muc

The 16u2 doesn't have enough memory

I want to use ATmega16U2 to handle communication, AND I want to upload sketches to ATmega644, or some other MCU

Did you try to upload the controller sketch to the ATmega644 and have an error, or what is currently the problem?

I try to compile HoodLoader2UnofficialMegaController, but the compiler error

Maybe this ATmega644 doesn't support HID Bridge?

The problem is that the file HID.h does not exist for your board. It must not contain an actual implementation, but must exist.

Thanks for your reply. I understand that if my chip doesn't have HID. H, I can't send data through 16U2, right?

Maybe I can try 8266, it seems to have HID. H

You can try to add the HID.h file next to your sketch file

Else I will need to update the library to exclude this file. But currently I have no time for this.

Thank you very much. I already know what I'm going to do, I'm going to end this problem until I get something new, okay


Detecting failed restart

Hi,
I have a problem which I assume many people have: Sometimes, when restarting Unicorn on deploy, due to bad code, it fails to restart and stays with old code running.
Is there any way to hook on a failed restart and deliver a notification about that?
Thanks in advance!

meet the same problem


PCGameBenchmark.PCGameBenchmark_Detector version <IP_ADDRESS>

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

I'm going to attempt to close and reopen the pull request as I have run into this issue previously on https://github.com/microsoft/winget-pkgs/pull/17513 and this was the recommended action.

I am unsure of the issue with this pull request if I could get some assistance that would be great; I have validated and tested the manifest file locally with no issues.

@Xanthus58 we are having trouble with the pipelines. I pinned an Issue as a public service announcement. Once they are resolved, this PR may be able to complete.


467 editing final molecule selection

Edited the final molecule selection process in the analysis page. Now you can select your final compound from the assay data table, selector panel, on right, will scroll to corresponding compound, selecting it (highlighting container in red) and open the accordion, showing the molecule widget etc.

Codecov Report
Attention: Patch coverage is 22.22222% with 28 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (main@b29e158). Click here to learn what that means.

Files
Patch %
Lines

src/components/analysis/molecule_list.js
11.11%
8 Missing :warning:

src/components/docking/molecule_widget_docking.js
14.28%
6 Missing :warning:

src/components/analysis/molecule_widget.js
28.57%
5 Missing :warning:

src/components/analysis/AssayDataTable.js
33.33%
4 Missing :warning:

src/components/docking/molecule_list_docking.js
0.00%
4 Missing :warning:

src/components/analysis/accordion_analysis.js
66.66%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #470   +/-   ##
=======================================
  Coverage        ?   21.85%
=======================================
  Files           ?      109
  Lines           ?     1318
  Branches        ?        0
=======================================
  Hits            ?      288
  Misses          ?     1030
  Partials        ?        0

Flag
Coverage Δ

unit-tests
21.85% <22.22%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Much clearer selection with the red. Collapsable looks really good! no crashing.


connect to new nodes / disconnect from unused nodes

When slots is updated, RedisCluster should connect to new nodes, and disconnect from the nodes that's not serving data any longer.

Coverage decreased (-0.3%) to 90.406% when pulling cfeab772522de453183948846a43d0cc28a4b73f on thirstycrow:feature-dynamic-cluster-nodes into 55573df26adbe20be54291ffc67414af028bf889 on etaty:master.

Coverage decreased (-0.07%) to 90.652% when pulling 4309ccdaed4400063d7749dcbf7a78c318eac591 on thirstycrow:feature-dynamic-cluster-nodes into 55573df26adbe20be54291ffc67414af028bf889 on etaty:master.

Coverage decreased (-0.07%) to 90.652% when pulling dd6bc0c745773e69cb1974321453edc31e92204f on thirstycrow:feature-dynamic-cluster-nodes into 55573df26adbe20be54291ffc67414af028bf889 on etaty:master.


exit behaviour updated

#57
Behaviour now is when quit or exit are typed alone they exit the whole system but when typed with a process after they just stop that process, for the fat fingered among us :)
#66
Behaviour for start and stop is now as such:

Multiple or single processes accepted, auto complete also works for each process in the row.
This behaviour extends to the new exit and quit also

@AdrianRossouw Had a few mins so just gave this a bash, haven't done any fuge stuff in a while and felt sad 😢

@AdrianRossouw Better?


fix(sveltekit/6-forms/lesson-1): bug in solution

The solution of the lesson "The <form> element" crashes because of an assignment to a constant.

Recommend #546 instead of this as it resolves other instances of the same issue.

Thanks, merged #546 instead since it's a more comprehensive change.


NGmerge or fastqc shoud be used in quality control before alignment

Hi,
It's really interesting tool to identify circle DNA from DNAseq data. But, recently, we are considered with the variety of circle DNA length and length of insenrtion of reads, which would influence the usage of quanlity control tools. These library sizes of circle DNA were like ATACseq results, the inseration length of DNA fragments could be less than 50bp or more than 150bp.  And in ATACseq quality control, we were suggested to use NGmerge, which could keep the short reads reminding, to cut adapters and filter reads,  instead of fastqc (or other trim tools in standard pipeline) which will remove shorted reads directly.
So, we also want to know whether trim tools we need to use to finish quality control before alignment.
Thanks!

Another question;
should we implemented picard tools to remove duplicates reads caused by PCR after bwa alignment?

Dear Pangxueyu233,
I am out of the office this days. I will get back to you at the end of  the week
Sorry for the inconvinience.
Best,
Iñigo

Dear @pangxueyu233,
I am back.
Regarding:

So, we also want to know whether trim tools we need to use to finish quality control before alignment.

You can use any standard trimming software to remove adapters on the reads. Regarding more aggresive trimming such as removing low quality sequences or too short sequences, I think that this is not strickly necessary. Circle-Map incorporates sequencing errors and sequence length (implicitly) into the probabilistic model. Long story short, I think you are fine with removing the adapters.
You should not use any software that merges paired-reads. This is not supported.
Regarding:

should we implemented picard tools to remove duplicates reads caused by PCR after bwa alignment?

This depends on the biological question you want to answer. If you are interested in a qualitative analysis where you only detect the circle keeping PCR duplicates is fine. If you want to do any quantitative analysis you should remove duplicates.
Best,
Inigo

Thanks, I will follow your suggestion.
And one more quenstion, whether this tool could identify ecDNA (Extrachromosomal DNA) not only eccDNA？
And are there any tools to visualise Circle-Map results? As you known, if we constructed a circle sequence, we need to show our results like a plasmid map to visualise stucture information including gene body overlapped in circle sequence and genes position in circles structure.

Hi,
Regarding:

And one more quenstion, whether this tool could identify ecDNA (Extrachromosomal DNA) not only eccDNA？

Circle-Map is designed to detect any type of circular DNA. If you want to reconstruct the amplicon structure take a look at https://github.com/virajbdeshpande/AmpliconArchitect
Regarding:

And are there any tools to visualise Circle-Map results? As you known, if we constructed a circle sequence, we need to show our results like a plasmid map to visualise stucture information including gene body overlapped in circle sequence and genes position in circles structure.

@RAHenriksen from our lab has generated beautiful Circos plots of circles. Take a look at it.
Best,
Inigo

Thanks for immediately replying. And one more thing I want to make sure about the results, each rows of files meant they could fomed an eccDNA individually, or combination of them could formed an eccDNA ?

Each row should be an individual eccDNA. If some of eccDNA formed a complex amplicon they will be reported as indendent lines. That is limitation of Circle-Map. You can use AmpliconArchitect to solve those.


settings: Fix browser back button not working in settings overlay.

When we open settings overlay we first go to "#settings" hash and
then to "#settings/profile" or hash according to the last opened
section. Now when a user presses back button from "#settings/profile"
it goes to "#settings" which agains then changes to "#settings/profile"
and thus the browser back button does not work as expected.
This PR fixes this by replacing the "#settings" entry in history
with "#settings/profile" or to the hash as per last opened section,
using replaceState and thus there is no entry of "#settings" in history.
Fixes #19820.

Same bug is there when we open stream settings overlay through /#streams link. There is no problem when opening through UI elements because they are linked appropriately to #streams/all and #streams/new.

This is great, merged, thanks @sahil839!


Cost model filtering by description leads to empty state page.

Describe the bug
After we filter cost models by a description that fits none of the existing cost models, instead of displaying "No match found", we get empty state Cost models page and we can't remove the filter unless we refresh the page.
To Reproduce
Steps to reproduce the behavior:

Go to Cost models
Filter by a description that fits none of the cost models.
See error

Expected behavior
"No match found" displayed.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Fedora
Browser Chrome

Additional context
Tested on PROD beta/CI beta

I am pretty sure you have a way to reproduce this. Can you give me that scenario + can you show me the requests and responses of each - that'll help me a lot.
Thanks :hugs:

@boaz0 Filtering by name works correctly, you need to filter by description and use a filter that matches none of the cost models to see this bug

Yep, I just saw it. Going to work on it. Thanks :)

Verified


Question about releasing memory

Hello,
I'm trying to use mimalloc with my binary. And have questions about memory release to OS.
I have a memory storage, it allocates 300MB of memory.
Then I destroy it.
And expect to return memory back to OS, but instead I see memory is not returned.
Then I init another storage and memory grows by another 300MB.
Compiling mimalloc:
cmake -B cmake-build-dir/release -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17

Compiling my binary with:
/usr/x86_64-linux-musl-cross/lib/mimalloc-1.7/libmimalloc.a

Added to main.cxx:
#include <mimalloc.h>
#include <mimalloc-override.h>

Compiling everything with Release build type.
What I see in process stats:
Started:
elgato    2429  2.0  0.1 272984  8808 pts/3    Sl+  17:57   0:00 build/linux_x64/lt2http

Storage init:
elgato    2429  1.4  4.0<PHONE_NUMBER>36 pts/3   Sl+  17:57   0:00 build/linux_x64/lt2http

Storage destroyed:
elgato    2429  1.0  4.0<PHONE_NUMBER>00 pts/3   Sl+  17:57   0:00 build/linux_x64/lt2http

Storage re-init:
elgato    2429  1.0  4.7<PHONE_NUMBER>44 pts/3   Sl+  17:57   0:00 build/linux_x64/lt2http

Storage re-destroyed:
elgato    2429  0.8  4.7<PHONE_NUMBER>44 pts/3   Sl+  17:57   0:01 build/linux_x64/lt2http

Stats after closing:

heap stats:     peak      total      freed    current       unit      count
  reserved:   768.0 mb   768.0 mb   512.0 mb   256.0 mb       1 b              not all freed!
 committed:   745.9 mb   745.9 mb   512.0 mb   233.9 mb       1 b              not all freed!
     reset:     4.2 mb     5.4 mb     1.1 mb     4.2 mb       1 b              not all freed!
   touched:       0 b        0 b    606.3 mb  -606.3 mb       1 b              ok
  segments:      16        318        314          4                           not all freed!
-abandoned:       5          5          5          0                           ok
   -cached:       0          0          0          0                           ok
     pages:     300        353        325         28                           not all freed!
-abandoned:      30         30         30          0                           ok
 -extended:       0
 -noretire:       0
     mmaps:       0
   commits:     198
   threads:       7          7         12         -5                           ok
  searches:     0.0 avg
numa nodes:       1
   elapsed:     144.618 s
   process: user: 0.610 s, system: 0.552 s, faults: 0, rss: 372.6 mb, commit: 745.9 mb

I understand that mimalloc is probably keeping memory for re-use in future.
But is there any configuration, that can be changed to force memory release?

Hmm, as I understand it, every time you re-init your "storage" the memory usage grows by 300MiB ?  That is not good.  Does this happen with the default allocator as well ?  (ie. did you confirm it is not a leak in your program?).
Is it possible to share the program so I can test it locally?  If you cnannot share the source, perhaps even the binary may work (best on Linux so I can easily switch allocators using LD_PRELOAD).

@daanx with default allocator memory is released properly. I will try to prepare a use case for you.

@daanx with default allocator memory is released properly. I will try to prepare a use case for you.

Ouch! I am very interested to be able to test with this. Thanks and let me know if I can help. You can use my work email (daan at microsoft.com) if you want the tests not be public.

Hi @elgatito; just following up on this -- if you have a test that reproduces this I would like to look at it  :-)  Just let me know

Thanks for the test! I was able to reproduce the problem on v1.7.1  but it was good for v2.0.1  (dev-slice branch). Can you see if in your full program v2.0.1 works fine as well?  I will continue to investigate the issue for v1.7.1 as well. Thanks


Ignore chunk/filter options upon creating scalar variables.

this is to address issue #12

Nice! Could you please add a test to verify this fix? Somewhere in here: https://github.com/shoyer/h5netcdf/blob/master/h5netcdf/tests/test_h5netcdf.py

That should do it :)

I'm happy to add this to the legacy API for compatibility with netCDF4-python, but I'd rather not add this to the new API, which tries to be entirely consistent with h5py.

I added the check to the new api also in order for the tests to be consistent and pass. But I'll just create 'intscalar' without any parameters in the new api tests then.

thanks!


Change sidebar branding from Conduit to Linkerd

Use Linkerd branding in the sidebar.
This PR deals with visuals only. See #1260 for word changes.

So beautiful. It was meant to be.


Update clang-format-lint.yml

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
see 2 files with indirect coverage changes
:loudspeaker: Thoughts on this report? Let us know!


expand Gif Image files support

Gifs usually take up a lot of space, it'd be nice if img-bot could do some optimizations to reduce their file size
Possible reference: #332

we do optimize gifs today using Image Magick gif optimizer https://github.com/dlemstra/Magick.NET/blob/master/src/Magick.NET/Shared/Optimizers/GifOptimizer.cs
I could however see us implementing something additional like gifsicle to do even more
https://packages.debian.org/unstable/graphics/gifsicle

umh, then I wonder why it didn't try to optimize gifs in this PR: https://github.com/Davoleo/davoleo.github.io/pull/5 🤔
is it disabled by default?

Hi @Davoleo
Gif optimization is enabled by default.
I just took a look at the logs for that compression run and it did try to optimize that gif, but found no space savings. I'm going to try again with gifsicle and see if that can do anything further

added support for gifsicle in #654
@Davoleo I forked your example project to try it out on.
This is with the default settings: https://github.com/dabutvin/davoleo.github.io/pull/1
This is with the opt in to aggressive compresion: https://github.com/dabutvin/davoleo.github.io/pull/2

oh I see, thanks for the help

released in 1.11.0


train completed have  not save weight

helllo! i meet problems
train completed, not create weight

Hi,
The snapshot iter is defined at here.
If it does not work, you may create the output/ folder, and check the free space of the hard disk。
Thanks


Implement Result type

Reasoning
The Result type is a robust and expressive way to handle errors in many programming languages, especially those with strong influences from functional programming, such as Rust and Elm. Result is typically a tagged union comprising two cases: Ok for successful computations and Err for errors. Unlike Option, which only indicates the presence or absence of a value, Result can carry information about the error, making it well-suited for functions that can fail in multiple ways. Key considerations include:

Explicit Error Handling: The Result type forces developers to explicitly handle both successful and error cases, reducing the likelihood of unhandled errors.

Type Safety: The error type is part of the Result's type definition, making it easier to understand what kinds of errors a function can produce.

Composability: Like Option, Result should have higher-order functions that allow it to be easily transformed, chained, and incorporated into larger data pipelines.

Integration with Other Types: It's often useful to convert between Result and other types like Option or even native exceptions, depending on the programming paradigm used in the codebase.

Functions for the Result Module
Constructors

ok: Create a Result representing a successful computation (Ok)
err: Create a Result representing an error (Err)

Basic Queries

isOk: Check if the Result is an Ok
isErr: Check if the Result is an Err
unwrap: Retrieve the value if Ok, or panic (throw an exception) if Err
unwrapOr: Retrieve the value if Ok, or return a default value if Err

Transformations

map: Apply a function to the value inside Ok
mapErr: Apply a function to the error inside Err
flatMap: Apply a function that returns a Result to the value inside Ok

Error Handling and Recovery

orElse: Provide a fallback Result in case of an Err
match: Pattern match on the Result to handle both Ok and Err cases explicitly

Conversions

toOption: Convert the Result to an Option, discarding the error information
fromOption: Create a Result from an Option, with a default error value for None

Side Effects

forEach: Execute a side-effect function on the value if Ok
forEachErr: Execute a side-effect function on the error if Err

Inspection and Debugging

toString: Convert the Result to its string representation for debugging

By providing a comprehensive set of functions for error handling and transformation, the Result type can be a cornerstone of robust and maintainable code in NeoHaskell. The API is intended to be beginner-friendly while still providing the power features that more advanced users would expect. As with other types, user feedback and real-world usage should inform future iterations of the API.

Fixed in v0.1.0


[Bug]: Inconsistent logging format

What happened?
jaeger operator and jaeger logs are interpreted as errors in our centralised logging system.
Below are four different log lines from the jaeger operator, I've also attached a screenshot from our centralised logging system showing the same
I0924 08:19:39.985099       1 leaderelection.go:248] attempting to acquire leader lease observability/31e04290.jaegertracing.io...

2022/09/24 08:19:39 <nil>

1.664007579984811e+09	INFO	Starting server	{"kind": "health probe", "addr": "[::]:8081"}

1.6640075835232968e+09	INFO	Stopping and waiting for non leader election runnables

Below are three different log lines from the jaeger deployment, I've also attached a screenshot from our centralized logging system showing the same
badger 2022/09/24 08:11:41 INFO: Set nextTxnTs to 0

2022/09/24 08:11:41 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined

{"level":"warn","ts":1664009833.0241213,"caller":"channelz/funcs.go:342","msg":"[core][Channel #10 SubChannel #11] grpc: addrConn.createTransport failed to connect to {\n  \"Addr\": \":16685\",\n  \"ServerName\": \"localhost:16685\",\n  \"Attributes\": null,\n  \"BalancerAttributes\": null,\n  \"Type\": 0,\n  \"Metadata\": null\n}. Err: connection error: desc = \"transport: Error while dialing dial tcp :16685: connect: connection refused\"","system":"grpc","grpc_log":true}

I also see these lines from the all-in-one image though I was unable to figure out which container they come from
Level 6 [ ]: NumTables: 83. Size: 467 MiB of 467 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 8.0 MiB

{"msg":"Shutdown complete","caller":"flags/service.go:164","ts":1664007095.592402,"level":"info"}

Our setup:

Our cluster is running on eks with kubectl version 1.23
We are sending our logs to datadog

Here's another issue which looks pretty similar https://github.com/jaegertracing/jaeger-operator/issues/1817
Steps to reproduce
Install jaeger operator 1.37 with the supplied Jaeger manifest
Check the jaeger operator logs and the jaeger deployment logs
Expected behavior
Seeing the same format of logs on every line
Being able to change the log level globally
Relevant log output
jaeger operator logs
I0924 08:19:39.271244       1 request.go:601] Waited for 1.021218758s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/snapshot.storage.k8s.io/v1?timeout=32s
1.6640075799272454e+09  INFO    controller-runtime.metrics      Metrics server is starting to listen    {"addr": "<IP_ADDRESS>:8383"}
1.6640075799818969e+09  INFO    controller-runtime.builder      Registering a mutating webhook  {"GVK": "jaegertracing.io/v1, Kind=Jaeger", "path": "/mutate-jaegertracing-io-v1-jaeger"}
1.6640075799822905e+09  INFO    controller-runtime.webhook      Registering webhook     {"path": "/mutate-jaegertracing-io-v1-jaeger"}
1.6640075799825728e+09  INFO    controller-runtime.builder      Registering a validating webhook        {"GVK": "jaegertracing.io/v1, Kind=Jaeger", "path": "/validate-jaegertracing-io-v1-jaeger"}
1.6640075799827461e+09  INFO    controller-runtime.webhook      Registering webhook     {"path": "/validate-jaegertracing-io-v1-jaeger"}
1.6640075799829955e+09  INFO    controller-runtime.webhook      Registering webhook     {"path": "/mutate-v1-deployment"}
2022/09/24 08:19:39 <nil>
1.664007579983556e+09   INFO    controller-runtime.webhook.webhooks     Starting webhook server
1.6640075799839525e+09  INFO    controller-runtime.certwatcher  Updated current TLS certificate
1.6640075799842384e+09  INFO    controller-runtime.webhook      Serving webhook server  {"host": "", "port": 9443}
1.6640075799844604e+09  INFO    controller-runtime.certwatcher  Starting certificate watcher
1.664007579984675e+09   INFO    Starting server {"path": "/metrics", "kind": "metrics", "addr": "[::]:8383"}
1.664007579984811e+09   INFO    Starting server {"kind": "health probe", "addr": "[::]:8081"}
I0924 08:19:39.985099       1 leaderelection.go:248] attempting to acquire leader lease observability/31e04290.jaegertracing.io...
I0924 08:22:13.015968       1 leaderelection.go:258] successfully acquired lease observability/31e04290.jaegertracing.io
1.6640077330196195e+09  DEBUG   events  Normal  {"object": {"kind":"Lease","namespace":"observability","name":"31e04290.jaegertracing.io","uid":"f6b72918-d5c6-4e3d-ad58-2700d2c80250","apiVersion":"coordination.k8s.io/v1","resourceVersion":"16741521"}, "reason": "LeaderElection", "message": "jaeger-operator-6b6587468-jxzkp_3d3de6ed-fa93-4718-8878-d53e9a72f1b4 became leader"}
1.6640077330233665e+09  INFO    Starting EventSource    {"controller": "jaeger", "controllerGroup": "jaegertracing.io", "controllerKind": "Jaeger", "source": "kind source: *v1.Jaeger"}
1.6640077330234199e+09  INFO    Starting EventSource    {"controller": "jaeger", "controllerGroup": "jaegertracing.io", "controllerKind": "Jaeger", "source": "kind source: *v1.Jaeger"}
1.6640077330234263e+09  INFO    Starting Controller     {"controller": "jaeger", "controllerGroup": "jaegertracing.io", "controllerKind": "Jaeger"}
1.664007733023863e+09   INFO    Starting EventSource    {"controller": "namespace", "controllerGroup": "", "controllerKind": "Namespace", "source": "kind source: *v1.Namespace"}
1.664007733023894e+09   INFO    Starting Controller     {"controller": "namespace", "controllerGroup": "", "controllerKind": "Namespace"}
1.6640077331251454e+09  INFO    Starting workers        {"controller": "namespace", "controllerGroup": "", "controllerKind": "Namespace", "worker count": 1}
1.6640077331252797e+09  INFO    Starting workers        {"controller": "jaeger", "controllerGroup": "jaegertracing.io", "controllerKind": "Jaeger", "worker count": 1}
1.6640077333197255e+09  DEBUG   controller-runtime.webhook.webhooks     received request        {"webhook": "/mutate-v1-deployment", "UID": "9a2c2417-61f0-4af4-a997-a58dcdb78719", "kind": "apps/v1, Kind=Deployment", "resource": {"group":"apps","version":"v1","resource":"deployments"}}
1.6640077333219082e+09  DEBUG   controller-runtime.webhook.webhooks     wrote response  {"webhook": "/mutate-v1-deployment", "code": 200, "reason": "is jaeger deployment, we do not touch it", "UID": "9a2c2417-61f0-4af4-a997-a58dcdb78719", "allowed": true}
1.6640077334424644e+09  INFO    KubeAPIWarningLogger    autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler
1.6640078141597042e+09  DEBUG   controller-runtime.webhook.webhooks     received request        {"webhook": "/mutate-v1-deployment", "UID": "a5521e8c-8cef-49a5-978d-c567bae10bf9", "kind": "apps/v1, Kind=Deployment", "resource": {"group":"apps","version":"v1","resource":"deployments"}}
1.6640078141605399e+09  DEBUG   controller-runtime.webhook.webhooks     wrote response  {"webhook": "/mutate-v1-deployment", "code": 200, "reason": "no action needed", "UID": "a5521e8c-8cef-49a5-978d-c567bae10bf9", "allowed": true}
1.6640078141816647e+09  DEBUG   controller-runtime.webhook.webhooks     received request        {"webhook": "/mutate-v1-deployment", "UID": "5ef1b29d-6b23-4f21-8ef8-ed829d06f4ed", "kind": "apps/v1, Kind=Deployment", "resource": {"group":"apps","version":"v1","resource":"deployments"}}
1.6640078141825016e+09  DEBUG   controller-runtime.webhook.webhooks     wrote response  {"webhook": "/mutate-v1-deployment", "code": 200, "reason": "no action needed", "UID": "5ef1b29d-6b23-4f21-8ef8-ed829d06f4ed", "allowed": true}
1.664007814204585e+09   DEBUG   controller-runtime.webhook.webhooks     received request        {"webhook": "/mutate-v1-deployment", "UID": "ea56d1c5-da93-428b-823e-e5fbe736752d", "kind": "apps/v1, Kind=Deployment", "resource": {"group":"apps","version":"v1","resource":"deployments"}}

Screenshot
jaeger

jaeger operator

Additional context
No response
Jaeger backend version
v1.37.0
SDK
No response
Pipeline
No response
Stogage backend
No response
Operating system
linux
Deployment model
kubernetes
Deployment configs
We have deployed the following manifests https://github.com/jaegertracing/jaeger-operator/releases/download/v1.37.0/jaeger-operator.yaml
Below is our Jaeger manifest

apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: simplest
  namespace: istio-system
spec:
  allInOne:
    options:
      log-level: warn
      query:
        base-path: /jaeger
      collector:
        zipkin:
          host-port: 9411
  ingress:
    enabled: false
  storage:
    type: badger
    options:
      memory:
        max-traces: "50000"
      badger:
        ephemeral: false
        directory-key: "/badger/key"
        directory-value: "/badger/data"

I checked and are log messages from the controllerruntime package. Probably we're not setting properly one logger or something. I'll try to do a deeper research :)


Many class for same verb

Hi,
Is there a way to specify many option set for the same verb ?
I have a command line tool that accept a verb "copy" which may act differently according to the parameters (Value) number .
My code :
 public class BaseOptions
    {
        private string root = null;
        private string output = null;

        [Option('r',"root", HelpText = "root dir", Required = true)]
        public string RootDirectory { get { return root; } set { root = value; } }

        [Option('o',"output", HelpText = "output dir", Required = false)]
        public string OutputDirectory { get { return output ?? RootDirectory; } set { output = value; } }
    }

    [Verb("copy")]
    public class CopyRubriqueInPlaceOptions : BaseOptions
    {
        [Value(0)]
        public string Model { get; set; }
        [Value(1)]
        public string SourceRubrique { get; set; }
        [Value(2)]
        public string TargetRubrique { get; set; }
    }

    [Verb("copy")]
    public class CopyRubriqueModelToModelOptions : BaseOptions
    {
        [Value(0)]
        public string SourceModel { get; set; }
        [Value(1)]
        public string SourceItem { get; set; }
        [Value(2)]
        public string TargetModel { get; set; }
        [Value(3)]
        public string TArgetItem { get; set; }
    }

Here you can see I have 2 Option class that map the same verb "copy".
Is that possible ?
Or do I have to manage this case by hand using a more generic CopyOptions as this :
 [Verb("copy")]
    public class CopyRubriqueModelToModelOptions : BaseOptions
    {
        [Value(0)]
        public List<string> copyParameters { get; set; }
    }

Many class for the same verb can't be used.
I think it's better to use different meaningful name for the verbs. e.g:
 [Verb("copy-in-place")]
  public class CopyRubriqueInPlaceOptions : BaseOptions
  {
    //....rest of code
  }

   [Verb("copy-to-model")]
  public class CopyRubriqueModelToModelOptions : BaseOptions
  {
   //....rest of code
  }

So help can describe the usage as you intend.
The usage:
      myapp  copy-in-place moel source target
      myapp  copy-to-model  SourceModel  ....

@moh-assan your answer is sensible. i will rethink my design. issue closed

@moh-hassan your answer is sensible. i will rethink my design. issue closed


Lazy Money does not work with Loot Sheet NPC 5e

The Lazy Money module functionality does not work with the Loot Sheet NPC 5e module's sheet. When trying to subtract any money from the money bar in an actor configured with "dnd5e.LootSheetNPC5e" sheet, instead of decreasing the money it's overriden.
Steps to reproduce

Create an NPC actor in Foundry VTT
Change it's sheet to "dnd5e.LootSheetNPC5e"
Change owned money to any amount (eg 100 gp)
Subtract any amount of money (eg -1 gp) - instead of showing 99 gp the bar shows -1 gp

Actors with standard sheet work correctly with both module installed

Create PR with changes for this compability, tested on Foundry V9 build 238, works correctly

Thank you, I have merged your PR.


Fix lint findings

This fixes the vast majority of the outstanding lint findings.
I need to discuss/get some assistance with the outstanding ones.
************* Module importer
docker/importer/importer.py:213:4: R1702: Too many nested blocks (6/5) (too-many-nested-blocks)
************* Module osv.cache
osv/cache.py:87:14: W1505: Using deprecated method getcallargs() (deprecated-method)
osv/cache.py:70:0: C0103: Function name "Cached" doesn't conform to the `snake_case` group in the '^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$' pattern (invalid-name)

------------------------------------------------------------------
Your code has been rated at 9.99/10 (previous run: 9.99/10, +0.00)

Nice!! Can you also fix the lint action here: https://github.com/google/osv.dev/blob/master/.github/workflows/lint.yaml ? This just uses the referenced bash script, which may not be re-surfacing all the necessary errors.
For docker/importer/importer.py, can you refactor some of the nested code into smaller helper functions?
For

osv/cache.py:87:14: W1505: Using deprecated method getcallargs() (deprecated-method)

Are we able to use the recommended replacements on https://docs.python.org/3/library/inspect.html#inspect.getcallargs ?

osv/cache.py:70:0: C0103: Function name "Cached" doesn't conform to the snake_case group in the '^(?:(?PsetUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>?[a-z][a-z0-9_]*))$' pattern (invalid-name)

Let's just rename this one. I think we just missed this through code review previously.

Nice!! Can you also fix the lint action here: https://github.com/google/osv.dev/blob/master/.github/workflows/lint.yaml ? This just uses the referenced bash script, which may not be re-surfacing all the necessary errors.

I think you're referring to what I've done in https://github.com/google/osv.dev/issues/521 so the answer is yes, in a separate PR. The fix is going to start causing hard fails on legacy lint errors, hence this PR.

For docker/importer/importer.py, can you refactor some of the nested code into smaller helper functions?

Yep, that was slightly higher hanging fruit than the rest.

For
osv/cache.py:87:14: W1505: Using deprecated method getcallargs() (deprecated-method)
Are we able to use the recommended replacements on https://docs.python.org/3/library/inspect.html#inspect.getcallargs ?

I'll need a bit of help, this function is doing things beyond my immediate skill level.

osv/cache.py:70:0: C0103: Function name "Cached" doesn't conform to the snake_case group in the '^(?:(?PsetUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>?[A-Z][a-zA-Z0-9])|(?P<snake_case>?[a-z][a-z0-9_]))$' pattern (invalid-name)
Let's just rename this one. I think we just missed this through code review previously.

Ack, done.

For
osv/cache.py:87:14: W1505: Using deprecated method getcallargs() (deprecated-method)
Are we able to use the recommended replacements on https://docs.python.org/3/library/inspect.html#inspect.getcallargs ?

I'll need a bit of help, this function is doing things beyond my immediate skill level.

Looking at the example here: https://docs.python.org/3/library/inspect.html#inspect.BoundArguments
I think for this, you'll need to split it out into a few more lines, from:
      key = (*getcallargs(func, *args, **kwargs).items(), unique_f_key)

to
sig = inspect.signature(func)
# Passing through the arguments made to the function
bound_args = sig.bind(*args, **kwargs)
# Making it hashable and combining it with the function name
key = (*bound_args.arguments.items(), unique_f_key)

Thanks so much for your assistance @another-rex
This is now 100% lint-clean @oliverchang


Drift Engines incorrectly costing PCU usage on Starship sheet

Starship Drift Engines require a minimum power rating for a Power Core but do not actually cost any PCU usage. The Starship Sheet currently acts as if the Drift Engine is using up the power. Current fix on the user side is to just uncheck the "is powered" toggle in the details of the drift engine.

That is why the "Is Powered' checkbox is there. The Drift Engines are considered switched off until you need them, in which case you have to unpower your Thrusters for 1 minute, and power up the Drift Engine.
Unchecking the "is powered" toggle is the correct expected player action in this situation.

That is why the "Is Powered' checkbox is there. The Drift Engines are considered switched off until you need them, in which case you have to unpower your Thrusters for 1 minute, and power up the Drift Engine.
Unchecking the "is powered" toggle is the correct expected player action in this situation.


Back button setting not working since latest update

After getting latest update, the setting toggle button to put the Back button in the title bar or inside the frame has stopped working. It will change from the default setting and never goes back. Toggle switch doesn't seem to turn off. I noticed this in the minimal sample.

Hey get latest. I just double-checked against the latest commit and it is working (in Minimal).


Fix downloading binary images to device

BytesIO is used if no length is provided, so the correct type here is bytes. Also binary images are often flashed, and especially the Android bootimage header contains 0x80 which cannot be decoded in the default codec for 'r' type, which is default.

Coverage remained the same at 43.567% when pulling 633fe32d801811d5217686161b894ab8548a2562 on penn5:patch-1 into d9b94b2dda555c14674c19806debb8449c0e9652 on google:master.

I signed it.


Load Testing Okta Connector

Test performance of Okta user API on 10k Users

Found issue #29

Due to Limitation of Okta Preview instant. We can only provision up to 1000 activate user accounts.
During this test, it takes 16-20sec to retrieve 1000 users from the API

Are we ready to close this issue?  If not, what more do we need to do?


Ampersand ( & ) symbols cause Word documents to break

Description
I had an ampersand in a few places in my resume.json and discovered that the generated Word Document errs upon opening due to a corruption.
Steps

My resume.json can be found here: https://gist.github.com/pmbenjamin/b4ba2959bbd036f494a2#file-resume-v2-json (CTRL+F or CMD+F to search for & symbol).
hackmyresume build resume.json generates all documents successfully.
Opening the doc file throws error:

Illegal name character.
Location: Line: 15, Column: 1593

Resolution

Open doc file in a text editor
Go to location specified in error message (e.g. line 15, column: 1593)
Remove & and save.

I doubt that this is a fault of HackMyResume per se, but thought I should create an issue for it in case others encounter this.

Thanks for the info @pmbenjamin. Looks to me like the & isn't being encoded properly for the Word format, which is XML internally. Will roll this into v1.3.

Hi @pmbenjamin, using HackMyResume v1.3.0 I am able to generate and open your v2 resume in MS Word 2013, although I notice that the colored skill bars are missing (make sure each skillset includes a "level" with a value of "master, advanced, beginner, intermediate" or 1 through 10):

@jkoo7yeha are you experiencing this issue? Thanks.

Hi @pmbenjamin, using HackMyResume v1.3.0 I am able to generate and open your v2 resume in MS Word 2013, although I notice that the colored skill bars are missing (make sure each skillset includes a "level" with a value of "master, advanced, beginner, intermediate" or 1 through 10):

@jkoo7yeha are you experiencing this issue? Thanks.


Add Process Creation Flags.

Adds the ability to set the process creation flags for Windows process via param in the PopenConfig struct.
This is a workaround for #40, so you can, for example, pass flag 0x08000000, which hides the CMD on Windows, or any other flag you want.

Do I understand correctly, there is no way to suppress showing console window for a non-console application on Windows without merging this in?

Do I understand correctly, there is no way to suppress showing console window of a child process for a non-console application on Windows without merging this in?

Hi!
As far as I know -- yes.
When I was making this pull request I was just getting into Rust, thus I've tried finding and using libraries like this one (having familiar interface was very important for me). As of now, I do recommend using either standard Command or async one from tokio. This library probably won't break you free from building some interface on top of it (for example, task, thread, channel, etc), so the amount of code you write won't change that much by using std or tokio (as this library mimics python library interface, making it not that far from standard Command interface).
If you really do need this library, you can just use my fork, I've made it up to date with master (or apply the changes you need by yourself).
Good luck!


Update nr1-graphiql-notebook

Acceptance Criteria

[ ] Confirm with the programmability 🧙  that there are no concerns with removing this app.
[ ] Follow the end of life process to remove this application from the catalog
[ ] Archive the repo

Usage

I've let some people know our intentions to EOL this app just waiting back on any concerns, I've also changed the AC to be focused on the end of life steps we need to take.


Calling io.StringIO('hello').read() from Rust returns empty string

I try to call read() on a Python object that implements it, like so:
from io import StringIO
obj = StringIO(u'hello')
myrustmodule.read(obj)

fn load(py: Python, fp: PyObject, kwargs: Option<&PyDict>) -> PyResult<PyObject> {
    let s_obj = fp.call_method0(py, "read")?;
    let s: String = s_obj.extract(py)?;
    println!("Result {:?}", s);
    // ...

In both cases, I get an empty string as a result.
Also tried two other ways to call the method, which also returned an empty string:
let s_obj = fp.call_method(py, "read", NoArgs, NoArgs)?;

let func = fp.getattr(py, "read")?;
func.call(py, NoArgs, NoArgs)

After some more trial and error, I found a way to do it, by calling seek(0) before reading:
fp.call_method(py, "seek", (0,), NoArgs)?;

let s_obj = fp.call_method0(py, "read")?;
let s: String = s_obj.extract(py)?;
println!("Result {:?}", s);

This prints hello.
So, apparently the stream position is not set to 0 in the beginning:
let pos: i64 = fp.call_method0(py, "tell")?.extract(py)?;
println!("Pos before: {}", pos);

fp.call_method(py, "seek", (0,), NoArgs)?;

let pos: i64 = fp.call_method0(py, "tell")?.extract(py)?;
println!("Pos after: {}", pos);

Output:
Pos before: 17
Pos after: 0

Also see this related ticket

Can you provide a minimal working example? And have you checked that you didn't read the StringIO before?

So it does work when I execute Python code from within Rust:
extern crate pyo3;
use pyo3::{AsPyRef, ObjectProtocol, PyDict, PyResult, Python, ToPyObject};

fn main() {
    let gil = Python::acquire_gil();
    hello(gil.python()).unwrap_or_else(|e| e.print(gil.python()));
}

fn hello(py: Python) -> PyResult<()> {
    let locals = PyDict::new(py);
    locals.set_item("io", py.import("io")?)?;
    let sio_obj = py.eval(r#"io.StringIO("hi")"#, None, Some(locals))?;

    assert_eq!(
        sio_obj.call_method0("tell")?,
        0_i64.to_object(py).as_ref(py)
    );
    assert_eq!(sio_obj.call_method0("read")?, "hi".to_object(py).as_ref(py));
    Ok(())
}

For some reason I can't get the second assertion to work. The output is quite suspicious:
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `'hi'`,
 right: `'hi'`', src/main.rs:18:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Nevertheless, the first assertion checks if the position of the stream to be 0, which is what I expect.
Therefore, it could have something to do with calling Rust code from Python.
When I find the time, I'll try to come up with a way to test this.

The problem in the example is that it compares pointers (and not their content). Extracting the value and comparing then does work:
extern crate pyo3;
use pyo3::{AsPyRef, ObjectProtocol, PyDict, PyResult, Python, ToPyObject};

fn main() {
    let gil = Python::acquire_gil();
    hello(gil.python()).unwrap_or_else(|e| e.print(gil.python()));
}

fn hello(py: Python) -> PyResult<()> {
    let locals = PyDict::new(py);
    locals.set_item("io", py.import("io")?)?;
    let sio_obj = py.eval(r#"io.StringIO("hi")"#, None, Some(locals))?;

    assert_eq!(
        sio_obj.call_method0("tell")?,
        0_i64.to_object(py).as_ref(py)
    );
    let left: String = sio_obj.call_method0("read")?.extract()?;
    assert_eq!(&left, "hi");
    Ok(())
}

(I'm not sure if comparing pointers is really a good default, __eq__ might be a better choice, but that needs an extra evaluation)

I think we can close this. All good from my side.