Kundera does not connect to all nodes on Cassandra cluster

Greetings,
I am trying to setup a simple client, based on  Getting Started in 5 minutes, to connect to multi-node Cassandra Cluster.
I am using Cassandra 3.7 and Kundera 3.5.
I've got two Cassandra instances, and I can connect to each of them individually and work with them as intended.
My persistence.xml file:
 <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
         version="2.0">
<persistence-unit name="cassandra_pu">
    <provider>com.impetus.kundera.KunderaPersistence</provider>
    <class>main.User</class>
    <exclude-unlisted-classes>true</exclude-unlisted-classes>
    <properties>
        <property name="kundera.client.property" value="META-INF/loadBalancing.xml" />
        <property name="kundera.nodes" value="<IP_ADDRESS>,<IP_ADDRESS>" />
        <property name="kundera.port" value="9042" />
        <property name="kundera.keyspace" value="KunderaExamples"/>
        <property name="kundera.dialect" value="cassandra"/>
        <property name="kundera.ddl.auto.prepare" value="create" />
        <property name="kundera.client.lookup.class"
                  value="com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory" />
    </properties>
</persistence-unit>
</persistence>

And loadBalancing.xml file, referenced above, is:
<?xml version="1.0" encoding="UTF-8"?>
 <clientProperties>
<datastores>
    <dataStore>
        <name>cassandra</name>
        <connection>
            <servers>
            </servers>

            <properties>
                <property name="loadbalancing.policy" value="RoundRobinPolicy"></property>
                <property name="retry" value="true"></property>
                <property name="retry.delay" value="1"></property>
                <property name="max.wait" value="3000"></property>
            </properties>
        </connection>
    </dataStore>
</datastores>
</clientProperties>

For the purpose of replication, main method is simple:
public static void main(String[] args) {

    Map<String, String> propertyMap = new HashMap<>();
    propertyMap.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);

    EntityManagerFactory emf = Persistence.createEntityManagerFactory("cassandra_pu", propertyMap);
    EntityManager em = emf.createEntityManager();

    em.close();
    emf.close();

}

The problem I am facing is that Kundera only connects to one node.
I suspect, but can't know for sure, that the issue is related to following line printed in console:

WARN  com.datastax.driver.core.Cluster - You listed /<IP_ADDRESS>:9042 in your contact points, but it wasn't found in the control host's system.peers at startup

As for Cassandra hosts, I did not change cassandra.yaml, or configured Cassandra in any other way. I simply started server and used enablethrift with nodetool.
What am I missing?
Full console stack trace, if it could help:
14:49:06.633 [main] INFO  c.i.k.p.EntityManagerFactoryImpl - Loading Core
14:49:06.639 [main] INFO  c.impetus.kundera.loader.CoreLoader - Loading Kundera Core Metdata ...
14:49:06.640 [main] INFO  c.i.k.p.EntityManagerFactoryImpl - Loading Persistence Unit MetaData For Persistence Unit(s) cassandra_pu.
14:49:06.644 [main] INFO  c.i.k.c.PersistenceUnitConfiguration - Loading Metadata from persistence.xml ...
14:49:06.732 [main] INFO  c.i.k.c.PersistenceUnitConfiguration - Finishing persistence unit metadata configuration ...
14:49:06.739 [main] DEBUG c.i.k.c.MetamodelConfiguration - Loading Entity Metadata...
14:49:06.788 [main] DEBUG c.i.k.v.rules.EntityAnnotationRule - Validating main.User
14:49:06.813 [main] DEBUG c.i.k.c.MetamodelConfiguration - Metadata not found in cache for main.User
14:49:06.825 [main] DEBUG c.i.kundera.metadata.MetadataBuilder - Processing @Entity >> class main.User
14:49:06.825 [main] DEBUG c.i.k.m.processor.TableProcessor - Processing @Entity(main.User) for Persistence Object.
14:49:06.876 [main] DEBUG c.i.k.m.processor.IndexProcessor - Processing @Entity main.User for Indexes.
14:49:06.881 [main] INFO  c.i.k.c.ClientMetadataBuilder - Loading client factory for persistence unit cassandra_pu
14:49:06.882 [main] INFO  c.i.kundera.client.ClientResolver - Initializing client factory for: cassandra_pu
14:49:06.896 [main] INFO  c.i.kundera.client.ClientResolver - Finishing factory initialization
14:49:06.897 [main] INFO  c.i.k.configure.SchemaConfiguration - Configuring schema export for : cassandra_pu
14:49:07.161 [main] INFO  c.i.c.c.c.CassandraPropertyReader - Returning placement strategy value org.apache.cassandra.locator.SimpleStrategy
14:49:09.875 [main] INFO  c.i.k.loader.GenericClientFactory - Loading client metadata for persistence unit : cassandra_pu
14:49:09.875 [main] INFO  c.i.k.loader.GenericClientFactory - Initializing client for persistence unit : cassandra_pu
14:49:09.884 [main] INFO  c.i.k.loader.GenericClientFactory - Constructing pool for persistence unit : cassandra_pu
14:49:09.884 [main] DEBUG c.i.k.c.c.dsdriver.DSClientFactory - Intiatilzing connection
14:49:09.978 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.NEW_NODE_DELAY_SECONDS is undefined, using default value 1
14:49:09.978 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.NON_BLOCKING_EXECUTOR_SIZE is undefined, using default value 4
14:49:09.980 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.NOTIF_LOCK_TIMEOUT_SECONDS is undefined, using default value 60
14:49:10.103 [main] DEBUG com.datastax.driver.core.Cluster - Starting new cluster with contact points [/<IP_ADDRESS>:9042, /<IP_ADDRESS>:9042]
14:49:10.125 [main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
14:49:10.141 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
14:49:10.142 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
14:49:10.142 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
14:49:10.143 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
14:49:10.144 [main] DEBUG i.n.util.internal.PlatformDependent - Platform: Windows
14:49:10.144 [main] DEBUG i.n.util.internal.PlatformDependent - Java version: 8
14:49:10.144 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
14:49:10.144 [main] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
14:49:10.145 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
14:49:10.209 [main] DEBUG i.n.util.internal.PlatformDependent - Javassist: available
14:49:10.210 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\marko\AppData\Local\Temp (java.io.tmpdir)
14:49:10.210 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
14:49:10.210 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
14:49:10.219 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.FORCE_NIO is undefined, using default value false
14:49:10.222 [main] WARN  com.datastax.driver.core.NettyUtil - Found Netty's native epoll transport, but not running on linux-based operating system. Using NIO instead.
14:49:10.225 [main] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
14:49:10.232 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
14:49:10.232 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
14:49:10.259 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetectionLevel: simple
14:49:10.265 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.EXTENDED_PEER_CHECK is undefined, using default value true
14:49:10.387 [main] DEBUG com.datastax.driver.core.Host.STATES - [/<IP_ADDRESS>:9042] preparing to open 1 new connections, total = 1
14:49:10.394 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.DISABLE_COALESCING is undefined, using default value false
14:49:10.404 [main] DEBUG i.n.u.i.JavassistTypeParameterMatcherGenerator - Generated: io.netty.util.internal.__matchers__.com.datastax.driver.core.Message$ResponseMatcher
14:49:10.421 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 4
14:49:10.421 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 4
14:49:10.421 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
14:49:10.421 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
14:49:10.422 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
14:49:10.422 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
14:49:10.422 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
14:49:10.422 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
14:49:10.422 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
14:49:10.422 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
14:49:10.437 [main] DEBUG i.n.u.i.JavassistTypeParameterMatcherGenerator - Generated: io.netty.util.internal.__matchers__.com.datastax.driver.core.FrameMatcher
14:49:10.442 [main] DEBUG i.n.u.i.JavassistTypeParameterMatcherGenerator - Generated: io.netty.util.internal.__matchers__.com.datastax.driver.core.Message$RequestMatcher
14:49:10.465 [main] DEBUG i.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0xde81bd81c0d2fa3f (took 9 ms)
14:49:10.485 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled
14:49:10.485 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536
14:49:10.521 [cluster1-nio-worker-0] DEBUG com.datastax.driver.core.Connection - Connection[/<IP_ADDRESS>:9042-1, inFlight=0, closed=false] Connection established, initializing transport
14:49:10.540 [cluster1-nio-worker-0] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144
14:49:10.577 [cluster1-nio-worker-0] DEBUG com.datastax.driver.core.Host.STATES - [/<IP_ADDRESS>:9042] Connection[/<IP_ADDRESS>:9042-1, inFlight=0, closed=false] Transport initialized, connection ready
14:49:10.579 [main] DEBUG c.d.driver.core.ControlConnection - [Control connection] Refreshing node list and token map
14:49:10.644 [main] WARN  com.datastax.driver.core.Cluster - You listed /<IP_ADDRESS>:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
14:49:10.652 [main] DEBUG c.d.driver.core.ControlConnection - [Control connection] Refreshing schema
14:49:10.935 [main] DEBUG c.d.driver.core.ControlConnection - [Control connection] Refreshing node list and token map
14:49:11.003 [main] DEBUG com.datastax.driver.core.Host.STATES - [Control connection] established to /<IP_ADDRESS>:9042
14:49:11.005 [main] INFO  com.datastax.driver.core.Cluster - New Cassandra host /<IP_ADDRESS>:9042 added
14:49:11.013 [main] DEBUG c.d.driver.core.SystemProperties - com.datastax.driver.CHECK_IO_DEADLOCKS is undefined, using default value true
14:49:11.019 [main] DEBUG com.datastax.driver.core.Host.STATES - [/<IP_ADDRESS>:9042] preparing to open 1 new connections, total = 2
14:49:11.022 [cluster1-nio-worker-1] DEBUG com.datastax.driver.core.Connection - Connection[/<IP_ADDRESS>:9042-2, inFlight=0, closed=false] Connection established, initializing transport
14:49:11.061 [cluster1-nio-worker-1] DEBUG com.datastax.driver.core.Host.STATES - [/<IP_ADDRESS>:9042] Connection[/<IP_ADDRESS>:9042-2, inFlight=0, closed=false] Transport initialized, connection ready
14:49:11.064 [cluster1-nio-worker-1] DEBUG c.d.driver.core.HostConnectionPool - Created connection pool to host /<IP_ADDRESS>:9042 (1 connections needed, 1 successfully opened)
14:49:11.064 [cluster1-nio-worker-1] DEBUG com.datastax.driver.core.Session - Added connection pool for /<IP_ADDRESS>:9042
14:49:11.071 [cluster1-nio-worker-1] WARN  c.d.d.core.policies.RoundRobinPolicy - Detected request at Consistency Level null but the non-DC aware RoundRobinPolicy is in use. It is strongly advised to use DCAwareRoundRobinPolicy if you have multiple DCs/use DC-aware consistency levels (note: this message will only be logged once)
14:49:11.087 [main] INFO  c.i.k.p.EntityManagerFactoryImpl - EntityManagerFactory created for persistence unit : cassandra_pu
14:49:11.094 [main] DEBUG c.i.k.persistence.EntityManagerImpl - Creating EntityManager for persistence unit : cassandra_pu
14:49:11.104 [main] INFO  c.i.k.persistence.EntityManagerImpl - Returning client instance for persistence unit cassandra_pu.
14:49:11.104 [main] DEBUG c.i.k.loader.GenericClientFactory - Returning fresh client instance for persistence unit : cassandra_pu
14:49:11.119 [main] DEBUG c.i.k.persistence.EntityManagerImpl - Created EntityManager for persistence unit : cassandra_pu
14:49:11.119 [main] DEBUG c.i.k.p.PersistenceDelegator - Flushing following flush stack to database(s) (showing stack objects from top to bottom):
[]
14:49:11.120 [main] DEBUG com.datastax.driver.core.Connection - Connection[/<IP_ADDRESS>:9042-2, inFlight=0, closed=true] closing connection
14:49:11.121 [main] DEBUG com.datastax.driver.core.Host.STATES - [/<IP_ADDRESS>:9042] Connection[/<IP_ADDRESS>:9042-2, inFlight=0, closed=true] closed, remaining = 1
14:49:11.126 [main] DEBUG com.datastax.driver.core.Cluster - Shutting down
14:49:11.128 [main] DEBUG com.datastax.driver.core.Connection - Connection[/<IP_ADDRESS>:9042-1, inFlight=0, closed=true] closing connection
14:49:11.129 [main] DEBUG com.datastax.driver.core.Host.STATES - [/<IP_ADDRESS>:9042] Connection[/<IP_ADDRESS>:9042-1, inFlight=0, closed=true] closed, remaining = 0
14:49:13.554 [threadDeathWatcher-2-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 34 thread-local buffer(s) from thread: cluster1-nio-worker-0
14:49:13.554 [threadDeathWatcher-2-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 7 thread-local buffer(s) from thread: cluster1-nio-worker-1

Hi @Sarpedion
I am not sure if this is an issue with Kundera, I have tried to connect with 3 node cluster and it was working fine.
-Karthik


[@xstate/inspect]: Old (and buggy) versions in the CodeSandbox projects

Description
The CodeSandbox projects linked in the docs still have old versions of xstate and @xstate/inspect.
https://github.com/statelyai/xstate/tree/main/packages/xstate-inspect#xstateinspect
A few bugs like the double arrow on invoke have been fixed since.
Maybe use minimum versions instead of fixed versions.
Expected Result
The template for the CodeSandbox project contains the most recent version of xstate and @xstate/inspect.
Actual Result
Current versions:
"dependencies": {
    "@xstate/inspect": "0.0.11",
    "xstate": "4.11.0"
  },

Reproduction
Click on one of the linked templates in the docs: https://github.com/statelyai/xstate/tree/main/packages/xstate-inspect#xstateinspect

It seems that maintaining the templates and examples both on GitHub and CodeSandbox doubles the efforts.
A longer term solution might be to maintain the templates and examples only on one place (here on GitHub), and replace the direct CodeSandbox links with the embedded variants everywhere in the docs.
The TodoMVC with Vue is a good example:

Source of the example on GitHub: https://github.com/statelyai/xstate/tree/main/examples/todo-mvc-vue
Source of the docs with CodeSandbox link: https://github.com/statelyai/xstate/blob/main/docs/examples/todomvc.md#todomvc-with-vue
How it looks: https://xstate.js.org/docs/examples/todomvc.html#todomvc-with-vue

What do you think?

A longer term solution might be to maintain the templates and examples only on one place (here on GitHub), and replace the direct CodeSandbox links with the embedded variants everywhere in the docs.

I completely agree with this; let's do this moving forward.
We can also find a way to automate the documentation for the examples; I'll investigate this.

I will check the examples, if they can be used as CodeSandbox project.

As a quick fix you can use the "latest" tag instead of a fixed version. This way the templates are always going to load the most recent versions.
"dependencies": {
    "@xstate/inspect": "latest",
    "xstate": "latest"
  },


Private Endpoint gets destroyed and recreated when terraform state file is refreshed

Hello everyone,
I have deployed storage account and Private endpoint to storage restricting the public access through a single tfvars file.
If the same tfvars file is used for creating one more storage account, existing Private endpoint is getting destroyed and recreated though there are no changes in terms of configuration. Please help.
Need to understand what is the root cause of this issue. Thanks in advance !
Module code :
main.tf
resource "azurerm_private_endpoint" "pe" {
for_each = var.private_endpoint
name = lookup(each.value, "name")
resource_group_name = var.resource_group_name
location            = var.location
subnet_id           = lookup(each.value, "subnet_id")
tags                = var.tags
private_service_connection {
name = lookup(each.value, "name")
is_manual_connection            =  lookup(each.value, "is_manual_connection")
#request_message                 = lookup(each.value,"request_message")
request_message = lookup(each.value, "is_manual_connection") ? "Please approve" : null
private_connection_resource_id  =  lookup(each.value, "private_connection_resource_id")
#private_connection_resource_alias  =  lookup(each.value, "private_connection_resource_alias")
subresource_names               =  lookup(each.value, "subresource_names")
}
private_dns_zone_group {
name = lookup(each.value, "private_dns_zone_name")
private_dns_zone_ids = lookup(each.value, "private_dns_zone_ids")
}
}
variables.tf
variable private_endpoint {
type = map(object({
subnet_id = any
is_manual_connection = any
private_connection_resource_id = any
subresource_names = any
#request_message = string
name = any
private_dns_zone_ids = any
private_dns_zone_name = string
}))
default = {}
}
variable resource_group_name {
type        = string
default = ""
}
variable location {
type        = string
default     = ""
}

@kollimouni30, Thanks for leveraging Azure docs feedback channel to raise this question. Could you please share the Azure documentation for which this feedback is applicable to?
-This channel is reserved for ‘Azure docs’ feedback- for sharing doc feedback and suggesting content improvements.

Apologies Ajay! Could you please move this to Issues bin so that someone can work on it?

kollimouni30, absolutely, no worries. If the issue is not related to Azure docs/ for technical questions, you may just re-post your question on the relevant technical forums, our SMEs/expert community would be able to help.
Microsoft Q&A  | Stackoverflow
Since it's not doc specific feedback and would be engage on technical forums, we will close this thread.
Thanks again for taking time to leverage Azure docs feedback channel.


eu.tiliado.NuvolaAppPlex not found

I ran the following command after installing the repository and restarting
menno@StarDebris-PC:~$ flatpak install nuvola eu.tiliado.NuvolaAppPlex
error: Error searching remote nuvola: Can't find ref eu.tiliado.NuvolaAppPlex
menno@StarDebris-PC:~$

Hello @CodeSurfing145. Thanks for reporting this. I accidentally removed Plex Music instead of Groove Music (long gone). It should be fixed now.


[QUESTION] Is this project's .exe file supported by proton or wine for running inside linux environment ?

On Main Website i am seeing two links which are both .exe so thought to ask if the exe is compatible with wine or proton so that we can use it in linux directly

VeighNa supports Linux system, there is no need to use proton or wine.
At the moment, we provide official support for Ubuntu 22.04 LTS.


Getting timestamps from attention maps

hey thanks for the great implementation
i had one doubt , if we can get wordwise timestamps in a audio clips from the attention maps,
since attention algorithm is trying to match word in the input sentenece to the corresponding utterance in the  audio clip.
is it possibe??
Thanks

Yes, that is possible and we've used Tacotron as a forced aligned in Mellotron.
The time resolution in seconds will be hop size / sampling rate.

but i see that you have used PHONEMEDURATION as forced aligner in mellotron_utils.py, there is no mention of Tacotron or any TTS model, i dont have phoneme duration data for the language that I am working on

Yes, that is possible and we've used Tacotron as a forced aligned in Mellotron.
The time resolution in seconds will be hop size / sampling rate.

but i see that you have used PHONEMEDURATION as forced aligner in mellotron_utils.py, there is no mention of Tacotron or any TTS model, i dont have phoneme duration data for the language that I am working on

The phoneme duration set is only  used for the generation of the singing sample.  The style transfer part of inference.ipynb uses mellotron.forward() to get the alignment:
with torch.no_grad():     # get rhythm (alignment map) using tacotron 2     mel_outputs, mel_outputs_postnet, gate_outputs, rhythm = mellotron.forward(x)     rhythm = rhythm.permute(1, 0, 2)

Closing due to inactivity.


Esp32WROOM32 restarts

I am trying to run the examples in a esp32 but with all the examples the esp32 only restarts.  the library also supports esp32?

I added a code to know the reason of the reset and only shows this.
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4832
load:0x40078000,len:16460
load:0x40080400,len:4
load:0x40080404,len:3504
entry 0x400805cc
C:\Users\kno_2\OneDrive\Escritorio\DAC8552-master\examples\DAC8552_same_time_write\DAC8552_same_time_write.ino
DAC8552_LIB_VERSION: 0.5.1
Reset Reason: Interrupt Watchdog Reset

Thanks for reporting the issue,
I have no hardware to verify, but I will investigate coming days.
There are (closed) issues of people who worked with it with ESP32 so it should be possible to get it to work.
I have a hypothesis why it failed but I have to do some digging if details match.
Have you tried the library with software SPI ?
Replacing the constructor call in the examples just define three pins.
DAC8552(uint8_t select, uint8_t spiData, uint8_t spiClock) Constructor SW SPI.

rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

The sketch uses pin 10 as select which
DAC8552 mydac(10);
This pin is used by the FLASH RAM (pin 6-11) on ESP32, and is free for other boards.
So changing the pin to a free one should get it working.
Please let me know.

Yes the problem was the CS pin, I connected to the default pins but the code override the CS to the pin 10 and that pin can not be used.

One more question, I am checking the same_time_write example and I can see first buffer for example the channel A, after that set the Value for channel B, when you set a value in any channel all the channels are updated?.

I need to check the data sheet / code on that one as I do not have all details of all libraries in my head.
Ps
Can you confirm that the SWSPI worked on ESP32?

@edwardocano

Sorry i was checking several speeds and pins, everything looks right also for SWSPI, the only thing i think could improve is DMA but this is specific for esp32.

Thanks for confirming SWSPI.
DMA sounds interesting, do you have any idea how much faster it is.
Do you have a link to some tutorials explaining the pro and cons of DMA?
Is the DMA interface compatible with ESP32?

@edwardocano
Closed the issue as it seems solved.


Do not show outdated dev dependencies

Would it make sense to not show outdated dev-dependencies on the badge?
It makes the crate seem to be outdated even if it is only for dependencies used to generate tests/benchmarks.

I will look into this and try to fix the issue.


Using BTC in DEFICHAIN APP

I sent BTC from Cake to the DefiChain app. These have also arrived. Actually, I wanted to use it for liquidity mining with DFI. But I can't seem to use the BTC. I thought I have to swap these into dBTC on the DEX, but I can't. Now I wanted to send the BTC back to Cake, but that doesn't work either, "Insufficient fund to cover fee". I have 0.00428773 dBTC and 48.688 UTXO DFI, where is the error?

Hi @JoergHoffmann , if you're sending BTC out of the desktop wallet, fees are in BTC (0.000005 BTC). What is your BTC balance? dBTC and BTC are different tokens.
Also, at the moment for native BTC being sent to DeFiChain desktop app, it can only be for send / receive (to and fro from your BTC address on BTC Network). If you would like to use the other features; on DeFiChain Network, you'll have to send DFI instead. To send DFI, you may do so from exchanges which supports DFI via DeFiChain Network — KuCoin, Bittrex, Hotbit just to name a few.

Problem is solved. I got help from the Telegtram group. I have uses Electrum wallet to go trough.


Vetext two way lambda close http connection

Added code to close the connection to VeText after the request has been made.  Also includes, re-organization of other related code so that exceptions related to the request were handled inside the method.  Updated the tests accordingly.

Please test in Dev prior to merging @jakehova


Module conflicts are ignored in module mappings

In the following example PrgEnv-gnu loads gcc/9.2.0. Using the following mapping -M 'PrgEnv-gnu: PrgEnv-gnu gcc/8.3.0' it will cause the error when loading gcc/8.3.0:
gcc/8.3.0(3):ERROR:150: Module 'gcc/8.3.0' conflicts with the currently loaded module(s) 'gcc/9.2.0'
gcc/8.3.0(3):ERROR:102: Tcl command execution failed: conflict gcc

The problem is that the mapping module mechanism is not taking into account module conflicts in mappings. In this case the rhs of the mapping will PrgEnv-gnu with gcc/9.2.0 and then it will try to load gcc/8.3.0, which will cause the error.
I don't know if this is easily fixable, but I am creating this issue to be listed as known issue at least. If we decide not to fix it, we should document it.

@vkarak, this seems to be happening in general when the modules given for the tests have conflicts. For example in the test that you describe, if you define:
self.modules = ['gcc/8.3.0'] you get in any case the error. Do you think we should have a preprocessing step to check for conflicts between all the modules of the check, taking into account the mapping?

Yes, but how that could be implemented nicely? Conflicts are handled at the environment level.

We could have a first step to check the modules that the test is going to load and if there are conflicts between them and throw and error/warning. The user should be aware that he is asking for modules that have conflicts between them.

I don't think such a step is needed. If the modules in self.modules have conflicts, the test will fail in the "setup" phase already. I think the problem is that there is no straightforward way, currently, for a user to unload a module. But this is a different problem; I don't know whether this is needed or not. Let's focus only on the module mappings for the moment. I don't know how these two are connected. Also, conceptually, I think they are two different things.

I think the problem in self.modules comes from the fact that we are not searching recursively for conflicts. So gcc/8.3.0 does not conflict with PrgEnv-gnu directly, but it conflicts with gcc/9.0.2 that PrgEnv-gnu is loading. There is the problem. But even if we had this, it wouldn't solve the mapping issue, because mappings are applied at the lowest level, when a module is actually being loaded.

@vkarak, that's why I think we could have a step that does this recursive resolution taking the mapping into account.

Ok, I didn't get exactly your initial point. We can discuss the details offline.

The problem is how the commands are emitted. Here is an example output from running ./bin/reframe -C config/cscs.py -c cscs-checks/prgenv/ -R -p PrgEnv-gnu -n HelloWorldTestSerial_c_dynamic -M PrgEnv-gnu: PrgEnv-gnu gcc/10.1.0 --keep-stage-files -r:
module unload PrgEnv-cray
module unload gcc
module load PrgEnv-gnu
module load gcc/10.1.0

The sequence is obviously wrong and the module unload gcc has no effect. It should have been:
module unload PrgEnv-cray
module load PrgEnv-gnu
module unload gcc
module load gcc/10.1.0


Printing Reports

I tried to print the "All Organization" report for last year and it would only let me print through the word Santa Cruz.

Sounds like we just have some data that needs to be fixed so that it will continue printing. I'll do my best to take a look tomorrow.


Fix warnings

Please provide PR description in future PRs.
Please add issue which PR closes if any.
#437 partially fixed.


Render a different image size based on window size

I should be able to grab multiple images with different sizes in my data fetching script.
My thoughts on fixing this is if browser is mobile then small image, otherwise normal size image (or possibly based on actual window size?)
I'm also guessing there may be fancy solution where the image scales automatically as the window size adjusts, but I think I'll go with the first one to start

I think I figured out a good way to display the image on small screens and large screens, but the text box isn't displaying the right way on small screens. Big gap between picture and text and getting cut off at the bottom of screen


Problem initiating Teslamate after sudden power off

Hello.
Today I had a power blackout in my home. After this, my Raspberry Pi rebooted and since then I haven't been able to start Teslamate. I have tried docker-compose pull, down, and up and to no avail. If I use systemctl this is what I get:
sudo systemctl status teslamate.service
â teslamate.service - TeslaMate
Loaded: loaded (/etc/systemd/system/teslamate.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2020-06-29 20:58:15 CEST; 4s ago
Process: 25402 ExecStartPre=/usr/src/teslamate/_build/prod/rel/teslamate/bin/teslamate eval TeslaMate.Release.migrate (code=exited, status=200/CHDIR)
Is there anything I can do make it work without starting from scratch?. I have a backup, by the way. I'm not a Linux expert so if I can post any logs or something please tell me.
Thank you.

What do you see when you run this? sudo journalctl -u teslamate --no-pager -n 1000

Hello. This is what I see (I copy the last lines). Looks like it is continuously restarting the service. With the power blackout I lost the NAT configuration in my router, that's why I wasn't able to access from outside my home. So it is working now but I don't know if this is ok:
Jun 30 13:50:13 teslamate systemd[1]: teslamate.service: Control process exited, code=exited, status=203/EXEC
Jun 30 13:50:13 teslamate systemd[1]: teslamate.service: Failed with result 'exit-code'.
Jun 30 13:50:13 teslamate systemd[1]: Failed to start TeslaMate.
Jun 30 13:50:18 teslamate systemd[1]: teslamate.service: Service RestartSec=5s expired, scheduling restart.
Jun 30 13:50:18 teslamate systemd[1]: teslamate.service: Scheduled restart job, restart counter is at 10927.
Jun 30 13:50:18 teslamate systemd[1]: Stopped TeslaMate.
Jun 30 13:50:18 teslamate systemd[1]: Starting TeslaMate...
Jun 30 13:50:18 teslamate systemd[10970]: teslamate.service: Failed to execute command: No such file or directory
Jun 30 13:50:18 teslamate systemd[10970]: teslamate.service: Failed at step EXEC spawning /usr/src/teslamate/_build/prod/rel/teslamate/bin/teslamate: No such file or directory
Jun 30 13:50:18 teslamate systemd[1]: teslamate.service: Control process exited, code=exited, status=203/EXEC
Jun 30 13:50:18 teslamate systemd[1]: teslamate.service: Failed with result 'exit-code'.
Jun 30 13:50:18 teslamate systemd[1]: Failed to start TeslaMate.
Jun 30 13:50:23 teslamate systemd[1]: teslamate.service: Service RestartSec=5s expired, scheduling restart.
Jun 30 13:50:23 teslamate systemd[1]: teslamate.service: Scheduled restart job, restart counter is at 10928.
Jun 30 13:50:23 teslamate systemd[1]: Stopped TeslaMate.
Jun 30 13:50:23 teslamate systemd[1]: Starting TeslaMate...
Jun 30 13:50:23 teslamate systemd[10971]: teslamate.service: Failed to execute command: No such file or directory
Jun 30 13:50:23 teslamate systemd[10971]: teslamate.service: Failed at step EXEC spawning /usr/src/teslamate/_build/prod/rel/teslamate/bin/teslamate: No such file or directory
Jun 30 13:50:23 teslamate systemd[1]: teslamate.service: Control process exited, code=exited, status=203/EXEC
Jun 30 13:50:24 teslamate systemd[1]: teslamate.service: Failed with result 'exit-code'.
Jun 30 13:50:24 teslamate systemd[1]: Failed to start TeslaMate.
Jun 30 13:50:29 teslamate systemd[1]: teslamate.service: Service RestartSec=5s expired, scheduling restart.
Jun 30 13:50:29 teslamate systemd[1]: teslamate.service: Scheduled restart job, restart counter is at 10929.
Jun 30 13:50:29 teslamate systemd[1]: Stopped TeslaMate.
Jun 30 13:50:29 teslamate systemd[1]: Starting TeslaMate...
Jun 30 13:50:29 teslamate systemd[10972]: teslamate.service: Failed to execute command: No such file or directory
Jun 30 13:50:29 teslamate systemd[10972]: teslamate.service: Failed at step EXEC spawning /usr/src/teslamate/_build/prod/rel/teslamate/bin/teslamate: No such file or directory
Jun 30 13:50:29 teslamate systemd[1]: teslamate.service: Control process exited, code=exited, status=203/EXEC
Jun 30 13:50:29 teslamate systemd[1]: teslamate.service: Failed with result 'exit-code'.
Jun 30 13:50:29 teslamate systemd[1]: Failed to start TeslaMate.

This is the crucial clue to where the problem is: /usr/src/teslamate/_build/prod/rel/teslamate/bin/teslamate: No such file or directory. I don't know if has been lost, but you have to make sure that all data is available at the given location. You may have to go through the installation process again. Hopefully the vehicle data is still available …

Thanks.
How can I start from scratch?. I have a backup, no problem with that. I mean, how can I erase every bit of the installation and begin with docker installation again?.

Wait, you have installed TeslaMate manually and now want to you run it using Docker? In that case stop and disable the systemd service (sudo systemd stop teslamate && sudo systemd disable teslamate), follow the docker installation and restore the backup.

No, I have always used Docker.

OK then you need neither systemd nor the files at /usr/src/teslamate.


python311Packages.google-cloud-spanner: 3.40.1 -> 3.41.0

Changelog: https://github.com/googleapis/python-spanner/blob/v3.41.0/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

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

2 packages built:

python311Packages.google-cloud-spanner
python311Packages.google-cloud-spanner.dist


Outdated files in dev-1.18-ko.2

This is a Bug Report
Problem
Outdated files in the upstream/dev-1.18-ko.2 branch.
32 files to be modified

[ ] content/en/_index.html 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/concepts/architecture/controller.md 1 file changed, 4 insertions(+), 6 deletions(-)
[ ] content/en/docs/concepts/architecture/master-node-communication.md 1 file changed, 17 insertions(+), 2 deletions(-)
[ ] content/en/docs/concepts/architecture/nodes.md 1 file changed, 3 insertions(+), 3 deletions(-)
[ ] content/en/docs/concepts/cluster-administration/cluster-administration-overview.md 1 file changed, 1 deletion(-)
[ ] content/en/docs/concepts/overview/what-is-kubernetes.md 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/concepts/overview/working-with-objects/namespaces.md 1 file changed, 1 insertion(+)
[ ] content/en/docs/concepts/policy/limit-range.md 1 file changed, 6 insertions(+), 329 deletions(-)
[ ] content/en/docs/concepts/scheduling/scheduler-perf-tuning.md 1 file changed, 85 insertions(+), 42 deletions(-)
[ ] content/en/docs/concepts/services-networking/endpoint-slices.md 1 file changed, 16 insertions(+), 16 deletions(-)
[ ] content/en/docs/concepts/services-networking/ingress.md 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/concepts/services-networking/service.md 1 file changed, 19 insertions(+)
[ ] content/en/docs/concepts/storage/persistent-volumes.md 1 file changed, 2 insertions(+), 2 deletions(-)
[ ] content/en/docs/concepts/workloads/controllers/deployment.md 1 file changed, 1 insertion(+), 9 deletions(-)
[ ] content/en/docs/concepts/workloads/controllers/replicaset.md 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/concepts/workloads/controllers/replicationcontroller.md 1 file changed, 2 insertions(+), 7 deletions(-)
[ ] content/en/docs/concepts/workloads/pods/init-containers.md 1 file changed, 7 insertions(+), 4 deletions(-)
[ ] content/en/docs/contribute/_index.md 1 file changed, 47 insertions(+), 32 deletions(-)
[ ] content/en/docs/contribute/participating.md 1 file changed, 9 insertions(+), 7 deletions(-)
[ ] content/en/docs/contribute/style/write-new-topic.md 1 file changed, 5 insertions(+), 6 deletions(-)
[ ] content/en/docs/reference/glossary/container-runtime.md 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/reference/issues-security/security.md 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/reference/kubectl/cheatsheet.md 1 file changed, 7 deletions(-)
[ ] content/en/docs/reference/tools.md 1 file changed, 5 deletions(-)
[ ] content/en/docs/setup/_index.md 1 file changed, 3 insertions(+), 7 deletions(-)
[ ] content/en/docs/setup/learning-environment/minikube.md 1 file changed, 2 insertions(+), 2 deletions(-)
[ ] content/en/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md 1 file changed, 11 insertions(+), 10 deletions(-)
[ ] content/en/docs/tasks/debug-application-cluster/resource-metrics-pipeline.md 1 file changed, 1 insertion(+), 1 deletion(-)
[ ] content/en/docs/tasks/run-application/horizontal-pod-autoscale.md 1 file changed, 2 insertions(+), 3 deletions(-)
[ ] content/en/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html 1 file changed, 2 insertions(+), 1 deletion(-)
[ ] content/en/docs/tutorials/stateful-application/cassandra.md 1 file changed, 94 insertions(+), 80 deletions(-)
[ ] content/en/training/_index.html 1 file changed, 37 insertions(+), 27 deletions(-)

0 files to be renamed
0 files to be deleted
Proposed Solution
Use git diff to check what is changed in the upstream. And apply the upstream changes manually
to the content/ko of upstream/dev-1.18-ko.2 branch.
For example:
# checkout `upstream/dev-1.18-ko.2`
...
# check what is updated in the upstream
git diff upstream/dev-1.18-ko.1 upstream/dev-1.18-ko.2 -- content/en/_index.html
# apply changes to content/ko
vi content/ko/_index.html
...
# commit and push
...
# make PR to `upstream/dev-1.18-ko.2`

Pages to Update
/language ko

/assign

concepts/policy/limit-range.md 파일에 대한 내용은 제가 수정하도록 하겠습니다.

@pjhwa 해당 이슈는 개별로 처리하기보다는 한번에 처리하는 것이 나을 것 같습니다. 현재 상당수 진행이되어 말씀하신 문서 또한 이미 처리를 한 상태입니다. 😄
답신이 늦어 죄송합니다. 나중에 PR이 열리면 확인 및 리뷰를 부탁드려도 될까요?

@ysyukr 제가 수고를 덜어드리려했는데... ^^
나중에 PR 열리면 기꺼이 확인하겠습니다. :-) 감사합니다.

/close


Support larger inline strings

With the recent advancements in const generics, it's theoretically possible to support a CompactString with a user defined size that is > 24, e.g. 32, 40, 48 bytes long. We should try doing this and playing with an API

Maybe the other direction would be possible, too? 16 bytes with the capacity on the heap.

Maybe the other direction would be possible, too? 16 bytes with the capacity on the heap.

Nah, I don't think this is a good idea.
That would make CompactString incompatible with String.
Conversion from String or to it would have to take extra time to realloc/rewrite the layout.
It would also impact ToCompactString implementation, which also relies on O(1) conversion from String.

It might be useful to have something like CompactStr type which is 16 bytes and compatible with Box<str>.

Coming back to this, my time should be freeing up soon, and I was thinking about how to further improve compact_str. What I think makes the most sense is to work on first is this and #264.
I plan to put together a proposed design/"next steps" soon which will cover additional variants like CompactStr or CompactPath and would love any and all thoughts, I'll update this thread when it's written :)

Coming back to this, my time should be freeing up soon, and I was thinking about how to further improve compact_str. What I think makes the most sense is to work on first is this and #264.

Good to hear, I really want #264 to be done and I thought about implementing it myself, but I am a bit busy recently so not enough time for this.

I plan to put together a proposed design/"next steps" soon which will cover additional variants like CompactStr or CompactPath and would love any and all thoughts, I'll update this thread when it's written :)

For CompactPath, I think it might make sense to first implement unix::CompactOsStr, which can contain arbitrary byte and windows::CompactOsStr, which contains utf-16.
Once they are ready, compact_str can trivially define CompactOsStr and then CompactPath.
Even if it fails, it would still have some usable types for further investigation/experiments.


Readme.md code has a bug.

While I know the Readme sample code is just sample. It is incorrect. The line that reads
err := nc.Request("help", "help me", &response, 10*time.Millisecond)
should be
 err := c.Request("help", "help me", &response, 10*time.Millisecond)
also (very minor nit.) err is defined but not used. ;)

Thanks Joe, we'll fix it ;)

Fixed with 675093b


feat(inline-loading): introduce inline loading

@cal-smith Sorry for the breakage. It was broken by Babel preset for Vue getting in place just by installing @storybook/vue. Put a patch to master and merged it to here, and the problem seems to have been solved.


RepeatHeader Not working

Hi ,
I want to repeatHeader for the table in each slide generated. I did the same way as per the demos. But it is not working. Help is appreciated. The below is my code.
addTable: function(slide, record) {
slide.addTable(record.get('tableRows'), {
placeholder: 'body',
fontSize: 8,
autoPage: true,
autoPageRepeatHeader: true,
autoPageHeaderRows: 1,
addHeaderToEach: true,
colW: [0.7, 1.1, 0.7, 1, 1, 1, 1, 2],
border: [{
pt: 0
}, {
pt: 0
}, {
pt: 0.25
}, {
pt: 0
}]
});
},

anyone having the same issue ? Appreciate the help

After I updated my project with new version of the framework the issue got resolved. So am closing this issue


Fix python-attrs-pip for Ubuntu

Replace Ubuntu in the python-attrs-pip key, removed in commit 59517bc9c424.

Hmmm. I think that the status quo is incorrect or at least odd. And opened https://github.com/ros/rosdistro/pull/36893 to address that in a minimally compatible way.
@tfoote was the intent in removing the pip definition for just Ubuntu made under the assumption that the pip key was also only there to backfill for Trusty? If that's the case I think we could consider removing it for Debian as well.
@zultron what platforms are you on that you're relying on this key? All ROS platforms which support python2 are nearing the end of their support, so the best thing to do if you intend to keep using them may be to switch to a fixed copy of the rosdep database.

The fix in #36893 looks like the right fix. The pip rule was used before the debian packages were available. And the debian rule could be extended to support older platforms. But I think that now all the older platforms are eol. So I removed the pip rule because all the expected platforms are now unsupported. So I think that we should keep the pip rule removed.

Since there hasn't been a response here, I'm going to close this as fixed by #36893


add label for docker

Signed-off-by: kevin xu<EMAIL_ADDRESS>

Current coverage is 44.29% (diff: 100%)

Merging #212 into master will decrease coverage by 0.07%

@@             master       #212   diff @@
==========================================
  Files            11         11
  Lines          8925       8925
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           3960       3953     -7
  Misses         3920       3920
- Partials       1045       1052     +7

Powered by Codecov. Last update 056b995...ced5b91


Cannot read property 'className' of undefined

I get this error and it's located in the utils.js file:
function splitProps(_ref2) {
  var className = _ref2.className, //<---here
      style = _ref2.style,
      rest = _objectWithoutProperties(_ref2, ['className', 'style']);

  return {
    className: className,
    style: style,
    rest: rest
  };
}

I understand that it has something to do with my column headers, so here is (sort of) my columns definition:
columns: [
      {
        header: 'Sections',
        columns: [{
          header: 'Section',
          accessor: 'sectionName',
          sortable: false
        }, {
          header: 'Sub-Section',
          accessor: 'subSectionName',
          sortable: false
        }]
      },
      {
        header: 'KPIs',
        columns: [{
          header: 'KPI',
          accessor: 'kpiName_1',
          minWidth: 200,
          sortable: false,
          render: props => {props.row && props.row.kpiName_2 ? '' : props.value}
        }, {
          header: 'Sub-KPI',
          accessor: 'kpiName_2',
          minWidth: 140,
          sortable: false,
          render: props => {props.row && props.row.kpiName_3 ? '' : props.value}
      //more columns like that
        }]
      },
      {
        header: 'Details',
        columns: [{
          // more columns here
          header: 'NO',
          accessor: 'kpiNumber',
          render: rowInfo => {rowInfo.value},
          width: 50,
          sort: 'asc' //i know, but that is still the only way sorting works for me, @5.3.4
        }]
      },
      {
        header: () => {this.props.selectedYear},
        columns: [{
          header: 'Apr',
          id: 'april',
          accessor: data => data.months && data.months.length > 0 && data.months[3].value,
          width: 70,
          sortable: false,
          render: ({index, value, row, aggregated}) => this.handleMonthValuesRender(index, value, row, aggregated, 3)
        },{
         // more columns
        }]
      }
    ]

I tried removing all grouped headers but didn't fix the issue.
Any help is much appreciated, maybe I have to check something different than the columns too, I don't know.
EDIT: To be more specific, probably the problem is with my code and not react-table, so I would like to know what causes this error.

Paste the code to your component
On Fri, Mar 3, 2017 at 6:05 AM Irene Pap<EMAIL_ADDRESS>wrote:

I get this error and it's located in the utils.js file:
function splitProps(_ref2) {
var className = _ref2.className, //<---here
style = _ref2.style,
rest = _objectWithoutProperties(_ref2, ['className', 'style']);
return {
className: className,
style: style,
rest: rest
};
}
I understand that it has something to do with my column headers, so here
is (sort of) my columns definition:
columns: [
{
header: 'Sections',
columns: [{
header: 'Section',
accessor: 'sectionName',
sortable: false
}, {
header: 'Sub-Section',
accessor: 'subSectionName',
sortable: false
}]
},
{
header: 'KPIs',
columns: [{
header: 'KPI',
accessor: 'kpiName_1',
minWidth: 200,
sortable: false,
render: props => {props.row && props.row.kpiName_2 ? '' : props.value}
}, {
header: 'Sub-KPI',
accessor: 'kpiName_2',
minWidth: 140,
sortable: false,
render: props => {props.row && props.row.kpiName_3 ? '' : props.value}
//more columns like that
}]
},
{
header: 'Details',
columns: [{
// more columns here
header: 'NO',
accessor: 'kpiNumber',
render: rowInfo => {rowInfo.value},
width: 50,
sort: 'asc' //i know, but that is still the only way sorting works for me, @5.3.4
}]
},
{
header: () => {this.props.selectedYear},
columns: [{
header: 'Apr',
id: 'april',
accessor: data => data.months && data.months.length > 0 && data.months[3].value,
width: 70,
sortable: false,
render: ({index, value, row, aggregated}) => this.handleMonthValuesRender(index, value, row, aggregated, 3)
},{
// more columns
}]
}
]
I tried removing all grouped headers but didn't fix the issue.
Any help is much appreciated, maybe I have to check something different
than the columns too, I don't know.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/108, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFUmCYR6GeBFWesqHa57y7b1rsLhY7bqks5riBAtgaJpZM4MSPPE
.

I don't understand which code I should paste to my component.

Wherever you are using <ReactTable />
On Fri, Mar 3, 2017 at 8:54 AM Irene Pap<EMAIL_ADDRESS>wrote:

I don't understand which code I should paste to my component.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/108#issuecomment-283991018,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCZMVko-laUqzVuzGSxYUGqlD6k97ks5riDezgaJpZM4MSPPE
.

I understood this, I don't understand what code should be pasted. I pasted the splitProps function but don't really know what to do with, what does _ref2 and _objectWithoutProperties represent?
I know the problem is the props I pass to the table, so if I know which properties are causing this error to appear it will probably help me fix my props.
Looks like the table is rendered before the moment I want it to and my componentDidUpdate [in the parent component] is not called and I cannot pass the correct props. But I would like to see what exactly is missing

Right.  This is likely not being caused by any of your column definitions, but instead a property being used directly on <ReactTable />.  We'll need to see all of those properties to determine the issue. This is what we need to see from your code:
<React Table
  prop={val}
  prop={val}
  prop={val}
  ...
/>

Ah wow I didn't get this before, ok. So:
<ReactTable
          loading={loading}
          className="-highlight"
          data={data}
          columns={columns}
          defaultPageSize={numOfSections}
          showPagination={false}
          showPageJump={false}
          showPageSizeOptions={false}
          pivotBy={['sectionName', 'subSectionName']}
          getTrProps={this.handleTrStyle}
          freezeWhenExpanded={true}
          //defaultSorting={[{ //should work this way and not with sort='asc' but...
            //id: 'kpiNumber',
            //desc: false
          //}]}
        />

numOfSections is always a number, never undefined.
data is the property that changes, it's an array of objects this way:
{
  kpiFreq: "string",
  kpiId: "string",
  kpiName_1: "string",
  kpiNumber: number,
  kpiType: "string",
  months: Array[12], //these objects are sometimes with empty strings,
                //but i catch that case on the columns definitions
  sectionName:"string"
  sectionNumber: number,
  subSectionName: "string"
}

Could it be something in getTrProps?
On Fri, Mar 3, 2017 at 9:53 AM Irene Pap<EMAIL_ADDRESS>wrote:

Ah wow I didn't get this before, ok. So:
<ReactTable
loading={loading}
className="-highlight"
data={data}
columns={columns}
defaultPageSize={numOfSections}
showPagination={false}
showPageJump={false}
showPageSizeOptions={false}
pivotBy={['sectionName', 'subSectionName']}
getTrProps={this.handleTrStyle}
freezeWhenExpanded={true}
//defaultSorting={[{ //should work this way and not with sort='asc' but...
//id: 'kpiNumber',
//desc: false
//}]}
/>
numOfSections is always a number, never undefined.
data is the property that changes, it's an array of objects this way:
{
kpiFreq: "string",
kpiId: "string",
kpiName_1: "string",
kpiNumber: number,
kpiType: "string",
months: Array[12], //these objects are sometimes with empty strings,
//but i catch that case on the columns definitions
sectionName:"string"
sectionNumber: number,
subSectionName: "string"
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/108#issuecomment-284007551,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCdAgZDuw7UQZLsTgfP9P-sCnCBTYks5riEV5gaJpZM4MSPPE
.

Sorry for the late response! Turns out it was some wrong data in the database :)

May you explain what wrong with data ? I have same issue @eyerean

I have no access anymore to the BE for that repository, but I believe the error was some mapping between the database and the BE. Checking now my code and it looks the same as I had pasted it here, with the difference that I passed also some booleans to the show property of the columns.
Can it be that a render of one of you columns is accessing a property named differently?

Were you able to fix this issue @MostafaEbrahimi I am getting the same issue

No! problem not solved and I use another way to solve my problem. @nrai

I had this problem as well. Same error code, and I narrowed the issue down to gettrbyprops. Turns out I didn't have a return. I had a return in my if statement: if (rowInfo && rowInfo.row)
...but if that if statement failed there was no return. I just returned an empty object and it works now, which makes sense. Hopefully this helps.

I had this issue when testing a component which rendered a react-table.
I'm was just sending in the function () => {} to getTrProps to then spy on the function to see if it had been called. I don't need it to do anything.
Anyway, I got the error that OP got, and had to change the function to () => ({}) for it to return something.

in my case if i added a the condition in getTdProps to check undefined then this issue get triggered. Can anyone let me know the solution for this.

I am facing this issue due to getTrProps, below is the props code passed into react table.
@tannerlinsley please help.
Also, I haven't used the return statement before onClick because of linter causes issue when I do that.
getTrProps={() => {
onClick: (e, handleOriginal) => {
if (handleOriginal) {
handleOriginal();
}
this.props.onClick();
};
}}

I was getting: Cannot read property 'className' of undefined
I was trying to put a MUI Tooltip inside of MUI TableCell, all I had to do was to not pass child as a plain string, had to wrap it in a paragraph, this might help someone :)
Before:
<TableCell> <Tooltip title="hello world"> text </Tooltip>
After:
`

text
`

in my case if i added a the condition in getTdProps to check undefined then this issue get triggered. Can anyone let me know the solution for this.

Hello, did you resolve this?

@SabrinaDanielle
    const rowProps = useCallback((state, rowInfo) => {
        if (rowInfo && rowInfo.row) {
            const isRowHovered = rowInfo.index === hoveredRow;
            return {
                style: {
                    background: isRowHovered ? '#D1DDE1' : ''
                },
                onMouseEnter: () => {
                    setHoveredRow(rowInfo.index)
                },
                onMouseLeave: () => {
                    setHoveredRow(null)
                }
            }
        }
            **return {};**
    }, [hoveredRow]);


packit: Enable copr build for CentOS Stream 9

Mingyu confirmed the copr repo works well for CentOS stream 9.


Separate out decision state machine from mutableStateBuilder

This is needed before #1139

All methods which update decision in mutable state have been pulled out.


Fixing Issue 1101

Description
Returning 204 for missing state and not 200
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #1101
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[ ] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation
[ ] Specification has been updated
[ ] Provided sample for the feature

/ok-to-test

The e2e tests fail because the state test needs to be changed to account for now getting a 204 response instead of 200.
The logs from the test:
--- FAIL: TestStateApp (150.58s)
    --- PASS: TestStateApp/Test_get_save_delete_with_empty_request_response_for_single_app_and_single_hop (1.46s)
    --- FAIL: TestStateApp/Test_save_get_and_delete_a_single_item_for_single_app_and_single_hop (0.14s)
        stateapp_test.go:245:
            	Error Trace:	stateapp_test.go:245
            	Error:      	Should be true
            	Test:       	TestStateApp/Test_save_get_and_delete_a_single_item_for_single_app_and_single_hop
    --- FAIL: TestStateApp/Test_save_get_and_delete_on_multiple_items_for_single_app_and_single_hop (0.14s)
        stateapp_test.go:245:
            	Error Trace:	stateapp_test.go:245
            	Error:      	Should be true
            	Test:       	TestStateApp/Test_save_get_and_delete_on_multiple_items_for_single_app_and_single_hop
FAIL

cc @cmendible

respondEmpty(c.RequestCtx, 204)

Roger that. Should I open an issue to make the same change in the Secret API?

Yes, please.

/ok-to-test


Support for validation

Hey,
are there any plans/interest in generating validation code for DTO objects? For example arrays that contain certain number of elements, strings with length constraints etc?
Thanks!

Yep, just hasn't been a priority for us as of yet. I've been thinking of translating validation to https://github.com/fthomas/refined, though I've heard some folk are already using that through x-scala-type and some imports.
I suspect what will need to happen to support different libraries which can be emailed to provide different functionality is to decompose new and constrained algebras to represent just validation, for instance, then enable or disable the refined interpreter. If others want different behavior, they can swap in new interpreters that use different libraries, or the noop one that just passes values through.

I'm thinking on about taking a stab at this...for our use case, we don't get to change the swagger definitions so we must handle it differently (we are unable to add x-scala-type)
I'm not really sure what you mean by this:

I suspect what will need to happen to support different libraries which can be emailed to provide different functionality is to decompose new and constrained algebras to represent just validation, for instance, then enable or disable the refined interpreter. If others want different behavior, they can swap in new interpreters that use different libraries, or the noop one that just passes values through.

What i had in mind was to have two modes - no validation or refined validation which can be switched using cli arguments ... and for no validation, everything would work as is now but for refined, you would get types enriched with refined features

whoops, s/emailed/enabled/:

I suspect what will need to happen to support different libraries which can be enabled to provide different functionality is to...
decompose new and constrained algebras to represent just validation, for instance...
then enable or disable the refined interpreter.

This is effectively what you suggested 😄

If others want different behavior, they can swap in new interpreters that use different libraries, or the noop one that just passes values through.

The noop one would just be the current behaviour.
The big point is coming up with a new Free algebra that represents the set of validation features, transforming the generated types on their way through the pipeline.
Fortunately, there's almost no reflection once generated (apart from some case t"Iterable[$tpe]" stuff during parameter transform), so once you construct the types, they won't be messed with.

Hey, it's me again ... so i spent a little time going through the code and i have some questions and insights.

Do we actually want an implementation that ignores validations, once we have support for them in place? It seems that only reason they are ignored is just the fact that guardrail doesn't support it. What point is then to design the code changes to allow them to be ignored? I think that if they are in swagger, there is no sense in giving people the power to skip generating them.
I think there are two possible approaches to validation

refined library, which is mighty cool and simplifies things to simply modifying type of param and everything else should work automatically, but won't work for java ... i guess we could bypass this limitation by enriching ProtocolParameter with field: annotations: List[Annotation] and then store annotations like these inside (@kelnos what do you think about it?)
or we can simply enrich ProtocolParameter with field validations: List[L#FunctionLiteral] which throws exception if value is invalid. This has the benefit of working for both java and scala but will require more boilerplate

Just as reminder, this is what ProtocolParameter looks like:
case class ProtocolParameter[L <: LA](term: L#MethodParameter,
                                      name: String,
                                      dep: Option[L#TermName],
                                      readOnlyKey: Option[String],
                                      emptyToNull: EmptyToNullBehaviour,
                                      defaultValue: Option[L#Term])

So, thoughts? If you still prefer new Free algebra, would you mind describing it a bit more? Perhaps few case classes or something? I can't really imagine it what it would look like, but i would like to work on this next as my boss is a bit sad that guardrail doesn't support this :)
Thanks!

Hey!  One problem I think we need to solve is around returning responses, and possibly enforcing spec file completeness.  Let's say I generally return some ErrorResponse class with error statuses.  Say it has three properties: (http_status, error_code, error_message).  Obviously when I am writing handler code in a server, and I want to respond with an error, I can construct an ErrorResponse instance and pass it back.
But with validations, we do the entire request/response cycle for the user, and their handler code never sees the request.  So one thing I'd like to consider is that, with validations enabled, the handler gets a method called handleValidationFailure() or something that allows the user to return a domain object (and custom status code?) on failures.
I'm about to hop on a plane; I have more thoughts but will write them up later.

That is good point! I haven't thought about that case ... my only experience is with java swagger implementation and what they do is i think simply returning 400 with some message. But i agree that having the ability to return custom object would be really nice.
One thing we could do is instead of calling handlers with some domain request representation of type A, we would provide user with something like ValidatedNel[String, A] so that the user can decide what to do with it

@blast-hardcheese what do you think about the above? i have some free time finally to work on this but i need some direction ;)

Reading scrollback to regain context...

So, the problem with ValidatedNel[String, A] is the lack of context to the field that was the error; returning an error string prevents:

Purpose tailored error messages
Non-string error messages

Just throwing something up for discussion:
def doFoo(respond: FooResponse.type)(int: Int): F[FooResponse] = ???

case class ErrorIndex(path: List[ErrorPathElement], message: String)
def mapFooError(respond: FooResponse.type)(errorInfo: ErrorIndex): F[FooResponse.type] = handleError(respond.BadRequest(_))(errorInfo)
def handleBadRequest[A](body: Zzz => A)(errorIndex: ErrorIndex): F[A] = ???

The considerations:

No violation of the spec, even in the error case
Sane defaults, emitting a single error message if possible (? I'm ok for dropping this, just looking to ease onboarding)
Similar structures for BadRequest defer to common implementations, so custom error builders can be all overridden at once

What do you think? I'd rather accomplish this via composition, but without requiring polymorphic source APIs similar to the magnet pattern for supplying different handlers, I don't have any good ideas.
An alternate approach would be to have explicit names per error body type, which would resolve the issue of needing to rely on function overloading for linking. That would be similar to what I've presented above, but with longer function names. An advantage would be lining up a clearer path for dynamic languages.
I'm very much open to future ideation on this, I don't think any particular implementation stands out currently.

you proposal looks reasonable to me ... i assume handleError and handleBadRequest is meant to be the same method? ... we probably want to be able to handle list of ErrorIndex so that we validate all fields at once

An advantage would be lining up a clearer path for dynamic languages.

^--- are dynamic languages target for guardrail?
so the idea is to generate multiple map???Error and one handleBadRequest? perhaps it should be called handleInvalidRequest?
i'm not really sure how users would create one common handler in such scenario considering the type ???Response.BadRequest will differ based on ??? - or am i missing something?


Publish a four-part mini-blog series about Notebook issues and how Kedro can resolve them

This picks up from where #2461 began as a four-part mini-blog series about issues a Notebook user might experience and how Kedro can resolve them.
There may ultimately be a fifth section which pulls each together and creates an über-post of "How to use Kedro to ease yourself out of the pain of Notebooks" but that's TBD. This ticket covers the creation, publication and distribution of the four posts by @amandakys

Super excited about this 🙌🏽  and happy to brainstorm or collaborate in any way!

I have made a set of changes over on Notion and this is now ready for review and feedback from @astrojuanlu and potentially @noklam if time, and then final readthrough by @amandakys to ensure she's happy with the final edit.
Juan Luis and I have scheduled time on 2nd Oct for this given our schedules in coming days, so this will be on hold until then.

I have dropped a few comments in the notes. I am thinking instead of showing all the rough edges of Kedro and unstable component (ConfigLoader). Should we just switch to OmegaConfigLoader and wait until some of the changes are in-place? It's nice to explain to our user what they may need to change, better if they don't even have to!
This also depends on the plan to release this series, do we have a rough target date?
These tickets are going to affect this series:

https://github.com/kedro-org/kedro/issues/2971
https://github.com/kedro-org/kedro/issues/2967
https://github.com/kedro-org/kedro/issues/2965

Closing this one, since the blog post was published already https://kedro.org/blog/add-kedro-to-your-data-science-notebook


Enhancement: don't crash on invalid empty attachments when parsing Outlook messages

Updates dependency on outlook-message-parser to include the fix for https://github.com/bbottema/outlook-message-parser/issues/69

Yikes, this clashes with #318. I'll have to revert the fix and focus the fix on embedded images alone.

Released in 8.3.4.


Lead icon + radious?

Very good library, by the way can I add lead icon and radious property?

This plugin uses native toast for android for which icons is not possible


Display trail importance hierarchy

Long, important trails such as the Appalachian Trail form the arteries of the trail network. We should prioritize and emphasize these at low zooms to help orient people. We could consider dropping low-importance trails from low zoom levels to try and reduce tile size and visual clutter.
In OSM, trail hierarchy is often given in the network tag on route relations, such as network=iwn/nwn/rwn/lwn for walking and hiking trails. However, route relation data on ways is not currently consumable by planetiler.

You could also hide path and track with informal=yes at low zoom levels according the Trail Access Project.

You could also hide path and track with informal=yes at low zoom levels

Maybe… we already render informal=yes as dotted lines, and at the moment we hide no access trails by default.


Revert: unset LD_PRELOAD for magisk

Magisk added back 64-bit binaries in recent versions which are getting enforced.

I havent had time to mess with Android lately..
I will upgrade once I get time

Sure, would just like to add where I got this from:
"The build scripts will now build magiskboot as static binary. The only non-static thing is the magisk main binary, and it is also the only one with 64 bit support."
--Quoting topjohnwu in Magisk Slack

@lazerl0rd Do you know which version of magisk main binary ships 64bit support.
This is running latest stable v18.1
 /sbin/magisk -V
18100

/sbin/magisk.bin: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, BuildID[sha1]=f6c9d19c574a452872c09d5a4877659d4302d3bb, stripped

Linux localhost 3.18.91-13895453-QB20035970 #1 SMP PREEMPT Thu Oct 4 10:23:26 KST 2018 aarch64 Android
``

@cswl Possibly 18.2 then, which is rebranded to v19 beta (should be releasing soon).

Yeah v19 I.
https://twitter.com/topjohnwu/status/1111270398581268481
native 64 bit support!
Removed it for no reason .. and now boasts native support lol..

@cswl there was some reasoning IIRC, and to the point when they needed to add it back it needed some work. But I'm happy it's back now, as I needed it for Kali chroot-ing anyways :P.

I also need to release v3 of tsu and now that Magisk is finally doing stuff right..
I no longer need to add workaround.
I might try to find time later tonight

@cswl I got a little merge incoming to keep support for older versions too (just 3 lines so no biggie).


One fixms script / expansion of pol_axes to get third-axis orientation

Part of this request is the 'one script' to apply correction for both the beam direction and the frame the visibilities are in. it currently does NOT have the INSTRUMENT_DATA column feature we discussed.
I have also found a situation where the orientation of the third-axis changes throughout an observation. In my case it was happening to the data throughout a bandpass observation, where each field in the one MS had a different orientation. Splitting out the MS into a single field still carried with it all items from the original FEED table, even though a singly entry was used. The extra check I added ensures that the correct orientation can be deduced if a single FEED is referenced in the data, even if the FEED table has multiple entries.

Thanks @tjgalvin! Will merge into a dev branch and update the Docs before pulling into main.


Subtitles and Disabling ToC

Added two CLI options:

--disableTOC
--coverSub

The first is a boolean that disables the table of contents when present. The second allows you to pass a subtitle to the PDF #26 .
If you want a multi-line subtitle, simply add  tags between lines are both the subtitle and title are just HTML injections.
I've added these to the README and tried to make my modifications as minimal as possible.

@ksmarty thanks for your clean code. Thanks 👍


Pycharm on Mac does not recognize Splunk SDK

Team,
am having issues using the splunkSDK on my pycharm community edition. Basically, its not recognizing splunklib, though i added
I installed spunk sdk on mac but keep getting this problem via pycharm. i even added to PYTHONPATH=~/splunk-sdk-python. but still no luck.

/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/userMe/PycharmProjects/splunk/venv/bin/alerts.py
Traceback (most recent call last):
File "/Users/userMe/PycharmProjects/splunk/venv/bin/alerts.py", line 30, in
raise Exception("Add the SDK repository to your PYTHONPATH to run the examples "
Exception: Add the SDK repository to your PYTHONPATH to run the examples (e.g., export PYTHONPATH=~/splunk-sdk-python.
Process finished with exit code 1

Script:
#!/usr/bin/env python

Copyright 2011-2015 Splunk, Inc.

Licensed under the Apache License, Version 2.0 (the "License"): you may
not use this file except in compliance with the License. You may obtain
a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""A command line utility that prints out fired alerts."""
from future import absolute_import
from future import print_function
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(file), ".."))
from splunklib.client import connect
try:
from utils import parse
except ImportError:
raise Exception("Add the SDK repository to your PYTHONPATH to run the examples "
"(e.g., export PYTHONPATH=~/splunk-sdk-python.")
def main():
opts = parse(sys.argv[1:], {}, ".splunkrc")
service = connect(**opts.kwargs)
for group in service.fired_alerts:
    header = "%s (count: %d)" % (group.name, group.count)
    print("%s" % header)
    print('='*len(header))
    alerts = group.alerts
    for alert in alerts.list():
        content = alert.content
        for key in sorted(content.keys()):
            value = content[key]
            print("%s: %s" % (key, value))
        print()

if name == "main":
main()

Closing as we've replied to your email on the same topic 😃


GPU and NNAPI Delegate not available due to "dynamic-sized tensors "

Click to expand!
Issue Type
Support
Source
binary
Tensorflow Version
tf 2.5.0
Custom Code
Yes
OS Platform and Distribution
Windows 11
Mobile device
Android 10
Python version
3.6.0
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
Not used.
GPU model and memory
No response
Current Behaviour?
I am developing an RNN to process some time sequences. I am using both LSTM and GRU and need to convert the trained model to Tflite to use it under Android (version 10).
The problem is that despite my best efforts, I am unable to use the GPU and NNAPI delegates under the android device I am using due to the exception that is thrown:

java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors.

I state that I am not using CUDA / cuDNN since the laptop I am using does not have a GPU and the model I train is relatively simple.

I don't know if this depends on the batch size set to None, on the tensorflow version, on the tf.lite.OpsSet.SELECT_TF_OPS option being converted, or simply on the fact that this type of layers (LSTM, GRU) cannot support these types of delegates.

Standalone code to reproduce the issue
model = tf.keras.models.Sequential([
            tf.keras.layers.InputLayer(input_shape=(21 * 3 * 2 * 21, )),
            tf.keras.layers.Reshape((21, 3 * 2 * 21)),
            tf.keras.layers.LSTM(32, return_sequences=True),
            tf.keras.layers.Dropout(0.40, seed=42),
            tf.keras.layers.LSTM(32),
            tf.keras.layers.Dropout(0.50, seed=42),
            tf.keras.layers.Dense(27, activation='softmax')])

    # Model Compile
    model.compile(
        optimizer='adam',
        loss='sparse_categorical_crossentropy',
        metrics=['accuracy']
    )
        history = model.fit(
            X_train,
            y_train,
            epochs=2000,
            batch_size=256,
            validation_data=(X_val, y_val),
            callbacks=callbacks,
            shuffle=True,
        )

    model.save(model_save_path, include_optimizer=False)
    model = tf.keras.models.load_model(model_save_path)

    converter = tf.lite.TFLiteConverter.from_keras_model(model)
    converter.optimizations = [tf.lite.Optimize.DEFAULT]
    converter.experimental_new_converter=True
    converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS,tf.lite.OpsSet.SELECT_TF_OPS]

    tflite_quantized_model = converter.convert()

    open(tflite_save_path, 'wb').write(tflite_quantized_model)

    interpreter = tf.lite.Interpreter(model_path=tflite_save_path)
    interpreter.allocate_tensors()

Relevant log output
java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors.

Hi @francescoyou97 ! Could you please share the above as a gist (with Dataset)? Thank you!

https://gist.github.com/francescoyou97/7675ad6055d5e80ed264042587499a1f

train.zip

Is Ok?

@francescoyou97 ! I think this thread will answer your question. @sachinprasadhs ! Could you please look at this issue. Attached gist in 2.8, 2.9 and nightly . Thank you!

Thanks @mohantym. I will try your solutions.
I have currently managed to find a workaround that worked for me:
run_model = tf.function(lambda x: model(x))
input_shape = [1, model.inputs[0].shape[1]]
concrete_func = run_model.get_concrete_function(tf.TensorSpec(input_shape, model.inputs[0].dtype))

model.save(model_save_path, save_format='tf', include_optimizer=False, signatures=concrete_func)
model = tf.keras.models.load_model(model_save_path)

converter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_func])
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.experimental_new_converter=True
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS,tf.lite.OpsSet.SELECT_TF_OPS]

tflite_quantized_model = converter.convert()

open(tflite_save_path, 'wb').write(tflite_quantized_model)

Hi, Currently NNAPI acceleration is not supported when dynamic sized tensors are used, you can find the details from the tensorflow document here.
The only way now would be to have workaround solution like you're doing.


[FLINK-33149][build] Bump snappy to <IP_ADDRESS>

What is the purpose of the change
Bump the version of snappy to address a vulnerability.
Brief change log
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): yes
The public API, i.e., is any changed class annotated with no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

Closing this -- we can cherry-pick or fetch this from upstream.


Provide the ability to mount NFS using TCP

I'm having issues with processes inside containers intermittently getting stuck while performing I/O on host-mounted volumes. In these cases /proc/pid/stack points to nfs_file_fsync(), and there is a complaint in dmesg regarding NFS server availability, however, the server is happily running and mounts are, in general, still functional.
Mounting with proto=tcp instead of proto=udp fixes the issue.
I take it there are virtual network issues in boot2docker (packet loss?), but I'm not sure how to debug them. tcpdump on host shows that server replies to all requests, tcpdump in container shows nothing (in-kernel NFS client getting to packets first?) and I'm not sure how to install tcpdump into boot2docker vm:
$ tce-load -wi tcpdump
Downloading: netfilter-4.4.12-boot2docker.tcz
Connecting to repo.tinycorelinux.net (<IP_ADDRESS>:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: netfilter-4.4.12-boot2docker.tcz.md5.txt: No such file or directory
Error on netfilter-4.4.12-boot2docker.tcz

What VM provider are you using?
NFS is running in udp mode because we ran into a lot of errors with tcp mode when this was first all set up -- that was back when we were using Vagrant and VirtualBox 4.x, though, so maybe it's time to revisit and try tcp again.
I'm not sure about installing tcpdump in tinycore either.

I'm using xhyve.


simplified module names not working

Hi all,
while converting all my playbooks, plugins and stuff to ansible 2.10+ I found that simplified module names won't work with mitogen and 3rdparty modules. FQCN work, though. Simplified names of "common" collections like community.general also work, because there's a plugin_routing for those modules hardcoded in ansible itself.

ansible version: 2.10.6
mitogen version: v0.3.0rc1 and master
python version: 3.9.2 (/usr/bin/python is a symlink to /usr/bin/python3)
os: Fedora 33

For this bug report I created two repositories, one for the collection and one for the playbook examples.
To reproduce, follow these steps:
# fetch the latest stable ansible 2.10 version
git clone --depth 1 -b v2.10.6 https://github.com/ansible/ansible.git /var/tmp/ansible2106

# setup environment
. /var/tmp/ansible2106/hacking/env-setup

# fetch the examples
git clone --depth 1 --recursive https://github.com/philfry/ansiblemitogentest.git /var/tmp/mitogentest

# install the dummy collection
ansible-galaxy collection install -r /var/tmp/mitogentest/requirements.yml

Then run the example playbooks.

play-example01.yml uses the linear stragegy (thus not using mitogen) and simplified module names. This works:

TASK [debug] *************************************************************************************
ok: [localhost] => {
    "msg": "using simplified module name, not using mitogen"
}

TASK [dummy : print hello world] *****************************************************************
[WARNING]: this is a warning
changed: [localhost] => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": true, "msg": "Hello world"}

play-example02.yml uses mitogen_linear and FQCN. This works, too:

TASK [debug] *************************************************************************************
ok: [localhost] => {
    "msg": "using fqcn, using mitogen"
}

TASK [dummy_noshort : print hello world] *********************************************************
[WARNING]: this is a warning
changed: [localhost] => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": true, "msg": "Hello world"}

play-example03.yml uses mitogen_linear and simplified module names. This breaks:

TASK [debug] *************************************************************************************
ok: [localhost] => {
    "msg": "using simplified module name, using mitogen"
}

TASK [dummy : print hello world] *****************************************************************
fatal: [localhost]: FAILED! => {"msg": "The module hello was not found in configured module paths"}

Attached: ANSIBLE_DEBUG=1 ansible-playbook play-example03.yml -vvvvv
play-example03.txt

fwiw, also affects ansible 2.9.18 with mitogen 0.2.9.

Any plans to try to address this soon?


[SPARK-48946][SQL] NPE in redact method when session is null

What changes were proposed in this pull request?

If we call DataSourceV2ScanExecBase redact method from a thread that don't have a session in thread local we get an NPE. Getting stringRedactionPattern from conf could prevent this problem as conf checks if session is null or not. We also use this in DataSourceScanExec trait.
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala#L93-L95
Why are the changes needed?

To prevent NPE when session is null.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Existing UTs.
Was this patch authored or co-authored using generative AI tooling?

No

Merged to master for Apache Saprk 4.0.0-preview2.
Welcome to the Apache Spark community, @mikoszilard.
I added you to the Apache Spark contributor group and assigned SPARK-48946 to you.

Thank you very much @dongjoon-hyun. I'm really happy that I could start contributing.


Set build target to node12

Set build target to node12, since AWS SDK uses async generator functions, which are not supported by esbuild for targets below es2018 (default was es2017)

Think this works ok. Seems you can pass target as an array. But think it works ok.

Think this works ok. Seems you can pass target as an array. But think it works ok.