identifier
stringlengths
7
768
collection
stringclasses
3 values
open_type
stringclasses
1 value
license
stringclasses
2 values
date
float64
2.01k
2.02k
title
stringlengths
1
250
creator
stringlengths
0
19.5k
language
stringclasses
357 values
language_type
stringclasses
3 values
word_count
int64
0
69k
token_count
int64
2
438k
text
stringlengths
1
388k
__index_level_0__
int64
0
57.4k
https://stackoverflow.com/questions/42867332
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Rahul Sharma, Santiago Palenque, https://stackoverflow.com/users/1970832, https://stackoverflow.com/users/7729351
English
Spoken
1,134
4,820
ANDROID ERROR: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState Help please! I've been trying to figure this out for 2 days and tried almost everything I could find, but with no luck. The app builds ok, but then when I Make Project I get this error. Running Android Studio 2.3 , jdk 1.8 on Windows 10 64-bit Already tried using Jack and guava version 20.0 This is my gradle.build: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files // Realm classpath "io.realm:realm-gradle-plugin:3.0.0" //GCM classpath 'com.google.gms:google-services:3.0.0' // Retrolambda , https://github.com/evant/gradle-retrolambda/ classpath 'me.tatarka:gradle-retrolambda:3.5.0' // https://github.com/JakeWharton/butterknife classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1' } } allprojects { repositories { mavenCentral() jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject.buildDir } and gradle.build in the app dir: import groovy.json.JsonOutput import groovy.json.JsonSlurper def generateFireBaseJsonConfiguration(file) { def properties = loadPropertiesFile(file) def templateFile = new File("google-services.json.template") def json = new JsonSlurper().parseText(templateFile.text) // populate properties json.project_info.project_number = properties['FirebaseProjectInfoNumber'] json.project_info.firebase_url = properties['FirebaseProjectInfoUrl'] json.project_info.project_id = properties['FirebaseProjectInfoId'] json.project_info.storage_bucket = properties['FirebaseProjectInfoBucket'] json.client[0].client_info.mobilesdk_app_id = properties['FirebaseClientInfoMobileSDKAppId'] json.client[0].client_info.android_client_info.package_name = "org.openstack.android.summit" json.client[0].api_key[0].current_key = properties['FirebaseClientApiKeyCurrent'] json.client[0].oauth_client[0].client_id = properties['FirebaseClientOAUTH2ClientClientId1'] json.client[0].oauth_client[0].client_type = 3 json.client[0].oauth_client[1].client_id = properties['FirebaseClientOAUTH2ClientClientId2'] json.client[0].oauth_client[1].client_type = 3 def jsonFile = new File("app/google-services.json") jsonFile.write(JsonOutput.toJson(json)) } buildscript { repositories { mavenCentral() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'me.tatarka.retrolambda' repositories { mavenCentral() maven { url 'https://maven.fabric.io/public' } maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' } flatDir { dirs 'libs' } } def loadPropertiesFile(properties_file){ Properties props = new Properties() println 'loading properties file : '+ properties_file; props.load(new FileInputStream(file(properties_file))); return props; } def getPropertyFromFile(properties_file, key){ Properties props = loadPropertiesFile(properties_file); return props[key] } def expandManifest(flavor, properties_file) { println 'expanding manifest for: ' + flavor Properties props = loadPropertiesFile(properties_file); return [ googleMapApiKey: props['googleMapApiKey'], fabricApiKey: props['fabricApiKey'], parseApplicationId: props['parseApplicationId'], parseClientKey: props['parseClientKey'], ServiceClientId: props['ServiceClientId'], ServiceClientSecret: props['ServiceClientSecret'], NativeClientId: props['NativeClientId'], NativeClientSecret: props['NativeClientSecret'], NativeClientReturnUrl: props['NativeClientReturnUrl'], ResourceServerBaseUrl: props['ResourceServerBaseUrl'], IdentityProviderBaseUrl: props['IdentityProviderBaseUrl'], WebSiteBaseUrl: props['WebSiteBaseUrl'], YouTubeAndroidPlayerAPIKey: props['YouTubeAndroidPlayerAPIKey'], BasicAuthUser: props['BasicAuthUser'], BasicAuthPass: props['BasicAuthPass'], ] } android { signingConfigs { config { } } dexOptions { javaMaxHeapSize "4g" //specify the heap size for the dex process preDexLibraries = false } compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { applicationId "org.openstack.android.summit" minSdkVersion 16 targetSdkVersion 25 versionCode 72 versionName "2.0" multiDexEnabled true testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' } buildTypes { debug { // Settings for Crashlytics Beta Distribution ext.betaDistributionReleaseNotes = "Release Notes for this build." ext.betaDistributionEmails = getPropertyFromFile("../summit-app.debug.properties", "BetaDistributionEmails") ext.enableCrashlytics = false } release { minifyEnabled true //debuggable true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { development { generateFireBaseJsonConfiguration("../summit-app.debug.properties") ext.betaDistributionEmails = getPropertyFromFile("../summit-app.debug.properties", "BetaDistributionEmails") manifestPlaceholders = expandManifest("beta", "../summit-app.debug.properties") } production { generateFireBaseJsonConfiguration("../summit-app.properties") manifestPlaceholders = expandManifest("production", "../summit-app.properties") } beta { generateFireBaseJsonConfiguration("../summit-app.debug.properties") manifestPlaceholders = expandManifest("beta", "../summit-app.debug.properties") } } packagingOptions { pickFirst 'META-INF/license.txt' pickFirst 'META-INF/LICENSE.txt' pickFirst 'META-INF/NOTICE.txt' // to avoid error file included twice exclude 'META-INF/rxjava.properties' } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { jniLibs.srcDirs = ['libs'] } } variantFilter { variant -> def names = variant.flavors*.name if (names.contains("development") && variant.buildType.name == "release") { variant.ignore = true } if (names.contains("production") && variant.buildType.name == "debug") { variant.ignore = true } if (names.contains("beta") && variant.buildType.name == "debug") { variant.ignore = true } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:25.2.0' compile 'com.android.support:recyclerview-v7:25.2.0' compile 'jp.wasabeef:recyclerview-animators:2.2.5' compile 'com.android.support:design:25.2.0' compile 'joda-time:joda-time:2.9.4' compile 'com.google.code.gson:gson:2.7' // Dagger 2 and Compiler // https://github.com/google/dagger compile 'com.google.dagger:dagger:2.8' annotationProcessor 'com.google.dagger:dagger-compiler:2.8' // Google's OAuth library for OpenID Connect // See https://code.google.com/p/google-oauth-java-client/wiki/Setup compile('com.google.oauth-client:google-oauth-client:1.22.0') { exclude group: 'xpp3', module: 'xpp3' exclude group: 'org.apache.httpcomponents', module: 'httpclient' exclude group: 'junit', module: 'junit' exclude group: 'com.google.android', module: 'android' } compile 'com.google.api-client:google-api-client-android:1.21.0' // Google's JSON parsing, could be replaced with Jackson compile 'com.google.api-client:google-api-client-gson:1.21.0' compile 'org.modelmapper:modelmapper:0.7.5' compile('com.github.claudioredi:Ranger:da908aa') { exclude module: 'joda-time' } // progress indicator compile 'cc.cloudist.acplibrary:library:1.2.1' // pop up alerts compile 'com.github.claudioredi:sweet-alert-dialog:9c1be1a' // image library compile 'com.facebook.fresco:fresco:0.11.0' // simulate list with a linear layout compile 'com.github.frankiesardo:linearlistview:1.0.1@aar' // page indicator compile 'com.githang:viewpagerindicator:2.4.2@aar' // Tags compile 'com.github.kaedea:Android-Cloud-TagView-Plus:5a49f4f' // google maps compile 'com.google.android.gms:play-services-maps:10.0.1' // to get rid of UNEXPECTED TOP-LEVEL EXCEPTION: due oo many method references: (max is 65536) // https://github.com/BoltsFramework/Bolts-Android compile 'com.android.support:multidex:1.0.1' compile 'com.parse.bolts:bolts-applinks:1.4.0' compile files('libs/YouTubeAndroidPlayerApi.jar') // material design spiner compile('com.weiwangcn.betterspinner:library-material:1.1.0') { exclude group: 'com.android.support', module: 'appcompat-v7' } compile('com.crashlytics.sdk.android:crashlytics:2.6.1@aar') { transitive = true; } testCompile 'org.mockito:mockito-core:2.0.86-beta' testCompile 'junit:junit:4.12' testCompile 'org.robolectric:robolectric:3.1' testCompile 'org.powermock:powermock-module-junit4:1.6.5' testCompile 'org.powermock:powermock-module-junit4-rule:1.6.5' testCompile 'org.powermock:powermock-api-mockito:1.6.5' testCompile 'org.powermock:powermock-classloading-xstream:1.6.5' androidTestCompile 'junit:junit:4.12' androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test:rules:0.5' androidTestCompile 'com.android.support:support-annotations:23.4.0' if (file('libs/safe_storage.aar').exists()) { println('adding dependency safe_storage.aar ...') productionCompile "org.openstack.android.summit.safestorage:safe_storage@aar" } if (file('libs/safe_storage-testing.aar').exists()) { println('adding dependency safe_storage-testing.aar ...') betaCompile "org.openstack.android.summit.safestorage:safe_storage-testing@aar" } if (file('libs/safe_storage_debug.aar').exists()) { println('adding dependency safe_storage_debug.aar ...') developmentCompile "org.openstack.android.summit.safestorage:safe_storage_debug@aar" } // http://facebook.github.io/stetho and https://github.com/uPhyca/stetho-realm compile 'com.facebook.stetho:stetho:1.4.2' compile 'com.uphyca:stetho_realm:2.0.0' // retrofit (REST API) compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.okhttp3:okhttp:3.5.0' compile 'com.squareup.okhttp3:logging-interceptor:3.5.0' compile 'com.squareup.retrofit2:converter-gson:2.1.0' // Espresso Dependencies androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test:rules:0.5' androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2' androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2', { exclude module: 'support-annotations' exclude module: 'support-v4' exclude module: 'recyclerview-v7' exclude module: 'design' }) configurations.all { resolutionStrategy { force 'com.android.support:support-annotations:23.0.1' } } compile 'com.google.firebase:firebase-core:10.0.1' compile 'com.google.firebase:firebase-messaging:10.0.1' // RXJAVA // HACK to get rid of an error related to realm https://github.com/realm/realm-java/issues/1963 // this is needed bc REALM dependency compile('io.reactivex:rxjava:1.1.7') { exclude module: 'rx.internal.operators' } // RXJAVA 2.x compile 'io.reactivex.rxjava2:rxjava:2.0.5' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0' compile 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' } apply plugin: 'realm-android' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.jakewharton.butterknife' Finally this is the console log: ... :app:incrementalDevelopmentDebugJavaCompilationSafeguard :app:javaPreCompileDevelopmentDebug :app:compileDevelopmentDebugJavaWithJavac ... C:\android_projects\summit-app-android\app\src\main\java\org\openstack\android\summit\OpenStackSummitApplication.java:17: error: cannot find symbol import org.openstack.android.summit.dagger.components.DaggerApplicationComponent; ^ symbol: class DaggerApplicationComponent location: package org.openstack.android.summit.dagger.components warning: unknown enum constant Scope.LIBRARY_GROUP ... * What went wrong: Execution failed for task ':app:compileDevelopmentDebugJavaWithJavac'. > java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V Forgot to mention: also tried adding JAVA_HOME env variable and pointing jdk location instead of using embedded one The problem is because your code is compiled with different version of google-guava jar and the same google-guava jar version is not there in your class path at runtime. Possible duplicate of How do I fix a NoSuchMethodError? Thank you @RahulSharma ! I tried adding classpath 'com.google.guava:guava:21.0' to my gradle.build, but the problem remains, is this what you are suggesting? If not, how can I add the google-guava jar version I need? Thanks again No. Add a line to your java program: System.out.println(System.getProperty("java.class.path")); and see the same google-guava jar is present in classpath. check if there are multiple jar versions available in classpath then remove older version of jar from there. Ok, but the program is not compiling, so I can only add this line to build.gradle, and there It prints out gradle-3.3 Thanks to Rahul I figured out how to solve this. As he mentioned the problem was that I was including different versions of guava. So first I ran this in Android Studio terminal : gradlew -q dependencies app:dependencies --configuration compile where "app" is your project. This showed me a list of all dependencies and saw that different versions of guava where being included. Then I excluded each repeated version of guava from the included projects like this: testCompile ('org.robolectric:robolectric:3.1') { exclude module: 'guava' } Hope this helps someone :)
19,865
https://math.stackexchange.com/questions/1649699
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
John B, copper.hat, https://math.stackexchange.com/users/27978, https://math.stackexchange.com/users/301742, https://math.stackexchange.com/users/304742, integralSuperb
English
Spoken
273
657
Chain rule for variational derivatives and differentiation of an integral? Assume that I have the following functional: $$ F[u_1,u_2,...u_N,\nabla u_1,...,\nabla u_N,...;t]=\int_{\Omega} f( u_1(x,t),u_2(x,t),...,u_N(x,t),\nabla u_1 , \nabla u_2,... ) dV $$ where $\Omega \subseteq \mathbb{R}^k$ . Is it true that: $$ \frac{dF}{dt}= \int_{\Omega} \Sigma_{i=1}^N \frac{\delta F}{\delta u_i } \frac{\partial u_i}{\partial t} $$ ? If so, will you please explain why? Thanks in advance Presumably you mean $\Omega \subset \mathbb{R}^k$. fixed it . thanks This is basically the chain rule. The problem is how you move the derivative into the integration, i.e., why $$ \frac{dF}{dt}=\int\frac{df}{dt} $$ hold. There are different ways to justify the above equation. You may put $f\in L^\infty$ or $\Omega$ is bounded and $f$ is uniformly conts. I would suggest you to read page 454 about this book to get more ideas. Yes, with appropriate hypotheses (on $f$ and/or on $\Omega$), one can pass the derivative inside the integral, and so the second identity follows from $$ \frac{d}{dt}f( u_1(x,t),u_2(x,t),...,u_N(x,t) )=\sum_{i=1}^N\frac{\partial F}{\partial u_i}( u_1(x,t),u_2(x,t),...,u_N(x,t) )\frac{\partial u_i}{\partial t}(x,t). $$ This property is usually called Leibniz's rule . Jonas, thanks, but I specifically mean for variational derivatives. For example, if $f$ is also a function of $\nabla u _1 $ , is it true to pass to variational derivatives and not $\frac{\partial F}{\partial u_i}$? Thanks I see. Well, you did write $F[t]$ which as it is should be interpreted as $F(t)$ (you wrote no functions). As it is, it would be what is in my answer. :) I would suggest clarifying the question first. Fixed it. I hope I made myself clear now. Thanks a lot anyway... Hope you will still be able to help
29,630
https://fa.wikipedia.org/wiki/%DA%AF%D8%B1%D9%87%D8%A7%D8%B1%D8%AA%20%D8%A8%D8%B1%D8%A7%DB%8C%D8%AA%D9%86%D8%A8%D8%B1%DA%AF%D8%B1
Wikipedia
Open Web
CC-By-SA
2,023
گرهارت برایتنبرگر
https://fa.wikipedia.org/w/index.php?title=گرهارت برایتنبرگر&action=history
Persian
Spoken
77
251
گرهارت برایتنبرگر (؛ زادهٔ ) بازیکن فوتبال اهل اتریش بود. از باشگاه‌هایی که در آن بازی کرده‌است می‌توان به باشگاه فوتبال مشلان، باشگاه فوتبال ردبول زالتسبورگ، و باشگاه فوتبال آستریا زالتسبورگ اشاره کرد. وی همچنین در تیم ملی فوتبال اتریش بازی کرده‌است. منابع افراد زنده بازیکنان باشگاه لاسک بازیکنان بوندس‌لیگا اتریش بازیکنان تیم ملی فوتبال اتریش بازیکنان جام جهانی فوتبال ۱۹۷۸ بازیکنان فوتبال اهل اتریش بازیکنان فوتبال دور از وطن در بلژیک زادگان ۱۹۵۴ (میلادی) مدافعان فوتبال
35,682
https://es.wikipedia.org/wiki/Tyler%20Dorsey
Wikipedia
Open Web
CC-By-SA
2,023
Tyler Dorsey
https://es.wikipedia.org/w/index.php?title=Tyler Dorsey&action=history
Spanish
Spoken
662
1,168
Tyler Quincy Dorsey (en griego Τάιλερ Κουίνσι Ντόρσεϊ, Pasadena, California, ) es un baloncestista estadounidense nacionalizado griego, que juega en la plantilla del Fenerbahçe Beko de la liga de Turquía. Con 1,96 metros de estatura, juega en la posición de escolta. Trayectoria deportiva Primeros años Jugó sus tres primreros años de secundaria en el St. John Bosco High School de Bellflower (California), pero el último fue transferido al Maranatha High School de su ciudad natal, donde esa temporada promedió 34,0 puntos, 10,4 rebotes, 3,7 asistencias y 1,9 robos de balón por partido, finalizando en dobles figuras en los 30 partidos que disputó, sobrepasando los 30 puntos en 20 de ellos. A pesar de ser elegido el mejor jugador número 23 de su edad, no fue seleccionado para disputar en McDonald's All-American Game. Inicialmente tuvo la intención de cursar sus estudios universitarios en Arizona, pero finalmente se decantó por la Universidad de Oregón. Universidad Jugó dos temporadas con los Ducks de la Universidad de Oregón, en la que promedió 14,1 puntos, 3,9 rebotes y 1,8 asistencias por partido, En su primera temporada fue incluido en el mejor quinteto de novatos de la Pac-12 Conference, y también en el mejor quinteto del torneo, algo que repetiría al año siguiente, en el torneo de 2017 en el que alcanzaron la final four en la que cayeron ante los finalmente campeones, North Carolina. Estadísticas Profesional Fue elegido en la cuadragésimo primera posición del Draft de la NBA de 2017 por los Atlanta Hawks, equipo con el que firmó por dos temporadas. El 7 de febrero de 2019, es traspasado a los Memphis Grizzlies a cambio de Shelvin Mack. Fue asignado a los Memphis Hustle, debutando al día siguiente. Llegó a disputar 21 encuentros con el primer equipo, 11 de ellos como titular. El 17 de agosto de 2019, firma con el Maccabi Tel Aviv de la Israeli Premier League por una temporada, y renovando por otra más al término de la misma. Allí gana dos ligas consecutivas. El 23 de agosto de 2021, firma por el del Olympiakos B. C. de la A1 Ethniki por una temporada. Allí gana la liga y la copa, siendo MVP de la final. En julio de 2022 regresa a la NBA al fichar por los Dallas Mavericks, con un contrato dual de un año. Pero tras únicamente tres encuentros con Dallas y otros tantos el filial, el 26 de diciembre es cortado. El 7 de enero de 2023, es readquirido por los Texas Legends, jugando en la G League hasta el 25 de febrero. El 1 de marzo de 2023, firma un contrato con el Fenerbahçe Beko de la Basketbol Süper Ligi turca, hasta 2025. Selección nacional Dorsey fue preseleccionado con Estados Unidos Sub-18 en 2014, pero fue finalmente cortado. Al año siguiente, antes del Campeonato Mundial de Baloncesto Sub-19 de 2015, fue invitado por la selección griega, dada su doble nacionalidad. Disputó el campeonato donde llevó al equipo a semifinales, siendo incluido en el mejor quinteto del campeonato tras promediar 15,9 puntos y 5,0 rebotes por partido. En junio de 2016, fue convocado por primera vez con la selección absoluta griega, en la preselección de 16 jugadores antes del preolímpico de Turín para la clasificación de los Juegos Olímpicos de Río de Janeiro, pero fue finalmente uno de los dos últimos cortes antes del campeonato. En septiembre de 2022 disputó con el combinado absoluto griego el EuroBasket 2022, finalizando en quinta posición. Estadísticas de su carrera en la NBA Temporada regular Referencias Enlaces externos Bio en goducks.com Estadísticas en la NCAA Ficha en Realgm.com Baloncestistas de California Baloncestistas de Grecia Baloncestistas de la selección de Grecia Baloncestistas griegos en la NBA Baloncestistas de los Oregon Ducks Baloncestistas de la NBA Baloncestistas de los Atlanta Hawks Baloncestistas de los Erie BayHawks (2017) Baloncestistas de los Memphis Grizzlies Baloncestistas de los Memphis Hustle Baloncestistas del Maccabi Tel Aviv Baloncestistas del Olympiacos Baloncestistas de los Dallas Mavericks Baloncestistas de los Texas Legends
41,472
https://en.wikipedia.org/wiki/2013%20If%20Stockholm%20Open%20%E2%80%93%20Singles
Wikipedia
Open Web
CC-By-SA
2,023
2013 If Stockholm Open – Singles
https://en.wikipedia.org/w/index.php?title=2013 If Stockholm Open – Singles&action=history
English
Spoken
84
159
Grigor Dimitrov defeated David Ferrer in the final, 2–6, 6–3, 6–4 to win the singles tennis title at the 2013 If Stockholm Open. It was his maiden ATP Tour title. Tomáš Berdych was the defending champion, but chose not to compete. Seeds The first four seeds received a bye into the second round. Draw Finals Top half Bottom half Qualifying Seeds Qualifiers Qualifying draw First qualifier Second qualifier Third qualifier Fourth qualifier References Main Draw Qualifying Draw If Stockholm Open - Singles 2013 Singles
46,188
https://wordpress.stackexchange.com/questions/363100
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
English
Spoken
22
26
Get sent emails without email logs Is there a way to get the emails sent by my website even without email log?
29,594
https://stackoverflow.com/questions/72105702
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
English
Spoken
72
112
build a protocol stack for VANET I want to use OMNet++, VEINS, SUMO, or OpenStreetmap where I can have the protocol stack for VANETs, the interchange of messages, the mobility patterns through a real map. Anyone can recommend me which simulator can use please? You need essentially all of them. OMNet++ does the communication network simulation, SUMO the (vehicular) traffic. Veins couples them both and OSM delivers the street network to SUMO.
28,986
https://uk.wikipedia.org/wiki/Epicyon
Wikipedia
Open Web
CC-By-SA
2,023
Epicyon
https://uk.wikipedia.org/w/index.php?title=Epicyon&action=history
Ukrainian
Spoken
150
467
Epicyon вимерлий рід хижих ссавців з родини псових, родом із Північної Америки. Існував ≈ 15 мільйонів років від раннього міоцену до пізнього міоцену. Етимологія: — «трохи», — «пес». Опис Цей вимерлий псовий мав великі розміри: найбільший вид міг перевищувати 170 кілограмів у вазі і півтора метра в довжину. Епіціон мав масивний короткий череп, дуже схожий на вовчий, довжина якого могла досягати 35 сантиметрів. Передні лапи були міцні та довгим. Як і гієни, Epicyon мав збільшений нижній четвертий премоляр і потужні щелепи, що дозволяло здійснювати надзвичайно потужний прикус. Epicyon був гігантським членом родини, який виник від подібних, але менших форм (Protepicyon) і еволюціонував, утворивши кілька видів: невеликого E. saevus і потужного E. haydeni, які співіснували в одних і тих же екосистемах на більшій частині Північної Америки, від Каліфорнії до Альберти, від Флориди до Канзасу, від Нью-Мексико до Техасу. Третій вид E. aelurodontoides був знайдений тільки в Канзасі. Примітки Роди ссавців Псові
36,094
https://nl.wikipedia.org/wiki/Gosses%20Bluff
Wikipedia
Open Web
CC-By-SA
2,023
Gosses Bluff
https://nl.wikipedia.org/w/index.php?title=Gosses Bluff&action=history
Dutch
Spoken
179
301
Gosses Bluff is de naam van een inslagkrater in Hermannsburg, ongeveer 175 km ten westen van Alice Springs, in het centrum van Australië. De krater is ontstaan door een inslag van een meteoriet ongeveer 142,5 ± 0,8 miljoen jaar geleden, in het Vroeg-Krijt, vrij kort na het einde van het Jura. Door erosie is de originele krater van 22 km diameter naar 5 km diameter gekrompen. De kraterranden zijn 150 m hoog en de diameter is 5 km. De meteoriet die insloeg zou een doorsnee van ongeveer 1 km gehad hebben en zich tot 5 km in de grond geboord hebben, waarbij hij volledig verdampte. Het idee dat de structuur door een meteorietinslag gevormd is werd voor het eerst voorgesteld in de jaren zestig aan de hand van straalkegels. De krater wordt door de Western Arrente Aboriginals Tnorala genoemd en is voor hen een heilige plaats. De krater ligt dan ook in het Tnorala Conservation Reserve. In de krater werd ooit aardolie gewonnen, tegenwoordig zijn alleen twee verlaten oliebronnen aanwezig. Inslagkrater Geologie van Oceanië Geografie van het Noordelijk Territorium
755
https://stackoverflow.com/questions/15932989
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
dbrumann, https://stackoverflow.com/users/1166880, https://stackoverflow.com/users/2267313, melnikoved
English
Spoken
330
755
Why __construct method don't work in User Entity in FOSUserBundle? I am using the FOSUserBundle. This is the User Entity: namespace Shop\UserBundle\Entity; use FOS\UserBundle\Entity\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; protected $shop; public function __construct() { $this->shop = 'shop'; parent::__construct(); } public function getShop() { return $this->shop; } } When I call getShop in the controller: $user = $this->getUser()->getShop() A result is null Why does not __construct work in User class? I expected to have 'shop' string as default Are you sure $this->getUser() does what you think it does? You provide no code, so I can only assume that it retrieves an existing user rather than calling new therefore it is expected that __construct() is not triggered. Try $user = new \Shop\UserBundle\Entity\User(); $user->getShop(); to see if it works... yes. it's work's. But, if i use $this->getUser()->getShop() it doesn't work. But get_class($this->getUser()) - 'Shop\UserBundle\Entity\User' As the answer below says, you have to add the property to the mapping, e.g. by adding annotations, and then updating the schema: php app/console doctrine:schema:update --force. Otherwise your property won't be saved and therefore will be null when you retrieve a previously persisted user. You can put a callback to iniatilize your User. Just two annotations @ORM\HasLifecycleCallbacks for the entity and @ORM\PostLoad for the method. For example: namespace Shop\UserBundle\Entity; use FOS\UserBundle\Entity\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") * @ORM\HasLifecycleCallbacks */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; protected $shop; /** * @ORM\PostLoad */ public function init() { $this->shop = 'shop'; parent::init(); } public function getShop() { return $this->shop; } } Basically __construct in doctrine entity is called directly in end user code. Doctrine does not use construct when fetch entities from database - please check that question for more details. You can persist this in database by adding mapping if you want.
7,839
https://pl.wikipedia.org/wiki/Przebudzenie%20Lewiatana
Wikipedia
Open Web
CC-By-SA
2,023
Przebudzenie Lewiatana
https://pl.wikipedia.org/w/index.php?title=Przebudzenie Lewiatana&action=history
Polish
Spoken
355
887
Przebudzenie Lewiatana (org. Leviathan Wakes) – powieść z 2010 roku, autorstwa Daniela Abrahama i Ty Francka piszących pod pseudonimem James S.A. Corey. Opisuje rodzący się konflikt pomiędzy Ziemią, Marsem oraz Pasem Asteroid (skolonizowanych przez ludzi zwanych potocznie pasiarzami). Pierwsza książka z serii Expanse, której wątki znajdują kontynuacje w książkach Wojna Kalibana (Caliban’s War), Wrota Abbadona (Abaddon’s Gate), Gorączka Ciboli (Cibola Burn), Gry Nemezis, Prochy Babilonu, Wzlot Persepolis i Gniew Tiamat. Przebudzenie Lewiatana została nominowana do Nagrody Hugo w roku 2012 oraz do Nagrody Locusa w 2012 za najlepszą powieść Science Fiction. W 2015 r. został wyemitowany pierwszy sezon serialu The Expanse zrealizowanego na kanwie powieści Przebudzenie Lewiatana. Daniel Abraham przyznał, że to on jest twórcą postaci Millera. Pierwsze szkice uniwersum tworzył jednak Ty Franck. Świat przedstawiony Akcja powieści toczy się w przyszłości, w której ludzkość skolonizowała większość Układu Słonecznego. Ziemią rządzi ONZ, Mars stał się zaś potęgą militarną. Dwie planety od lat konkurują ze sobą i bezustannie są na skraju wojny. Materiały pozwalające na przeżycie pozyskują z Pasa Asteroid, który jest ich głównym punktem sporu. Mieszkańcy tego rejonu nazywani są Pasiarzami. Przez obniżone przyciąganie ich ciała są zdeformowane: zwykle są bardzo wysocy, ale ich mięśnie są na tyle słabe, że prawdopodobnie nie przeżyliby na Ziemi, przez istniejącą tam grawitację. Polskie wydanie Pierwsze polskie wydanie zostało podzielone na dwa tomy: Przebudzenie Lewiatana tom I, Fabryka słów, 07-02-2013 – () Przebudzenie Lewiatana tom II, Fabryka słów, 14-06-2013 – () Drugie wydanie pojawiło się w 2018 roku, nakładem Wydawnictwa Mag. Tym razem powieść nie została podzielona na tomy. Okładkę do powieści stworzył Piotr Cieśliński. Odbiór Odbiór powieści był bardzo pozytywny. Sekwencje akcji książki zostały wyróżnione przez SF Signal i Tor.com. Napisali, że treść książki była satysfakcjonującym uzupełnianiem objętości. Locus Online również pochwalił tę pozycje. GeekDad z Wired.com pochwalił tę powieść za to, że nie zawiera zbyt skomplikowanych opisów sposobu działania rządów i korporacji oraz wymyślonych słów i tajemniczych nazw. Polskie wydanie z 2013 roku było krytykowane za jakość tłumaczenia Patryka Sawickiego, brak korekty oraz podział na dwa tomy. Przypisy Linki zewnętrzne Blog autora (ang.). [dostęp 2014-03-28]. Przypisy Powieści fantastycznonaukowe z 2011 roku Space opera Powieści Jamesa S.A. Coreya
36,237
https://stackoverflow.com/questions/18616647
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
LihO, Mars, Some programmer dude, https://stackoverflow.com/users/1168156, https://stackoverflow.com/users/1290731, https://stackoverflow.com/users/2697630, https://stackoverflow.com/users/440558, jthill
Venetian
Spoken
1,149
1,929
problems with dividing the words while parsing the formatted input #include <iostream> #include <sstream> #include <fstream> #include <vector> #include <string> int main(int argc, char *argv[]) { std::vector<std::string> vec; std::string line; std::ifstream in(argv[1]); while(!in.eof()) { std::getline(in,line); vec.push_back(line); } std::istringstream is; line = ""; for(auto a:vec) { for(auto i = a.begin(); i != a.end(); i++) { if(!(isspace(*i) | ispunct(*i))) line += *i; else { is.str(line); std::cout << is.str() << std::endl; line = ""; } } } std::cout << is.str() << std::endl; return 0; } I've written a program that takes a file and puts each line in a vector of strings. Then reads one word at a time from the element. When I'm reading from the vector I am having trouble specifying new lines. My output concatenates the end of one line and the beginning of the next. How can I specify that there is a new line? The file content that I'm reading: Math 3 2 Math 4 3 Math 5 4 Phys 3 1 Math 3 1 Comp 3 2 The output I'm getting: Math 3 2Math 4 3Math 5 4Phys 3 1Math 3 1Comp 3 3 EDIT:: To clarify, the vector elements are constructed correctly. If I print a in from the for(auto a:vec), it will give me line by line just like the file. It's when I try to build the word from each char in the vector. I am asking what can I do to specify that there is a new line so that the line += a[i] does not keep adding to line when it hits the end of one line. Just a side note: I personally would prefer using a traditional for loop instead of for(auto a:vec) to avoid code such as if(!(isspace(*i) | ispunct(*i))) line += *i; :) I was going to go the other way: for (auto c:a) here fits real nice. To eliminate another of the redundancies, you can just spit line directly, no need to construct a stringstream. Comrade: std::getline does not deliver the line terminator. Hint #2: under what circumstances can you read a character from a and not spit a newline? Hint #3: try adding a space to the end of each input line to see what's going on here.. for(auto c:a) prints each char. I would still have to specify not to append to the string when there is a space or punctuation or new line, which I have not been able to figure how to specify. @jthill Yes but if I add a space I would be editing the file so it works with the program. I need the program to work with the file. Well, I was kinda hoping you'd look at it and figure out where your code's getting it wrong, so you learn how to get the same effect by changing the code rather than the data. Don't do while (!in.eof()) { ... } It will not work the way you expect it to. Instead do while (std::getline(...)) { ... } The reason for this is because the eof flag isn't set until you actually try to read when the file is at the end. This means that you will loop one time to many, trying to read a non-existent line which you then add to your vector. There is also another way of separating "words" on space boundary, by using std::istringstream and the normal input operator >>: std::istringstream is{a}; std::string word; while (is >> word) { // Do something with `word` } And within while (std::getline(in, line)) { loop, one might also use line.empty() to make sure empty lines are not being read :) Let me clarify. The output after constructing the vector gives me the correct vector elements. It is the second part I am having trouble with. When I am building the words from chars. Worth to note that std::istringstream is{a} is a C++11 syntax. @Comrade I just updated my answer with another way of splitting a line on whitespace. @JoachimPileborg. I appreciate your answer. I tried this and it works but it's an alternative answer. Is there a simple way to use built in functions like ispunct() to identify that there was a new line? @Comrade How about just if (*i == '\n')? But that won't work if you read with std::readline as that doesn't leave newlines in the string. Instead when your inner loop ends, the line has ended as well. The actual problem here is error in logic of your code. Here's the pseudocode of what you are doing while printing the output: for every line: for every character in the line: if it is alphanumerical character then add it to the word else print the so-far built word now look at the line Math 4 3 ~> after the word "4" is printed, this code adds character '3' into the line but does not print it as a word, thus 3 is the beginning of the word of the next line. Also note that your code is far more complicated than it is necessary. It could look like this instead: std::string word; for (size_t i = 0; i < vec.size(); ++i) { std::istringstream lineStream(vec[i]); while (lineStream >> word) std::cout << word << std::endl; } But in case you want to keep the original code, here's what you might do to fix this behavior: line = ""; for(auto a:vec) { for(auto i = a.begin(); i != a.end(); i++) { if (isalnum(*i)) line += *i; else { std::cout << line << std::endl; line = ""; } } // before we start processing the next element... // in case there's another line to be printed: if (!line.empty()) { // print the line and reset the variable: std::cout << line << std::endl; line = ""; } } Yes the code is missing a new line specifier. I am asking what is a way to specify that there is a new line. Yes I know there is an alternative way to do this but what I'm after is how to specify when I get a new line when I am adding chars to a string. I've had this issue before and that is what I want to know. @Comrade: I think you want to keep the original code. Check the edit of my answer if I understood you correctly. There is no doubt that this works and it's a good method given the original code. Is there simply no way to specify an end of line using logic and characters like '\n'? You can also read line by line by using a vector like this; Vector definition ; struct VectorName { std::string str; float num1; float num2; }; std::vector <VectorName> smthVector_; use of function VectorName vector; std::string str; char buf_1[50]; while(std::getline(in, str)) { if(sscanf(str.c_str(), "%s %f %f", buf_1, &vector.num1, &vector.num2) == 3) { vector.str = buf_1; smthVector_push_back(vector); } else std::cout << "No param in string " << str << std::endl; }
37,870
https://en.wikipedia.org/wiki/Perchau%20am%20Sattel
Wikipedia
Open Web
CC-By-SA
2,023
Perchau am Sattel
https://en.wikipedia.org/w/index.php?title=Perchau am Sattel&action=history
English
Spoken
51
80
Perchau am Sattel is a former municipality in the district of Murau in the Austrian state of Styria. Since the 2015 Styria municipal structural reform, it is part of the municipality Neumarkt in der Steiermark. Geography Perchau lies about 22 km east of Murau. References Cities and towns in Murau District
40,529
https://war.wikipedia.org/wiki/Anthurium%20angustisectum
Wikipedia
Open Web
CC-By-SA
2,023
Anthurium angustisectum
https://war.wikipedia.org/w/index.php?title=Anthurium angustisectum&action=history
Waray
Spoken
38
78
An Anthurium angustisectum in uska species han Liliopsida nga ginhulagway ni Adolf Engler. An Anthurium angustisectum in nahilalakip ha genus nga Anthurium, ngan familia nga Araceae. Mabibilngan ini ha Colombia. Waray hini subspecies nga nakalista. Mga kasarigan Anthurium
18,752
https://askubuntu.com/questions/1460052
StackExchange
Open Web
CC-By-SA
2,023
Stack Exchange
English
Spoken
209
284
Where is stored the Certificate when the first Remmina connection was accomplished? For Ubuntu Desktop 22.04 and when Remmina (1.4.25+dfsg) as client does the first attempt of connection to a remote host (in this case other Ubuntu Desktop 22.04 too), once written the valid username and password, only for the first time appears a dialog window with the option to accept a Certificate, only when is accepted the connection can be established. For the coming connections that dialog window does not appear anymore and the username and password are not requested too, therefore the newer connections are accomplished directly. Question Where is stored that certificate? Reason For academic purposes, I want to delete that certificate to simulate again the first connection to see again the dialog window where the Certificate appears. Note I deleted the Certificate though the GUI according with Where does Remmina store the encrypted password? But when the next connection is tried, it is accomplished directly, therefore does not appear the dialog window as expected. Furthermore according with How to extract saved password from Remmina? should exists the ~/.remmina directory, but it does not exist. How accomplish this goal? - See again the Dialog Window to accept the Certificate as the first time. File is: ~/.config/freerdp/known_hosts2
34,187
https://de.wikipedia.org/wiki/Peter%20Gilles%20%28Politiker%29
Wikipedia
Open Web
CC-By-SA
2,023
Peter Gilles (Politiker)
https://de.wikipedia.org/w/index.php?title=Peter Gilles (Politiker)&action=history
German
Spoken
352
693
Peter Gilles (* 7. Februar 1874 in Grimlinghausen, Kr. Neuss; † 11. Juli 1968 in Grevenbroich) war ein deutscher Jurist und Kommunalpolitiker. Leben Gilles kam als Sohn des Kaufmanns Heinrich Gilles und dessen Ehefrau Maria Gilles (geb. Schmitz) zur Welt. Am 11. September 1901 heiratete er in Essen Maria Petit (1879–1951). Er besuchte das Quirinus-Gymnasium in Neuss, an dem er 1895 seine Reifeprüfung ablegte, und durchlief zwischen 1895 und 1897 eine kaufmännische Lehre. Im Anschluss war er in der Redaktion der Rheinisch-Westfälischen Zeitung tätig. Seine Ausbildung setzte er mit einem Studium der Rechts- und Staatswissenschaften an der Universität Berlin und ab 1905 an der Universität Bonn fort, an der er im Juli 1909 promoviert wurde. Ab 1909 war er als Syndikus für den Rheinisch-Westfälischen Brauereiverband tätig. Zum 1. Mai 1912 trat er als Hilfsarbeiter beim Magistrat der Stadt Dortmund in den kommunalen Verwaltungsdienst ein, der bis zu seiner Pensionierung sein Wirkungskreis blieb. Ab 1. Mai 1913 war er Hilfsarbeiter in Herdecke, ab dem 9. Dezember 1913 Bürgermeister von Neurode (Schlesien) und ab 22. November 1918 Bürgermeister von Saarlouis. Am 25. August 1919 übernahm Gilles, der der Deutschen Zentrumspartei angehörte, kommissarisch das Amt des Bürgermeisters in Viersen und wurde in der Wahl vom 30. Dezember 1919 darin bestätigt. Mit Wirkung vom 6. November 1929 war er Oberbürgermeister der Stadt und am 25. März 1931 erneut gewählt. Nach der Machtübernahme der Nationalsozialisten wurde er am 8. Mai 1933 beurlaubt und zum 1. Dezember 1933 in den Ruhestand versetzt. Nach dem Zusammenbruch des Dritten Reichs setzten ihn die britischen Kontrollbehörden im März 1945 als Landrat des Landkreises Grevenbroich-Neuß ein. In diesem Amt blieb er bis 1949. Er war seit 1931 Ehrenmitglied der katholischen Studentenverbindung K.D.St.V. Asgard Köln. Ehrungen 1952: Verdienstkreuz (Steckkreuz) der Bundesrepublik Deutschland Literatur Marcus Ewers: Die Viersener Bürgermeister von 1800–1969. Teil II. Von der Weimarer Republik bis zur kommunalen Neugliederung, in: Heimatbuch des Kreises Viersen 2009, Viersen 2008, S. 17–20. Einzelnachweise Landrat (Landkreis Grevenbroich-Neuß) Landrat (Kreis Grevenbroich) Jurist in der Kommunalverwaltung Bürgermeister (Landkreis Saarlouis) Person (Saarlouis) Bürgermeister (Viersen) Träger des Bundesverdienstkreuzes 1. Klasse Zentrum-Mitglied Korporierter im CV Deutscher Geboren 1874 Gestorben 1968 Mann
719
https://vi.wikipedia.org/wiki/Omoglymmius%20cycloderus
Wikipedia
Open Web
CC-By-SA
2,023
Omoglymmius cycloderus
https://vi.wikipedia.org/w/index.php?title=Omoglymmius cycloderus&action=history
Vietnamese
Spoken
25
50
Omoglymmius cycloderus là một loài bọ cánh cứng thuộc họ Rhysodidae. Nó được mô tả bởi RT & JR Bell vào năm 2002. Tham khảo
15,509
https://en.wikipedia.org/wiki/Frank%20Gaines
Wikipedia
Open Web
CC-By-SA
2,023
Frank Gaines
https://en.wikipedia.org/w/index.php?title=Frank Gaines&action=history
English
Spoken
29
62
Frank Gaines may refer to: Frank D. Gaines (1934–2011), Kansas state legislator Frank S. Gaines (1890–1977), mayor of Berkeley, California, 1939–1943 Frank Gaines (basketball) (born 1990), American basketball player
18,441
https://stackoverflow.com/questions/45336425
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
English
Spoken
151
400
Swift - get kCMSampleBufferAttachmentKey_DroppedFrameReason from CMSampleBuffer I'm trying to understand why my AVCaptureOutput is dropping frames. In the captureOutput(_ output: AVCaptureOutput, didDrop sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) delegate method, I get a CMSampleBuffer that should contains an attachement explaining the reason the frame was dropped (doc) The reason is expected to be one of those CFString: kCMSampleBufferDroppedFrameReason_FrameWasLate // "FrameWasLate" kCMSampleBufferDroppedFrameReason_OutOfBuffers // "OutOfBuffers" kCMSampleBufferDroppedFrameReason_Discontinuity // "Discontinuity" From the docs it's really not clear how to get this value. I've tried using CMGetAttachment but this returns a CMAttachmentMode aka UInt32: func captureOutput(_ output: AVCaptureOutput, didDrop sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) { var reason: CMAttachmentMode = 0 CMGetAttachment(sampleBuffer, kCMSampleBufferAttachmentKey_DroppedFrameReason, &reason) print("reason \(reason)") // 1 } and I don't really know how to match this UInt32 to the CFString constant I was stupidly not looking at the right output: var mode: CMAttachmentMode = 0 let reason = CMGetAttachment(sampleBuffer, kCMSampleBufferAttachmentKey_DroppedFrameReason, &mode) print("reason \(String(describing: reason))") // Optional(OutOfBuffers)
35,688
https://de.wikipedia.org/wiki/Fluoreszenzmarkierung
Wikipedia
Open Web
CC-By-SA
2,023
Fluoreszenzmarkierung
https://de.wikipedia.org/w/index.php?title=Fluoreszenzmarkierung&action=history
German
Spoken
460
1,120
Die Fluoreszenzmarkierung ist eine Methode der Biochemie zur Markierung von Biomolekülen mit Fluorophoren. Prinzip Biomoleküle werden gelegentlich zur erleichterten Verfolgung mit fluoreszenten Molekülen versehen. Durch die Kupplung von Fluorophoren an Proteine oder Kohlenhydrate auf der Zelloberfläche können auch Zellen direkt markiert werden oder mit fluoreszenten Immunkonjugaten indirekt nachgewiesen werden, z. B. per Durchflusszytometrie, Fluoreszenzmikroskopie oder Fluoreszenztomographie. Bei einer Fluoreszenzmarkierung kann das nachzuweisende Molekül direkt mit einem Fluorophor versehen werden oder indirekt durch selektiv bindende fluoreszente Moleküle nachgewiesen werden. Methoden zur Fluoreszenzmarkierung sind: Direkte Molekülnachweise chemische Kupplung (nur in vitro) bioorthogonale Markierung fluoreszente Reportermoleküle fluoreszente Protein-Tags, Protein-Tags mit Fluorophorkupplung (Flash-Tag) bzw. RNA-Tags Indirekte Molekülnachweise Immunmarkierung Hybridisierungssonden Biotinylierung Proteine Bei Proteinen werden in vivo unter anderem das grün fluoreszierende Protein (GFP) als rekombinantes Fusionsprotein oder als Reportergen verwendet. Inteine können zur C-terminalen Markierung von Proteinen eingesetzt werden. Als fluoreszentes Protein-Tag kann auch das Flash-Tag verwendet werden. Mit Redox-abhängigen Fluoreszenten Proteinen wie roGFP, rxYFP und HyPer kann die Fluoreszenz sauerstoffabhängig verändert werden. Mit spannungsabhängigen Proteinen wie VSFP kann die Fluoreszenz durch Anlegen einer elektrischen Spannung verändert werden. Proteine können auch teilsynthetisch (bioorthogonal) markiert werden, in dem reaktive Aminosäurederivate in vivo eingebaut werden, die im Anschluss in vitro mit einem Fluorophor gekuppelt werden. Weiterhin werden Proteine mit verschiedenen chemischen Kupplungsreaktionen in vitro mit unterschiedlichen Fluorophoren versehen. Beispielsweise können nukleophile Gruppen (am häufigsten kommen Aminogruppen in Proteinen vor) durch Reaktionen mit Isothiocyanate (z. B. FITC, TRITC), Succinimidylestern (z. B. CFSE) mit unterschiedlichen Fluoreszenzfarbstoffen wie z. B. Fluorescein, Rhodamin und deren Derivate markiert werden. 1-Fluor-2,4-dinitrobenzol und Dansylchlorid reagieren mit Aminogruppen. Cysteine können mit IAEDANS oder Ellmans Reagenz markiert werden. Proteine können auch indirekt durch eine Immunmarkierung mit fluoreszenten Immunkonjugaten nachgewiesen werden, z. B. bei der Fluoreszenzmikroskopie, dem Western Blot und dem Immunoassay. Im Zuge einer Peptidsynthese können Peptide durch Verwendung von fluoreszenten Aminosäurederivaten markiert werden. Durch einen Förster-Resonanzenergietransfer (FRET), Biolumineszenz-Resonanzenergietransfer (BRET), Fluoreszenzkorrelationsspektroskopie (FCS) oder eine Bimolekulare Fluoreszenzkomplementation (BiFC) kann mit Fluorophoren die Nachbarschaft zweier Proteine nachgewiesen werden. Nukleinsäuren DNA kann bioorthogonal markiert werden. Dazu kann DNA in vivo oder in vitro mit Nukleosidanaloga markiert werden, welche z. B. anschließend per Staudinger-Reaktion mit einem Fluorophor gekuppelt werden können. DNA kann chemisch mit Fluorophoren versehen werden. Oligonukleotide können durch eine Phosphoramidit-Synthese mit Fluorophoren markiert werden, die z. B. in der QPCR, der DNA-Sequenzierung und der In-situ-Hybridisierung verwendet werden. Daneben kann DNA enzymatisch im Zuge einer Polymerasekettenreaktion mit fluoreszenten Nukleotiden erzeugt oder mit einer Ligase oder einer terminalen Desoxynukleotidyltransferase markiert werden. DNA kann indirekt durch eine Biotinylierung und fluoreszentem Avidin nachgewiesen werden. Als Fluorophore werden für Kupplungen unter anderem Fluorescein, fluoreszente Lanthanoide, Gold-Nanopartikel, Kohlenstoffnanoröhren oder Quantenpunkte eingesetzt. Literatur F. Borek: The fluorescent antibody method in medical and biological research. In: Bulletin of the World Health Organization. Band 24, Nummer 2, 1961, S. 249–256, PMID 20604086, . Einzelnachweise Biochemische Methode
16,910
https://ce.wikipedia.org/wiki/%2816716%29%201995%20UX6
Wikipedia
Open Web
CC-By-SA
2,023
(16716) 1995 UX6
https://ce.wikipedia.org/w/index.php?title=(16716) 1995 UX6&action=history
Chechen
Spoken
138
357
(16716) 1995 UX6 — Мелхан системан коьрта асанан астероид. Истори ДӀайиллина 1995 шеран 21 октябрехь Н. Сато, Т. Урата цӀе йолу Ӏилманчо Титибу обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «1995 UX6» саналган. Хьосташ Lutz D. Schmadel. Dictionary of Minor Planet Names. — Fifth Revised and Enlarged Edition. — B., Heidelberg, N. Y.: Springer, 2003. — 992 p. — ISBN 3-540-00238-3. Lutz D. Schmadel. Dictionary of Minor Planet Names. — Springer Science & Business Media, 2012-06-10. — 1458 с. — ISBN 9783642297182 Chapman, C. R., Morrison, D., & Zellner, B. Surface properties of asteroids: A synthesis of polarimetry, radiometry, and spectrophotometry// Icarus : journal. — Elsevier, 1975. — Vol. 25. — P. 104—130. Kerrod, Robin. Asteroids, Comets, and Meteors (неопр.). — Lerner Publications Co., 2000. — ISBN 0585317631. Билгалдахарш Хьажа иштта (16717) 1995 UJ8 Коьрта асанан астероидаш Астероидаш абатца
32,423
https://en.wikipedia.org/wiki/Ernest%20Boulton%20%28footballer%29
Wikipedia
Open Web
CC-By-SA
2,023
Ernest Boulton (footballer)
https://en.wikipedia.org/w/index.php?title=Ernest Boulton (footballer)&action=history
English
Spoken
58
109
Ernest Boulton (1889 – 1959) was an English footballer who played for Stoke. Career Boulton was born in Stoke-upon-Trent and played for local side, Stoke where he scored six goals in eleven matches during the 1910–11 season. Career statistics References English men's footballers Stoke City F.C. players 1889 births 1959 deaths Men's association football forwards Footballers from Stoke-on-Trent
43
https://stackoverflow.com/questions/42870601
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
English
Spoken
122
238
My sql if else condition SELECT price, sale, (IF(sale > 0) THEN ((price-sale)/price)*100 ELSE sale) AS discount FROM tbl_business_service_price need help with this, don't want to calculate percentage as 100% when sales price is 0.00 You have mixed up with if and case when syntax, usually take a look of official doc, you can get what you want. if solution: SELECT price, sale, IF(sale > 0, ((price - sale) / price) * 100, sale) AS discount FROM tbl_business_service_price case when solution: SELECT price, sale, case when sale > 0 then ((price - sale) / price) * 100 else sale end AS discount FROM tbl_business_service_price Try this one out.. SELECT price, sale, IF(sale > 0, (price-sale/price) * 100, sale) AS discount FROM tbl_business_service_price
31,047
https://es.wikipedia.org/wiki/Municipio%20de%20Castanea%20%28condado%20de%20Clinton%2C%20Pensilvania%29
Wikipedia
Open Web
CC-By-SA
2,023
Municipio de Castanea (condado de Clinton, Pensilvania)
https://es.wikipedia.org/w/index.php?title=Municipio de Castanea (condado de Clinton, Pensilvania)&action=history
Spanish
Spoken
132
232
El municipio de Castanea (en inglés: Castanea Township) es un municipio ubicado en el condado de Clinton en el estado estadounidense de Pensilvania. En el año 2000 tenía una población de 1.233 habitantes y una densidad poblacional de 85.5 personas por km². Geografía El municipio de Castanea se encuentra ubicado en las coordenadas . Demografía Según la Oficina del Censo en 2000 los ingresos medios por hogar en la localidad eran de $33,657 y los ingresos medios por familia eran de $36,250. Los hombres tenían unos ingresos medios de $29,018 frente a los $20,721 para las mujeres. La renta per cápita de la localidad era de $15,448. Alrededor del 8,8% de la población estaba por debajo del umbral de pobreza. Referencias Enlaces externos Municipios de Pensilvania Localidades del condado de Clinton (Pensilvania)
32,613
https://en.wikipedia.org/wiki/Tillie%20%28film%29
Wikipedia
Open Web
CC-By-SA
2,023
Tillie (film)
https://en.wikipedia.org/w/index.php?title=Tillie (film)&action=history
English
Spoken
374
571
Tillie is a 1922 American silent drama film directed by Frank Urson and starring Mary Miles Minter. The scenario was written by Alice Eyton, based on the novel Tillie, the Mennonite Maid by Helen Reimensnyder Martin. Tillie reunited Minter with Allan Forrest, her most frequent leading man from her time at Mutual Film and the American Film Company, for the first time since their 1919 picture Yvonne from Paris. As with many of Minter's features, Tillie is thought to be a lost film. Plot As described in various film magazine reviews, Tillie Getz (Minter) is a girl living in a community of Mennonites with her harsh father Jacob Getz (Beery), who treats her little better than a slave. Tillie longs for education and for an escape from the drudgery of her life, but only the kindly Doc Weaver (Littlefield) understands her ambitions. Unbeknownst to Tillie, an elderly relative has willed her a small fortune, but only if she should enter into the Mennonite church by the time she has turned eighteen. Her father pressures her into joining the church, but Tillie resists, just as she resists the efforts of a local lawyer (Cooper) to push her into marriage with the undesirable Absalom (Anderson). The lawyer and Absalom are both aware of the terms of the will, and plot to share Tillie's fortune between them once they have convinced her to wed. One day, Jack Fairchild (Forrest) comes to the town and finding himself captivated by Tillie, he takes up the position of the local schoolmaster so that he can remain close to her. In this way, the ambitions of Tillie's father, the lawyer and Absalom are all thwarted, and Tillie finds love with Jack and freedom from the Mennonite way of life. Cast Mary Miles Minter as Tillie Getz Noah Beery, Sr. as Jacob Getz Allan Forrest as Jack Fairchild Lucien Littlefield as Doc Weaver Lillian Leighton as Sarah Oberholtzzer Marie Trebaol as Sallie Getz Virginia Adair as Louisa Robert Anderson as Absalom Puntz Edward Cooper as Lawyer References External links 1922 films 1920s English-language films Silent American drama films 1922 drama films Paramount Pictures films American black-and-white films American silent feature films Films directed by Frank Urson Mennonitism in films 1920s American films
27,171
https://pl.wikipedia.org/wiki/Modus%20ponendo%20ponens
Wikipedia
Open Web
CC-By-SA
2,023
Modus ponendo ponens
https://pl.wikipedia.org/w/index.php?title=Modus ponendo ponens&action=history
Polish
Spoken
62
187
Modus ponendo ponens (sposób potwierdzający przez potwierdzenie) – tautologia rachunku zdań i analogiczny schemat wnioskowania dedukcyjnego. Tautologia rachunku zdań mówi, że jeśli uznajemy prawdziwość poprzednika prawdziwej implikacji, to musimy uznać też prawdziwość jej następnika: Analogiczny schemat wnioskowania dedukcyjnego ma postać: Istnieje także reguła dedukcyjna o analogicznej strukturze, zwana regułą odrywania. Zobacz też Logika matematyczna ∴ Przypisy Bibliografia Zwroty łacińskie Prawa rachunku zdań
2,109
https://ceb.wikipedia.org/wiki/Portree%20Bridge%20Pool
Wikipedia
Open Web
CC-By-SA
2,023
Portree Bridge Pool
https://ceb.wikipedia.org/w/index.php?title=Portree Bridge Pool&action=history
Cebuano
Spoken
50
74
Suba ang Portree Bridge Pool sa Kanada. Nahimutang ni sa lalawigan sa Nova Scotia, sa habagatan-sidlakang bahin sa nasod, km sa sidlakan sa Ottawa ang ulohan sa nasod. Ang Portree Bridge Pool nahimutang sa pulo sa Cape Breton Island. Saysay Ang mga gi basihan niini Mga suba sa Nova Scotia
27,490
https://ceb.wikipedia.org/wiki/Querberg
Wikipedia
Open Web
CC-By-SA
2,023
Querberg
https://ceb.wikipedia.org/w/index.php?title=Querberg&action=history
Cebuano
Spoken
46
127
Ang Querberg ngalan niining mga mosunod: Alemanya Querberg (bungtod sa Alemanya, Bavaria, lat 50,22, long 9,78), Querberg (bungtod sa Alemanya, Bavaria, lat 50,05, long 9,28), Querberg (bukid), Bavaria, Regierungsbezirk Unterfranken, Querberg (tagaytay), Rheinland-Pfalz, Querberg (lasang), Bavaria, Pagklaro paghimo ni bot 2016-01 Pagklaro paghimo ni bot Alemanya
36,965
https://lt.wikipedia.org/wiki/Povilas%20Kupstas
Wikipedia
Open Web
CC-By-SA
2,023
Povilas Kupstas
https://lt.wikipedia.org/w/index.php?title=Povilas Kupstas&action=history
Lithuanian
Spoken
201
610
Povilas Kupstas (Kupstelis) (1860 m. Berezninkų kaime, (dab. Kalvarijos savivaldybė) – 1940 m. Radiškėje, dab. Kalvarijos savivaldybė) – knygnešys, daraktorius. Biografija Gimė mažažemių valstiečių šeimoje. Mirus tėvui, pradėjo bernauti pas svetimus. Tarnavo ir Punske pas kunigą Simoną Norkų, kuris išmokė jį rašyti, paskatino platinti lietuviškas maldaknyges. Gresiant persekiojimams dėl nelegalios spaudos platinimo ir artinantis tarnybai caro kariuomenei, išvyko į JAV. Dirbo anglies kasyklose, vėliau kunigo Antano Miluko spaustuvėje. Apie 1898 m. grįžo į gimtinę ir Punske atidarė religinių reikmenų parduotuvėlę, įsteigė Blaivybės draugijos skyrių ir jam vadovavo. Kartu platino ir lietuviškas knygas, kurias parūpindavo vietos knygnešiai, tarp jų ir Agota Zigmantaitė. Po lietuviškos spaudos draudimo panaikinimo įsteigė knygyną, apie tūkstantį knygų padovanojo Marijampolės gimnazijai. Dar prieš Pirmąjį pasaulinį karą ir jo metu kaimiečių vaikus slapta mokė rašyti ir skaityti. 1919 m. prisidėjo prie lietuviško Punsko valsčiaus įkūrimo. Lenkų valdžios persekiojamas dėl lietuviškos veiklos buvo priverstas persikelti į Lietuvos Respubliką. Apsigyveno Sangrūdoje, vėliau – Radiškėje. Finansiškai rėmė Sangrūdos Šv. Kūdikėlio Jėzaus Teresės bažnyčios statybą, buvo palaidotas prie šios šventovės esančiose kapinėse. Šaltiniai Kalvarijos krašto šviesuoliai // Kalvarijos savivaldybės viešoji biblioteka Lietuvos knygnešiai ir daraktoriai, 1864–1904 : [žinynas] / Benjaminas Kaluškevičius, Kazys Misius. – Vilnius: Diemedis, 2004, p. 252 Knygnešiai Daraktoriai Lietuvos mecenatai
46,619
https://meta.stackoverflow.com/questions/398090
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
Aryan, George, HUB, Scratte, Zoe is on strike, https://meta.stackoverflow.com/users/12695027, https://meta.stackoverflow.com/users/12860895, https://meta.stackoverflow.com/users/6296561, https://meta.stackoverflow.com/users/685736, https://meta.stackoverflow.com/users/7354094
English
Spoken
506
615
Wrong Review Audit? In my free time I like to review posts for users asking for the first time on Stack Overflow. while reviewing I failed an audit that I think it should not be the case. On a side note: this is my first question here and based on my search on the site I believe this is the place to raise this issue please guide me if I am wrong This is the post I was reviewing All I did is that I added a comment that have a link to a guide on how to ask on Stack Overflow and also I pointed out that he don't have to use uppercase. But I got this message : STOP! Look and Listen. This was an audit, designed to see if you were paying attention. You didn't pass. Your review was inappropriate. This was a high quality post and you should have considered leaving it as-is or even upvoting. Don't worry, we've already handled this post appropriately – but please take a minute to look it over closely, keeping in mind the guidance above. It was instant so probably it is a system audit but I still think the question is not posted correctly so here I am posting it to know if my review was really bad and how to improve it. And if not what to do now to actually make the post better. The question lacks an MCVE, so yes, it's a bad audit. It reacting like that to leaving a comment is unfortunately by design :rolling_eyes: I don't understand how a comment leads to a failed audit - even good posts can have improvement potential. That's just my two cents though. Anyway, I voted to close on the question @Machavity thank you for the post, actually after reading your link, my post is a part of the problem the user in your post is trying to solve. so in a way yes it answers my question on a bigger scale. but i posted my question because i was not sure if my comment was in the right place or not. thank you for pointing the real reason behind it. @Zoe thank you. one thing though, i don't have any experience in react so maybe the answers on that question is helping others, how about we try to tell the OP that he needs to edit his answer instead of closing it?. again im new to meta and i actually don't know how to contact the OP beside from comments. I'm confused as to how it got "Viewed 2k times" with no action on it's open state. It's a bad audit since the system believes it to be a good post, but you commented as though it were a bad post, hence the system thinks that you weren't focusing. okay took me couple of minutes to get it :p but i did. but we do agree that the system is wrong here right? @George yes, I agree that the system was wrong.
26,056
https://no.wikipedia.org/wiki/Martinius%20Abildgaard
Wikipedia
Open Web
CC-By-SA
2,023
Martinius Abildgaard
https://no.wikipedia.org/w/index.php?title=Martinius Abildgaard&action=history
Norwegian
Spoken
130
278
Martinius Andreas Abildgaard (født 24. november 1812 i Arendal, død 27. oktober 1884 i Kristiania) var en norsk embetsmann. Martinius Abildgaard var sønn av en skolelærer, ble student i 1829 og cand. juris i 1833. Fra 1834 var han kopist i Finansdepartementet, fra 1842 byråsjef. I 1847 ble han byfogd i Kristiansand, og fra 1855 var han sorenskriver i Moss. Han tok avskjed i 1881. Abildgaard var en rik mann og etterlot seg et legat for studenter fra Arendal og enker og barn etter avdøde embetsmenn i Kristiania. Som takk fikk han en liten gate i Kristiania oppkalt etter seg (Abildgaards gate). Denne eksisterer ikke lenger. Abildgaard er gravlagt på Vår Frelsers gravlund. Referanser Litteratur Arnet Olafsen: Våre sorenskrivere. Oslo, 1945. Norske embets- og tjenestemenn Sorenskrivere Personer fra Arendal kommune
39,507
https://stackoverflow.com/questions/63441137
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
English
Spoken
363
603
Large files are not transmitted to an Elastic Beanstalk hosted app I am currently working on a web application where I need to store large files (mp4 videos that sometimes have a size greater than 100mb). But, when I am trying to upload them from a static Angular website hosted in a S3 bucket to an API hosted with AWS Elastic Beanstalk, I got a error that I don't understand. Click here to see the error What I tried: There is no problem when uploading PDF. It works perfectly. There is no problem when uploading very short MP4 (3s, 453Kb). It works clean, but a little bit slower than PDF, but still really short (3 seconds). This is why I think the problem could came from the file size. I read on Internet that there's something called client_max_body_size when using Nginx (as AWS does). I tried to increase this default limit by adding this to my project: myrootproject/.ebextensions/nginx.conf Into nginx.conf: files: "/etc/nginx/conf.d/proxy.conf" : content: | client_max_body_size 4G; but nothing has changed... or at least it didn't have the desired effect, it still not working. Additional informations When I do this manipulation in local, it works fine. When I do this manipulation from the hosted website (S3 bucket) to localhosted API, it works fine. It takes really long to have a response from the server (only when this error occurs). I have the feeling that the request don't even access my NodeJS code, because if an error is emit on it, I would handled it. Here is screenshots of my request, if it could help: Request (first part) Request (second part) I really need help on this one, hoping you can give it to me! P.S: I created this post with help of a translator. If some parts are strangely written, my apologies, The option myrootproject/.ebextensions/nginx.conf does not take effect, probably because you are using Amazon Linux 2 (AL2) - I assume that you are using AL2. But this config file works only in AL1. For AL2, the nginx settings should be provided in .platform/nginx/conf.d/, not .ebextentions. Therefore, for example, you could create the following config file: .platform/nginx/conf.d/mynginx.conf with the content of: client_max_body_size 4G
26,743
https://academia.stackexchange.com/questions/177414
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Azor Ahai -him-, Black Sheep, https://academia.stackexchange.com/users/37441, https://academia.stackexchange.com/users/52136
English
Spoken
318
418
Who will be more suitable as recommender? I want to apply for Ph.D. positions next year. I have research experience of more than five years, so I am considering applying for research-based universities mostly. Now I am confused about who I should ask for recommendation letters? I already arranged one LOR from my department head, I am confused about whom should I choose from these four? All of them know me and they all will write good things I believe. There is an adjunct professor who taught a course during my studies. He is now the head of a reputed university in my country. There is an assistant professor from another university, under whom I did a project. She is affiliated with my current lab, a collaborator mainly. But I had to perform some experimental work for her project (published now, I am 2nd author), so I worked in her lab for six months, which is out of the city and I worked there as a guest researcher. A third is a postdoc, mainly my collaborator or co-author and we published four articles, including one in the top journal in our field. He is doing his second postdoc (a research fellow) in a reputed US university. Another one was my course instructor during my bachelor's, an assistant professor. I learned a few experiments from her (she was not my thesis supervisor but she was well versed in some experimental tests so she taught me). I reformatted your list to make it more readable - please correct if it I made any mistakes (e.g. you mixed A/B/3/4 so I wasn't 100% sure). Thanks for the correction Pick the people who know you and your work best and can give the most detailed reports of their observations. Unless your reference is a famous individual, it's less important who writes your LOR than what they say about why they recommend you.
17,969
https://dba.stackexchange.com/questions/289748
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
GuidoG, https://dba.stackexchange.com/users/227802
English
Spoken
673
1,063
How to prevent/detect fetching data from another database on same server I have discovered a problem in our development where I need some help. We had some reports developed by an outsourced person, and now I am cleaning up his mess. The biggest problem is that he has often written select statements using 3 parts, for example [DB_T].[dbo].[SomeTable] Whether this is good practice or not, I don't care right now. My problem is he sometimes fetches data from our TEST database in Production queries. So I was hoping for some way to detect this. Let's say my test database is called DB_T and my production database is called DB_P and that the application has a connection string to DB_P Now I discovered query like this select * from table1 t1 join [DB_T].[dbo].[Table2] t2 on t1.id = t2.id When this query is executed, the resultset will unfortunate contain data mixed from both databases. My question is, is there some way I can detect this ? Some of these queries are written in a C# Winforms application, some are in a view. But all will be executed from a c# WinForms application with a connection string pointing to DB_P It will take me weeks to dig thru all his queries and look for this (some are build at runtime in string variables) So it would help if I could detect this somehow, or maybe there is a way to disallow reading from another database. In that case the application would throw an error, which is fine by me, better an error then working with wrong data. To find objects in the database (views, procedures etc) that use 3 (or 4) part naming, you can use the scripts in this article to search the SQL Dependencies in the database. SELECT OBJECT_SCHEMA_NAME(objects.object_id) AS referencing_schema_name, objects.name AS referencing_object_name, objects.type_desc referencing_object_type, CASE WHEN referenced_database_name = DB_NAME() AND referenced_server_name IS NULL THEN 'Internal' ELSE 'External' END AS referenced_database_location, COALESCE(sql_expression_dependencies.referenced_server_name, '<localserver>') AS referenced_server_name, sql_expression_dependencies.referenced_database_name, sql_expression_dependencies.referenced_schema_name, sql_expression_dependencies.referenced_entity_name AS referenced_object_name FROM sys.sql_expression_dependencies JOIN sys.objects ON objects.object_id = sql_expression_dependencies.referencing_id WHERE referenced_database_name IS NOT NULL ORDER BY referencing_schema_name,referencing_object_name There is also a script on that article for finding dynamic SQL in objects in the database. This doesn't mean they're using 3-part naming, but at least gives you a starting point for your searching. As for the code in C#, that is going to be more difficult to find. You might be better placed to take a copy of your production DB and restore it to a non-production server that doesn't have the Test DB on it, then run your application against that database (which is now technically non-production). With the Test DB missing, you should get errors wherever you have references to the Test DB in application code. You can then iteratively resolve each error and progress further with the application until you've got it working without errors. You could also setup up an Extended Events session filtered by user and database (Test DB) to record sqlserver.sql_statement_completed events. Periodically check this events session to see any queries executing against the Test DB by your production user to further identify problem queries and resolve. Lastly, as a general best practice - take Test DB off your production server and put it somewhere else. This will guarantee that cross database queries to Test DB will fail (because it won't exist on production) and help prevent these kind of cross-contamination issues between environments. It also means you can treat your production environment as a true production, so the next time you have an external contractor come in to write reports/applications, they can develop in the test environment, and any issues with hard-coded DB or server names will become immediately apparent during deployment. Thanks for this, I solved it now by creating a new user for the production database, that only has rights on this database and made sure that all applications use this user. It had the same effect, errors where popping out where the test database was being approached. Anyway, I find your script very usefull to
11,399
https://nds.wikipedia.org/wiki/Ket
Wikipedia
Open Web
CC-By-SA
2,023
Ket
https://nds.wikipedia.org/w/index.php?title=Ket&action=history
Low German
Spoken
60
162
Ket betekent Bra-Ket, Vektornotatschoon in de Quantenmechanik, Ket, Stroom in Russland, de in’n Ob münnt, Ket, düütsche Rapperin, Ket, jenisseische Spraak, Ket, Figur ut de germaanschen Sagen. KET is afkört för Key English Test, Key Enabling Technologies. Ket is de Familiennaam von Dick Ket (1902–1940), nedderlandschen Maler, Grafiker un Lithograaf, Robert Ket († 1549), engelschen Grundherr. Kiek ok bi: Kett.
30,550
https://stackoverflow.com/questions/22115023
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
Shivam, https://stackoverflow.com/users/2732224
English
Spoken
84
232
How to get Request Token from Magento REST API? I am using Magento CE edition and i want to access the REST API of magento through REST Client oR Java client. I have Consumer Key and sceret. When i am trying to execute /oauth/initiate i am getting following response oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key. I am refering the following link for execution http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html Can anyone please let me know how we test the API through the REST client and how we get the access_token. Thanks Ankit http://stackoverflow.com/questions/17789938/magento-rest-api-oauth-error/19678803#19678803 http://stackoverflow.com/questions/18483875/magento-rest-api-error-500/19677476#19677476
45,380
https://en.wikipedia.org/wiki/John%20Bunyan%20%28sportsperson%29
Wikipedia
Open Web
CC-By-SA
2,023
John Bunyan (sportsperson)
https://en.wikipedia.org/w/index.php?title=John Bunyan (sportsperson)&action=history
English
Spoken
244
444
John Bunyan was a dual player from County Kerry. He played both football and hurling with Kerry during the 1970s. Originally from Ballydonoghue Johnny joined up with neighbouring Ballyduff who are more well known for hurling rather than football. Bunyan would go on to be a great player at both codes. In football, he won a Munster Under-21 Football Championship in 1968 and an All Ireland Senior medal in 1975. He played at full forward in the Munster Final having a notable battle with Humphrey Kelliher of Cork and also in the All Ireland semi-final against Sligo. He was omitted from the team for the final against Dublin. On the same day in 1975 his brother Robert captained the Kerry Minors to All Ireland victory over Tyrone. In hurling he also had success winning an All-Ireland Junior Hurling Championship medal in 1972 and an All-Ireland Senior B Hurling Championship in 1976. At club level he also had much success with Ballyduff and Shannon Rangers. In all Bunyan played in 13 county finals between football and hurling (5 football and 8 hurling). He won 8 Kerry Senior Hurling Championships with Ballyduff in 1972, 1973, 1976, 1977, 1978, 1984, 1988 and 1989. He won 2 Kerry Senior Football Championship with Shannon Rangers in 1972 and with Feale Rangers in 1978. References https://web.archive.org/web/20190328115822/http://munster.gaa.ie/history/u21f_teams/ https://web.archive.org/web/20170729092004/http://hoganstand.com/Kerry/Profile.aspx Year of birth missing (living people) Living people Ballydonoghue Gaelic footballers Ballyduff (Kerry) hurlers Dual players Kerry inter-county Gaelic footballers Kerry inter-county hurlers
22,903
https://vi.stackexchange.com/questions/37637
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
Benn1x, D. Ben Knoble, Martin Tournoij, Vivian De Smedt, https://vi.stackexchange.com/users/10604, https://vi.stackexchange.com/users/23502, https://vi.stackexchange.com/users/42311, https://vi.stackexchange.com/users/51
English
Spoken
240
563
Syntastic won't recognize C++ WxWidgets headers The library it is not recognizing is WxWidgets my ~/.vimrc File execute pathogen#infect() set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 I import Wx like this #include <wx/wx.h> #include <wx/menu.h> #include <wx/textctrl.h> The Error is gui.cpp|1 col 10 error| fatal error: wx/wx.h: No such file or directory I already included the Path of Wx like this let g:syntastic_cpp_include_dirs =['/usr/local/lib'] And i can Compile it with out any Problems Welcome to Vim :-) It would be good if you could be more explicitly about your symptoms. Could explain what is your input and what do you expect.? Maybe also what you already tried. Is wx/wx.h actually at /usr/include/wx/wx.h or /usr/local/include/wx/wx.h? On my system at least it's in /usr/include/wx-3.0/wx/wx.h; I think most systems use a version subdirectory like that for WxWidgets (although the exact path may be slightly different on your system). So try adding /usr/include/wx-3.0 (or whatever the exact path is on your system) to g:syntastic_cpp_include_dirs. Thx yes it where the wrong path i also have on the other path some wxWidgets stuff but now it works @Benn1x can you post an answer? My problem where that i had included the wrong path as @Martin Tournoij said the path where /usr/include/wx-3.x The include in the .vimrc looks now like this let g:syntastic_cpp_include_dirs =['/usr/local/lib',' /usr/include/wx-3.1','/usr/include/wx-3.0'] And this solved the use for me
5,237
https://stackoverflow.com/questions/37142210
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
Steven, https://stackoverflow.com/users/5761295, https://stackoverflow.com/users/6315919, madhavan
English
Spoken
484
1,125
How to rename or copy file from azure storage using java file system sdk How to rename or copy file from azure storage using java file system sdk Is there any way to rename or copy file stored in azurestorage from azurestorage.jar for java if so pls help us. Assume the file is on the file share mounted in the system, you can use Files.copy(...) to copy file Path sourcePath = new File("path/to/source/file").toPath(); Path targetPath = new File("path/to/target/file").toPath(); Files.copy(sourcePath, targetPath); Note that the code will download the source file to local host, then upload to the azure storage service. If you want to avoid download and upload, use azure storage rest api to copy file. If you don't want to deal with rest api directly, use azure-sdk-for-java or similar SDKs for python and C#. https://stackoverflow.com/a/66774796/12066108 shows how to copy file with azure-sdk-for-java library. You could use CloudFile.startCopy(source) to rename and copy blob files. And here is the complete code. package nau.edu.cn.steven; import com.microsoft.azure.storage.CloudStorageAccount; import com.microsoft.azure.storage.file.CopyStatus; import com.microsoft.azure.storage.file.CloudFile; import com.microsoft.azure.storage.file.CloudFileClient; import com.microsoft.azure.storage.file.CloudFileDirectory; import com.microsoft.azure.storage.file.CloudFileShare; public class AzureCopyFile { // Connection string public static final String storageConnectionString = "DefaultEndpointsProtocol=http;" + "AccountName=your_account_name;" + "AccountKey= your_account_key"; public static void main( String[] args ) { try { CloudStorageAccount account = CloudStorageAccount.parse(storageConnectionString); CloudFileClient fileClient = account.createCloudFileClient(); // Get a reference to the file share CloudFileShare share = fileClient.getShareReference("sampleshare"); if(share.createIfNotExists()) { System.out.println("New share created"); } // Get a reference to the root directory for the share for example CloudFileDirectory rootDir = share.getRootDirectoryReference(); // Old file CloudFile oldCloudFile = rootDir.getFileReference("Readme.txt"); // New file CloudFile newCloudFile = rootDir.getFileReference("Readme2.txt"); // Start copy newCloudFile.startCopy(oldCloudFile.getUri()); // Exit until copy finished while(true) { if(newCloudFile.getCopyState().getStatus() != CopyStatus.PENDING) { break; } // Sleep for a second maybe Thread.sleep(1000); } } catch(Exception e) { System.out.print("Exception encountered: "); System.out.println(e.getMessage()); System.exit(-1); } } } We are not using blob is their any other way to achieve rename or copy from CloudFile cloudFile = sampleDir.getFileReference("filename"); Thanks steven i am able to copy using startCopy(cloudfile.getUri); Is there any way to rename file in azure storage using java if it is available please suggest me. Is their any way to track the copy operation in azure file system in azure drive using java You could refer to Track blob copy progress, there is a function there called PrintStatus which is want you want. According to the javadocs for the class CloudFile of Azure File Storage, there is no rename operation supported natively for File Storage, even for Blob Storage. If you want to do the rename action, you need to perform 2 steps include copy a file with a new name and delete the file with old name. There are two threads below separately from SO & MSDN. Programmatically (.NET) renaming an Azure File or Directory using File (not Blob) Storage, that's the same for using Java. https://social.msdn.microsoft.com/Forums/azure/en-US/04c415fb-cc1a-4270-986b-03a68b05aa81/renaming-files-in-blobs-storage?forum=windowsazuredata. As @Steven said, the copy operation is supported via the function startCopy for a new file reference.
11,997
https://fr.wikipedia.org/wiki/Nashville%20%28Maine%29
Wikipedia
Open Web
CC-By-SA
2,023
Nashville (Maine)
https://fr.wikipedia.org/w/index.php?title=Nashville (Maine)&action=history
French
Spoken
32
71
Nashville est une ville située dans l’État américain du Maine, dans le comté d’Aroostook. Géographie Histoire Culture Notes et références Plantation dans le Maine Localité dans le comté d'Aroostook Municipalité de l'Acadie
1,525
https://stackoverflow.com/questions/28993742
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Azri Zakaria, dub stylee, https://stackoverflow.com/users/1642583, https://stackoverflow.com/users/3101082
Danish
Spoken
239
532
.Net Application stop working on windows 8.1 My application stop working when I try to run... In event logs, it wrote : Fault bucket 94696796648, type 5 Event Name: CLR20r3 Response: Not available Cab Id: 0 Problem signature: P1: chuki2_spd.exe P2: 1.2.5.0 P3: 540890bf P4: System.Management P5: 2.0.0.0 P6: 537d7fab P7: 661 P8: 15 P9: System.Management.Management P10: Attached files: C:\Users\UserA\AppData\Local\Temp\WER57FE.tmp.WERInternalMetadata.xml These files may be available here: C:\Users\UserA\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_chuki2_spd.exe_5ce06ddd108095aad8b0a53dcda0f871652f59_00000000_0e855df9 Analysis symbol: Rechecking for solution: 0 Report Id: ff84ad4d-c810-11e4-8260-60029238a606 Report Status: 0 Hashed bucket: 29626c7db602c7dc7a499ae2109091e8 It working very well on windows 7 with same application... My application using Sql CE 4.0 for database in the folder AppData. Already update to SQL CE 4.0 SP1 but still get same error. Kindly assist me how to solved on this matter. Did you create a new project with the same code? Windows 8.1 projects do not allow SQL CE. If it is just a Windows Forms or WPF application, then it should still be able to work on Windows 8.1 Do you mean I cannot using SQL CE for my database? yes this is windows forms with SQL CE as database You should be alright then if it is Windows Forms. I was just saying Windows 8.1 applications (store apps) do not support SQL CE directly. If you were making a Windows store app, then you would have to either have a separate service application for database access, or change to a different database server.
50,532
https://stackoverflow.com/questions/50266306
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
Anbu.Karthik, Ankit Jayaswal, https://stackoverflow.com/users/2783370, https://stackoverflow.com/users/9534323
Swedish
Spoken
187
500
Strange facebook crash on launch Here is the bug report Crashed: com.apple.main-thread 0 libswiftCore.dylib 0x103c2faa4 swift_getObjectType + 60 1 0x102e3dc58 @objc AppDelegate.application(UIApplication, open : URL, sourceApplication : String?, annotation : Any) -> Bool (AppDelegate.swift) 2 0x102f5e730 -[FIRAuthAppDelegateProxy object:selector:application:openURL:sourceApplication:annotation:] + 4303562544 3 0x102f5d8e4 __47-[FIRAuthAppDelegateProxy initWithApplication:]_block_invoke.199 + 4303558884 4 0x102ee6aa0 -[FIRAAppDelegateProxy application:openURL:sourceApplication:annotation:] + 4303071904 5 UIKit 0x18e064acc __58-[UIApplication _applicationOpenURLAction:payload:origin:]_block_invoke + 880 It crashes after user grant access from facebook app and turns back to my app. Any idea what may the problem be like? check this code AppDelegate.application(UIApplication, open : URL, sourceApplication : String?, annotation : Any) in your app I think there would be some message also with the crash logs. Is it whole crash log you got? set this code.in app delegate //For Facebook func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(app, open: url, options: options) } Try this code in AppDelegate func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { ... } @available(iOS 9.0, *) func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool { ... }
19,312
https://ceb.wikipedia.org/wiki/Robinson%20Crusoe%20Island%20%28pulo%20sa%20Tinipong%20Bansa%2C%20Iowa%29
Wikipedia
Open Web
CC-By-SA
2,023
Robinson Crusoe Island (pulo sa Tinipong Bansa, Iowa)
https://ceb.wikipedia.org/w/index.php?title=Robinson Crusoe Island (pulo sa Tinipong Bansa, Iowa)&action=history
Cebuano
Spoken
103
174
Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Robinson Crusoe Island. Pulo ang Robinson Crusoe Island sa Tinipong Bansa. Ang Robinson Crusoe Island nahimutang sa kondado sa Black Hawk County ug estado sa Iowa, sa sidlakang bahin sa nasod, km sa kasadpan sa ulohang dakbayan Washington, D.C. Ang klima klima sa kontinente. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hunyo, sa  °C, ug ang kinabugnawan Pebrero, sa  °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Hunyo, sa milimetro nga ulan, ug ang kinaugahan Enero, sa milimetro. Ang mga gi basihan niini Kapuloan sa Iowa (estado)
4,021
https://ru.stackoverflow.com/questions/566720
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
VladD, asda, https://ru.stackoverflow.com/users/10105, https://ru.stackoverflow.com/users/206101, https://ru.stackoverflow.com/users/216651, menkow
Russian
Spoken
298
1,024
Как перевести текст из 1251 в utf-8 Есть текст Заказ Р·РІРѕРЅРєР° технической поддержки Артемий декодер говорит что это cp1251 Я пробую его перевести в utf-8 однако на выходе еще хуже крякозябры. private string Win1251ToUTF8(string source) { Encoding utf8 = Encoding.GetEncoding("utf-8"); Encoding win1251 = Encoding.GetEncoding("windows-1251"); byte[] utf8Bytes = win1251.GetBytes(source); byte[] win1251Bytes = Encoding.Convert(win1251, utf8, utf8Bytes); source = win1251.GetString(win1251Bytes); return source; } текст считывается из ini-файла. Через notepad++ просмотрел - все норм с кодировкой. Отсюда следует что проблема в следующем классе для чтения ini-файлов. class IniFile // revision 11 { string Path; string EXE = Assembly.GetExecutingAssembly().GetName().Name; [DllImport("kernel32", CharSet = CharSet.Unicode)] static extern long WritePrivateProfileString(string Section, string Key, string Value, string FilePath); [DllImport("kernel32", CharSet = CharSet.Unicode)] static extern int GetPrivateProfileString(string Section, string Key, string Default, StringBuilder RetVal, int Size, string FilePath); public IniFile(string IniPath = null) { Path = new FileInfo(IniPath ?? EXE + ".ini").FullName.ToString(); } public string Read(string Key, string Section = null) { var RetVal = new StringBuilder(255); GetPrivateProfileString(Section ?? EXE, Key, "", RetVal, 255, Path); return RetVal.ToString(); } public void Write(string Key, string Value, string Section = null) { WritePrivateProfileString(Section ?? EXE, Key, Value, Path); } public void DeleteKey(string Key, string Section = null) { Write(Key, null, Section ?? EXE); } public void DeleteSection(string Section = null) { Write(null, null, Section ?? EXE); } public bool KeyExists(string Key, string Section = null) { return Read(Key, Section).Length > 0; } } Вы делаете неправильно. Откуда вы взяли этот текст? Это важно. дополнил......... Ну так что....... Окей, а какую кодировку показывает Notepad++? string text = "Заказ Р·РІРѕРЅРєР° технической поддержки"; Encoding utf8 = Encoding.GetEncoding("UTF-8"); Encoding win1251 = Encoding.GetEncoding("Windows-1251"); byte[] utf8Bytes = win1251.GetBytes(text); byte[] win1251Bytes = Encoding.Convert(utf8, win1251, utf8Bytes); Console.WriteLine(win1251.GetString(win1251Bytes)); Output: Заказ звонка технической поддержки Логически перепутаны местами переменные utf8Bytes и win1251Bytes Если выводится ошибка, то стоит попробовать Encoding win1251 = CodePagesEncodingProvider.Instance.GetEncoding(1251);
33,659
j87jILzkhNc_1
Youtube-Commons
Open Web
CC-By
null
1/1 MARIANO RIVERA! - M. 3/29/21 - Jaspy's 11-Box Fishing for Trout Baseball Mixer *RT*
None
English
Spoken
2,250
2,901
What's up everybody? Jason for jasperjasecasebrakes.com. We're doing jasperjase 11 box fishing for trout baseball mixer Random teams where we're also giving away a trout autograph 9 5 10 out of 5 at the end of the break. So the way this works guys is first 30 total spots everybody gets a random team of the MLB Ripple of an all 11 boxes where we're no better in common ship everything else will And hopefully everybody gets some nice hits then at the end of the break We'll take all 30 customer names and randomize them and top name gets the trout definitive relic auto out of five bgs 9 5 10 gem plus as well So there you go Good luck. Let's do the break from a box of 19 chrome sapphire all the way down to 2020 contenders So let's roll the dice and let's do the break first five and a four nine times. There you go one two three four Five and round log is taking forever six Seven and it was nine eight Brian clay Done a roi di Pietro I five and a four nine times nine times one two three four five six seven eight nine White Sox out of the Marlins So Brian you have the White Sox mark with the Astros Danny with the Indians Jeremy Taylor with the Cubs Elec you have the Phillies Joshua chair with the Reds row with the Rays Michael with the Brewers Kevin with the Mariners Danny with the twins Jonathan with the Pirates Gretchen with the Blue J Sarah with the Giants now with the Oros Andy with the A's D-Mack you have the D-Backs Nick with the Angels will you have the Dodgers Shawn Maddock with the Royals Jonathan Arnaldi with the Rangers Gale with the Rockies David made with the Tigers Michael Garcia with the Red Sox Michael Luna with the Mets Robert Ronco with the Nationals Bradley with the Braves Tyler Fisher with the Padres Calvin with the Cardinals Alec with the Yankees and Roy with the Miami Marlins So I'll give you guys a quick minute to make any trades if you guys would like And like I said if not I'm gonna close the trade window and quickly run and get some water And then we'll start guys I Don't I Anybody trade I feel like you just whenever we have to get your team just gotta grab the cubs Sure, like best bet All right, she'll be see you guys Alrighty, good luck everybody It's not a crazy long mixer, but it's supposed to take me about like 45 minutes or so Mac camp He's just getting raked No, William. We just finished that cub hockey break. You have to do two synergies plus 10 spots We just put that up like right after I finished my break I'm probably not gonna go so tomorrow I did two of those plus 10 spots. All right. Good luck everybody Juan Soto's got kindre Really a dance Shohei Otani Showtime No, those breaks are gonna take a little bit. We have to do like two or three of those for NT No, that break is also we had to sell four spots plus two more blasters We're about to do that first break right now Nick just reloaded everything that's sold out Like I said, we're pretty much busy up until like for two hours So after this mixture, we got to do the blaster number two that sold out earlier And then we're gonna do the briefcase break. So that'll be the second half So pretty much everything that has fillers has to do a couple of them Glaber Taurus labor Taurus again Francisco Mejia he and half that's a gold How about a little Juan Soto and Ronald Acunha Jr. What a nice little update blaster. So we got Shohei Glaber Juan Soto Acunha Very nice little blaster No, this show here right there But a foil All right, nice little blaster box got pretty much most of the players you want 1314 draft picks have a chance to get some Mookie bets rookies All right, good luck guys Shawn Maneo for Kansas City Chris Taylor autograph for Seattle prospects signatures Carson Kelly, there's a mookie bets Chris Anderson draft class to 100 Yeah, I think he's technically a rookie here, but this is draft picks so I guess he can be actually Tim Anderson the 75 for Chicago prospects signatures We got Michael Frankel Miners gold for Philadelphia. We got Gregory Polanco for Pittsburgh and Devon Travis for Detroit Jacob May for Chicago Blake Taylor I Next one Donneress 2021 All righty next box, so we're getting done with all the big heavy base products first 2021 Ryan Mountcastle And these are sick cards beautiful, but they're out of 999s would really trust me out They're very nice unleash Chris Bryant They grown I think that's like a little insert the big Apple last now Kristen Yelich to 488 All right, this one's a 149. That's not bad price Harper Philadelphia Phillies Very nice little color match sick those Sanchez Kevin Beasio Donaldson judge yellow Lindor and Brandon Lowe Nick Madrigal Chicago White Sox autographed by Brian Clay Bobby Delback Raphael Marchand For the Philadelphia Phillies and Alec Balm to 25 relic Dylan Bundy People to go Will Smith to 999 highlights Joe Adele Paul Molliter Alec Balm Juan Soda to 249 Yeah, I know Yelich is a rookie until in the 13 because he's like in tops and all that, but I don't know if he would be in panini draft picks 13 Let's go contenders now guys 2020 All right. Good luck everybody six autos We got a legacy to 99 that is Reggie Jackson for the Yankees and Max Meyer so again some of these will won't have the team that they're affiliated with Because they're prospects, but we'll look those up at the end of the break and Give them out to the right team if there are some that are not affiliated then we'll give them away a little randomizer to as well Brock Burkeford, Texas Ricky ticket. Oh printing plate Charlie Blackman 101 printing plate Carl Walter Rockies and Matt Mervis for the Chicago Three more guys Bryce Elderford Lana Reed Detmerce for Louisville draft ticket. I want to check on both of those there And the last one here Big-time player right unless this box is just that whack Brewstar grader all nice. Thank you, Jeremy. I like to confirm with the customers on in the video I always like to show the Always like to show the teams on the screen, but thank you man. I trust you so you have that as a case next over with the angels If it's sold out John I will add it to the schedule and break it chronicles All right, good luck everybody Jonathan Daza with a spectra patch auto the Colorado Rockies Rafael Devers Nolan Arnaud And we got Jeff McNeil autograph Show Hill Tony and Gavin Lux and Jonathan Hernandez with a patch auto for Texas try to trade pit and trade mojo Jonathan Oh Tray Mancini Paul Lewis and Cody Belanger Vladimir Guerrero Jr. Number to 75 is a nice looking card in spectra Boba chef Jose Altuve and Mookie Betts our last one here and Luis Robert Relic Jordan Alvarez green number to 50 Oh All right, let's go select and the rest of it will be three boxes of sapphire edition prime cuts 2005 and Museum collection. All right. Good luck guys Jordan Alvarez little relic Chris Patek. That's a red Premier level to 199 You got a tri-color Walker Bueller You guys Anna Bogart says a silver Michael King silver rookie and Bobby Bradley numbered to 10 gold for Cleveland Very nice little gold Cleveland go to Danny And Justin Dunn to 199 for Seattle Kevin with that one Buster Posey for select Blue number to 149 little die cut Lewis Dorp from your level Dejula May you what is this artistic impressions? Bregman Max Fried Jonathan Hernandez tricolor Jordan Alvarez our citizen Aquino and Aussie albies to 149 Little patch my trout sandy alcantara. All right, so there you go So let's go with this 2005 prime cuts. I'm actually haven't seen this in such a long time. See what's in here If it's like a one-car deal This is like the checklist and we have a Wait, there's two cards. Oh, it's cards at the bottom We got a Greg Maddox for the Chicago Cubs That is 10 out of 10 Very nice. We got Number to 399 Jason Schmidt. We got Michael Young Relic for the Texas Rangers to 50 We got a Hank Aaron. I have no idea what this is this like silver or something gold Milwaukee braves, of course, gonna the Atlanta Braves gonna Bradley and timeline weight box Boston That's also down to 100 All right, there you go. That's Greg Maddox though 10 out of 10. All right, let's go with some sapphire. Let's go with update first Ended off with these last three boxes here Trouty Tyler Wade Tinoco Spear and Dustin May Autograph here for the Dodgers Will hasher that one. Kyle Lewis. We had Cody Stashac to 25 griffy Yeah All right, we're gonna pennies the wall of these guys. All right, let's go with bowman sapphire 2020 It's in Jason Dominguez potentially So yeah, I've got like both Brennan Davis Blasovac Damon Jones Shortridge Wanda Franco Wow, Robert Pausen very nice for the Oakland athletics Oakland A's Andy with that one. That's pretty nice You're not gonna get a Jason Dominguez. Robert Pausen is one of the better ones as well very nice Volpe Alrighty last sapphire box is a big one right here 2019 tops chrome Let's get some tautis And these are probably my favorite year of sapphire. Just the color just pops This sapphire is amazing Rojas Castro whoa You have a super fractor Yolmer Sanchez for the white socks a lot of one-on-ones today Super fractor And if that was like a little Elohim in his out of the wild White socks that is going to Brian clay. Very nice Strasburg Rocell Herrera Jacob Knicks the San Diego Padres Castellanos Keston All right guys last box and then we got a randomize that trout give it away to one customer in this break Good luck Just want to protect these cards. These are beautiful cards. So these panties leaving them We'll help last box guys. Oh, did I feel a metal card? Feels a little heavy. You're awesome if I felt a frame. Yeah, this was heavier Yep, there's a frame in here. Wow. You guys got a frame case hoods We'll leave this one to be lost Bryce Harper Trouty our Bryce Harper Trevor story Ozzy Elvis or sorry Ozzy Smith and a canvas collection your Don Alvarez Mike Trout's Lou Gehrig Tony Quinn Josh Bell Francisco Lendor to 99 Got Anthony Rizzo Kangaroo Junior Andrew McCutcheon, and I'm gonna put a blank over this one. So you guys don't see who this is But that's another canvas collection and this actually looks real Hang Garen for the brave that looks really nice though All right, Justice Sheffield little patch to 25 Dustin May rookie autograph to 299 For the Dodgers going to will we got Matt Carpenter quad relic Number to 75 Last but not least you guys got a frame guys. Good luck. It is Mariano Rivera Wow, look at that one of one as well. Whoo. Wow. It's a one-of-one Yankees going to Alec 101 framed patch autograph of Mariano Rivera Sheesh What a mixer that is sweet There you go, that is a beautiful way to end it. Oh, we even got a super fracter earlier. Not the craziest player, but We got two one-to-one super fracter Mariano Rivera Very very nice There you go Little quick little recap Dustin May right there Nick's autograph Passen autograph is a great mixer Dustin May rookie autograph by the Greg Maddox to 10 from prime cuts Gold Bobby Bradley printing plate one-of-one as well And they're ready by default because he's already getting a one-of-one Got Madrigal as well Unleashed, this was a really nice card Mookie Betts Even the first box was really really nice all those rookies there Very strong break Very very strong that Mariano Rivera's That's a nice one right there Let's quickly just look at these two to show you guys on group rate checklist and then good luck everybody four-to-five definitive Gem plus all nine fives plus ten surface Mike Trout being given away Switch seems really quick contenders optic Or sorry, let's go group rate checklist 2020 tenders Baseball and again the first one was max Myer which is Marlins Yeah, I know earlier someone said for the Redepimers it was angels, but I just wanted to show it to you that angels Alrighty, so there you go So now here's the dice really here's the original customer names that bought in their one spots and contenders number three and four and five Remember customer number one gets the Mike trout Good luck everybody Let's roll it One and a six for lucky number seven good luck one two three four five six and Seven the final time guys.
36,786
https://ur.wikipedia.org/wiki/%D9%BE%D8%B1%DB%81%D9%84%D8%A7%D8%AF
Wikipedia
Open Web
CC-By-SA
2,023
پرہلاد
https://ur.wikipedia.org/w/index.php?title=پرہلاد&action=history
Urdu
Spoken
50
177
پرہلاد ہرنیکاشیپو کا بیٹا تھا جو ملتان (کشیاپاپورہ) کا راجا تھا۔ مزید دیکھیے کپل نراد Bhakti Yoga Jaya-Vijaya ملتان Raghavendra Swami حوالہ جات مزید پڑھیں بیرونی روابط Prahlada in the Vishnu Purana بھگوت پران میں مذکور کردار ہندو فرماں روا ہولی شلاکا پرش اسر Short description is different from Wikidata
8,767
https://ro.wikipedia.org/wiki/List%C4%83%20de%20conduc%C4%83tori%20de%20stat%20din%20751
Wikipedia
Open Web
CC-By-SA
2,023
Listă de conducători de stat din 751
https://ro.wikipedia.org/w/index.php?title=Listă de conducători de stat din 751&action=history
Romanian
Spoken
375
1,235
747 - 748 - 749 - 750 - 751 - 752 - 753 - 754 - 755 Aceasta este o listă a conducătorilor de stat din anul 751: Europa Anglia, statul anglo-saxon Northumbria: Eadberht (rege, 737-757) Anglia, statul anglo-saxon East Anglia: Beonna, Hun și Alberht (regi, 749-?) (?) Anglia, statul anglo-saxon Essex: Swithred (rege, 746-cca. 758) Anglia, statul anglo-saxon Kent: Ethelberht al II-lea (rege, 725-762) și Eadherht (rege, 725-după 762) Anglia, statul anglo-saxon Mercia: Ethelbald (rege, 716-757) Anglia, statul anglo-saxon Wessex: Cuthred (rege, 740-756) Asturia: Alfonso I (rege, 739-757) Bavaria: Tassilo al III-lea (duce din dinastia Agilolfingilor, 749-788) Benevento: Liutprand (duce, 749-758) Bizanț: Constantin al V-lea Copronimul (împărat din dinastia Isauriană, 741-775) Bulgaria: Sevar (han, 738-753/754) Francii: Childeric al III-lea (rege din dinastia Merovingiană, 743-751/752) și Pepin_cel_Scurt (rege din dinastia Carolingiană, 751/752-768) Friuli: Anselm (duce, 749-751) și Petru (duce, 751-774) Gruzia, statul Khartlia (Iberia): Adarnase al III-lea (suveran, cca. 748-760) Longobarzii: Aistulf (Aistolf) (rege, 749-756; anterior, duce de Friuli, 744-749; ulterior, duce de Spoleto, 752-756) Neapole: Grigore I (duce bizantin, 739/740-754/755) Ravenna: Eutihie (exarh, 728-752) Scoția, statul picților: Oengus (Onuist) I (rege, 728, 729-761) Scoția, statul celt Dalriada: Aed Finn (rege, 748-778) Spoleto: Lupus (duce, 745-752) Statul papal: Zacharias (papă, 741-752) Veneția: Deusdedit (doge, 742-755; anterior, magister militum, 739) Asia Orientul Apropiat Bizanț: Constantin al V-lea Copronimul (împărat din dinastia Isauriană, 741-775) Califatul abbasid: Abu'l-Abbas as-Saffah ibn Muhammad (calif din dinastia Abbasizilor, 749-754) Orientul Îndepărtat Cambodgea, statul Tjampa: Rudravarman al II-lea (rege din a patra dinastie, după 749-758?) China: Huanzong (împărat din dinastia Tang, 712-756) Coreea, statul Silla: Kyongdok (Hong-yong) (rege din dinastia Kim, 742-765) India, statul Chalukya: Kirtivarman al II-lea (rege, 744/745-753/760) India, statul Chalukya răsăriteană: Vijayaditya I (Bhattaraka) (rege, 746-764) India, statul Gurjara Pratihara: Nagabhata I (rege, cca. 730-cca. 756) India, statul Pallava: Nandivarman al II-lea Pallavamalla (Nandipotavarman) (rege din a treia dinastie, 731-795) India, statul Raștrakuților: Dantidurga (Dantivarman al II-lea) (rege, 733-cca. 758) Kashmir: Samgramapida I (rege din dinastia Karkota, 744-751) și Jayapida (sau Vinayaditya) (rege din dinastia Karkota, 751-782) Japonia: Koken (împărăteasă, 749-758) Nepal: Narendradeva al II-lea (rege din dinastia Thakuri, cca. 740-777) și Jayadeva al II-lea (Paramabhataraka Maharajadhiraja) (rege din dinastia Thakuri, 748/751) Sri Lanka: Aggabodhi al VI-lea Silamegha (rege din dinastia Silakala, 719-759) Tibet: Mes-ag-ts'oms (chos-rgyal, 704-754/755) 751 751
16,246
https://stackoverflow.com/questions/70366199
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
deceze, https://stackoverflow.com/users/2578632, https://stackoverflow.com/users/476, kvirk
English
Spoken
395
553
ANSI Chinese Codepage Conversion (CP950) I am puzzled about the meaning of the chinese CP 950. AFAIK, ANSI consists of 256 characters, but CP950 seems to have quite more. On the WIKI page (CP950) a layout defined by Microsoft is shown as image with a reference to a textfile describing the translations made. Did I get it right, that a western europe CP (e.g.: CP1250) is translated into CP950 by combining multiple characters from CP1250 into one character of CP950? Vice versa, a single CP950 character gets dissolved into multiple CP1250 characters? Could somebody show me the translation process with the help of a simple example? (e.g.: CP1250 A7 (§) is translated into CP950 ... this way) I do really struggle to get the process right. Summarized I did understand, that no Unicode is needed to represent the chinese characters in CP950 (traditional), that ANSI is still applicable, and transformations from western europe to CP950 could be applied. Well, there's the abstract idea of a character like "§", and then there's the question what bytes do you use to represent it. Single-byte encodings like CP1250 just map all possible values of a byte to one character, hence they can only represent 256 different characters. Encodings like CP950 are a bit more sophisticated and use multiple bytes per character and some rules you need to follow. To translate from one encoding to another, you decode the bytes to the abstract character, and then encode it again to bytes using the rules of your target encoding… Also see What Every Programmer Absolutely, Positively Needs To Know About Encodings And Character Sets To Work With Text… Thanks for your link and explanation, great article. This basically means that the CP950 characters get decoded to byte representation while getting transformed to CP1250 following some rules, but with e.g. 0x77bb 0xc2a4 the single bytes get table-mapped into CP1250 representation (e.g. a4 results in ¤), thus resulting into a string having more characters. Unfortunately, no official documents do exist to do some transformation with pen and paper? In practice all encoding conversions go via Unicode these days, since otherwise you'd need to have an n-to-n mapping of every encoding to every other encoding. Decode bytes in one encoding to the defined abstract Unicode character, then encode that character to your target encoding according to its rules. Those individual rules are… somewhere…
40,397
https://stackoverflow.com/questions/2720197
StackExchange
Open Web
CC-By-SA
2,010
Stack Exchange
ACP, Marcus, Nigeria, RoToRa, Shen, Thanh Ho, Vivek , Yash, govinda, https://stackoverflow.com/users/146857, https://stackoverflow.com/users/318493, https://stackoverflow.com/users/326735, https://stackoverflow.com/users/530006, https://stackoverflow.com/users/5584642, https://stackoverflow.com/users/5584643, https://stackoverflow.com/users/5584644, https://stackoverflow.com/users/5584662, https://stackoverflow.com/users/5584723
Wolof
Spoken
241
523
Cross browser's issue to highlight option item as bold in form element "select" I am facing one weird cross browsers problem i.e. I want to highlight some of the option items as bold by using CSS class in my form element "select". This all is working fine in firefox only but not in other browsers like safari , chrome and IE .Given below is the code. <html> <head> <title>MAke Heading Bold</title> <style type="text/css"> .mycss {font-weight:bold;} </style> </head> <body> <form name="myform"> <select name="myselect"> <option value="one">one</option> <option value="two" class="mycss">two</option> <option value="three" >Three </option> </select> </form> </body> </html> Some browsers simply don't support styling of option . @RoToRa my answer works for every browser including IE6 http://www.outfront.net/tutorials_02/adv_tech/funkyforms5.htm try this site in chrome or safari ..bold heading doesn't come in drop down. @Pandiya Chendur Does it? I can't see how using a element selector and a class selector would work better than just a class selector. Most browsers support both equally. @ChendurPandian , check before you make statements like, "my answer works for every browser". I have not read definitive articles, but I see from actual testing that bolding select options does not show any visual difference in at least Chrome 19/Mac. Vivek try this, <style type="text/css"> option.mycss{font-weight:bold;} </style> For ref Styling Dropdown Lists Hi , even this is working for firefox only .... If you check this reference site also http://www.outfront.net/tutorials_02/adv_tech/funkyforms5.htm in chrome, IE or safari ....Bold headings doesn't come in dropdown ... thanks
8,312
https://nl.wikipedia.org/wiki/Bo%C4%87ki%20%28gemeente%29
Wikipedia
Open Web
CC-By-SA
2,023
Boćki (gemeente)
https://nl.wikipedia.org/w/index.php?title=Boćki (gemeente)&action=history
Dutch
Spoken
137
418
De gemeente Boćki is een landgemeente in het Poolse woiwodschap Podlachië, in powiat Bielski (Podlachië). De zetel van de gemeente is in Boćki. Op 30 juni 2004 telde de gemeente 5119 inwoners. Oppervlakte gegevens In 2002 bedroeg de totale oppervlakte van gemeente Boćki 232,06 km², waarvan: agrarisch gebied: 73% bossen: 20% De gemeente beslaat 16,75% van de totale oppervlakte van de powiat. Demografie Stand op 30 juni 2004: In 2002 bedroeg het gemiddelde inkomen per inwoner 1100,32 zł. Plaatsen Andryjanki, Boćki, Bodaczki, Bodaki, Bystre, Chranibory Drugie, Chranibory Pierwsze, Dubno, Dziecinne, Hawryłki, Jakubowskie, Krasna Wieś, Młynisk, Mołoczki, Nurzec, Olszewo, Pasieka, Piotrowo-Krzywokoły, Piotrowo-Trojany, Przy Ostaszach, Sasiny, Siedlece, Siekluki, Sielc, Skalimowo, Solniki, Starowieś, Szeszyły, Szumki, Śnieżki, Torule, Wandalin, Wandalinek, Wiercień, Wojtki, Wygonowo, Wylan, Żołoćki. Aangrenzende gemeenten Bielsk Podlaski, Brańsk, Dziadkowice, Kleszczele, Milejczyce, Orla Externe link Wirtualne Boćki Gemeente in Podlachië
15,645
https://superuser.com/questions/955594
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Vomit IT - Chunky Mess Style, fixer1234, https://superuser.com/users/364367, https://superuser.com/users/510662
English
Spoken
135
243
Scheduling WordPress auto-updates Is it possible to schedule when WordPress does its automatic updates? I don't want my site going down for an update during peak times or really any time during the day. I wish there was an option in the admin panel to schedule updates like you can with Windows. This would be on-topic at wordpress.SE; off-topic here (hover on [wordpress] tag). Here's another starting point for you in your task: https://www.elegantthemes.com/blog/tips-tricks/automatic-wordpress-updates-how-to-turn-them-on-or-off-and-decide-which-is-right-for-youYou might search around for an applicable plug-in too that'll suffice. If you are using a self-hosted version of WordPress, then you can use WP Update Settings or Advanced Automatic Updates. Both allow you to automatically update WordPress. The second has a lot more options and more reviews. If you are using WordPress's hosted option, by default your WordPress will self update.
42,993
https://stackoverflow.com/questions/50244709
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
H. berg, Urvah Shabbir, https://stackoverflow.com/users/12131498, https://stackoverflow.com/users/2296728, https://stackoverflow.com/users/3799203, https://stackoverflow.com/users/4195053, mnm, user3799203
English
Spoken
1,023
1,888
How to store r ggplot graph as html code snippet I am creating an html document by creating various objects with ggplotly() and htmltools functions like h3() and html(). Then I submit them as a list to htmltools::save_html() to create an html file. I would like to add ggplot charts directly as images, rather than attaching all the plotly bells and whistles. In the end, I will create a self-contained html file (no dependencies), and the plotly stuff would make that file excessively large. Is there some function that converts a ggplot object into some html-type object? Or do I have to save the ggplot as a .png file, then read the .png file into some object that I add to the list in the save_html() function? My R code looks something like this: library("tidyverse") library("plotly") library("htmltools") HTMLOut <- "c:/Users/MrMagoo/My.html") df <- data.frame(x=1:25, y=c(1:25*1:25)) g7 <- ggplot(df,aes(x=x, y=y)) + geom_point() p7 <- ggplotly(g7) # I would like to use something other than ggplotly here. Just capturing the ggplot as an image would be fine. # create other objects to add to the html file t7 <- h2(id="graph7", "Title for graph #7") d7 <- p("description of graph 7") save_html(list(t7, p7, d7), HTMLOut) # of course, the real code has many more objects in that list – more graphs, text, tables, etc. I would like to replace the plotly object (p7) with something that just presents g7 in a way that would not cause an error in the save_html function. I had hoped to find a function that could directly Base64 encode a ggplot object, but it seems that I first need to output the 'ggplot' object as a .png file (or SVG, per Teng L, below), then base64-encode it. I was hoping there was a more direct way, but I may end up doing that, as in https://stackoverflow.com/a/33410766/3799203 , ending it with g7img <- "<img src=\"data:image/png;base64,(base64encode string)\"" g7img <- htmltools::html(g7img) have you seen this post Thanks, I did see that post. I would like to avoid plotly, because the self-contained html file it creates are large (over two megabytes), to support all the interactive functions it provides. I ended up generating a temparory image file, then base64 encoding it, within a function I called encodeGraphic() (borrowing code from LukeA's post): library(ggplot2) library(RCurl) library(htmltools) encodeGraphic <- function(g) { png(tf1 <- tempfile(fileext = ".png")) # Get an unused filename in the session's temporary directory, and open that file for .png structured output. print(g) # Output a graphic to the file dev.off() # Close the file. txt <- RCurl::base64Encode(readBin(tf1, "raw", file.info(tf1)[1, "size"]), "txt") # Convert the graphic image to a base 64 encoded string. myImage <- htmltools::HTML(sprintf('<img src="data:image/png;base64,%s">', txt)) # Save the image as a markdown-friendly html object. return(myImage) } HTMLOut <- "~/TEST.html" # Say where to save the html file. g <- ggplot(mtcars, aes(x=gear,y=mpg,group=factor(am),color=factor(am))) + geom_line() # Create some ggplot graph object hg <- encodeGraphic(g) # run the function that base64 encodes the graph forHTML <- list(h1("My header"), p("Lead-in text about the graph"), hg) save_html(forHTML, HTMLOut) # output it to the html file. is there a way to control the width of the image. Is there a way to use the htm code 'forHTML' and still being interactive as a real plotly plot? I wonder cause i struggle to add a plotly plot in a Wordpress post or page as a html output...but with the html code 'forHTML' is works...though its not interactive anymore... If you want to save the plot as a dynamic plotly graph, you could use htmlwidgets::saveWidget. This will produce a stand-alone html file. Here is a minimal example: library(tidyverse); library(plotly); library(htmlwidgets); df <- data.frame(x = 1:25, y = c(1:25 * 1:25)) gg <- ggplot(df,aes(x = x, y = y)) + geom_point() # Save ggplotly as widget in file test.html saveWidget(ggplotly(gg), file = "test.html"); I think what you want may be close to one of the following: Seems you are creating an HTML report but hasn't checked out RMarkdown. It comes with Base64 encode. When you create an RMarkdown report, pandoc automatically converts any plots into an HTML element within the document, so the report is self-contained. SVG plots. This is less likely to be what you might want, but SVG plots are markup-language based and may be easily portable. Specify .svg extension when you use ggsave() and you should be getting an SVG image. Note that SVG is an as-is implementation of the plot, so if can be huge in file size if you have thousands of shapes and lines. SVG may be an OK solution. I added more to my original post about saving the ggplot to a file. This is an extension to the Maurits Evers post. In this answer I'm showing how to combine multiple plotly plots in the same html file in an organized fashion: library("plotly") library("htmltools") # a small helper function to avoid repetition my_func <- function(..., title){ ## Description: ## A function to add title to put multiple gg plotly objects under a html heading ## ## Arguments: ## ...: a list of gg objects ## title: a character vector to specify the heading text # get the ... in list format lst <- list(...) # create the heading tmp_title <- htmltools::h1(title) # convert each ggplot to ggplotly and put them under the same div html tag tmp_plot <- lapply(lst, ggplotly) |> htmltools::div() # return the final object as list return(list(tmp_title, tmp_plot)) } # a toy data df <- data.frame(x = 1:25, y = c(1:25 * 1:25)) # the ggplot object using the toy data gg <- ggplot(df,aes(x = x, y = y)) + geom_point() # put everything in order final_list <- list(my_func(obj = list(gg, gg, gg), title = "The first heading"), my_func(obj = list(gg, gg), title = "The second heading")) # write to disk as a unified HTML file htmltools::save_html(html = final_list, file = "index.html")) Disclaimer: I specifically did this to avoid using widgetframe R package and to be completely on par with the documentation of plotly-r. You can read the link if you are comfortable with adding extra dependency and extra abstraction layer. I prefer to use packages if and only if necessary. :)
47,744
https://nl.wikipedia.org/wiki/Sailen%20Manna
Wikipedia
Open Web
CC-By-SA
2,023
Sailen Manna
https://nl.wikipedia.org/w/index.php?title=Sailen Manna&action=history
Dutch
Spoken
337
571
Sailendra Nath Manna (beter bekend als Sailen Manna) (Howrah, 1 september 1924 - Kolkata, 27 februari 2012) was een Indiase voetballer. Hij wordt beschouwd als een van de beste verdedigers die het land ooit gekend heeft. In 2000 werd hij door de All India Football Federation gekozen als 'voetballer van het millennium'. Hij was in de periode 1951-1956 international (veertien caps) en met hem als aanvoerder won India de gouden medaille op de Asian Games van 1951 in New Delhi. Loopbaan Manna speelde maar liefst negentien jaar voor India's topclub Mohun Bagan, waarmee hij verschillende prijzen pakte. Hij begon zijn voetballoopbaan echter in 1940 bij Howrah Union, die toen in de tweede divisie van de Kolkata Football League speelde. Hij stapte in 1942 over naar Mohun Bagan, waar hij tot het einde van zijn loopbaan in 1960 actief was. Hij was hier zes jaar aanvoerder (1950-1955). Als verdediger stond hij onder meer bekend om zijn anticiperingsvermogen en zijn sterke vrije trappen. Na zijn actieve clubcarrière werd hij coach bij de club en later was hij lid van het bestuur als assistent secretaris. Manna was lid van het nationale elftal dat in 1948 aantrad tijdens de Olympische Spelen in Londen, waar het team met een nipte nederlaag werd uitgeschakeld door Frankrijk (1-2). Manna speelde hier op blote voeten (!). Naast de gouden medaille in 1951 won hij met het elftal vier achtereenvolgende jaren het Quandrangular Tournament (met de landen India, Pakistan, Birma en Sri Lanka) (1952-1956). In 1953 noemde de Football Association in Engeland hem als een van de beste tien teamcaptains ter wereld. In 1952 was hij ook aanvoerder van India tijdens de Spelen, evenals in 1954 tijdens de Aziatische Spelen en tijdens de Merdeka Cup van 1961 en 1968. In 1971 werd hem de Indiase staatsprijs Padma Shri toegekend. Door zijn oude club werd hij geëerd met de titel Mohun Bagan 'Ratna' ('juweel'). Referenties Football legend Manna passes away, The Hindu, 28 februari 2012 Indian football legend Sailen Manna passes away, Goal.com, 27 februari 2012 Manna
18,161
https://stackoverflow.com/questions/50243755
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
English
Spoken
127
245
What's the label for in `ModelForm` I am building a web following the instruction. I didn't understand the labels attributes: class TopicForm(forms.ModelForm): class Meta: model = Topic fields = ['text'] labels = {'text':''} The Topic in models.py does not specify labels attributes: class Topic(models.Model): """A topic the user is learning about.""" text = models.CharField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) What's the labels for? The label argument lets you specify the “human-friendly” label for a specific field. Generally used in a Form. The default label for a Field is generated from the field name by converting all underscores to spaces and upper-casing the first letter the_name = forms.CharField() Label is: The name name = forms.CharField(label='Your name') Label is: Your name because we set the label argument Source : Django Documentation
22,039
https://zh.wikipedia.org/wiki/1930%E5%B9%B44%E6%9C%8813%E6%97%A5%E6%9C%88%E9%A3%9F
Wikipedia
Open Web
CC-By-SA
2,023
1930年4月13日月食
https://zh.wikipedia.org/w/index.php?title=1930年4月13日月食&action=history
Chinese
Spoken
19
257
1930年4月13日月食为一次在协调世界时1930年4月13日出現的月偏食。該次月食半影食分為1.132、全影食分為0.112。偏食維持了38分。 概述 這次月食的食分是13.42,偏食維持了38分。 基本參數 類型:月偏食 食甚資料: 日期:1930年4月13日 時間:5:59 月球位置:赤經13.42度、赤緯-8.0度 食分:半影食分:1.132、全影食分:0.112 持續時間:偏食38分 參見 20世紀月食列表 月食的第111沙羅週期 參考資料 外部連結 NASA月食專頁 20世紀月偏食 1930年代月食
40,454
https://ky.wikipedia.org/wiki/%D0%9D%D0%B0%D1%87%D0%B0%D1%80%20%28%D0%91%D0%B0%D0%BB%D1%82%D0%B0%D1%87%D0%B5%D0%B2%20%D1%80%D0%B0%D0%B9%D0%BE%D0%BD%D1%83%2C%20%D0%91%D0%B0%D1%88%D0%BA%D1%8B%D1%80%D1%82%D1%81%D1%82%D0%B0%D0%BD%29
Wikipedia
Open Web
CC-By-SA
2,023
Начар (Балтачев району, Башкыртстан)
https://ky.wikipedia.org/w/index.php?title=Начар (Балтачев району, Башкыртстан)&action=history
Kyrgyz
Spoken
41
195
Начар — Башкыртстандын Балтачев районундагы айыл, Төмөнкү Карышев айылдык кеңешине карайт. 2009-жылдын 1-январына карата калкынын саны — 341 киши. Почта индекси — 452995, ОКАТО коду — 80208819010. Демографиясы Тургундардын динамикасы: Булактар Тышкы шилтемелер Башкыртстан Республикасынын муниципалдык билим берүү кеңеши. Башкыртстандын айылдары
29,111
https://ru.stackoverflow.com/questions/566469
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
Naumov, https://ru.stackoverflow.com/users/191482, https://ru.stackoverflow.com/users/196563, https://ru.stackoverflow.com/users/220125, user220125, Алексей Шиманский
English
Spoken
246
821
Значение поля не добавляется в базу При добавлении нового пользователя пишет такое: Invalid datetime format: 1292 Incorrect datetime value: '' for column 'birthday' at row 1. The SQL statement executed was: INSERT INTO.... Значение поля birthday в mysql записывается как null. <?php echo $form->hiddenField($model, 'birthday', array('id'=>'birthday_value','maxlength'=>255)); ?> <?php echo CHtml::label($model->getAttributeLabel('birthday'), 'pub_date'); ?> <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 'name'=>'pub_date', 'language'=>'ru', 'value'=>lnText::format_date($model->birthday), 'options' => array( 'dateFormat' => 'dd.mm.yy', // save to db format 'mode'=>'datetime', 'changeMonth'=>'true', 'changeYear'=>'true', 'showButtonPanel'=> false, 'onSelect'=> 'js:function(dateText, inst){datetime(dateText, true);}', 'yearRange'=> '1900', ), 'htmlOptions' => array( 'class' => 'span2', ), )); ?> А тут обработка формата на js: <script type="text/javascript"> function datetime(text, date) { var datetext = formatDate(new Date(getDateFromFormat(text,"dd.MM.yyyy")), "yyyy-MM-dd"); $("#birthday_value").val(datetext); } </script> Добавление в базу реализуются через экшены yii1. Может вам не хватает timу, а вообще чтоб на конвертирование в клиентской части не полагаться, может быть стоит в модели переопределить метод beforeSave и там конвертировать входящую дату в ту что вам нужна? Хмм.. попробую c beforeSave(). Спасибо. Записывает только не то, что нужно. `public function beforeSave() { $date = new DateTime($_POST['Dossier']['birthday']); $this->birthday = $date->format('Y-m-d H:i:s'); return parent::beforeSave(); }` записывается созданное время. У yii есть свой форматтер http://www.yiiframework.com/doc/api/1.1/CDateFormatter#format-detail .... может быть попробовать что-то типа такого Yii::app()->dateFormatter->format('Y-m-d H:i:s', strtotime($_POST['Dossier']['birthday'])); Ошибка все та же. так у вас 'dateFormat' => 'dd.mm.yy', // save to db format форматируеться date а должна записаться datetime в таблицу или я что то упускаю. да, так собственно написано, но если не записывать H:i:s, по умолчанию будет 00:00:00. Тут ошибка не во времени, а именно в дате
12,094
https://es.wikipedia.org/wiki/Francisco%20M%C3%A9ndez%20Alonso
Wikipedia
Open Web
CC-By-SA
2,023
Francisco Méndez Alonso
https://es.wikipedia.org/w/index.php?title=Francisco Méndez Alonso&action=history
Spanish
Spoken
147
258
Francisco Méndez Alonso (Trubia, Asturias, España, 16 de noviembre de 1924) es un exfutbolista español que jugaba como delantero. Su equipo principal fue el Real Sporting de Gijón, conocido entonces como Real Gijón, en el que se mantuvo durante tres temporadas. Trayectoria Méndez nació en Trubia pero debido a que lo destinaron a Irún al servicio militar, se inició en la práctica del fútbol con el Deportivo Alavés en 1944. Allí estuvo jugando durante dos temporadas hasta que en 1946 regresó a Asturias y se incorporó a la disciplina del Real Gijón. Con los gijoneses disputó dos campañas en Primera División y otra más en Segunda en las que jugó un total de sesenta y un encuentros en los que consiguió anotar treinta goles. Clubes Referencias Futbolistas de Oviedo Futbolistas del Deportivo Alavés en los años 1940 Futbolistas del Real Sporting de Gijón en los años 1940
33,127
https://zh.wikipedia.org/wiki/%E5%BE%B7%E5%90%95%E5%85%8B%E9%99%A8%E7%9F%B3%E5%9D%91
Wikipedia
Open Web
CC-By-SA
2,023
德吕克陨石坑
https://zh.wikipedia.org/w/index.php?title=德吕克陨石坑&action=history
Chinese
Spoken
26
794
德吕克陨石坑(Deluc)是月球正面南部高地上一座古老的大撞击坑,约形成于39.2亿-38.5亿年前的酒海纪,其名称取自瑞士地质学家暨气象学家让-安德烈·德吕克(1727年-1817年),1935年被国际天文学联合会批准接受。 描述 该陨坑西南偏西毗邻巨大的克拉维斯环形山、西北偏北靠近马吉尼环形山、赫拉克利特环形山位于它的东北、东侧坐落着里利乌斯环形山,而扎奇环形山则横亘在它的东南 。该陨坑中心月面坐标为,直径45.69公里,深约2.283公里。 德吕克陨石坑边缘外观不太圆,西北侧略为凸出,受侵蚀程度中等。坑壁已磨损,东北壁切入了卫星坑德吕克 H,该卫星坑形成时所抛射的岩石,形成了一座突起的三角堆,从该侧坑底一直延伸到德吕克陨坑中心点附近;南侧外壁则附靠了小陨坑德吕克 T,而它又与南面更大的德吕克 D连接在一起。德吕克陨坑的坑壁平均高出周边地形1080米,内部容积约1624.67公里³。陨坑坑底较深,表面因长时期的小陨坑撞击而磨损、挫平,除东部及中心点偏南处坐落了二座较醒目的碗状坑外,坑底大部分区域都只显示有一些极细小的陨坑。 卫星陨石坑 按惯例,最靠近德吕克陨石坑的卫星坑将在月图上以字母标注在它的中心点旁边。 参引资料 外部链接 月球数码摄影图集. LAC-126 图中的德吕克陨石坑. 德吕克陨石坑周边月面图. 维基月球在线解说-德吕克陨石坑. Andersson, L.E., and E.A. Whitaker, 美国宇航局月球地名目录, 美国宇航局参考出版物1097, 1982年10月. D
40,658
https://stackoverflow.com/questions/20391391
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
Ingo, clime, https://stackoverflow.com/users/1152915, https://stackoverflow.com/users/745903, https://stackoverflow.com/users/854861, https://stackoverflow.com/users/86604, leftaroundabout, psr
English
Spoken
661
955
Haskell handling negative parameters Trying to sum two values, with only one of them negative, such as -1 and 2: soma :: Float -> Float -> Float soma x1 x2 = x1 + x2 The result in an error; WHY? <interactive>:10:6: No instance for (Num (Float -> Float -> Float)) arising from a use of `-' Possible fix: add an instance declaration for (Num (Float -> Float -> Float)) In the expression: soma - 1 2 In an equation for `it': it = soma - 1 2 it should be -1 (no space in between). Really try it; there's no space ok, then it should be (-1), sry Yes, it works but it's a poor solution; why is it an error? Did you have ever seen this? It is the only (and good) solution. Look at how expressions are evaluated in haskell (hint: soma gets applied on the unary minus operator and it complains it is not a float). You should use (-1) instead of - 1. The parser interprets what you typed as (-) soma (1 2). In other words, it tried to subtract (1 2) from soma. Which doesn't work because subtract doesn't accept a Float -> Float -> Float. What you would like (and expected to happen) was for haskell to evaluate the - as a unary operator on 1, with higher precedence than the function application. This would be contrary to the way haskell normally works. There already is special consideration for (-1) being interpreted as (negate 1). This can cause some problems, by virtue of being a special case - in the example trying to curry the - doesn't work because it isn't really -, but negate. Presumably an even broader special case carved out for - would lead to even more behavior unexpected by experienced haskell programmers and so the language designers decided it wasn't worth it. But, as minus is a unary operator, when typed without a space after, it SHOULD be interpreted as a unary operator and so, not be separated from the number following it. But it's perfectly valid to pass a unary operator as a parameter to another function. If by SHOULD you are disagreeing with the language's design philosophy, that is your right, though I would advise reserving judgement until you have a sense of how it all hangs together. My point is: I agree minus is a parameter IF is separated by a space from the number following. If I write -1 2, why is it not interpreted just as 2 parameters; it's different from - 1 2 I don't think people think needing to use parenthesis to make a negative number is ideal, but given the rest of the language syntax it's a problem that is very hard to fix without breaking other features that are desirable. "But, as minus is a unary operator," - no, it isn't. It's binary subtraction, and the language has a special rule that says that the section (-x) is not interpreted as (\y -> y - x) like with any other operator, but as (negate x) @Ingo Thank you. I should have mentioned that. @psr Actually the parser interprets his expression soma - 1 2 as (-) soma (1 2). That explains the complaints about a function not being an instance of Num. @Ingo - Er, maybe you should answer and I should just delete this? @psr :) Due to my exposure to Haskell, I was too lazy to write an answer. But I always stand ready to clear up confusions whre they arise. @user109964: Indeed it would be perfectly reasonably to parse -[0-9]*\..[0-9] as one token, and use that as a single (negative) literal. But the language standard says otherwise. Not everything is done ideally in Haskell! The related quirk of (-x) not being an operator section is even more annoying IMO. Wonder if we could have a {-# LANGUAGE UnaryMinusIsLiteralPrefix #-} extension... this basic idea was already brought up here.
33,062
https://vi.wikipedia.org/wiki/Dryopteris%20zippelii
Wikipedia
Open Web
CC-By-SA
2,023
Dryopteris zippelii
https://vi.wikipedia.org/w/index.php?title=Dryopteris zippelii&action=history
Vietnamese
Spoken
51
107
Dryopteris zippelii là một loài dương xỉ trong họ Dryopteridaceae. Loài này được Rosenst. mô tả khoa học đầu tiên năm 1917. Danh pháp khoa học của loài này chưa được làm sáng tỏ. Chú thích Liên kết ngoài Dryopteris Thực vật được mô tả năm 1917 Unresolved names es:Dryopteris zippelii
13,998
https://superuser.com/questions/1733454
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
English
Spoken
235
462
How can I monitor processes running at a CPU thread of a Hyperthreading CPU? My system is a network equipment, it uses Intel Hyper Thread processor and it runs Centos Linux. I can see /proc/cpuinfo has 2 processors, I assume they are actually 2 CPU threads, not 2 CPU cores. Now when I run "top", I can see all the processes running at both CPU threads. My question is, how can I monitor process running at only 1 CPU thread? Pressing "1" can show more CPU info from %Cpu(s): 2.4 us, 1.4 sy, 0.0 ni, 96.0 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st to %Cpu0 : 3.1 us, 0.7 sy, 0.0 ni, 95.8 id, 0.3 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 : 1.7 us, 2.4 sy, 0.0 ni, 95.6 id, 0.3 wa, 0.0 hi, 0.0 si, 0.0 st So looks like top does breakdown CPU threads, but I do not figure out how to make it to show processes by each or 1 CPU. ps -o pid,sgi_p,cmd -p [pid] (for a specific pid) or ps -eo pid,sgi_p,cmd (for all pids) will show which processor specific processes (pids) are running on or * if the process is neither running nor runnable (though, remember that processor assignment may be transient). A more useful ps example (with lots of outputs) may be: ps -eo pid,ppid,nlwp,tid,user,group,sgi_p,pcpu,pmem,stat,wchan:32,start,cputime,tty,cmd Check out the ps manpage under STANDARD FORMAT SPECIFIERS.
44,156
https://de.wikipedia.org/wiki/Georg%20Ratkay
Wikipedia
Open Web
CC-By-SA
2,023
Georg Ratkay
https://de.wikipedia.org/w/index.php?title=Georg Ratkay&action=history
German
Spoken
256
581
Georg Ratkay (* 3. April 1845 in Törökbálint; † 30. Mai 1868 in Wien) war ein Raubmörder, der als letzte Person in Österreich öffentlich hingerichtet wurde. Der Tischlergehilfe hatte am 9. Januar 1868 an der Tischlersgattin Marie Henke einen Raubmord begangen. Er erschlug sie mit einem Hobel. Laut Aktenlage erging das Todesurteil am 20. Mai 1868. Das Todesurteil wurde ihm am 28. Mai 1868 bekanntgegeben. Er wurde zwei Tage später an der Spinnerin am Kreuz am Galgen hingerichtet. Fälschlich erscheint in der Literatur meist das Datum der Bekanntgabe der Verurteilung und nicht das der Vollstreckung. Dies war in der Donaumonarchie die letzte öffentliche Hinrichtung nach einem ordentlichen Gerichtsverfahren, weil es unter den an der Hinrichtungsstätte wie bei einem Volksfest versammelten Zuschauern zu Raufereien und zu Trunkenheitsexzessen gekommen war, die angeblich sogar eine Zuschauertribüne zusammenbrechen ließen, wenigsten aber beschädigten. Kinder sollen sogar deswegen ihren Lehrer gebeten haben nicht in die Schule zum Unterricht kommen zu müssen. Die Ereignisse bewogen die Justiz dazu, die Exekutionen in das Innere des Hofes eines Gerichtes zu verlegen. Einer Zeichnung folgend wäre Ratkay am Würgegalgen hingerichtet worden. Die später mit dem Würgegalgen erfolgten Hinrichtungen fanden unter Ausschluss der Öffentlichkeit im Landesgerichtshof I, dem sogenannten Galgenhof statt. Kaiser Franz Joseph I. erließ zudem eine Verfügung, dass Hinrichtungen nicht mehr öffentlich stattfinden dürfen. Die im Ersten Weltkrieg durch das Militär erfolgten Hinrichtungen wurden standrechtlich vollzogen. Weblinks Friedrich Schlögl: Unterm Galgen „Henker, Mörder, Urthlweiber“ auf www.viennalefatale.com https://www.welt.de/geschichte/article176835031/Todesstrafe-in-Oesterreich-Tod-am-Wiener-Wuergegalgen-Was-fuer-eine-Mordsgaudi.html https://www.bmi.gv.at/magazinfiles/2018/03_04/kriminalgeschichte_ii.pdf Einzelnachweise Strafrechtsgeschichte (Österreich) Hingerichtete Person (Österreich-Ungarn) Hingerichtete Person (19. Jahrhundert) Person (Mordfall) Geboren 1845 Gestorben 1868 Mann
36,110
https://ce.wikipedia.org/wiki/%D0%A1%D1%82%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%B8%D0%BE%20%28%D0%91%D0%B5%D1%80%D0%B3%D0%B0%D0%BC%D0%BE%29
Wikipedia
Open Web
CC-By-SA
2,023
Ставильио (Бергамо)
https://ce.wikipedia.org/w/index.php?title=Ставильио (Бергамо)&action=history
Chechen
Spoken
95
260
Ставильио () — Италин Ломбарди регионан коммунера эвла. Географи Климат Кхузахь климат йу Лаьттайуккъера хӀордан, барамехь йекъа а, йовха, Ӏа шийла ца хуьйла. Бахархой Билгалдахарш Литература Gino Moliterno, ур. (2003). Encyclopedia of Contemporary Italian Culture. Routledge; Routledge World Reference. ISBN 0415285569. Catherine B. Avery, ур. (1972). The New Century Italian Renaissance Encyclopedia. Simon & Schuster. ISBN 0136120512. Итали // Итали — Кваркуш. — М. : Советская энциклопедия, 1973. — (Большая советская энциклопедия : [в 30 т.] / гл. ред. А. М. Прохоров ; 1969—1978, т. 11). Ломбарди регионан нах беха меттигаш Италин нах беха меттигаш
40,608
https://raspberrypi.stackexchange.com/questions/121751
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Ingo, RKO, https://raspberrypi.stackexchange.com/users/131012, https://raspberrypi.stackexchange.com/users/79866
English
Spoken
491
1,059
Upgrade from Raspberry Pi3 to Pi4 caused loss of USB drive partition I could see both partitions in Pi3, but now one has disappeared in Pi4 (using identical install steps). Raspberry Pi 3 UUID NAME FSTYPE SIZE MOUNTPOINT LABEL MODEL 5A08901A088FF375 ├─sda2 ntfs 1.8T /home/pi/g Podcasts g 7C1A0E541A0E0BB8 └─sda3 ntfs 1.8T /home/pi/h Podcasts h Raspberry Pi 4 UUID NAME FSTYPE SIZE MOUNTPOINT LABEL MODEL 5A08901A088FF375 ├─sda2 ntfs 1.8T /home/pi/g Podcasts g <blank> └─sda3 1.8T A separate (but perhaps related) issue is the Pi4 mounted g drive is not readable. The ls command gives the following error: reading directory '.': Input/output error Neither of these were problems with Pi3. Per Ingo request: Raspberry Pi3 sudo blkid output (I kept text of all my outputs from my Pi3 installation just in case) /dev/sda2: LABEL="Podcasts g" UUID="5A08901A088FF375" TYPE="ntfs" PTTYPE="atari" PARTLABEL="Basic data partition" PARTUUID="eaa6a54c-27ef-4939-ada9-a180797f6f24" /dev/sda3: LABEL="Podcasts h" UUID="7C1A0E541A0E0BB8" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="08d467ff-46bf-4f19-a2d6-def43e50b34e" Raspberry Pi4 sudo blkid output /dev/sda2: LABEL="Podcasts g" UUID="5A08901A088FF375" TYPE="ntfs" PTTYPE="atari" PARTLABEL="Basic data partition" /dev/sda3: PTTYPE="atari" PARTLABEL="Basic data partition" PARTUUID="08d467ff-46bf-4f19-a2d6-def43e50b34e" findmnt /dev/sda3 has nothing (nothing to mount) /etc/fstab is the default (no automount yet) FYI these are generic os-lite installs with samba (I'm rebuilding my file server in Pi4 after successfully, but slowly, using it for week with Pi3) reading directory '.': Input/output error that suggests the drive is ready to die, backup your information if you can. It's not going to die ... this is a Pi4 issue. I have three separate 4tb drives each split into 2-2tb partitions, each with the same issue (just one hooked up for this question). No doubt the USB on these things is poor to say the least, mine will not boot with my keyboard attached, so you already know your answer poor design. Just to get an idea, please Edit your question and from the RasPi4 add the output of these commands to it: sudo blkid and findmnt /dev/sda3 and cat /etc/fstab. The firmware on the external usb hard drives needed to ''get acquainted'' with the usb connectors on the pi4. I have three different brand external usb drives, call them red (K/L) blue (g/h) and silver (i/M). Blue only worked with my USB2 connector on my laptop, red and silver with my laptop USB3 connectors. Blue connected solo to an outside USB (2.0) connector on the Pi4 gave the missing partition error of the original post. Blue connected to a middle USB (3.0) connector on the Pi4 gave no partitions (as expected). Red connected to a middle USB (3.0) connector on Pi4 gave a similar missing partition error. I connected red and blue to the outside (USB2) connectors on Pi4 and all the red and blue partitions appeared. I then connected red and silver to the middle USB (3.0) and blue to the outside USB (2.0) and all partitions appeared. This also fixes the Input/Output error. I don't recall any reboots or restarts being needed for this exercise. Weird to say the least.
27,132
https://sg.wikipedia.org/wiki/Nz%C3%B6ng%C3%B6r%C3%B6
Wikipedia
Open Web
CC-By-SA
2,023
Nzöngörö
https://sg.wikipedia.org/w/index.php?title=Nzöngörö&action=history
Sango
Spoken
3
19
Nzöngörö Lïndïpa Nyama
4,998
https://ksh.wikipedia.org/wiki/Carolina%20Dieckmann
Wikipedia
Open Web
CC-By-SA
2,023
Carolina Dieckmann
https://ksh.wikipedia.org/w/index.php?title=Carolina Dieckmann&action=history
Kölsch
Spoken
50
114
Carolina Dieckmann (* 16. September 1978 ä Sao Paulo, Brasilie) es ön Schauspellerin. Va 1992 a spellde Dieckmann ä Seefeopere met. Als sö en ön Roll als ön a Leukämie erkrangkde Vrau z see woch, troffe Spende va 23.000 Lüüh en. Jätt z lääse Carolina Dieckmann beij Twitter Frau Schauspeller
15,805
https://stackoverflow.com/questions/32262517
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Josh, Ralph, https://stackoverflow.com/users/1153513, https://stackoverflow.com/users/4914662, https://stackoverflow.com/users/5275220, paul bica
English
Spoken
201
402
When I pase data from one workbook to a table in another workbook the rows do not auto expand When I paste data from one workbook to a table in another work book the rows do not auto expand. I have included the code I am running in case there is something I am missing. Dim MyPath$, MyWB$ MyPath = "C:\Documents\" MyWB = "Rec.xlsm" Application.ScreenUpdating = False Application.DisplayAlerts = False ChDir MyPath Workbooks.Open Filename:= _ "C:\Documents\FQC.xlsx" ActiveSheet.Cells.SpecialCells(xlCellTypeVisible).Areas(2)(1, 1).Select Range(ActiveCell.Address, ActiveCell.SpecialCells(xlLastCell)).Copy Workbooks(MyWB).Sheets("Finance QC Report Table").ListObjects("Table111").DataBodyRange.PasteSpecial Workbooks("FQC.xlsx").Close SaveChanges:=False Please elaborate on the expected result. Hi Ralph, basically what I am trying to do is copy the data from the "FQC" workbook into Table111 that is in the "Finance QC Report Table" worksheet in MyWB. Currently, when the data gets pasted into Table111 the rows do not auto expand so I have to manually drag down to the last row How many rows are you copying from ActiveSheet, and how many rows are there in Table111? The rows in ActiveSheet changes on a weekly basis so that is why I'm running into the problem. One week I might have to input 100 rows and the following week I might have to input 150 rows.
31,077
https://stackoverflow.com/questions/40440929
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
Barmak Shemirani, Cyrex1337, https://stackoverflow.com/users/4603670, https://stackoverflow.com/users/7119612
Danish
Spoken
247
532
Process snapshot can't be compared against wide strings I have the following problem: I want to keep track of the running processes by using CreateToolhelp32Snapshot and Process32First/Next. However I want to use the Unicode charset by default. bool active( const std::wstring& process_name ) { HANDLE snapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); if ( snapshot == INVALID_HANDLE_VALUE ) return false; PROCESSENTRY32 entry; if ( Process32First( snapshot, &entry ) ) { if ( process_name.compare( entry.szExeFile ) == 0 ) { CloseHandle( snapshot ); return true; } } while ( Process32Next( snapshot, &entry ) ) { if ( process_name.compare( entry.szExeFile ) == 0 ) { CloseHandle( snapshot ); return true; } } CloseHandle( snapshot ); return false; } int main( ) { SetConsoleTitle( L"Lel" ); if ( active( L"notepad++.exe" ) ) std::cout << "Hello" << std::endl; else std::cout << ":(" << std::endl; } However, if I use multibyte-charset everything's working fine. You must initialize entry and set dwSize value. dwSize value is Windows's idea of version control and is required: PROCESSENTRY32 entry = { 0 }; entry.dwSize = sizeof(PROCESSENTRY32); Comparison should not be case sensitive: while (Process32Next(snapshot, &entry)) { if (_wcsicmp(process_name.c_str(), entry.szExeFile) == 0) { CloseHandle(snapshot); return true; } } Thanks. Could you explain why the issue only occurs when I'm using the Unicode charset? The variables have to be initialized as explained in vendor's documentation, otherwise it leads to undefined behavior. The wrong implementation may work correctly sometimes, I don't know why, you can start another question about that.
4,172
https://en.wikipedia.org/wiki/Star%C3%A1%20Huta
Wikipedia
Open Web
CC-By-SA
2,023
Stará Huta
https://en.wikipedia.org/w/index.php?title=Stará Huta&action=history
English
Spoken
28
62
Stará Huta () is a village and municipality in Detva District, in the Banská Bystrica Region of central Slovakia. External links http://www.statistics.sk/mosmis/eng/run.html Villages and municipalities in Detva District
12,289
https://ceb.wikipedia.org/wiki/Camponotus%20maculatus
Wikipedia
Open Web
CC-By-SA
2,023
Camponotus maculatus
https://ceb.wikipedia.org/w/index.php?title=Camponotus maculatus&action=history
Cebuano
Spoken
68
168
Kaliwatan sa murag-sulom ang Camponotus maculatus. Una ning gihulagway ni Fabricius ni adtong 1782. Ang Camponotus maculatus sakop sa kahenera nga Camponotus, ug kabanay nga murag-sulom. Matang nga nahiubos Ang kaliwatan gibahinbahin ngadto sa matang nga nahiubos: C. m. foveolatus C. m. humilior C. m. maculatus C. m. obfuscatus C. m. strangulatus C. m. subnudus C. m. sylvaticomaculatus C. m. ugandensis Ang mga gi basihan niini Murag-sulom Camponotus
41,150
https://ceb.wikipedia.org/wiki/Hairo%20%28bukid%29
Wikipedia
Open Web
CC-By-SA
2,023
Hairo (bukid)
https://ceb.wikipedia.org/w/index.php?title=Hairo (bukid)&action=history
Cebuano
Spoken
177
281
Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Hairo. Bukid ang Hairo sa Pakistan. Nahimutang ni sa lalawigan sa Balochistān, sa sentro nga bahin sa nasod, km sa habagatan-kasadpan sa Islamabad ang ulohan sa nasod. metros ibabaw sa dagat kahaboga ang nahimutangan sa Hairo, o ka metros sa ibabaw sa naglibot nga tereyn. Mga ka kilometro ang gilapdon sa tiilan niini. Ang yuta palibot sa Hairo lain-lain. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa habagatan sa Hairo. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Hairo medyo gamay nga populasyon. Hapit nalukop sa [[kalibonan ang palibot sa Hairo. Ang klima bugnaw nga ugahon. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hunyo, sa  °C, ug ang kinabugnawan Pebrero, sa  °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Pebrero, sa milimetro nga ulan, ug ang kinaugahan Oktubre, sa milimetro. Saysay Ang mga gi basihan niini Kabukiran sa Balochistān Kabukiran sa Pakistan nga mas taas kay sa 2000 metros ibabaw sa dagat nga lebel
19,152
https://en.wikipedia.org/wiki/Poodle%20skirt
Wikipedia
Open Web
CC-By-SA
2,023
Poodle skirt
https://en.wikipedia.org/w/index.php?title=Poodle skirt&action=history
English
Spoken
491
681
A poodle skirt is a wide swing felt skirt of a solid color displaying a design appliquéd or transferred to the fabric. The design was often a coiffed poodle. Later substitutes for the poodle patch included flamingoes, flowers, and hot rod cars. Hemlines were to the knee or just below it. It quickly became very popular with teenage girls, who wore them at school dances, and as everyday wear. Creation The skirt originated in 1947 in the United States, designed by Juli Lynne Charlot. The idea for the skirt began as Charlot needed a last-minute Christmas skirt. With little money and little ability to sew, she made the seamless skirt herself out of felt. As Charlot's skirt caught on, she was asked to make a dog-themed skirt, as dogs were popular. She initially designed the skirt with three dachshunds, which would all have three personalities. The first dog would be a flirty girl, the second dog would be a snobby girl, and the third dog would be a male attracted to the flirty girl dog. However, due to the leashes being tangled, the male dog would be stuck next to the snobby girl dog. Charlot wanted her designs to tell a story and be "conversation starters", so much that she made sure clothing store salespeople knew the stories printed on the skirt, just in case a customer would ask. Manufacturing The skirt was easy for people to make at home, since the design was simple and the materials easily available. The original homemade skirt could be made by cutting a circle out of felt for the waist. Then, appliqués could be added on to reflect the person's interests and hobbies. In just a week after the debut of the poodle skirt, Charlot was able to sell the design. As the popularity of her skirt began to grow, she eventually opened her own factory. Popularity Movie stars commonly wore this skirt, and it featured widely in magazines and advertising, and many were eager to keep up with Hollywood's fashions, adding to its popularity. The skirt proved most popular with teenage girls, and in 1952 mail-order catalogs dedicated to poodle skirts were made. Known as the "first teenage fashion trend", these skirts were perfect for dancing. It could also be said that the skirt's ability to be customized led to its success with teenagers, as it reflected individual personalities. Modern poodle skirts The poodle skirt remains one of the most memorable symbols of 1950s in the United States and is frequently worn as a novelty retro item, part of a nostalgic outfit. A similar design of these skirts became popular in the years 2009–2010. The skirts had been shortened but the newer designs retained the original waistband. Today, poodle skirts are made out of modern felt and are simply reproductions of the originals. See also Saddle shoe Bobby sock Cardigan (sweater) Sock hop References 1950s fashion Skirts 1950s fads and trends Women's clothing
4,881
https://drupal.stackexchange.com/questions/264329
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
Jad Salhani, No Sssweat, https://drupal.stackexchange.com/users/27710, https://drupal.stackexchange.com/users/42650, https://drupal.stackexchange.com/users/66755, https://drupal.stackexchange.com/users/86762, mradcliffe, ram_griever
English
Spoken
472
710
How to sort $nodes after executing an EntityFieldQuery Am using Drupal 7 and EFQs. After executing the query and geting all the nodes listed in a custom module, I need to sort them on node title field. I can use usort and other php functions but my problem is the field am sorting on can't seem to get it from $nodes. How can I achieve this? Nothing that I must sort after the EFQ execution therefore I can't use fieldOrderBy. The thing is, am callling 2 EFQs with different fields and merging them. That is why I need to sort them after -> execute Below is the code after the EFQ execution: $nidsMall = array_keys($resultMall['node']); $nidsStore = array_keys($resultStore['node']); $nodesStore = entity_load('node', $nidsStore); $nodesMall = entity_load('node', $nidsMall); $nodes = (object) array_merge((array) $nodesStore, (array) $nodesMall); I'm making sure that both EFQs return the wanted results. I need to sort $nodes on node title or any other field. (both content types mall and store have that field, naturally) Appreciate any help given. Thanks You can do it before the ->execute(); line, as the solution in the above link does it. The thing is, am callling 2 EFQs with different fields and merging them. That is why I need to sort them after -> execute This is not a duplicate since my question isn't about sorting in EFQ (I know how EFQ sorting works), it's sorting after EFQ execution Sorry for getting this closed, I wasn't aware at the time that you were executing two separate EFQ's I've voted to re-open. If you're combining them into an array use one of the PHP array sorts. If this won't do, then you need to explain what exactly are you sorting by. is the field am sorting on can't seem to get it from $nodes. The answer to your question is probably going to end up being not to use EFQ and instead use static query or dynamic query where you have the ability to join any table you like. Yeah, it seems there's no way around it. You may be right, I'll see what I can do, thanks mate I usually need to do the following after using EFQ: 1) check that i got results in $results['node'] 2) $keys = array_keys($results['node']); to pull out node ids 3) $nodes = node_load_multiple($keys); to actually load the full nodes. Are you actually getting/loading the full node entities or does $nodes directly from EFQ? I think this is still too unclear about what you're doing and you should provide more code. I edited my question to show the code I see you're casting your $nodes array to an object, which is probably why PHP sort functions won't work. Try removing the cast and use usort with a string comparator function. strcmp can compare strings alphabetically for a start. Hope this helps!
17,560
https://en.wikipedia.org/wiki/Anna%20Omarova
Wikipedia
Open Web
CC-By-SA
2,023
Anna Omarova
https://en.wikipedia.org/w/index.php?title=Anna Omarova&action=history
English
Spoken
167
269
Anna Omarova (born 3 October 1981 in Pyatigorsk) is a Russian shot putter. She represented her country at the Olympic Games in 2008 and at the World Championships in Athletics in 2007 and 2011. In 2007 she won gold medals at the Military World Games and the European Cup. Personal bests Her best throw is 19.69 metres, achieved in June 2007 in Munich. Doping scandal She was banned for doping for two years in March 2017 after re-analysis of a test from 2011, which resulted in disqualification of her performance at the 2011 World Championships in Athletics. International competitions National titles Russian Athletics Championships Shot put: 2007 See also List of doping cases in athletics References 1981 births Living people Russian female shot putters Olympic female shot putters Olympic athletes for Russia Athletes (track and field) at the 2008 Summer Olympics World Athletics Championships athletes for Russia Russian Athletics Championships winners Doping cases in athletics Russian sportspeople in doping cases People from Pyatigorsk Sportspeople from Stavropol Krai
42,035
https://stackoverflow.com/questions/8059288
StackExchange
Open Web
CC-By-SA
2,011
Stack Exchange
Andrey, Anurag Srivastav, Cooley Kahn, Edumaster Pro 2k22, Michael, Pinkee Soni, code yamada, danielfernandesdev, https://stackoverflow.com/users/17946779, https://stackoverflow.com/users/17946780, https://stackoverflow.com/users/17946781, https://stackoverflow.com/users/17946853, https://stackoverflow.com/users/17946854, https://stackoverflow.com/users/17947080, https://stackoverflow.com/users/17947162, https://stackoverflow.com/users/17947283
English
Spoken
228
342
best way to send a variable along with HttpResponseRedirect I am reading a djangobook and get questions about HttpResponseRedirect and render_to_response. suppose I have a contact form, which posts data to confirm view. It goes through all the validation and database stuff. Then, as a usual way, I output the html with return render_to_response('thank_you.html', dict(user_code = user_code), context_instance=RequestContext(request)) However, the book suggested "You should always issue a redirect for successful POST requests." because if the user "Refresh" on a this page, the request will be repeated. I wonder what's the best way to send the user_code along through HttpResponseRedirect to the thank_you.html. Pass the information in a query string: thank_you/?user_code=1234 Or use a session variable. The problem with a query string is that the user can see the data. When you send a redirect, you are sending the user back a response (a 302 HTTP response) and they are then making an entirely new request to the provided URL. That's a completely new request/response cycle so there is no way to supply data unless you save it in a session variable, cache, cookie etc. What you can do instead of telling the user to redirect, is to call the view you want to show them yourself from within the same request (i.e. at the point you would issue the redirect) and then you could pass whatever you liked.
45,889
https://zh-min-nan.wikipedia.org/wiki/Szklarka%20%C5%9Al%C4%85ska
Wikipedia
Open Web
CC-By-SA
2,023
Szklarka Śląska
https://zh-min-nan.wikipedia.org/w/index.php?title=Szklarka Śląska&action=history
Min Nan Chinese
Spoken
28
101
Szklarka Śląska sī chi̍t ê tī Pho-lân Kiōng-hô-kok Tōa Pho-lân Séng Ostrów Wielkopolski Kūn Sośnie Kong-siā ê chng-thâu. Chham-oa̍t Pho-lân ê chng-thâu Chham-khó Ostrów Wielkopolski Kūn ê chng-thâu
3,037
https://nl.wikipedia.org/wiki/Zorita
Wikipedia
Open Web
CC-By-SA
2,023
Zorita
https://nl.wikipedia.org/w/index.php?title=Zorita&action=history
Dutch
Spoken
14
32
Zorita (band), een Nederlandse band Zorita (Cáceres), een gemeente in de Spaanse provincie Cáceres
43,640
https://de.wikipedia.org/wiki/St.%20Salvator%20%28Schw%C3%A4bisch%20Gm%C3%BCnd%29
Wikipedia
Open Web
CC-By-SA
2,023
St. Salvator (Schwäbisch Gmünd)
https://de.wikipedia.org/w/index.php?title=St. Salvator (Schwäbisch Gmünd)&action=history
German
Spoken
927
2,004
Der St. Salvator ist ein Wallfahrtskomplex über Schwäbisch Gmünd. Er besteht aus zwei Felsenkapellen, die zusammen die Wallfahrtskirche St. Salvator bilden, sowie einem Kreuzweg mit mehreren Kapellen. Der Kreuzweg ist in der Form, wie er in Schwäbisch Gmünd vorliegt, einzigartig. Geschichte Schon vor 1483 hat sich am Nepperberg, auch Eberstein genannt, eine Kultstätte befunden. In jenem Jahr erwähnte der Ulmer Dominikaner Felix Fabri anlässlich seiner Besichtigung der Jakobshöhle in Jerusalem, dass ihn diese an die ganz ähnliche aber kleinere Höhle, den Eberstein bei Gmünd in Schwaben, erinnert. Am 12. April 1616 hinterließ der Priester Heinrich Pfeningmann 200 Gulden zur „Reparierung“ des Eppersteins. Die 1617 begonnene „Reparierung“ wurde als Um- und Ausbau ausgeweitet. Der Bildhauer und Baumeister Caspar Vogt leitete diese Arbeiten. Schon am 19. August 1618 konnte der Augsburger Weihbischof die beiden Altäre in der Felsenkapelle weihen. Der eine wurde zu Ehren des Erlösers (St. Salvator), der andere zu Ehren der Heiligen Johannes und Jakobus geweiht. 1623 wurde die ebenfalls von Vogt erbaute obere Kapelle geweiht, die 1636 auf Grund des aus Fels gehauenen Ölberges bei Kaiser Ferdinand III. große Bewunderung fand. Vogt sollte deshalb im Auftrag des Kaisers eine Gruft als Nachbildung des Heiligen Grabes erstellen. Die aufgrund von Streitigkeiten zwischen Kaiser und Reichsstadt unvollendete Gruft wurde Anfang 2013 bei Sicherungsarbeiten freigelegt. 1654 wurde die Kirche abermals geweiht. Dabei kam es auch nochmals zu größeren baulichen Veränderungen. Die obere Kapelle bekam eine Vorhalle. Anstelle eines kleinen Glockentürmchens wurde der heutige Glockenturm gebaut. Schon vor 1622 entstand das Mesnerhaus neben der Wallfahrtskirche; es ist auf den 1622 erstellten Bildern von Christoph Friedel zu sehen. 1770 wurde von Johann Michael Keller dem Jüngeren das barocke Kaplaneihaus errichtet. Im 18. Jahrhundert entstanden noch zwei weitere Kapellen auf dem Salvator, am Anfang die Muschelkapelle, die im Innenraum mit Kiesmörtel, Muscheln und Schnecken überzogen ist und ein Tonnengewölbe besitzt. Die zweite Kapelle entstand Ende des 18. Jahrhunderts nach 1792 und ist eine Heiliggrabkapelle. Ihre Fenster entstanden Ende des 19. Jahrhunderts. Zuerst bestand der Kreuzweg auf den St. Salvator nur aus den von Caspar Vogt gefertigten traditionellen Bildstöckchen. 1737 wurden Fachwerkhäuschen, die 1789 zu kleinen Kapellchen mit Kuppeldach umgebaut wurden, errichtet. In ihnen sollen lebensgroße Figuren das Leiden Christi veranschaulichen. Zugehörigkeit und Nutzung Die Stadtpfarrkirche Unserer Lieben Frau und Heilig Kreuz, das heutige Heilig-Kreuz-Münster in Schwäbisch Gmünd, war bis 1644 für die Seelsorge auf dem St. Salvator zuständig. Von 1644 bis 1810 übernahmen Kapuziner des Gmünder Kapuzinerklosters die Seelsorge, die dann von sogenannten Benefiziaten, den Salvatorkaplänen übernommen wurde. Heute ist der St. Salvator wieder Eigentum der Münstergemeinde Heilig Kreuz des Heilig-Kreuz-Münsters in Schwäbisch Gmünd. Einmal monatlich, in den Wochen vor Ostern auch häufiger, finden Wallfahrtsmessen statt. Ebenso wird der St. Salvator für viele Kreuzwegandachten genutzt. Glocken Heute befinden sich im Glockenturm zwei Glocken. Die 1955 von Heinrich Kurtz aus Stuttgart, gegossene Dolorosa-Glocke ist heute die erste Glocke und ersetzt die St.-Paulus-Kriegergedächtnisglocke von 1925, die vom selben Meister stammte. Die zweite Glocke stammt von 1780 und wurde von Joseph und Nikolaus Arnoldt aus Dinkelsbühl gegossen. Eine weitere Glocke, die 1763 in Nürnberg gegossen wurde, hängt im Dachreiter des Heilig-Kreuz-Münsters. Die Konradsglocke von 1895 aus Biberach, gegossen von der Glockengießerei Zoller, ist abgegangen. Gegenwärtiger Zustand Durch Erosion, vor allem in den oberen Schichten, ist der Stubensandstein stark angegriffen. Zahlreiche Details an den Figuren sind bereits teilweise verwittert. Durch Gründung eines Freundeskreises unter der Schirmherrschaft von Diane Herzogin von Württemberg wurden notwendige Mittel für den Erhalt der Kapellen und Kreuzwegstationen freigesetzt. Neben zahlreichen Geld- und auch Sachspenden konnten durch den Freundeskreis von ansässigen Unternehmen gespendete Arbeitsausführungen akquiriert werden. Auch der Eigentümer, die Münstergemeinde Heilig Kreuz, beteiligt sich trotz gleichzeitiger finanzieller Belastung durch die Sanierung der Johanniskirche und der Instandhaltung des Gmünder Münsters in der Innenstadt an der Sanierung. Die Arbeiten begannen 2010 und sollten bis zum Beginn der Landesgartenschau 2014 andauern. Auch im Vorfeld des Jubiläums 2017 wurden weitere Erhaltungs- und Baumaßnahmen durchgeführt. Die Erhaltungsmaßnahmen wurden vielfältig wissenschaftlich begleitet. Im Januar 2011 begann die Materialprüfungsanstalt der Universität Stuttgart mit der Suche nach einem geeigneten Konservierungsverfahren oder Festigungsmittel für dauerfeuchten Naturstein, beispielsweise für das Ölbergrelief, das 1620 von Caspar Vogt direkt aus dem Fels geschlagen wurde. Auch die Deutsche Bundesstiftung Umwelt beteiligte sich an der Erhaltung. Zum 400. Jubiläum 2017 stellte der Bildhauer Rudolf Kurz oberhalb der Kirche die rund sechs Meter hohe Metallskulptur Salvator Segenshand, auch Sphaera genannt, fertig. Sie soll die Hand Christi und den Erdkreis symbolisieren und ist von der Innenstadt aus zu sehen. Bilder Literatur Klaus Graf: Das Salvatorbrünnlein. Eine bislang unbekannte Gmünder „Sage“ aus der Sammlung des Stuttgarter Gymnasialprofessors Albert Schott d. J. (1809–1847). In: Einhorn-Jahrbuch. Schwäbisch Gmünd 1995, S. 109–118 (online) Münsterbauverein Schwäbisch Gmünd (Hrsg.): St. Salvator in Schwäbisch Gmünd. Fischer Druck, Herlikofen 2006. Werner H. A. Debler: „Zur größeren Ehre und Glorii Gottes“: Johann Georg und Theresia Debler stiften 1770 das Kaplaneihaus auf dem St. Salvator. In: Einhorn-Jahrbuch 2010, S. 93–112 (online) Münsterbauverein Schwäbisch Gmünd (Hrsg.); Hubert Herkommer, Johannes Schüle: Der Kreuzweg zum St. Salvator – ein meditativer Begleiter. Fischer Druck, Herlikofen 2011, ISBN 978-3-9813675-2-2. Wallfahrtsliteratur in Ostwürttemberg. Literarische Vielfalt in Ostwürttemberg. (= Unterm Stein. Lauterner Schriften. 17). Einhorn-Verlag, Schwäbisch Gmünd 2013, ISBN 978-3-936373-86-8, S. 131–142 (Hildegard Kasper) Rezension. Jürgen Frick, Judith Zöldföldi (Hrsg.): Modellhafte Konservierung der anthropogen umweltgeschädigten Felsenkapellen von St. Salvator in Schwäbisch Gmünd. Abschlussbericht. Fraunhofer IRB Verlag, Stuttgart 2015, ISBN 978-3-8167-9451-6 (online) Hans Kloss: Der Kreuzweg zum St. Salvator. Leporello, Schwäbisch Gmünd 2016. Weblinks Geschichte des Salvators auf der Seite des Salvator-Freundeskreises Einzelnachweise Salvator Kulturdenkmal in Schwäbisch Gmünd Katholischer Wallfahrtsort in Baden-Württemberg Schwabisch Gmund Schwabisch Gmund Kalvarienbergkirche Bauensemble des Barock Bauensemble in Baden-Württemberg Bauensemble in Europa
23,374
https://stackoverflow.com/questions/21275005
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
HTTP, Rahul, Sergey, Voonic, ameya rote, https://stackoverflow.com/users/1421098, https://stackoverflow.com/users/1635060, https://stackoverflow.com/users/1902730, https://stackoverflow.com/users/2248054, https://stackoverflow.com/users/2261259, https://stackoverflow.com/users/2753994, https://stackoverflow.com/users/426533, lookingGlass, uhs
Norwegian Nynorsk
Spoken
493
1,454
fadeIn and fadeOut divs based on radio button with if conditions I really appreciate your help in advance. Can someone help me figure out why my last else if statement is not working? I am getting an error "Uncaught TypeError: Cannot read property 'checked' of null" in the console, but only for the last else if. //html for radio buttons <p><input type="radio" name="radio" value="generalPurpose" id="gp-toggle"><label for="gp-toggle" >General Purpose</label></p> <p><input type="radio" name="radio" value="client" id="cc-toggle-one"><label for="cc-toggle-one">Client</label></p> <p><input type="radio" name="radio" value="contractor" id="cc-toggle-contractor"><label for="cc-toggle-contractor">Contractor</label></p> <p><input type="radio" name="radio" value="urgent" id="urgent-toggle"><label for="urgent-toggle">Urgent Request</label></p> . ///js $(function() { $("#contact-form .button").click(function() { var data = { radio: $("input:radio[name=radio]:checked").val(), firstName: $("#f-name").val(), lastName: $("#l-name").val(), email: $("#email").val(), phone: $("#phone").val(), comments: $("#comments").val(), coverage: $("#coverage").val(), services: $("#services-two").val(), covered: $("#covered").val(), provided: $("#provided").val(), reason: $("#reason").val() }; $.ajax({ type: "POST", url: "formmail.php", data: data, success: function() { $('.form-inner').fadeOut(1000); setTimeout(function() { if (document.getElementById('gp-toggle').checked) { $('.gp-reply').fadeIn(1000); } else if (document.getElementById('cc-toggle-one').checked) { $('.client-reply').fadeIn(1000); } else if (document.getElementById('cc-toggle-two').checked) { $('.contractor-reply').fadeIn(1000); } else if (document.getElementById('urgent-toggle').checked) { console.log('perform fadein'); $('.urgent-reply').fadeIn(1000); } }, 1200); } }); return false; }); }); thanks again. I was really hoping for a stupid typo; but I guess I will need to look more into this. so based on this question here >> Uncaught TypeError: Cannot read property 'checked' of null index.html:24 suggested by https://stackoverflow.com/users/1421098/ameya-rote I made some variables and it seems to be working fine now. var gp = document.getElementById('gp-toggle').checked; var client = document.getElementById('cc-toggle-one').checked; var contractor = document.getElementById('cc-toggle-contractor').checked; var urgent = document.getElementById('urgent-toggle').checked; . $(document).ready(function() { $(function() { $("#contact-form .button").click(function() { var data = { radio: $("input:radio[name=radio]:checked").val(), firstName: $("#f-name").val(), lastName: $("#l-name").val(), email: $("#email").val(), phone: $("#phone").val(), comments: $("#comments").val(), coverage: $("#coverage").val(), services: $("#services-two").val(), covered: $("#covered").val(), provided: $("#provided").val(), reason: $("#reason").val() }; $.ajax({ type: "POST", url: "formmail.php", data: data, success: function() { $('.form-inner').fadeOut(1000); setTimeout(function() { if ('gp') { $('.gp-reply').fadeIn(1000); } else if ('client') { $('.client-reply').fadeIn(1000); } else if ('contractor') { $('.contractor-reply').fadeIn(1000); } else if ('urgent') { console.log('perform fadein'); $('.urgent-reply').fadeIn(1000); } }, 1200); } }); return false; }); }); }); Did you try to log something if that condition is actually not being performed? Did you try debug your code? Can you post HTML snippet? This won't help us to debug! Check out this, might be helpful to you for error http://tinyurl.com/nzu3s42 Is urgent-toggle a id or class or name ??? im sorry guys, I was trying to make a jsfiddle The error what you told means there is no such html element whoose id is urgent-toggle, because its showing null I validated the html, no errors, and no matter what element i put last, the last else if doesnt work. @allieAllbright If you put strings in IF condition it will be always true i guess Try the code given below, Hope it will work. function get_checked_val() { var inputs = document.getElementsByName("selected"); for (var i = 0; i < inputs.length; i++) { if (inputs[i].checked) { return inputs[i].value; } } } function onSubmit() { var id = get_checked_val(); alert("selected input is: " + id); } Or you may try this to make the value checked $(document.getElementById('cc-toggle-one')).attr('checked', true);
29,716
https://en.wikipedia.org/wiki/Chess%20set
Wikipedia
Open Web
CC-By-SA
2,023
Chess set
https://en.wikipedia.org/w/index.php?title=Chess set&action=history
English
Spoken
1,159
1,606
A chess set consists of a chessboard and white and black chess pieces for playing chess. There are sixteen pieces of each color: one king, one queen, two rooks, two bishops, two knights, and eight pawns. Extra pieces may be provided for use in promotion, most commonly one extra queen per color. Chess boxes, chess clocks, and chess tables are common pieces of chess equipment used alongside chess sets. Chess sets are made in a wide variety of styles, sometimes for ornamental rather than practical purposes. For tournament play, the Staunton chess set is preferred and, in some cases, required. Human chess uses people as the pieces. Blindfold chess may be played without any set at all. Middle Ages sets The oldest chess sets adopted abstract shapes following the Muslim traditional sets of the shatranj game. These pieces evolved with time, as more details were added, to a figurative design. In the abstract designs, both the king and the queen resemble a throne, with the queen being smaller; the bishop displays two small protuberances, representing elephant tusks; the knight presents a single protuberance, representing the head of a horse; the rook has a V-shaped cut on the top; and the pawn usually has a simple shape. Notable archaeological chess sets include the following: The San Genadio chess pieces, a 9th-century set of two rooks, a knight and a bishop, in abstract form. The pieces, made of Deer antler, were found in Peñalba de Santiago, in Astorga (Spain). In olden times mistaken by relics of San Genadio (hence the name), they are probably the oldest European chess pieces. The Charlemagne chessmen, an 11th-century set probably manufactured in Salerno, Italy. The set, carved from elephant ivory, was originally inventoried with a total of 30 pieces, but today only 16 are preserved in Saint Denis : 2 Kings, 2 Queens, 4 Knights, 4 Elephants, 3 Chariots and a Foot Soldier. The Lewis chessmen, a collection of 79 assorted 12th-century chess pieces and other game pieces – mostly carved from walrus ivory. Discovered in 1831 on Lewis in the Outer Hebrides of Scotland. The Clonard chess piece, an historic playing piece depicting a queen seated on a throne, dated from the late 12th-century. It was found in a bog in Clonard, Co. Meath, Ireland, some time before 1817. Table sets The variety of designs available is broad, from small cosmetic changes to highly abstract representations, to themed designs such as those that emulate the drawings from the works of Lewis Carroll, or modern treatments such as Star Trek or The Simpsons. Themed designs are generally intended for display purposes rather than actual play. Some works of art are designs of chess sets, such as the modernist chess set by chess enthusiast and dadaist Man Ray, that is on display in the Museum of Modern Art in New York City. Chess pieces used for play are usually figurines that are taller than they are wide. For example, a set of pieces designed for a chessboard with squares typically have a king around tall. Chess sets are available in a variety of designs, the most known being the Staunton design, named after Howard Staunton, a 19th-century English chess player, and designed by Nathaniel Cooke. The first Staunton style sets were made in 1849 by Jaques of London (also known as John Jaques of London and Jaques and Son of London) Wooden white chess pieces are normally made of a light wood, boxwood, or sometimes maple. Black wooden pieces are made of a dark wood such as rosewood, ebony, red sandalwood, African Padauk wood (African padauk which is similar to red sandalwood and is marketed as Bud Rosewood or Blood Red Rosewood) or walnut. Sometimes they are made of boxwood and stained or painted black, brown, or red. The knights in wooden sets are usually hand-carved, accounting for half the cost of the set. Plastic white pieces are made of white or off-white plastic, and plastic black pieces are made of black or red plastic. Sometimes other materials are used, such as bone, ivory, or a composite material. For actual play, pieces of the Staunton chess set design are standard. The height of the king should be between . United States Chess Federation rules call for a king height between . A height of about is preferred by most players. The diameter of the king should be 40–50% of its height. The size of the other pieces should be in proportion to the king. The pieces should be well balanced such that their center of gravity is closer to the board. This is done by adding weights such as iron studs or lead blocks at the bottom and felted. It makes the pieces bottom-heavy and keeps them from toppling easily (a well-weighted piece should come upright even if tilted 60 degrees off vertical axis). This helps in blitz games as the speed of movement doesn't offer enough time or precision in dropping the pieces onto the intended squares. The length of each side of the squares on the chessboard should be about 1.25–1.3 times the diameter of the base of the king, or . Squares of about are normally well suited for pieces with the kings in the preferred size range. These criteria are from the United States Chess Federation's Official Rules of Chess, which is based on the Fédération Internationale des Échecs rules. The grandmaster Larry Evans offered this advice on buying a set:Make sure the one you buy is easy on the eye, felt-based, and heavy (weighted). The men should be constructed so they don't come apart. ... The regulation board used by the U. S. Chess Federation is green and buff—never red and black. However, there are several good inlaid wood boards on the market. ... Avoid cheap equipment. Chess offers a lifetime of enjoyment for just a few dollars well spent at the outset. Pocket and travel sets Some small magnetic sets, designed to be compact and/or for travel, have pieces more like those used in shogi and xiangqi – each piece being a similar flat token, with a symbol printed on it to identify the piece type. Chess boxes A container for holding chess pieces is known as a chess box. Most commonly made of wood, a chess box can be constructed of any material. The internal box configuration can be individual slots for each chess piece, one divider to separate the white and black pieces or no divider with the chess pieces mixed together. The chess box is typically rectangular but can be done in a variety a shapes including a coffer top or sliding drawers. Computer images On computers, chess pieces are often 2D symbols on a 2D board, although some programs have 3D graphics engines with more traditional designs of chess pieces. Unicode contains symbols for chess pieces in both white and black. Gallery See also Chess equipment Dubrovnik chess set Gökyay Association Chess Museum References Works cited
15,012
https://scifi.stackexchange.com/questions/246437
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Clara Diaz Sanchez, FreeMan, Mark Olson, https://scifi.stackexchange.com/users/125981, https://scifi.stackexchange.com/users/14111, https://scifi.stackexchange.com/users/53088, https://scifi.stackexchange.com/users/92823, user14111
English
Spoken
717
957
WW2 airman is thawed out, and saves Earth from interplanetary invasion I am trying to find the title and author of an extremely pulpy science fiction yarn. Unfortunately I do not know how the cover was - the version I had was secondhand, and in the vicissitudes of its life the cover was lost by the time the book came to me. It was definitely old - I suspect from either the 1950s, or possibly the 1960s. The story is set in the future, when the Earth is under attack from another planet. The protagonist is an airman, I think from the Second World War (or shortly afterward). His plane crashed and we was frozen in a glacier (rather like Buck Rogers) until he was found and thawed out. In the process he was also “upgraded”; in particular I remember that his muscle strength was enhanced, and his blood was replaced with amniotic fluid with a higher oxygen carrying factor, that gave him the capacity to hold his breath for long times. This would be a plot point later. Because of these enhancements he is placed with a commando team who will travel in a spaceship to the planet of the attackers, carrying an atom bomb on board of sufficient force to destroy the planet. When they get there they find that the planet supports two intelligent races. One dwelling on the land is the one attacking the Earth. Rapidly increasing desertification means that the land area will soon not support life, and so they are planning to move to the Earth after it has been conquered. The other race lives in the oceans. As an interim measure, the land dwellers are moving into the oceans, which are less affected by the global warming, by building underwater cities. This encroachment is opposed by the marine race, leading to a vigorous war between them. I don’t recall too much of the protagonist’s adventures. They are captured on arrival and taken to one of the underwater cities. The protagonist escapes, and due to his ability to hold his breath, is able to make contact with the marine race. Thank to his assistance, I believe (but I’m not sure) that the marine race win a comprehensive victory against the other, eliminating the threat to Earth. I remember the ending better. The Earthmen work out that if the atom bomb is placed in a suitable canyon, then instead of blowing the planet apart, its detonation will shift the planet into a new orbit, further from the sun, and so cure the global warming problem. I remember feeling rather skeptical about this, even at the time. But I don’t know if the scheme worked or not, because the last few pages were missing. Extra detail: After thinking hard about this, I remember that after his capture the protagonist was interrogated by a sexy scantily-clad alien princess. To find out what planet they came from, she used a telescope, whose primary mirror was formed by a rotating bath of mercury (and so had a perfect parabolic shape). This is an inconsequential but slightly unusual touch, so maybe it can jog someone's memory. A fair bit of this sounds like Marvel's Captain America somewhere between Captain America: The First Avenger and The Avengers. Of course, Steve Rogers was "upgraded" before the plane crash and subsequent freezing, not after. All I'm familiar with, though, is the MCU movies, so the actual events in the comic books may have predated the book you're after and given its author some ideas. That sounds vaguely familiar. It sounds so full of unnecessary stuff that I wonder if it is one of Lionel Fanthorpes' opus? Do you remember if the writing was unusual -- full of repeated adjectives and phrases? @MarkOlson I remember the writing as quite plain and unornamented. I don't think it was full of repeated adjectives or phrases This is of course not the yarn you're looking for, but such a rotating bowl of mercury was used by Number 774, the Martian protagonist of Raymond Z. Gallun's 1934 novelette "Old Faithful", for his observations of the planet Earth. https://archive.org/details/Astounding_v14n04_1934-12/page/n111/mode/1up English language? Paberback? @user14111 Yes to both questions. I also have the impression it was British rather than American, but I am not 100% sure of that.
31,684
https://stackoverflow.com/questions/77862547
StackExchange
Open Web
CC-By-SA
null
Stack Exchange
Danish
Spoken
156
526
Kafka connect mongoDB connector fail to convert a document containing an Array of String I have the following connector configuration: { "name": "request-closed-source", "config": { "connector.class": "com.mongodb.kafka.connect.MongoSourceConnector", "tasks.max": "4", "connection.uri": "@@mongoDB-uri@@", "database": "Trade", "collection": "RequestClosed", "topic.namespace.map":"{\"Trade.RequestClosed\":\"RequestClosed\"}", "copy.existing":"true", "output.format.value": "schema", "output.schema.value": "{\"type\":\"record\",\"name\":\"RequestClosed\",\"namespace\":\"trades\",\"doc\":\"Records for RequestClosed.\",\"fields\":[{\"name\":\"orderId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"externalOrderIds\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"default\":[]}]}", "startup.mode.copy.existing.max.threads":"8", "offset.partition.name":"request-closed-source.2" } } But when I run it over my collection containing only one document such as: { "orderId": "orderId1", "externalOrderIds": ["1", "2"] } I have the following error: org.apache.kafka.connect.errors.SchemaBuilderException: Invalid default value ... Caused by: org.apache.kafka.connect.errors.DataException: Invalid Java object for schema with type STRING: class java.util.ArrayList In order to discover what was wrong I tried the following: Insert a document with a String. Insert a document with empty array. Insert a document with an array containing one String. Insert a document with no externalOrderIds field. Set the default value of the avro schema to ["test"]. Remove the default field from the schema declaration. But I got the same error every time.
24,641
https://ru.stackoverflow.com/questions/565598
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
Naumov, https://ru.stackoverflow.com/users/177613, https://ru.stackoverflow.com/users/196563, tutankhamun
Russian
Spoken
81
342
Поменять кодировку на utf-8 при импорте из csv? (drupal) Есть csv файл, импорт не проходит, пока я вручную в блокноте не поменяю кодировку на utf-8. Как сделать, чтобы кодировка менялась автоматически перед созданием материала? Два разных вопроса, один касался изменения кодировке в файле, другой касается, изменения кодировке, при импорте на сайт средствами Drupal, не затрагивая сам файл. http://ru.stackoverflow.com/questions/565373/%d0%a1%d0%bc%d0%b5%d0%bd%d0%b8%d1%82%d1%8c-%d0%ba%d0%be%d0%b4%d0%b8%d1%80%d0%be%d0%b2%d0%ba%d1%83-csv-%d1%84%d0%b0%d0%b9%d0%bb%d0%b0/565396#565396 ваш вопрос Я голосую за закрытие этого вопроса как не соответствующего теме, потому что не следует повторно задавать один и тот же вопрос
40,030
https://ceb.wikipedia.org/wiki/Arroyo%20el%20Carrizo%20%28suba%20nga%20anhianhi%20sa%20Mehiko%2C%20Estado%20de%20Zacatecas%29
Wikipedia
Open Web
CC-By-SA
2,023
Arroyo el Carrizo (suba nga anhianhi sa Mehiko, Estado de Zacatecas)
https://ceb.wikipedia.org/w/index.php?title=Arroyo el Carrizo (suba nga anhianhi sa Mehiko, Estado de Zacatecas)&action=history
Cebuano
Spoken
128
218
Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Arroyo el Carrizo. Suba nga anhianhi ang Arroyo el Carrizo sa Mehiko. Nahimutang ni sa estado sa Estado de Zacatecas, sa sentro nga bahin sa nasod, km sa amihanan-kasadpan sa Mexico City ang ulohan sa nasod. Ang Arroyo el Carrizo mao ang bahin sa tubig-saluran sa Río Grande de Santiago. Ang klima tropikal sa ibabwan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Mayo, sa  °C, ug ang kinabugnawan Enero, sa  °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Hulyo, sa milimetro nga ulan, ug ang kinaugahan Marso, sa milimetro. Ang mga gi basihan niini Río Grande de Santiago (suba sa Mehiko, lat 21,63, long -105,45) tubig-saluran Mga suba sa Estado de Zacatecas
25,369
https://ja.stackoverflow.com/questions/83608
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Portuguese
Spoken
156
535
データフレームからあるベクトルの要素を含む行だけを抜き出し、新しいデータフレームを作成したい 使用するデータフレームは以下のような形です。 name year price A社 1999 200 A社 2000 202 A社 2001 199 A社 2002 400 A社 2003 207 B社 1999 300 B社 2000 500 B社 2001 201 「あるベクトル」とは、[1] 199 200 201 202 207 です。 以上のデータフレームの変数priceの値が、ベクトルの要素と合致する行のみを残したいです。 目標は以下の形になります。 name year price A社 1999 200 A社 2000 202 A社 2001 199 A社 2003 207 B社 2001 201 Base R df <- data.frame( "name" = c(rep("A社", 5), rep("B社", 3)), "year" = c(1999:2003, 1999:2001), "price" = c(200, 202, 199, 400, 207, 300, 500, 201) ) select_price <- c(199, 200, 201, 202, 207) matched <- df[df$price %in% select_price,] print(matched) # name year price 1 A社 1999 200 2 A社 2000 202 3 A社 2001 199 5 A社 2003 207 8 B社 2001 201 dplyr library(dplyr) matched <- df %>% filter(price %in% select_price) print(matched) # name year price 1 A社 1999 200 2 A社 2000 202 3 A社 2001 199 4 A社 2003 207 5 B社 2001 201 ※ dplyr の場合、インデックスがリセットされます。
34,593
https://math.stackexchange.com/questions/2606048
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
Crostul, For the love of maths, J.Hsieh, https://math.stackexchange.com/users/160300, https://math.stackexchange.com/users/510854, https://math.stackexchange.com/users/521635
English
Spoken
153
249
Cardinality of the largest clique in an octahedron Is the largest clique in an octahedron is 3? I have no idea how to deal with this question. QQ Is that a crying emoticon, quick question or a I quit ? Haha! I'm crying when I asking the question. The answer is yes. Pick any face of an octahedron. This is a clique with 3 vertices. Now, suppose that there exists a clique with 4 vertices. Fix one of these, call it $V_1$. Then, the other three vertices are exactly three vertices adjacent to $V_1$. And you can visualize that these are not adjacent each other: hence they do not form a clique. Oh! I got it! Thanks! So just use contradictory to prove it? BTW. Is there any method to get exact largest clique cardinality in any graphs? @J.Hsieh I think this is an NP-Hard problem. See https://en.wikipedia.org/wiki/Clique_problem Okay ! Thanks a lot
20,573
https://sv.wikipedia.org/wiki/Polana%20julna
Wikipedia
Open Web
CC-By-SA
2,023
Polana julna
https://sv.wikipedia.org/w/index.php?title=Polana julna&action=history
Swedish
Spoken
32
60
Polana julna är en insektsart som beskrevs av Delong och Wolda 1982. Polana julna ingår i släktet Polana och familjen dvärgstritar. Inga underarter finns listade i Catalogue of Life. Källor Dvärgstritar julna
49,524
https://stackoverflow.com/questions/56817526
StackExchange
Open Web
CC-By-SA
2,019
Stack Exchange
EugenSunic, GJW, Learner, Melchia, Nuclear241, https://stackoverflow.com/users/11107541, https://stackoverflow.com/users/11316205, https://stackoverflow.com/users/2951933, https://stackoverflow.com/users/325418, https://stackoverflow.com/users/5030030, https://stackoverflow.com/users/6159441, https://stackoverflow.com/users/8011544, nonopolarity, starball
English
Spoken
736
1,700
How to tell if a web application is using ReactJs I know there are tools like Wappalyzer & BuiltWith that give you information about which framework or library is used in a website. But I need some kind of proof regarding if ReactJs is really used in a website. After some research I found out that commands like typeof React or window.React.version, but these commands don't work all the time. Any ideas on how to check reactJs is used a web application? try this one https://gist.github.com/rambabusaravanan/1d594bd8d1c3153bc8367753b17d074b will post the answer, so later if someone checks they will be able to find it easily try the below snippet, thanks for the examples for each site listed by rambabusaravanan. See the below link if(!!window.React || !!document.querySelector('[data-reactroot], [data-reactid]')) console.log('React.js'); if(!!window.angular || !!document.querySelector('.ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]') || !!document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')) console.log('Angular.js'); if(!!window.Backbone) console.log('Backbone.js'); if(!!window.Ember) console.log('Ember.js'); if(!!window.Vue) console.log('Vue.js'); if(!!window.Meteor) console.log('Meteor.js'); if(!!window.Zepto) console.log('Zepto.js'); if(!!window.jQuery) console.log('jQuery.js'); you can find additional info here link Your code doesn't work for Angular2+ frameworks (component based angular) you should add something like this: window.ng.coreTokens.NgZone, Also, please add support for Svelte. Other than that, nice solution The React one doesn't work for a simple react app created by npx create-react-app my-app I wrote an answer that should work even if React is encapsulated from the gobal scope via a bundler like webpack. I had the same problem, and in my case, I found it better to rely on the React Developer Tools. You can install it in Google Chrome, access the website you want to check, and open the Chrome DevTools. If the website uses React, the React Developer Tools will include two tabs in the Chrome DevTools: Otherwise, the React Developer Tools won't include the tabs: For future readers, the addon is also available in Firefox. I wonder how does the addon developer detect whether to show the tab in the first place. This answer doesn't detect the React 18 CRA apps that I've tried it on. I can't edit that answer (stack overflow says too many pending edits) but it should also have a check for window.__REACT_DEVTOOLS_GLOBAL_HOOK__. After adding that check it looks like this: if(!!window.React || !!window.__REACT_DEVTOOLS_GLOBAL_HOOK__ || !!document.querySelector('[data-reactroot], [data-reactid]')) console.log('React.js'); if(!!document.querySelector('script[id=__NEXT_DATA__]')) console.log('Next.js'); if(!!document.querySelector('[id=___gatsby]')) console.log('Gatsby.js'); if(!!window.angular || !!document.querySelector('.ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]') || !!document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')) console.log('Angular.js'); if (!!window.getAllAngularRootElements || !!window.ng?.coreTokens?.NgZone) console.log('Angular 2+'); if(!!window.Backbone) console.log('Backbone.js'); if(!!window.Ember) console.log('Ember.js'); if(!!window.Vue) console.log('Vue.js'); if(!!window.Meteor) console.log('Meteor.js'); if(!!window.Zepto) console.log('Zepto.js'); if(!!window.jQuery) console.log('jQuery.js'); @Learner maybe you can update your answer to include this new check? There is an extension in Chrome named 'React Developer Tools' which allows you to inspect the React component hierarchies in the Chrome Developer Tools https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi There is also another extension named 'React-detector' as well :) https://chrome.google.com/webstore/detail/react-detector/jaaklebbenondhkanegppccanebkdjlh Thank you @cybercat. But I'm not looking for extensions or tools. I'm looking more for a command or code solution Other answers that involve checking for globals like globalThis.React will work fine if the website uses react via a dedicated script HTML element, but will otherwise face the problem that bundlers like webpack can wrap dependency code inside immediately-invoked-function-expressions or other mechanisms for encapsulating their details and preventing them from unnecessarily bleeding into the global scope. Such encapsulation is very often desirable. One can try to get around this by testing if DOM elements have properties on them that get set in React contexts, such as _reactRootContainer. Like so: Array.from(document.querySelectorAll('*')) .some(e => e._reactRootContainer !== undefined) A page can have tons of elements, so one can try to optimize based on an assumption that React code will call ReactDOM.createRoot and pass it an element queried via HTML id. Ie. instead of checking all DOM elements, only check those that have an id attribute. Like so: Array.from(document.querySelectorAll('[id]')) .some(e => e._reactRootContainer !== undefined) Be aware that the id-filtering optimization will not always work because the id assumption will not always hold. Important: Since this method relies on the react DOM already having been created, it should be careful not to be applied until one thinks the react DOM has been created. Once can try to apply techniques like the defer attribute on scripts, or using document.onload, or setTimeout, or a combination of them. Note that wrapping the nodelist from the query to turn it into an array is probably sub-optimal performance-wise, but I feel that to try to optimize it might be micro-optimizing. A check for the presence of react should probably be saved to a variable and never performed again anyway.
13,729
https://stackoverflow.com/questions/28986554
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
English
Spoken
70
88
Is it possible to detect available mobile operators networks with phonegap? I would like to know if its possible to detect all available mobile operators networks in users current area, including some information about them like country Name, country Code with phonegap. If its possible, is there a plugin which will provide such information? it is possible. You could make plugin of Core Telephony framework and use it your project.
36,537
https://stackoverflow.com/questions/21275421
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
Asela, David Brossard, Utsav, https://stackoverflow.com/users/1021725, https://stackoverflow.com/users/1455772, https://stackoverflow.com/users/944169
English
Spoken
746
3,615
Multiple Decisions Profile Policy in XACML 3.0 I have requirement to write a policy for the particular user it will return the xacml response like this : This policy is based on single user : bob FirstName: Create= true , Read = true, Update = true, Delete = false MiddleName: Create= true , Read = true, Update = true, Delete = false LastName: Create= true , Read = true, Update = true, Delete = false How to write a xacml policy for such requirement and how the request will look like for the same policy. How to achieve this policy using Axiomatics Alfa plugin and WSO2 identity server. You want to retrieve the allowed action for user bob? What is "FirstName, MiddleName, LastName" mean? Could you please explain more? Then I wish, we can provide a better answer. BOB is the user in the system , FirstName: BOB , MiddleName :PETER , LastName : MATHEW , so here i need to send a request for the user bob , what are the resources he is allowed to access, suppose bob can Read FirstName but he can't Write i mean to say he can't update his name , so i want to return these values in a response as FirstName: Create= false, Read = true, Update = false, Delete = false . I have one more scenario also to achieve the same for better understanding suppose I have three attributes like 1. Name 2. Age 3. DOB . When the user logged in the application after authentication we initiate the authorization process. So the user can only authorize for accessing these attributes like : Name: {Read=true, Write = "false"}, Age: {Read = true, Write = false}, DOB: {Read =true , Write = false}. So I want to achieve the xacml response like this. For this how the policy structure will look like I don't know. Let get as following... This policy is based on single user : bob FirstName: Create= true , Read = true, Update = true, Delete = false MiddleName: Create= true , Read = true, Update = false, Delete = false LastName: Create= false , Read = true, Update = false, Delete = false Following is the policy, policy is based on user ("bob"). Therefore we can take the user name as the policy target and can create three rules. In rules, "FirstName", "MiddleName" and "LastName" have been taken as resources and for each resource, rule has been created. <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="NamePolicy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:first-applicable" Version="1.0"> <Target> <AnyOf> <AllOf> <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">bob</AttributeValue> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Match> </AllOf> </AnyOf> </Target> <Rule Effect="Permit" RuleId="Rule-1"> <Target> <AnyOf> <AllOf> <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">FirstName</AttributeValue> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Match> </AllOf> </AnyOf> </Target> <Condition> <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-at-least-one-member-of"> <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-bag"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">create</AttributeValue> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">update</AttributeValue> </Apply> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Apply> </Condition> </Rule> <Rule Effect="Permit" RuleId="Rule-2"> <Target> <AnyOf> <AllOf> <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">MiddleName</AttributeValue> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Match> </AllOf> </AnyOf> </Target> <Condition> <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-at-least-one-member-of"> <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-bag"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">create</AttributeValue> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> </Apply> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Apply> </Condition> </Rule> <Rule Effect="Permit" RuleId="Rule-3"> <Target> <AnyOf> <AllOf> <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">LastName</AttributeValue> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Match> </AllOf> </AnyOf> <AnyOf> <AllOf> <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator> </Match> </AllOf> </AnyOf> </Target> </Rule> <Rule Effect="Deny" RuleId="Rule-4"></Rule> </Policy> Following is the XACML multiple decision profile request that you can try out. Here, you can change the resource value and see the authorization for each resource. It would return permit result for the actions that are permit for "bob" <Request xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" CombinedDecision="false" ReturnPolicyIdList="false"> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" IncludeInResult="false"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">LastName</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" IncludeInResult="false"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">bob</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">create</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">update</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">delete</AttributeValue> </Attribute> </Attributes> </Request> <?xml version="1.0" encoding="UTF-8"?> <Request xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" CombinedDecision="false" ReturnPolicyIdList="false"> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" IncludeInResult="false"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">LastName</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" IncludeInResult="false"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">bob</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">create</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">update</AttributeValue> </Attribute> </Attributes> <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="true"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">delete</AttributeValue> </Attribute> </Attributes> </Request> Thanks Asela its working for one resource at a time but when I am sending request for multiple resource its showing Indeterminate. Did you manage to fix your issue, Timon? Is it because you had ticked the "CombinedDecision" option?
33,329
https://br.wikipedia.org/wiki/Cezais
Wikipedia
Open Web
CC-By-SA
2,023
Cezais
https://br.wikipedia.org/w/index.php?title=Cezais&action=history
Breton
Spoken
160
384
Cezais a zo ur gumun e departamant Vande, e Bro-C'hall . Douaroniezh Dezougen Armerzh Istor Dispac'h Gall Melestradurezh: savet e voe ar gumun e 1790 ; lakaet e voe e Kanton La Caillère da gentañ hag e Kanton La Châtaigneraie e 1801 pa voe diskaret Kanton La Caillère. E Bann La Châtaigneraie e oa. Lakaet e voe kumun Cezais en Arondisamant Fontenay-le-Comte bet krouet e 1800. Brezel-bed kentañ 32 waz eus ar gumun, da lavaret eo 6,27% eus ar boblañs e 1911, a gollas o buhez abalamour d'ar brezel hervez monumant ar re varv. Eil Brezel-bed Mervel a reas tri den ag ar gumun abalamour d'ar brezel hervez monumant ar re varv. Trevadennoù Brezel Aljeria: lazhet e voe ur milour eus ar gumun d’ar 24 a viz Even 1958 en un emgann en El Kouaniche e bro Tablat. Monumantoù ha traoù heverk Kastell La Cressonnière. Iliz katolik Sant Hilarius. Monumant ar re varv, luc’hskeudennoù. Tud Daveoù ha notennoù Kumunioù Vande
47,539
https://stackoverflow.com/questions/54394845
StackExchange
Open Web
CC-By-SA
2,019
Stack Exchange
English
Spoken
114
148
Download File - Google Cloud VM I am trying to download a copy of my mysql history to keep on my local drive as a safeguard. Once selected, a dropdown menu appears And I am prompted to enter the file path for the download But after all the variations I can think of, I keep receiving the following error message: Download File means that you are downloading a file from the VM to your local computer. Therefore the expected path is a file on the VM. If instead your want to upload c:\test.txt to your VM, select Upload File. Then enter c:\test.txt. The file will be uploaded to your home directory on the VM.
36,629
https://stackoverflow.com/questions/35509931
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
English
Spoken
199
538
GKGridGraph find path not working I'm trying to make a turn based game, and each enemy should find a path to player node. I'm using gameplaykit's pathfinding, and every time enemy has to make a turn, I make sure to remove other enemies from that GKGridGraph (so that enemy won't walk on one another) and latter I add that same nodes. NSMutableArray <GKGridGraphNode *> *walls = [NSMutableArray array]; for(SKNode *mapNode in enemies) { for(SKNode *node in mapNode.children) { if((node.position.x != enemy.position.x)||(node.position.y != enemy.position.y)) { GKGridGraphNode *graphNode = [_NewGraph nodeAtGridPosition: (vector_int2){(node.position.x-300)/70, (node.position.y-180)/70}]; [walls addObject:graphNode]; } } } [_NewGraph removeNodes:walls]; GKGridGraphNode* GKenemyNode = [_NewGraph nodeAtGridPosition:(vector_int2) {(enemy.position.x-300)/70, (enemy.position.y-180)/70}]; GKGridGraphNode* GKplayerNode = [_NewGraph nodeAtGridPosition:(vector_int2) {(player.position.x-300)/70,(player.position.y-180)/70}]; NSArray<GKGridGraphNode *> *path = [_NewGraph findPathFromNode:GKenemyNode toNode:GKplayerNode]; [_NewGraph addNodes:walls]; If I comment out lines removeNodes and addNodes everything works fine. EDIT: Would it be a good idea to every time create new class object that could return generated GKGridGraph, instead of reasigning the same one? Okey, so I found the answer and would like to share with all of you ! After removing nodes I did this (no need to add nodes as I did): for(GKGridGraphNode *node in walls) { [NewGraph connectNodeToAdjacentNodes:node]; } NewGraph = nil; GoodLuck !
26,946
https://stackoverflow.com/questions/74723252
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
Bryan Oakley, Niccolo M., https://stackoverflow.com/users/1560821, https://stackoverflow.com/users/1709364, https://stackoverflow.com/users/20717858, https://stackoverflow.com/users/7432, jasonharper, krep
Danish
Spoken
669
1,219
ValueError: empty range for randrange() (0, 0, 0) - function in a Tkinter button Here's the error code : Traceaback (most recent call last): File "D:\Programmes\PyCharm Edu 2022.2.2\projects\mdp.py", line 115, in <module> gen = Button(tabUser, text="Générer", fg="white", bg="#006400", font=("",15), command=generationMdp(longMdp, listeMain)) File "D:\Programmes\PyCharm Edu 2022.2.2\projects\mdp.py", line 39, in generationMdp k = randint(0, o) File "C:\Program Files\Python38\lib\random.py", line 248, in randint return self.randrange(a, b+1) File "C:\Program Files\Python38\lib\random.py", line 226, in randrange raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width)) ValueError: empty range for randrange() (0, 0, 0) Function : def generationMdp(longMdp, listeM): gene = "" for i in range(0, longMdp+1): o = len(listeM)-1 k = randint(0, o) gene = gene + str(listeM[k]) del listeM[k] return gene Button : gen = Button(tabUser, text="Générer", fg="white", bg="#006400", font=("", 15), command=generationMdp(longMdp, listeMain)) My goal is to run the "generationMdp" function every time the button "gen" is clicked. I tried to see if the issue came from the function itself but it ended up working fine on its own so I think the issue comes from the code in the button but I cannot find where. The listeM parameter (coming from listeMain) is apparently empty, so you're trying to pick a random number from an empty range. This isn't surprising, since you're removing an element from this list on each iteration of your loop. @jasonharper I tried putting test numbers in there too and it still wouldn't work. I remove the elements because I wanted to use them once and it also worked fine when I tried it out of the button. command=generationMdp(longMdp, listeMain) will immediately run generationMdp(longMdp, listeMain) and pass the result to the command option. My goal is to run the "generationMdp" function every time the button "gen" is clicked. The button's command has to point to a function (that gets run whenever you press this button): def show_somr_mdp(): print('listeMain has', len(listeMain), "elements, of which I'll get", longMdp+1) print( generationMdp(longMdp, listeMain) ) gen = Button(....., command=show_somr_mdp) Currently, your code doesn't make sense: you assign the result of generationMdp to the button's command. And my guess is that you populate listeMain & longMdp after that line got executed, which probably means this function got an empty listeMain. But that's just a guess. As for generationMdp: as @jasonharper pointed out, it removes elements from listeM (and therefore listeMain too), and this is going to affect the next calls to this function (and likely lead to the error you see, sooner or later). To fix this, either send this function a copy of the list (listeMain.copy()), or have this copy made in the function, or (better) rewrite your code to use random.sample(). At the least add assert longMdp+1 <= len(listeM) to that function. So if I got this right, my problem is that I need to run a void function with generationMdp inside ? My goal with removing elements from listeM is because I want each element to only be used once and for each generation to be different, could this be avoided if I used a shuffle on the list and just went from 0 to len(listeM)-1 ? I also tried making a copy of the list but the problem was still there, I will continue searching along with the new info I learned ! "my problem is that I need to run a void function with generationMdp inside?" Yes. But I'm not too sure you got it right: It's not us who run the function; it's the button that runs it (whenever it gets clicked). So we hand the button (via command) only the name of the function. That's why my code has "command=show_somr_mdp", not "command=show_somr_mdp()". The missing "()" is the important thing. (You may see people using something called "lambda"; it's the same thing.) As for removing elements from listeM: if it's intentional, then ok. But add assert to save yourself headache. Sorry I completely forgot to reply to you, I managed to get it done in the end with the advices you gave me, thanks a lot !
16,383
https://bg.wikipedia.org/wiki/Benthophilus%20granulosus
Wikipedia
Open Web
CC-By-SA
2,023
Benthophilus granulosus
https://bg.wikipedia.org/w/index.php?title=Benthophilus granulosus&action=history
Bulgarian
Spoken
29
99
Benthophilus granulosus е вид лъчеперка от семейство Попчеви (Gobiidae). Разпространение Видът е разпространен в Каспийско море. Описание Това е малка рибка с дължина до 5,6 см. Източници Звездовидни попчета
19,768
https://en.wikipedia.org/wiki/Agrothrips
Wikipedia
Open Web
CC-By-SA
2,023
Agrothrips
https://en.wikipedia.org/w/index.php?title=Agrothrips&action=history
English
Spoken
29
108
Agrothrips is a genus of thrips in the family Phlaeothripidae. Species Agrothrips arenicola Agrothrips dimidiatus Agrothrips omani Agrothrips pallidus Agrothrips priesneri Agrothrips tantillus Agrothrips tenebricosus References Phlaeothripidae Thrips genera
6,318
https://ar.wikipedia.org/wiki/%D9%81%D8%A7%D8%B6%D9%84%D8%A9%20%D8%A5%D8%A8%D8%B1%D8%A7%D9%87%D9%8A%D9%85%20%D8%B3%D9%84%D8%B7%D8%A7%D9%86
Wikipedia
Open Web
CC-By-SA
2,023
فاضلة إبراهيم سلطان
https://ar.wikipedia.org/w/index.php?title=فاضلة إبراهيم سلطان&action=history
Arabic
Spoken
252
697
فاضلة إبراهيم سلطان محمد علي إبراهيم ابن محمد وحيد الدين ابن ابرا هيم احمد ابن أحمد رفعت باشاابن الوالي إبراهيم باشا ابن محمد علي ولدت في باريس (1941). والدها الأمير محمد علي وحيد الدين بن إبراهيم يعود نسبه إلى والي مصر الألباني الأصل محمد علي باشا ووالدتها الأميرة خانزادة ابنة الأمير عمر فاروق ابن السلطان العثماني عبد المجيد الثاني. شقيقها الأمير أحمد رفعت إبراهيم. كانت خطيبة الملك فيصل الثاني ملك العراق حيث كان من المفترض أن تكون ملكة العراق لولا ثورة 14 تموز عام 1958 أو ما يعرف بحركة تموز 1958 الذي أطاح بالملك وارداه قتيلا هو وعائلته وألغى نظام الحكم الملكي في العراق وتحويله إلى نظام جمهورية. خبر الانقلاب في تركيا في صباح 14 تموز 1958، كانت الاستعدادات قائمة في مطار( يشيل كوي) بإستانبول لاستقبال الملك فيصل الثاني . وكان رئيس الوزراء عدنان مندريس على رأس الوفد الذي كان ينتظر وصول الملك العراقي، إلا أن الجميع فوجئوا بوقوع الانقلاب في العراق . لم تعرف عائلة الأميرة (فاضلة) -خطيبة الملك فيصل- تفاصيل أحداث للانقلاب إلا بعد أيام. حيث علموا بمصير الأمير عبد الإله ورئيس الوزراء نوري السعيد والملك فيصل الذي كان يبلغ الثالثة والعشرين من عمره ، والذي أصيب بجروح بليغة ، تلقت الأميرة الشابة تعليمها في مدرسة هيفيلد في أسكوت - لندن. تزوجت من الدكتور المهندس خيري أوغلو ولها ولدين هما علي وسليم. في الثمانينيات من القرن الماضي عملت في منظمة يونسكو عام 1980. مصادر الأسرة العلوية أتراك مغتربون في فرنسا أتراك مغتربون في مصر أشخاص على قيد الحياة أميرات أميرات عثمانيات في القرن 20 تركيات في القرن 20 مواليد 1941
26,155
https://ja.wikipedia.org/wiki/%E3%82%A4%E3%83%BC%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%BB%E3%83%90%E3%83%8B%E3%83%BC
Wikipedia
Open Web
CC-By-SA
2,023
イースター・バニー
https://ja.wikipedia.org/w/index.php?title=イースター・バニー&action=history
Japanese
Spoken
87
2,602
イースター・バニー(英語: Easter Bunny、Easter Rabbit、Easter Hare とも)あるいは復活祭のウサギ(ふっかつさいのうさぎ)は、復活祭の卵(イースター・エッグ)を運んでくるウサギのキャラクターである。 西方教会(カトリック教会・聖公会・プロテスタント)における復活祭の風物詩となっている習慣であるが、東方教会(正教会・東方諸教会)では同様の習慣はない。 同じく復活祭の風物詩である復活祭の卵は東方教会・西方教会を問わず極めて古い時期からの習慣であるが、イースター・バニーは西方教会のみにみられる習慣であり、16世紀から17世紀にかけて定着したものである(起源を15世紀、定着の始まりを19世紀とする者もいる)。 本項では、特に断りの無い場合、西方教会における習慣について詳述する。 起源 当初はドイツのルーテル教徒から広がったもので、野ウサギが裁判官の役を演じて復活祭の季節の始めに、子供たちが良い子だったか反抗的なふるまいだったかを評価していた。 イースター・バニーは、しばしば服を着た姿で表現される。伝承によれば、このウサギは、カラフルな卵やキャンディ、ときにはおもちゃをバスケットに入れて子供たちの家に届けるという。祝日の前夜に子供たちに贈り物を届けるという点では、イースター・バニーはサンタクロースに似ている。 この慣習についての最初の記述は、1682年ゲオルグ・フランク・フォン・フランケナウによる『 De ovis paschalibus (イースター・エッグについて)』である 。 ここでゲオルグは、野ウサギが子供たちにイースター・エッグを運んでくるというドイツの伝承について触れている。 復活祭当日に行われる礼拝で、特に子供たちへの訓話のために、生きた野ウサギを連れてくるところも多くある。 シンボル タマゴは生命誕生の象徴であり、ウサギは多産であることから、生命の復活と繁栄を祝うイースターのシンボルとなっている 。 ウサギ ウサギは、中世の西方教会における教会芸術では一般的なモチーフだった。 古代には、ウサギは雌雄同体だと広く信じられており、プリニウス、プルタルコス、フィロストラトス、アイリアノスも同様だった。 ウサギは処女性を失わずに繁殖することができる、という考え方から、ウサギは聖母マリアと関連付けられるようになり、装飾写本や北方ルネサンス絵画で聖母マリアや幼子キリストと共に描かれることも多かった。 また三位一体、すなわちと関連付けられて、三羽のウサギがモチーフとなることもあった。この場合、「三つが一つ、一つが三つ」を表すため、三角形もしくは三羽が連結した輪の形をとるのが一般的である。イギリスでは通常、このモチーフは教会の目立つ場所、例えば内陣の屋根や身廊のリブ・ヴォールト中央などに現れる。 このことは、教会にとってこのシンボルが重要なことを意味しており、石工もしくは大工の背丁であるという理論に疑いを投げかけるものである。 さらに次のような伝承もある。『若いウサギは、友人イエスがゲッセマネの園に戻るまでの三日間、心配しながら待っていたが、イエスになにが起こっているのか、ほとんど何も分かっていなかった。 イースターの早朝、イエスはお気に入りの庭に戻り、友である動物に歓迎された。その日の夕刻、祈りのために弟子たちが庭にやってきて、美しいデルフィニウムの小道を見つけた。デルフィニウムは、中心にウサギの形をした花を咲かせていて、その小さくて誠実な生き物の、忍耐と希望を表していた。』 ウサギは多産な種畜である。雌のウサギは、最初の子供がまだお腹の中にいるうちに、次の子供を宿すことができる。この現象は、過剰受胎として知られる。ウサギ目に属する動物は早熟で、一年に何度も出産することができるため、「ウサギのように産む( breed like bunnies )」と表現されることがある。このように、ウサギが豊穣のシンボルとされ、復活祭の民間伝承に取り入れられていったのは、自然なことであった。 卵 卵を装飾するという古来の習慣の、正確な起源は分かっていない。しかし明らかに、多くの花が春に開花することと、豊穣のシンボルである卵を使うことには関連性がある。花で染色された茹で卵は、家々に春を運ぶのである。東方正教会派のキリスト教信者の多くは、今日でもイースター・エッグを赤く染めるのが一般的である。赤は血の色であり、キリストの血による贖い、そして春の生命の再生を確認するのである。卵のいくつかは緑に染められるが、これは長い冬の休眠時期が終わって新しい芽吹きを迎えたことを記念している。 ドイツのプロテスタントは、カトリック教会の習慣を引き継いで、色付けした卵をイースターに食べるが、子供たちに断食させる習慣の継続は望まなかった。カトリック教会では、四旬節の断食期間に卵を食べることは禁忌であり、そのため復活祭の時期にはたくさんの卵が準備されることになる。 卵を置くウサギの概念がアメリカに伝わったのは、18世紀のことである。ペンシルベニア・ダッチ区域に住むドイツ移民は、子供たちに「 Osterhase ( Oschter Haws ) 復活祭のウサギ」について語りきかせた。「 Hase 」は「 hare (ノウサギ)」の意で、「ウサギ」ではない。 北ヨーロッパの伝承では、「イースター・バニー」はノウサギであってウサギではないのである。伝統に従えば、復活祭前に帽子やボンネットの中に作った巣に、色付けされた卵の贈り物を受け取ることができるのは、良い子供たちだけである。1835年ヤーコプ・グリムは、これによく似た内容を持つドイツの神話について書き記した。これらは 復活したゲルマンの女神*エオストレの伝承に由来するのではないかと考えた。 他の文化にも、イースター・バニーとよく似た伝承が見られる。ドイツ移民により、19世紀後期のスウェーデンにもイースター・バニーの概念は伝わったが、その習慣が根付くことはなかった。むしろイースター・バニーのスウェーデン語「 Påskharen 」の発音が、「イースターの男」「イースターの魔法使い」を意味する「 Påskkarlen 」とよく似ていたため、20世紀初期に、イースターの魔法使いが卵を持ってくるというスウェーデンの伝統が確立した。イースターの魔法使いは異教の習慣にふさわしいシンボルとみなされ、スウェーデンでは現在も、イースターに子供たちが魔女の仮装をする。 脚注 外部リンク The Origin of Popular Easter Symbols Easter Origins and the Easter Bunny Charles J. Billson. "The Easter Hare". Folk-Lore. Vol. 3, No. 4 (December 1892). CMキャラクター ドイツの伝承 神話・伝説の兎
27,246
https://stackoverflow.com/questions/12393267
StackExchange
Open Web
CC-By-SA
2,012
Stack Exchange
English
Spoken
397
553
301 Redirect with Regular Expressions Couldn't find an answer to this and thought it might be a quick answer. My company, a local news site, is working on migrating to WordPress from a proprietary CMS. Part of the challenge is we are restructuring URLs. I will be utilizing 301 redirects but my issue is as follows: Example Page name: Story Name: is "this" Example Old CMS Page URL: /story-name--is--this-/ New CMS Page URL: /news/2012/09/12/story-name-is-this/ The old CMS turned special characters and spaces into hyphens. WordPress will be configured to instead ignore special characters and simply turn spaces into hyphens. Additionally, the old CMS did not include the date in the URL, and I'm not sure the best route to take regarding adding the date. Thanks! You're either going to have to write a script that takes all of your old links, does a lookup in your database to transform it into the new link, and redirect the browser to the new link. Or you'll have to enumerate the entire mapping of old links -> new links and create a 301 redirect for each of them (in either your vhost/server config or in an htaccess file): Redirect 301 /story-name--is--this-/ /news/2012/09/12/story-name-is-this/ It's not clear what is your real question? I am also not sure what Regular expressions have to do with the problem. There is no information about what your old CMS is capable of, assuming that you can intercept the calls to old articles when they are accessed via the browser, but before they are rendered you can form and send the redirect back to the browser dynamically generating the url using the programming mechanisms available in your proprietary CMS. Again, assuming you have access to Java: A. When generating the redirect URL you can access the article's date and form the 2012/09/12 from the date, you can use SimpleDateFormatter to format Dates into a string representation like YYYY/MM/DD. B. You can use similar approach with the titles and replace the list of special characters in the title string with empty spaces. For example Apache StringUtils library can let you specify a set of characters to look for and if any are found they will be replaced with the target character. C. You concatenate the output of A and B to create the target redirect URL and send it back to the browser instead of the article itself.
10,035