server written in python using socket is not accepting string type data(any spaces)

import socket
import threading

sock =  socket.socket(socket.AF_INET, socket.SOCK_STREAM)

sock.bind(('', 10000))


connections = []

def handler(c, a):
        global connections
        while True:
            data = c.recv(1024)
            for connections in connections:
                if not data:
while True:
    c, a = sock.accept()
    cThread = threading.Thread(target=handler, args=(c,a))
    cThread.daemon = True

All topic

Which version of the Ariadne Myth was written/told first?

Ariadne was a daughter of Minos. She helped Theseus traverse the labyrinth in exchange to be taken with him away.

In one version, Dionysus tells Theseus that he wants Ariadne and to leave her on an island.

In another, Theseus plain out abandons her on an island without divinity telling him to do so.

All topic

I’m looking for a Monero miner written in Java

I’m looking for a Monero miner written in Java. Can anyone link me one?

All topic

Sentence written w/ and w/o participles – passive vs active voice

In Nicholas J. Brown’s book, exercise 27/4 has a sentence, roughly expressing the same idea (with and without Past Passive Participles [short,perfective,transitive]) and the question and answer are in the pictures.

My primary question was about the last pair of PPP and past perfective verb, but an additional very related part may ask about mood – I’m not sure it is a good idea to split into two questions…

to translate to English w/ and w/o PPPs

and translations;

answers for w/ and w/o

Clearly, PPPs are passive, and I would say that past tense verbs are active. Here are some from the two situations;

  1. уже проданы / уже продали : ‘had already been sold’ / ‘had already sold’ – Is this a passive construction versus an active construction?

  2. В среду было объявлено / В среду объявили : ‘On Wednesday it was announced’ / ‘On Wednesday they announced’ – Also seems passive vs active

  3. было написано / написал : ‘(it) was written’ / ‘(the letter) wrote’ – Again, passive vs active voice.

  4. будут куплены / купят : ‘would be bought’ / ‘(they) would buy’ – Again, passive and then active.

    4b. An aside, is this true (maybe this is starting to mix tense and mood…) ‘would be bought’ = ‘will be bought’ Actually I would have assumed this conditional English translation come from a Russian sentence with ‘бы’ in it?

But what happened here? Why the same?

  1. Мы были очень удивлены / Мы очень удивились : ‘We were very surprised’ — in both cases

    Should the first situation be translated as: ‘It was surprising to us…’ – too much like impersonal dative case construction?

    Maybe ‘It very much surprised us’?

PS If necessary I will reword my sentence upon receiving suggestions.

All topic

Verifying these resources are accurate written representations for each language using Latin script

I am a bit confused by the languages that use the Latin script, not sure if the version of the Latin script they are using is a transliteration of something else, or if that is actually what the people who speak the language use to write. I’m wondering if one could say if these resources are accurate representations of the selected languages that use the Latin script (that is, this is how each language would be written, at least the symbols part, not necessarily the grammar):

  • Xhosa
  • Zulu
  • Swahili
  • Danish
  • Basque
  • Hawai’ian
  • Maori
  • Navajo
  • Quechua
  • Yoruba
  • Welsh
  • Nahuatl
  • Lokele Kele
  • Esperanto

I would like to know if these linked texts are actually how the respective languages are written (or if they are some undesirable variation). That is, if all the diacritics and whatnot are what is actually used in the common language (or at least in the formal written language). That way I would know if it is a good resource for learning the language.

Part of the reason I am getting confused is after having looked through the IPA for languages like Xhosa. They have all those click consonants, yet from what it looks like they are actually using the Latin script to write it down. This means that the Latin Script letters take on different meaning. And I’m not sure if what that link shows, such as [gq] for [ǃʱ], or [ngc] for [ǀʱ̃], or simple [c] for [ǀ] or [x] for [ǁ] is literally how they write it. Selecting a random word from here such as [wesixhenxe], here is how I would write it: /uesiǁʰenǁe/. Which is why I’m asking this question, I don’t know if these texts map accurately to the transliterations suggested throughout Wikipedia.

Also, if there are any better resources for these languages I would love to know!

All topic

To whom was “To the Hebrews” written?

Is “To the Hebrews” written to Jews in contradistinction to Hellenized Jews? Or in distinction to gentiles? Samaritans? Christians?

Based on the title and the content it seems to me that the letter is written specifically to the Hebrew Jews as distinct from the Hellenized Jews.

This then raises the question of whether the author is himself a Hebrew or Hellenized Jew.

This in turn raises the question of whether the author and the community to whom he writes are “on the same page” or not.

All topic

Proof that the Kerr metric may be written in orthogonal form

Prove or disprove that the Kerr metric can be expressed in a set of globally
orthogonal coordinates.

If this is impossible, then prove it for a set of locally orthogonal coordinates. If this is not possible for another reason, please provide proof of it (hand-wavy arguments will not suffice!).

My motivation for this question stems from my understanding that any metric may be locally written in orthogonal form (need a citation though), and only some special ones may be done as such globally. Is it true that it can always be done “locally?” And when can it be done globally? (why?)

A metric written in an orthogonal set of coordinates has no off-diagonal terms. The Kerr metric always seems to have at least one off-diagonal term. I understand physically why off-diagonal terms are present in specific coordinates, but people seem to take it as a fact that it can never be transformed away or they say it is obvious that it can be.

Is it as simple as using a co-rotating timelike observer near infinity to be able to transform away the off-diagonal term(s) of the Kerr metric?

This question was similarly asked here, but the answers were unsatisfying because they are all stated as fact without citation or proof.

Lastly, would this be better for the Mathematics Stack Exchange? Is it purely a question of differential geometry?

All topic

Json deserialization issue invoking an AWS lambda written in Kotlin using Spring Cloud Function

I have deployed an AWS Lambda written in Kotlin using Spring Cloud Function.
When I test it with a request json


I get following error:

"No suitable constructor found for type [simple type, class step.Request]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)n at [Source: lambdainternal.util.NativeMemoryAsInputStream@4b53f538; line: 1, column: 2]",
        "errorType": "com.fasterxml.jackson.databind.JsonMappingException",
        "stackTrace": [

If I run my application locally and make a POST request at http://localhost:8080/function with the same request json , it works fine.

Although I know I can get this working by adding @JsonCreator and @JsonProperty annotations on Request class but I want to avoid it and want to understand the reason of failure when running it as lambda.

Any inputs much appreciated. Thanks in advance

Relevant code as follows:

package step

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Primary
import org.springframework.stereotype.Component
import java.util.function.Function

class F1 {

    fun objectMapper() = ObjectMapper().apply {

data class Request (val id: String, val name: String)
data class Response(val message: String)

class Handler : SpringBootRequestHandler()

class Function :
    Function {
    override fun apply(t: Request): Response {

        return Response("${}:${}")


fun main(args: Array) {, *args)



import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
import org.jetbrains.kotlin.noarg.gradle.NoArgExtension

buildscript {
    var springBootVersion: String by extra
    springBootVersion = "2.0.0.RELEASE"

    var wrapperVersion: String by extra
    wrapperVersion = "1.0.12.BUILD-SNAPSHOT"

    var shadowVersion: String by extra
    shadowVersion = "2.0.1"

    var kotlinVersion: String by extra
    kotlinVersion = "1.2.70"

    repositories {

    dependencies {
        classpath(kotlinModule("gradle-plugin", kotlinVersion))

var springCloudVersion: String by extra
springCloudVersion = "1.0.0.BUILD-SNAPSHOT"

var awsLambdaVersion: String by extra
awsLambdaVersion = "1.1.0"

var awsLambdaEventsVersion: String by extra
awsLambdaEventsVersion = "1.2.1"

extra["reactor.version"] = "3.1.7.RELEASE"

plugins {
    kotlin("jvm") version "1.3.0-rc-57"

group = "stepfunctions"
version = "1.0-SNAPSHOT"

apply {

repositories {
    maven { setUrl("") }


dependencies {

    compile("org.jetbrains.kotlin", "kotlin-stdlib-jdk8", extra.get("kotlinVersion") as String)
    compile("org.jetbrains.kotlin", "kotlin-reflect", extra.get("kotlinVersion") as String)
    compile("", "spring-cloud-function-adapter-aws", extra.get("springCloudVersion") as String)
    compile("", "spring-cloud-starter-function-web", extra.get("springCloudVersion") as String)

    compileOnly("com.amazonaws", "aws-lambda-java-core", extra.get("awsLambdaVersion") as String)


tasks.withType {
    kotlinOptions.jvmTarget = "1.8"

tasks.withType {
    classifier = "function"
    manifest {
                "Start-Class" to "step.F1",
                "Main-Class" to "step.F1"

    dependencies {

    transform( {
        paths = listOf("META-INF/spring.factories")
        mergeStrategy = "append"

All topic

Why is this 4th-note written as two 8th-notes tied together?

In the second measure of the first voice, the 8th notes are tied together in pairs. Why would it be notated this way instead of as fourth-notes?

enter image description here

All topic

Total LBA written grows fast

OS: Ubuntu 16.04

HDD: Samsung SSD 750 EVO 250GB

i am web developer. my desktop (2 years old) works 24/7.
i have noticed big numbers of “Total LBAs Written” in SMART-statistics. tried to identify what is the reason but can’t.

interested smartctl statistics:

  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       16380
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       66776620226 (31842 GB)

in result i got: 31842 GB/16380 hours = 1.94 Gb/hour or 46.65 GB/day.
i think it is very big numbers for my case. i don’t have any software, which can write such amount of data every day.

i tried to run iotop in cumulative mode (TOP-10 sorted by DISK WRITE for ~2 days):

Total DISK READ :       0.00 B/s | Total DISK WRITE :    0.00 B/s
Actual DISK READ:       0.00 B/s | Actual DISK WRITE:    0.00 B/s
  TID  PRIO  USER     DISK READ DISK WRITE>  SWAPIN      IO    COMMAND                                                                                                       
  191 be/3 root          0.00 B      3.90 G  0.00 %  7.92 % [jbd2/sda1-8]
 8648 be/4 kondrush     52.14 M      3.00 G  0.00 %  0.14 % mysql-workbench-bin
 1308 be/4 mysql         4.00 K   1159.27 M  0.00 %  0.00 % mysqld
 5077 be/4 kondrush     21.22 M    920.98 M  0.00 %  0.02 % chrome [LevelDBEnv.IDB]
 4715 be/4 kondrush      2.52 M    286.57 M  0.00 %  0.00 % chrome [Chrome_SyncThre]
 2119 be/4 kondrush    384.00 K    261.57 M  0.00 %  0.00 % gnome-keyring-daemon --daemonize --login
 1163 be/4 root          9.76 M    182.50 M  0.00 %  0.00 % python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
 4421 be/4 kondrush     36.00 M     99.48 M  0.00 %  0.00 % chrome [Chrome_HistoryT]
26121 be/4 kondrush    180.00 K     94.10 M  0.00 %  0.03 % chrome [TaskSchedulerFo]
 8779 be/4 kondrush     17.47 M     67.33 M  0.00 %  0.00 % 

so using iotop-data it was written about 10GB+. but comparing “Total LBAs Written”-column from smartctl for this 2 days i see that it was written ~51GB.

main question:

how i can identify which software writes so much LBA and why smartctl-counts are different of iotop-counts

All topic