text:
kotlinx.serialization: Remove the need of @Contextual annotation on Id property

I'm sorry if this is a dupe, couldn't find anything about that in all the web (including docs and this repository). I guess this issue is with kMongo judging by the message of the exception.
I'm having this issue on collection.insertOne calls. My dependencies looks like this:
dependencies {
    implementation(kotlin("stdlib"))
    implementation("io.ktor:ktor-server-netty:1.4.1")
    implementation("io.ktor:ktor-serialization:1.4.1")
    implementation("com.google.firebase:firebase-admin:7.0.0")
    implementation("com.github.NathanPB:BootingBits:1.0-SNAPSHOT")
    implementation("org.litote.kmongo:kmongo-coroutine-serialization:4.1.2")
    implementation("org.slf4j:slf4j-simple:1.7.30")
}

and the class of the entity I'm trying to insert looks like this:
@Serializable
data class Tag (
    @SerialName("_id") @MongoId val id: Id<Tag>? = newId(),
    val displayName: String,
    val description: String? = null,
    val createdAt: Long = System.currentTimeMillis()
) {

    fun validate(): Boolean {
        return displayName.isNotEmpty()
    }

}

this is happening in any call like that:
runBlocking {
    collection.insertOne(Tag(displayName = "foobar"))
}

and generates the following (pretty long) stacktrace:
(dev.nathanpb.wmd classes are from my application)
Exception in thread "main" kotlinx.serialization.SerializationException: Class 'WrappedObjectId' is not registered for polymorphic serialization in the scope of 'Id'.
Mark the base class as 'sealed' or register the serializer explicitly.
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:103)
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:113)
	at kotlinx.serialization.PolymorphicSerializerKt.findPolymorphicSerializer(PolymorphicSerializer.kt:96)
	at kotlinx.serialization.internal.AbstractPolymorphicSerializer.serialize(AbstractPolymorphicSerializer.kt:32)
	at kotlinx.serialization.encoding.Encoder$DefaultImpls.encodeSerializableValue(Encoding.kt:281)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableValue(AbstractEncoder.kt:18)
	at kotlinx.serialization.encoding.Encoder$DefaultImpls.encodeNullableSerializableValue(Encoding.kt:301)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeNullableSerializableValue(AbstractEncoder.kt:18)
	at com.github.jershell.kbson.BsonEncoder.encodeNullableSerializableValue(BsonEncoder.kt:82)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeNullableSerializableElement(AbstractEncoder.kt:92)
	at dev.nathanpb.wmd.data.Tag.write$Self(Tag.kt:31)
	at dev.nathanpb.wmd.data.Tag$$serializer.serialize(Tag.kt)
	at dev.nathanpb.wmd.data.Tag$$serializer.serialize(Tag.kt:30)
	at kotlinx.serialization.encoding.Encoder$DefaultImpls.encodeSerializableValue(Encoding.kt:281)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableValue(AbstractEncoder.kt:18)
	at org.litote.kmongo.serialization.SerializationCodec.encode(SerializationCodec.kt:63)
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)
	at com.mongodb.internal.connection.SplittablePayload$WriteRequestEncoder.encode(SplittablePayload.java:200)
	at com.mongodb.internal.connection.SplittablePayload$WriteRequestEncoder.encode(SplittablePayload.java:187)
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)
	at com.mongodb.internal.connection.BsonWriterHelper.writeDocument(BsonWriterHelper.java:77)
	at com.mongodb.internal.connection.BsonWriterHelper.writePayload(BsonWriterHelper.java:59)
	at com.mongodb.internal.connection.CommandMessage.encodeMessageBodyWithMetadata(CommandMessage.java:162)
	at com.mongodb.internal.connection.RequestMessage.encode(RequestMessage.java:138)
	at com.mongodb.internal.connection.CommandMessage.encode(CommandMessage.java:59)
	at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceiveAsync(InternalStreamConnection.java:393)
	at com.mongodb.internal.connection.UsageTrackingInternalConnection.sendAndReceiveAsync(UsageTrackingInternalConnection.java:145)
	at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.sendAndReceiveAsync(DefaultConnectionPool.java:527)
	at com.mongodb.internal.connection.CommandProtocolImpl.executeAsync(CommandProtocolImpl.java:77)
	at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor.executeAsync(DefaultServer.java:273)
	at com.mongodb.internal.connection.DefaultServerConnection.executeProtocolAsync(DefaultServerConnection.java:218)
	at com.mongodb.internal.connection.DefaultServerConnection.commandAsync(DefaultServerConnection.java:135)
	at com.mongodb.internal.operation.MixedBulkWriteOperation.executeCommandAsync(MixedBulkWriteOperation.java:440)
	at com.mongodb.internal.operation.MixedBulkWriteOperation.executeBatchesAsync(MixedBulkWriteOperation.java:348)
	at com.mongodb.internal.operation.MixedBulkWriteOperation.access$1000(MixedBulkWriteOperation.java:76)
	at com.mongodb.internal.operation.MixedBulkWriteOperation$2$1.call(MixedBulkWriteOperation.java:228)
	at com.mongodb.internal.operation.OperationHelper.validateWriteRequests(OperationHelper.java:269)
	at com.mongodb.internal.operation.MixedBulkWriteOperation$2.call(MixedBulkWriteOperation.java:211)
	at com.mongodb.internal.operation.OperationHelper$9.onResult(OperationHelper.java:733)
	at com.mongodb.internal.operation.OperationHelper$9.onResult(OperationHelper.java:730)
	at com.mongodb.internal.connection.DefaultServer$1.onResult(DefaultServer.java:116)
	at com.mongodb.internal.connection.DefaultServer$1.onResult(DefaultServer.java:105)
	at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
	at com.mongodb.internal.connection.DefaultConnectionPool$2.onResult(DefaultConnectionPool.java:229)
	at com.mongodb.internal.connection.DefaultConnectionPool$2.onResult(DefaultConnectionPool.java:210)
	at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection$1.onResult(DefaultConnectionPool.java:447)
	at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection$1.onResult(DefaultConnectionPool.java:438)
	at com.mongodb.internal.connection.UsageTrackingInternalConnection$1.onResult(UsageTrackingInternalConnection.java:66)
	at com.mongodb.internal.connection.UsageTrackingInternalConnection$1.onResult(UsageTrackingInternalConnection.java:58)
	at com.mongodb.internal.connection.InternalStreamConnection$1$1.onResult(InternalStreamConnection.java:189)
	at com.mongodb.internal.connection.InternalStreamConnection$1$1.onResult(InternalStreamConnection.java:175)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer.completeConnectionDescriptionInitializationAsync(InternalStreamConnectionInitializer.java:215)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer.access$100(InternalStreamConnectionInitializer.java:44)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer$1.onResult(InternalStreamConnectionInitializer.java:83)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer$1.onResult(InternalStreamConnectionInitializer.java:76)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer$2.onResult(InternalStreamConnectionInitializer.java:195)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer$2.onResult(InternalStreamConnectionInitializer.java:176)
	at com.mongodb.internal.connection.CommandHelper$1.onResult(CommandHelper.java:59)
	at com.mongodb.internal.connection.CommandHelper$1.onResult(CommandHelper.java:53)
	at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:463)
	at com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:440)
	at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:745)
	at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:712)
	at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:582)
	at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:579)
	at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
	at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
	at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
	at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:568)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
	at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.read(AsynchronousSocketChannelStream.java:144)
	at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:118)
	at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:107)
	at com.mongodb.internal.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:579)
	at com.mongodb.internal.connection.InternalStreamConnection.access$1100(InternalStreamConnection.java:78)
	at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:702)
	at com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback.onResult(InternalStreamConnection.java:687)
	at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:582)
	at com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:579)
	at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250)
	at com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233)
	at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
	at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:568)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
	at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.read(AsynchronousSocketChannelStream.java:144)
	at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:118)
	at com.mongodb.internal.connection.AsynchronousChannelStream.readAsync(AsynchronousChannelStream.java:107)
	at com.mongodb.internal.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:579)
	at com.mongodb.internal.connection.InternalStreamConnection.access$1100(InternalStreamConnection.java:78)
	at com.mongodb.internal.connection.InternalStreamConnection$2.onResult(InternalStreamConnection.java:440)
	at com.mongodb.internal.connection.InternalStreamConnection$2.onResult(InternalStreamConnection.java:429)
	at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:48)
	at com.mongodb.internal.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:536)
	at com.mongodb.internal.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:533)
	at com.mongodb.internal.connection.AsynchronousChannelStream$1.completed(AsynchronousChannelStream.java:94)
	at com.mongodb.internal.connection.AsynchronousChannelStream$1.completed(AsynchronousChannelStream.java:88)
	at com.mongodb.internal.connection.AsynchronousChannelStream$2.completed(AsynchronousChannelStream.java:197)
	at com.mongodb.internal.connection.AsynchronousChannelStream$2.completed(AsynchronousChannelStream.java:191)
	at com.mongodb.internal.connection.AsynchronousChannelStream$AsyncWritableByteChannelAdapter$WriteCompletionHandler.completed(AsynchronousChannelStream.java:222)
	at com.mongodb.internal.connection.AsynchronousChannelStream$AsyncWritableByteChannelAdapter$WriteCompletionHandler.completed(AsynchronousChannelStream.java:213)
	at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
	at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implWrite(UnixAsynchronousSocketChannelImpl.java:752)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:382)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:399)
	at java.base/java.nio.channels.AsynchronousSocketChannel.write(AsynchronousSocketChannel.java:582)
	at com.mongodb.internal.connection.AsynchronousSocketChannelStream$AsynchronousSocketChannelAdapter.write(AsynchronousSocketChannelStream.java:177)
	at com.mongodb.internal.connection.AsynchronousChannelStream$AsyncWritableByteChannelAdapter.write(AsynchronousChannelStream.java:210)
	at com.mongodb.internal.connection.AsynchronousChannelStream.pipeOneBuffer(AsynchronousChannelStream.java:191)
	at com.mongodb.internal.connection.AsynchronousChannelStream.writeAsync(AsynchronousChannelStream.java:88)
	at com.mongodb.internal.connection.InternalStreamConnection.writeAsync(InternalStreamConnection.java:533)
	at com.mongodb.internal.connection.InternalStreamConnection.sendMessageAsync(InternalStreamConnection.java:529)
	at com.mongodb.internal.connection.InternalStreamConnection.sendCommandMessageAsync(InternalStreamConnection.java:429)
	at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceiveAsync(InternalStreamConnection.java:398)
	at com.mongodb.internal.connection.CommandHelper.executeCommandAsync(CommandHelper.java:52)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initializeConnectionDescriptionAsync(InternalStreamConnectionInitializer.java:175)
	at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initializeAsync(InternalStreamConnectionInitializer.java:70)
	at com.mongodb.internal.connection.InternalStreamConnection$1.completed(InternalStreamConnection.java:174)
	at com.mongodb.internal.connection.InternalStreamConnection$1.completed(InternalStreamConnection.java:171)
	at com.mongodb.internal.connection.AsynchronousSocketChannelStream$OpenCompletionHandler.completed(AsynchronousSocketChannelStream.java:115)
	at com.mongodb.internal.connection.AsynchronousSocketChannelStream$OpenCompletionHandler.completed(AsynchronousSocketChannelStream.java:100)
	at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishConnect(UnixAsynchronousSocketChannelImpl.java:285)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:200)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:215)
	at java.base/sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:306)
	at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)

@NathanPB do you follow this setup https://litote.org/kmongo/quick-start/#asynchronously-with-coroutines ?
Looks like you don't have the KMongo module registered - be sure to use a
mongo client coming from KMongo.createClient().coroutine

@zigzago yes, i followed these steps, I am using KMongo.createClient(). coroutine

I can reproduce the bug. This is a regression from kotlinx serialization upgrade. I work on it

Well in the end this is "normal". You just have to add a @Contextual annotation on the id property. I know this is not ideal but it is a current documented limitation of the implementation. I'm going to change the title of the issue then ;). See https://github.com/Litote/kmongo/commit/eea20053801fd737fa75876a5e070114bb60e78a for the unit test

Summary: now that the polymorphism strategy of koltinx.serialization seems to be stabilized, we need to register a dedicated polymorphism module for Id in order to avoid the need of @Contextual  annotation

Ok, I'll do that. Thanks for fast response

@zigzago sorry to come to this again, I tried the solution you suggested, it worked for kMongo functions (insertOne, find, etc), but it fails completely when used with kTor (ex. context.respond(collection.find().toList())). Exactly the same exception
I looked at #218 that could be heavily related but it seems that it was fixed long ago, and I'm using the latest version available

Look at the doc - it should work: https://litote.org/kmongo/object-mapping/#id-json-kotlinx-serialization

@NathanPB
I have the KMongo, Ktor, Kotlinx.serialization and Kotlinx.Coroutines stack as well.
Do you have the
implementation("org.litote.kmongo:kmongo-id-serialization:4.1.3")
dependency?
and do you have the module registered:
install(ContentNegotiation) {
        json(
            Json { serializersModule = IdKotlinXSerializationModule  },
            contentType = ContentType.Application.Json
        )

    }

authors: Kelsinga NathanPB zigzago

repo: Litote/kmongo


text:
Question: Page dewarping algorithm

Hey there,
thanks for creating this awesome app. Pretty much the lightest and greatest one I found. Just have a short question: Would you be interested in implementing a page dewarping algorithm (maybe as an optional step)? I think this would be a nice improvement.
Here is a great write-up on how to achieve a decent automatic dewarp via text line detection:
https://mzucker.github.io/2016/08/15/page-dewarping.html

If so I could try to support you with that, but if you're not interested, I wouldn't waste time trying to submit a PR...
Best,
sandreas

to fix your trouble check this solution click
maybe this will solve your problem.

source: gharchive/issue

repo: LittleTrickster/PDF-Doc-Scan

license_type: permissive

license_source: github-api


text:
Extract and document potentially sensitive links to ensure safely making the repo public

[x] #130
[ ] #129

The remaining task here is documentation. As best I can glean, @AoifeHughes and I have sorted the purging needed, just thought it best to document that to help prevent it happening again. That can be treated as another ticket with less urgency if easiest to close this first.

repo: Living-with-machines/lwmdb

license: MIT


text:
QQ频道机器人，私信无反应

以下两段代码均handle到但是不回消息，测试过/echo，机器人可以回消息
11-06 22:45:49 [SUCCESS] nonebot | QQ XXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXX: [Text(type='text', data={'text': '/帮助'})]
11-06 22:45:49 [DEBUG] nonebot | Checking for matchers in priority 1...
11-06 22:45:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18)
11-06 22:45:49 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18)
11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_)
11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=_) skipped
11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 22:45:49 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) running complete
11-06 22:45:49 [DEBUG] nonebot | Stop event propagation
11-06 22:45:49 [DEBUG] nonebot | Checking for matchers completed

11-06 23:20:34 [SUCCESS] nonebot | QQ XXXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXXX: [Text(type='text', data={'text': '/登录'})]
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 1...
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 4...
11-06 23:20:34 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25)
11-06 23:20:34 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25)
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=handle_first_receive)
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=handle_first_receive) skipped
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 23:20:34 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) running complete
11-06 23:20:34 [DEBUG] nonebot | Stop event propagation
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers completed

不太清楚，我这边是正常的。正常来说应该是没什么问题的，这也不是主动私聊

以下两段代码均handle到但是不回消息，测试过/echo，机器人可以回消息
11-06 22:45:49 [SUCCESS] nonebot | QQ XXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXX: [Text(type='text', data={'text': '/帮助'})]
11-06 22:45:49 [DEBUG] nonebot | Checking for matchers in priority 1...
11-06 22:45:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18)
11-06 22:45:49 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18)
11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_)
11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=_) skipped
11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 22:45:49 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) running complete
11-06 22:45:49 [DEBUG] nonebot | Stop event propagation
11-06 22:45:49 [DEBUG] nonebot | Checking for matchers completed

11-06 23:20:34 [SUCCESS] nonebot | QQ XXXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXXX: [Text(type='text', data={'text': '/登录'})]
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 1...
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 4...
11-06 23:20:34 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25)
11-06 23:20:34 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25)
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=handle_first_receive)
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=handle_first_receive) skipped
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 23:20:34 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) running complete
11-06 23:20:34 [DEBUG] nonebot | Stop event propagation
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers completed

以下两段代码均handle到但是不回消息，测试过/echo，机器人可以回消息
11-06 22:45:49 [SUCCESS] nonebot | QQ XXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXX: [Text(type='text', data={'text': '/帮助'})]
11-06 22:45:49 [DEBUG] nonebot | Checking for matchers in priority 1...
11-06 22:45:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18)
11-06 22:45:49 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18)
11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_)
11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=_) skipped
11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 22:45:49 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) running complete
11-06 22:45:49 [DEBUG] nonebot | Stop event propagation
11-06 22:45:49 [DEBUG] nonebot | Checking for matchers completed

11-06 23:20:34 [SUCCESS] nonebot | QQ XXXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXXX: [Text(type='text', data={'text': '/登录'})]
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 1...
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 4...
11-06 23:20:34 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25)
11-06 23:20:34 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25)
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=handle_first_receive)
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=handle_first_receive) skipped
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),))
11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped
11-06 23:20:34 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) running complete
11-06 23:20:34 [DEBUG] nonebot | Stop event propagation
11-06 23:20:34 [DEBUG] nonebot | Checking for matchers completed

我也遇到了同样的问题，您后续有解决吗?

没解决。我猜可能是QQ频道的适配器更新1.0.0版本后更改了某些规范，mys插件没适配。若是改用QQ频道适配器的0.3.0版本，也许可以
---原始邮件---
发件人: @.>
发送时间: 2023年11月10日(周五) 上午9:15
收件人: @.>;
抄送: @.@.>;
主题: Re: [Ljzd-PRO/nonebot-plugin-mystool] QQ频道机器人，私信无反应 (Issue #210)
以下两段代码均handle到但是不回消息，测试过/echo，机器人可以回消息
11-06 22:45:49 [SUCCESS] nonebot | QQ XXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXX: [Text(type='text', data={'text': '/帮助'})] 11-06 22:45:49 [DEBUG] nonebot | Checking for matchers in priority 1... 11-06 22:45:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) 11-06 22:45:49 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) 11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=) 11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=) skipped 11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) 11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) skipped 11-06 22:45:49 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) running complete 11-06 22:45:49 [DEBUG] nonebot | Stop event propagation 11-06 22:45:49 [DEBUG] nonebot | Checking for matchers completed  11-06 23:20:34 [SUCCESS] nonebot | QQ XXXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXXX: [Text(type='text', data={'text': '/登录'})] 11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 1... 11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 4... 11-06 23:20:34 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) 11-06 23:20:34 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) 11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=handle_first_receive) 11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=handle_first_receive) skipped 11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) 11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) skipped 11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) 11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) skipped 11-06 23:20:34 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) running complete 11-06 23:20:34 [DEBUG] nonebot | Stop event propagation 11-06 23:20:34 [DEBUG] nonebot | Checking for matchers completed
以下两段代码均handle到但是不回消息，测试过/echo，机器人可以回消息
11-06 22:45:49 [SUCCESS] nonebot | QQ XXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXX: [Text(type='text', data={'text': '/帮助'})] 11-06 22:45:49 [DEBUG] nonebot | Checking for matchers in priority 1... 11-06 22:45:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) 11-06 22:45:49 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) 11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=) 11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=) skipped 11-06 22:45:49 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=key_getter)),)) 11-06 22:45:49 [DEBUG] nonebot | Handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) skipped 11-06 22:45:49 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help, lineno=18) running complete 11-06 22:45:49 [DEBUG] nonebot | Stop event propagation 11-06 22:45:49 [DEBUG] nonebot | Checking for matchers completed  11-06 23:20:34 [SUCCESS] nonebot | QQ XXXXXXXXX | [DIRECT_MESSAGE_CREATE]: Message XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX from XXXXXXXXXXX: [Text(type='text', data={'text': '/登录'})] 11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 1... 11-06 23:20:34 [DEBUG] nonebot | Checking for matchers in priority 4... 11-06 23:20:34 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) 11-06 23:20:34 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) 11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=handle_first_receive) 11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=handle_first_receive) skipped 11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) 11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) skipped 11-06 23:20:34 [DEBUG] nonebot | Running handler Dependent(call=, parameterless=(Depends(Dependent(call=key_getter)),)) 11-06 23:20:34 [DEBUG] nonebot | Handler Dependent(call=, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped 11-06 23:20:34 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.login, lineno=25) running complete 11-06 23:20:34 [DEBUG] nonebot | Stop event propagation 11-06 23:20:34 [DEBUG] nonebot | Checking for matchers completed
我也遇到了同样的问题，您后续有解决吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

原因即 #211 里那样。原本的 nonebot-adapter-qqguild 停止维护，迁移到了新的 nonebot-adapter-qq，现在新版本插件的依赖和导入已经改好了，nonebot机器人的配置仍然需要手动修改
https://github.com/Ljzd-PRO/nonebot-plugin-mystool/releases/tag/v1.4.0

authors: Ljzd-PRO TomIsFat byebaby

repo: Ljzd-PRO/nonebot-plugin-mystool


text:
🛑 invest is down

In 487f967, invest (https://blog-pos-17/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: invest is back up in 5e3973a.

repo: LloydGain/UppTIME


text:
🛑 invest is down

In c37a952, invest (https://blog-pos-17/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: invest is back up in b1f9f00.


text:
Horizontal scrolling

this project has the same bug as in this thread https://github.com/kristoferjoseph/flexboxgrid/issues/144

What do you suggest to solve the issue ?

I fixed this issue on my case by adding a padding to the Grid element as described at https://github.com/kristoferjoseph/flexboxgrid/issues/144#issuecomment-255513709

authors: LoicMahieu keul shprink

repo: LoicMahieu/react-styled-flexboxgrid

license: mit

license_source: bigquery


text:
win64  1.9.7.1002 运行报错

您好，使用win64版openresty出错，麻烦 请帮看下，多谢！
执行lua 脚本出错，提示无法创建文件  报错信息如下  :
[error] 2656#2796: *5345 CreateFile() "C:\ngx_openresty-1.9.7/html/test_lua" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /test_lua HTTP/1.1", host: "localhost"
系统：win10  64位

您好，能把配置文件贴一下吗？

感谢您的回复，已找到原因，是
location ~ .*.(js|css)?$ {
expires 1h;
}  引起的。
还有一个问题，就是在win7 64位里运行正常，但在win10 64位  执行 -t  或者 -s reload 、-s stop 只会出现一个一闪而过的弹框没任何效果。

为了搜索方便，麻烦 houhlin 新开一个 issue ？

好的，那个配置 感觉也很正常，但是会报上面的错误  是什么原因呢

跟这个没关系，麻烦贴一下全部的配置？

nginx.conf 文件：
#user  nobody;
worker_processes  2; #cpu cores
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
#pid        logs/nginx.pid;
worker_rlimit_nofile 6555;
events {
worker_connections  1024;
}
http {
include       mime.types;
default_type  application/octet-stream;
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 120;

#gzip model
gzip on;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';
access_log  logs/access.log  main;

lua_package_path "$prefix/?.luac;$prefix/?.lua;;";
include lua.conf;

}
lua.conf  文件：
server {
listen 80;
charset utf-8;
server_name localhost;
#index index.html index.htm ;
root html;
location / {
index  index.html index.htm;
}
location /test_lua {
	default_type 'text/html';
	lua_code_cache off; #close lua_code_cache
	content_by_lua 'ngx.say("Hello World")';
}

location /test02_lua {
	default_type 'text/html';
	lua_code_cache off;
	content_by_lua_file servers/lua/test01.lua; #lua file
}

location /lua_jit_version {
	default_type 'text/html';
	content_by_lua_file servers/lua/lua_jit_version.lua;
}

location ~ .*.(htm|html|gif|jpg|jpeg|png|bmp|swf|ioc|rar|zip|txt|flv|mid|doc|ppt|pdf|xls|mp3|wma)$ {
	expires 15d;
}
location ~ .*.(js|css)?$ {
	expires 1h;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
#    root           html;
#    fastcgi_pass   127.0.0.1:9000;
#    fastcgi_index  index.php;
#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
#    include        fastcgi_params;
#}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
#    deny  all;
#}

}
假如注释掉那一块就访问正常了

这是 location 的优先级问题，请多尝试，比如 把 location /test_lua 改成 location =  /test_lua ，看如何。

感谢，是这个原因引起的

authors: BloodyKnight houhlin zqzjz0911

repo: LomoX-Offical/nginx-openresty-windows


text:
🛑 jpvir is down

In 4910bb3, jpvir ($JPVIR) was down:

HTTP code: 0
Response time: 0 ms

Resolved: jpvir is back up in af6b263.

repo: LonelyJupiter/UPPTIME


text:
🛑 sggu is down

In a7e9aeb, sggu ($SGGU) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sggu is back up in 86c2e20.


text:
Create Bouncerball.js

java script project

Create Proper Description + Follow rules(fork+ star + follow)

Create Proper Description + Follow rules(fork+ star + follow)

i have already forked it and it's starred and i have followed it too.

source: gharchive/pull-request


text:
[Bug]: Abyss Watcher doesn't visually disappear after being used

Is there an existing issue for this?

[X] I have searched the existing issues

Description
The abyss watcher is still visually in the hotbar after teleporting until you attempt to interact with the slot.
To Reproduce

Use abyss watcher, you'll hear the breaking sound
Notice abyss watcher is still in the inventory, but unusable
Dropping it, or moving in/out of the inventory slot makes it disappear

Expected behavior
Abyss watcher visually disappears after breaking. Local void does this fine.
Mod Version
v3.1.1 or newer
Minecraft Version
1.20 or newer
Java Version
Java 18+
Fabric Version
No response
Relevant log output
No response
Anything else?
No response

I'm unable to reproduce this on both singleplayer & multiplayer.

repo: LordDeatHunter/FabricWaystones


text:
🛑 Ronz Amogus Bot Documentation is down

In d09b112, Ronz Amogus Bot Documentation (https://ronz-amogus.vercel.app) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ronz Amogus Bot Documentation is back up in 0109df3.

repo: LordRonz/status


text:
🛑 Pog Bot is down

In 9aa4728, Pog Bot ($BOT_PING_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pog Bot is back up in 64e127a.


text:
Can lax.pow Improve Performance

Hi all,
The exponentiation is a considerable cost of the basis generation. We may be able to curb that by incorporating one of lax.interger_pow or lax.pow instead of using ** which is treated as np.power.

So there have been some interesting developments regarding this. Firstly, lax.integer_pow is not jit comilable. This is not surprising since the source code uses a while loop. The algorithm does appear to be faster than lax.pow so it may be worth investing some time in making this optimisation. However, looking at the algorithm it does not look like I will be able to make it compile without sacrificing the things that make it fast.

Secondly, using lax.pow instead of ** will make a difference I believe because it will kill convert_dtype in the jaxpr.

I don’t think we are especially worried about fast compiled basis generation, and I am surprised if jax and lax elementary arithmetic options make much of a difference?
———————————————
Dr Benjamin Pope (he/him)
Lecturer in Astrophysics
University of Queensland
benjaminpope.github.io

From: Jordan Dennis @.>
Sent: Wednesday, January 4, 2023 2:04:51 PM
To: LouisDesdoigts/dLux @.>
Cc: Subscribed @.***>
Subject: Re: [LouisDesdoigts/dLux] Can lax.pow Improve Performance (Issue #169)
So I have implemented this and it seemed to make a small difference (particularly outside of compilation.
—
Reply to this email directly, view it on GitHubhttps://github.com/LouisDesdoigts/dLux/issues/169#issuecomment-1370436933, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABN6YFJOXYB5AJFSMBQ3ZRLWQTSFHANCNFSM6AAAAAATPG3GOY.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Yeah so, if you look at the jaxpr a lot of the np functions do type checking and extra broadcasting (presumably for safety in the general case). If you check issue #178 you'll see me accelerate some operations by avoiding these assumptions.

authors: Jordan-Dennis benjaminpope

repo: LouisDesdoigts/dLux


text:
Last round doesn't report the dice that were present.

Last round doesn't report the dice that were present.

Fixed.

repo: Lozzano/Liars-Dice-Bot


text:
Add support for YouTube Music mood filters

Describe your suggestion
These are finally available on the web version and since we use that then it should be rather simple to implement.
Other details
https://9to5google.com/2023/01/27/youtube-music-mood-filters-web/
Checklist

[X] I am running the latest version.
[X] I checked the documentation and found no answer.
[X] I have searched the existing issues and made sure this is not a duplicate.
[X] I have provided sufficient information.

I've used this issue as an opportunity to dig into the library's source code, but have got a bit stuck trying to decode the proto buffer.
Monitoring HTTP requests while selecting different moods on music.youtube.com, I noticed that the selected mood seems to depend on the params property of the request:
{
  "context": {
    "client": {
       ...
    }
  },
  "browseId": "FEmusic_home",
  "params": "ggMeSgQIBxADSgQICRABSgQIBBABSgQIAxABSgQIBhAB"
}

I then decode this params property into a binary buffer file and run protoc on it to get the following:
48 {
  9 {
    1: 7
    2: 3
  }
  9 {
    1: 9
    2: 1
  }
  9 {
    1: 4
    2: 1
  }
  9 {
    1: 3
    2: 1
  }
  9 {
    1: 6
    2: 1
  }
}

At this point I'm not sure what to do with this information. It seems like youtube.proto should be updated to add the correct fields for the numeric references, but I'm not sure what the reverse engineering process is there. Am I on the right track?

@LuanRT that helps a lot! Thanks for the detailed explanation

authors: Buroni LuanRT


text:
手机适配样式问题

有人遇到手机移动端适配问题吗？
prizes.push({           x: item[0],           y: item[1],           fonts: [             { text: data.prizes[index].name || '再接再励', wordWrap: false, top: '227px', fontSize: '30px' }           ],           isWin: data.prizes[index].ticketForm === 'ADD_CUSTOMER_SERVICE',           imgs: [             {               width: '166px',               height: '166px',               top: '40px',               src: data.prizes[index].img || this.defaultImgSrc             }           ]         })
一样的代码；在 oppo 手机上显示的就特别的大；在chrome模拟器中也是很大；如果按照UI的尺寸写了；在大部分手机上就会显示的特别小；单位是px；有什么解决办法吗

h5页面是嘛

组件的宽度和高度你设置了吗, 而且你这个给的数值会不会太大了, 100多px?

repo: LuckDraw/vue-luck-draw


text:
Opening more ports as some services don't seem to be exposed

Opened more ports as per https://docs.datastax.com/en/latest-dse/datastax_enterprise/sec/configFirewallPorts.html

You don't need any changes from the script edits.  Apologies as I wanted to see if I can make my fork. I get the feeling that the scripts have issues with either OSX (BSD?) or zsh as I get some weird things like
> ./docker-build.sh
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /Users/schrepfler/Documents/sources/dse-docker/build/Dockerfile: no such file or directory

Thanks for the PR! About the scripts, those are meant to be run from the root of the repository.
>./build/docker-build.sh

I suspect that's why you're getting the errors (and I should probably update the README with build details). I'll work on just merging the DOCKERFILE changes from the PR.

The 2 commits with DOCKERFILE changes have been merged. I went ahead and did a subsequent commit where I removed a couple ports for OpsCenter and DataStax Studio which aren't installed as part of this image. The 5.0.4 image up on Docker Hub should have the changes now. Thanks again for the PR!

No problems, thanks for the useful image!

authors: LukeTillman schrepfler

repo: LukeTillman/dse-docker


text:
[ShellyMdnsScanner]: Warning in mDNS query service:

Hey,
finally, I made it to install matterbridge and the shelly plugin on my raspberry with a debian on it (Using AHK (ATV 4k) with latest iOS 18.1). In the matterbridge log I got the following error but can't see any option how to configure this:
[ShellyMdnsScanner]: Warning in mDNS query service: The value of "offset" is out of range. It must be >= 0 and <= 374. Received 375
mDNS finds all shellys and it is working somehow fine (facing also other issues). Not knowing if I can ignore this or it needs some attention. Thanks for your support!
May I ask here if I should create additional issues for the following observations a made?

After raspberry and partially also after matter bridge restart, all connected (and sorted shelly to a room) are back to the Apple Homekit room where the Bridge is located. Also, all automations, namings in AHK are lost / forgotten.
Same when I reconfigure the shelly device (e.g. changing the name) which requires a matterbridge restart. After this, those devices were again connected to the "bridge room" and everything is gone :(
When new devices were added in AHK, I can move them there to another room. It takes a while and different retries until it works.
Some devices showing a Model, Vendor, Serial information, some not. It is not depending on the shelly device itself, 1PM gen2, 1PM gen3 or 2 PM Gen 2 and 3 are affected.
In AHK when I switch the typ e.g. from switch to light, a dialog pops up stating: "Change not possible". After klicking "OK" it anyhow changes the typ of the item.

Thank you very much for your patience and support.
Best
Tom
nodeVersion | 22.11.0
osType | Linux (6.6.51+rpt-rpi-v8)
osPlatform | linux (arm64)
Matterbridge 1.6.1
Shelly Plugin 1.0.9

Hi,
thank you the logs.
There is something I have never seen before:
[08:39:40.855] [ShellyMdnsScanner] [debug] MdnsScanner discovered shelly gen: 1 device id: shelly-schalter-GARAGENLICHT host: 192.168.177.167 port: 9000
[08:39:40.862] [ShellyMdnsScanner] [debug] MdnsScanner discovered shelly gen: 1 device id: shelly-GARAGENTOR host: 192.168.177.113 port: 9000
[08:39:40.866] [ShellyMdnsScanner] [debug] MdnsScanner discovered shelly gen: 1 device id: shelly-vorgarten-DOWNLIGHTS host: 192.168.177.15 port: 9000
[08:39:40.903] [ShellyMdnsScanner] [debug] MdnsScanner discovered shelly gen: 1 device id: shelly-schalter-keller-LICHT host: 192.168.177.145 port: 9000
What devices do you have on those IP?
What configuration do you have on the device web page that cause mdns response to port 9000?
Can you please activate all these options:

and also

then restart completely, wait a few minutes and send me the whole directory Matterbridge/matterbridge-shelly.
@tammeryousef1006 did you ever see Mdns on port 9000?
Thanks.

Quick response regarding the three devices. These are Shelly Gen1 devices with a "homekit firmware" running on it:
https://github.com/mongoose-os-apps/shelly-homekit?tab=readme-ov-file
Attached the config of the plugin. I actived the debug mode as requested and restarting. Waiting a while and uploading then the package. I never changed a port nor configured something like this. Should be all standard.

Ah ok then is the firmware on those devices that create that mdns response. Load the shelly firmware or put them in the blacklist cause they will never work.
What other issues are still opened for you now?

Still 1, 2 and 4. Devices are new after every restart and all configs / automations in AHK are lost.

They are all the same issue: as I told is related to your setup.
You run matterbridge like service?
Send me the matterbridge.service file.
You can also check on the devices page of the frontend after each restart if the endpoint numbers change. That is likely the origin of the issue.
How many devices you have ?

Sorry, maybe I read it wrong. I run it as a service as documented in your readme-service.md
I needed to adjust the path.
Archive.zip
You are right, when e.g. I change just the name (for testing purposes to provoke the issue) of the shelly on the shelly WebGUI the matterbridge confirmed that there is a change and I need to restart the bridge:
[13:54:44.642] [PluginManager]: Configured plugin matterbridge-shelly type DynamicPlatform
notice - [13:55:25.601] [Vorgartenlicht]: Shelly device Vorgartenlicht id shelly1pmg3-DCDA0CB16394 host 192.168.177.200 sent config changed rev: 12
notice - [13:55:25.603] [Vorgartenlicht]: If the configuration on shelly device Vorgartenlicht has changed, please restart matterbridge for the change to take effect.
After restarting the bridge (via sudo systemctl restart matterbridge) the Endpoint ID has changed.
Why this also
I have up to 16 devices, now only 4 in the whitelist.
[Unit]
Description=matterbridge
After=network-online.target
[Service]
Type=simple
Environment=PATH=/home/admin/.nvm/versions/node/v22.11.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
ExecStart=/home/admin/.nvm/versions/node/v22.11.0/bin/matterbridge -service
WorkingDirectory=/home/admin/Matterbridge
Restart=always
RestartSec=10s
StandardOutput=inherit
StandardError=inherit
TimeoutStopSec=30s
User=admin
[Install]
WantedBy=multi-user.target

Hi,
your setup is modified from the standard so you have to check it yourself to understand if there are any errors.
Furthermore using nvm in production is not recommended. Nvm is more for a dev setup.
Concerning the endpoint, every time you change a device serial number (not your case) or the name (that is your case), there will be a new uniqueid on Matter and consequently a new endpoint. In this case the controller will delete the old device and create the new one. Loosing all configuration about the first.
This explain the issues on the device where you changed the name but not the issues on the other devices if also them are recreated every time.
Check the matterbridge.json after each restart or the devices page in the frontend to understand when in your setup new endpoint are generated.
My best.

Hi,
I installed everything from scratch, without using NVM. No it runs without any issues as far as I can see.
As I am not a Linux expert (more a noob) I used NVM to install node.js as it was part of the original guide here:
https://nodejs.org/en/download/package-manager
Thank you again for spending your time in supporting me!
Maybe as a last question:
What would be the best way how to get npm and node.js on a fresh raspberry linux installation?

Hi,
I’m glad you solved and thank you for pointing out your initial issues.
I will update the readme cause you are right: now nodejs point users to nvm in the main page but is fundamentally not a good choice.
Always install node with nodesource script even because in that way when you sudo apt upgrade, node will be updated too.
My best.

authors: Luligu pbanane

repo: Luligu/matterbridge-shelly


text:
Use the current URL to determine whether to open a secure websocket connection

I see that an insecure websocket connection is opened from WebSocketUse.js regardless of whether the application is accessed over SSL or not. Instead this is decided by a value returned from the call to /api/settings.
This causes a problem when accessing over a reverse proxy via SSL. Can we use the window.location.protocol to determine whether to use ws:// or wss://?

Hi,
what version are you using?
If you use https (-ssl option) why your connection is not secured?
And why you don't use normal http if in your setup https is not working?

If you use https (-ssl option) why your connection is not secured?

Hi, where can I set this? Perhaps I missed it, but I don't remember seeing this option at all.

And why you don't use normal http if in your setup https is not working?

I want to access it behind a reverse proxy over SSL.

If you don't add any parameter to the command line the frontend is served by a http server that serves also a websocket.
If you add the option -ssl you need to add your certificates and optionally also the CA certificate. In this case both frontend and websocket are served by https. The secure connection must be working if you use the -ssl.

Ah thanks. I am running matterbridge as a docker container, how would I specify this option?

services:
matterbridge:
container_name: matterbridge
image: luligu/matterbridge:latest # Matterbridge image with the dev tag
restart: always # Ensures the container always restarts automatically
network_mode: host # Ensures the Matter mdns works
volumes:
- "${HOME}/Matterbridge:/root/Matterbridge" # Mounts the Matterbridge plugin directory
- "${HOME}/.matterbridge:/root/.matterbridge" # Mounts the Matterbridge storage directory
- "${HOME}/Root:/root" # Mounts the root directory
environment:
- TZ=Europe/Paris
command: [ "matterbridge", "-childbridge", "-docker" ]
You can add command and put what you need. Don't forget -docker if you override the default!
How to use -ssl:
check here https://github.com/Luligu/matterbridge/blob/main/CHANGELOG.md#136---2024-06-28
and matterbridge -help

authors: Luligu milothomas

repo: Luligu/matterbridge


text:
Token IMG is broken

this is only because the ropsten LMR token isn't associated with the image

repo: Lumerin-protocol/proxy-router


text:
Add gemfights

General:

[ ] The pull request title is descriptive. (ex. Added Lunar Network, not Updated metadata.json)
[ ] The pull request does not contain any unrelated commits. (ex. commits from previous pull requests)

Mapping Additions or Updates:

[ ] Folder with appropriate name has been created / updated (must not include any non-alpha characters or whitespace).
[ ] No changes were made to the file's formatting (4 spaces per tab).
[ ] There are no syntax errors.
[ ] There is no pre-existing mapping matching my id (check if there is an existing folder).
[ ] My field values match your requirements.
You can view our patterns here: metadata.schema.json, or take a look below and complete the field checklist:

[ ] id: a lowercase string, which should match the folder name (ex. myserver)
[ ] name: a string (ex. MyServerPvP)
[ ] description: hook between 16 and 80 characters (ex. Home of Competitive Minecraft PvP)
[ ] addresses: an array with lowercase strings (ex. ["my.server", "your-server.com"])

You do not need to specify subdomains, Lunar Client services automatically detect them.

[ ] primaryAddress: the primary address that people connect to with (please include the subdomain if required) (ex. mc.my.server)
[ ] minecraftVersions: an array with Minecraft versions as strings _(ex. ["1.18._", "1.19.2"] - Must be versions or subversions supported by Lunar Client)*
[ ] primaryMinecraftVersion: a Minecraft version as a string (ex. 1.19.2 - Must be a subversion supported by Lunar Client)
[ ] primaryColor: a hexademical color code that primarily distinguishes the server (ex. #00FFFF)
[ ] secondaryColor: a hexademical color code that accompanies the primaryColor of the server (ex. #FF0000)
[ ] primaryRegion: the primary region where your server operates in (ex. NA)
[ ] regions: a list of regions where you have servers located that service your players (ex. ["NA", "EU", "AS"])
[ ] gameTypes: a list of games that describe the content on your server, must be a max of 3 listed (ez. ["PVP", "UHC", "HCF"])
[ ] crossplay: whether the server has support for Bedrock Edition players (through proxies such as GeyserMC)
[ ] (optional) presentationVideo: YouTube video ID (in slug) to server trailer / introduction (ex. 7EV4cPuJvXE)
[ ] (optional) website: url of server website, must include URL schema (http:// or https://) (ex. https://www.your-server.com)
[ ] (optional) store: url of server store, must include URL schema (http:// or https://) (ex. https://store.your-server.com)
[ ] (optional) wiki: url of server wiki, must include URL schema (http:// or https://) (ex. https://wiki.your-server.com)
[ ] (optional) merch: url of server merchanise site (if seperate from store), must include URL schema (http:// or https://) (ex. https://merch.your-server.com)

Socials

[ ] (optional) twitter: username of twitter account without the @ (ex. MyServer)
[ ] (optional) discord: invite link to discord (ex. https://discord.com/invite/4ceEJuH)
[ ] (optional) youtube: slug or username of youtube channel (ex. MyServer)
[ ] (optional) instagram: username of instagram account (ex. MyServer)
[ ] (optional) twitch: username of twitch account (ex. MyServer)
[ ] (optional) telegram: slug of telegram group (ex. MyServer)
[ ] (optional) reddit: slug of subdreddit wtih 'r/' (ex. MyServer)
[ ] (optional) tiktok: username of tiktok account (ex. MyServer)
[ ] (optional) facebook: slug of facebook page (ex. MyServer)

Compliance

[ ] (optional) privacyPolicy: url to your Privacy Policy (ex. https://www.lunar.gg/privacy)
[ ] (optional) termsOfService: url to your Terms of Service (ex. https://www.lunar.gg/terms)
[ ] (optional) rules: url to your Rules (ex. https://www.lunar.gg/rules)
[ ] (optional) support: url to your Support Site (ex. https://www.lunar.gg/support)

Media:
Logo

[ ] My logo is a png file.
[ ] I have uploaded my logo to my server folder (ex. lunarnetwork) and named it logo.png.
[ ] My logo has a transparent background and is square (1:1 aspect ratio).
[ ] My logo is 512 pixels in width and height.
[ ] My logo is my own property and complies with relevant copyright/privacy laws.

Background

[ ] My background is a png file.
[ ] I have uploaded my background to my server folder (ex. lunarnetwork) and named it background.png.
[ ] My background has an aspect ratio of 16:9.
[ ] My background is atleast 1920 pixels in width and 1080 pixels in height (can be bigger, but must remain the same aspect ratio).
[ ] My background contains relevant content pertaining to the server, is my own property, and complies with relevant copyright/privacy laws.
[ ] My background doesn't contain any markings, text, or logos (unless part of a build).

These aren't proper server logos

we are a very diverse team and this is art
On Tue, Sep 3, 2024 at 7:03 AM Anakin @.***> wrote:

These aren't proper server logos
—
Reply to this email directly, view it on GitHub
https://github.com/LunarClient/ServerMappings/pull/2641#issuecomment-2326238052,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKVMMVJJJ53JGG5FNZMIBY3ZUWJO5AVCNFSM6AAAAABNOJ2SJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRWGIZTQMBVGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

authors: Anakinnnnn yeknam-and-co

repo: LunarClient/ServerMappings


text:
added phantom

General:

[x] The pull request title is descriptive. (ex. Added Lunar Network, not Updated metadata.json)
[x] The pull request does not contain any unrelated commits.  (ex. commits from previous pull requests)

Mapping Additions or Updates:

[ ] Folder with appropriate name has been created / updated (must not include any non-alpha characters or whitespace).
[ ] No changes were made to the file's formatting (4 spaces per tab).
[ ] There are no syntax errors.
[ ] There is no pre-existing mapping matching my id (check if there is an existing folder).
[ ] My field values match your requirements.
You can view our patterns here: metadata.schema.json, or take a look below and complete the field checklist:

[ ] id: a lowercase string, which should match the folder name (ex. myserver)
[ ] name: a string (ex. MyServerPvP)
[ ] description: hook between 16 and 80 characters (ex. Home of Competitive Minecraft PvP)
[ ] addresses: an array with lowercase strings (ex. ["my.server", "your-server.com"])

You do not need to specify subdomains, Lunar Client services automatically detect them.

[ ] primaryAddress: the primary address that people connect to with (please include the subdomain if required) (ex. mc.my.server)
[ ] minecraftVersions: an array with Minecraft versions as strings (ex. ["1.18.*", "1.19.2"] - Must be versions or subversions supported by Lunar Client)
[ ] primaryMinecraftVersion: a Minecraft version as a string (ex. 1.19.2 - Must be a subversion supported by Lunar Client)
[ ] primaryColor: a hexademical color code that primarily distinguishes the server (ex. #00FFFF)
[ ] secondaryColor: a hexademical color code that accompanies the primaryColor of the server (ex. #FF0000)
[ ] primaryRegion: the primary region where your server operates in (ex. NA)
[ ] regions: a list of regions where you have servers located that service your players (ex. ["NA", "EU", "AS"])
[ ] gameTypes: a list of games that describe the content on your server, must be a max of 3 listed (ez. ["PVP", "UHC", "HCF"])
[ ] (optional) website: url of server website, must include URL schema (http:// or https://) (ex. https://www.your-server.com)
[ ] (optional) store: url of server store, must include URL schema (http:// or https://) (ex. https://store.your-server.com)

Socials

[ ] (optional) twitter: username of twitter account without the @ (ex. MyServer)
[ ] (optional) discord: invite link to discord (ex. https://discord.com/invite/4ceEJuH)
[ ] (optional) youtube: slug or username of youtube channel (ex. MyServer)
[ ] (optional) instagram: username of instagram account (ex. MyServer)
[ ] (optional) twitch: username of twitch account (ex. MyServer)
[ ] (optional) telegram: slug of telegram group (ex. MyServer)
[ ] (optional) reddit: slug of subdreddit wtih 'r/' (ex. MyServer)
[ ] (optional) tiktok: username of tiktok account (ex. MyServer)
[ ] (optional) facebook: slug of facebook page (ex. MyServer)

Media:
Logo

[ ] My logo is a png file.
[ ] I have uploaded my logo to my server folder (ex. lunarnetwork) and named it logo.png.
[ ] My logo has a transparent background and is square (1:1 aspect ratio).
[ ] My logo is 512 pixels in width and height.
[ ] My logo is my own property and complies with relevant copyright/privacy laws.

Background

[ ] My background is a png file.
[ ] I have uploaded my background to my server folder (ex. lunarnetwork) and named it background.png.
[ ] My background has an aspect ratio of 16:9.
[ ] My background is atleast 1920 pixels in width and 1080 pixels in height (can be bigger, but must remain the same aspect ratio).
[ ] My background contains relevant content pertaining to the server, is my own property, and complies with relevant copyright/privacy laws.
[ ] My background doesn't contain any markings, text, or logos (unless part of a build).

Your background.png doesn't meet the minimum requirements in the README please review it!

Oops sorry didn't size it right my bad it's fixed now


text:
Investigate using Nodatime for any date/time functionality

Hi,
Having looked at this project (and really liking it), I noticed that the datetimeoffset type is used when representing the time passed since the Unix epoch.
As someone who is pretty fanatical about correct time representation and testing, I wondered whether you would consider switching to Nodatime. This would give you a type (Instant) that represents the time in UTC and therefore devoid of any timezone information as well as a clock representation that can be either mocked or have a fake representation injected that allows the manipulation of time during tests.
If this would be something you'd consider, I'm happy to put a proof of concept/PR together.
Thanks for the good work, it is really a time saver.
Sean.

😞
https://github.com/Lutando/Akkatecture/issues/446

authors: MarkusGeigerITD SeanFarrow

repo: Lutando/Akkatecture


text:
🛑 Official（泠泫凝的异次元空间-主页） is down

In 456034c, Official（泠泫凝的异次元空间-主页） (https://lxnchan.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Official（泠泫凝的异次元空间-主页） is back up in 554bc4b after 13 minutes.

repo: LxnChan/status


text:
🛑 EnderChest（末影箱-云盘） is down

In 82d3791, EnderChest（末影箱-云盘） (https://enderchest.anavi.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: EnderChest（末影箱-云盘） is back up in 5f3ec2a after 11 minutes.


text:
🛑 Official（泠泫凝的异次元空间-主页） is down

In 1d6dd17, Official（泠泫凝的异次元空间-主页） (https://lxnchan.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Official（泠泫凝的异次元空间-主页） is back up in 61ee22a after 7 minutes.


text:
🛑 EnderChest（末影箱-云盘） is down

In d281b84, EnderChest（末影箱-云盘） (https://enderchest.anavi.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: EnderChest（末影箱-云盘） is back up in 73e57d7 after 6 minutes.


text:
🛑 EnderChest（末影箱-云盘） is down

In 1ecb991, EnderChest（末影箱-云盘） (https://enderchest.anavi.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: EnderChest（末影箱-云盘） is back up in 4ab5546 after 19 minutes.


text:
🛑 Official（泠泫凝的异次元空间-主页） is down

In fc1b8ff, Official（泠泫凝的异次元空间-主页） (https://lxnchan.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Official（泠泫凝的异次元空间-主页） is back up in 2ef4641 after 27 minutes.


text:
🛑 CTRPro is down

In 264847a, CTRPro (https://ctrpro.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CTRPro is back up in cbb27f4.


text:
Boss bar doesn't show up

DO NOT REMOVE THIS
Please make sure your issue complies with these guidelines:

[ ] Be using PMMP

[ ] Make sure the issue hasn't already been reported

[ ] Make sure you are on the latest version of PMMP & PiggyAuth

[ ] Have a detailed title like "Players are being kicked randomly"

[ ] Provide any crash dumps or errors

General

Boss bar doesn't show up
Server Software:

PMMP
Version of PiggyAuth:

3.0.0.20
Data Provider:

[x] MySQL
[ ] SQLite
[ ] YAML
[ ] JSON

Steps to Reproduce the Issue

1.Get on or logout.
Extra Information

Are you using a suoerbar plugin or HUD plugin?

Nope.

authors: Fabiansigala MCPEPIG

repo: MCPEPIG/PiggyAuth


text:
Some examples don't work

[I]lawn-100-70-34-65: Downloads/MFC $ ./mfc.sh run ./examples/2D_mixing_nobubble/case.py
      ___            ___          ___
     /__/\          /  /\        /  /\       spencer@lawn-100-70-34-65.lawn.gatech.edu [Darwin]
    |  |::\        /  /:/_      /  /:/       --------------------------------------------------
    |  |:|:\      /  /:/ /\    /  /:/
  __|__|:|\:\    /  /:/ /:/   /  /:/  ___
 /__/::::| \:\  /__/:/ /:/   /__/:/  /  /\   --jobs:    1
 \  \:\~~\__\/  \  \:\/:/    \  \:\ /  /:/   --mode:    release-cpu
  \  \:\         \  \::/      \  \:\  /:/    --targets: pre_process, simulation, and post_process
   \  \:\         \  \:\       \  \:\/:/
    \  \:\         \  \:\       \  \::/
     \__\/          \__\/        \__\/       $ ./mfc.sh [build, run, test, clean] --help

Run
  Acquiring ./examples/2D_mixing_nobubble/case.py...
  Configuration:
    Input               ./examples/2D_mixing_nobubble/case.py
    Job Name      (-#)  unnamed
    Engine        (-e)  interactive
    Nodes         (-N)  1
    CPUs (/node)  (-n)  1
    GPUs (/node)  (-g)  0
    MPI Binary    (-b)  mpirun

  Running pre_process:
    Building pre_process:

      $ cd "/Users/spencer/Downloads/MFC/build/pre_process" && cmake --build . -j 1 --target pre_process --config Release

ninja: no work to do.

      $ cd "/Users/spencer/Downloads/MFC/build/pre_process" && cmake --install .

-- Install configuration: "Release"
-- Up-to-date: /Users/spencer/Downloads/MFC/build/install/bin/pre_process

    Running pre_process:

      $ mpirun -np 1  "/Users/spencer/Downloads/MFC/build/install/bin/pre_process"

 Final Time  0.10148899999999997

      Done (in 0:00:05.448766)

  Running simulation:
    Building simulation:

      $ cd "/Users/spencer/Downloads/MFC/build/simulation" && cmake --build . -j 1 --target simulation --config Release

ninja: no work to do.

      $ cd "/Users/spencer/Downloads/MFC/build/simulation" && cmake --install .

-- Install configuration: "Release"
-- Up-to-date: /Users/spencer/Downloads/MFC/build/install/bin/simulation

    Running simulation:

      $ mpirun -np 1  "/Users/spencer/Downloads/MFC/build/install/bin/simulation"

At line 114 of file /Users/spencer/Downloads/MFC/src/simulation_code/autogen/m_start_up.f90 (unit = 1, file = './simulation.inp')
Fortran runtime error: Cannot match namelist object name .0t_step_save

Error termination. Backtrace:

Could not print backtrace: executable file is not an executable
#0  0x103753187
#1  0x103753d37
#2  0x103754613
#3  0x103838f9b
#4  0x1038413d3
#5  0x103841687
#6  0x102ebe227
#7  0x102ecd7e3
#8  0x102f5a0cf
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[42162,1],0]
  Exit code:    2
--------------------------------------------------------------------------

Error: Failed to execute command "cd "/Users/spencer/Downloads/MFC/examples/2D_mixing_nobubble" && mpirun -np 1
"/Users/spencer/Downloads/MFC/build/install/bin/simulation"".

Latest pull request has fixed this issue (t_step_stop not an integer in case file)

authors: anandrdbz sbryngelson

repo: MFlowCode/MFC


text:
Inovelli Red Series Notification Settings - Feature Request

First, love the new feature that allows to control the Notification Setting for Inovelli switches directly in the app!
There are two settings in the Inovelli tool that are not in the new Notification settings.  I have been using both, so would love if there were also included:

Brightness Level
Duration

Thanks!

Brightness can be accessed by using the large square to the right of the vertical color hue strip.  Selecting a darker version of the hue controls brightness. Not obvious so will add instructions on this.
Not going to allow duration since at that point, the app thinks the LED is on and will not show lower priority conditions.  The app has to be the authority of the LED states for priorities to work.

Added more info on Brightness

Understood for the timer...
For the brightness, Thanks for the clarification!  I should have spent a bit more time figuring it out.  In hindsight, it is pretty obvious, so the documentation is great!
I notice that the Inovelli tool allows for brightness 1 where the app only goes to 2.  I have a dimmer notification in my bedroom on a dimmer that I want at 1...  I can use the tool, but if the app went to 1, I would use the app.  Thanks!!!
Is the gray shades on top for when white will be available?  Right now, it does Red.  Intentional?

authors: MFornander SebastienViel

repo: MFornander/Hubitat


text:
Add click

What does this PR do?

Add click to deposit and listen functions for easier operation
Add commands to Pipfile so deposit and listen functions can be called
Update tests to properly test functions as click commands

Helpful background context
Using click will make it easier to use a planned a config file that uses SSM Parameter Store or environmental variables for most, if not all, of the values needed for the operation of the deposit and listen functions.
How can a reviewer manually see the effects of these changes?
Ensure that the unit tests still pass when running pipenv run pytest
Requires Database Migrations?
NO
Includes new or updated dependencies?
YES

@ehanson8 What's the alternative to click? Does the application not read environment variables otherwise (via 'export') or something?

Click is what we use for almost all our Python applications, automated or manual. It is being used by DSS and alma-scripts which would be most similar to AWD in their functionality. It makes configuration easier, provides good errors at the start of the run if necessary, and has become standard practice.

I'm wondering if this should be an added as an architecture decision. Could you please add it and list specific technical pros and cons for environment variables specifically? Thanks.

repo: MITLibraries/wiley-deposits


text:
[Contact us page ]: update the contact Us page

Is your feature request related to a problem? Please describe.

More cleaner
Using nicer UI

Describe the solution you'd like.
I would like to create a better UI for contact us page
Describe alternatives you've considered.
No response
Additional context.
No response
Show us the magic with screenshots

Checklist

[X] I have checked the Existing Issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

@ML-Fusion-Lab please assign me this issue with labels , gssoc-ext, hacktoberfest-accepted , level-3

@eshaalal assigning this issue to you
Make sure to complete it within 2 days.
For now I can give you level 2, as you are updating the page.

And I will add the hacktoberfest label, when you will create the Pull Request.

okey

repo: ML-Fusion-Lab/ML-Fusion-Lab-Website


text:
website overhaul

What areas need to be improved? Leave your observations as a comment

See out tools link on main page does not work

less sad banner picture for the landing page

Update links (the tools link in the main page is dead, links to resources in stead of tools)
Update graphics (new group photo, nicer picture of the UMC?)
Update the tools page with clonal tracker
Add twitter feed to main page?

Home/Landing page is a bit bland. We should think about how to make it more interesting and attractive to the eyes.

new zoom photo with everyone
alumni page/info
link to clonaltracker

[ ] Adjust tool tags "Plasmid/s", Bactofidia doesn't have any.
[ ] New picture of the team and maybe of the UMC (one with sun)?
[ ]  Maybe in news a track record of the conferences, posters/presentations and prizes (Julian's) the the members

[ ] Tools section: Update description of some tools (plasmidEC, bactofidia). Fix italic species. Add clonal tracker website.
[ ] Main Section: Change main image maybe? It is a bit pixelated.
[ ] Social networks: Create and add a mastodon account. Many scientist are moving to this platform after Elon acquired twitter

Research: is now only focussed on plasmid and genomics. Add taxonomic profiling and metagenomics
Tools: add tourmaline?
Team: of course an update of pictures and persons
Blog: maybe discuss the purpose of this.
Update the contacts site

Closing this issue as it was summarized in issues #36 #37 #38 #39 #40 #41

authors: JesseKerkvliet MalbertRogers MatteoBuffoni aschuerch gidjes janettatop jpaganini weizhenxuuu

repo: MMB-UMCU/mmb-bioit


text:
READMEがない

何をするためのプログラムなのかのREADMEがあるとよいと思います。
一番上の階層に README.mdというファイルを作って、マークダウン形式で書くと、githubの最初のページに表示されます。

README.mdを追加しました。


text:
Camera ASI715MC not found

Hello,
it seems like my camera ASI715MC does not get found. Any ideas what might be wrong?

I installed this package via pip
I installed the mentioned requirments via apt
I installed the udev rule
I am on Ubuntu 22.04

dmesg except
[ 9993.815730] usb 3-3: new high-speed USB device number 14 using xhci_hcd
[ 9993.965351] usb 3-3: New USB device found, idVendor=03c3, idProduct=715d, bcdDevice= 0.00
[ 9993.965370] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9993.965376] usb 3-3: Product: ASI715MC
[ 9993.965380] usb 3-3: Manufacturer: ZWO

lsusb and bus rights
$ lsusb
Bus 003 Device 014: ID 03c3:715d ZWO ASI715MC
..
$ ls -lah  /dev/bus/usb/003/014
crw-rw-rw- 1 root root 189, 269 Jul 16 10:07 /dev/bus/usb/003/014
$ cat /sys/module/usbcore/parameters/usbfs_memory_mb
200

The ASI715MC is plugged in on a USB 3.0 port withthout any hub or similar.
The command zwo-asi-print simply remains without any output while others fail (I assume the index errors is due tot the fact that the camera is simply not visible to this package)
zwo-asi-dump
Traceback (most recent call last):
  File "/home/timm/.local/bin/zwo-asi-dump", line 8, in <module>
    sys.exit(dump())
  File "/home/timm/.local/lib/python3.10/site-packages/camera_zwo_asi/main.py", line 144, in dump
    camera = Camera(index)
  File "/home/timm/.local/lib/python3.10/site-packages/camera_zwo_asi/camera.py", line 27, in __init__
    super().__init__(index)
RuntimeError: ASI Camera: (camera index: 0)  (error code: 1: ASI_ERROR_INVALID_INDEX)

Update: Install from source does fix the issue. I assume the pypi might just be a bit outdated?


text:
Port ridge regression to JavaScript

Move the computation’s core functionality from Python to JavaScript.

Mergin’ this. We can make modifications on another feature branch if needed. 🎉

Great!


text:
Plugin is not able to create a new Storage Account

Environment: Windows/IntelliJ14
Steps:
Sign in Subscription.
Click Azure.
Right Click storage.
Click Create Storage Account.
Give the details.
Select Create.
Plugin not able to create the storage, it is just showing the progress bar.
PFB the screen shot.

After closing the window "create storage account" it is showing null pointer exception as below.

I was unable to reproduce this issue with the latest version, following the mentioned steps. Could you please validate if it's still happening?

I am able to create a new Storage account in the latest build.
But the created storage account is not shown to the user in the storage tree after user clicks the "create" storage button.
The user has to click the refresh button of the storage, then only the latest created storage is shown to the user.

This issue is fixed and functionality is working as expected in the latest build.

authors: kasturiswain leotilli


text:
View Blob container option is not present in plugin after selecting a particular blob container

Environment: Windows/IntelliJ14
Steps:
Sign in Subscription.
Click Azure.
Click storage.
Expand a Storage Account.
Expand a particular Storage.
Expand Blobs.
Right Click on a blob container, View Blob container option is not present.
PFB the screen shot.

This issue is fixed and functionality is working as expected in the latest build.

In the Story board the option name is "View Blob container".
Is it OK for naming the option as "View container"?

This issue is fixed and functionality is working as expected in the latest build.


text:
Pretrained weights

I could not find pretrained weights for any of the models

This issue is duplicate. As we saud before, soon all of the weights will be uploaded. Currently, MobileNet and ResNet are available. Stay in touch for the updates.

repo: MSiam/TFSegmentation


text:
[Feat] KHJ_플레이어 장소&추첨 상태 관리, 당첨 개발자 키(2)

✅기능 이슈
Description

EPlayerLocationState: Plaza(광장), ConcertHall(콘서트홀), LuckyDrawRoom(추첨방)
ELuckyDrawResult: Winner(당첨), Loser(탈락), Neutral(아무 상태 아님)

To Do

[x] GI에 EPlayerLocationState 정의
[x] GI에 ELuckyDrawResult 정의
[x] SetPlaceState, GetPlaceState
[x] SetLuckyDrawState, GetLuckyDrawState
.
[x] GI->SetNickname 시 PS에도 저장
[x] Player BeginPlay()에서 현재 맵이 TTHallMap일 때 PS에 닉네임 저장 -> GI에서 가져오기
[x] Player 닉네임 위젯 NativeConstruct 시 PS의 닉네임 가져와서 텍스트 설정
.
[x] PS에 Set LuckyDrawSeatID
[x] PS의 Set LuckyDrawSeatID에서 GI->Set LuckyDrawSeatID
.
[x] 플레이어에 개발자 키(2) 추가해서 누르면 ELuckyDrawResult::Winner로 변경
[x] 개발자 키(2) 누르면 PS->Set LuckyDrawSeatID 호출, HTTP 통신 요청, WinnerUI 표시
[x] Player BeginPlay()에서 현재 맵이 TTHallMap일 때 ELuckyDrawResult::Loser면 LoserUI 표시, ELuckyDrawResult::Winner면 WinnerUI 표시
[x] #36
.
[x] 콘서트 입장 버튼 클릭: SetPlaceState해서 EPlayerLocationState::ConcertHall로 변경
[x] 콘서트홀에서 콘서트홀 전용 메인UI 표시
[x] 콘서트홀 나가기(광장으로 이동) 클릭: SetPlaceState해서 EPlayerLocationState::Plaza로 변경, 광장 전용 메인UI 표시
[x] 로그인 완료 후 홀 세션 입장: 플레이어 BeginPlay()에서 현재 맵이 TTHallMap이면 EPlayerLocationState::Plaza로 설정
[x] 추첨 세션 입장: 플레이어 BeginPlay()에서 현재 맵이 TTLuckyDrawMap이면 EPlayerLocationState::LuckyDrawRoom로 설정

ETC

개발자 키(1): 추첨 세션 초대
개발자 키(2): 당첨 UI 표시
추첨 세션 입장 시 PS->SetPlayerNickname해서 좌석으로 닉네임 바꿔줘야 함

로비&콘서트홀 UI 일단 같은 것으로 간주하고 개발 완료
연출 드가자


text:
Added slop functionality

Hi, I noticed this was missing from the code so I took the liberty of adding it.

OK, done, hope you're happy with it. Great library, very neatly coded, easy to pick up.

repo: MacFJA/php-redisearch


text:
[question] Is it possible to encrypt localStorage?

thanks.

Right now, no.
The built in Storage don't provide this feature.
But I was able to easily create a new Storage that encrypt data.
I will publish it when I finish to rewrite the serialization part (not that far), except if you urgently need the encryption storage

That's ok, It's not urgent. I'm using encryptjs right now before storing/reading.
I just thought it would be convenient skipping that extra code step if svelte-persistent-store could handle that internally.
I'm really enjoying using svelte-persistent-store.  Works well with all the browser storage options and it's cool to have this in one package with very easy syntax.
Thanks so much and I'll just patiently wait for a next release. 👍

Here the new encryption storage: https://github.com/MacFJA/svelte-persistent-store/blob/update/.docs/Examples/04-Encrypted-Storage.md
It will be added in a few day when the PR #22 is merged
The version will probably bump to 2.0.0 as there are many changes that break backward compatibility

authors: MacFJA beebase

repo: MacFJA/svelte-persistent-store


text:
🛑 tchncs is down

In 7f8eb57, tchncs (https://tchncs.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tchncs is back up in 36fa45e.

repo: Magic-Services/upptime


text:
🛑 Nitter (nitter.net) is down

In 9050bf2, Nitter (nitter.net) (https://nitter.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nitter (nitter.net) is back up in ffb363b.


text:
🛑 Libreddit (libreddit.spike.codes) is down

In 48fe83c, Libreddit (libreddit.spike.codes) (https://libreddit.spike.codes) was down:

HTTP code: 502
Response time: 28649 ms

Resolved: Libreddit (libreddit.spike.codes) is back up in da057e0 after 10 minutes.


text:
feature request: Card MultiColor

Hi
Is it maybe possible to add a Card property: MultiColor, a boolean?
I would definitely use it :-)
Best regards,
Jessica

do you mean some that just does
Colors.Count > 1

yes
I think your library can add things not in the original api but usefull?
So it would be usefull if you want to use this for each card so the user of your library don't have to make this if test.

could add this property in the Model

Thx a lot!

authors: ancientmagicwizard jregnier

repo: MagicTheGathering/mtg-sdk-dotnet


text:
safe parsing

have you had any ideas how to do safe parsing? Have you considered somthing like https://github.com/asvd/jailed or https://github.com/gf3/sandbox ?

If you want real parsing instead of safe-executing you can also take a look at Esprima, it gives you an AST.

I think safe parsing would just be a matter of adding functions and function application to JSON's grammar. Non-bound variables would throw an error, so you still can't call arbitrary code. I would work on something similar to Caramel's parser (which uses the ReadP library on Haskell's base), but I didn't search for parse combinator libraries on JS yet. I'll give it a look eventually!

Safe parsing added on this new release.

authors: MaiaVictor capaj thriqon

repo: MaiaVictor/LJSON


text:
Stop Factorio on Windows

There doesn't seem to be an easy solution to terminating Factorio gracefully on Windows. Until then, kill the process. The map will not be saved so it's not the best solution...

I'll fix this in a bit. I guess syscall is platform specific.

repo: MajorMJR/factorio-server-manager


text:
Not sufficient memory for oracle

Hello Sir, I m  new in Docker and trying to install oracle 12c in docker. but it got failed after 3%.
I am using docker desktop version 2.2.0.3 in Window 10 with window's container in D:/Docker_WS directory.
below are the warnings -
[WARNING] [DBT-11209] Current available physical memory is less than the required physical memory (2,048MB) for creating the database.
[WARNING] [DBT-11217] Unable to check available shared memory on specified node(s) (699630acd0fc).
Copying database files
1% complete
2% complete
3% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.
found files in /u01/app/oracle/oradata Using them instead of initial database
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/12.2.0/SE/dbs/initxe.ora'
Starting web management console
BEGIN DBMS_XDB.sethttpport(8080); END;

ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
[IMPORT] Not a first start, SKIPPING Import from Volume '/docker-entrypoint-initdb.d'
[IMPORT] If you want to enable import at any state - add 'IMPORT_FROM_VOLUME=true' variable
Database ready to use. Enjoy! ;)
ERROR:
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3701
Additional information: 1802802571..
I am not getting this. Please help me to setup this. If this is realted to Docker VM then plese explain it in details that how can i resolve the issues. after installation i wanna to import backup file in this.

Fixed with DBCA_TOTAL_MEMORY=4096 and 4096 is set as default


text:
Better HTML Tag Parsing

There needs to be a more accurate way to traverse the HTML tags to avoid transforming data within HTML tags. Right now a regex seems to be the fastest way, but it could be a character-by-character parser may be needed to avoid edge cases. This would allow the tag and text indices to be accumulated simultaneously. I had originally examined using the children and childNodes, but this has the downside of not easily being able to determine the length of text to skip for the purpose of determining the location of actual text that needs transforming. This wouldn't be an issue if we were also using a character-by-character parser for determining double quotes, single quotes, etc. Those need to be done over the whole continuous block of text in order to function properly.

Done in 0.0.6

Done in 0.0.6


text:
Error: Content not allowed in prolog

This error appears as there are 2 print statements in the config.py file for the Wigle API Key.

Can see the message in the output window

Commenting the 2 lines in the config file fixes the issue

I'm aware of this, and it's mentioned in the README. The issue we have with the config is it will be written after installation. So I can't make changes in the default config from wigle.

Thanks Dirk, just saw the section in the README

authors: TURROKS mt-dirk

repo: MaltegoTech/maltego-ltc


text:
ruby 2.5.1 struct size error

ERROR -- : Unexpected exception during Dalli request: TypeError: struct ApplicationController::Performance::Options not compatible (struct size differs)
ERROR -- : /Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/activesupport-5.0.7/lib/active_support/core_ext/marshal.rb:4:in 'load'

@jrafanie this has your name all over it

Can you debug what the source and proc are?

Yeah, sorry @djberg96, I think this can be closed cause I haven't managed to reproduce it since.

repo: ManageIQ/manageiq


text:
[Regression] Azure instance metric capture fails

On 5.11, metrics capture for Azure instances fails with [NoMethodError]: undefined method `iso8601' for nil:NilClass With some extra logging added, I can see that it occurs when the memory usage metrics retrieved from Azure are empty:
counter_key = mem_usage_absolute_average
metric_values = [{}]

This value of metric_values falls through the empty? check and then triggers the NoMethodError because ts is nil.
      COUNTERS_INFO.values.flatten.each do |counter_info|
        metric_values = metrics.values_at(*counter_info.metrics).compact
        next if metric_values.empty?
[...]
        ts, value = timestamped_values.to_a.last
        counter_values.store_path(ts.iso8601, counter_info.counter_key, value)

irb(main):001:0> metric_values = [{}]
=> [{}]
irb(main):002:0> metric_values.empty?
=> false

On 5.10, metrics capture also fails, but with a different traceback. Attaching evm.log excerpts for both 5.10 and 5.11. Issue seen in 5.10.15.1 and in 5.11.2.2 through 5.11.6.0.

evm.log.510.txt
evm.log.511.debug.txt
evm.log.511.txt

Going to close this since it is fixed on master and is pending backport to a release branch

authors: agrare tpapaioa


text:
UI - Using context menu on a Host chart to go to Timeline results in infinite refresh

@mzazrivec This is similar to what was happening with the charts recently.  Going directly to a Hosts Timeline works fine, but using the chart menu to get there results in the tl_chooser method being posted over and over.

@dclarizio What's happening here is that we're setting the datepicker on the problematic
page to a certain date (the initial input value) and at the same time setting start date and end date
values so that the initial value does not belong to the start date <-> end date interval.
The bootstrap we're using detects that and triggers a 'clearDate' event, for which our code executes
form submission (as in the date was cleared -> we need to post the change to server).
Part of the reply is a JS routine miqBuildCalendar, which starts the above procedure all over again.

bugzilla related issue - https://bugzilla.redhat.com/show_bug.cgi?id=1253339

This has been fixed by #3854.

authors: dclarizio mzazrivec rananda


text:
Order the authentications display order by authtype

Description
Order the authentications display order by authtype
Screenshot

Issue
https://github.com/ManageIQ/manageiq/issues/10027

@miq-bot add_label providers/containers, ui, enhancement
@simon3z @enoodle @alongoldboim please review

@yaacov LGTM :+1:

@simon3z @yaacov Should this be backported to Darga?

Should this be backported to Darga?

It is related to https://github.com/ManageIQ/manageiq/pull/9785 which is darga/yes, I will be happy if it was.

@miq-bot add_label darga/yes
@chessbyte yes thanks... it seems trivial enough and quite helpful.

Darga backport details:
commit 7bb8fa933788601064569f3c359d2e63f8ce82fc
Author: Oleg Barenboim <chessbyte@gmail.com>
Date:   Mon Jul 25 09:36:51 2016 -0400

    Merge pull request #10028 from yaacov/sort-authentications-in-ems-summary-status

    Order the authentications display order by authtype
    (cherry picked from commit 4815022173ef07903dc98309878331d632954b80)

authors: alongoldboim chessbyte simon3z yaacov


text:
[WIP] Add skeleton task and model for retire as a request

VM retirement should be a request. This is ☠  first pass at creating task and model.
This PR includes the service and orch stack task and request models because it has to in order to pass specs in the retirement manager.
Related to:
classic-ui pr here: https://github.com/ManageIQ/manageiq-ui-classic/pull/3409
automate changes: https://github.com/ManageIQ/manageiq-automation_engine/pull/157
https://github.com/ManageIQ/manageiq-content/pull/262

@tinaafitz

@mkanoor could you please review this again for me?

tests that will need to be updated after orchestration_stack and bundled service PRs get in:
spec/models/orchestration_stack/retirement_management_spec.rb:44, 32, 25
spec/models/service/retirement_management_spec.rb:94, 74, 83
The service tests are changed to not call retire_now for the moment because of the return at https://github.com/ManageIQ/manageiq/pull/16933/files#diff-610ed908579256e82c76ec0910169142R11 and the orchestration_stack code hasn't been started so the only part in place for that is the UI call which renders the bimodal aspect moot for the moment.


text:
Add the artemis auth info as env variables in worker containers

Requires https://github.com/ManageIQ/manageiq-pods/pull/268
\cc @agrare

After this PR (and the dependent one) is merged the following environment variables will be available in all worker containers for using artemis:
ARTEMIS_SERVICE_PORT_STOMP=61613
ARTEMIS_USER=artemis
ARTEMIS_SERVICE_HOST=172.30.102.132
ARTEMIS_PASSWORD=RACAmGJU

ARTEMIS_SERVICE_PORT will also be available, but should be avoided for forward compatibility.
Artemis supports many protocols and we may add more than one to the same service.


text:
Default to resource name for conversion hosts

Based on feedback from the V2V team, a conversion host should default to the associated resource name if no name is explicitly specified. This PR modifies the ConversionHost model so that it does just that on creation.

@fdupont-redhat @mturley Please take a look.

@miq-bot add_reviewer @agrare

@miq_bot add_labels transformation, enhancement

@miq-bot add_label hammer/yes

@miq-bot add_label transformation, enhancement

@djberg96 this looks like it'd be far simpler to handle on the ConversionHost.create!() side, just :name => name || resource.name instead of any before_validation hooks

@agrare Sorry, not sure what you mean by "on the ConversionHost.create!()" side. You want me to redefine the create! method? Is that really simpler? I worry that I don't know what other repercussions that might have.

You want me to redefine the create! method

Definitely not
I mean name is just another parameter to create!, so whoever calls ConversionHost.create! can just pass in name as well.

I feel that approach makes the model less robust, and I would have to set it in the rest api, and both the enable and enable_queue methods, and so on. This way I don't have to worry about who is calling it or how.

and I would have to set it in the rest api, and both the enable and enable_queue methods, and so on

Why in all of these places?  enable/enable_queue just take params so you can just do params[:name] ||= resource.name in the API when you call enable_queue

Ok, but I still prefer this approach since it works no matter how a conversion host is created instead of tinkering with a single method.

https://bugzilla.redhat.com/show_bug.cgi?id=1689894

Hammer backport details:
$ git log -1
commit 6e595db3ff47f30cd8698920ae23dbeda746435f
Author: Adam Grare <agrare@redhat.com>
Date:   Thu Mar 7 16:30:19 2019 -0500

    Merge pull request #18516 from djberg96/conversion_host_validations

    Default to resource name for conversion hosts

    (cherry picked from commit 297f4c22abbc1dcf98b3b4e9bc2337bcf3acb9be)

    https://bugzilla.redhat.com/show_bug.cgi?id=1696437
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1693715

authors: agrare djberg96 fdupont-redhat simaishi


text:
Use leaf classes for ems type validation

Recent changes put the automation thingy factory back to not being a leaf class and LJ wouldn't leaf me alone so.
From comment here: https://github.com/ManageIQ/manageiq/pull/19330/files#r329235409
@miq-bot assign @jrafanie
I think this's all, right?

Don't do this. Change to use factory :automation_manager_ansible_tower instead of :automation_manager

Don't do this. Change to use factory :automation_manager_ansible_tower instead of :automation_manager

We can't.  The automation_manager factory is unusable right now.

Don't do this. Change to use factory :automation_manager_ansible_tower instead of :automation_manager

We can't. The automation_manager factory is unusable right now.

This is passing: https://github.com/ManageIQ/manageiq-content/pull/586

@jameswnl LJ's spec on https://github.com/ManageIQ/manageiq/pull/19330/files#r329235208 shows that the factory is currently unusable. It doesn't matter if the content repo is green, that's a symptom and we need to put the factory back.

This fixes an issue introduced in https://github.com/ManageIQ/manageiq/pull/19330

@jameswnl I'll merge this for now since ems factories can't be abstract/non-leaf classes, see: https://github.com/ManageIQ/manageiq/blob/c518bf5f68a63a668fe481c380f3dc8c5cddea76/app/models/ext_management_system.rb#L852
We can discuss other solutions for the original problem of preventing creation of these non-leaf classes that was implemented in https://github.com/ManageIQ/manageiq/pull/18842.  Ultimately, in that PR, we decided it was better to have all the base factories use a concrete leaf ems class from a provider to allow non-provider tests to be able to use the base factory in situations that are provider agnostic.  In other words, it's better to have provider class information in one location in the base factories than to force tests in several repos to know this class information in their tests.  Of course, if the non-provider tests are testing provider specific use cases, then they should be using the specific provider, so I think your change in https://github.com/ManageIQ/manageiq-content/pull/586 was good.
It's a gnarly problem and any other solutions would be greatly appreciated.
cc @agrare

We can discuss other solutions for the original problem of preventing creation of these non-leaf classes that was implemented in #18842. Ultimately, in that PR, we decided it was better to have all the base factories use a concrete leaf ems class from a provider to allow non-provider tests to be able to use the base factory in situations that are provider agnostic. In other words, it's better to have provider class information in one location in the base factories than to force tests in several repos to know this class information in their tests. Of course, if the non-provider tests are testing provider specific use cases, then they should be using the specific provider, so I think your change in ManageIQ/manageiq-content#586 was good.

This approach is problematic because it allows creating tests that seems general (i.e. applicable to all implementations of that provider), but in fact it depends on implementation-specific features.

This approach is problematic because it allows creating tests that seems general (i.e. applicable to all implementations of that provider), but in fact it depends on implementation-specific features.

Yes, these tests need to depend on the specific subclass factory like I mentioned was good about https://github.com/ManageIQ/manageiq-content/pull/586

This approach also creates barrier to make our providers more pluggable.

Sure, if there are better solutions to prevent non-leaf ems classes from being created, I think we're open to something better.  I think https://github.com/ManageIQ/manageiq/pull/18842 was the solution we disliked least.

I still believe ManageIQ/manageiq-content#586 is the way to go.

👍 It's ansible tower specific tests so it should use ansible tower specific factories.
This PR was merely to make the base factory usable again.  It's not the complete solution.

authors: d-m-u jameswnl jrafanie kbrock


text:
[WIP] Add support for IPv6 literals in microsoft hostnames.

Please merge after #2063 since this includes a commit from that PR.

Merged #2063 .  Is this good to go?

Good to go @Fryguy

authors: Fryguy jrafanie