Friendbot periodically runs out of XLM

One recurring problem is that the Friendbot runs out of Lumens to give away, blocking testnet users from creating new accounts. This is because Friendbot currently serves from an arbitrary account which is manually funded. There's a separate issue to better monitor the balance, but manual processes are prone to failure.
There are a couple of options to resolve this permanently.

Friendbot could send funds directly from the source account with 100,000,000,000 XLM.
Friendbot could be automatically topped up as its balance dips below a certain threshold.

Both of these equally solve the problem.
I'm not aware of specific risks with giving Friendbot the keys to the testnet kingdom. The worst case scenario is that somebody steals the secret key and makes off with the entire testnet balance, but a) it would just be vandalism, testnet assets have no value and b) that's a current risk as Friendbot has to be manually sent testnet XLM by an SDF employee.
Automatically topping up has more moving parts, as it would entail a server running somewhere and monitoring the account's balance. However this is a pretty trivial service to keep operating.

Can we close this? We have proper alerting now.


fix: use std hashmap with "std" feature

Also caught by -Zcheck-cfg:
warning: unexpected `cfg` condition name: `std`
  --> crates/primitives/src/lib.rs:34:14
   |
34 |     if #[cfg(std)] {
   |              ^^^ help: found config with similar value: `feature = "std"`
   |
   = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows`
   = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(std)");` to the top of a `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg> for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default

Failures are due to hashmap ordering not being guaranteed. I don't really know how best to fix this @rakita

Let merge this as it is, and will make additional PRs to address the problems. There is test failure and second is clippy


Sleep / Suspend issue

Since the last update from aur betterlockscreen-git when issuing systemctl suspend the lockscreen just sits there forever and it only goes into suspend once the lock screen password has been entered. I checked my<EMAIL_ADDRESS>and nothing has changed. I cannot for the life of me see why it is sticking on the lock screen waiting for input instead of running betterlockscreen then suspending ???

From the name you told me, I think you are using betterlockscren-git from AUR right?
As far what I found out, this package uses commit 1c36673ecbc85bd0be8dc88249568aa8ce7f6795 from May so this could be an old issue. I would suggest you upgrade to v4.0.0 e.g. by installing manual or waiting for package get updated. I've checked v4 does not contain the bug anymore.

I think it's using the latest already as seen below:
aur/betterlockscreen-git r125.1c36673-1 [+13 ~2.12] [Installed: r165.a315d2e-1]
A simple lock script for i3lock-color

I have resolved my issue by reverting this previous fix
https://github.com/pavanjadhaw/betterlockscreen/pull/224
Changing Type=forking back to simple and now all works as expected.

Ah okay, thanks for letting me know I will have a look at it :)

I'm having the same issue and it looks like indeed Type=folding seems to be incorrect. The systemd manual says that:

If set to forking, it is expected that the process configured with ExecStart= will call fork() as part of its start-up. The parent process is expected to exit when start-up is complete and all communication channels are set up.

betterlockscreen exits only after the screen is unlocked.
I can confirm that changing Type=simple seems to have fixed the problem for me :slightly_smiling_face:

Change type from forking to simple fix the issue for me

Thanks for all of your reports! Today I had time to test it and will change the type from forking to simple and make a beta-release for 4.0.3 to let you all test it out if this is really the fix or new errors occur for some users.
@jbhardman Could you please explain more what's the issue on your system when switching to simple?

Please see the new beta-release an let me know if this helps out or there are still some issues: https://github.com/betterlockscreen/betterlockscreen/releases/tag/v4.0.3-beta1

So my issue is after the laptop goes to sleep. I changed the service to use simple instead of forking and that fixed it so that when I closed the lid, it went to sleep after locking. Great.
But, now, when I open the lid back up, I can't get the screen to come on. I click the trackpad, press keys, nothing. The only thing I can do is force power off by holding the power button.
I reverted to 3.2, and the screen immediately wakes up when I open the lid. So, it has to be the version.
This is with simple as the type.

@SebTM At the moment I am using v4.0.1 with a custom systemd service that looks like the service file from v4.0.3 (Type=simple) and I have not encountered any problems. I don't have the problem that @jbhardman mentions, so I cannot help there. Overall, v4.0.3 seems like a good-enough fix to me

After change to type=simple. My laptop can suspend after lid close or using systemctl suspend command for testing. Seem like I dont have any problem using this type

@jbhardman Could you please check your logs of the systemd-service/journalctl? I'm unsure why/how Betterlockscreen should cause this...
@Gelio @huyhoang8398 Thanks for the feedback - then I would go with this fix for v4.0.3 and try to investigate more to the problem from above...

@jbhardman Is your problem solved?

The original laptop I had this problem on was a Macbook Pro. Still have that problem there. But I just recently got a new Lenovo Thinkpad, and it is working as expected. The issue could be something related to waking a Macbook Pro from suspend mode.


update test apps after release branch

Goal

Testing

Release Notes

WHAT:
WHY:

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1009  👈
#1008
#1007
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nelsitoPuglisi and the rest of your teammates on  Graphite


Added IsAutoCloseEnabled bindable property for MoveToActionCell

Hello,
I have created a new BindableProperty in MoveToActionCell called IsAutoCloseEnabledProperty. The main goal of this property is self-explanatory. I have also added a new SamplePage to interact with this new property.
Demo

Hi
Probably, it would be better to set True by default?

Hi
Probably, it would be better to set True by default?

Ok. Furthermore, we could create a property called IsDestructive to achieve the MoveToAction sample behaviour (next goal).
Cheers,

I added a minor change to execute ForceClose before event and command. I have added this to avoid UI changes (eg converters in the sample) after swiping the cell.

I am going to validate PR in 1h :)


Improve autocompletion results around struct initialization

Well, since I have no blog or any kind of mailing list. I'll just put down a couple of notes regarding stuff I do right now. Soon. I'm halfway through the improvements I wanted to achieve. Will make a little report here when I'm done.

Okay, let's take a look at changes upcoming patch brings. As you know at some point @tiziano88 changed cursor context code quite radically. In particular support for struct initialization autocompletion was added. But it wasn't complete. For example you can see this TODO item: https://github.com/nsf/gocode/blob/c6df1295cc90424ba173336ef0ee0af2f34a5fc9/cursorcontext.go#L271
And there are some issues with this code. At the moment it was written I didn't care much because I wasn't using Go, but now I am. And here's the patch which fixes some of the issues. I went through all of the cursor context deduction code line by line and fixed as much as I could. The list of changes:
Case number one. Struct literals as a dot expression.
Before (no autocompletion suggestions):

After:

Case number two. Partial struct field autocompletion.
Before (not autocompletion suggestions):

After:

Case number three. Imported type struct field autocompletion.
Before (incorrect autocompletion, context deduction failure):

After (correct autocompletion):

Maybe I missed or forgot a few more cases, I'm not sure. But the point is, now it should be much better. Happy go coding (pun intended).


/uploadfile 401 Unauthorized (Invalid Authorization credentials)

I logged in side by side on both my localhost (Firebase successfully registering and configured in client/next-web/.env) and the realchar.ai site. Problem: cannot create characters on localhost
On my localhost:
I am concurrently running  the server via python cli.py run-uvicorn and  client  via cd client/next-web &&   npm install  &&  npm run dev . When I try to create a character, I get these errors for /uploadfile (same applies to the /system_prompt, create_character, and upload_image ):

--------- VS-----------
On the realchar.ai live site:
Creating character works without issue.

💡initial ideas (?):
- related to Request URL? ( http://<IP_ADDRESS>.1:8000/uploadfile vs https://api.realchar.ai/uploadfile)
- Enviornment configurations / variables
- Token refresh logic (see below)
One difference I see the token?key=.... row circled in red, both the Headers and the Payload:

Hi Jack, glad to help!
/uploadfile sends your file to a GCP storage bucket. To use it locally, you'll need to get your own GCP storage bucket, and configure it in .env. A google_credentials.json file is also needed to prove your admin. Put the file under root directory of repo, and also enable GOOGLE_APPLICATION_CREDENTIALS=google_credentials.json in .env. It should work.

Ty! I got it to work! A few questions:

I am working on the codebase I cloned 1week ago (before the latest changes with Rebyte). Will I have issues (I am a paying Rebyte member and love it, but for this project I would like to use without Rebyte)? If there are things I should know, lmk
I want to fully self-host this project. After setting up the Firebase, GCP bucket, I believe next step is configuring Nginx and then Kubernetes. Is there anything else in the stack / backend infrastructure you guys are using for the realchar.ai public live site and if so, what is the path I should take forward?

Also any further info on deployment via sample_cloud_deployment/README.md would be appreciated 😊 :

building out backend and frontend separately?
prerequisites (Minikube, etc.)


fix env vars

Changes:

indentation after envFrom was incorrect, causing some cryptic errors...
env vars from secrets need to be put in 'env' block not 'envFrom'

Sorry, I think my rebase went nuts. Let me try to fix it


[FLINK-33770] Migrate legacy autoscaler config keys

The previous PR in #725 made the legacy autoscaler config keys "fallback" keys to prevent logging a deprecation WARN message on every reconciliation loop in the operator. Turns out, fallback keys also log a warning.
This change moves to migrating all config keys in the legacy "kubernetes.operator." before any autoscaler ConfigOptions are used. This ensures no warnings will be logged but the older keys can still be used.  The new keys always have precedence over the old keys.

Folks, any more comments? Thanks for your suggestions regarding the implementation. I had a good three attempts and I think it looks good now. The source of quirkiness is really Configuration which has some odd design choices.

While testing, I noticed that the abstraction in the PR doesn't fully hold because there is code in the reconciler which access autoscaler options and uses the observe config instead of the migrated config, e.g. here. I could fix this but I fear that the abstraction might become leaky again in the future.
I'm closing this PR because I want to avoid adding too much complexity to the config key handling.
The current approach to use fallback instead of deprecated keys is fine. Fallback keys are logged at INFO, so we can simply set the logging for Configuration to WARN. See: https://github.com/apache/flink-kubernetes-operator/pull/734


[BUG] embedding image with alpha channel broken

Hello everyone, I use embedding images with transparency to my document, but this function was broken in version 1.3.1, I have attached examples of generated documents in different versions.
example embedding
https://jsfiddle.net/d1uLne7g/
looks like that was broken into version 1.3.2
https://github.com/Hopding/pdf-lib/compare/v1.3.1..v1.3.2#diff-4f449742b7e9f5f136fe91da08ad248d
attached 2 pdf generated in version 1.3.1 and 1.7.0
1.3.1.pdf
1.7.0.pdf
@Hopding

Version 1.9.0 is now published. It contains the fix for this issue. The full release notes are available here.
You can install this new version with npm:
npm install<EMAIL_ADDRESS>
It's also available on unpkg:

<EMAIL_ADDRESS><EMAIL_ADDRESS>
As well as jsDelivr:

<EMAIL_ADDRESS><EMAIL_ADDRESS>


(MODULES-3039) Use supported Chocolatey provider

Update the puppetlabs windows module pack to use the PL version instead of the Community provider

Is this just in prep?

targeted master so I think we can 👍

Have you already targeted stable and updated the PowerShell provider to 2.x?


Update objectify_query_results to support ActiveSupport 5.2 as change…

Once upgrading to Rails 5.2 ActiveZuora is unable to return a ActiveZuora::Relation objects as the attempt to call changed_attributes.clear fails with the error:
RuntimeError: can't modify frozen ActiveSupport::HashWithIndifferentAccess
Updating the code to utilize the method clear_changes_information works for 5.2 but is not backwards compatible. In an effort to keep backwards compatibility the conditional logic was added and it has been confirmed to still work for Rails <IP_ADDRESS> as well.

Ignoring red build as it's green on the real repo where the PR is still pending review. Appears to be a Travis config issue as bundler is failing to install


[modin] Support more than one partition in HDK

https://github.com/intel-go/modin/blob/23a0fcc520ffad7e377ce4fc466a9a2488995272/modin/engines/base/frame/partition_manager.py#L323-L324
There is only one partition created (the link above).
We need multiple parts support in order to process them in parallel

HDK was removed in https://github.com/modin-project/modin/pull/7275


Remove stubs for APIs dropped in CUDA 10.1 Update 2

Follow-up for #2573

imosCI, test this please.

imosCI, test this please.

imosCI, test this please.

Jenkins CI test (for commit 26b1f7d37c91bcf14dc1ee31e1caeb7cc5154b5f, target branch master) failed with status FAILURE.

imosCI, test this please.

Jenkins CI test (for commit 26b1f7d37c91bcf14dc1ee31e1caeb7cc5154b5f, target branch master) succeeded!

Thanks all! 😀


⚠ GitLab Server has degraded performance

In 0e26f50, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6929 ms

Resolved: GitLab Server performance has improved in 2dee6aa.


Add NOTICE to binary package and fix some typo

Signed-off-by: Gao Hongtao<EMAIL_ADDRESS>

@lujiajing1126 I think client lib should follow this fix too? Although gRPC/protobuf makes this change compatible with previous versions.

@lujiajing1126 I think client lib should follow this fix too? Although gRPC/protobuf makes this change compatible with previous versions.

Java Client does not have this typo. While moving code there, I've already fixed it.
https://github.com/apache/skywalking-banyandb-java-client/blob/main/src/main/proto/banyandb/v1/banyandb-property.proto#L77

@lujiajing1126 I think client lib should follow this fix too? Although gRPC/protobuf makes this change compatible with previous versions.

After checking the java-client's proto files, I didn't find similar types. It seems they don't affect the interoperations between client and server.

@lujiajing1126 I think client lib should follow this fix too? Although gRPC/protobuf makes this change compatible with previous versions.

After checking the java-client's proto files, I didn't find similar typo. It seems they don't affect the interoperations between client and server.

Yes. The protocol itself only cares about the position and the type of the field.


Create / edit page design

This needs some design polish.

Save button needs to be obvious - move to nav bar?
FAB buttons need labels or better icons
Move create buttons to Sidebar?
New elements should have clear division (each should be in it's own row card)

Edit buttons should be positioned so the mouse doesn't have to move from one side of screen to the other.

The new layout should be optimised for efficiency of movement

Low priority note: If you get rid of the header bar or the custom condensing transformation that is there now, please remove code related to that from app.js. Just so that we don't leave unused code behind.

Yes that will have to go - also I think it doesn't work well when scrolling with drag and drop elements. Auto-scrolling down the ways works, but dragging elements up doesn't autoscroll - I'll venture  its all that condensing header scrolling trickery getting in the way.


Macro error in category pages

I seem to be having the same issue described here: https://github.com/Shazwazza/Articulate/issues/29. The macro renders everywhere else in the site, just not in the Articulate section. Debugged and the macro parameter is set correctly.
Error:
[InvalidOperationException: Cannot render a macro, no content found by id<PHONE_NUMBER>]
Umbraco.Web.UmbracoComponentRenderer.RenderMacro(Int32 contentId, String alias, IDictionary`2 parameters) in D:\a\1\s\src\Umbraco.Web\UmbracoComponentRenderer.cs:100
Umbraco.Web.UmbracoHelper.RenderMacro(String alias, Object parameters) in D:\a\1\s\src\Umbraco.Web\UmbracoHelper.cs:167
Umbraco 8.11.1
Articulate 4.2.1
View code:
@Umbraco.RenderMacro("TopNavigation", new { startNodeId = @topNavId })

Hi, do you have basic steps to replicate from a vanilla install?

Don't have steps to reproduce from a standard installation. We worked around this by using partials instead of macros.


Warnings, historical views, etc

config: allow a more fine-grained logging of requests
We now support:

$LOG_NETWORK=all,requests,responses,response-bodies,queries
This will log only the bits that you ask for, any comma-delimited
list is fine here.
$LOG_NETWORK_MATCHING=''
This will use a simple .includes() check on the fully-formatted URL
(with parameters) to filter the requests and responses that are
logged.

Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
map: update the warning animation
This thing is pretty jittery still ... we might want to work on this.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
form/LocationField: fetch the correct center's map
We need to show the correct map view for the correct center for which
we're currntly submitting an observation. Also, we don't need map zones
and all the extra fetching that comes with that, just the map layer.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
screens: make a semantic distinction between a date and latest
We need to do different behavior in the API layer depending on whether
we're looking for a particular time in the past for our data or the
latest data, regardless of what time it is.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
logging-squash

latest-squash

hooks: log the query paramters we're sending
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
map: hoist queries to the top for zones
We have a couple of different places we get data from for map zones -
the map layer query and all the individual queries for the forecasts and
warnings we do for each zone. Not only was the previous query silently
failing to do anything with the updated data (oops, setting fields that
did not exist since we were not very specific with our types), but it
also had the isseus with composed queries that we know about.
Hoisting the values up to the top allows us to not chain queries,
thereby making our error and loading states clearer, and it allows us to
more explicitly tesselate data from all of our sources.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
android: ask for filesystem permissions
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
squash-latest

forecast: fetch and show warnings
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
network: misc updates to prefetch
Don't need to block on the metadata, need to prefetch danger icons.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
*: fix rebase conflicts
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
weather: parse Pacific Time strings
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>

@floatplane I hear your questions re: what our behavior looks like during the cut-over between forecast periods and how we render the app when the user's been offline for more than a day, but I think we'll merge this to allow for more iteration since this PR does not introduce the behavior you're calling into question, that's been how we operate for a while now.


Unable to Pass Map as Input/Output in isolate-manager Causing UI Freeze on jsonEncode/jsonDecode

Hello,
I encountered an issue while using the isolate-manager package. It seems that I’m unable to pass a Map as an input or output when using isolate-manager, which leads to problems when handling large data transfers.
As a workaround, I was able to send and receive a Map using a worker without any issues. However, when attempting the same process using isolate-manager, the error occurs, and the UI freezes during jsonEncode and jsonDecode.
Is there any way to resolve this issue or support passing a Map?
Thank you for your assistance!
Steps to Reproduce:
1.	Try passing a Map as an input or output in isolate-manager.
2.	Experience the No such method error.

Expected Behavior:
Be able to pass a Map without encountering an error.
Environment:
•	Flutter version: (3.24.3)
•	isolate-manager version: (^5.3.0)
•	Device: (chrome)

Hi @abbashosseinii
Can you let me know the way that you send and receive a Map via Worker? I think we have no similar Dart Map in JS so we cannot send a Map directly to the JS. The only way I can do is by using jsonEncode and jsonDecode.

Hello dear @lamnhan066
This is possible. We just need our models to work with Map<dynamic, dynamic> in the toJson and fromJson methods. I wrote a simple project where I implemented this using a basic worker.js. I’ll attach the project link below. Thank you for your quick response.
Sample project

Hi @abbashosseinii
If you are using the toJson and fromJson the the package will work flawlessly when you're using String like this (I copied this from the document) :
main() async {
  final isolate = IsolateManager.create(
    aStringIntMap,
    workerName: 'aStringIntMap',
    isDebug: true,
  );
  await isolate.start();

  final map = {'a': 1, 'b': 2, 'c': 3};
  final result = await isolate.compute(jsonEncode(map));
  expect(jsonDecode(result), map);
}

@isolateManagerWorker
String aStringIntMap(String params) {
  return params;
}

Dear @lamnhan066
I opened this issue for three reasons:
1- The reason for choosing the package
The solution you provided for encoding and decoding is not compatible with the web platform, and the main reason I chose this package over conventional methods is to leverage multi-threading in the web environment.
2- Compatibility with very large data
In cases where large amounts of data need to be transferred, like in the project I’m currently working on, this encoding and decoding process becomes a very time-consuming operation.
3- Work smarter, not harder
We can only solve this issue if we remove the current limitations on input and output and handle it through Map, as I explained earlier. This way, we can significantly reduce the computational load and noticeably shorten task completion times.

Hi @abbashosseinii
I misunderstood your last opinion because at first, I thought your toJson returns a String instead of a Map. I just realized that when I looked into the worker.js. I think the issue was caused when compiling from Dart to JS (your script was written in JS native).
I think I will try to write a simple script in Dart using a Map, compile it to JS and let’s see if I can find any way to make it work.
Thank you for your information.

@lamnhan066
Thank you so much! Wish you success!

@abbashosseinii
After doing a small test, I realized that the issue was caused by the web package. With the same kind of the worker.dart, I can send the Map<dynamic, dynamic> between the main app and the Worker when using the Worker from the html package, but I cannot do it when using the Worker from the web and js_interop.
This is the demo for the web package:
worker.dart
import 'dart:js_interop';

import 'package:web/web.dart';

@JS('self')
external DedicatedWorkerGlobalScope get self;

void main() {
  self.onmessage = (MessageEvent event) {
    self.postMessage([event.data] as dynamic);
  }.toJS;
}

runWorker
  Future<Map<dynamic, dynamic>> runWorker(Map<dynamic, dynamic> inputData) async {
    // Create a new worker
    final worker = web.Worker('out.js'.toJS);

    // Prepare a completer to handle async communication
    final completer = Completer<Map<dynamic, dynamic>>();

    // Listen for messages from the worker
    worker.onmessage = ((web.MessageEvent event) {
      final updatedData = event.data;
      completer.complete(updatedData as Map<dynamic, dynamic>);
      worker.terminate(); // Terminate worker when done
    }).toJS;

    // Send the input data to the worker
    worker.postMessage(inputData as dynamic);

    // Wait for the result
    return completer.future;
  }

And for the html package:
worker.dart
import 'dart:js_interop';

import 'package:universal_html/html.dart';

@JS('self')
external DedicatedWorkerGlobalScope get self;

void main() {
  self.onMessage.listen((event) {
    self.postMessage(event.data);
  });
}

runWorker is the same as your demo.
You can run dart compile js worker.dart for each one and copy the out.js to the web folder to check the result.

By using the code from here, I can pass a Map between the main app and the Worker flawlessly. I'll release a new version as soon as all tests pass.


possible curated content: article: The Four Pillars of Research Software Engineering

Possible curated content on an article in IEEE Software:
https://ieeexplore.ieee.org/document/8994167
abstract for the article:
Building software that can support the huge growth in data and computation required by modern research needs individuals with increasingly specialist skill sets that take time to develop and maintain. The Research Software Engineering movement, which started in the UK and has been built up over recent years, aims to recognise and support these individuals. Why does research software matter to professional software development practitioners outside the research community? Research software can have great impact on the wider world and recent progress means the area can now be considered as a more realistic option for a professional software development career. In this article we present a structure, along with supporting evidence of real-world activities, that defines four elements that we believe are key to providing comprehensive and sustainable support for Research Software Engineering. We also highlight ways that the wider developer community can learn from, and engage with, these activities.

I am a bit fuzzy on how the concept of Research Software in the HPC community is any different from Agile in the Tech. IMHO, good Research Software Engineering is application of many Agile principles and practices to HPC software products. Nonetheless, I think this is a great CC article.

Looks like a great article to me!


zh,en: update precheck items

What is changed, added, or deleted? (Required)
update precheck items for v2.0.1

Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v3.0 changes)
[x] v2.0 (TiDB DM 2.0 versions)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?
https://github.com/pingcap/dm/pull/1315

This PR is translated from:
Other reference link(s):

Do your changes match any of the following descriptions?

[ ] Delete files
[ ] Change aliases
[ ] Need modification after applied to another branch
[ ] Might cause conflicts after applied to another branch

Should we merge this PR after v2.0.1 is released? @csuzhangxc @GMHDBJD


Add support for logging to the system event log

Consider adding a new option to allow major log messages to be recorded to the system event log (via %SYN_REPORT_EVENT). This would be in addition to other logging mechanisms.

Added command line option -syslog and environment variable REPLICATOR_SYSTEM_LOG to allow startup, shutdown and error messages to be written to the system log in addition to the regular log file.


Load audio with PyAV

Torchaudio depends on one of a few backends being installed, which has caused a number of problems. See #2225
This PR solves it by using PyAV to load the audio, because it bundles ffmpeg and makes for easy install.
https://pyav.org/docs/stable/
This is the approach taken by faster whisper (see https://github.com/SYSTRAN/faster-whisper/blob/master/faster_whisper/audio.py#L1)

I tried this PR to load .wav / .flac / .mp3 and it works as intended. There's only one warning that we should pay attention to when loading mp3: WARNING:libav.mp3:Estimating duration from bitrate, this may be inaccurate. This will flood your console when you are looping over a lot of mp3 files (e.g. common voice):
WARNING:libav.mp3:Estimating duration from bitrate, this may be inaccurate
WARNING:libav.mp3:Estimating duration from bitrate, this may be inaccurate
...
WARNING:libav.mp3:Estimating duration from bitrate, this may be inaccurate
WARNING:libav.mp3:Estimating duration from bitrate, this may be inaccurate

To reproduce:
wget -O example_rw.mp3 "https://www.dropbox.com/scl/fi/iplkymn8c8mbc6oclxem3/example_rw.mp3?rlkey=yhmqfsn8q43pmvd1uvjo3yl0s&dl=1"

and then:
for _ in range(10):
  load_audio_pyav("example_rw.mp3", normalize=False)[0]

I will try to use pyav on common voice and see how it behaves compared to Torchaudio since creating a new conda env in my cluster may lead to issues with torchaudio and mp3.

I will try it. Something important to do would be to benchmark the reading speed of this lib. Some backend of torchaudio were awfully slow for instance leading to slower training times.

I tried this PR to load .wav / .flac / .mp3 and it works as intended. There's only one warning that we should pay attention to when loading mp3: WARNING:libav.mp3:Estimating duration from bitrate, this may be inaccurate.

I have seen this warning before, but as far as I know it can be ignored. Perhaps we can find a way to suppress it.

The problem is that the warning shows on every call so having the user ignore it is not really an option. IMO the warning underlines a valid concern so the user should still be made aware of it in some way.
A single warning with the rest of them suppressed would seem fair to me, but I don't know if others agree.

I think we can close this PR as we decided to not support for now PyAV as it is slower than torchaudio. Free free to reopen it in the future if you find the integration with PyAV valuable.


NextJS App Router unsupported

pnpm create @tobiastengler/relay-app
? What's the toolchain of your project next
? Does your project use TypeScript Yes
? Where's the root directory of your application code ./
? Where's your GraphQL schema file ./src/schema.graphql
? (Optional) Where to place Relay artifacts ./__generated__
? Do you want to setup Subscriptions No
? What package manager to install packages with pnpm

✔ Add Relay dependencies react-relay relay-runtime
✔ Add Relay devDependencies relay-compiler @types/react-relay @types/relay-runtime
✔ Configure relay-compiler in ./relay.config.json
✔ Add relay-compiler scripts in ./package.json
✔ Generate Relay environment ./src/RelayEnvironment.ts
✔ Generate GraphQL schema file ./src/schema.graphql
✔ Generate artifact directory ./__generated__
✔ Configure Relay artifact EOL in .gitattributes in ./.gitattributes
✖ Configure Next.js compiler in ./next.config.js

  Failed to read from file: /home/darko/WebstormProjects/nextjs/blogs-relay/next.config.js

✔ Add type helpers ./src/relay-types.ts
✖ Add RelayEnvironmentProvider

  _app.tsx could not be found

 _app.tsx is present only in pages router

Sorry not seen #16
But also pages router has issues
pnpm create create-next-app@latest --ts --eslint --no-app --src-dir
...
pnpm create @tobiastengler/relay-app
? What's the toolchain of your project next
? Does your project use TypeScript Yes
? Where's the root directory of your application code ./
? Where's your GraphQL schema file ./src/schema.graphql
? (Optional) Where to place Relay artifacts ./__generated__
? Do you want to setup Subscriptions No
? What package manager to install packages with pnpm

✔ Add Relay dependencies react-relay relay-runtime
✔ Add Relay devDependencies relay-compiler @types/react-relay @types/relay-runtime
✔ Configure relay-compiler in ./relay.config.json
✔ Add relay-compiler scripts in ./package.json
✔ Generate Relay environment ./src/RelayEnvironment.ts
✔ Generate GraphQL schema file ./src/schema.graphql
✔ Generate artifact directory ./__generated__
✔ Configure Relay artifact EOL in .gitattributes in ./.gitattributes
✖ Configure Next.js compiler in ./next.config.js

  Failed to read from file: /home/darko/WebstormProjects/nextjs/blogs-relay/next.config.js

✔ Add type helpers ./src/relay-types.ts
✔ Add RelayEnvironmentProvider in ./src/pages/_app.tsx

✖ Some of the tasks failed unexpectedly.


[DOCUMENTATION] Add a guide mapping common pandas dataframe operations to FiftyOne view expressions

Pandas provides a lot of similar capabilities to filtering and slicing dataframes that FiftyOne provides to create views of datasets. For new users that are familiar with pandas, it would be useful to have a chart mapping pandas operations to the matching FiftyOne operations.

@ehofesmann, was interested in this. Would like to contribute if it is open to new contributors.

https://docs.voxel51.com/tutorials/pandas_comparison.html
https://docs.voxel51.com/cheat_sheets/pandas_vs_fiftyone.html


WebView is crashing on Android

This is happening on my new device. Not sure if this is a WebView issue. It happens quite often and consistently because it is related to ads? I will try getting the crash log and see.
InputMethodManager: b/117267690: Failed to get fallback IMM with expected displayId=14 actual IMM#displayId=0 view=io.flutter.plugins.c.e{22b2bf9 VFEDHVC.. .F...... 0,0-2340,1080}
D AndroidRuntime: Shutting down VM
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.yihengquan.gogoanime, PID: 30597
E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'android.view.WindowManager$LayoutParams android.view.ViewRootImpl.mWindowAttributes' on a null object reference
E AndroidRuntime: 	at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1646)
E AndroidRuntime: 	at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1885)
E AndroidRuntime: 	at android.view.inputmethod.InputMethodManager.isActive(InputMethodManager.java:1204)
E AndroidRuntime: 	at io.flutter.plugins.c.e$a.run(Unknown Source:26)
E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:883)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:100)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:239)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7500)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

Potentially related to https://github.com/flutter/flutter/issues/62022, https://github.com/flutter/flutter/issues/58229, https://github.com/flutter/flutter/issues/74412. However, I could never reproduce this on my other devices and so far nobody has asked about this 🤔. Nevertheless, the app crashes very consistently on this device, it is running Android 10 almost stock Android. I will have to attach a debugger to see what's wrong with webview_flutter and maybe this issue has been fixed in a later version.

This is only happening on one device so I need to have a look.

I can no longer reproduce this on that device. This should be fixed somehow.


Implement Github webhook receiver

Issue moved to presslabs/stack #12 via ZenHub

Issue moved to presslabs/stack #13 via ZenHub


Enhancement: Add the ability to save and restore the state of an adaptor

Currently, if transporter fails, it is not able to start back where it left off during a copy/tail. In order to support this, each adaptor will want to save/persist the most recent document it has processed. We should be able to support multiple types of persistent stores using a simple interface like so:
type SessionStore interface {
	Set(path string, msg *message.Msg) error
	Get(path string) (string, int64, error)
}

The path would typically be a combination of the Transporter key and the node path. When retrieving the last known State, we will only return the last _id and the timestamp of the operation. It may be necessary in the future to support retuning the entire message.Msg.
Ideally, an implementing class will not constantly write the last operation but have the ability to "flush" on an interval which can be defined in the config.yaml.
The beginning of this can be seen in adaptor-state branch but it is incomplete. It currently introduces a sessionTicker where the Pipeline will call the Set func for each Node. As of right now, I have not added the ability to retrieve/get the state during startup/initialization.
Thoughts and feedback?

Another part of this that has yet to be discussed is how to actually configure a SessionStore. My thought is to have something like the following in the config.yaml:
sessions:
  type: "filestore",
  interval: 10s

If the sessions section is missing, no SessionStore will be used.

Made another change to the interface to use a struct instead of just the message.Msg. This will allow adaptors to store additional information while processing documents.
type SessionStore interface {
	Set(path string, state *MsgState) error
	Get(path string) (*MsgState, error)
}

type MsgState struct {
	Msg   *message.Msg
	Extra map[string]interface{}
}```

do we need a map[string]interface{} there?
or can we assume we have a few specific states that we care about and use a type State int to store it?

possibly, the purpose of the map is so adaptors could set things like Extra["progress"] = "copy" or Extra["progress"] = "tail" in the case of the MongoDB adaptor
that could just as easily be solved I guess but didn't want to limit things right away

This is the most important feature I need. I also want It to be distributed, Allow another node to restore the state if the current node is down by saving the state on a central server (or using etcd)

+1

+1

@methuz I hope to get the adaptor state branch going again very soon but the initial implementation will not involve any distributed aspect to running transporter.
The initial goal is for transporter to save its running state at specified intervals to a SessionStore so if the transporter process crashed, it could be restarted and pick back up where it left off. In addition, the first version will likely only support 2 SessionStore implementations: File and Redis but more will be added over time.

Hi,
Since the feature has already been merged into master, post-configuring the config.yaml, how does one go about using it in application.js?

+1

+1


Fix suse step-by-step install e2e tests

What does this PR do?

It adds the -f flag when removing the repo files for zypper so that the command doesn't fail if there aren't any files to begin with.
It pins the suse images to the right AMI's (by incorporating https://github.com/DataDog/datadog-agent/pull/30211)

Motivation
This command started to fail this morning (#incident-31580).
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


Add option to enable TLS

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


Thumb "drag point" is not centered on thumb

The dragging point on the thumb seems to be located on the very left point of the thumb. This causes a "jump" when pressing the center of the thumb to drag it. An even bigger "jump" is seen when pressing on the right side of the thumb when starting to drag it.
Only way to get a smooth start of dragging is to press on the very left side of the thumb.
I am using a custom thumb, and I have set the thumb width prop to get it to fit within the track.
I can add a negative margin equal to the half of the width on my custom thumb to make the dragging work as it should (centered), but that will cause it to overflow on the left side of the track, and not reach the end of the right side of the track.
Video of the issue. First I am dragging the thumb by clicking on the right side. Then I am dragging it by clicking on the left side. As you can see, the mouse pointer is fixed to the left side of the thumb, but it should be fixed to the center.
https://github.com/alantoa/react-native-awesome-slider/assets/91947816/98018d02-78fe-4577-be1a-95fcaecee8b7

hey @gimi-anders , could you please put your example code to https://snack.expo.dev/? happy to take a look at it.

@alantoa Expo snack does not seem to be able to use this library (or could you provide an example snack that works?)
Anyway, here you can see the code for my example (you can just remove the icons in the thumb if you like):
  const renderThumb = useCallback(
    () => (
      <View style={styles.thumb}>
        <Icon
          name={ANGLE_LEFT}
          color={Colors.whiteLilac}
          style={[styles.icon, { marginLeft: 1 }]}
        />
        <Icon
          name={ANGLE_RIGHT}
          color={Colors.whiteLilac}
          style={styles.icon}
        />
      </View>
    ),
    [],
  );

<Slider
        style={[styles.slider]}
        theme={{
          minimumTrackTintColor: Colors.blue,
          maximumTrackTintColor: Colors.whiteLilac,
        }}
        progress={progress}
        minimumValue={min}
        maximumValue={max}
        sliderHeight={3}
        renderThumb={renderThumb}
        thumbWidth={42}
      />

const styles = StyleSheet.create({
  slider: {
    width: "100%",
    height: 42,
    flex: 0,
  },
  thumb: {
    flexDirection: "row",
    backgroundColor: Colors.blue,
    height: 42,
    width: 42,
    borderRadius: 42,
    justifyContent: "center",
    alignItems: "center",
  },
  icon: {
    fontSize: 11,
  },
});

@gimi-anders thanks, I will check it out soon when I'm free

patch it yourself in slider.tsx
search for
 left: -bubbleMaxWidth / 2
change it to
 left: -bubbleMaxWidth / 2 - thumbWidth / 2,

patch it yourself in slider.tsx
search for
 left: -bubbleMaxWidth / 2
change it to
 left: -bubbleMaxWidth / 2 - thumbWidth / 2,

Could this solution be added to mainline? Same issue here with custom bubble and thumb. Fixed them by applying a custom style, works but suboptimal. Future me needs to do more maintanance of code.

I downgraded to 2.5.2 and it fixed this issue for me. @alantoa do you remember why this fix was reverted in 2.5.3?

hazelmeow

Any update on this fix? What was the problem at: " left: -bubbleMaxWidth / 2 - thumbWidth / 2,"

added bubbleOffsetX prop in v2.6.4, I think it should fix your problem.
https://github.com/user-attachments/assets/72c1e402-8740-43d4-ad7c-82b735e8cd09


[Hold on ##29983] [$500] [Form Provider Refactor] WaypointEditor

Coming from https://github.com/Expensify/App/issues/25397#issuecomment-1743272245, we created a new Form provider that works with functional components and we need to refactor all usages of the old Form component.
This issue is specific to refactoring src/pages/iou/WaypointEditor.js
cc @kowczarz @cdOut
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0165bf01aa20db61bc
Upwork Job ID:<PHONE_NUMBER>395114496
Last Price Increase: 2023-10-20

Hello! I'm Kamil Owczarz from Software Mansion, the expert agency and I would like to work on this task.

This one is blocked by https://github.com/Expensify/App/pull/29983 as well

Making a weekly if there is a hold on #https://github.com/Expensify/App/pull/29983

https://github.com/Expensify/App/pull/29983 is on staging

Looks like https://github.com/Expensify/App/pull/29983 is on prod since Monday, so taking this off hold and making a daily again

@kowczarz can you advise on progress here - is there a PR up yet? Thank you

Hello! Tomorrow I will start working on it

PR for this issue was merged yesterday and is in staging now.

Payment Summary:
Contributor: $125 @hoangzinh offer sent in Upwork
C+: @kowczarz Expert Contributor N/A

Payment Summary:
Contributor: $125 @hoangzinh paid  in Upwork
C+: @kowczarz Expert Contributor N/A


record "starred" messages

Similar to how a bot functions in the discord.js server:
when a message is starred, the message is posted to a "starred" channel that is locked to everyone but the bot.
the embed message has the message content, the poster, the number of stars, the channel, the message id, and timestamp

example: https://imgur.com/uTBOIqW


404 Error on API Routes When Using SRC Folder Structure

Description
When using the next-firebase-auth-edge package with a Next.js 14 project that uses the App Router and a src folder structure, the automatically generated API routes (/api/login and /api/logout) return 404 errors.
Steps to Reproduce

Set up a Next.js 14 project with App Router and src folder structure
Install and configure next-firebase-auth-edge as per documentation
Implement the middleware as shown bellow
Attempt to access /api/login or /api/logout

Expected Behavior
The /api/login and /api/logout routes should be accessible and function as described in the documentation.
Actual Behavior
Accessing these routes results in a 404 error. Manually creating these routes in src/app/api/ works, but defeats the purpose of automatic route generation.
Environment

Next.js version: 14.2.5
next-firebase-auth-edge version: 1.6.1
Node.js version: v20.9.0
Using App Router: Yes
Using src folder: Yes

Additional Context
The example provided in the documentation works correctly with a flat project structure. The issue seems to only occur when using a src folder structure. I changed the older structure to a flat one and it worked.
Question
Is there a way to configure the package to work with a src folder structure without manually creating the API routes?
##Middleware file
`
import { NextRequest } from "next/server";
import { authMiddleware } from "next-firebase-auth-edge";
import { clientConfig, serverConfig } from "@/lib/firebase/edgeConfig";
export async function middleware(request: NextRequest) {
return authMiddleware(request, {
loginPath: "/api/login",
logoutPath: "/api/logout",
apiKey: clientConfig.apiKey,
cookieName: serverConfig.cookieName,
cookieSignatureKeys: serverConfig.cookieSignatureKeys,
cookieSerializeOptions: serverConfig.cookieSerializeOptions,
serviceAccount: serverConfig.serviceAccount,
});
}
export const config = {
matcher: [
"/",
"/((?!_next|api|.\.).)",
"/api/login",
"/api/logout",
],
};
##Login File
"use client";
import * as React from "react";
import Link from "next/link";
////
import { Input } from "@/components/ui/input";
import { RobotoFont } from "@/components/font";
import { SubmitButton } from "@/components/ui/submit-button";
import { PasswordInput } from "@/components/ui/password-input";
import { signInWithPassword } from "@/actions/auth";
import { useFormState } from "react-dom";
import { GoogleSignin } from "@/components/auth/google-signin";
export default function Login() {
const [state, formAction] = useFormState(signInWithPassword, undefined);
React.useEffect(() => {
console.log(state);
async function SetBrowserCookies() {
await fetch("/api/login", {
headers: {
Authorization: Bearer ${state?.idToken},
},
});
}
if (state?.success) {
console.log("is it trying", state?.success, true);
SetBrowserCookies();
console.log("is it done", state?.success, true);
}
}, [state]);
return (

Login
{/* form */}
<form action={formAction} className={${RobotoFont.className}}>

email address

<Link className="text-[]" href={/auth/forgot-pasword}>
Forgot Password

{state?.message}

<SubmitButton
className="rounded-full w-full uppercase mt-8 relative"
size={lg}
>
Login

Don't have an account?
<Link className="text-[]" href={/auth/signup}>
Signup

or

);
}
##form action
export async function signInWithPassword(state: FormState, formData: FormData) {
const email = formData.get("email") as string;
const password = formData.get("password") as string;
try {
const credential = await signInWithEmailAndPassword(FirebaseAuth, email, password);
const idToken = await credential.user.getIdToken();
return{
credential,
idToken,
message:"Login successful, redirecting...",
success:true
}
} catch (error: unknown) {
// console.log("", JSON.stringify(error));
return mapFirebaseErrorToFormState(error);
}
}
`

Hey @JumboDaniel!
Thanks for reporting. As far as I know, the directory structure should not affect how auth middleware is working. I will try to reproduce the issue and get back to you.

Hey @JumboDaniel!
I have modified starter example to use src dir: https://github.com/awinogrodzki/next-firebase-auth-edge/pull/245
Everything seems to be working as expected.
Have you moved middleware.ts to src/middleware.ts?

I will close the issue now as it seems to be due to incorrect middleware.ts file placement. Feel free to re-open if otherwise

Thank you very much, I found out that was the issue.


Caps sentences and autocorrect when creating a note

Title says it all!

textCapSentences seems to make the Edittext into a single, horizontally scrolling line, hence I'd removed that. I'll look into it again.
In the AddToDoActivity, in the makeResult() method, I extract the first letter to make it uppercase.


Replace open to pathlib.Path

Suggest use pathlib.Path instead of open()
See:
https://docs.astral.sh/ruff/rules/builtin-open/

@yegor256 take a look please

@blablatdinov thanks!


Results for "Kellogg's" point to wrong Wikidata entity

When we run the following request through AmbiverseNLU:
curl --request POST --url http://localhost:8080/entitylinking/analyze --header 'accept: application/json' --header 'content-type: application/json' --data $'{"docId": "doc1", "text": "Kellogg\'s is an American multinational food manufacturing company headquartered in Battle Creek, Michigan.", "extractConcepts": "true", "language": "en"}'
we obtain the following results:
{
  "docId": "doc1",
  "language": "en",
  "matches": [
    {
      "charLength": 7,
      "charOffset": 0,
      "text": "Kellogg",
      "entity": {
        "id": "http://www.wikidata.org/entity/Q856886",
        "confidence": 0.21240166844575648
      }
    },
    {
      "charLength": 12,
      "charOffset": 83,
      "text": "Battle Creek",
      "entity": {
        "id": "http://www.wikidata.org/entity/Q810998",
        "confidence": 0.41914338870940004
      }
    },
    {
      "charLength": 8,
      "charOffset": 97,
      "text": "Michigan",
      "entity": {
        "id": "http://www.wikidata.org/entity/Q1166",
        "confidence": 0.31163620702219674
      }
    },
    {
      "charLength": 4,
      "charOffset": 39,
      "text": "food",
      "entity": {
        "id": "http://www.wikidata.org/entity/Q2095",
        "confidence": 0.5883575301498092
      }
    },
    {
      "charLength": 21,
      "charOffset": 44,
      "text": "manufacturing company",
      "entity": {
        "id": "http://www.wikidata.org/entity/Q187939",
        "confidence": 1.0
      }
    }
  ],
  "entities": [
    {
      "id": "http://www.wikidata.org/entity/Q810998",
      "name": "Battle Creek, Michigan",
      "url": "http://en.wikipedia.org/wiki/Battle%20Creek%2C%20Michigan",
      "type": "LOCATION",
      "salience": 0.2317468977580788
    },
    {
      "id": "http://www.wikidata.org/entity/Q856886",
      "name": "Kellogg's",
      "url": "http://en.wikipedia.org/wiki/Kellogg%27s",
      "type": "ORGANIZATION",
      "salience": 0.7863166812635995
    },
    {
      "id": "http://www.wikidata.org/entity/Q2095",
      "name": "Food",
      "url": "http://en.wikipedia.org/wiki/Food",
      "type": "CONCEPT",
      "salience": 0.0
    },
    {
      "id": "http://www.wikidata.org/entity/Q187939",
      "name": "Manufacturing",
      "url": "http://en.wikipedia.org/wiki/Manufacturing",
      "type": "CONCEPT",
      "salience": 0.0
    },
    {
      "id": "http://www.wikidata.org/entity/Q1166",
      "name": "Michigan",
      "url": "http://en.wikipedia.org/wiki/Michigan",
      "type": "LOCATION",
      "salience": 0.22656730944062733
    }
  ]
}

In the above result, the entity ID for "Kellogg's" is incorrect. It refers to the Wikidata entity Q856886, which is the entity representing a Wikipedia disambiguation page. It should actually refer to Q856897. We see the same issue on our local installation and on the web demo at https://ambiversenlu.mpi-inf.mpg.de.
One additional data point--we did try running this using both "Kellogg" and "Kelloggs" in addition to "Kellogg's". The results are the same in all three cases.

I had a look at the database and it seems that the mapping from an entity to its Wikidata QID - although most of the times correct - is in some cases weirdly far off, even for prominent entities.
For example, the QID for "The Lord of the Rings: The Fellowship of the Ring" (Q127367) is linked to the Wikipedia article of Bahadur Shah Zafar.
The entity "Tripoli" is linked to the QID for "Category:Eurovision Song Contest entrants for Russia" (Q3575)
The entity "Africa" is linked to the QID for "Category:February 1994 events in Asia" (Q47464459).
 Is it a problem with Yago? I've been playing around with Yago a little bit but could not identify the same problem there (although that might be due to my lack of expertise).
Where does the mapping to a QID come from?
It would be great to have some insights on this.
And thank you for making the code for this system public!


v9 patches

partial v9 patches https://github.com/11ty/eleventy-base-blog/releases/tag/v9.0.0

Uncaught ReferenceError: rainbow is not defined
onclick


Drop support for kafka 2.5 and below

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

Current dependencies on/for this PR:

master

PR #15098

PR #15106

PR #15187   👈
PR #15112

This comment was auto-generated by Graphite.


Why there is no support to v1_13_R1

I've just look at the 1.13.jar and i saw the brigadier lib. Why command api does not support to 1.13?

Basically, when I first implemented the CommandAPI, 1.13.2 was out and was the easiest thing to implement at the time. Since I've now got a much better versioning system, it's definitely possible to add support for 1.13 and 1.13.1.

Support for 1.13 and 1.13.1 have been included in #64


Updated phpseclib requirement for v2.x

@elfet can you also fix it in the 2.0 version so we can use it in production, please also add tag if merged.

Done.

I have error installing deployer v2.0.1
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for deployer/deployer 2.0.1 -> satisfiable by deployer/deployer[v2.0.1].
    - deployer/deployer v2.0.1 requires phpseclib/phpseclib ~2.0@dev -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

I think this might be fixed by:
"phpseclib/phpseclib": "2.0.*@dev"

Thanks! Fixed.

Error again.

Solution: require phpseclib.
composer require phpseclib/phpseclib:2.0.*@dev
composer require deployer/deployer:2.0.1

Done.

@elfet The correct solution would be to set the "minimum-stability", not to require a dependency twice.


Porting the work of this paper to a new dataset

Hello author, first of all thank you for your great work. I want to directly apply your work to the nuscenes dataset, is it possible? Does the nuscenes dataset need point cloud data to assist in generating voxel data?

Hi @yukaizhou, Thank you!
It's possible. In fact, I tried to infer on nuScenes using the model trained on Semantic KITTI, and it works fine, except some generalization issues.
To generate the ground-truth voxels for nuScenes, you can follow the steps in this link:
https://github.com/yanx27/JS3C-Net#data-preparation
Here is my uncleaned code for loading the nuScenes dataset (inference only)
import torch
import os
import glob
from torch.utils.data import Dataset
import numpy as np
from nuscenes.nuscenes import NuScenes
from xmuda.data.utils.preprocess import create_img_grid, create_voxel_grid, select_points_in_frustum, vox2pixCamCoords, compute_local_frustums, compute_CP_mega_matrix, compute_local_frustums_enlarge
from PIL import Image
from torchvision import transforms

class NuscenesDataset(Dataset):
    def __init__(self, root):
        self.nusc = NuScenes(version='v1.0-mini', dataroot=root, verbose=True)
        self.img_H = 900
        self.img_W = 1600
        self.voxel_size = 0.2
        self.normalize_rgb = transforms.Compose([
            transforms.ToTensor(),
            transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
        ])

    def __len__(self):
        return len(self.nusc.sample)

    def __getitem__(self, index):
        data = {}
        sample = self.nusc.sample[index]
        sample_record = self.nusc.get('sample', sample['token'])
        camera_token = sample_record['data']['CAM_FRONT']
        cam_record = self.nusc.get('sample_data', camera_token)

        img = Image.open(os.path.join(self.nusc.dataroot, cam_record['filename']))
        data['img_path'] = cam_record['filename']
        img = np.array(img, dtype=np.float32, copy=False) / 255.
        img = self.normalize_rgb(img)
        data['img'] = img

        calib_record = self.nusc.get('calibrated_sensor', cam_record['calibrated_sensor_token'])
        cam_k = np.array(calib_record['camera_intrinsic'])
        T_velo_2_cam = np.identity(4) # reconstruct in camera coordinates

        data['T_velo_2_cam'] = T_velo_2_cam
        data['cam_k'] = cam_k
        data['frame_id'] =  str(index)

        scales = [1, 2]
        data['scales'] = scales
        vox_origin = np.array([-25.6, -4, 0])
        for scale in scales:
            pix, valid_pix = vox2pixCamCoords(cam_k, self.voxel_size, scale, self.img_W, self.img_H)
            data['pix_' + str(scale)] = pix
            data['valid_pix_' + str(scale)] = valid_pix
        return data

if __name__ == '__main__':
    nuscenes_ds = NuscenesDataset('/gpfsscratch/rech/kvd/uyl37fq/dataset/nuscenes')
    for i in range(len(nuscenes_ds)):
        print(list(nuscenes_ds[i].keys()))

Thank you very much for your prompt reply, I will try your suggestion. Thanks again

Hello, according to the repo you provided（https://github.com/jbehley/voxelizer/tree/mast）, when generating the voxels of nuscenes, it has been unable to configure the environment successfully. Do you have any other methods? Thank you for your guidance.

Hi, sorry, I have no other methods in mind.

Hello, I would like to ask you a question. When I use voxel to organize, I use lidar-seg as the voxel label information. What should I use as the origin of the coordinate system at this time? Ego or pixel coordinate system? In addition, I have tried to convert the lidar-seg to the pixel coordinate system, but the image size of the nuscenes is 900*1600. At this time, when the voxel interval is 2mm, the created voxel volume will be very large? Another way is to use the self-vehicle as the origin of the coordinate system, but at this time, when it is point cloud coordinates (x, y, z, vis), it is found that z, that is, the depth, is less than 0, so what I want to confirm is that it is less than 0 Is it the point cloud in the field of view of the 3 cameras 'BACK', 'BACK_LEFT', 'BACK_RIGHT'? Looking forward to thank you for your answer. thanks.

https://www.cvlibs.net/datasets/kitti/setup.php

Hi,
For the detail of the data generation you should check this paper
https://arxiv.org/abs/1904.01416
To generate the ground-truth, we don't need the image so the image is irrelevnt. We only need the lidar points. The voxelized scene is the part of the points cloud in the area with x = [0, 51.2], y=[-25.6, 25.6], z=[-2, 4.4] in front of the vehicle so z > 0.
The origin of the lidar voxel in kitti is [x, y, z] = [0. -25.6, -2]

Hello, I have obtained the voxel volume by using the point cloud data of nuscenes according to your guidance, where (self.voxel_size = 0.2; self.scene_size = (51.2, 51.2, 6.4); self.vox_origin = np.array([0 , -25.6, -2])). But there are still some questions, please guide me. 1. What is the function of compute_CP_mega_matrix? How should I modify the nuscenes? Thanks again for your guidance. thanks

Do you mean this function?
https://github.com/astra-vision/MonoScene/blob/22256acbf452f38395c28c180102bc6942699a2d/monoscene/data/utils/helpers.py#L6
It is used to compute the voxel-voxel relation, as described in Sec. 3.2 in the main paper.


Add standard namefinders

What the pull request does
Add pre-populated namefinders to limit the taxonomic scope of the search.
Type of change
Please indicate the relevant option(s)

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

Checklist

[x] The changes are documented

[x] The docstrings of the different functions describe the arguments, purpose, and behavior
[x] There are examples in the documentation website

[x] The changes are tested
[x] The changes do not modify the behavior of the previously existing functions
[x] The Project.toml field version has been updated

Codecov Report

Merging #22 (a292d13) into main (3f796b7) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #22   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         7    +1
  Lines           59        75   +16
=========================================
+ Hits            59        75   +16

Flag
Coverage Δ

unittests
100.00% <100.00%> (ø)

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

Impacted Files
Coverage Δ

src/NCBITaxonomy.jl
100.00% <ø> (ø)

src/divisions.jl
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


fix: go(-1) for AbstractHistory by initial stack

In the original implementation, stack of AbstractHistory was initialized by empty array, it makes go(-1)[1] can't work correctly.
In most situation that can't go back, it doesn't matter, but in a special environment(such as running in JavascriptCore of Native App), go(-1) can't work will be a bug.
The problem is I haven't tested in SSR, the patch may break something, a better NodeJS determine method is required.
[1] https://github.com/vuejs/vue-router/blob/dev/src/history/abstract.js#L31

Hey, do you have a small repro showing what should work which isn't working right now?

Sorry, I decided to fork it and make vue-router meets the requirement.


Auth session doesn't refresh when using database

Bug report
Describe the bug
If my JWT has expired since I last called supabaseClient.auth.session, and I try to execute a command using supabaseClient.database, I get an error about the JWT being expired. I have to work around this by calling _ = supabaseClient.auth.session before every database call to force it to refresh the token.
To Reproduce

Log in using Supabase Auth
Wait for the token to expire
Try to perform an operation on a database

Expected behavior
I would expect the session to automatically be refreshed before attempting the database operation.
System information

OS: macOS
Version of supabase-swift: 0.2.1

At some point it was there:
https://github.com/supabase-community/supabase-swift/commit/098cc9390064ac499c1ae3a2e216cc1b3e7b8a09#diff-8ae3298b041e73e9ea309814eeb66aeb229f08265773c84cad2a9e83349ff5caR93
but then it was removed?
https://github.com/supabase-community/supabase-swift/commit/13293398a1d1fe74268c4db37f745c46977262f1#diff-8ae3298b041e73e9ea309814eeb66aeb229f08265773c84cad2a9e83349ff5caL114

I too am running into this issue (I get 401 when I restart my app after the JWT expires). I agree with @grsouza that (at least from my read of the GoTrue code) the token should already automatically refresh when auth.session is fetched.
https://github.com/supabase-community/gotrue-swift/blob/4bf132d73d322ee5d6d648f02deb9f2bc19cc659/Sources/GoTrue/Internal/SessionManager.swift#L41C18-L41C18
  func session() async throws -> Session {
    if let task = task {
      return try await task.value
    }

    guard let currentSession = try Env.localStorage.getSession() else {
      throw GoTrueError.sessionNotFound
    }

    if currentSession.isValid {
      return currentSession.session
    }

/////////// REFRESHING HERE ///////////
    task = Task {
      defer { self.task = nil }

      let session = try await Env.sessionRefresher(currentSession.session.refreshToken)
      try update(session)
      return session
    }

    return try await task!.value
  }

After some investigation, this is what was causing the erroneous 401 for me (I had kept testing the JWT during the minute where this would have been incorrectly marked as isValid when it was already expired).
So it should be fixed as of PR 55 for GoTrue

Closing this issue as it seems to be solved, if it happens again, we can re-open it.
Thank you all for the investigation.

I'm getting this issue still when making requests using Postgres. Are we meant to manually update the token on the clients?

Hi @bstillitano  shouldn't need to manually refresh.
I'll reopen this issue to investigate, thanks.

No probs @grdsdev let me know if I can help in any way.

Same issue here, is there any news ?

@bstillitano and @florian-mlr
Are you using PostgresClient directly, or through the SupabaseClient?

@bstillitano and @florian-mlr
Are you using PostgresClient directly, or through the SupabaseClient?

@grdsdev Suppose client only

Also experiencing the same issue, is there an update on the way?


[BUG] NullPointerException in delete_by_query when index is deleted

Describe the bug
delete_by_query with a wildcard pattern can return a 500 if an underlying index is deleted while the query is running.
I've seen two stack traces which seem to reflect the different phases of the delete_by_query that can encounter the race condition:
java.lang.NullPointerException: Cannot invoke "org.opensearch.cluster.metadata.IndexMetadata.getSettings()" because the return value of "org.opensearch.cluster.metadata.Metadata.index(String)" is null
    at org.opensearch.indexmanagement.rollup.util.RollupUtilsKt.isRollupIndex(RollupUtils.kt:70)
    at org.opensearch.indexmanagement.rollup.interceptor.RollupInterceptor$interceptHandler$1.messageReceived(RollupInterceptor.kt:81)
    at org.opensearch.performanceanalyzer.transport.PerformanceAnalyzerTransportRequestH...+3903 more"

Failed to execute phase [can_match], Partial shards failure; ... RemoteTransportException[[36a7dbd9822c64d770ce4c655e56ec40][__IP__][__PATH__[can_match]]]; nested: NullPointerException; }
    at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:674)
    at org.opensearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:400)
    at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:709)
    at org.opensearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:482)
    at org.opensearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:297)
    at org.opensearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:74)
    ...

To Reproduce
This has been reproducible in our production setup which consists of a steady stream of delete_by_query operations and occasional alias updates (concurrent with the deletes). The fact that there's an alias involved may or may not be relevant -- I haven't attempted to reproduce the issue with a plain index delete operation.
High-level steps to reproduce the behavior:

Create two indices foo-1 and foo-2.
Create an alias foo containing foo-1 and foo-2.
Concurrently:
a. Perform a delete_by_query on foo* (we use slices=auto and conflict=proceed).
b. Update the foo alias with {"actions": [{"remove_index": {"index": "foo-2"}}]}.

Expected behavior
I would expect at least a non-500 status code. Perhaps a 404 in the case where ignore_unavailable is false and a 200 in the case where ignore_unavailable is true.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):

OS: Linux
Version 2.5

Additional context
Setting ignore_unavailable seems to have no impact on the behavior.

Looks like a legit bug. Do you think you could reproduce this in a YAML REST test?

@dblock from briefly looking at the YAML test framework it seems the requests all run sequentially? To repro this the index removal would need to run concurrent with the delete_by_query. I think that would look roughly like the below -- let me know if there's an easy way to run the two do steps at the same time.
(Note that even if the steps are run concurrently, I wouldn't be surprised if there's not enough data to make the delete_by_query take long enough to race with the index removal.)
---
 REPRO:
   - do:
       index:
         index: test-1
         id: 1
         body: { "text": "test-1" }

   - do:
       index:
         index: test-2
         id: 2
         body: { "text": "test-2" }

   - do:
       indices.update_aliases:
         body:
           actions:
             - add:
                 index: test-1
                 aliases: [test]
             - add:
                 index: test-2
                 aliases: [test]

   - do:
       indices.refresh: {}

   - do:
       delete_by_query:
         index: test*
         slices: auto
         conflict: proceed
         ignore_unavailable: true
         body:
           query:
             match_all: {}

   - do: # Needs to be concurrent with the delete_by_query
       indices.update_aliases:
         body:
           actions:
             - remove_index:
                 index: test-2

   - match: { failures: [] }

I don't love the idea that the test may sometimes pass and sometimes fail. Maybe these YAML tests simply can't express this scenario and we're trying too hard?

I don't love the idea that the test may sometimes pass and sometimes fail. Maybe these YAML tests simply can't express this scenario and we're trying too hard?

I agree, reproducing the race condition is probably more work than it's worth.
There's probably a unit of logic here that needs to handle the index-no-longer-exists case more gracefully. Maybe this is isRollupIndex? It's hard for me to read the trace.

@blampe I really don't know this code, if you want to keep digging I would focus on some test that reproduces this problem 100% of the time, it can be pretty low level - if it's very hard to test then maybe it should be telling something - anyway I am spitballing

https://github.com/opensearch-project/index-management/pull/855 might address the underlying issue.
I imagine a library dependency needs to get bumped to pull in that fix, but I'm not sure how to do that. (If this is using index-management 2.x, the fix is being back ported in https://github.com/opensearch-project/index-management/pull/871.)


ci: fix qlik-oss access in locale github job

:tada: This PR is included in version 2.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How to create pdf bookamrks and table of contents using pdfkit

How to create pdf bookamrks and table of contents using pdfkit. Is there any options to include barchart in pdf document.
Thanks in advance,
Anoop Xaviour.

@pxanoop were you able to find an answer?

pdfkit is a low level library. For high level features i suggest pdfmake. Has toc out of the box


Launch test in default makefile target

Another hack of the day (I think karma is going to come back for me at certain point), I have updated go-spew release directly in glide.lock and ran a glide install --strip-vendor to  get it synchronised but avoiding the change we had to made locally to container_unix.go so linux build pass.


Add --auto-correct flag to rubocop instructions in CONTRIBUTING.md

Should help reduce friction for contributors.

Merged as 013bd8662f4c494604968dea0732a728e443c663.

Never knew about this - highly useful :+1:


update for runtime cert management feature

https://konghq.atlassian.net/browse/DOCU-2554

Adds a release note
Updates information about runtime manager not being able to manage certs.
Adds information regarding the support of only 16 certs.

I created DOCU-2766 to rework this section and remove/rewrite some of the docs that are now less-useful since some of the latest features have been added to runtime manager.

@smritikjaggi I've made changes based on your feedback, please review.


Reloading the window triggered a change in ExtensionContext.storageUri

Refs: #128234, b1b44a3910c7df865eea155c3c367c2ec085b2bd, https://github.com/microsoft/vscode-remote-repositories-github/issues/34
The Remote Repositories extension uses the storageUri to extract the workspace id, which it uses to track the remote repository an its metadata and changes. So, the change in b1b44a3910c7df865eea155c3c367c2ec085b2bd caused issues as this "id" now changed (because of the sometimes added -[0-9] suffix). I've fixed Remote Repositories to strip the -[0-9] suffix so this should be a non-issue for it going forward, but the scenario that trigged this bug (https://github.com/microsoft/vscode-remote-repositories-github/issues/34) might still be an issue for others.
In Kai's case, he had a remote repository open in one window on the desktop with some uncommitted changes in it, and then reloaded the window (because of an extension update -- clicked reload from the extensions view). And when the workspace reloaded, all his uncommitted change were "lost". This happened because before the reload there was no -1 suffix on the storageUri, but after the workspace reload there was.
So unless there were actually 2 windows open to this workspace (which wasn't the case in this scenario) there shouldn't have been a -1 suffix added.

I presented the problem in today's standup and we decided that we do https://github.com/microsoft/vscode/issues/128528 for the recovery release.


refactor: extract Python code to separate file

@quangnguyen30192 This is a replacement of #52. Can you test this branch and make sure nothing broke before I merge? Thank you.

Thanks, I've tested and it has no issue.


wml: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:
ld: iselect_browse.o:(.bss+0x2020): multiple definition of `Line'; iselect_main.o:(.bss+0x100000): first defined here

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

1 package built:

wml


Move rest of Answer fields onto AnswerPage

Move remaining Answer fields onto Answer page!
This retires the Answer model from the admin, in addition to the rest of the Ask CFPB specific models other than Category and Subcategory which will be dealt with in upcoming work.
No data is being deleted yet - just copied over.
There's a migration script (answer_to_answerpage_migration) that needs to run immediately after deployment - until it runs, there will be a brief period of downtime for Answer pages (a few minutes or so) - I think we can manage this by deploying after-hours.
After the migration script, there's a sanitization script (replace_unsupported_characters) that we should run.

I strongly favor creating the two missing Spanish pages before merging this PR.
There is no harm in creating two draft pages, and if they're truly unwanted, it's trivial to move them to trash. But it won't be trivial to dig into history and create them by hand if they are indeed wanted.

I think remaining work on this is

Rebase
Squash the migrations we're introducing?
Potentially update view_answer in ask_cfpb/views.py to grab the answer_base ID instead so that pages aren't broken while we deploy (though my preference would be to leave it as-is and deploy off-hours).

squash migrations
I vote for this, since we have to redo the v1 migration anyway since there have been two migrations merged before ours.

Revert view_answer to use answer_base.id
I vote for this as well. We shouldn't have two sources of truth for a value that isn't visible in the admin.


Include Timestamp in URL

Changes

Closes #632
Add getQueryParam function to global.ts
Set the timestamp of the player for the given parameter in the watchProgress handler.
Move logged-in check from .gohtml file to typescript

Further Information
The current implementation ignores the user's video progress if query parameter t is set. (if ... else).

Amazing, now I can share https://live.rbg.tum.de/w/it-sec/7105?t=4411 :heart_eyes:


Not allowing open(file, "r", encoding=...) is problematic for tomli.load()

# Create a file with unicode content
with open(datafile, "w", encoding="GBK") as f:
    f.write('"你好" = "世界"\n')

# Use `tomli.load()` to load the file
with open(datafile, "r", encoding="GBK") as f:
    loaded = tomli.load(f)
# TypeError: File must be opened in binary mode

with open(datafile, "rb") as f:
    loaded = tomli.load(f)
# UnicodeDecodeError('utf-8', b'"\xc4\xe3\xba\xc3" = "\xca\xc0\xbd\xe7"\n', 1, 2, 'invalid continuation byte')

We can only use tomli.loads() as a workaround.
See:
https://github.com/pwwang/toml-bench#testloadunicode

I believe this is intentional. From the TOML spec:

A TOML file must be a valid UTF-8 encoded Unicode document.

Fair enough.


Requested content changes

Context
https://trello.com/c/agnno2it
Changes proposed in this pull request
Guidance to review

 Digital Platforms content changes (RFQ-X)


Question on updating

It looks like the API has changed, so time and date need to be parsed out. Should these be created from updated_at or checked_at?

Uhm, good question. I haven't touched this code since august of last year, and quite frankly, I have no idea. I recommend checking with instances.social: https://github.com/thekinrar/mastodon-instances

Thanks. I think I can make it work. Are you accepting PRs toward this repo, or should I run off with a fork?

You might as well run off with a fork, as I don't plan on reviving this repo in the near future, especially since I feel like https://fediverse.network/ already covers most of what I'm interested in.

Great, thanks.


Update phpunit

Coverage remained the same at 49.781% when pulling a2fc668ae84c0e1cbf8db42a000db62ff24bb9ac on update-phpunit into c34f81b54285e16d4260162a306abc6c26e6fa0e on master.


How to use it?

Hi, I am new here and followed the installation instructions. However, there are no instructions about how to move from there, where to look for things working, or anything that could guide me to use the app.
I imagine this is obvious to everyone, but I will need to look for a tutorial on this app, which I think defeats the purpose of documentation.
(I know this is an amazing app and highly recommended, but it is frustrating to not get any guide after 'how to install things', and have pages of configuration when I do not know how to open the bar yet)

Hi @GabeSoler, interestingly enough I was thinking about this this morning. Though more in the context of listing the resources that mention the toolbar.
Here are a few that I found from a quick search. I don't know how reasonable any of them are:

https://www.youtube.com/watch?v=c5riXBYFxLk
https://medium.com/@abdullahsohailcs/adding-django-debug-toolbar-a-step-by-step-guide-869e71e0a501
https://www.youtube.com/watch?v=qWLk9S6mvAY

I have a workshop project that I haven't updated since Django 4.0, but it should still work well enough for you to get an understanding of how to do things: https://github.com/tim-schilling/debug-tutorial/

Hi, thanks for the response :)
I will check the resources. Your workshop looks really complete and worth looking at in more depth.
I read a bit from the Django for professionals that also explained set up and some uses.
Sorry I wrote a bit frustrated, but it's such an important piece in the Django ecosystem that I would love to see it more friendly for beginners.

Sorry I wrote a bit frustrated, but it's such an important piece in the Django ecosystem that I would love to see it more friendly for beginners.

I've been there so many times. At least you recognized that you were frustrated when you wrote it and apologized. I appreciate that :blush:.


Use the learning path approach for more documentation

On the documentation organization\navigation topic, one way of doing the documentation that is used for some product in Azure is the learning map\path (example: https://azure.microsoft.com/en-us/documentation/learning-pat...). I just LOVE that approach, it's visual, it's clear, you know where you are and where you are going, it's task oriented: it's perfect.

⚠ Idea migrated from UserVoice
Created By: Simon Luckenuik
Created On: 2016/07/12 11:44:00 +0000
Votes at Migration: 30
Supporters at Migration: 30

This functionality is already available on Microsoft Learn.


[9.4.x] ISPN-9708 Fix remote threadpool attributes in JMX

https://issues.jboss.org/browse/ISPN-9708
Fix remote command executor attributes

I pushed it myself, thanks Will!


Deployment failure in us-east-2 due to Amazon S3 Security Changes

Describe the bug
The solution can not be deployed in us-east-2 region, because of a recent Amazon S3 security change in April, 2023.
The root cause was the ACLs is now disabled.
Reproduction Steps
Deploy v1.0.0 in us-east-2 region.
Possible Solution
No response
Solution Version
v1.0.0
AWS Region. e.g., us-east-1
us-east-2

We have released v1.0.1, and the issue has been mitigated.


VisualSearch fails with Unauthorized despite valid key

I feel I must be missing something obvious here. I've been trying to follow the instructions at https://docs.microsoft.com/en-us/bing/search-apis/bing-visual-search/quickstarts/sdk/visual-search-client-library-csharp. I created a "Bing Search" service in Azure with the S9 tier which supports Visual Search. I went to the Keys and Endpoint section and copied the Key 1 out and put it in the below code, yet every time I run it I get Unauthorized:
{"code":"401","message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}

var client = new VisualSearchClient(new Microsoft.Azure.CognitiveServices.Search.VisualSearch.ApiKeyServiceClientCredentials("<key>"));

ImageInfo ImageInfo = new ImageInfo(url: "https://media.vanityfair.com/photos/5d9f5be40fa2040008f28470/4:3/w_1776,h_1332,c_limit/always-sunny-in-philadelphia-hangs-in-there.jpg");
VisualSearchRequest VisualSearchRequest = new VisualSearchRequest(imageInfo: ImageInfo);

var result = await client.Images.VisualSearchMethodAsync(knowledgeRequest: JsonConvert.SerializeObject(VisualSearchRequest));

The instructions don't say anything about setting an endpoint, but I tried that too, setting the Endpoint property from the one in my Keys and Endpoint page:
client.Endpoint = "https://api.bing.microsoft.com/";
But that just result in a NotFound error.
I was able to get it working by calling the REST api directly, so I know the key isn't the issue. For now I'm calling the REST API but it's a pretty kludgy API to call so I'd much prefer to use the SDK, especially since I can't get the REST code working when uploading an image instead of providing a URL: https://github.com/microsoft/bing-search-dotnet-samples/issues/4
Anyone have any idea what's going on? I tried both keys with no success. Here's a LINQPad repro of the issue: http://share.linqpad.net/c3p8vo.linq

I figured out the issue. The nuget SDK pointed to by the documentation is incorrect! It says to use the Microsoft.Azure.CognitiveServices.Search.VisualSearch package which is out-of-date, and has the old endpoint in it: https://api.cognitive.microsoft.com. I found that there's another SDK in nuget, Microsoft.Bing.Search.VisualSearch which has the correct endpoint: https://api.bing.microsoft.com, but I can't find documentation anywhere pointing to that! That's pretty dang bad.

I have same trouble, NotAuthorized, when I point client to specific endpoint I get NotFound error. SDK broken?


Add link from submission summary in curation interface to the original submission in deposition

Curators need a more efficient way to get from the submission summary (View Submissions/Review) in the curation interface to the original submission in the deposition interface (including the spreadsheet).
Suggest adding the submission ID to the summary screen, which would link to the depo app.

Link to submission added.


ft: add support to LSP workspace_folders

Add support to LSP workspace_folders
When multiple workspace_folders are available it tries to find the best fit based of path prefix comparison.
When no workspace_folders are available, or just a single value is set, the current behavior remains unchanged

@ahmedkhalf I would like to get this merged into your repo. let me know in case you find any issue with the approach, or have any questions. Thank you


readline() takes exactly 1 argument (2 given)

I'm trying to make connections with proxies. and some of the times I get this error. I put the traceback below.
The command I use is this: requests.get(w, verify=False, timeout=4, proxies=proxy)
w is a url and proxy is a dictionary.. something I make like this:
http_proxy  = "http://"+ip.strip()
https_proxy = http_proxy
proxyDict = {
              "http"  : http_proxy,
              "https" : https_proxy,
            }

Traceback (most recent call last):
  File "explore_proxies.py", line 13, in onewebsite
    r= requests.get(w, verify=False, timeout=4, proxies=proxy)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 383, in req
uest
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 486, in sen
d
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 330, in sen
d
    timeout=timeout
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 537, i
n urlopen
    conn = self._get_conn(timeout=pool_timeout)
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 299, i
n _get_conn
    return conn or self._new_conn()
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 719, i
n _new_conn
    return self._prepare_conn(connection)
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 686, i
n _prepare_conn
    connection.connect()
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 124, i
n connect
    self._tunnel()
  File "/usr/lib/python2.7/httplib.py", line 759, in _tunnel
    line = response.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)

@Lukasa didn't we merge a PR that fixes this?

Yes. =)

Today when I was installing flask-mongoengine using pip, the same problem occured.
I executed
pip install flask-mongoengine

and returned
Downloading/unpacking flask-mongoengine
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
    page = self._get_page(main_index_url, req)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
    session=self.session,
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 670, in get_page
    resp = session.get(url, headers={"Accept": "text/html"})
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 237, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 327, in send
    timeout=timeout
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 491, in urlopen
    conn = self._get_conn(timeout=pool_timeout)
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 230, in _get_conn
    return conn or self._new_conn()
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 680, in _new_conn
    return self._prepare_conn(conn)
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 653, in _prepare_conn
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/urllib3/connection.py", line 205, in connect
    self._tunnel()
  File "/usr/lib/python2.7/httplib.py", line 780, in _tunnel
    line = response.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)

My python version is 2.7.9, and my os is ubuntu14.10, does this bug still exist?

What version of pip are you using?

pip 1.5.6

That version of pip does not contain our fix, it's too old. Please upgrade. =)

I upgrade to pip 6.1.1 and the bug disappears. Thanks! :-)

Today when I was installing pb_tool using pip, the same problem occurred.
I executed
pip install pb_tool
and returned
Collecting pb-tool
Exception:
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\basecommand.py", line 20
9, in main
status = self.run(options, args)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\commands\install.py", li
ne 299, in run
requirement_set.prepare_files(finder)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\req\req_set.py", line 36
0, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\req\req_set.py", line 51
2, in _prepare_file
finder, self.upgrade, require_hashes)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\req\req_install.py", lin
e 273, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\index.py", line 440, in
find_requirement
all_candidates = self.find_all_candidates(req.name)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\index.py", line 398, in
find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\index.py", line 543, in
_get_pages
page = self._get_page(location)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\index.py", line 646, in
_get_page
return HTMLPage.get_page(link, session=self.session)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\index.py", line 755, in
get_page
"Cache-Control": "max-age=600",
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\session
s.py", line 480, in get
return self.request('GET', url, **kwargs)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip\download.py", line 378,
in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\session
s.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\session
s.py", line 576, in send
r = adapter.send(request, **kwargs)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\cachecontrol\ada
pter.py", line 46, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\adapter
s.py", line 376, in send
timeout=timeout
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\package
s\urllib3\connectionpool.py", line 554, in urlopen
self._prepare_proxy(conn)
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\package
s\urllib3\connectionpool.py", line 750, in _prepare_proxy
conn.connect()
File "C:\OSGEO4~1\apps\Python27\Lib\site-packages\pip_vendor\requests\package
s\urllib3\connection.py", line 230, in connect
self._tunnel()
File "C:\OSGEO4~1\apps\Python27\lib\httplib.py", line 759, in _tunnel
line = response.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)
my python version is 2.7 and pip is 8.1.1.

What version of Python 2.7 please?

2.7.5-2

Ok, your error is likely the result of proxy configuration. Are you expecting to use a proxy? Because pip is trying to route through one, and that proxy is misbehaving quite badly. This was a known manifestation of a weird bug in CPython that was fixed a year ago, but was only triggered when a proxy was incorrectly configured.


Email notifications

Hi Nicolas,
We have troubles with git email notifications.
Error message on commit is:
Calling additional post-receive hooks...

Executing extra hook 'hooks/post-receive.d/mail_notifications'
remote: *** Error establishing SMTP connection to mail.ourdomainhere.com:587***
remote: *** 'module' object has no attribute 'connect'
remote: Exception AttributeError: "'SMTPMailer' object has no attribute 'smtp'" in <bound method SMTPMailer.del of <git_multimail.SMTPMailer object at 0x7f23af39c150» ignored

Redmine general  mail notifications are configured and works perfectly.
Any steps to do yet to make it work? Why you are not using redmine mail config?
Thanks in advice!

Some tech details:
Redmine 3.2.3.stable
Environment:
Redmine version                3.2.3.stable
Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version                  <IP_ADDRESS>
Environment                    production
Database adapter               PostgreSQL
SCM:
Git                            2.1.4
Filesystem
Xitolite                       2.1.4
Redmine plugins:
redmine_bootstrap_kit          0.2.4
redmine_git_hosting            1.2.0

Hi! Notifications are sent by https://github.com/git-multimail/git-multimail. git-multimail is installed as a Gitolite hook by Redmine Git Hosting.


[CUB-2547] Multiplatform binaries in build pipeline

Description
[CUB-2547] Multiplatform binaries in build pipeline

Added bindings in tar.gz files.

Manual PR Checklist

[ ] A CHANGELOG entry was added (should we add one to this forked package?)

should we add one to this forked package?

Nope


dataset deletion doesn't work when there are already scores for it (foreign key constraint failure)

@TristanThrush would it be ok to also delete the corresponding scores when we delete the dataset? aka set on delete cascade on the foreign key in scores?

I encountered this issue also when trying to debug decentralized eaas stuff. I think it is ok to delete the corresponding scores when we delete the dataset...

I believe it was fixed with the decentralized eaas v1 PR