How to create sockaddr for io_uring_prep_connect?

Hello and thank you for making this library. I am trying to use the io_uring_prep_connect function which requires sockaddr* and socklen_t. I see the structs for sockaddr and sockaddr_in src/liburing/lib/socket.pxd and corresponding empty classes in src/liburing/socket.pyx but I can't figure out how to use them. How can I create a sockaddr variable to pass to  io_uring_prep_connect?

Hi, Thanks for trying out Liburing.
Currently this library is still in early alpha phase and in middle of moving all the code to using Cython. You can read more https://github.com/YoSTEALTH/Liburing/discussions/16#discussioncomment-8656363
If you like you can download the older cffi library in https://github.com/YoSTEALTH/Liburing/tags and try those out!
You can normally tell what features are currently working by look at the test https://github.com/YoSTEALTH/Liburing/tree/master/test
I am planning on having this library released(or pre-release) early next month.

Understood. Looking forward to it!

Something to play around with:
import sys
sys.path.append('src')
import liburing  # noqa

def client():
    ring = liburing.io_uring()
    for af_, sock_, proto, canon, addr in liburing.getaddrinfo(b'example.com', b'80'):
        cqe = liburing.io_uring_cqe(ring)
        ts = liburing.timespec(12)  # timeout
        send_data = b'GET / HTTP/1.1\nHost: example.com\nUser-Agent: Testing\n\n'
        recv_data = bytearray(1024)
        try:
            liburing.io_uring_queue_init(8, ring)

            # socket
            sqe = liburing.io_uring_get_sqe(ring)
            liburing.io_uring_prep_socket(sqe, af_, sock_)
            sqe.user_data = 1
            liburing.io_uring_submit_and_wait_timeout(ring, cqe, 1, ts)
            sockfd = liburing.trap_error(cqe.res)
            liburing.io_uring_cqe_seen(ring, cqe)
            print(cqe.user_data, 'sockfd:', sockfd)

            # connect
            sqe = liburing.io_uring_get_sqe(ring)
            liburing.io_uring_prep_connect(sqe, sockfd, addr)
            sqe.user_data = 2
            liburing.io_uring_submit_and_wait_timeout(ring, cqe, 1, ts)
            liburing.trap_error(cqe.res)
            print(cqe.user_data, 'connected')
            liburing.io_uring_cqe_seen(ring, cqe)

            # send data
            sqe = liburing.io_uring_get_sqe(ring)
            liburing.io_uring_prep_send(sqe, sockfd, send_data, len(send_data))
            sqe.user_data = 3
            liburing.io_uring_submit_and_wait_timeout(ring, cqe, 1, ts)
            sent_length = liburing.trap_error(cqe.res)
            print(cqe.user_data, 'sent:', sent_length)
            liburing.io_uring_cqe_seen(ring, cqe)

            # receive data
            sqe = liburing.io_uring_get_sqe(ring)
            liburing.io_uring_prep_recv(sqe, sockfd, recv_data, 1024)
            sqe.user_data = 4
            liburing.io_uring_submit_and_wait_timeout(ring, cqe, 1, ts)
            recv_length = liburing.trap_error(cqe.res)
            print(cqe.user_data, 'received:', recv_length, recv_data[:recv_length])
            liburing.io_uring_cqe_seen(ring, cqe)

            # shutdown & close
            sqe = liburing.io_uring_get_sqe(ring)
            liburing.io_uring_prep_shutdown(sqe, sockfd, liburing.SHUT_RDWR)
            sqe.flags = liburing.IOSQE_IO_LINK
            sqe.user_data = 5
            sqe = liburing.io_uring_get_sqe(ring)
            liburing.io_uring_prep_close(sqe, sockfd)
            sqe.user_data = 6

            liburing.io_uring_submit_and_wait_timeout(ring, cqe, 2, ts)
            liburing.trap_error(cqe.res)
            print(cqe.user_data, 'shutdown:', cqe.res)
            liburing.trap_error(cqe[1].res)
            print(cqe[1].user_data, 'close connection:', cqe[1].res)
            liburing.io_uring_cq_advance(ring, 2)
        finally:
            liburing.io_uring_queue_exit(ring)
            break

if __name__ == '__main__':
    client()
    print('done.')


upgrade klog.InfoS level

@eatjeff inorder to move forward with this pull request you will need to sign the CLA. Let me know if you need any assistance signing the CLA.


Game bug log #1

Bug #1: During the aiming mode, you cannot shoot any liquids/projectiles. (FIXED)
Bug #2: Ammo consumption & resupply is not working properly at the moment (the character has infinite ammo and cannot replenish ammo at the liquid spot. (FIXED)
Bug #3: You can shoot while not zoomed in. (FIXED)
Bug #4: "Water amount" is not decrimenting. (FIXED)
Optimization #1: Need to create new set of controls for console. (FIXED)

All the issues are fixed, closing the current bug log for now.


feat(issue-cmd): added new GH issue command

Describe your PR

Closes #932
Adds new npx ignite issue "my bug title here" command
Opens browser window to https://github.com/infinitered/ignite/issue/new with title prefilled and outputs issue body with npx ignite doctor output for issue reporter to easily paste
Fixes title for user if they forget to double quote the title string

Also considered:

Looked into sending multiline body into the form directly but not possible via the URL search params.
Could look at utilizing GitHub CLI but would require user to log in.
Gluegun removed the clipboard capabilities, so was not able to set the clipboard for the user

Tested

[x] MacOS
[ ] Windows

Thoughts @joshuayoes @jamonholmgren ?

I love this! I know you mentioned the GitHub CLI but I like this approach. I think allowing people to quickly open up an issue and then edit it in the browser is the right approach here.

@joshuayoes actually I think I can get it to paste the body correctly, was passing the url params incorrectly. however, do you know of any way to capture the output from system.run without colors? I think the colored output from npx ignite-doctor is messing things up here

You should be able to use the strip-ansi package, we use it for the test output: https://github.com/infinitered/ignite/blob/master/test/_test-helpers.ts#L2

@joshuayoes wow awesome thanks! worked perfectly

I think it could be cool to search the existing issues for the passed in title to output a few of the links to the results in the terminal for them to look up prior to submitting, but this implementation is probably a good first step to start with.


Calculate has imports and show warning

Description
Show a simple warning in the workflow version info tab
Issue
For dockstore/dockstore#4560

Wonder if it's not prominent enough 🤔

Also considering moving the warning up higher 🤔 🤷


More powerful paragraph justification

Description
Advanced typesetting software such as Adobe InDesign and Affinity Publisher give additional options for creating satisfying and even paragraph justifications. Other than dynamic spacing between words and hyphenation control, they offer individual letter spacing and glyph scaling. While these seem minor, they can be the make or break for including a single letter word in the line above or fitting a really long word into a line without having to introduce extra spacing.
This is discussed in more detail for LaTeX in this post:

Use Case
Paragraph justification is a major feature used by almost every print medium: journals, articles, newspapers, etc. I think implementing this feature would lift a major roadblock for using Typst to publish quality prints, and increase its case for being the best way for writing large manuscripts while having effortless but powerful control over layout and styling.

Possibly a duplicate of #4693

@EpicEricEE I have read that issue and those associated with it. They specifically talk about improving the layout of overhangs (such as how superscripts and subscripts are considered when justifying text), whereas this issue is about better justification within the paragraph line by allowing scaling of glyphs and spacing between glyphs inside words.
These would be customizable amounts, but are generally within 2% as to keep firm word boundaries while giving the layout engine a little more agency in laying out blocks.

@EpicEricEE I have read that issue and those associated with it. They specifically talk about improving the layout of overhangs (such as how superscripts and subscripts are considered when justifying text), whereas this issue is about better justification within the paragraph line by allowing scaling of glyphs and spacing between glyphs inside words.
These would be customizable amounts, but are generally within 2% as to keep firm word boundaries while giving the layout engine a little more agency in laying out blocks.

No, this is a duplicate of that issue.


Docker persist data

Which directories need to be persisted to host disk so that that on container removal data is not lost?

Hello @sandrodz
Now Peatio requires only directory for uploaded documents to be persisted. You can find the path in source code. Please, close an issue when your question is resolved.


[DDC 559] Naming Strategy

http://www.doctrine-project.org/jira/browse/DDC-559
Hello,
This path add support for Naming Strategy,
That feature gives a handle to map naming convention of underlying tables and columns with the Objects and properties.
This is a big patch. So any suggestion are welcome :)
Thanks

@beberlei @asm89 @Stof any comments?
I'm pretty happy with the patch and it seems very decent. =)

seems very useful as we mostly use userId and userProfile as names for columns and join tables.

@guilhermeblanco it seems a great idea, and a good way to implement it.

I like the patch, very good work.

Hello guys,
All done !
Please take a look. :)
Thanks for your comments.

@stof you're a PHP lint!
I didn't see that it was out of Doctrine\ORM\Mapping namespace. Since @FabioBatSilva already moved, is there anything left? I'll be extremely happy to merge this one. =D

Nice PR! :)


🐛 Fixed List requiring unique keys

Fixed List requiring unique keys and added unsubscribe

Any idea why .where("authorID", "==", userID) does not work? If i comment it out, fetching from the entities collection works.

I just found out that it works when i remove the .orderBy('createdAt', 'desc'). I can't seem to make both work at the same time.

Any idea why .where("authorID", "==", userID) does not work? If i comment it out, fetching from the entities collection works.

Check if your index was created and if it is working as intended, as described in the tutorial:

Create an index on the entities Firestore collection
You’ll notice that the list of entities is not rendered. If you check out the logs, you’ll see an warning about “The query requires an index”, followed by a long URL:

https://www.freecodecamp.org/news/react-native-firebase-tutorial/


Open Source Project

I know its a small mod and all, but I'm willing to bet people would make pull requests and develop for this mod if it was open source.
Also, to the developers, this mod would be a whole lot more useful considering you could add features to it.

No


Add ability to have response type be in_channel so responses can be shared

While reviewing https://github.com/IEvangelist/IEvangelist.Slack.SlashCommands/blob/master/IEvangelist.Slack.SlashCommands/Controllers/JokesController.cs I noticed he was able to provide a response_type to be "in_channel" or "ephemeral" which allows the response to be shared with the Channel and not just visible to the person who sent it.

Went ahead and made the changes in PR https://github.com/prjseal/SlackBotMessages/pull/12


Cubit Testing: Bad state: A test tried to use any or captureAny on a parameter of type T State, but registerFallbackValue was not previously called to register a fallback value for T State

Describe the bug
I'm migrating one personal project to the latest versions and null safety. But I'm having problems doing widget testing on the latest version with mocktail and cubit.
**Test I'm trying to run **
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';

import 'package:qr_generator/qr_generator.dart';
import 'package:qr_generator_flutter/src/features/qr_generator/logic/qr_generator_cubit.dart';
import 'package:qr_generator_flutter/src/features/qr_generator/logic/qr_generator_state.dart';
import 'package:qr_generator_flutter/src/features/qr_generator/views/qr_generator_page.dart';
import 'package:qr_generator_flutter/src/features/qr_generator/views/qr_generator_page_i18n.dart';
import 'package:qr_generator_flutter/src/features/qr_scanner/logic/qr_scanner_cubit.dart';
import 'package:qr_generator_flutter/src/features/qr_scanner/logic/qr_scanner_state.dart'
    as scanner_s;
import 'package:qr_generator_flutter/src/features/qr_scanner/views/qr_scanner_page.dart';
import 'package:qr_generator_flutter/src/features/qr_generator/views/widgets/qr_code_widget.dart';

class MockGetSeed extends Mock implements GetSeed {}

class MockQrGeneratorCubit extends MockCubit<QrGeneratorState>
    implements QrGeneratorCubit {}

class MockQrScannerCubit extends MockCubit<scanner_s.QrScannerState>
    implements QrScannerCubit {}

void main() {
  group('QrGeneratorPage', () {
    final tSeed = Seed(
      seed: 'seed',
      expiresAt: DateTime.now().add(const Duration(seconds: 15)),
    );

    late QrGeneratorCubit qrGeneratorCubit;
    late QrScannerCubit qrScannerCubit;

    setUp(() {
      qrGeneratorCubit = MockQrGeneratorCubit();
      qrScannerCubit = MockQrScannerCubit();
    });

    testWidgets('renders a QrGeneratorPage', (tester) async {
      ///arrange
      when(() => qrGeneratorCubit.state)
          .thenReturn(const QrGeneratorState.initial());

      ///act
      await tester.pumpWidget(BlocProvider.value(
        value: qrGeneratorCubit,
        child: const MaterialApp(home: QrGeneratorPage()),
      ));

      ///expect
      expect(find.byKey(const Key('kBodyKey')), findsOneWidget);
    });
  });
}

Error I'm getting
//Bad state: A test tried to use `any` or `captureAny` on a parameter of type `QrGeneratorState`, but
//registerFallbackValue was not previously called to register a fallback value for `QrGeneratorState`

To fix, do:

void main() {
  setUpAll(() {
    registerFallbackValue<QrGeneratorState>(QrGeneratorState());
  });
}

//If you cannot easily create an instance of QrGeneratorState, consider defining a `Fake`:

class QrGeneratorStateFake extends Fake implements QrGeneratorState {}

void main() {
  setUpAll(() {
    registerFallbackValue<QrGeneratorState>(QrGeneratorStateFake());
  });
}

I already tried doing what the error message says, but I'm still getting the same error.

Hi @elian-ortega 👋
Thanks for opening an issue!
As the error indicates, you need to register fallback values for the bloc event and state. You can add these following lines to your test:
class FakeQrGeneratorEvent extends Fake implements QrGeneratorEvent {}
class FakeQrGeneratorState extends Fake implements QrGeneratorState {}

void main() {
  setUpAll(() {
    registerFallbackValue<QrGeneratorEvent>(FakeQrGeneratorEvent());
    registerFallbackValue<QrGeneratorState>(FakeQrGeneratorState());
  });
}

Hope that helps 👍

It works! Thank you very much @felangel!
In my case it was only the state because I'm using cubit, so I did this to fix it:
void main() {
  setUpAll(() {
    registerFallbackValue<QrGeneratorState>(FakeQrGeneratorState());
    registerFallbackValue<scanner_s.QrScannerState>(FakeQrScannerState());
  });

  ...
}

Something more
I just have one question, Why is it necessary to register the fall back value and mocking the state and event ?

Hi @felangel,
I still got an error if I use cubit that emits enum even though we already added registerFallbackValue(AppTab) (AppTab is an enum).
I can't create FakeAppTab because I can't implement enum

Is there any workaround that does not include changing enum to FooState?

Hi @tijanirf 👋
You can just registerFallback with a real enum value in this case:
registerFallbackValue(AppTab.home);

Hope that helps 👍

Hi @felangel
Can you please describe what is the use of registerFallbackValue

Hey @shan-shaji straight from the docs:
/// Allows [any] and [captureAny] to be used on parameters of type [T].
///
/// It is necessary for tests to call [registerFallbackValue] before using
/// [any]/[captureAny] because otherwise it would not be possible to assign
/// [any]/[captureAny] as value to a non-nullable parameter.
///
/// Mocktail comes with already pre-registered values, for types such as [int],
/// [String] and more.
///
/// Once registered, a value cannot be unregistered, even when using
/// [resetMocktailState].
///
/// It is a good practice to create a function shared between all tests that
/// calls [registerFallbackValue] with various types used in the project.

In fewer word any() can substitute any basic data type: int, string, etc. But any() have no idea of the existence of a complex model from your project. So by registering a callbackValue you give the ability to any() method to substitute the new model/data type you have registered.

Thank you @elianmortega ,
So any() to work properly i need to register model/data type defined in my project.

Yes, but only the ones that will be used on the tests, there is no need on registering a model that won't be used in the test 👍 .

Ok Thank you @elianmortega 👍

I have the same problem. This is my code:
class MockUserRepository extends Mock implements UserRepository {}
class MockAuthenticationBloc extends MockBloc<AuthenticationEvent, AuthenticationState> implements AuthenticationBloc {}
class FakeAuthenticationEvent extends Fake implements AuthenticationEvent {}
class FakeAuthenticationState extends Fake implements AuthenticationState {}

void main() {
  MockUserRepository mockUserRepository;
  MockAuthenticationBloc mockAuthenticationBloc;

  setUp(() {
    mockUserRepository = MockUserRepository();
    mockAuthenticationBloc = MockAuthenticationBloc();
    registerFallbackValue(FakeAuthenticationEvent());
    registerFallbackValue(FakeAuthenticationState());
  });

  group('Login', () {
    final username =<EMAIL_ADDRESS>    final password = 'Noyruto@88251125';
    final token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NDQzMDM2NTYsImV4cCI6MTY0NDMwMzY1Niwicm9sZXMiOlsiUk9MRV9TRUxMRVIiXSwidXNlcm5hbWUiOiI1NGUzZmFmNy1hNjlkLTRiMmUtODMwOC03ODU4N2RhMTA3N2QiLCJpZCI6IjU0ZTNmYWY3LWE2OWQtNGIyZS04MzA4LTc4NTg3ZGExMDc3ZCIsImxhc3RMb2dpbkF0IjoiMjAyMi0wMi0wM1QwNzowMDo1Ni4wMjQwMTRaIiwicGVybWlzc2lvbnMiOltdLCJzdXBlckFkbWluIjpmYWxzZSwic2FuY3R1bV90b2tlbiI6Ijg2MjMxM3xlWUlLWjR0dW1UcGltVkRHd1FiVDRTMlFCNHVYV2trOERTUkYwWU1VIn0=.NThmYTllOTdjZDA0MjNmNDAwNDZiYTczM2YyZTE4MWRmYjVmZmYxZjFlOTQxNzczNzFjMDEwOTA1NmRlMjJmNQ==';
    final loginError = 'Unable to connect to the server, please check if your connected to Wifi or a Mobile Network.';
    blocTest('emits [LoginLoading] when successful',
      build: () {
        when(() => mockUserRepository.authenticate(username: username, password: password)).thenAnswer((_) async => token);
        return LoginBloc(userRepository: mockUserRepository, authenticationBloc: mockAuthenticationBloc);
      },
      act: (bloc) => bloc.add(LoginButtonPressed(username: username, password: password)),
      expect: () => [
        LoginInitial(),
        LoginLoading(),
        LoginFailure(error: loginError),
      ],
    );
  });
}

And the error is:
Bad state: A test tried to use `any` or `captureAny` on a parameter of type `AuthenticationState`, but
  registerFallbackValue was not previously called to register a fallback value for `AuthenticationState`.

  To fix, do:

  void main() {
    setUpAll(() {
      registerFallbackValue(/* create a dummy instance of `AuthenticationState` */);
    });
  }

  This instance of `AuthenticationState` will only be passed around, but never be interacted with.
  Therefore, if `AuthenticationState` is a function, it does not have to return a valid object and
  could throw unconditionally.
  If you cannot easily create an instance of `AuthenticationState`, consider defining a `Fake`:

  class MyTypeFake extends Fake implements MyType {}

  void main() {
    setUpAll(() {
      registerFallbackValue(MyTypeFake());
    });
  }

I have the same problem. This is my code:
class MockUserRepository extends Mock implements UserRepository {}
class MockAuthenticationBloc extends MockBloc<AuthenticationEvent, AuthenticationState> implements AuthenticationBloc {}
class FakeAuthenticationEvent extends Fake implements AuthenticationEvent {}
class FakeAuthenticationState extends Fake implements AuthenticationState {}

void main() {
  MockUserRepository mockUserRepository;
  MockAuthenticationBloc mockAuthenticationBloc;

  setUp(() {
    mockUserRepository = MockUserRepository();
    mockAuthenticationBloc = MockAuthenticationBloc();
    registerFallbackValue(FakeAuthenticationEvent());
    registerFallbackValue(FakeAuthenticationState());
  });

  group('Login', () {
    final username = 'someusername';
    final password = 'somepassword';
    final token = 'sometoken';
    final loginError = 'someerrormessage';

    blocTest('emits [LoginLoading] when successful',
      build: () {
        when(() => mockUserRepository.authenticate(username: username, password: password)).thenAnswer((_) async => token);
        return LoginBloc(userRepository: mockUserRepository, authenticationBloc: mockAuthenticationBloc);
      },
      act: (bloc) => bloc.add(LoginButtonPressed(username: username, password: password)),
      expect: () => [
        LoginInitial(),
        LoginLoading(),
        LoginFailure(error: loginError),
      ],
    );
  });
}

And the error is:
Bad state: A test tried to use any or captureAny on a parameter of type AuthenticationState, but
registerFallbackValue was not previously called to register a fallback value for AuthenticationState.
To fix, do:
void main() {
  setUpAll(() {
    registerFallbackValue(/* create a dummy instance of `AuthenticationState` */);
  });
}

This instance of AuthenticationState will only be passed around, but never be interacted with.
Therefore, if AuthenticationState is a function, it does not have to return a valid object and
could throw unconditionally.
If you cannot easily create an instance of AuthenticationState, consider defining a Fake:
class MyTypeFake extends Fake implements MyType {}

void main() {
  setUpAll(() {
    registerFallbackValue(MyTypeFake());
  });
}

Fallbacks are required because mocktail has to know of a valid AuthenticationState to prevent
TypeErrors from being thrown in Dart's sound null safe mode, while still
providing a convenient syntax.


Training Error:Model Doesn't Show Results After Training

After Training YOLOv4 on custom dataset consisting 3 different classes, it doesn't show any detections at all. I thought i might be having problem with dataset so i changed it, but still it doesn't show any detections, doesn't matter if i train for 25 epochs or 100.
Here is my Script which i used in Colab.. Can you help me with this?
!pip install yolov4
!unzip yolo-dataset.zip

from tensorflow.keras import callbacks, optimizers
from yolov4.tf import SaveWeightsCallback, YOLOv4
import time

yolo = YOLOv4()
yolo.classes = "classes.names"
yolo.input_size = 640
yolo.batch_size = 4

yolo.make_model()
yolo.load_weights(
    "/content/drive/My Drive/Colab Notebooks/yolo weights/yolov4.conv.137",
    weights_type="yolo"
)

train_data_set = yolo.load_dataset(
    "yolo_train.txt",
    image_path_prefix="yolo-animal-detection-small/train",
    label_smoothing=0.05
)
val_data_set = yolo.load_dataset(
    "yolo_val.txt",
    image_path_prefix="yolo-animal-detection-small/test",
    training=False
)

epochs = 25
lr = 1e-4

optimizer = optimizers.Adam(learning_rate=lr)
yolo.compile(optimizer=optimizer, loss_iou_type="ciou", loss_verbose=0)

def lr_scheduler(epoch):
    if epoch < int(epochs * 0.6):
        return lr
    if epoch < int(epochs * 0.8):
        return lr * 0.5
    if epoch < int(epochs * 0.9):
        return lr * 0.1
    return lr * 0.01

_callbacks = [
    callbacks.LearningRateScheduler(lr_scheduler),
    callbacks.TerminateOnNaN(),
    callbacks.TensorBoard(
        log_dir="logs",
    ),
    SaveWeightsCallback(
        yolo=yolo, dir_path="trained",
        weights_type="yolo", epoch_per_save=1
    ),
]

yolo.fit(
    train_data_set,
    epochs=epochs,
    callbacks=_callbacks,
    validation_data=val_data_set,
    validation_steps=1,
    validation_freq=1,
    steps_per_epoch=100,
)

from yolov4.tf import YOLOv4

model = YOLOv4()

model.classes = "classes.names"
model.input_size = 640

model.make_model()
model.load_weights("trained/yolov4-final.weights", weights_type="yolo")

from PIL import Image
model.inference('yolo-animal-detection-small/test/cats_000.jpg')
Image.open('out.jpg')

Here are some of the files...

yolo_train.txt
yolo_val.txt

How to get out.jpg?

https://github.com/hhk7734/tensorflow-yolov4/blob/25e802f1e0b95a5719920e40e98fdac1d0a9bfb2/py_src/yolov4/common/base_class.py#L246-L261
Try the below code
...
model.make_model()
model.load_weights("trained/yolov4-final.weights", weights_type="yolo")

import cv2
from google.colab.patches import cv2_imshow

image = cv2.imread('yolo-animal-detection-small/test/cats_000.jpg')
frame = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
bboxes = model.predict(frame)
image = self.draw_bboxes(image, bboxes)
cv2_imshow(image)

How to get out.jpg?

I modified cv2.imshow with cv2.imwrite

https://github.com/hhk7734/tensorflow-yolov4/blob/25e802f1e0b95a5719920e40e98fdac1d0a9bfb2/py_src/yolov4/common/base_class.py#L246-L261
Try the below code
...
model.make_model()
model.load_weights("trained/yolov4-final.weights", weights_type="yolo")

import cv2
from google.colab.patches import cv2_imshow

image = cv2.imread('yolo-animal-detection-small/test/cats_000.jpg')
frame = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
bboxes = model.predict(frame)
image = self.draw_bboxes(image, bboxes)
cv2_imshow(image)

Still No Result... No Output is Shown

If there are no other problems, it seems to be a training failure.

I have a lot of work right now, so it's hard to test it right now.

I hope you fix this Error as soon as possible, i look forward to it.
Besides, i have attached the dataset i used, i don't see any problem with dataset, but maybe you would like to have a look at the dataset.
yolo-dataset.zip

@hhk7734 Did you fix it?

Not yet tested.
Can you try this script? https://wiki.loliot.net/docs/lang/python/libraries/yolov4/python-yolov4-dataset/#dataset-test-script

I have one more question,
other than 'converted_coco' format how can I use 'yolo' format to load dataset?

Ref: https://wiki.loliot.net/docs/lang/python/libraries/yolov4/python-yolov4-dataset#dataset-files-and-formats

Thanks, I found out that dataset annotation is not right

@hhk7734 i think i am asking too much questions here, but this dataset is well annotated with respect to bounding boxes, and your test script shows bounding boxes on images, but still model doesn't show results on this too, i have attached dataset and colab notebook link, please have a look
yolo-clothing-data.zip
https://colab.research.google.com/drive/1v7TKtrut1sVxyBgRjPrievQ_AI_x-5fO?usp=sharing

Your batch_size * step * epoch is 2 * 100 * 10.
The number of classes is 9.
On my test
batch_size * step * epoch is 8 * 100 * 60.
The number of classes is 3.
yolov4.conv.137 is made from coco2017 dataset.
On my test, my classes are related to coco classes. but yours are not.
You may need more datasets and more epochs.
When I tested on your dataset,
tiny=True
batch_size = 8
input_size = 416
epochs = 20
lr = 1e-4
Removed callbacks.LearningRateScheduler(lr_scheduler) from _callbacks
Detected some classes with low probability.
The reason to use tiny is just to shorten the test time. you don't need to set tiny=True.
On colab, using my dataset, the training took about 80 minutes for 3 classes.

Can you share your dataset and script?

I made a dataset from coco-2017. Ref: https://wiki.loliot.net/docs/lang/python/libraries/yolov4/python-yolov4-dataset#convert-coco-to-custom-dataset
Download : https://cocodataset.org/#download
2017 Train images, 2017 Val images, 2017 Train/Val annotations.
Script: https://colab.research.google.com/drive/16Qzm3cElQ0J8-xFPfhAq-ZE11gpb35zD?usp=sharing

colab notebook needs access

Done. :)

Thanks for your help,
I started to use "yolo" format instead of "converted_coco" and it is working


Can't run vm from a folder with a too long PATH (max 85 chars)???

Describe the bug
I tried to run the nixos-build-vms (no problem) and then run the corresponding VM, with exactly the same file, from two different folders:

/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij
/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghijk

On the folder with the longer name (the limit seems to be > 85 chars) /tmp/.../abcdefghijk, I get an error
*** buffer overflow detected ***

but on the other smaller path, I don't have any error and qemu boots fine.
I'm not sure if the issue is from nixpkgs, from qemu, or from the python interface with qemu though, it's completely possible that the bug is qemu's.
To Reproduce
Steps to reproduce the behavior:

Create 2 folders, one with a short (<= 85 ?) path, one with a long (>85?) path. For example:

mkdir -p /tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij
mkdir -p /tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghijk

In both folders, put the following network.nix file:

{
  test2 = {pkgs, config, ...}:
    {
      services.openssh.enable = true;
      environment.systemPackages = [ pkgs.lynx ];
      # nixpkgs.localSystem.system = "x86_64-linux";
    };
}

In both folders, run:

$ nixos-build-vms network.nix && result/bin/nixos-run-vms

In the longer folder, you should get an error buffer overflow detected .
Here is a full session:
[me@myhost:~]$ mkdir -p /tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij

[me@myhost:~]$ mkdir -p /tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghijk

[me@myhost:~]$ cd /tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij

[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij]$ emacs network.nix
# [write he network.nix file as follow:]
[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij]$ cat network.nix
{
  test2 = {pkgs, config, ...}:
    {
      services.openssh.enable = true;
      environment.systemPackages = [ pkgs.lynx ];
      # nixpkgs.localSystem.system = "x86_64-linux";
    };
}

[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij]$ nixos-build-vms network.nix && result/bin/nixos-run-vms
/nix/store/fwxssy1h3j03rcsy9z7a935n055sy5d2-nixos-test-driver-unnamed
starting VDE switch for network 1
running the VM test script
starting all VMs
test2: starting vm
test2: QEMU running (pid 32728)
(0.08 seconds)
waiting for all VMs to finish
test2: waiting for the VM to power off
test2 # [    0.000000] Linux version 5.4.60 (nixbld@localhost) (gcc version 9.2.0 (GCC)) #1-NixOS SMP Fri Aug 21 11:05:39 UTC 2020
test2 # [    0.000000] Command line: console=ttyS0 panic=1 boot.panic_on_fail loglevel=7 net.ifnames=0 init=/nix/store/hr12spa37b6n4xx64drwyv074s2llpra-nixos-system-test2-20.03.2843.14006b724f3/init regInfo=/nix/store/xq0aysqwzih5qslyq93mw48k96992wc9-closure-info/registration console=ttyS0
test2 # [    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[... Boots fine ...]
KeyboardInterrupt
cleaning up
killing test2 (pid 32728)
(0.03 seconds)

[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghij]$ cd ../abcdefghijk/

[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghijk]$ cp ../abcdefghij/network.nix .

[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghijk]$ cat network.nix
{
  test2 = {pkgs, config, ...}:
    {
      services.openssh.enable = true;
      environment.systemPackages = [ pkgs.lynx ];
      # nixpkgs.localSystem.system = "x86_64-linux";
    };
}

[me@myhost:/tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghijk]$ nixos-build-vms network.nix && result/bin/nixos-run-vms
/nix/store/fwxssy1h3j03rcsy9z7a935n055sy5d2-nixos-test-driver-unnamed
starting VDE switch for network 1
running the VM test script
starting all VMs
test2: starting vm
*** buffer overflow detected ***: /nix/store/h8hylgv3lydj30mxsha8n4iqbbkg5x1x-qemu-host-cpu-only-for-vm-tests-4.2.0/bin/qemu-system-x86_64 terminated
test2: QEMU running (pid 595)
(0.40 seconds)
waiting for all VMs to finish
test2: waiting for the VM to power off
(0.00 seconds)
(0.00 seconds)
(0.40 seconds)
test script finished in 0.40s
cleaning up
(0.00 seconds)

Expected behavior
I expect that running a VM in a folder with a long PATH should not be a problem.
Notify maintainers
@tfc
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.60, NixOS, 20.03.2843.14006b724f3 (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20200721_ff314f1`
 - channels(root): `"nixos-20.03.2843.14006b724f3"`
 - channels(leo): `"home-manager-20.03, nixos-unstable-20.09pre239318.c59ea8b8a0e"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

I tried again on a freshly upgraded system (unstable), and now I don't see this bug anymore (at least not with a url as long as /tmp/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/abcdefghi/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa). I don't know what solved this issue, but I guess I can close it for now.


README should say that tui is unmantained and ratatui is the maintained fork

Problem
I can't find anywhere in the README that says this project unmaintained. I think there should be a mention that ratatui is the maintained fork. Would it be a good idea to add this to the README?

This would be a reasonable thing to do. Also, we recently had a meeting (see the notes) and planning to transfer ownership (if possible).


quiche-server ignores POST request payloads

The quiche-server currently ignores POST request payloads and decides the response based on headers alone (https://github.com/cloudflare/quiche/blob/master/apps/src/common.rs#L1555). It would be helpful for the server to properly consume and drain the stream for tests involving POST requests (#1400).
I started to implement this a while ago so feel free to reference but I don't think I can carry this PR through right now: https://github.com/cloudflare/quiche/compare/master...ygina:quiche:http-post?expand=1

yeh we should modify the behaviour to make it easier to assess upload performance.


🧑💻: Add favicon of chanakya in website

:red_circle: Title : Favicon add
:red_circle: Enhancement Aim : make better view
:red_circle: Changes :  add link to favicon
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name : Bhavy Zala
What is your participant role? Gssoc'24

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

@Avdhesh-Varshney Please assign me !

@zalabhavy not required


update README and deploy scripts to use release-4.8 branch

When branching off from master we haven't changed all occurences of
the master branch name to release-4.8. Fix the README and helper
scripts in deploy/ to use the correct branch.
Fixes: #109
Signed-off-by: Jens Freimann<EMAIL_ADDRESS>

/lgtm
/approve


auditlog.LogEntry.additional_data: (django_jsonfield_backport.W001) You are using Django 3.1 or newer, which already has a built-in JSONField.

Hi,
Getting this warning when I try to migrate after the install. My app is on django 4.0.1
Is auditlog not supported on it?
Thanks

Same problem on Django 3.2


login username bug

Pull Request Template for GSoC 2024
Related Issue #135
[Please list any related issue numbers that this pull request resolves. If none, state "None"]
closes: #135
Description of Changes
CHANGED USER NAME TO NAME IN LOGIN PAGE
Type of Pull Request

[X] Bug Fix
[ ] New Feature
[ ] Performance Improvement
[ ] Documentation Update
[ ] Code Refactoring
[ ] Security Enhancement
[ ] Other (Specify): _______________

(Please check relevant boxes by entering an "X" inside them)
Screenshots / Demo (if applicable)
[Include any screenshots, GIFs, or videos that demonstrate the change or feature, if available.]
Checklist for Contributor
use'X' in [ ] to check it .

[X] I have reviewed my code before submission.
[X] I have read and followed the project's Contribution Guidelines.
[X] I have tested the code thoroughly.
[X] I have attached related issue numbers, screenshots, or videos (if applicable).
[X] I have added comments to my code where necessary for clarity.
[X] I have checked the existing code base and my changes do not introduce any breaking changes.
[X] My PR addresses only one issue; I have created separate PRs for other issues.
[X] I have ensured that the PR does not include unrelated files.
[X] I am mindful of the project's coding standards and best practices.

Additional Information
[Include any additional context or relevant information that may help in reviewing this PR.]
Contribution Guidelines Reminder
Thank you for contributing to our project! Please ensure you follow the guidelines below:
Contribution Levels

Task Categories:

Basic Tasks: Primarily focused on small changes like minor bug fixes, documentation improvements, and unit testing. Labeled as Easy.
Intermediate Tasks: Moderate-level tasks that involve enhancing existing features, code refactoring, or performance improvements. Labeled as Medium.
Advanced Tasks: Complex tasks like building new features, significant refactoring, or critical bug fixes. Labeled as Hard.

Acknowledging Effort:

Exceptional contributions will be recognized with a higher contribution level if substantial effort and innovation are demonstrated.

Review Process

PRs will be reviewed by the maintainers, and feedback will be provided. Contributors should address feedback promptly and resubmit the PR if necessary.

Contributors are encouraged to participate in the review process of other PRs for community growth.

We appreciate your time and effort in improving this project and look forward to your valuable contributions!

@Kratik1093 do email here

pullrequest is been updated with all thereq changes

@Kratik1093 please sync fork there are conflicts


Minor grammar and phrasing changes

This PR includes a few miscellaneous changes regarding the text in the main UI.

Change "skill priority" to "skill order". Champion.gg uses this phrasing and I feel as though it's more commonly used in general as well.
Shorten text for skill order option. The hover-over text already describes the longer version of the skill order, so I think this looks a little cleaner.
ChampionGG and Champion.GG -> Champion.gg
Summoners Rift -> Summoner's Rift
Highest Win -> Highest Win %.

Yep, looks like terrible grammar mistakes I would make too. Thanks for the PR!


[rendering] clamp min/max zoom

Leaflet allows the zoom values 0..18, but a) zero is broken (background map vanishes); b) anything less than 2.0 shows multiple copies of the globe (though due to a quirk with Leaflet, only renders the overlay content on one of the copies); c) anything greater than say a zoom of 14 or 15 is beyond the accuracy we're looking to attain in the project (see #100). Leaflet allows you to set the minimum and maximum zoom. I'm proposing 2.0 and 15.0.
Zoom at 0.5, showing redundant (and un-layered) copies of underlying map:

Zoom at 14.0:

I really dislike the "multiple earths" and agree that Zoom should be constrained. If the "multiple earths" threshold is around Zoom = 2, then that sounds like a good value for the low end of the scale. Zoom = 15 appears to be appropriate for the top end given our objectives at this time.


Ability to unload (or avoid loading) type libraries

What is the feature you'd like to have?
I'd like a way to unload type libraries, e.g.:
for tl in bv.type_libraries:
    bv.remove_type_libraries(tl)

Is your feature request related to a problem?
There are a variety of issues with how Binary Ninja imports types from type libraries right now. For example, COM-related definitions are all kinds of wrong: Incorrect pointer levels, missing this parameters in vtables, no handling of vtable inheritance, etc...
I'm sure these issues will be addressed in time, but in the meantime, I need to be able to fill in the types myself without having to fight Binary Ninja because I'm stepping on its toes when I define a type that has a name found in a type library.
Are any alternative solutions acceptable?
An option to not load type libraries in the first place when loading the binary would also be sufficient.

If you could provide a specific example of a type which is wrongly defined that would be very helpful.

Is there any chance this might be addressed anytime soon? It'll of course take time to squash all the bugs associated with turning Win32 metadata into correct BN types, but I still find myself having to fight BN when it has incorrect/incomplete definitions for e.g. COM interfaces.
The Types view has a number of odd quirks when you try to edit/overwrite types coming from type libraries, and even when you manage to do so, you'll get strange warnings in the console at times because (I presume) BN gets confused when it expects to find a type in a type library but the user has overwritten it.
Even a super simple option to just disable loading of all type libraries when opening a binary would be a sufficient solution for me (I don't mind having to fill in Win32 types myself).

We have a test branch in progress right now that loads them on-demand.  Adding a setting along with that change to not load should be trivial. I think our expectation for the original issue was a more granular ability to load only some. A simple on/off would be easy, thanks for letting us know again it's causing you an issue.
I don't know the overall timeline on the feature branch, highlighting Josh here to ask.
Cc: @negasora
If it's not close we can just land a quick setting.

Hey @negasora, just wanted to check in on the above?

It got batched in with a larger changeset, but should be getting merged today

The setting platform.autoLoadTypeLibs is added in 3.2.3880-dev


empty output on linux

From https://developers.cloudflare.com/http3/intro/http3-client/ I am testing my websites
RUST_LOG="info" ./http3-client https://api.gengjiawen.com

It works on macOS, but failed on linux (empty output).
  System:
    OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (1) x64 Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
    Memory: 100.32 MB / 981.21 MB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Utilities:
    CMake: 3.18.0 - /usr/local/bin/cmake
    Make: 4.2.1 - /usr/bin/make
    GCC: 9.3.0 - /usr/bin/gcc
    Git: 2.25.1 - /usr/bin/git
    Clang: 10.0.0-4ubuntu1 - /usr/bin/clang
  Languages:
    Rust: 1.45.2 - /root/.cargo/bin/rustc

https://cloudflare-quic.com works on both system.

It's a docker container, I didn't set any rules. In this case, can the client find some error ?

Docker is going to complicate things. I'd take a packet trace from the host to see if you really are sending UDP datagrams to the Internet, and whether anything is coming back before it is passed into the Docker network.

Thanks, I tried another linux vm with same docker image, it works.
Will it make sense quiche throw an error in this case ?

So what's happening is that the quiche-client application is managing the timers and when they tick, calls the quiche library's on_timeout() method. In this case, because no packets are received, eventually the client's idle timeout period elapses and this is reported inside the library trace logging.
It's not clear from your original report if the http3-client logged anything, I would have presumed so since they are just fprintf to stderr e.g. https://github.com/cloudflare/quiche/blob/master/examples/http3-client.c#L271 So in this case I would have expected you to see something like

timeout
connection closed...
....

`on_timeout()` can have a number of outcomes, and there is an `is_closed()` method to detect if the quiche has closed the application. It is not clear to me what extra information would help this situation but maybe other people have ideas.

Closing due to inactivity.


Check if token's media is servable

Changes
Updates the dedupe logic when combining separate providers:

Add IsServable method to the Media type. It seems that we can generalize on the fact that a token's media is servable if it has a media type and it has a media URL. Only types of unknown and "" are missing a media_url

postgres=# select media->>'media_type' media_type, media->>'media_url' != '' has_url, count(*) count from tokens group by 1, 2;
 media_type | has_url | count
------------+---------+--------
 audio      | t       |   2953
 json       | t       |      1
 svg        | t       |  16431
 animation  | t       |    901
 unknown    | t       |  31228
 html       | t       |  35120
 video      | t       |  55509
 text       | t       |    785
 unknown    |         |   5673
 gif        | t       |  34164
            |         |  58903
 image      | t       | 308467
(12 rows)

Use IsServable to determine which provider to use for the token

How did I test?
Pointed my local backend to the prod indexer API and ran "Refresh wallet" on noise_dao.
Prior to the change, noise dao's NFTs looked like:
postgres=# select media->>'media_type' media_type, deleted, count(*) count from tokens where owner_user_id = '2CmnkzXTHkxlJTfhOVUIkjJqHI1' group by 1,2 order by 2,1;
 media_type | deleted | count
------------+---------+-------
            | f       |   415
 audio      | f       |   325
 gif        | f       |     1
 html       | f       |    82
 image      | f       |    81
 svg        | f       |     5
 unknown    | f       |     3
 video      | f       |   144
 audio      | t       |     1
 image      | t       |    38
 svg        | t       |     1
 video      | t       |     2
(12 rows)

After running a sync, their NFTs looks like:
 media_type | deleted | count
------------+---------+-------
            | f       |     7
 audio      | f       |   430
 gif        | f       |     1
 html       | f       |   204
 image      | f       |   120
 svg        | f       |     6
 unknown    | f       |    21
 video      | f       |   301
 audio      | t       |     1
 image      | t       |    38
 svg        | t       |     1
 video      | t       |     2
(12 rows)

For dcinvestor, before:
postgres=# select media->>'media_type' media_type, deleted, count(*) count from tokens where owner_user_id = '3369d75dc3f482f8cf7213b03670112f' group by 1,2 order by 2,1;
 media_type | deleted | count
------------+---------+-------
 gif        | f       |    65
 html       | f       |   104
 image      | f       |   408
 svg        | f       |    12
 unknown    | f       |    23
 video      | f       |   116
 image      | t       |    28
(7 rows)

and after:
postgres=# select media->>'media_type' media_type, deleted, count(*) count from tokens where owner_user_id = '3369d75dc3f482f8cf7213b03670112f' group by 1,2 order by 2,1;
 media_type | deleted | count
------------+---------+-------
            | f       |   374
 animation  | f       |     3
 gif        | f       |    84
 html       | f       |    99
 image      | f       |   468
 svg        | f       |    50
 unknown    | f       |    42
 video      | f       |   175
 image      | t       |    30
(9 rows)

It looks like dcinvestor hasn't ran a sync since early July, but the extra unknowns look like a bunch of spam nfts. Inspecting his Gallery after the refresh though looks identical to before the refresh. Also running a refresh on my Gallery fixed tokens that were previously broken.

thanks for doing this, jarrel!
if we realize the media is broken for a token, would we at least trigger an async refresh for the token on the indexer side?

Indexer already handles refreshes for tokens with broken media on syncs, so no need to do a re-refresh


Fix lexer range calculation for tokens

There's a bug where tokens without spaces such as {{Test}} are being parsed as Tes.
This PR fixes that issue, and adds a test to ensure this doesn't happen again.

Was that a regression? Do we need a hotfix?

This was a regression, yes. Unfortunately our tests didn't catch this before the 0.13 release.I've already made a 0.13.1 release, so no worries.
I meant to do a release PR, but I accidentally pushed on master and we're not allowed to rebase, so 🤷♂


perf(ws): improve query performance for large query resultset

Close TD-30414

Codecov Report
Attention: Patch coverage is 52.69461% with 158 lines in your changes missing coverage. Please review.

Project coverage is 72.09%. Comparing base (6554775) to head (fa4c494).

Files
Patch %
Lines

taos-ws/src/query/asyn.rs
50.31%
156 Missing :warning:

taos-ws/src/lib.rs
86.66%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
+ Coverage   71.93%   72.09%   +0.16%
==========================================
  Files          99       99
  Lines       32976    32984       +8
==========================================
+ Hits        23722    23781      +59
+ Misses       9254     9203      -51

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


Setting up Tomcat only works after building the front-end

web/target/web-1.0-SNAPSHOT.war doesn't exist yet when installing the required software (before building the project). Tomcat should be configured after the front-end has been built.

You should be able to create the symlink even if the file you link to does not exist.

You're right, this is a non-issue. I probably thought it wouldn't work because my tab-autocompletion didn't work.. Sorry!


Error Setting scheduler.http-client.connect-timeout in config.properties (Ver 305)

Dear Prestosql Team,
We are using version 305 and we some errors and warning like:
WARN	TaskInfoFetcher-20190321_142603_00152_59y9e.1.2-1684	io.prestosql.server.remotetask.RequestErrorTracker	Error getting info for task 20190321_142603_00152_59y9e.1.2: Server refused connection
2019-03-21T14:35:53.669Z	ERROR	remote-task-callback-567	io.prestosql.execution.StageStateMachine	Stage 20190321_143053_00265_59y9e.1 failed io.prestosql.spi.PrestoTransportException: Encountered too many errors talking to a worker node. The node may have crashed or be under too much load. This is probably a transient issue, so please retry your query in a few minutes.
We try to set the properties like in config.properties to increase timeout tolerance.
scheduler.http-client.max-connections=1000
scheduler.http-client.max-connections-per-server=1000
scheduler.http-client.connect-timeout=5m
scheduler.http-client.idle-timeout=5m

The following error occurs starting server:
2019-03-21T14:33:21.046Z	ERROR	main	io.prestosql.server.PrestoServer	Unable to create injector, see the following errors:

1) Configuration property 'optimizer.optimize-single-distinct' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:233)

2) Configuration property 'scheduler.http-client.connect-timeout' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:233)

3) Configuration property 'scheduler.http-client.idle-timeout' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:233)

4) Configuration property 'scheduler.http-client.max-connections' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:233)

5) Configuration property 'scheduler.http-client.max-connections-per-server' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:233)

Do we need to setup something else?
Thanks,
Pablo.

Configuration property 'optimizer.optimize-single-distinct' was not used

This configuration property was removed (apparently around 0.198 release).
We missed to update documentation though -- https://github.com/prestosql/presto/pull/520
thanks for reporting this!

Configuration property 'scheduler.http-client.connect-timeout' was not used

Is this error being reported on coordinator or on the scheduler?
scheduler.* configuration is applicable on coordinator node only.

BTW, this kind of troubleshooting questions are best served by the #troubleshooting channel on Presto Slack. Get an invite from https://prestosql.io/community.html.
I will close this issue, but you still can comment here. Or we can move this to Slack.


Add a third option (abstain) to voting

Currently we have +1/-1 as options. We should also have an "Active abstain" vote, and then we can report on the % of responders more accurately.
Another way of putting it, we shouldn't assume a no-vote is an abstain.

Hi @jeefy 👋
We already have an abstain option, please see https://github.com/cncf/gitvote 🙂

Abstain votes are counted separately than no-vote too 😉

<3 Thanks, I totally missed it!

No worries!


[blaster] rollback pull/26 to the official state if not be merged

Before make new updates (to safe the official contributing compatibility, README.md)
https://github.com/twisterarmy/twister-html/pull/26

Currently, we are maintain 3 separated branch - master/blaster and TA edition, there is no goal to keep the compatibility between these branches. Pretty possible we'll stop to make the PR as no reaction there and archive following branches.
Contribution Details:
https://github.com/twisterarmy/twister-html#contribute


Remove duplicate plugin versions.

What's changed?
Fixes #3932
What's your motivation?
Remove duplicate plugin versions from pom files updated by OpenRewrite
Anything in particular you'd like reviewers to focus on?
No
Anyone you would like to review specifically?
No
Have you considered any alternatives or workarounds?
No
Any additional context
No
Checklist

[x] I've added unit tests to cover both positive and negative cases
[x] I've read and applied the recipe conventions and best practices
[x] I've used the IntelliJ IDEA auto-formatter on affected files

I'd recommend updating the recipe description (and display name?) to reflect the new behavior, but other than that (and Tim's note), I like it!


Forum or Mailing List?

Hi.
Is there something like a forum or a mailing list for the AWS C++ SDK? I'm currently migrating a platform independent Qt application (Win, iOS, Android) from a cloud service that is about to shut down to AWS and I have many questions, but I'm a bit reluctant to file an issue here on GitHub everytime I'm lost. My question here https://forums.aws.amazon.com/thread.jspa?threadID=234436&tstart=0 remained unanswered.
If there's no forum / list (yet), is it ok to summarize multiple issues in one post here or do you insist on having one question / issue per post?
Thanks and kind regards,
Dominik

I'm really sorry, we didn't respond to your forum question. I never saw it.
If you encounter a bug, please file a github issue for each one. Otherwise,
feel free to just send me an email.
On Tue, Jul 5, 2016 at 7:53 AM, InikOfDoom<EMAIL_ADDRESS>wrote:

Hi.
Is there something like a forum or a mailing list for the AWS C++ SDK? I'm
currently migrating a platform independent Qt application (Win, iOS,
Android) from a cloud service that is about to shut down to AWS and I have
many questions, but I'm a bit reluctant to file an issue here on GitHub
everytime I'm lost. My question here
https://forums.aws.amazon.com/thread.jspa?threadID=234436&tstart=0
remained unanswered.
If there's no forum / list (yet), is it ok to summarize multiple issues in
one post here or do you insist on having one question / issue per post?
Thanks and kind regards,
Dominik
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/aws/aws-sdk-cpp/issues/227, or mute the thread
https://github.com/notifications/unsubscribe/ADvpxZRNykT-3NOha_n2TtR6uRGuChYvks5qSm_QgaJpZM4JFM6S
.

--
"The poet only asks to get his head into the heavens. It is the logician
who seeks to get the heavens into his head. And it is his head that splits"
--G. K. Chesterton-- "Orthodoxy"

Hi Jonathan,
thanks. I'll add some issues I encountered here. My first questions were mostly about building the beast for iOS but I managed to get it up and running myself.
Nevertheless, I think a forum / wiki for general questions and best practices would be really helpful.
Kind regards,
Dominik


[Rancher2] Missing option 2 on "Enable Istio in the Cluster" page.

Request Summary:
Missing option 2 on "Enable Istio in the Cluster" page.
Details:

URL: https://rancher.com/docs/rancher/v2.x/en/istio/v2.5/setup/enable-istio-in-cluster/#selectors-scrape-configs
Location: selectors-scrape-configs section
Description: listed options are option 1 and option 3, option 2 is missing. I doubt that there is actually only 2 options, since variable 'ingnoreNamspaceSelectors' is a boolean type, it has only 2 possible values: true or false. Besides this problem, the organization of this article can be improved as well.

Update:
It seems like the description above is somewhat incorrect. After carefully reviewed the documentation yesterday, here is my suggestion on how to reorganize this part (and this is what I did in Rancher Chinese doc):
Selectors & Scrape Configs
The effect of ingnoreNamspaceSelectors parameter values on the monitoring range.
ingnoreNamspaceSelectors is a boolean type.
the default value of  ingnoreNamspaceSelectors is false.
when you set its value to true, you can monitor specific namespaces directly, or monitor  across namespaces with some twists.
when you set its value to false, you can monitor  across namespaces.
See sections below for detailed instruction.
Set ingnoreNamspaceSelectors to True.
monitoring specific namespaces
// insert structions here
monitoring accross namespaces
// insert structions here
Set ingnoreNamspaceSelectors to False
// insert structions here
Additional Scrape Config:
// insert structions here
You can definitely try other structures, but I find structuring in this way works the best for Chinese users. Hope you can fix this soon, since the most recently published docs with this part is really confusing, it took me hours to figure out what is wrong, why is it wrong and how to restructure it. Thanks!

This page became harder to read because there started to be a lot more options for Istio configuration. It starts to be so much information that it overwhelms the setup guide.
I think the best solution is to create a new section just for configuration options. I created a landing page for the config options that looks like this:
Configuration Options

Egress Support
Enabling Automatic Sidecar Injection
Overlay File
Selectors and Scrape Configs
Enable Istio with Pod Security Policies
Additional Steps for Installing Istio on an RKE2 Cluster
Additional Steps for Canal Network Plug-in with Project Network Isolation

Egress Support
By default the Egress gateway is disabled, but can be enabled on install or upgrade through the values.yaml or via the overlay file.
Enabling Automatic Sidecar Injection
Automatic sidecar injection is disabled by default. To enable this, set the sidecarInjectorWebhook.enableNamespacesByDefault=true in the values.yaml on install or upgrade. This automatically enables Istio sidecar injection into all new namespaces that are deployed.
Overlay File
An Overlay File is designed to support extensive configuration of your Istio installation. It allows you to make changes to any values available in the IstioOperator API. This will ensure you can customize the default installation to fit any scenario.
The Overlay File will add configuration on top of the default installation that is provided from the Istio chart installation. This means you do not need to redefine the components that already defined for installation.
For more information on Overlay Files, refer to the Istio documentation.
Selectors and Scrape Configs
The Monitoring app sets prometheus.prometheusSpec.ignoreNamespaceSelectors=false which enables monitoring across all namespaces by default. This ensures you can view traffic, metrics and graphs for resources deployed in a namespace with istio-injection=enabled label.
If you would like to limit Prometheus to specific namespaces, set prometheus.prometheusSpec.ignoreNamespaceSelectors=true. Once you do this, you will need to add additional configuration to continue to monitor your resources.
For details, refer to this section.
Enable Istio with Pod Security Policies
Refer to this section.
Additional Steps for Installing Istio on an RKE2 Cluster
Refer to this section.
Additional Steps for Canal Network Plug-in with Project Network Isolation
Refer to this section.

This page became harder to read because there started to be a lot more options for Istio configuration. It starts to be so much information that it overwhelms the setup guide.
I think the best solution is to create a new section just for configuration options. I created a landing page for the config options that looks like this:
Configuration Options

Egress Support
Enabling Automatic Sidecar Injection
Overlay File
Selectors and Scrape Configs
Enable Istio with Pod Security Policies
Additional Steps for Installing Istio on an RKE2 Cluster
Additional Steps for Canal Network Plug-in with Project Network Isolation

Egress Support
By default the Egress gateway is disabled, but can be enabled on install or upgrade through the values.yaml or via the overlay file.
Enabling Automatic Sidecar Injection
Automatic sidecar injection is disabled by default. To enable this, set the sidecarInjectorWebhook.enableNamespacesByDefault=true in the values.yaml on install or upgrade. This automatically enables Istio sidecar injection into all new namespaces that are deployed.
Overlay File
An Overlay File is designed to support extensive configuration of your Istio installation. It allows you to make changes to any values available in the IstioOperator API. This will ensure you can customize the default installation to fit any scenario.
The Overlay File will add configuration on top of the default installation that is provided from the Istio chart installation. This means you do not need to redefine the components that already defined for installation.
For more information on Overlay Files, refer to the Istio documentation.
Selectors and Scrape Configs
The Monitoring app sets prometheus.prometheusSpec.ignoreNamespaceSelectors=false which enables monitoring across all namespaces by default. This ensures you can view traffic, metrics and graphs for resources deployed in a namespace with istio-injection=enabled label.
If you would like to limit Prometheus to specific namespaces, set prometheus.prometheusSpec.ignoreNamespaceSelectors=true. Once you do this, you will need to add additional configuration to continue to monitor your resources.
For details, refer to this section.
Enable Istio with Pod Security Policies
Refer to this section.
Additional Steps for Installing Istio on an RKE2 Cluster
Refer to this section.
Additional Steps for Canal Network Plug-in with Project Network Isolation
Refer to this section.

Cool, thanks for the update.

Cool, thanks for the update.


Slinky prices do not work on devnet

Hello @alex-nax ,
When reporting an issue, please be more specific what is not working and how are you determining it's not working.
By the looks of it, the price data is on chain:
root@devnet-validator-0-0:/# wardend q oracle currency-pairs
currency_pairs:
- Base: AAVE
  Quote: USD
- Base: ADA
  Quote: USD
- Base: ATOM
  Quote: USD
- Base: BTC
  Quote: USD
- Base: ETH
  Quote: USD
- Base: USDT
  Quote: USD
root@devnet-validator-0-0:/# wardend q oracle price AAVE USD
decimals: "8"
id: "0"
nonce: "47601"
price:
  block_height: "47610"
  block_timestamp: "2024-09-16T09:34:30.961777171Z"
  price: "14157415741"
root@devnet-validator-0-0:/# wardend q oracle price ATOM USD
decimals: "9"
id: "2"
nonce: "47602"
price:
  block_height: "47611"
  block_timestamp: "2024-09-16T09:34:36.393721087Z"
  price: "4012401240"


fixes blocking tab typo

Fixes issue linked in https://github.com/flucoma/flucoma-max/issues/335.

thanks for the fix @jamesb93 !


Missing sample database

The "Setting up" instructions instruct to import "the sample database" but I'm not able to find this database anywhere from the project or the composer dependencies. Also searching with the table names, I cannot find any schema definitions for the project.
Could you clarify how to get started with the platform?

Hi @ahukkanen . I've added the sample database into src/Database/schema.sql
Although I believe the base of the code is quite adaptable, it is very likely that it requires some modification to work in different contexts.

Many thanks!


fix(interactive): fix parallel scan in GIE

Committed-by: bingqing.lbq from Dev container

What do these changes do?

As titled.
Related issue number

Fixes

Codecov Report

Merging #3317 (8085661) into main (4d3a83e) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #3317   +/-   ##
=======================================
  Coverage   41.39%   41.39%
=======================================
  Files         107      107
  Lines       11203    11203
=======================================
  Hits         4637     4637
  Misses       6566     6566

Continue to review full report in Codecov by Sentry.

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


[Android] Target SDK Version

Google is now requiring that existing apps use a targetSDKVersion of 30 by November 1, 2022, and 31 by November 1, 2023. (see https://support.google.com/googleplay/android-developer/answer/11926878). There is a minSdkVersion property we can use in our build settings, but when I tried targetSdkVersion, it seemed to be ignored. Could this be added and used?
Failing that, could the next release set the target SDK to 31?
Thanks!

New build is up. If anyone up to it, I would love some help testing.

Does this version update Google Admob SDK to 20.6.0 or higher? This is needed to fulfill policy updates around children and transmitting identifiers recently announced by Google Play.

Thanks Vlad. I'm back from holiday and have started testing, on my devices it behaves as usual and I'll now publish a build to Google and see if it resolves the issues with transmitting identifiers.
The app print out the AdMob plugin version when initialized, but the SDK version is 0. I assume that is supposed to show the AdMob SDK version (i.e. 20.6.0) which would be helpful to know.
plugin.admob: 1.3.0 (SDK: 0)
Note: If using mediation via AdMob you can now update to the latest plugin versions for ad networks (e.g. Unity: https://developers.google.com/admob/android/mediation/unity)

Great, I'll check it out next week when back in the office
On Sat, May 7, 2022, 06:28 Vlad Svoka @.***> wrote:

New build is up. If anyone up to it, I would love some help testing.
—
Reply to this email directly, view it on GitHub
https://github.com/coronalabs/corona/issues/376#issuecomment-1120131352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKKSVARUPCR4ZBCFU6MD4TVIXWM7ANCNFSM5S2QJ23A
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Update Readme.md

The screenshots need to be updated.

Yeah, you are right, let me assign you for this.


SDK Review Step: Cadl

The purpose of this Epic is to define the gaps on the SDK Review process inside the Azure SDK Release process affected by Cadl.
First of, how is Cadl affecting SDK? Is it?

Here is the GitHub issue for Release Planner Beta V2 SDK Review - https://github.com/Azure/azure-sdk-tools/issues/4599

I place the milestone to be '2023-01'. This could be closed when Release Planner can cover both Data Plane and Management Plane SDK release. Notification and dashboard requirements can be tracked with separate epics.

This GitHub issue is related as the Intro Meeting is recommended for new services or new products (with new initial APIs that will have new initial client libraries) that will be using Cadl + DPG.   https://github.com/Azure/azure-sdk-tools/issues/4598


Cannot bind since button is greyed out

Description of problem:
@Koenkk
I created a group of 2 ikea light which I want to bind to the ikea witch (tadfri on/off) but the bind button is "greyed out". I did unbind it from the default group (went ok). But when I want to bind the switch to the group (on/off option) I can't select the blue button.

Zigbee2mqtt add-on version (if edge, please report commit hash):
Current version: 1.18.1-2

Your entire configuration from the frontend (with sensitive fields redacted):
data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
serial:
  port: /dev/ttyUSB1
advanced:
  log_level: warn
  pan_id: 6753
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  master: 'pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777'
  slave: 'tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5'
  options: '-d -d'
  log: false

Running platform (details from Suypervisor > System)

core-2021.3.4
supervisor-2021.03.6
Debian GNU/Linux 10 (buster)
Docker versie 20.10.5

Your logs from Home Assistant Supervisor
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.check] System checks complete
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
21-03-21 13:43:16 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
21-03-21 13:45:50 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
21-03-21 14:06:32 INFO (MainThread) [supervisor.host.info] Updating local host information
21-03-21 14:06:32 INFO (MainThread) [supervisor.host.services] Updating service information
21-03-21 14:06:32 INFO (MainThread) [supervisor.host.network] Updating local network information
21-03-21 14:06:39 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
21-03-21 14:06:39 INFO (MainThread) [supervisor.host] Host information reload complete

and mqtt

Error Nothing to bind from 'Wc schakelaar' to 'Coordinator'
Error Nothing to bind

Please move this to https://github.com/Koenkk/zigbee2mqtt/issues


Error: getaddrinfo ENOTFOUND all the time after enter a wrong host and then a valid host

If I change the host to a wrong host, it shows this error "Error: getaddrinfo ENOTFOUND" which is ok, but after I change the connection to a valid host, I continues showing me the same error, mysql cann't recover and connect well again :cry: , somebody would help me please? I can't get why this happens,
the all error is:
Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:37:11)
at Object.onanswer [as oncomplete] (dns.js:124:16)

It seems like it start to fail only with wrong host name, because with ip adress is ok all the time, having the same test cases.

I mean, DNS resolution is done by Node.js itself, and we don't do anything but pass your hostname down into Node.js network functions to create a socket.
Can you tell me what the output of the following command is (replacing "test.local" with your hostname you are getting ENOTFOUND for)?
$ node -pe 'require("dns").lookup("test.local",function(){console.dir(arguments)})'

@dougwilson thanks for helping me, I having this output
{ callback: { [Function: asyncCallback] immediately: true },
  family: 0,
  hostname: 'test.local',
  oncomplete: [Function: onlookup] }
{ '0':
   { [Error: getaddrinfo ENOTFOUND test.local]
     code: 'ENOTFOUND',
     errno: 'ENOTFOUND',
     syscall: 'getaddrinfo',
     hostname: 'test.local' } }

Hi @zilev , you need to replace "test.local" with your hostname you are getting ENOTFOUND for. Are you saying that you are getting ENOTFOUND for "localhost"?

yeah I have ENOTFOUND error for localhost, but not exactly when host name is wrong, as I described before, following these steps:

Enter well host name
Enter a wrong host name (here shows ENOTFOUND error )
Enter well host name (continues showing ENOTFOUND error) --> here is the problem shouldn't continue showing that error, only if I restart the server the error disapears.
But this happens only for host name, if I put ip address, everything is ok

Hm, I'm not sure, and unable to reproduce locally based on what you said. All we do is take whatever you typed in and pass it to the Node.js core net.createConnection function, and we don't do any error caching. There is a possibility that it's a bug in the version of Node.js you are using. What version are you using?

v0.12.7

Hm, I'm still not able to reproduce. Can you try it with Node.js 0.10.40 to see if it goes away? If it's still there on 0.10.40, I think that would eliminate Node.js versions being different. It could also be our network/OS? I'm using Windows 7.

my version node is v0.10.36, sorry my mistake, I'm using meteorjs which uses that version and cann't be changed, I'm using ubuntu 14.04

I'm going to close this since I haven't been able to repro and, in the end, these errors come from Node.js core that we just surface through the error callbacks.


119 mainnets are failing with testnet

Description

[x] Change LUNA host to accept requests by network
[x] Change BCH host to accept requests by network
[x] Change BTC host to accept requests by network
[x] Change ETH host to accept requests by network
[x] Change XMR host to accept requests by network

Also done:

Change BCH main service name from bitcoincore to bitcoinabc
Add logger for admin requests in scripts/endpoints.py
Increase the max complexity by 1 (script needed)
Update getBlockByHash and getBlockByNumber schemas
Fix unused LUNA and BCH method from handler.py
Remove hardcoded coins

Fixes #119 #120  (issue)
Dependencies (if any)

Type of change

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

How Has This Been Tested?

Related PR or Docs PR

Docs PR related #
Other PR related #
Good practices to consider

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@bridgedragon Before merging this PR, can you test it on the server?
I suggest to use the new server. I've fixed some path bugs in the docker volumes of Bitcoin. This could break the synced volumes


suggest winning move

follow Bouton's Theorem proof from Ferguson:

Naive: (only considers standard rules)

if there is a winning move
-- unpack the integer array into a vectorized version of the binary representations, where each binary number is a row
-- bitwise_xor on each column, from left to right, until the first column where bitwise_xor returns 1
--- choose any row with a '1' in that column and change it to a zero
--- convert back to integer array to represent the piles

np.unpackbits will do this if each integer is stored in its own array and axis=1 as in the example here https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.unpackbits.html
To determine first column with an odd numbers of 1s....


[#156996834] Allow define post raw syslog config

What?
We want to be able to add some raw config at the end of the rsyslog config
to add a temporary forwarding target.
Here we add an option to allow define some raw rsyslog config that would
be added at the end of the configuration.
We also catchup with the upstream https://github.com/cloudfoundry/syslog-release/tree/develop with a simple merge. You only need to review the commits after the merge.
Who to review?
Review as part of https://github.com/alphagov/paas-bootstrap/pull/163
Who?
Anyone but @keymon or @bandesz

Sorry, I opened this PR by accident. Was meant to be done in our fork.


Minor error in example code for 'use-spans-for-inline-elements'

In the example code given for highlighting 'hate' text, the supplied colon in the code is omitted.

Top 3 things cats hate

should really be:

Top 3 things cats hate:

Actually, now that I've passed that example, it appears it should really be:

Top 3 things cats hate:

Confirmed, thanks for reporting! :)
This should probably have the labels Easy, Help Wanted & Confirmed(?)
Btw, who can I talk to to join the issue moderators?

I'm new to helping out at FreeCodeCamp, but this seems easy and I"ll take it :)

@NolanChan Great!
Check out the contributing guidelines, they walk you through the process to fork, commit the change and submit a pull request. If you need more help, head to the FreeCodeCamp/HelpContributors chat room! :)

Hi @blackrat , which code challenge had this mistake?

Hi @NolanChan. It's in the first set of html code exercises. The URL for the page is http://www.freecodecamp.com/challenges/use-spans-for-inline-elements

I am trying to edit my code but when I tap on Things cat love, the cursor is at "Th"ings and then it moves to the next line and it is not going ahead with the arrow keys on the keyboard as well.
Is anyone facing this issue too?


Feat: Add phenotypes tab on gene summary page

As discussed with @cybersiddhu there needs to be a tab that lets users browse the phenotypes for a given gene, similar to how the legacy dictyBase website did.

The screenshot shown above is taken from http://dictybase.org/gene/DDB_G0282853/phenotypes. As shown, the website uses a tab that the user can click which will display table with the information. The new website should have a similar feature on the /gene/:gene page with a tab to access the phenotypes information for a given gene.

Make sure to decide on a router path, make sure it's not too much nested.

Got it, I'll try to keep it simple but also make it somewhat descriptive and show you the mock-ups.


Nominatim instead of Mapbox geocoder

It looks like the current place search box is powered by Mapbox geocoding service, which according to this page requires a Mapbox plan subscription.
Can we achieve the same functionalities with Nominatim?

Related to #51

We can look at this. HOT also has a Mapbox account that we'll want to switch to anyways. Right now we're just using a dev Devseed account.

Cool - do you know who's the contact person for that account? If it's @wonderchook I'll coordinate with her to migrate to HOT's sysadmin.
I think it would still be good to have the option of nominatim, especially for the packaged version so that anyone installing OAM is not tied to having a Mapbox account.
Maybe both and one can decide?

Since we're using mapbox.js and layers hosted on Mapbox for the map, there's already a Mapbox dependency that goes deeper than just geocoder.  (Also, we're using the mapbox.places level of the geocoder API, which is free with any Mapbox plan.)


Clarification for GRIST_DATA_DIR needed. Overrides /persist/docs

After losing all of our grist docs in our self-hosted instance, we found out that setting GRIST_DATA_DIR overrides what may be the default data directory /persist. The GRIST_DATA_DIR variable name may be self-explanatory, but I guess what tripped us up was its description:

directory in which to store document caches.

Thinking this was for caching, we just set it to /var/grist/ and deployed, while only persisting /persist. I think this doesn't store caches, it stores the grist files themselves... correct?
https://support.getgrist.com/self-managed/ should perhaps reference GRIST_DATA_DIR instead of /persist or the relationship between both should be mentioned.

@cgalo5758 I'm very sorry you lost your docs!
I can see how the cache language is confusing. If you have external document snapshots set up, then the definitive version of the document is what is stored in S3 (or an S3-compatible store), and we think of the document on the file system as a cache. But without snapshots it is the definitive version, and the language is confusing.
I would welcome an improvement to that language that works for you at https://github.com/gristlabs/grist-help

@cgalo5758 I think GRIST_DATA_DIR is a bit of an advanced setting that should mostly be left alone. I opted to document it better in #945 but I don't think it even deserves mention in the self-managed docs.
Frankly, I'm of half a mind to just completely deprecate this variable. I can't think of a good situation in which you would want to store the Grist document files in a completely different location than general Grist persistent storage.

@jordigh Agreed! No need to add it to the self-hosting docs.
I gotta say, it would be nice if default values were added to the environment variables table. This may have prevented me from doing this mistake 😅.

Frankly, I'm of half a mind to just completely deprecate this variable. I can't think of a good situation in which you would want to store the Grist document files in a completely different location than general Grist persistent storage.

Yeah. I can't think of anything either, but I believe it is common practice with self-hosted software. Not sure if somebody in the future would open up an issue or a PR to add the data dir option again if you were to remove it 🤷


Arkansas: 2016 polling locations missing

Edit: Updated to be more accurate
data/Arkansas/README.md indicates that Arkansas should have data for 2016, but there is no such file. If you have that data available, it could be uploaded; if that data is not available, I'd be willing to make a fork and a PR that updates your documentation appropriately.
Thanks to you and your team for all the amazing effort that went into this.

Thank you for flagging this. I am going to update the status file.
We were unable to get this data from the Secretary of State's office in Arkansas (they do not have these records). We worked with a third party to acquire some of the historical data here but unfortunately the data we received for 2016 had null values for nearly all the precincts so we don't currently have any good source of data for 2016.
The only option remaining is to go to each county and request this data, this is roughly 75 counties. I don't think we have the bandwidth to pursue this at the moment but we would really appreciate any assistance that you or your team might be able to provide with this.

That absolutely makes sense! Sorry to hear that the data isn't recorded/available at the Secretary of State level.
A minimal fix for this would definitely just be an update to the data/Arkansas/README.md file. Let me know if your project is accepting PR's from Forks, and I'd be happy to take a stab at the documentation updates 😄

The README.md and manifest.yaml for AK has been updated to accurately reflect the current status:
https://github.com/PublicI/us-polling-places/tree/update-2020/data/arkansas

@Dtphelan1 (Of-course PR's are always welcome!)


Update futures margins

Kudos to @gsalaz98 for this awesome work!
Description

Update future margins data.
Related Issue

N/A
Motivation and Context

Better and updated margins improves futures backtesting  modelling and behavior.
Requires Documentation Change

N/A
How Has This Been Tested?

N/A
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Known issues for posterity:
1 - These are the margins of the first contract on-chain - at least a month out. The real margins approaching expiration are much lower. Including every single day's update is a lot of unnecessary data that doesn't improve the platform much.
2 - LEAN margin modeling for these contracts is a large approximation and should actually be per contract not a fixed number for all contracts. Rewrite needed to move these into an algorithm/approximation based on the SPAN risk formula.
That said -- its still a large improvement with many new, previously unmodelled contracts added so will merge as is and plan for rewrite of futures margins at a later date.


Proposal: Either related fork OR: please rename to 'generator-jhipster-quarkus-dm'

First a big thank you, @dmadunic for your work here!
As a feature request, I wish you could either rename your project to generator-jhipster-quarkus-dm for full naming consistency, or make again a fork from https://github.com/jhipster/generator-jhipster-quarkus (still broken), replace it with your code, make a pull request and take the bug bounty :)
Whatever you prefer - thanks for your valuable contribution!

Thanks very much 🙂

Thanks very much 🙂

Thanks very much 🙂

@karstengresch, I am not sure what doesn't work for you on the main project. It would be helpful if you can create an issue against the https://github.com/jhipster/generator-jhipster-quarkus project with reproducible steps.


added icon in form validation in #22762

added form validation icon mention in #22762

can any one let me know what is the right way for this Avoid qualifying class selectors with an element. validation issue?

Doesn't this work?
element {
  .class {
  }
}

@mdo: what do we do with this? I think we better drop this from a quick look...

New PR at #26824.


CHANGE COLOR OF TEXT

Description
Is your feature request related to a problem? Please describe.
The text in the pic is white
Describe the solution you'd like
it could be more attractive if it is black

Additional Information
Context
Provide any additional context or information that helps explain the feature request.
Potential Implementation (optional)
If you have any ideas or suggestions on how the feature could be implemented, please share them here.
Screenshots or Mockups (optional)
If applicable, include any screenshots, mockups, or visual representations of the requested feature.
Priority (optional)
Please indicate the priority level of this feature request (e.g., High, Medium, Low).
Additional Notes (optional)
Add any other notes or comments about the feature request here.

hello i would like to work on the issue could you please assign it to me

Hii @akshitagupta15june , please assign me this issue under GSSOC'23.

Hello @akshitagupta15june  i am also a GSSoC contributor and i opened this issue first so kindly search for another this is mine issue...

Hello @Gautam-10137  i am also a GSSoC contributor and i opened this issue first so kindly search for another this is mine issue...

Hello @akshitagupta15june please assign this issue to me as I opened this issue first....


Export for transactions data

For accounting it would be nice to export the transactions in CSV or other format, so that it can be imported into other tools.
That data should contain the transaction ID, amount, confirmation date and labels.

Have you tried the transactions CSV download? (down arrow icon next the transaction count on the Transactions tab).

+1 in making this easier to find. I had no idea that was clickable and with a move to multi-sig this kind of thing is mandatory for tax treatment as none of the tax software seems to support multi-sig properly.


Don't allow Sort in if branches

Codecov Report

Merging #290 (0634c19) into main (3c15ce5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #290   +/-   ##
=======================================
  Coverage   58.22%   58.22%
=======================================
  Files          30       30
  Lines         936      936
  Branches       54       54
=======================================
  Hits          545      545
  Misses        391      391

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 3c15ce5...0634c19. Read the comment docs.


clearMemoryCache not available on page object

page.clearMemoryCache() should be available so the cached resources could be emptied. Please add 'clearMemoryCache' to the page methods.

Read https://github.com/amir20/phantomjs-node/search?q=clearMemoryCache&type=Issues&utf8=✓

PR would be appreciated!

Why was this closed?


6.0.3 Fatal Error Loading Plugin

From skvevr.log:
checking plugin C:\Program Files (x86)\Steam\steamapps\common\SkyrimVR\Data\SKSE\Plugins\\po3_SpellPerkItemDistributor.dll
plugin C:\Program Files (x86)\Steam\steamapps\common\SkyrimVR\Data\SKSE\Plugins\\po3_SpellPerkItemDistributor.dll (00000001 powerofthree's Spell Perk Distributor 00000005) disabled, fatal error occurred while loading plugin (handle 15)

Downgrading to <IP_ADDRESS> stopped this fatal error for me. I assume it's a mod conflict since I haven't seen other reports. Is there anything I should look for specifically, or an easy way to share my mod list from Vortex? Also, I always remove the PDB before installing. I'm not sure if keeping it would help here.
Probably relevant: I got the same error with the Papyrus Extender VR 5.3.0, and downgrading also helped with that. I've opened a separate issue for that here.

Requires VR address library update per PE linked issue.


[harfbuzz] Disable system package chafa

Fix https://github.com/microsoft/vcpkg/issues/36401

As an optional system package chafa and the version has minimum restrictions, we can temporarily disable this system package until the port is added and rely on it again.

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

Related upstream code : https://github.com/harfbuzz/harfbuzz/blob/2da79f70a1d562d883bdde5b74f6603374fb7023/util/meson.build#L29
if conf.get('HAVE_GLIB', 0) == 1
  if conf.get('HAVE_CAIRO', 0) == 1
    hb_view = executable('hb-view', hb_view_sources,
      cpp_args: cpp_args,
      include_directories: [incconfig, incsrc],
      dependencies: [util_deps, chafa_dep],
      link_with: [libharfbuzz, libharfbuzz_cairo],
      install: true,
    )

Thanks!
In the future we should probably make this unconditional but it follows the code you quoted.


Feature #521 develop sonarqube_properties

Pull Request Testing
This PR updates the sonarqube.xml workflow slightly. While the existing setup does produce a successful scan, it has fewer findings than the METviewer-6.0.0-beta3 scan run through ant. This updates sonar-project.properties settings and also copies the build directory out of the image rather than the dist directory.

[x] Describe testing already performed for these changes:

Manually ran GHA to scan this feature branch and inspected the findings here. The findings increase from 18 bugs, 2 vulnerabilities, 1.2K smells, and 25 security hotspots on develop to 23 bugs, 14 vulnerabilities, 1.4K smells, and 26 security hotspots on this feature branch.
So the result is changed. However, it does not match the ant-based scan of METviewer-6.0.0-beta3 with its 19 bugs, 90 vulnerabilities, 1.3k smells, and 25 hotspots.
I discussed with @TatianaBurek on Slack and she's happy with these property settings for now.

[x] Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Confirm the GHA sonarqube.yml workflow produces the results described above.

[x] Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
None needed.

[x] Do these changes include sufficient testing updates? [Yes]
None needed.

[x] Will this PR result in changes to the test suite? [No]
If yes, describe the new output and/or changes to the existing output:

[x] Do these changes introduce new SonarQube findings? [Yes]
If yes, please describe:
As expected, and described above.

[x] Please complete this pull request review by [Wed 4/24/24].

Pull Request Checklist
See the METplus Workflow for details.

[x] Review the source issue metadata (required labels, projects, and milestone).
[x] Complete the PR definition above.
[x] Ensure the PR title matches the feature or bugfix branch name.
[x] Define the PR metadata, as permissions allow.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes
[x] After submitting the PR, select the :gear: icon in the Development section of the right hand sidebar. Search for the issue that this PR will close and select it, if it is not already selected.
[ ] After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
[ ] Close the linked issue and delete your feature or bugfix branch from GitHub.

@TatianaBurek, FYI, I updated the properties file to exclude the test files with these lines:
sonar.exclusions=java/edu/ucar/metviewer/test/*,java/edu/ucar/metviewer/test/**/*
sonar.coverage.exclusions=java/edu/ucar/metviewer/test/*,java/edu/ucar/metviewer/test/**/*

That reduces the resulting findings for this PR...
FROM: 23/14/1.4k/26 bugs/vulnerabilities/smells/hotspots
TO: 19/14/1.3k/25 bugs/vulnerabilities/smells/hotspots


Test and fix missing titles. Fixes #784

Here is a quick test for #784 and fixes to a number of templates. Notes:

pages/legal.html, pages/security.html and pages/sponsors.html are missing titles at the moment but are essentially empty.
assert will stop at the first failure.

On legacy PyPI the legal link points to http://www.python.org/about/legal. If we have the text I can add it to this template or modify the code to redirect to the same URL.
Do we want to copy the text from https://pypi.python.org/security for security.html ?
sponsors.html contains the following comment
{# Note: The actual sponsors page for PyPI is defined in pypi-theme #}

Please advise how to proceed with this PR.
Regards,
@MrSenko

Hey @atodorov
What I would do for those three pages is just add a dummy title to them, something like {% block title %}Legal{% endblock %} for each one. That should get the tests passing, and then people can just fill in with the real title when the content for those pages get filled out (and this test will make sure they don't forget to do that if they delete the title block).

One small adjustment, and then looks good to me to merge. Thanks!

✨ Awesome 🍰


Adjust add environment operation info in readme

Motivation
Clear out that environment add does not creates an environment, just store the information about already created one locally
internal link
Checklist

[x] Docs have been updated (if applicable)
[x] Adjust Help string command

How to test
Just readme

Decide if this require a new minor version, or not.


extract-qt-installer hang on travis

Something between 64815b69f0eeb11e7d5bed87b1cb50beb90da604 (5/21/2018) and 4991cf60edfddcde8ffecd073ba25e3529bba451 (9/15/2018) in extract_qt_installer causes a hang on travis with Qt 5.9.7.
Here is a log with 4991cf60:
https://travis-ci.org/tsteven4/gpsbabel/jobs/450037144
This failure repeated a couple of times.
and here is a log with 64815b69:
https://travis-ci.org/tsteven4/gpsbabel/jobs/450043922

This problem first appeared in 044d4fe753a84be20f0cfc7d3ef9beb39d638542
Here is a log with 044d4fe7:
https://travis-ci.org/tsteven4/qtci/builds/450067060
and here is one with 2b25dc70ff3bc70cd549076b99ebd8b15a2e5a66
https://travis-ci.org/tsteven4/qtci/builds/450066124
The only things these branches have changes is .travis.yml and permissions on install_qt.

#13 appears to fix this issue.  note I am testing with qt 5.9.7, so perhaps #13 can claim a fix for 5.9.7, 5.10 and 5.11.
https://travis-ci.org/tsteven4/qtci/builds/450078446

I modified .travis.yml to run a more complete regression on install-qt here
https://github.com/benlau/qtci/compare/master...tsteven4:travis_matrix?expand=1
This https://travis-ci.org/tsteven4/qtci/builds/450089062 shows we don't hang with installers from
5.9.0, 5.91, 5.9.2, 5.9.3, 5.10.0
but we do hang with
5.9.4, 5.9.5, 5.9.6, 5.9.7, 5.10.1, 5.11.0, 5.11.1, 5.11.2
It would be nice to lower the timeout on travis so the failures didn't take so long.
I could submit this as a PR so we could improve regression coverage.

hi @tsteven4 ,
Sorry for late reply. Your .travis.yml looks good for me. (but Travis will cry). Please feel free to submit a PR to me. thx.