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://bg.wikipedia.org/wiki/%D0%A2%D0%B0%D0%B1%D0%B5%D1%80%D0%BD%D0%BE
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Таберно
|
https://bg.wikipedia.org/w/index.php?title=Таберно&action=history
|
Bulgarian
|
Spoken
| 62
| 151
|
Таберно () е населено място и община в Испания. Намира се в провинция Алмерия, в състава на автономната област Андалусия. Общината влиза в състава на района (комарка) Вале дел Алмансора. Заема площ от 44 km². Населението му е 1149 души (по данни от 2010 г.). Разстоянието до административния център на провинцията е 128 km.
Демография
Външни препратки
Taberno
Taberno
Селища в Андалусия
| 46,547
|
https://stackoverflow.com/questions/62212512
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,020
|
Stack Exchange
|
Damien_The_Unbeliever, Joel, MisterA, Vivek Nuna, https://stackoverflow.com/users/12360329, https://stackoverflow.com/users/15498, https://stackoverflow.com/users/2902996, https://stackoverflow.com/users/6527049
|
English
|
Spoken
| 338
| 514
|
C# cannot create windows service that will start
I'm trying to write my first Windows Service in C#. If I follow the MS tutorial to the letter, I can create a simple service with a timer that works and writes to the eventLog. The second I change ANYTHING it will not start with 1064.
I installed the service by calling C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe from the solution's bin\debug folder.
I have uninstalled the service and reinstalled it.
I have used SC DELETE and reinstalled it.
I have rebooted. Nothing works, unless I start a new project from scratch, which fails again when I try to change anything. Does something have to be reset if you change code?
What does it mean The second I change ANYTHING?
Would be helpful if you could create a [mcve]
What if we change anything and it works? We really need to know what specific things you're trying.
ANYTHING from changing the service name to changing the text in the eventlog message to adding a class or adding some code
minimal reproducible example = MS Tutorial https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer this works, so long as I don't change anything like service name or code
I just recreated the service from scratch , installed it, it worked. I uninstalled it, changed the displayname reinstalled it and now it fails to start. I have the original source preserved
If the original source is used, it works.
Starting again with baby steps and careful use of the event log I was able to determine that the service could not access a file path which referred to a drive created with a SUBST command (I don't have an E drive on the development machine). I presume this is because the SUBST is not in the service's process, however why that caused the service controller to error on startup I don't know, possibly because the path was accessed from Properties.Settings.Default. The mystery fact remains that a working version stopped working when I only changed the service display name and rebuilt (after uninstalling & reinstalling).
| 4,005
|
https://fa.wikipedia.org/wiki/%D9%86%D8%A7%D8%AD%DB%8C%D9%87%20%D8%A7%D8%AF%D8%A7%D9%85%D8%B2%D8%8C%20%D8%B4%D9%87%D8%B1%D8%B3%D8%AA%D8%A7%D9%86%20%D8%B3%D9%86%DB%8C%D8%AF%D8%B1%D8%8C%20%D9%BE%D9%86%D8%B3%DB%8C%D9%84%D9%88%D8%A7%D9%86%DB%8C%D8%A7
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ناحیه ادامز، شهرستان سنیدر، پنسیلوانیا
|
https://fa.wikipedia.org/w/index.php?title=ناحیه ادامز، شهرستان سنیدر، پنسیلوانیا&action=history
|
Persian
|
Spoken
| 57
| 232
|
ناحیه ادامز، بخش سنیدر، پنسیلوانیا (به انگلیسی: Adams Township, Snyder County, Pennsylvania) در ایالات متحده آمریکا است که در شهرستان اسنایدر، پنسیلوانیا واقع شدهاست.
خصوصیات
ناحیه ادامز ۵۴٫۱ کیلومترمربع مساحت و ۸۵۲ نفر جمعیت دارد.
جستارهای وابسته
فهرست شهرهای ایالات متحده آمریکا
منابع
بنیانگذاریهای ۱۷۵۴ (میلادی) در پنسیلوانیا
مناطق مسکونی بنیانگذاریشده در ۱۷۵۴ (میلادی)
ناحیهها در پنسیلوانیا
| 38,956
|
https://azb.wikipedia.org/wiki/%D9%82%D8%B1%DB%8C%D9%86%DB%8C%D8%A7%D8%B3%DA%A9%D9%88
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
قرینیاسکو
|
https://azb.wikipedia.org/w/index.php?title=قرینیاسکو&action=history
|
South Azerbaijani
|
Spoken
| 48
| 263
|
قرینیاسکو (ایتالیاجا: Grignasco) ایتالیا اؤلکهسینده بیر یاشاییش منطقهسیدیر. سوْن نۆفوس ساییمی اساسيندا ۴۸۰۳ نفر ایمیش. دنیز سوُلاری سَویهسیندن ۳۲۲ متر یۇکسکلیکده یئر آلیب. و پیمونت اوستانیندا دا یئرلشیب.
بیرده باخ
ایتالیا شهرلرین لیستی
قایناقلار
اینگیلیسجه ویکیپدیاسینین ایشلدنلری طرفیندن یارانمیش«Grignasco»، مقالهسیندن گؤتورولوبدور.( ۸ آقوست ۲۰۱۸ تاریخینده یوْخلانیلیبدیر).
ایتالیا شهرلری
| 26,292
|
https://movies.stackexchange.com/questions/55227
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
Napoleon Wilson, Walt, https://movies.stackexchange.com/users/4386, https://movies.stackexchange.com/users/49
|
English
|
Spoken
| 434
| 571
|
Why is everyone's limbo space the same in Inception?
Cobb, Ariadne, Fischer, Saito all die in the dream and end up in the same Limbo world, which is the world Cobb and Mal built.
Does this have any logical explanation according to the rules set up by the film?
Related (if not even duplicate): Where does Limbo take place?
This is explicitly stated in the film: "Nothing is down there. Except for whatever might have been left behind by anyone sharing the dream who has been trapped there before. Which in our case is just you [Cobb]."
This is explained in the movie in the scene where limbo and the potential death of a character during the mission is first mentioned (after Saito got shot on level 1). When Ariadne asks what limbo is, Arthur explains it to her:
Unconstructed dream space. [...] Just raw infinite subconscious. Nothing is down there. Except for whatever might have been left behind by anyone sharing the dream who has been trapped there before. Which in our case, is just you. [to Cobb]
To understand how this is possible, we don't really have to look too far beyond the already accepted concept of shared dreaming. In fact, it's an established concept that people can subconciously bring their own stuff from their very own mind into the shared dreamspace. The best example is Cobb and his subconcious projections of Mal and their kids. But afterall, also Ariadne as the architect practically brings her own world with her (albeit more conciously than Cobb) even if she isn't actually the dreamer.
The point here is that the limbo space that everyone shares is pupulated by what Cobb left there in his own subconcious. But it's not that there is an actual limbo filled with all that stuff that people once created there and that's magically stored away in some aetheric dream realm independent of anyone's mind. Rather than that, the mutual subconcious limbo that is itself shared by all the people sharing the dream is just populated anew by anything that the people currently in the dream once created and stored in the subconcious part of their very own mind.
So the limbo is basically the connected subconcious minds of all the people in the dream (in the same way their dreams are connected), just that Cobb is the only one who has already filled his own subconcious with anything meaningful. And in fact when Cobb finds Saito at the end (beginning?) of the film, we see that Saito has been there long enough to build his very own little realm.
| 2,588
|
https://es.wikipedia.org/wiki/Kutruva%20Nayanar
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Kutruva Nayanar
|
https://es.wikipedia.org/w/index.php?title=Kutruva Nayanar&action=history
|
Spanish
|
Spoken
| 629
| 1,178
|
Kutruva Nayanar, también conocido como Kootruva, Kutruva, Kutruvar, Kootruvar, Kurruva Nayanar, Kurruvar, Kurruvan, Kutruvanar, Kurruvar, Kalappallan y Kalappalar, fue un jefe de Kalandai y un santo Nayanar, venerado en la secta hindú del Shaivismo. Generalmente se le cuenta como el 39º en la lista de los 63 nayanars. Kutruva es a menudo descrito como un Jain, que se convirtió en un devoto de Shiva, el dios patrón del Shaivismo.
Vida
La vida de Kutruva Nayanar se describe en el Periya Puranam en tamil de Sekkizhar del , que es una hagiografía de los 63 nayanars. Su nombre Kutruva significa el «Dios de la muerte» en tamil.
El Periya Puranam narra que Kutruva era el jefe de Kalandai o Kalantai. Era de la comunidad de Kalabhras. Se le describe como un devoto de Shiva. Derrotó a muchos reyes y jefes en la guerra y adquirió sus riquezas y territorios en los reinos de Pandya y Chola. Kutruva había adquirido extensas tierras y riquezas a través de sus campañas, pero debido a la falta de un título formal seguía siendo técnicamente un cacique, sin base legal para gobernar su dominio de facto. Pidió a los sacerdotes —brahmanes— del templo de Chidambaram en Thillai. Los brahmanes que debían lealtad a los reyes Chola y coronaron a los Cholas, se negaron y huyeron a Malai Nadu, la actual Kerala, bajo la protección del rey Chera como se describe a continuación,
{{cita|Para que el que conquistó el mundo (Kootruvar) no se vea privado de una corona real, solicitó los servicios de coronación de los antiguos tres mil sacerdotes servidores en Chidambaram (Thillai). Entonces los sacerdotes se negaron a ello diciendo que tienen derecho a realizar la ceremonia sólo para los más merecedores del antiguo clan de los sembiyars (Cholas). Dicho esto, abandonaron su morada para llegar a la región montañosa (Kerala) del antiguo rey tamil del chera.}}
Kutruva se acercó a Nataraja, la forma presidencial de Shiva del «templo de Chidambaram», para coronarlo manteniendo su pie sobre la cabeza de Kutruva. Nataraja apareció en el sueño de Kutruva y cumplió lo prometido, dándole la autoridad divina para gobernar. Él continuó adorando a Shiva y dio patrocinio al templo del dios. Finalmente llegó a Kailash, la morada de Shiva después de la muerte.
Mientras que el Periya Puranam no describe explícitamente cómo ha de ser un Jain, Kutruva Nayanar se describe a menudo como Jain.[1] Se explica la negativa de los sacerdotes hindúes de Chidambaram a coronar a un monarca Jain. Según algunas teorías, él era un jefe de Kalabhra, que eran principalmente Jains. Su título, Kalappalar, rey de Kalappalar, se utiliza para identificarlo como miembro del clan Kalappalar, que a su vez se identifican con Kalabharas. Su ciudad natal, Kalandai, se identificaba con el actual Kalappal, el distrito Thiruvarur del estado indio de Tamil Nadu. Otras teorías identifican a Kalandai como Kalattur, en la antigua región de Tondai Nadu. Otra sugerencia lo identifica como Peria Kalandai, distrito de Coimbatore donde se encuentra el «templo Adityesvara Shiva» construido por el rey Chola Aditya I (c. 871 - c. 907 CE).
Recuerdo
Uno de los Nayanars más prominentes, Sundarar, del venera a Kutruva Nayanar, llamado Kurran en el himno, en el Tiruthonda Thogai, un himno a los santos de Nayanar. Se le describe como el «príncipe de Kalandai», que blande una lanza.
Kutruva Nayanar es adorado en el Poornima, día de luna llena, del mes tamil de Adi''. Se le representa como un rey con una corona, las manos cruzadas y a veces una espada en el brazo. Recibe culto colectivo como parte de los 63 Nayanars. Sus íconos y breves relatos de sus hazañas se encuentran en muchos templos de Shiva en Tamil Nadu. Sus imágenes son sacadas en procesión en festivales.
Referencias
Hombres
Nayanares
| 17,410
|
https://fa.wikipedia.org/wiki/%D8%AA%D8%B3%D9%88%D8%AA%D9%88%D9%85%D9%88%20%D9%85%D8%A7%D8%AA%D8%B3%D9%88%D8%AF%D8%A7
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
تسوتومو ماتسودا
|
https://fa.wikipedia.org/w/index.php?title=تسوتومو ماتسودا&action=history
|
Persian
|
Spoken
| 59
| 198
|
تسوتومو ماتسودا (؛ زادهٔ ) یک بازیکن فوتبال اهل ژاپن است.
از باشگاههایی که در آن بازی کردهاست میتوان به باشگاه فوتبال ونتفورت کوفو اشاره کرد.
پیوند به بیرون
بازیکنان فوتبال اهل ژاپن
زادگان ۱۹۸۳ (میلادی)
مدافعان فوتبال
اهالی فوتبال اهل استان آیچی
بازیکنان باشگاه گیفو
بازیکنان باشگاه کارییا
بازیکنان دسته ۱ جیلیگ
بازیکنان فوتبال لیگ ژاپن
افراد زنده
| 31,840
|
https://nl.wikipedia.org/wiki/Pseudomeloe%20baeri
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Pseudomeloe baeri
|
https://nl.wikipedia.org/w/index.php?title=Pseudomeloe baeri&action=history
|
Dutch
|
Spoken
| 28
| 54
|
Pseudomeloe baeri is een keversoort uit de familie van oliekevers (Meloidae). De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 1903 door Fairmaire.
Oliekevers
| 1,881
|
https://de.wikipedia.org/wiki/Landtagswahl%20in%20K%C3%A4rnten%202009
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Landtagswahl in Kärnten 2009
|
https://de.wikipedia.org/w/index.php?title=Landtagswahl in Kärnten 2009&action=history
|
German
|
Spoken
| 1,656
| 3,188
|
Die Landtagswahlen in Kärnten 2009 fanden am 1. März 2009 statt und wurden gleichzeitig mit den Gemeinderats- und Bürgermeisterwahlen abgehalten. Bei der Landtagswahl traten neben den im Kärntner Landtag vertretenen Fraktionen Bündnis Zukunft Österreich (BZÖ), Sozialdemokratische Partei Österreichs (SPÖ), Österreichische Volkspartei (ÖVP), Die Grünen Kärnten (GRÜNE) und Freiheitliche Partei Österreichs (FPÖ) auch die Kommunistische Partei Österreichs (KPÖ), die Liste Stark (STARK) und die Gaddafi Partei Österreich (GPÖ) an. Aus der Wahl ging das BZÖ mit rund 45 % der Stimmen als stimmenstärkste Partei hervor, wobei die Partei nach der Spaltung der FPÖ und dem Tod Jörg Haiders erstmals an den Kärntner Landtagswahlen teilgenommen hatte. Die SPÖ fuhr deutliche Verluste ein und verlor neben drei Mandaten auch einen Landesrat. Während die ÖVP von einem niedrigen Stand drei Mandate gewinnen konnte, konnten sich die Grünen nach leichten Verlusten nur knapp den Verbleib im Landtag sichern. Die FPÖ verfehlte nach der Abspaltung des BZÖ den neuerlichen Einzug in den Landtag ebenso wie alle anderen angetretenen Listen.
Voraussetzungen
Ausgangslage
Die Freiheitliche Partei Österreichs hatte die Landtagswahl in Kärnten 2004 mit 42,4 % gewonnen, gefolgt von der Sozialdemokratischen Partei Österreichs, welche 38,4 % der Wählerstimmen für sich hatte gewinnen können. Die Österreichische Volkspartei hatte 11,6 %, die Die Grünen Kärnten 6,7 % erreicht. Nach der vom damaligen Landeshauptmann Jörg Haider angeführten Abspaltung des Bündnis Zukunft Österreich von der FPÖ war beinahe die gesamte Spitze der FPÖ Kärnten zum BZÖ übergetreten. 15 der 16 FPÖ-Mandatare wechselten zum BZÖ. Am 11. Oktober 2008 starb Jörg Haider bei einem Autounfall. Zum Nachfolger Haiders als Landeshauptmann wurde Gerhard Dörfler (BZÖ) mit Unterstützung von BZÖ, ÖVP und FPÖ gewählt.
Wahlrecht
Bei der Landtagswahl 2009 sind in Kärnten alle Personen wahlberechtigt, die am Tag der Wahl das 16. Lebensjahr vollendet haben, nicht vom Wahlrecht ausgeschlossen sind, am Stichtag, dem 27. Dezember 2008, über eine österreichische Staatsbürgerschaft verfügten und ihren Hauptwohnsitz in Kärnten haben. Dem passiven Wahlrecht lagen dieselben Kriterien zu Grunde, jedoch müssen Kandidaten für die Landtagswahl am Tag der Wahl bereits das 18. Lebensjahr vollendet haben. Aktiv Wahlberechtigt sind bei der Landtagswahl 443.449 Personen.
Das Wahlalter bei Landtagswahlen war erst im Juli 2008 durch eine Wahlrechtsreform von 18 auf 16 Jahre gesenkt worden. Gleichzeitig senkten SPÖ, ÖVP, Grüne und FPÖ bei der Wahlrechtsreform gegen die Stimmen des BZÖ die hohe Mandatshürde für Parteien in den Kärntner Landtag. Künftig reichen fünf Prozent der Stimmen in Kärnten für einen Einzug in den Landtag, zuvor waren mindestens zehn Prozent der Stimmen in einem der vier Wahlkreise nötig gewesen. Die Wahlkreise des Landes Kärnten blieben durch die Wahlrechtsreform unverändert. Der Wahlkreis 1 umfasst die Bezirke Klagenfurt-Stadt und Klagenfurt-Land, der Wahlkreis 2 die Bezirke Völkermarkt, Sankt Veit an der Glan und Wolfsberg, der Wahlkreis 3 Villach-Stadt und Villach-Land sowie der Wahlkreis 4 die Bezirke Feldkirchen, Hermagor und Spittal an der Drau. Während in den Wahlkreisen 1 und 4 jeweils maximal neun Direktmandate vergeben werden, stellt der Wahlkreis 2 maximal zehn und der Wahlkreis 3 maximal acht Direktmandate.
Wahlgang
Durch die Wahlrechtsreform 2008 ermöglicht das Kärntner Wahlrecht auch die vorzeitige Stimmabgabe und die Briefwahl. Die Wahlberechtigten sind dadurch in der Lage, ihre Stimme bereits am 20. Februar abzugeben. Die Kärntner Gemeinden sind dabei verpflichtet, zumindest ein Wahllokal für mindestens zwei Stunden zu öffnen. Mittels Briefwahl können die Kärntner Wahlberechtigten bis spätestens 25. Februar schriftlich oder bis spätestens 26. Februar mündlich eine Wahlkarte bei der Hauptwohnsitzgemeinde beantragen. Die Briefwahl ist dabei vom Inland als auch vom Ausland aus möglich, wobei die Wahlkarte für die Landtagswahl bis spätestens 9. März bei der jeweiligen Bezirkswahlbehörde einlangen muss.
Der amtliche Stimmzettel für die Landtagswahl ist weiß und hat das Format A4. Der Stimmzettel wird nach der Wahl in ein weißes Kuvert gesteckt. Neben der Stimme für eine Partei können Wahlberechtigte auch bis zu drei Vorzugsstimmen vergeben, wobei eine gültige Vorzugsstimme nur an einen Kandidaten der gewählten Partei möglich ist.
Wahlwerbende Parteien (Listennamen und offizielle Abkürzung)
Die Freiheitlichen in Kärnten – BZÖ Liste Jörg Haider (BZÖ)
Nach dem Tod Jörg Haiders tritt das BZÖ mit dem neugewählten Landeshauptmann Gerhard Dörfler als Spitzenkandidaten an. Wahlkampfleiter und Nationalratsabgeordneter Stefan Petzner konzipierte den Wahlkampfauftritt des BZÖ als Teamwahlkampf, wobei auf den Plakaten neben Dörfler auch Landeshauptmannstellvertreter Uwe Scheuch und Landesrat Harald Dobernig zu finden waren. Landeshauptmann Dörfler setzte als Wahlziel das Erreichen von 40 % Stimmenanteil an, 37 % nannte er als „persönliche Schmerzgrenze“. Bei den Plakatsujets setzte das BZÖ auf die Weiterführung des bisherigen Regierungskurses, wobei durch die Wahl des Listennamens und Slogans wie "Wir passen auf dein Kärnten auf" starke Bezüge zum verstorbenen Landeshauptmann Haider hergestellt wurden. Inhaltlich setzte das BZÖ in seinem Wahlkampf trotz der stärker werdenden Wirtschaftskrise vor allem auf das Thema Sicherheit. In seinem Wahlprogramm stellte das BZÖ die Verhinderung von weiteren zweisprachigen Ortstafeln an die erste Stelle. Dahinter folgte die Verhinderung eines Aufnahmelagers für Flüchtlinge und Asylanten in Kärnten und die Forderung nach zusätzlichen Polizisten zur Bekämpfung von "Kriminalität, Asyl- und Drogenmissbrauch". Weitere Themen waren die Unterstützung der Wirtschaft durch Förderkredite des Landes, ein Konjunkturfonds gegen die Wirtschaftskrise und die Unterstützung von Lehrlingen. Des Weiteren forderte das BZÖ ein Jugendstartgeld, Vergünstigungen für Kärntner bei Tourismuseinrichtungen, den Ausbau der medizinischen Versorgung, den Ausbau der Sonnenenergie und der Wasserkraft sowie die Verankerungen von Sozialleistungen in einem "Familieneinkommen".
Sozialdemokratische Partei Österreichs (SPÖ)
Die SPÖ ging mit Landeshauptmannstellvertreter Reinhart Rohr als Spitzenkandidaten in den Wahlkampf. Rohr stellte im Wahlkampf den Anspruch auf das Amt des Landeshauptmanns und stelle als Wahlziel das Erreichen des ersten Platzes auf. Inhaltlich setzte die SPÖ vor allem auf das Thema Arbeitsplätze. In seinen "5 Punkten für Kärnten" forderte Rohr als wichtigsten Punkt die Schaffung von Arbeitsplätzen vor Ort mit angemessener Bezahlung. In den weiteren Punkten setzte die SPÖ auf die Förderung von Jugendlichen im Bereich Arbeit und Ausbildung, der Forderung nach leistbarem Wohnen und Leben, der Sicherung der Pensionen und der Gesundheitsvorsorge.
Dr. Josef Martinz – Österreichische Volkspartei (ÖVP)
Die ÖVP trat unter dem Listennamen Dr. Josef Martinz – Österreichische Volkspartei an und stellte als Spitzenkandidaten Landesrat und Landesparteiobmann Josef Martinz auf. Nach den schweren Verlusten bei der Landtagswahl 2004 nannte Martinz als Wahlziel, stärkster Gewinner zu werden und das Finanzressort zu übernehmen. Zum Wahlkampfschluss rechnete Martinz mit 15 % der Stimmen, einen persönlichen Erfolg sah er, „wenn ein Plus vorne“ sei. Die wichtigsten Wahlkampfthemen der ÖVP waren die Bereiche Verwaltungsreform, Zukunftsfonds und Gratis-Kindergarten.
Die Grünen – Die Grüne Alternative Kärnten (GRÜNE)
Die Grünen traten bei der Landtagswahl 2009 als Die Grünen – Die Grüne Alternative Kärnten an. Spitzenkandidat bei der Landtagswahl war Rolf Holub, der als einziger Spitzenkandidat der vorangegangenen Landtagswahl auch 2009 antrat. Holub setzte in seinem Wahlkampf vor allem auf das Thema Kontrolle sowie die Schaffung eines energieautarken Kärntens. Als Wahlziel nannte Holub das Erreichen des dritten Landtagsmandats. Weitere Themen der Grünen im Wahlprogramm für die Landtagswahl 2009 waren der Umwelt- und Naturschutz, der Ausbau des öffentlichen Verkehrs, die Förderung von Bildung, Frauen und Jugendlichen sowie die Einführung der Grundsicherung. In dem vor der Landtagswahl entbrannten Streit um die Wiederkandidatur Johannes Voggenhubers stellte sich Holub hinter den langjährigen EU-Parlamentarier, der bei der Listenerstellung der Grünen nicht mehr auf den ersten Listenplatz gewählt worden war. Holub präferierte in der Folge die von Voggenhuber zunächst ausgeschlossene Kandidatur auf einem hinteren Listenplatz, der vom Bundesvorstand der Grünen jedoch nicht akzeptiert wurde.
Freiheitliche Partei Österreichs – FPÖ (FPÖ)
Die FPÖ kandidierte mit Mario Canori als Spitzenkandidaten. Canori war zuvor Mitglied des BZÖ gewesen und war von Bundesparteiobmann Heinz-Christian Strache zum Wahlkampfauftakt präsentiert worden. Canori trat mit dem Wahlziel an, 10 bis 11 % der Stimmen und damit einen Sitz in der Landesregierung zu erreichen. Als großes Ziel nannte Canori die Wiedervereinigung mit dem BZÖ. Als Wunschkoalition nannte Canori eine Zusammenarbeit mit dem BZÖ und, falls diese beide Parteien keine Mehrheit besäßen, eine zusätzliche Einbindung der ÖVP. Eines der dezidierten Wahlziele lautete demnach die Verhinderung einer Koalition von SPÖ und ÖVP. Für ihre Plakatserie wählte die FPÖ die Bereiche Armutsbekämpfung, Schaffung von Arbeitsplätzen und die Stärkung der Wirtschaft.
Weitere Parteien
Die Kommunistische Partei Österreichs (KPÖ) kandidierte ebenfalls. Darüber hinaus traten die Liste Stark (STARK) und die Gaddafi Partei Österreichs – Die Weiße Partei (GPÖ) bei den Wahlen an, beide jedoch nur im Wahlkreis Klagenfurt.
Wahlkampfbudgets
Für das BZÖ gab Wahlkampfleiter Stefan Petzner keine Höhe des Wahlkampfbudgets preis. Er begründete seinen Schritt damit, dass andere Parteien auch keine Angaben zum Wahlkampfbudget machen würden. Auch SPÖ und ÖVP veröffentlichten keine Angaben zu ihren Wahlkampfbudgets. Die Grünen investierten nach eigenen Angaben rund 350.000 Euro in den Landtags- und Gemeinderatswahlkampf und begründeten zugleich ihren späten Wahlkampfauftakt mit dem eingeschränkten Budget. Die FPÖ steckte wiederum rund 700.000 Euro in den Wahlkampf.
Umfragen
In den Umfragen lagen BZÖ und SPÖ zuletzt gleichauf, wobei auf Grund der Schwankungsbreite die Meinungsforscher nicht festlegen wollten, welche Partei als stimmenstärkste Partei aus den Wahlen hervorgehen würde. Eine von der Kleinen Zeitung veröffentlichte Umfrage des Meinungsforschungsinstituts Peter Hajek sah das BZÖ drei Wochen vor der Wahl bei 38 % und die SPÖ bei 36 %. Die vom Meinungsforschungsinstitut SORA für die Kronen Zeitung erhobene Umfrage errechnete hingegen die SPÖ mit 41 % vor dem BZÖ mit 38 Prozent. Für die ÖVP gaben die beiden Umfragen einen Stimmenanteil von 12 % bzw. 10 % an, den Grünen wurden von Hajek 7 % und von SORA 6 % prognostiziert. Während die FPÖ bei Hajek mit 5 % den Einzug in den Landtag schaffen würde, sah SORA Canori mit nur 3 % scheitern.
Nach der Wahl versuchten die Meinungsforscher die teilweise stark abweichenden Umfragen mit einem Kärntner-Bradley-Effekt zu erklären.
Gesamtergebnis
Folgen
Nach der Wahl kam es zu einer Koalition zwischen BZÖ und ÖVP unter Landeshauptmann Gerhard Dörfler (BZÖ). Im Dezember 2009 spalteten sich die Freiheitlichen in Kärnten vom BZÖ ab und fungierten seither als selbstständige Partei (FPK), die die Koalition mit der ÖVP fortsetzte. Nach Korruptionsskandalen und Ermittlungen gegen Mitglieder der Landesregierung wurden – nach anfänglicher Blockade durch die FPK – vorzeitige Neuwahlen ausgerufen.
Weblinks
Landesstelle für Statistik: Detaillierte Ergebnisse (pdf, 85 Seiten)
Einzelnachweise
2009
Karnten Landtag
09, Karnten
| 17,869
|
https://it.wikipedia.org/wiki/Love%20and%20My%20Best%20Friend
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Love and My Best Friend
|
https://it.wikipedia.org/w/index.php?title=Love and My Best Friend&action=history
|
Italian
|
Spoken
| 32
| 56
|
Love and My Best Friend è un brano della cantante statunitense Janet Jackson estratto come singolo nel 1983 dal suo primo album in studio, Janet Jackson.
Tracce
Versioni ufficiali
Note
Collegamenti esterni
| 5,249
|
https://stackoverflow.com/questions/2379239
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,010
|
Stack Exchange
|
Andreas Rejbrand, Daniel Okwir, Denyy Pratama, IceCold, Prradep, Tyzak, Vijay Kumar, Wolf, amol kurhade, https://stackoverflow.com/users/231177, https://stackoverflow.com/users/282848, https://stackoverflow.com/users/2932052, https://stackoverflow.com/users/46207, https://stackoverflow.com/users/4836480, https://stackoverflow.com/users/4836481, https://stackoverflow.com/users/4836482, https://stackoverflow.com/users/4836511, https://stackoverflow.com/users/4836512, https://stackoverflow.com/users/4836531, mayur nemade
|
English
|
Spoken
| 410
| 817
|
Delphi and enum
Does Delphi have an analog of enum in C?
http://www.delphibasics.co.uk/Article.asp?Name=Sets
I don't know why everyone is linking to the DelphiBasics.co.uk site's article on enumerations, when the official documentation is available. Always prefer the official documentation: http://docwiki.embarcadero.com/RADStudio/Rio/en/Simple_Types_(Delphi)#Enumerated_Types
@AndreasRejbrand I think this is because the official documentation was not accessible at the time.
As a general note: Delphi always had better support for types, then C.
Yes, Delphi has the following enumerated type construction:
type
TDigits = (dgOne, dgTwo, dgThree <etc>);
Also, like in C, each symbol of an enumerated type may have
a specified value, like this:
type
TDigits = (dgOne = 1, dgTwo, dgThree <etc>);
It should be added that the constants automatically get incremented (in relation to the direct predecessor) if there's no explicit value specified.
Yes. Check out the first portion of Delphi Basics: Enumerations, SubRanges, and Sets.
I don't know why everyone is linking to the DelphiBasics.co.uk site's article on enumerations, when the official documentation is available. Always prefer the official documentation: http://docwiki.embarcadero.com/RADStudio/Rio/en/Simple_Types_(Delphi)#Enumerated_Types
Have a look at
Enumerations, SubRanges and Sets
I don't know why everyone is linking to the DelphiBasics.co.uk site's article on enumerations, when the official documentation is available. Always prefer the official documentation: http://docwiki.embarcadero.com/RADStudio/Rio/en/Simple_Types_(Delphi)#Enumerated_Types
In addition to the positive responses that are focused on the parallels, there are
Some restrictions:
1. Anonymous enumerations are not supported in Delphi.
So you have to translate
enum { SOME_CONSTANT = 42 };
into
const
SOME_CONSTANT = 42
… which is, by the way, a better wording for your actual intent. But unfortunately, this can be translated back into something different. At least C++Builder 6 translates it like this in the auto-generated *.hpp file:
static const Shortint SOME_CONSTANT = 0x2A;
2. Explicit enum values were added with Delphi 6.
The feature of explicitly adding values to enumerators was introduced with Delphi 6. So you have to switch to normal constants, see this answer to How to create an enum with explicit values in Delphi 5 for more.
3. Finally, a restriction of C:
In C, enumerations are just compile-time constants that are implicitly converted into int as needed. This is basically where the support ends. Delphi has a stronger typing but provides information about the valid range and also iteration, see this snippet:
procedure TForm1.Button1Click(Sender: TObject);
type
TMyEnum = (meOne, meTwo, meThree);
var
v: TMyEnum;
txt: String;
begin
for v := Low(TMyEnum) to High(TMyEnum) do
txt := txt + IntToStr(Integer(v)) + ' ';
ShowMessage(txt)
end;
| 13,826
|
https://arz.wikipedia.org/wiki/%D8%AC%D9%88%D9%86%20%D8%A7%D9%89.%20%D9%87%D8%A7%D9%86%D9%83%D9%88%D9%83
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
جون اى. هانكوك
|
https://arz.wikipedia.org/w/index.php?title=جون اى. هانكوك&action=history
|
Egyptian Arabic
|
Spoken
| 48
| 137
|
جون اى. هانكوك كان سياسى من امريكا.
حياته
جون اى. هانكوك من مواليد يوم 23 مارس 1903, مات فى 23 يونيه 1982.
الحياه العمليه
سياسيا كان عضو فى الحزب الجمهورى.
اشتغل فى مونبلييه, فيرمونت.
المناصب
Speaker of the Vermont House of Representatives
لينكات برانيه
مصادر
سياسيين
سياسيين امريكان
| 3,475
|
https://oc.wikipedia.org/wiki/Soulosse-sous-Saint-%C3%89lophe
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Soulosse-sous-Saint-Élophe
|
https://oc.wikipedia.org/w/index.php?title=Soulosse-sous-Saint-Élophe&action=history
|
Occitan
|
Spoken
| 42
| 115
|
Soulosse-sous-Saint-Élophe es una comuna francesa, situada dins lo departament dels Vòges e la region del Grand Èst, ancianament de Lorena.
Geografia
Comunas vesinas
Istòria
Administracion
Demografia
Luòcs e monuments
Personalitats ligadas amb la comuna
Véser tanben
Ligams extèrnes
Nòtas
Comuna dels Vòges
| 35,711
|
https://ar.wikipedia.org/wiki/%D8%AC%D9%85%D8%B9%D9%8A%D8%A9%20%D9%83%D9%8A%D9%81%D9%83%D9%8A%D9%81
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
جمعية كيفكيف
|
https://ar.wikipedia.org/w/index.php?title=جمعية كيفكيف&action=history
|
Arabic
|
Spoken
| 115
| 374
|
جمعية كيف كيف أو كيفكيف وتعني (سواسية بالدارجة المغربية) هو تنظيم إل جي بي تي مقره بالعاصمة الإسبانية مدريد. انشأ أواخر 2004 لمواجهة التمييز اللاحق بالمثليين في المغرب. وتركز الجمعية على الدعوة لإلغاء المادة 489 من قانون العقوبات المغربي، التي تُستخدم لتجرّيم العلاقات المثلية. وتعمل المجموعة وهي مؤسسة غير هادفة لربح على تشجيع التدعيم الذاتي وتوفير المعلومات وتصحيح المفاهيم وخلق حيز آمن للمشاركة والتفاعل في مجتمع المثليين والمثليات ومزدوجي التوجه الجنسي والمتحولين جنسياً (الإل جي بي تي).
مراجع
وصلات خارجية
الموقع الرسمي لمجموعة كيفكيف
المثلية في المغرب
جمعيات تأييد سياسي للمثليين في المغرب
منظمات أسست في 2005
منظمات مقرها في المغرب
نواد وجمعيات في المغرب
نوع الجنس
هوية وتوجه جنسي
ثقافة مثليون في الوطن العربي
| 31,906
|
IWAoAq6sz8w_1
|
Youtube-Commons
|
Open Web
|
CC-By
| null |
The Great Train Cyber Robbery
|
None
|
English
|
Spoken
| 2,480
| 2,925
|
Okay. It's my very great pleasure to introduce to you our next talk. I think industrial security has been a lot of has been in the news a lot in the last year, and I'm very curious what our next speakers are going to have to say about that and especially in the context of railways. So, please welcome Sergei Alex and Gleb with the next talk, The Great Train Cyber Robbery. Hello, Congress. It's a great pleasure to see you again. As usual, the only frontman for SCADA strange graph team who for last five years trying to save humanity from industrial disaster and to keep a purity of essence. So, please keep your big hands for all people who support us. Just not for journalists. This is SCADA strange laugh team talk and mistake by joke all our responsibilities. It's not related to our employers. So, railways. Railways is one of the biggest artificial system built by humanity. It takes a thousand and thousand kilometers all around the globe on different continents and my personal trip railroad trip when I was a student take more than 9,000 of kilometers and six days. Maybe because I was young and have a lot of time, but still even now I prefer to travel by train because on airplanes you see the earth from the skies. When you train, you can observe, connect with people with this land. But in our Hacker vision, most important question is how it's work because it's always interesting to understand how work in this case railways. What are two important words in railway universe is the signals and switches. Signals allow to train operators to train drivers to understand correct speed. Should he speed up or stop or slow down and switches obviously allow to change direction and move train from one track to another. Many years ago switches and signals operated by human manually. So, if you want to move train in different direction, you must change switch by your hands. But about maybe 100 years ago, modern system called interlocking was invented. Interlocking is a system which calculate dependencies between train location, signals and switches position to understand can train go in this direction or is prohibited. So, if it see conflict rotors when routes when train can collide, it's prohibited this situation by at first physical locks, which is interlocking. It looks like steampunk picture, but still physical interlocking works. For instance, in New York City transit, you can find what some of stations still operated by manual interlocking machine. Very important point related to railway is way to understand position of the train. There are a lot of different way to do it now in modern world with always high speed train, where GPS tracking, GLONASS tracking, but track circuits still very widely adopted. What is track circuit? In this idea, we use rails as wires and transfer power into rails. Sometimes it's DC, sometimes it's AC with modulation. By the way, signal relay accept with signal and if it's okay, it's open to clear light to green. If we have a train on the rails when it's kind of a little short circuit, and relays energize it and train switches to stop signal. So, now we're speaking about relays. After physical interlocking, most of railway automation system was built on the relays. On special little relays, which built with a lot of gold, which can operate in wide range of temperatures. And what's most important, vital relays are gravity operated devices. But nobody know what is gravity. That is why I think nobody know how vital relays are working and it's working by magic and that is why we should trust it. By the way, for me, relay room on railway station is a place where students are about to get inspiration for their soundtrack. Because you can sit here for hours and listen to this music. Okay, this is old school. But today things changed and we have a lot of automation system, computer-based system on the locomotive, on the way station, on the station, on way side. It's a traction motor control, computer-based interlocking, computerized ticketing system, et cetera, et cetera, et cetera. Let's discuss in details how it works. I want to give you an example about Eurostar train, which name it one of the most smart train in the world, because it has one, two, three, five, seven automated system on the board for France, for Great Britain, for Belgium, and generic European train control system. But let's stop for a second and check with highlighted reactor protection system on the board of Eurostar train. I hope this is typo, because I'm not ready to speak about nuclear train at the moment. Switch on the mic. Yep. Hello. So the locomotives, they built from several vital systems, like the one that allow them to move, to stop, to say the driver about the situation on the road, and most importantly, the train protection system that can somehow react and prevent several some accidents. All these subsystems are interconnected. So for example, traction system won't mess with braking, or in case of some accidents, the train protection can stop the train. The bummer is you can't find anything to conduct security research on the internet, publicly available. And this is true for all railroad software. But if you try hard enough, so let's speak, for example, about one system that's actually a train protection system called Sebas. The 10 year old version of its Sebas 32 is very, very widespread. And the newer one is Sebas PN is very new and is still a catch. And some of us will catch it more than others. So let's look at how this system was updated. And just by looking at it, we can see a lot of things, like they stopped using some proprietary operating system, and it's a good news because most of the time homegrown operating systems tend to be disastrous. They, in this system, they don't have hardware controllers. They have PC based stimulation called VINAC RTX. They have new modern, well, not new, not modern, but unified transporters like Prefinet. And nowadays they use very widespread CPU architectures like X86 and PowerPC. And it's a way to ease the job done by reverse engineers. So when you read a lot of manuals and documents on the internet, and you know from which subsystems some locomotive components are built, you can actually probably find something on the internet. We are speaking about VINAC RTX PC based controllers. But it's not the time to talk about it. But still we can talk about the internals of the system. And this is actually what tell us a lot of things, not vulnerabilities but weaknesses. Like if you want to control the the controller to stop it, to shut down, to run, or anything else. You don't need authentication and you don't see any kind of industrial protocols. It's just XML over HTTP. And it's easy to repeat and easy to build your own tools to control them. And if you look deeper, all these things are self-written like HTTP server and XML parsers. And I believe you can guess what this means. The next logical step would be to talk about how can we reach those systems in real world. But we don't know and we don't want anybody to know about this. So let's continue our saga and switch to computer based interlocking. The goal of computer based interlocking is to help to manage route through the station. And if we try to analyze it from other computer system we can find the following important part of computer based interlocking is a yard master workstation. It's like a human machine interface in ICS environment. It's just a PC with special software on the top. And the second important part, this is integration gateways which helps to connect sometimes wirelessly to different stations or to centralize the traffic control system. Most important part of computer based interlocking is a central processing unit which process all dependencies like we saw in the previous pictures with walks. Now it's processed by computers. And object controllers like POCs in our SCADA environment which transfer management command directly to wayside devices to switch the switch or to change the light of the light. Requirements for computer based interlocking interlocking is very formal and in different countries you can find these requirements as a state law or as a law of different railways companies. By the way, because it's veto component for safety, for traffic safety, this requirement is fixed and all interlocking system must fit such requirements. So, when we're speaking about security, it's very important to build correct threat model because you know when we discuss computer security people mostly discuss integrity, availability, confidentiality on information but this does not work in industrial world, it does not work for computer based interlocking. From our point of view, there are three levels of threats. First level related to safety or cyber physical threats allows to attacker to create a disaster. Second level, it's economic, economical threats which allow to attackers to impact threat efficiency to you know to impact your revenue as a railroad company. And low level is reliability when you can impact system but with just add additional work for engineers who support this system. Sometimes colleagues asking me what is cyber physical threats? For me, I don't have a clear definition but for me the threats which can be done in cyber world but impact something in real environment like this. Always funny on the pictures in the Twitter but let me explain by example what is conflict routes or what is a less restrictive signal light. This is example of conflict route. Less restrictive signal light but this is Lego toys. Let's check it how it works in real life. It's not such funny. Switching is in correct position and even if driver understand the situation in trying to stop it's impossible because train very heavy. So let's discuss attack vectors gain computer based interlocking to make appropriate model. First level it's attacks gain work station which can be easily accomplished by security physical security bypass or by social engineering because it's not very hard to force somebody to plug USB drive into work station. Second level of attack it's attacks gains integration gateways against wireless and wired network devices which connects computer based interlocking to rest of the world. And other attack vectors also related to communication to communication between yard master work station and CPU communication between CPU and object controllers. And sometimes even related to communication between object controller and way side devices because this situation when object controllers communicate with way side devices or wireless link so if you can intercept it or make amends the middle attack you can control switches by yourself. So I will give you several examples. All examples are from Google. It's not related for any particular assessment we did in the past. First physical security. It's actual pictures I guess and it looks like actual pictures because during our assessment physical security is terrible. In most cases you can say okay guys I need to check your system ABC XYZ pass to the station and get access to work station or a service. Password protection second picture from movie documentary movie about Great Britain railway automation system. The main challenge here to guess work station name which also you're watching you see all way six something but I think net bills responses can help here. All software it's everywhere it's again from Google. It's actual use new equipment and system approval certificate which allows to use system which runs on the windows nt4 service park six and above and this system managed track guards and this is flexible safety processor but about safety most of railway system built with redundancy in mind. It's used several CPUs sometimes three sometimes four sometimes even eight which runs different same but the different programs sometimes built by different team of engineers and some kind of majority system which compare results and trying to understand is where any problem with computation but in practice it's mean if you have a root access to computer basically you're working you need to patch several location and memory not only one. Hello again. So as Sergey said previously in old days we had this steampunk like interlocking but and the most of the complexity of building them was in crafting building and nowadays it's about how to create safe system. So by saying we want to have a safe interlocking with women three things like trains should not collide should not derail or trains should not hit people and they are doing this by use of different formal methods so to mathematically prove that these safety critical systems are really safe. I won't tell you about formal methods this is a topic for a separate talk but in short we are talking about creating a set of specifications with requirements and a model of our process and the point is to prove that our model satisfies these requirements. We have a lot of the world have a lot of different instruments like PMET, FNB, ProverCom and so on and all those systems all of those systems are used by industrial companies to make safety critical systems and we will talk about BMET it that is very widespread not only for you know space rockets airplanes and trains but also for vending machines and traffic lights. There is a development environment called Atelier B that allows us to create those specifications and models and later on to prove that we are safe. This development environment also have translators from the models that you created two different languages like C, C++ and other so you can later integrate them into your solution. We are not trying to say here that the math is wrong with Atelier B or the BMET itself but we are trying to show how human developer can create wrong specifications and this can create different vulnerabilities like memory management and this is a part of slides from one of the developer of Atelier B where they say that they can cope with all of those problems. So we took Atelier B and created a very small project it's called bad index it have an array and one operation that tries to access an item in the array and as you can see there is no boundary checking in the code and all of the green circles to the left they say that all type checking was done correctly that we generated proof obligations we proved everything so kind of we are safe.
| 10,991
|
https://stackoverflow.com/questions/56428327
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
English
|
Spoken
| 93
| 157
|
Module was not compiled for testing @testable import error
The build of ColiseuPlayer using Carthage is failing with error: module 'ColiseuPlayer' was not compiled for testing @testable import ColiseuPlayer. The build is working if you build it directly from Xcode IDE. Any clue?
You can see the error by checking out ColiseuPlayer Release-1.0.0 branch and try to build using Carthage like carthage build --no-skip-current.
I found out what was wrong.
Just turn off the "Run" flag from the Target:
Carthage builds the Release configuration with ENABLE_TESTABILITY=false which causes tests target build to fail.
| 44,790
|
|
https://da.wikipedia.org/wiki/Spillemanden%20-%20en%20film%20om%20Karl%20Skaarup
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Spillemanden - en film om Karl Skaarup
|
https://da.wikipedia.org/w/index.php?title=Spillemanden - en film om Karl Skaarup&action=history
|
Danish
|
Spoken
| 93
| 197
|
Spillemanden - en film om Karl Skaarup er en portrætfilm instrueret af Jørgen Vestergaard efter eget manuskript.
Handling
Karl Skaarup i Thy spillede til bal første gang som 4-årig. Nu er han 88 år, og han spiller stadigvæk til bal og giver koncerter. Alene eller sammen med meget yngre musikere, hvoraf nogle er uddannede på Det Fynske Musikkonservatorium. En af dem er violinspilleren Kristian Bugge. Filmen fastholder Karl Skaarups vigtige indsats i dansk folkemusik som inspirationskilde for nye generationer af spillemænd og dansere.
Referencer
Eksterne henvisninger
Danske film fra 2012
Portrætfilm fra Danmark
| 42,463
|
https://stackoverflow.com/questions/11087917
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,012
|
Stack Exchange
|
Allon Guralnek, Dai, Lord of Scripts, NPSF3000, Peter Mortensen, https://stackoverflow.com/users/1200667, https://stackoverflow.com/users/149265, https://stackoverflow.com/users/159145, https://stackoverflow.com/users/63550, https://stackoverflow.com/users/836713
|
English
|
Spoken
| 457
| 816
|
Convert float to byte array in C# NETMF (NETMF doesn't have BitConverter)
I have a C# NETMF project, and I need to convert a float to a byte[] and vice versa. The problem is, NETMF doesn't have System.BitConverter like .NET, so I can't really find any way of doing it without going low level and doing it myself.
I have always programmed high-level (Java, Python, C#, etc.) and have only dabbled in C++, so I don't really know how to turn a float into a byte array.
What would some sample code of a boilerplate function for doing this look like?
Possible duplicate of Converting float to 'byte[4]' and back to 'float' in NETMF.
The StructLayoutAttribute is supported by the .NET Micro Framework, so you could use a C++ style union to get the bytes of a float (and the other way around too):
[StructLayout(LayoutKind.Explicit)]
public struct FloatUnion
{
[FieldOffset(0)] public float Value;
[FieldOffset(0)] public byte Byte0;
[FieldOffset(1)] public byte Byte1;
[FieldOffset(2)] public byte Byte2;
[FieldOffset(3)] public byte Byte3;
public byte[] ToByteArray()
{
return new[] { Byte0, Byte1, Byte2, Byte3 };
}
public static byte[] FloatToBytes(float value)
{
return new FloatUnion { Value = value }.ToByteArray();
}
public static float BytesToFloat(byte[] bytes)
{
if (bytes.Length != 4) throw new ArgumentException("You must provide four bytes.");
return new FloatUnion { Byte0 = bytes[0], Byte1 = bytes[1], Byte2 = bytes[2], Byte3 = bytes[3] }.Value;
}
}
With the note that this may need modification to take into account endianness.
@NPSF3000: Indeed. Fortunately this can be easily adjusted.
@AllonGuralnek FieldOffset is not present in the .NETMF (System.Runtime.InteropServices)
@LordofScripts: Yes, it seems so.
Unlike the integers (Int32, Byte, UInt64, etc) where each value is easily determined from the status of each bit in the integer's bytes, there is no intuitive representation of a floating-point number in binary, so the IEEE defined a specification for floating point numbers: IEEE-754. Suffice to say, it isn't simple, but following the rules in the specification will allow you to serialize a .NET System.Single and System.Double instance to a series of bytes.
The desktop .NET Framework actually cheats here. The GetBytes(Single) function actually just casts the Single instance to an Int32 then copies the raw bytes into a 4-byte array using raw pointers. However you can't take this useful shortcut because the micro framework does not support pointers - even worse: the MF doesn't include BinaryWriter either. You'll have to roll your own IEEE-754 serializer I'm afraid.
Use a BinaryWriter on top of a MemoryStream.
BinaryWriter isn't included the Micro Framework ( http://msdn.microsoft.com/en-us/library/system.io.binarywriter.aspx )
Even so, the BinaryWriter serializes Single using pointers and unsafe code too - I don't think that would work even if the BinaryWriter class was copied over using the Portable Class Library feature.
| 34,561
|
https://stackoverflow.com/questions/51521837
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
Dean, GotoFinal, Johannes Kuhn, KeLsTaR, M. Deinum, Ruben Helsloot, https://stackoverflow.com/users/2696260, https://stackoverflow.com/users/3155661, https://stackoverflow.com/users/4378853, https://stackoverflow.com/users/5015356, https://stackoverflow.com/users/845414, https://stackoverflow.com/users/9080066
|
English
|
Spoken
| 469
| 817
|
Spring ReflectionTestUtils does not set static final field
I have a static final field like this:
class SomeClass {
static final String CONST = "oldValue";
}
and i'm trying to change that field in test like this:
ReflectionTestUtils.setField(SomeClass.class, "CONST", "newValue");
but it doesn't work and says
java.lang.IllegalStateException: Could not access method: Can not set static final java.lang.String field
Because you cannot change it. It is static you cannot reset static fields.
As mentioned you can not change a final static field with ReflectionTestUtils. Why do you wish to change this field though. Maybe you should rethink your test design to not require changing this field, because you shouldn't need to change a constant for a test.
@M.Deinum ok, but then for what reason they created setField method with only class and field name, and set a javadoc on top of it saying "Set the static field with the given name"
@Dean i am strongly needed to change this field to mock and it can't be redesigned
You simply cannot change static final fields. Those are constants and treated as such by the compiler. The actual value of that variable will be inlined into places that actually use it. So even if you would change it, the change wouldn’t be reflected. It cannot be done because the language doesn’t allow you to do so. You want something that is forbidden by the language/specificitation. There is nothing that Spring can do here to help you with.
@M.Deinum it is only a constant if it is literal too. static final X = doNothingAndReturn("X") would not be a constant and could be changed using a bit of reflections
@GotoFinal No, it is treated as constant by the Just-In-Time compiler. If the JIT did already inline it, you can't change it anymore.
It is highly recommended not to change a static final value.
But if you really need it, you can use the following code. (Only work before(include) java-8)
static void setFinalStatic(Field field, Object newValue) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
field.set(null, newValue);
}
EDIT
Also, notice that you can't change a compile-period constant. Such as this HW
public static final String HW = "Hello World".
It will be inline when compiled.
On java 9+ you can use unsafe for that
This works for me. E.g we have an object of the following class
public class LogExample {
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
}
Then in the unit tests we could write like this. I used org.powermock.reflect.Whitebox and its setInternalState method:
import static org.powermock.reflect.Whitebox.setInternalState;
...
Logger log = mock(Logger.class);
setInternalState(logExample.getClass(), "log", log);
...
Hi, please try to make your answer more accessible by using code formatting! Also, add a little more explanation either through comments in your code or a surrounding text
| 44,495
|
https://de.wikipedia.org/wiki/Ala%20II%20Ulpia%20Auriana
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Ala II Ulpia Auriana
|
https://de.wikipedia.org/w/index.php?title=Ala II Ulpia Auriana&action=history
|
German
|
Spoken
| 315
| 642
|
Die Ala II Ulpia Auriana () war eine römische Auxiliareinheit. Sie ist durch Inschriften, Arrians Werk ἔκταξις κατ Ἀλανῶν und die Notitia dignitatum belegt. In einer Inschrift wird sie als Ala II Auriana bezeichnet, in der Notitia dignitatum als Ala Auriana.
Namensbestandteile
Ala: Die Ala war eine Reitereinheit der Auxiliartruppen in der römischen Armee.
II: Die römische Zahl steht für die Ordnungszahl die zweite ( secunda). Daher wird der Name dieser Militäreinheit als Ala secunda .. ausgesprochen.
Ulpia: die Ulpische. Die Ehrenbezeichnung bezieht sich auf Kaiser Trajan, dessen vollständiger Name Marcus Ulpius Traianus lautet.
Auriana: des Aurius.
Da es keine Hinweise auf den Namenszusatz milliaria (1000 Mann) gibt, war die Einheit eine Ala quingenaria. Die Sollstärke der Ala lag bei 480 Mann, bestehend aus 16 Turmae mit jeweils 30 Reitern.
Geschichte
Die Ala wurde vermutlich durch Trajan (98–117) aufgestellt; wahrscheinlich wurde die neue Einheit um einen Kern von Angehörigen der Ala I Hispanorum Auriana gebildet.
Zu einem unbestimmten Zeitpunkt wurde die Einheit in die Provinz Cappadocia verlegt, vermutlich aufgrund des Partherkriegs von Trajan. Die Einheit war Teil der Streitkräfte, die Arrian für seinen Feldzug gegen die Alanen (ἔκταξις κατ Ἀλανῶν) um 135 n. Chr. mobilisierte. Arrian erwähnt in seinem Bericht eine Einheit, die er als οἱ τῆς εἴλης ᾗτινι Αὐριανοὶ ὄνομα bezeichnet.
Letztmals erwähnt wird die Einheit in der Notitia dignitatum mit der Bezeichnung Ala Auriana für den Standort Dascusa. Sie war Teil der Truppen, die dem Oberkommando des Dux Armeniae unterstanden.
Standorte
Standorte der Ala in Cappadocia waren möglicherweise:
Angehörige der Ala
Folgende Angehörige der Ala sind bekannt:
Kommandeure
Marcus Ulpius Andromachus, ein Präfekt
Sonstige
Siehe auch
Literatur
Margaret M. Roxan: The Auxilia of the Roman Army raised in the Iberian Peninsula. Dissertation, 1973 Volume 1 (PDF) Volume 2 (PDF)
John E. H. Spaul: Ala². The Auxiliary Cavalry Units of the Pre-Diocletianic Imperial Roman Army. Nectoreca Press, Andover 1994, ISBN 0-9525062-0-3.
Anmerkungen
Einzelnachweise
Ala
| 21,836
|
https://eu.wikipedia.org/wiki/John%20Gilligan%20%28irlandar%20kriminala%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
John Gilligan (irlandar kriminala)
|
https://eu.wikipedia.org/w/index.php?title=John Gilligan (irlandar kriminala)&action=history
|
Basque
|
Spoken
| 51
| 172
|
John Gilligan (Dublin, 1952ko martxoaren 29a) irlandar krimen antolatuko burua eta droga-trafikatzaile bat da.
2001ean haxix erretxina kopuru komentzialekin trafikatzeagatik 28 urteko espetxealdira zigortua izan zen. Apelazioaren ondoren espetxealdia 20 urtera murriztu zen.
Veronica Guerin irlandar kazetariaren hilketarengatik ere ikertua izan da.
Ikus gainera
Irlandar mafia
Irlandako mafiakideak
Irlandako droga-trafikatzaileak
Dublindarrak
| 13,988
|
https://japanese.stackexchange.com/questions/43526
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
English
|
Spoken
| 213
| 348
|
Where does the な used in な-adjectives come from?
な-adjectives are derived from nouns. This is similar to how の can be used to 'Adjective-ize' a noun. But while it's clear how の-adjectives work, and why the の is appended, what is the story for な-adjectives? How are they derived? Why is the な appended?
(I was surprised to see that I cannot find another thread that discusses this. Perhaps my search-fu is weak...)
The な used for adjectives has a clear historical derivation. This started as に, the adverbial particle, + あり, the classical terminal (sentence-ending) form of modern ある. に + あり then contracted to なり for the terminal form. If a な adjective came at the end of a sentence, in classical Japanese, it would end with なり, as in 山は静かなり。 You might still encounter this form from time to time in poetry.
Classical terminal あり had an attributive form (when modifying another noun) of ある. So に + ある contracted to なる, as in 静かなる山. Again, this form still appears in poetry, especially if the author is trying to evoke an old-fashioned or traditional feel.
As time passed, the なり terminal form disappeared, replaced with the modern だ・です, and the なる attributive form contracted even further into just な.
| 19,527
|
|
https://stackoverflow.com/questions/30278447
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
Crowcoder, https://stackoverflow.com/users/276469
|
English
|
Spoken
| 92
| 121
|
change a DataGrid (text) column into combobox ,nd fill it
i'm new at visual basic.net ,and i'm trying to build an application which contains a dataGrid View ,one of the columns should be a combobox (i fill it with some information existing in the dataBase using a function ), but still need to know how i can change the state of the columns (from text to combobox) nd how to fill all this combobox , thanks a lot guys
I have a blog post with links to sample projects that demonstrate this.
| 2,860
|
https://stackoverflow.com/questions/65661848
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021
|
Stack Exchange
|
Mohiuddin, U13-Forward, https://stackoverflow.com/users/14981069, https://stackoverflow.com/users/8106583, https://stackoverflow.com/users/8708364, wuerfelfreak
|
Danish
|
Spoken
| 290
| 712
|
Sorting a python list by frequency of their absolute difference
I have a list like,
lst=[[3,7],[4,9],[8,3],[1,5],[9,4],[4,5],[3,0],[2,7],[1,9]]
And then want to sort this list by the frequency of their absolute difference like below:
|3-7|=4, |4-9|=5, |8-3|=5, |1-5|=4, |9-4|=5, |4-5|=1, |3-0|=3, |2-7|=5, |1-9|=8,
Out put should be:
[[4,9],[8,3],[9,4],[2,7],[3,7],[1,5],[4,5],[3,0],[1,9]]
I am doing:
list.sort(key=self.SortByDifference,reverse=True)
def SortByDifference(self, element):
return abs(element[0]-element[1])
But, this return highest difference first.
I would like to sort by the frequency of the absolute difference, so instead of sorting by the highest difference, i.e. [5, 5, 4, 4, 4, 3, 2, 1], it would output [4, 4, 4, 5, 5, 3, 2, 1] because 4 appears more often.
Removing reverse=True could help.
@wuerfelfreak No he doesn't want to sort by the number, he wants to sort by the frequency of the number.
Yes you are right. Overread that. Thanks
Try creating a new list called newl, then sort the lst list by how many times the absolute difference appears in the newl:
lst=[[3,7],[4,9],[8,3],[1,5],[9,4],[4,5],[3,0],[2,7],[1,9]]
newl = [abs(x - y) for x, y in lst]
print(sorted(lst, key=lambda x: -newl.count(abs(x[0] - x[1]))))
Output:
[[4, 9], [8, 3], [9, 4], [2, 7], [3, 7], [1, 5], [4, 5], [3, 0], [1, 9]]
@Mohiuddin No problem, please accept and upvote if it works :-)
Could u explain the print statement so that I can extend my code? I am trying to split the list into sub-list based upon the same values(absolute difference)
@Mohiuddin Okay so inside the print statement I do a sorted function, which sorts the lst list, and I have a key argument. Which what's being declared to it is how it's gonna sort the list, it sorts by how many times the absolute difference of the two numbers in the list appear in newl.
| 38,866
|
https://en.wikipedia.org/wiki/Latin%20tenses%20in%20dependent%20clauses
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Latin tenses in dependent clauses
|
https://en.wikipedia.org/w/index.php?title=Latin tenses in dependent clauses&action=history
|
English
|
Spoken
| 1,017
| 1,527
|
In Latin, there are different modes of indicating past, present and future processes. There is the basic mode of free clauses and there are multiple dependent modes found exclusively in dependent clauses. In particular, there is the 'infinitive' mode for reported satetements and the 'subjunctive' mode for reported questions.
Tenses in 'infinitive' mode
In reports of statements or ideas and in statements of facts known by others, the subject is represented by an 'accusative' noun and the event is represented by an 'infinitive' verb or verb group. For this reason, the structure of a reported statement is known as 'accusative and infinitive'. Usually an 'infinitive' verb or verb group represents an event at relative time: the event is either future, present or past at the time of the reported statement. Often the verb of speaking, knowing, expecting or hoping is omitted, but can be recovered from the context of discourse or situation.
Secondary tense
Secondary future
'Infinitive' verb groups can represent an event that is future at the time of saying, knowing, expecting or hoping.
The 'active infinitive' mode is often realised by a simple accusative future participle. The 'passive infinitive' mode can be realised by the ' infinitive' paradigm of the perfect periphrasis, but this option is comparatively rare. There are three additional future infinitive periphrases for both active and passive/deponent verbs.
Secondary present
A 'present infinitive' verb represents an event that is present at the time of stating, perceiving or knowing.
Secondary past
For active verbs, A 'perfect infinitive' verb represents an event that is past at the time of stating, perceiving or knowing. Alternatively, the 'present infinitive' paradigms of the "habeō" perfect periphrasis can also represent a past event at the time of stating, stressing that the result is present at that time.
For passitve and deponent verbs, the relative past event is represented by either the 'present infinitive' paradigm of the perfect periphrasis or a simple accusative perfect participle.
When it comes to remembering (), a 'present infinitive' verb represents an event that is present at the time of perceiving, but past at the time of remembering.
Tertiary tense
Tertiary past
For both passive and deponent verbs, the ' infinitive' paradigm of the perfect periphrasis can be used in reported statements for an event that is past at the time of another event, which is future at the time of the statement ('that x would soon have done', 'that x will soon have done').
Occasionally a 'perfect infinitive' paradigm of the perfect periphrasis is found. While the perfect periphrasis with the 'present infinitive' auxiliary merely refers to an event which took place before the time of the reported statement (e.g. 'he reported that Marcellus had been killed'), the perfect periphrasis with 'perfect infinitive' auxiliary has two markers of past and it refers to an event prior to another event, which is also prior to the reported statement. Thus there are three times involved: the primary is the time of stating, the secondary is the time of another event, and the tertiary is the time of the event represented by the perfect periphrasis.
Just as a 'perfect indicative' verb can represent either a past event or the present result (e.g. 'he has died' = 'he is dead'), so the perfect periphrasis with the 'perfect infinitive' auxiliary often represent either a past-in-past event or present-in-past result at the time of the reported statement.
Tenses in 'subjunctive' mode
For acts of asking, wondering and hoping, events are represented in the 'subjunctive' mode in the reported locutions or ideas. Dependent clauses representing the cause of the dominant clause are also in the 'subjunctive' mode. This applies to multiple causal conjunctions such as the causal , the causal , the final /, the final and the final .
Secondary tenses
Secondary future
Secondary present
Secondary past
Tertiary tense
Tertiary past
In 'if' clauses within reported locutions, a 'present subjunctive' verb can represent a 'relative perfect' event at the time of another event, as long as that other event takes place after the time of the reported locution.
Expansive meanings
Tenses in 'subjunctive' mode for conditional clauses
The following unfulfillable wish also uses the double pluperfect subjunctive passive:
(Virgil)
'I wish she had never been seized by such love of warfare or attempted to provoke the Trojans!'
Imperfect subjunctive + pluperfect subjunctive:
(Cicero)
'I wish it had been true'
When the main verb is primary, an imperfect or pluperfect subjunctive in a clause that is already subordinate in the original sentence may often remain:
(Livy)
'tell us what you would have done if you had been censor?'
In other examples in reported speech, the subjunctive in the 'if' clause represents an original present subjunctive with potential meaning:
(Cicero)
'I believe that Pleasure, if she were to speak for herself, would give way to Dignity'
In some sentences, the pluperfect subjunctive is a reflection of an original imperfect indicative, as in the following example, where the original verbs would have been and :
(Livy)
'[he said] that they begged just one favour, that they should be not assigned lower ranks than those which they had held when they were on military service'
In other sentences, the pluperfect subjunctive is a transformation of a future perfect indicative, put into historic sequence. The original words of the following sentence would presumably have been 'if you do (will have done) otherwise, you will be doing Caesar a disservice':
(Cicero)
'he said that if the man were to do otherwise, he would be doing Caesar a disservice'
(Livy)
'at this critical moment in the battle, the propraetor vowed games to Jupiter, if he routed and slaughtered the enemies'
Tenses in 'subjunctive' mode for causal clauses
Verbs in subordinate clauses in indirect speech are also almost always in the subjunctive mood. This also applies to subordinate clauses when the indirect speech is only implied rather than explicit. Both of the following examples have the perfect subjunctive:
(Cicero)
'Caesar is pardoning me by means of a letter for the fact that I didn't come'
(Plautus)
'my mother is angry because I didn't return'
Latin grammar
References
| 27,748
|
https://stackoverflow.com/questions/4180055
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,010
|
Stack Exchange
|
Matt Roberts, OP Guy, PierBJX, PleaseStand, SimoneC, anxiety, fashare2015, https://stackoverflow.com/users/334121, https://stackoverflow.com/users/430775, https://stackoverflow.com/users/8802650, https://stackoverflow.com/users/8802651, https://stackoverflow.com/users/8802652, https://stackoverflow.com/users/8802794, https://stackoverflow.com/users/8803233, https://stackoverflow.com/users/8804432, workhard
|
English
|
Spoken
| 339
| 571
|
addEventListener that listens to the contents of an iframe
Background: I have written a bookmarklet (JavaScript) that appends an iframe to the current page you are viewing. This iframe's src attribute is pointing to a form back on my application.
Problem: I am trying to utilize addEventListener to detect if that form has been submitted. However, I don't seem to be able to access the elements within the iframe.
For example:
document.getElementById(remote_form_id).addEventListener("submit",afterSubmit,true)
does not work because the getElementByID call is returning null.
My current work-around is to add an event listener on the iframe to listen for a "load" action and then call an intermediary function that ups a counter because I know how many times the iframe will be loaded before I need to call afterSubmit().
document.getElementById(marklet_iframe_id).addEventListener("load",listenForSubmit,true)
function listenForSubmit(){
if (count==1){afterSubmit();}
count++;
}
Basically, I'm looking for a best practice cause this is a crap approach.
Although it doesn't work in IE, you may want to look at the postMessage method of the pages' window objects. It allows you to asynchronously send string data between windows, even when direct access would be forbidden by the same-origin policy.
That's an interesting approach. However, I'd rather have a bit of a work-around and accommodate for IE..
@anxiety: Actually, reading further, it seems that IE 8+ (not IE 7 or below) has support for postMessage (only between iframes, not between self-contained windows, but that part shouldn't be a problem for you).
You can do something like this:
var doc = document.getElementById(marklet_iframe_id).contentDocument;
var form = doc.getElementById(formId)
form.addEventListener("submit", afterSubmit, true)
This won't work if such access would violate the same-origin policy - if the two pages use different hostnames, port numbers, or protocols.
In my case, they are on two different hostnames.
Try the EasyXDM library which uses the best-available techniques in a given user's browser to achieve this. It also is "best practice-y" in that its goal is to send messages between windows, and it's up to those windows to handle the messages, which mimicks the postMessage functionality available in HTML5 browsers.
| 15,056
|
https://academia.stackexchange.com/questions/83688
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
Compass, https://academia.stackexchange.com/users/22013, https://academia.stackexchange.com/users/68093, peter
|
English
|
Spoken
| 513
| 670
|
Which tense to use when presenting my master thesis?
In a couple of weeks, I have to present my master thesis to both my professors (supervisors) and family and friends. After the title page, I immediately present the main novelty of my thesis (instead of first presenting a lot of "blablabla" about the literature and stuff).
What would be a suitable tense to do this?
For instance:
I found/ have found/find that [description of findings]
or
This thesis shows/has shown/showed that [description of findings]
I think you'll get the point. It is basically whether to use the present simple/ present perfect or past simple.
EDIT: My thesis is about the effects of unconventional monetary policy announcements by the Fed on European government bond markets. So w.r.t. to the comment of C26 below, it is something happened in the past. However, I also examined through which channels these announcements influence government bond markets in the eurozone. So this is more like a process; something that is most likely also true in the future (i.e. when these announcements will occur again).
From the two examples you've provided, I'm actually comfortable with both. Anything you did leading to your thesis is past tense, but anything your thesis demonstrates, i.e. your thesis shows that underwater basket weaving is still relevant (active finding, still valid in the present). Just putting it out there that trying to conform to a single tense can sometimes not feel quite right.
I think it really depends on what the research shows. If the research demonstrates a process that is ongoing, or straddles multiple timelines/periods, you can go with "the research shows that". However, if it is related to something that happened squarely in the past, you can use the past only.
I personally tend not to use the first person when discussing results of undertaken research, though I have seen it done in all the ways you describe. Really it comes down to what feels most natural and right to you as the author.
You are right about that it depends on the research. I will edit my OP with this information.
I recently completed and defended my MA thesis in psychology within the last couple months. I believe that mine was primarily in the "has shown/have found" tense (I apologize, it has been years since I have had to remember tense names.). The only exception was in my method section, where I wrote it all in the past tense ("We ran participants..."). I, personally, avoided the first person where possible as it just felt wrong to me, but I think that it is probably a personal choice, if you are the sole author.
I do not know if that helped. Good luck!
I would avoid the first person.
At the start of the thesis, use "This thesis shows that ..."
At the end of the thesis, in a summary, use "This thesis has shown that ...".
I do not think that the tense you use to describe the thesis depends on the time at which events described in the thesis occurred.
| 2,045
|
https://pa.wikipedia.org/wiki/%E0%A8%B0%E0%A9%8B%E0%A8%A1%E0%A9%87
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ਰੋਡੇ
|
https://pa.wikipedia.org/w/index.php?title=ਰੋਡੇ&action=history
|
Punjabi
|
Spoken
| 115
| 877
|
ਰੋਡੇ ਪੰਜਾਬ ਦਾ ਇੱਕ ਪਿੰਡ ਹੈ ਅਤੇ ਇਹ ਮੋਗਾ ਜ਼ਿਲੇ ਵਿੱਚ ਪੈਂਦਾ ਹੈ। ਇਹ ਪਿੰਡ ਬਾਘਾ ਪੁਰਾਣਾ-ਕੋਟਕਪੂਰਾ ਸੜਕ ਤੇ ਸਥਿਤ ਹੈ। ਲਗਪਗ 250 ਸਾਲ ਪਹਿਲਾਂ ਸਰਜਾ ਅਤੇ ਰਾਮੂ ਦੋ ਭਰਾਵਾਂ ਨੇ ਇਸ ਪਿੰਡ ਦੀ ਨੀਂਹ ਰੱਖੀ ਸੀ। ਇਸ ਪਿੰਡ ਨਾਲ ਸਬੰਧਤ ਵਿਅਕਤੀ ਜਰਨੈਲ ਸਿੰਘ ਭਿੰਡਰਾਂਵਾਲਾ, ਜਸਬੀਰ ਸਿੰਘ ਰੋਡੇ, ਅਜਮੇਰ ਰੋਡੇ, ਅਵਤਾਰ ਰੋਡੇ ਹਨ। ਇਸ ਪਿੰਡ ਵਿੱਚ ਸਥਿਤ ਸਰਕਾਰੀ ਤਕਨੀਕੀ ਕਾਲਜ ਵਿਦਿਆਰਥੀਆਂ ਨੂੰ ਤਕਨੀਕੀ ਸਿੱਖਿਆ ਦੇ ਕੇ ਪੇੰਡੂ ਵਿਦਿਆਰਥੀਆਂ ਦਾ ਜੀਵਨ ਪੱਧਰ ਉੱਚਾ ਕਰ ਰਿਹਾ ਹੈ।
ਇਸ ਪਿੰਡ ਅਧੀਨ ਦੋ ਸਰਕਾਰੀ ਕਾਲਜ ਗੁਰੂ ਨਾਨਕ ਕਾਲਜ ਜੀ ਟੀ ਬੀ ਗੜ ਅਤੇ ਸਰਕਾਰੀ ਬਹੁਤਕਨੀਕੀ ਕਾਲਜ ਜੀ ਟੀ ਬੀ ਗੜ ਪੈਂਦੇ ਹਨ ਜੋ ਕਿ ਪੇਂਡੂ ਵਿਦਿਆਰਥੀਆਂ ਦਾ ਮਾਨਸਿਕ ਪੱਧਰ ਉੱਚਾ ਚੁੱਕਣ ਵਿੱਚ ਬਹੁਤ ਸਹਾਇਕ ਸਿੱਧ ਹੋ ਰਹੇ ਹਨ
ਹਵਾਲੇ
| 12,337
|
https://ce.wikipedia.org/wiki/%D0%9A%D0%B0%D1%80%D0%B0%D0%B4%D0%B6%D0%B0%D0%B0%D1%85%D3%80%D0%BC%D0%B5%D1%82%20%28%D0%99%D0%B5%D0%BD%D0%B8%D1%88%D0%B5%D1%85%D3%80%D0%B8%D1%80%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
КараджаахӀмет (ЙенишехӀир)
|
https://ce.wikipedia.org/w/index.php?title=КараджаахӀмет (ЙенишехӀир)&action=history
|
Chechen
|
Spoken
| 40
| 179
|
КараджаахӀмет () — Туркойчоьнан Мармаран хӀордан регионан Бурса провинцин (ил) ЙенишехӀирнан кӀоштара эвла/микрокӀошт ().
Географи
Истори
Бахархой
Билгалдахарш
Хьажоргаш
Бурса провинцин нах беха меттигаш
Бурса провинцин микрокӀошташ
ЙенишехӀирнан микрокӀошташ
ЙенишехӀирнан кӀоштан нах беха меттигаш
Туркойчоьнан микрокӀошташ
Туркойчоьнан нах беха меттигаш
| 24,740
|
https://id.wikipedia.org/wiki/Rupiah%20%28disambiguasi%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Rupiah (disambiguasi)
|
https://id.wikipedia.org/w/index.php?title=Rupiah (disambiguasi)&action=history
|
Indonesian
|
Spoken
| 65
| 166
|
Rupiah, mata uang resmi Indonesia.
Rupiah juga dapat merujuk ke:
Rupiah Riau, mata uang yang sempat beredar di Kepulauan Riau, digabungkan dengan Rupiah pada 1964
Rupiah Irian Barat, mata uang yang sempat beredar di Papua Barat, digabungkan dengan Rupiah pada 1971
Rupiah Banda, tokoh Zambia
Rupiah, lagu karya Rhoma Irama.
Aku Cinta Rupiah, lagu karya Tonny Hawai, populer dinyanyikan oleh Cindy Cenora.
Lihat pula
Rupee
| 19,726
|
https://en.wikipedia.org/wiki/George%20Archibald%20%28jockey%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
George Archibald (jockey)
|
https://en.wikipedia.org/w/index.php?title=George Archibald (jockey)&action=history
|
English
|
Spoken
| 233
| 342
|
George William Archibald (1890 – April 5, 1927) was an American jockey. He rode the winning horse Meridian in the 1911 Kentucky Derby. He was also a Champion Jockey in Germany four times (1913-1916) where he rode for Baron Simon Alfred Oppenheim's Schlenderhan stable. He won the 1912 German St. Leger on Royal Blue, the 1913 German 2000 Guineas and Austrian Derby on Csardas and German Oaks and German St. Leger on Orchidee II and the 1914 German 2000 Guineas on Terminus and German Derby on Ariel. He moved to Spain where he won the Gran Premio de Madrid three times (1919,20,21). Archibald came to England in 1922 to take up retainer with Peter Gilpin at Clarehaven Stables in Newmarket. He won the 2000 Guineas Stakes with St Louis. He rode in the Epsom Derby for King George VI. His other good mounts included that year's leading 2 year old, Town Guard, and the Irish 2000 Guineas and Irish Derby winner, Spike Island. Further important winners included A. K. Macomber's Rose Prince in the Cesarewitch Handicap and a dead-heat in the Irish Derby abroad Zodiac in 1924. In all he rode one hundred and eighty winners in England. His best year was 1924, when he scored in fifty two races.
George Archibald died of heart failure on April 5, 1927.
References
1890 births
1927 deaths
American jockeys
British jockeys
Sportspeople from San Francisco
| 1,126
|
https://da.wikipedia.org/wiki/United%20States%20Navy%20SEALs
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
United States Navy SEALs
|
https://da.wikipedia.org/w/index.php?title=United States Navy SEALs&action=history
|
Danish
|
Spoken
| 361
| 824
|
Navy SEALs er en af den amerikanske flådes kommandosoldater. Det er en specialenhed, der blev oprettet i 1962 som en moderniseret udgave af Underwater Demolition Team (UDT). SEAL står for Sea, Air and Land, og enheden løser opgaver inden for ukonventionel krigsførelse, anti-terrorisme og opklaringsmissioner.
Efter bestået basisuddannelse (BUD/S) og efterfølgende SEAL Qualification Training (SQT) har medlemmerne lov til at bære mærket Special Warfare Badge. Det er et af de lettest genkendelige symboler for amerikanske specialstyrker og bæres normalt sammen med flådens faldskærmsvinger, der tildeles efter 10 faldskærmsspring.
BUD/S er et halvårs optagelseskursus, der kun kan søges af mænd. Frafaldet er stort. Som en del af kurset skal aspiranterne gennem den berygtede "helvedesuge" (Hell Week). Her træner aspiranterne basale evner inden for kampdykning, sprængningstjeneste og infanteritaktik. Efter BUD/S følger et faldskærmskursus i Fort Benning. Inden optagelse i et af korpsets teams, gennemgår aspiranterne det såkaldte SQT-kursus (SEAL Qualification Training) med træning i taktiske færdigheder som våbentræning, nærkamp, orientering, sprængningstjeneste, vinterkrigstjeneste og sanitetstjeneste.
For at ligne de tropper, de støtter, bruger Navy SEALs modificerede versioner af det amerikanske forsvars forskellige camouflageuniformer.
Navy SEALs på TV
Der er lavet film, spil og tv-serier om Navy SEALs og om korpsets missioner.
Film
SEAL Team Six: the Raid on Osama Bin Laden (2012).
SEAL Team 8: Behind Enemy Lines (2014).
Lone Survivor (2013).
Act of Valor (2012).
The Finest Hour (1991).
Navy SEALs (1990).
Captain Phillips (2013).
American Sniper (2014).
Spil
Tom Clancy's Rainbow Six: Siege.
Medal of Honor: Warfighter (MoHW) - Tier 1 operatorene også kendt som "AFO Neptune", er DEVGRU.
Splinter Cell: Blacklist - Sam Fisher-karakteren man spiller er eks-SEAL.
Deep Fear.
Call of Duty: Modern Warfare 2 - mulighed for at spille SEALs i få multiplayer-baner.
Call of Duty: Modern Warfare 3.
Call of Duty 4: Modern Warfare.
Serier
SEAL Team.
Hawaii-Five-O.
Nikita.
NCIS – "unSEALed".
Seven Days.
Lone Target – hvor ex-SEAL Joel Lambert skal flygte fra andre eliteenheder.
"Six".
Se også
United States Naval Special Warfare Development Group (SEAL Team Six) – SEALs specialenhed.
USSOCOM.
Eksterne henvisninger
United States Navy SEALs officielle hjemmeside
Navy Seals: De bedste af de bedste
Navy SEALs
Etableret i 1962
United States Navy
Navy SEALs
| 24,539
|
https://no.wikipedia.org/wiki/Takashi%20Hiraide
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Takashi Hiraide
|
https://no.wikipedia.org/w/index.php?title=Takashi Hiraide&action=history
|
Norwegian
|
Spoken
| 51
| 120
|
Takashi Hiraide (平出 隆 Hiraide Takashi, født 21. november 1950 i Moji, nå en del av Kitakyūshū, Fukuoka) er en japansk poet og kritiker. Hans verker Til valnøttens gjenstridige utholdenhet (fra 2013, utgitt av Forlaget Oktober) og Katten (fra 2014, utgitt av forlaget Press) er utkommet på norsk.
Referanser
Japanske forfattere
| 44,019
|
https://pl.wikipedia.org/wiki/David%20Ausubel
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
David Ausubel
|
https://pl.wikipedia.org/w/index.php?title=David Ausubel&action=history
|
Polish
|
Spoken
| 260
| 629
|
David Ausubel (ur. 25 października 1918 w Nowym Jorku, zm. 9 lipca 2008) – amerykański psycholog i psychiatra.
Życiorys
Wychowywał się na Brooklynie w Nowym Jorku. Uczęszczał na Uniwersytet Pensylwanii (m.in. psychologia). Ukończył kurs medyczny na Middlesex University i odbył staż w Szpitalu Gouveneur na dolnym Manhattanie. Podczas II wojny światowej odbywał służbę wojskową w jednostkach medycznych. Został przydzielony do oddziału UNRRA w Stuttgarcie, gdzie pracował z osobami przesiedlanymi. Po powrocie do Stanów Zjednoczonych pracował jako psychiatra w US Public Health Service w Kentucky, w Buffalo Psychiatric Centre oraz w Bronx Psychiatric Centre. Uzyskał doktorat z psychologii rozwojowej na Columbia University. W latach 1957–1958 otrzymał stypendium naukowe Fulbrighta. W jego ramach przeprowadzał badania porównawcze motywacji zawodowej Maorysów i Europejczyków. W 1973 przeszedł na emeryturę akademicką i poświęcił się praktyce psychiatrycznej, którą prowadził do 1994. Po jej zakończeniu napisał jeszcze cztery książki.
Zainteresowania i osiągnięcia
Jego główne zainteresowania to: psychopatologia ogólna, rozwój ego, narkomania i psychiatria sądowa. Publikował książki z zakresu psychologii rozwojowej i edukacyjnej oraz na temat uzależnienia od narkotyków, psychopatologii oraz rozwoju ego. Opublikował ponadto więcej niż 150 artykułów w czasopismach psychologicznych i psychiatrycznych. W 1976 otrzymał nagrodę Thorndike Award od Amerykańskiego Towarzystwa Psychologicznego za wybitny, psychologiczny wkład w edukację. Był twórcą autorskiej teorii uczenia się (ang. meaningful learning theory) z 1963, a także teorii subsumpcji (ang. subsumption theory), w której uczenie się opiera się na rodzajach nadrzędnych, reprezentacyjnych i kombinatorycznych procesów zachodzących podczas odbioru informacji.
Przypisy
Amerykańscy psychiatrzy
Amerykańscy psycholodzy
Psycholodzy rozwoju
Absolwenci Uniwersytetu Pensylwanii
Stypendyści Fulbrighta
Ludzie urodzeni w Nowym Jorku
Urodzeni w 1918
Zmarli w 2008
| 35,195
|
https://de.wikipedia.org/wiki/Iwan%20Krypjakewytsch
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Iwan Krypjakewytsch
|
https://de.wikipedia.org/w/index.php?title=Iwan Krypjakewytsch&action=history
|
German
|
Spoken
| 1,339
| 3,016
|
Iwan Petrowytsch Krypjakewytsch (; wiss. Transliteration ; * 25. Juni 1886 in Lemberg, Österreich-Ungarn; † 21. April 1967 in Lwiw, Ukrainische Sozialistische Sowjetrepublik) war ein ukrainischer Historiker. Wie bei Westukrainern üblich, verwendete er seinen Namen ohne Patronym.
Biographie
Iwan Krypjakewytsch wurde 1886 als ältester Sohn des griechisch-katholischen Priesters und Fachmanns für byzantinische Hymnologie Petro-Franz Krypjakewytsch und seiner Ehefrau in der damaligen Hauptstadt des österreichischen Königreichs von Galizien und Lodomerien Lemberg geboren. Nach Beendigung der Schulzeit an einem der damals vier polnischen Gymnasien studierte er an der philosophischen Fakultät der Universität Lemberg Geschichte, insbesondere bei Mychajlo Hruschewskyj, dem er alsbald bei den Bänden 2 und 3 seiner „Geschichte der Ukraine“ assistierte. Im Anschluss an sein Studium promovierte er 1911 bei diesem in Geschichte mit der Dissertation „Die Kosaken und die Privilegien Báthorys“. Hierauf wirkte er als Geschichtslehrer an den polnischen Gymnasien in Rohatyn, Wągrowiec, Schowkwa und vor allem am Akademischen Gymnasium in Lemberg.
Nachdem der junge Krypjakewytsch bei seinem Vater die ukrainische Sprache und bei Mychajlo Hruschewskyj die ukrainische Geschichte kennengelernt hatte, wurde ihm die Formung der ukrainischen Identität zum lebenslangen bildungspolitischen und beruflichen Thema.
Stationen seines politischen Lebensweges war eine kurzzeitige Verhaftung und Anklage nach Teilnahme an Studentenprotesten am 23. Dezember 1907, in denen es in dem polnisch geprägten Lemberg um die Bildung einer ukrainischen Universität ging, später 1914 Mitgliedschaft in der Vereinigung für die Befreiung der Ukraine, in den 1930er Jahren in der Ukrainischen nationaldemokratischen Vereinigung und Engagement als Abgeordneter des Gebiets Lemberg und schließlich der – von ihm abgelehnte – Vorschlag seitens Jaroslaw Stezko, 1941 Bildungsminister der von der OUN-B ausgerufenen unabhängigen Ukraine zu werden.
Prägender waren die wissenschaftlichen und pädagogisch-popularisierenden Tätigkeiten Krypjakewytschs. Bereits 20-jährig veröffentlichte er 1905 seinen ersten Aufsatz in den Abhandlungen der Wissenschaftlichen Schewtschenko-Gesellschaft, deren Bibliothekar er von 1910 bis 1912 und Mitglied ab 1911 wurde. Später von 1924 bis 1939 wirkte er als Redakteur ihrer Abhandlungen, nachdem er 1920 Sekretär der historisch-philosophischen Kommission der Gesellschaft geworden war. Zu seinen frühen volkspädagogischen Aktivitäten gehört sein Eintritt in die Proswita 1908, für die er bis zum Zweiten Weltkrieg immer wieder allgemeinverständliche Aufsätze und Darstellungen verfasste. Die politischen Wechsel ab 1914 führten zu seiner Tätigkeit zunächst im Büro der Kulturhilfe für Cholmland und Wolhynien – sein Vater stammte aus Wolhynien – 1918 bis 1919 zu einer kurzzeitigen Privatdozentur für Geschichte an der Universität in Kamjanez-Podilskyj, anschließend 1921 bis 1923 zur Lehrtätigkeit an der Ukrainischen (geheimen) Universität Lemberg und schließlich 1934 bis 1939 an der 1929 gegründeten Lemberger Theologischen Akademie. Ende der 1920er Jahre nahm er an Konferenzen und wissenschaftlichen Begegnungen in Prag, Warschau und Kiew teil. Insbesondere sein Treffen mit seinem nun in Kiew wirkenden Lehrer Mychajlo Hruschewskyj, der dabei mithalf, die Ukrainische Sozialistische Sowjetrepublik mit aufzubauen, mag ihm später seinen Lebensweg nach dem Zweiten Weltkrieg erleichtert haben. Im September 1939 wurde Krypjakewytsch Professor am Lehrstuhl für Ukrainische Geschichte in Lemberg, 1940 in der Zeit der sowjetischen Okkupation Leiter der Lemberger Sektion des Instituts für Geschichte der Akademie der Wissenschaften der Ukraine. 1941 wurde er ohne eine eigene Habilitationsschrift vorgelegt zu haben zum Professor ernannt. 1942 endeten mit der deutschen Okkupation diese beiden letzteren Tätigkeiten und er wirkte bis zur Wiederkehr der Sowjetmacht im Ukrainischen Verlag in Lemberg. 1944 konnte er zunächst seine Lehrtätigkeit wieder aufnehmen, wurde 1946 aber mit Auflösung der Lemberger Filiale der Akademie der Wissenschaften hier entlassen und nach Kiew versetzt. Hier war er zwei Jahre wissenschaftlicher Mitarbeiter am Institut für Geschichte der Akademie der Wissenschaften der Ukraine und Leiter der Abteilung für alte Drucke der Staatlichen Öffentlichen Bibliothek der Akademie. 1948 kehrte er wieder nach Lemberg zurück, wo er eine Stelle am Museum für Ethnologie erhielt. 1951 schließlich konnte er seine Lehrtätigkeit an der Universität wieder aufnehmen, 1953 wurde er Direktor des Instituts für Sozialwissenschaften der Lemberger Filiale der Akademie der Wissenschaften der Ukraine, das er bis 1962 leitete und welches die Ukrainer 1993 nach ihm „Iwan-Krypjakewytsch-Institut für Ukrainische Studien der Akademie der Wissenschaften“ umbenannten. Kurz vor seinem Ruhestand wurde Iwan Krypjakewytsch zum „Verdienten Wissenschaftler der Ukraine“ ernannt.
80-jährig starb Iwan Krypjakewytsch am 21. April 1967 in Lemberg und wurde auf dem Lemberger Lytschakiwski-Friedhof beigesetzt. Er war mit Maria, geb. Sydorowytsch, verheiratet und hatte mit ihr zwei Söhne, die ausgewiesene Naturwissenschaftler geworden waren, Petro-Bohdan, einen Kristallchemiker, und Roman, einen Physiker.
Im April 2017 wurde die Einrichtung eines Iwan-Krypjakewytsch-Museums in zwei Räumen der Lemberger Stefanyk-Bibliothek bekanntgegeben.
Werk
Das Werk Krypjakewytschs umfasst zahlreiche Veröffentlichungen unter anderem zur Archäologie, Numismatik, Geographie und Kulturgeschichte. Seine ersten Arbeiten galten der lokalen sozioökonomischen und kulturellen Geschichte von Lemberg und Galizien des 16. und 17. Jahrhunderts. Den Spuren Hruschewskyjs folgend, an dessen Geschichte der Ukraine er für diese Zeit mitwirkte, und sein Dissertationsthema aufgreifend weitete er bald seinen Blick aus und erforschte die Anfänge ukrainischer Staatsbildung in der Zentralukraine zur Zeit der Kosaken, Hetmane und insbesondere des Hetman Bohdan Chmelnyzkyj. Seinen Stil formte er immer wieder durch allgemeinverständliche Schul- und Handbuch-Darstellungen. Zu großen Erfolgen wurden seine 1954 erschienene, damals teilweise politisch zensierte Biographie Bohdan Chmelnyzkyjs, die 1990 unzensiert neu verlegt wurde und die zunächst 1949 unter dem Pseudonym Iwan Cholmskyj in der ukrainischen Diaspora New Yorks und Münchens gedruckte Geschichte der Ukraine, die 1990 in einer großen Auflage von 200.000 Exemplaren nachgedruckt wurde. Durch seine umfassende redaktionelle Tätigkeit, zu der ab 1957 die des wissenschaftlichen „Ukraïns’kyj istoryčnyj žurnal’“ [Ukrainische historische Zeitschrift] und die Mitarbeit an der „Ukraïns’ka radjans’ja encyklopedija“ Ukrainischen Sowjetischen Enzyklopädie ab 1959 hinzukamen, prägte Iwan Krypjakewytsch seine Historiker-Kollegen und Schüler. So regte er Iwan Butyč und Petro Tronko in Kiew zu dem vielbändigen umfangreichen, nach den Oblasten eingeteilten historisch-geographischen enzyklopädischen Nachschlagewerk „Istorija mist’ i sil’ Ukraïns’koï SSSR“ [Geschichte der Städte und Dörfer der Ukrainischen Sozialistischen Sowjetrepublik] an, für das auch seine Aufzeichnungen nutzbar wurden. Beide Enzyklopädien erschienen zunächst auf Ukrainisch, anschließend verbessert auf Russisch, was zu einer stärkeren Verwendung der russischen Ausgaben führte.
Zu den zahlreichen Schülern Iwan Krypjakewytschs zählen unter anderen Jaroslaw Daschkewytsch, Jaroslaw Isajewytsch und Fedosij Steblij.
Mitgliedschaften
Akademie der Wissenschaften der Ukraine (1958)
Nationale Schewtschenko-Gesellschaft (1911), ab 1934 bis 1939 als Leiter ihrer historisch-philosophischen Sektion
Ehrungen
Verdienter Wissenschaftler der Ukrainischen Sowjetrepublik (1961)
Werke
Selbständige Veröffentlichungen (Auswahl)
[Die Kosaken und die Privilegien Báthorys]. L’viv 1908 (Džerela do istoriï Ukraïny-Rusy; 8).
[Kurze Geschichte der Ukraine für Grundschulen und die ersten Gymnasialklassen]. L’viv 1918.
[Kurze Geschichte der Ukraine]. L’viv 1921; 1924; 1941; 1990. Kyïv 1993.
[Geschichte der Kosakenherrschaft für Volk und Jugend]. L’viv 1922; 1929;
[Große Geschichte der Ukraine]. L’viv 1935. L’viv-Winnipeg 1948; Kyïv 1993.
[Geschichte der ukrainischen Streitkräfte]. L’viv 1936; Winnipeg 1953; L’viv 1992.
[Geschichte der ukrainischen Kultur]. L’viv 1937. Kyïv 1993; 1994.
(unter dem Pseudonym Ivan Cholms’kyj),[Geschichte der Ukraine]. New York-München 1949; L’viv 1990 (mit biographischer Einführung von Jaroslaw Daschkewytsch).
[Bohdan Chmelnyzkyj]. Kyïv 1954 (zensiert); L’viv 1990 (unzensiert, mit biographischer Einführung von Jaroslaw Isajewytsch).
[Die Regentschaft von Galizien-Wolhynien]. Kyïv 1984; L’viv 1999.
Aufsatz
(Auszug) Das alte Lwiw, in: Alois Woldan (Hg.), Europa erlesen. Lemberg. Klagenfurt 2008, S. 21–24.
Herausgeberschaft
gemeinsam mit Ivan Butyč, [Dokumente Bohdan Chmelnyzkyjs, 1648–1657]. Kyïv 1961.
Bibliographie
Nachlass und Archiv
Der Nachlass Ivan Kryjakewytschs befindet sich im Zentralen Historischen Staatsarchiv der Ukraine Filiale Lwiw und in der Lemberger Stefanyk-Nationalbibliothek. Erschlossen wird er durch das Inventarverzeichnis:
Archiv Ivana Kryp’jakevyča: Inventarnyj opys. Kyïv-L’viv 2005.
Gedenkschrift
Ivan Kryp’jakevyč u rodynij tradyciï, nauci, suspil’stvi. L’viv 2001 (Ukraïna: Kul’turna spadšyna, nacional’na svidomist’, deržavnist’, 9).
Literatur
O. Ohloblyn, Krypiakevych, Ivan, in: Encyclopedia of Ukraine 2 (1988) 682, online.
I. Svarnyk, Kryp’jakevyč, Ivan, in: Encyklopedija L’vova 3 (2010) 620-621.
Ja. Isajevyč, Kryp’jakevyč, Ivan Petrovyč, in: Encyklopedija istoriï Ukraïny 5 (2009) 390-395, online.
Ja. Isajevyč, Kryp’jakevyč, Ivan Petrovyč, in: Encyklopedija sučasnoï Ukraïny 15 (2014) 482-483, online.
Ivan Kryp’jakevyč u rodynij tradyciï, nauci, suspil’stvi. L’viv 2001 (Ukraïna: Kul’turna spadšyna, nacional’na svidomist’, deržavnist’, 9).
Ninel’ Klymenko, Ivan Kryp’jakevyč jak osobystist’ i naukovec’ (za novymy džerelamy) [I. K. als Persönlichkeit und Wissenschaftler nach neuen Quellen], in: Ukraïns’kyj istoryčnyj žurnal 6 (507) / 2012, 96-110.
Bibliographie
O.D. Kizlyk, Kryp’jakevyč Ivan Petrovyč: Korotkyj biobibliohrafyčnyj pokažčyk. L’viv 1958.
Weblinks
Einzelnachweise
Historiker
Hochschullehrer (Nationale Iwan-Franko-Universität Lwiw)
Hochschullehrer (Ukrainische Katholische Universität)
Mitglied der Nationalen Akademie der Wissenschaften der Ukraine
Person (Cisleithanien)
Sowjetbürger
Ukrainer
Geboren 1886
Gestorben 1967
Mann
| 40,978
|
https://en.wikipedia.org/wiki/SP%26S%20Class%20A3
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
SP&S Class A3
|
https://en.wikipedia.org/w/index.php?title=SP&S Class A3&action=history
|
English
|
Spoken
| 48
| 102
|
Spokane, Portland and Seattle Railway's Class A-3 was a class of 0-6-0 steam locomotive switchers.
Background
Design Features
Construction History
Operational history
Numbering
Disposition
References
A-3
0-6-0 locomotives
ALCO locomotives
Steam locomotives of the United States
Standard gauge locomotives of the United States
Railway locomotives introduced in 1914
| 5,420
|
https://pl.wikipedia.org/wiki/Stanis%C5%82aw%20Gaszto%C5%82d
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Stanisław Gasztołd
|
https://pl.wikipedia.org/w/index.php?title=Stanisław Gasztołd&action=history
|
Polish
|
Spoken
| 137
| 404
|
Stanisław Gasztołd (ur. ok. 1507, zm. 18 grudnia 1542) – magnat litewski, wojewoda trocki i nowogródzki, pierwszy mąż Barbary Radziwiłłówny.
Był synem wojewody wileńskiego Olbrachta i Zofii z książąt Wierejskich. 8 grudnia 1522 sejm litewski mianował go wojewodą nowogródzkim, który to urząd ostatecznie objął dopiero w 1530. Członek rady wielkoksiążęcej, która rządziła Wielkim Księstwem Litewskim.
18 maja 1537 w Gieranionach pojął za żonę Barbarę Radziwiłłównę. Stanisław Gasztołd umarł bezpotomnie (grudzień 1542).
Po jego bezpotomnej śmierci Zygmunt I Stary zastosował wobec pozostałej po Gasztołdzie wdowy - Barbary Radziwiłłówny - przepis z litewskiego prawa o całkowitej stracie mienia wygasłej rodziny na rzecz skarbu hospodarskiego.
Linki zewnętrzne
Herbarz rodzin polskich
Członkowie rady hospodarskiej Wielkiego Księstwa Litewskiego
Stanisław Gasztołd
Polscy hrabiowie Świętego Cesarstwa Rzymskiego
Szlachta Wielkiego Księstwa Litewskiego
Wojewodowie troccy (Wielkie Księstwo Litewskie)
Wojewodowie nowogródzcy (Wielkie Księstwo Litewskie)
Zmarli w 1542
| 42,835
|
https://ceb.wikipedia.org/wiki/Hestehomnuten
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Hestehomnuten
|
https://ceb.wikipedia.org/w/index.php?title=Hestehomnuten&action=history
|
Cebuano
|
Spoken
| 166
| 299
|
Bungtod ang Hestehomnuten sa Noruwega. Nahimutang ni sa munisipyo sa Tokke ug lalawigan sa Telemark fylke, sa habagatang bahin sa nasod, km sa kasadpan sa Oslo ang ulohan sa nasod. metros ibabaw sa dagat kahaboga ang nahimutangan sa Hestehomnuten.
Ang yuta palibot sa Hestehomnuten kasagaran kabungtoran. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa habagatan-kasadpan sa Hestehomnuten. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Hestehomnuten may kaayo gamay nga populasyon. Ang kinadul-ang mas dakong lungsod mao ang Hovden, km sa kasadpan sa Hestehomnuten. Hapit nalukop sa kasagbotan ang palibot sa Hestehomnuten. Sa rehiyon palibot sa Hestehomnuten, mga bungtod, busay, ug mga kalapukan talagsaon komon.
Ang klima tundra. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hulyo, sa °C, ug ang kinabugnawan Marso, sa °C.
Saysay
Ang mga gi basihan niini
Mga bungtod sa Telemark fylke
Kabukiran sa Noruwega nga mas taas kay sa 1000 metros ibabaw sa dagat nga lebel
sv:Hestehomnuten
Mga artikulo sa posisyon itarong ni bot
| 16,708
|
https://hi.wikipedia.org/wiki/%E0%A4%9B%E0%A5%87%E0%A4%A8%E0%A4%BE
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
छेना
|
https://hi.wikipedia.org/w/index.php?title=छेना&action=history
|
Hindi
|
Spoken
| 67
| 253
|
छेना, दूध से बना एक पदार्थ है जो दूध को फाड़कर बनाया जाता है। दूसरे शब्दों में, उस ताजे पनीर को कहते हैं जिसमे पानी की मात्रा अधिक होती है और यह आसानी से टूट जाता है और इसे ज्यादा देर तक भंडार करने के लिए नहीं बनाया जाता। इसका प्रयोग बंगाली मिठाईयां जैसे संदेश या रसगुल्ला बनाने में किया जाता है।
इन्हें भी देखें
मावा
दुग्ध-उत्पाद
| 36,685
|
https://stackoverflow.com/questions/29426858
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
AI Shakil, Sagar Devanga, https://stackoverflow.com/users/16411959, https://stackoverflow.com/users/2931487
|
English
|
Spoken
| 506
| 1,042
|
ScrollView inside a RecyclerView android
I am currently working with recyclerView and cards.
I have a cards layout. Now i want to add scrollview inside the cards is that possible. If yes then how ?
The brown layout is the recycler view layout while the blue layout is the cards layout. Inside each card i need a scrollview is that possible ?
I am not sure if this will work but you can try this
Disable the touch of recycler view when scrollview is being touched.
Similarly disable scrollview touch on recyclerview touch.
This can be acheived like this
//For scrollView
scrollView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
// Disallow the touch request for parent scroll on touch of child view
view.getParent().requestDisallowInterceptTouchEvent(false);
return true;
}
});
see if this helps you.
i get a hint of what to try now
let me see if that works out , I will post the answer
thanks
I finally found an another way how the ScrollView can be scrolled inside RecyclerView viewHolder. As Ankit Khare's answer, in order to this works, we should disable the touch of RecyclerView when ScrollView is being touched, but his solution is too simple and it didn't quite work well after I tried that. Yeah I know both question and answers were posted from 6 years ago, maybe at that time it worked, but now it's not work anymore after I tried that.
Here is my analysis. Instead of disable the touch of RecyclerView, we should disable its scroll mechanism instead. In order to RecyclerView's scroll can be disabled, we should use function canScrollVertically() from LayoutManager which you use for the RecyclerView. Then, in RecyclerView's adapter, I implemented onTouchListener() for the ScrollView to trigger the touch on it and disable or enable the RecyclerView. So, here is my sample code (I'm using Kotlin):
class MyActivity : AppCompatActivity(), MyAdapter.AdapterListener {
private var isVerticalScrollEnabled = true
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
/* Set RecyclerView adapter here */
recyclerView.apply {
layoutManager = object : LinearLayoutManager(this@MyActivity) {
override fun canScrollVertically(): Boolean {
return isVerticalScrollEnabled
}
}
adapter = MyAdapter(callback = this@MyActivity)
}
}
/**
* Callback from MyAdapter.AdapterListener.
*/
override fun onScrollViewTouched(isTouched: Boolean) {
isVerticalScrollEnabled = !isTouched
}
}
class MyAdapter internal constructor(private val callback: AdapterListener) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
override fun onBindViewHolder(viewHolder: RecyclerView.ViewHolder, i: Int) {
/* set touch listener for scrollview */
scrollView.setOnTouchListener(object : View.OnTouchListener {
override fun onTouch(v: View?, event: MotionEvent?): Boolean {
return when (event?.action) {
MotionEvent.ACTION_DOWN -> {
callback.onScrollViewTouched(isTouched = true)
true
}
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
callback.onScrollViewTouched(isTouched = false)
true
}
else -> {
/* return false so that scrollview can scroll the content */
false
}
}
}
})
}
internal interface AdapterListener {
fun onScrollViewTouched(isTouched: Boolean)
}
}
Hope this will help on someone who look up another answer.
Try this instead.
public class NoInterceptScrollView extends ScrollView {
public NoInterceptScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
return false;
}
}
Do not forget to write the full code implementation.
| 20,976
|
https://nl.wikipedia.org/wiki/Orectogyrus%20lunai
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Orectogyrus lunai
|
https://nl.wikipedia.org/w/index.php?title=Orectogyrus lunai&action=history
|
Dutch
|
Spoken
| 28
| 53
|
Orectogyrus lunai is een keversoort uit de familie van schrijvertjes (Gyrinidae). De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 1958 door Brinck.
Schrijvertjes
| 43,620
|
https://id.wikipedia.org/wiki/Dewan%20Perwakilan%20Rakyat%20Daerah%20Kabupaten%20Lahat
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Dewan Perwakilan Rakyat Daerah Kabupaten Lahat
|
https://id.wikipedia.org/w/index.php?title=Dewan Perwakilan Rakyat Daerah Kabupaten Lahat&action=history
|
Indonesian
|
Spoken
| 140
| 376
|
Dewan Perwakilan Rakyat Daerah Kabupaten Lahat (disingkat DPRD Lahat) adalah lembaga legislatif unikameral yang menjadi mitra kerja Pemerintah Kabupaten Lahat, Sumatera Selatan. DPRD Lahat memiliki 40 anggota yang tersebar di 12 partai politik, dengan perolehan suara mayoritas diraih oleh Partai Gerakan Indonesia Raya dan Partai Demokrat.
Pimpinan Dewan
Pimpinan DPRD Kabupaten Lahat terdiri atas satu orang ketua dan satu orang wakil ketua yang berasal dari partai politik yang memiliki suara terbanyak di dewan.
Komposisi Anggota
Berikut ini adalah komposisi anggota DPRD Kabupaten Lahat dalam dua periode terakhir.Perolehan Kursi DPRD Lahat 2019-2024
Daerah Pemilihan
Pada Pemilu 2019, pemilihan DPRD Kabupaten Lahat dibagi kedalam 5 daerah pemilihan (dapil) sebagai berikut:
Daftar Anggota
Berikut adalah daftar anggota DPRD Kabupaten Lahat periode 2019-2024.
Lihat pula
Dewan Perwakilan Rakyat Daerah
Dewan Perwakilan Rakyat Daerah Provinsi Sumatera Selatan
Kabupaten Lahat
Sumatera Selatan
Referensi
Lahat
Kabupaten Lahat
| 8,177
|
https://ast.wikipedia.org/wiki/Curb%20Your%20Enthusiasm
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Curb Your Enthusiasm
|
https://ast.wikipedia.org/w/index.php?title=Curb Your Enthusiasm&action=history
|
Asturian
|
Spoken
| 314
| 591
|
Curb Your Enthusiasm (El show de Larry David o a cencielles Larry David n'España) ye una serie de televisión d'Estaos Xuníos d'HBO. Ye una sitcom escurrida por Larry David escritor, co-creador y productor executivu de Seinfeld, quien tamién ye'l personaxe principal de Curb Your Enthusiasm y el productor, guionista y realizador. La serie tamién ye conocida col nome de Curb. Dende'l so estrenu'l 15 d'ochobre de 2000, la serie foi nomada pa más de venti premios Emmy y cinco Golden Globe, ganando la nominación a la meyor comedia en dambos premios.
N'España ye emitida por TNT y poles cadenes autonómiques.
Les hestories trescurren en Los Angeles y tán basaes na vida de Larry David como un semi-reformáu multimillonariu dempués del so ésitu con Seinfeld. La serie ye frecuentemente señalada como una idea reforzada del conceutu de Seinfeld, "un programa sobre nada".
Curb Your Enthusiasm se filma con cámares portátiles lo que fai que la so producción tea fuera del conceutu tradicional o convencional d'una serie televisiva, inorando'l guión y dando preferencia pa los detalles de la escena ya improvisaciones nos diálogos.
Anque la mayoría de les escenes tán basaes n'acontecimientos de la vida de Larry David, él almite que'l personaxe nun ye una semeya perfecta d'él. Nuna entrevista, Larry afirmó que nel personaxe de la serie nun puede ser él verdaderamente dau a la so "sensibilidá" coles otres persones y los convencionalismos sociales.
La última temporada emitir en 2011, ante lo cual Larry David espresó que tres la crítica collechada col final de Seinfeld, dulda de si ye fayadizu da-y un final determináu a esta serie.
En xunu de 2016 anúnciase'l regresu de la serie cola que va ser novena temporada.
Premios y nominaciones
Ver tamién
Home Box Office
Referencies
Enllaces esternos
Larry David, páxina oficial de la serie en TNT
Páxina de HBO Latin America
Comedies de situación
Series de televisión de HBO
| 50,177
|
https://arz.wikipedia.org/wiki/%D8%A8%D8%AD%D9%8A%D8%B1%D9%87%20%D9%84%D8%A7%D9%83%20%D8%A8%D9%8A%D8%B1%D8%AA%D8%B4
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
بحيره لاك بيرتش
|
https://arz.wikipedia.org/w/index.php?title=بحيره لاك بيرتش&action=history
|
Egyptian Arabic
|
Spoken
| 24
| 83
|
لاك بيرتش بحيره فى كندا.
جغرافيا
لاك بيرتش موجوده فى منطقه اداريه اسمها لانوديير,
لينكات برانيه
مصادر
مسطحات مائيه
بحيره
مسطحات مائيه فى كندا
| 47,915
|
https://en.wikipedia.org/wiki/Mardisville%2C%20Alabama
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Mardisville, Alabama
|
https://en.wikipedia.org/w/index.php?title=Mardisville, Alabama&action=history
|
English
|
Spoken
| 198
| 295
|
Mardisville, also known as Jumpers Spring, is an unincorporated community in Talladega County, Alabama, United States.
History
The community was originally called Jumpers Spring, purportedly named after a local Creek Indian who lived in the area. The Creek had long controlled this territory as its indigenous inhabitants.
After the United States enforced Indian Removal in the 1830s of most of the Creek people to west of the Mississippi River in Indian Territory, the United States General Land Office opened here in 1834 to sell land. It operated in Mardisville until 1842.
The community was renamed Mardisville in honor of Samuel Wright Mardis, who served as the land agent until his death. At one point, the community was home to a sixteen-room tavern, wood shop, tailor shop, general store, cake shop, bakery, and several churches. It was a trading center for a rural area devoted to cotton plantations. A post office called Mardisville was established in 1833, and operated until 1881.
Notable people
Joab Lawler, U.S. Representative from 1835 to 1838
Micah Taul, U.S. Representative from Kentucky from 1815 to 1817. Moved to Mardisville. Grandfather of Taul Bradford.
References
Unincorporated communities in Talladega County, Alabama
Unincorporated communities in Alabama
| 3,268
|
https://stackoverflow.com/questions/49068366
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
fred, https://stackoverflow.com/users/1524831, https://stackoverflow.com/users/4763309, mrkernelpanic
|
Norwegian Nynorsk
|
Spoken
| 566
| 1,747
|
Jquery Datatables server-side processing with PHP with MSSQL
I am following this tutorial to apply datatables server side processing in PHP, MSSQL and AJAX.
I adjusted the mentioned code to my requirements. Here is my index page
<!DOCTYPE html>
<html>
<title>Datatable</title>
<head>
<link rel="stylesheet" type="text/css" href="css/jquery.dataTables.css">
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" >
$(document).ready(function() {
var dataTable = $('#grid').DataTable( {
"processing": true,
"serverSide": true,
"ajax":{
url :"grid-data.php",
type: "post",
error: function(){
$(".grid-error").html("");
$("#grid").append('<tbody class="employee-grid-error"><tr><th colspan="3">No data found in the server</th></tr></tbody>');
$("#grid_processing").css("display","none");
}
}
} );
} );
</script>
<style>
div.container {
margin: 0 auto;
max-width:760px;
}
div.header {
margin: 100px auto;
line-height:30px;
max-width:760px;
}
body {
background: #f7f7f7;
color: #333;
font: 90%/1.45em "Helvetica Neue",HelveticaNeue,Verdana,Arial,Helvetica,sans-serif;
}
</style>
</head>
<body>
<div class="header"><h1>DataTable demo</h1></div>
<div class="container">
<table id="grid" cellpadding="0" cellspacing="0" border="0" class="display" width="100%">
<thead>
<tr>
<th>Country</th>
<th>Territory</th>
<th>Market</th>
</tr>
</thead>
</table>
</div>
</body>
</html>
and here is grid-data.php
<?php
$servername = "******";
$username = "******";
$password = "******";
$dbname = "mydatabase";
$dbDB = new PDO("odbc:Driver=ODBC Driver 13 for SQL Server;Server=******,1456;Database=mydatabase;Port=1456", $username, $password);
$requestData= $_REQUEST;
$columns = array(
0 =>'Country',
1 => 'Territory',
2=> 'Market' );
$sql = "SELECT Country, Territory, Market ";
$sql.=" FROM mydatabase.mytable";
$nRows = $dbDB->query("SELECT count(*) from mydatabase.mytable")->fetchColumn();
$totalData = $nRows;
$totalFiltered = $totalData;
$sql = "SELECT Country, Territory, Market ";
$sql.=" FROM mydatabase.mytable WHERE 1=1";
if( !empty($requestData['search']['value']) ) {
$sql.=" AND ( Country LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR Territory LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR Market LIKE '".$requestData['search']['value']."%' )";
}
$nRowsSearch = $dbDB->query($sql)->fetchColumn();
$totalFiltered = $nRowsSearch;
$sql.=" ORDER BY ". $columns[$requestData['order'][0]['column']]." ".$requestData['order'][0]['dir']." LIMIT ".$requestData['start']." ,".$requestData['length']." ";
$data = array();
$query = 'SELECT Country, Territory, Market FROM mydatabase.mytable WHERE 1=1';
foreach ($dbDB->query($query) as $row) {
$nestedData=array();
$nestedData[] = $row["Country"];
$nestedData[] = $row["Territory"];
$nestedData[] = $row["Market"];
$data[] = $nestedData;
}
$json_data = array(
"draw" => intval( $requestData['draw'] ),
"recordsTotal" => intval( $totalData ),
"recordsFiltered" => intval( $totalFiltered ),
"data" => $data
);
echo json_encode($json_data);
?>
The data is loaded correctly in my table but all the features like search and changing the length and ordering.. are not working.
Can you please advise me what I am missing in my grid-data.php ? Thank you very much for your suggestions.
If you are looking to implement server side pagination and changing length, probably you should send which page you are on, pagelength and such stuff.
Make sure you pass page number, page length to your API and then at server side write some logic to pick only Page length number of records and based on pagenumber.
I hope this is what you might be looking for.
If you're using PHP, you can use ssp.class.php that is available in /examples/server_side/scripts folder when you download DataTables library.
There is also a sample script server_processing.php in /examples/server_side/scripts folder that shows how to use SSP class.
I also recommend looking at ssp.class.php instead. It's well tested and probably a little simpler than that other method. You never have to even look at the ssp.class.php code. Get it from github.
https://github.com/DataTables/DataTables/blob/master/examples/server_side/scripts/ssp.class.php
if(!empty($search)){
$sql ="SELECT * FROM t_penalty_list WHERE";
$sql.=" l_code LIKE '%{$search}%'";
$sql.=" OR cus_name LIKE '%{$search}%'";
$sql.=" OR cus_phone LIKE '%{$search}%'";
$sql.=" OR penalty_date LIKE '%{$search}%'";
}else{
$sql ="SELECT * FROM t_penalty_list WHERE 1=1";
if(!empty($is_status)){
if($is_status == 1){
$sql.=" AND amount_dept <= 0";
}elseif($is_status ==2){
$sql.=" AND amount_dept > 0";
}
$totalData = count($this->_penalty->selectRaw($sql));
}
}
Dont just copy paste code, you should also explain what you have done!
| 22,298
|
https://bn.wikipedia.org/wiki/%E0%A6%86%E0%A6%AC%E0%A6%A6%E0%A7%81%E0%A6%B2%E0%A7%8D%E0%A6%B2%E0%A6%BE%E0%A6%B9%20%E0%A6%87%E0%A6%AC%E0%A6%A8%E0%A7%87%20%E0%A6%86%E0%A6%AC%E0%A6%A6%E0%A7%81%E0%A6%B2%20%E0%A6%AE%E0%A7%81%E0%A6%A4%E0%A7%8D%E0%A6%A4%E0%A6%BE%E0%A6%B2%E0%A6%BF%E0%A6%AC
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
আবদুল্লাহ ইবনে আবদুল মুত্তালিব
|
https://bn.wikipedia.org/w/index.php?title=আবদুল্লাহ ইবনে আবদুল মুত্তালিব&action=history
|
Bengali
|
Spoken
| 179
| 1,105
|
আবদুল্লাহ ইবনে আবদুল মুত্তালিব (; ৫৪৬ – ৫৭০) ছিলেন ইসলাম ধর্মের প্রবর্তক মুহাম্মদ-এর পিতা; মুহাম্মদ তাঁর এবং তার স্ত্রী আমিনার একমাত্র সন্তান। পুত্রের জন্মের পূর্বেই তিনি মৃত্যুবরণ করেন।
বিবাহ
আবদুল মুত্তালিব তাঁর পুত্র আব্দুল্লাহকে নিয়ে ওয়াহাব ইবনে আব্দুল মানাফের কাছে তাঁর কন্যা আমেনার সাথে বিয়ের প্রস্তাব দেন। ওয়াহাব রাজি হয়ে যান। বিয়ের অনুষ্ঠানে হালাহ বিনতে ওয়াহাব নামক ওয়াহাবের অন্য আরেকজন মেয়েকে মুত্তালিব নিজের জন্য পছন্দ করেন। ওয়াহাব এতেও নিজের সন্মতি দেন। আর তাই একই অনুষ্ঠানে আব্দুল্লাহ ও মুত্তালিব যথাক্রমে আমেনা ও হালাহকে বিয়ে করেন।
বিবাহ পরবর্তী
আমিনা বিনতে ওয়াহবকে বিয়ে করার পর, আব্দুল্লাহ ইবনে আবদুল মুত্তালিব তার সাথে তিন দিন বসবাস করেন। এটি তাদের রীতি ছিল যে একজন পুরুষ তার স্ত্রীর সাথে তার(আমেনার) পিতার পরিবারে মাত্র তিন রাত থাকতে পারে। আমিনা (রাঃ) বলেনঃ আমি তাকে (নবী সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম) নিয়ে গর্ভবতী হয়েছিলাম কিন্তু তাঁকে প্রসব করা পর্যন্ত আমার কোন অস্বস্তি হয়নি।
নাম
তাঁর নাম আব্দুল্লাহ। আরবী আব্দুল্লাহ( عبد الله) শব্দের অর্থ হল- "আল্লাহর দাস"।
বংশ
তথ্যসূত্র
বহিঃসংযোগ
https://web.archive.org/web/20030817022225/http://freepages.family.rootsweb.com/~naqobatulasyrof/prophet/news_prophet_04.html
৫৪৬-এ জন্ম
৫৭০-এ মৃত্যু
আরব ব্যক্তি
কুরাইশ ব্যক্তি
মুহাম্মাদের পরিবার
৬ষ্ঠ শতাব্দীর আরব ব্যক্তি
মুহাম্মাদের পূর্বপুরুষ
বনু হাশিম
জান্নাতুল বাকিতে সমাধিস্থ
| 43,365
|
O7cjwSLVMZo_1
|
Youtube-Commons
|
Open Web
|
CC-By
| null |
Making Spin Art As It's Spinning! #Shorts #YouTubeShorts #SpinArt
|
None
|
English
|
Spoken
| 27
| 42
|
Alright guys, here we go. Got blue, red, purple, orange, some more red, more purple, or that was blue, sorry. Some more purple. What a beautiful mess..
| 1,286
|
https://stackoverflow.com/questions/58080007
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
Itamar Mushkin, Ullsokk, https://stackoverflow.com/users/3032519, https://stackoverflow.com/users/8874696
|
English
|
Spoken
| 334
| 822
|
How do I update a value in a dataframe in a loop?
I am trying to update a rating row by row. I have one dataframe of players, that all start with the same rating. For each match, I want the rating to change. Another dataframe contains results of each match.
import pandas as pd
gamesdata = [['paul','tom'],['paul','lisa'],['tom','paul'],['lisa','tom'],['paul','lisa'],['lisa','tom'],['paul','tom']]
games = pd.DataFrame(gamesdata, columns = ['Winner', 'Looser'])
playersdata= ['lisa','paul','tom']
players = pd.DataFrame(playersdata, columns = ['Name'])
mean_elo = 1000
elo_width = 400
k_factor = 64
players['elo'] = mean_elo
def update_elo(winner_elo, loser_elo):
expected_win = expected_result(winner_elo, loser_elo)
change_in_elo = k_factor * (1-expected_win)
winner_elo += change_in_elo
loser_elo -= change_in_elo
return winner_elo, loser_elo
def expected_result(elo_a, elo_b):
expect_a = 1.0/(1+10**((elo_b - elo_a)/elo_width))
return expect_a
for index, row in games.iterrows():
winnername = row['Winner']
losername = row['Looser']
web = players['elo'].loc[players['Name'] == winnername].values[0]
wIndex = players.loc[players['Name'] == winnername]
#I want to return just the index, so I can update the value
print(wIndex)
leb = players['elo'].loc[players['Name'] == losername].values[0]
print('Winner Elo before: ' + str(web))
winner_elo, looser_elo = update_elo(web, leb)
print('Winner Elo after: ' + str(winner_elo))
#here I want to update value
#players.at[wIndex,'elo']=winner_elo
I am trying to update the value in the players table using
players.at[wIndex,'elo']=winner_elo
but i struggle to get the index with this code:
wIndex = players.loc[players['Name'] == winnername]
So, your problem is: how to get the index of the row where players['Name'] == winnername ?
Yes it was, but I figured it out - using .index.values
In the future, please think about how to create a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example) - after all, if your entire problem was in that line, you don't have to share the entire code of your game, it just makes it less clear what the question is.
Sorry about that, will be more minimalist next time
Found a sollution:
wIndex = players.loc[players['Name'] == winnername].index.values
Can't believe i missed that
In this case, mark your question as accepted, so that others will know that the question is closed
I am not allowed to accept my answer yet, I am afraid
| 1,482
|
https://stackoverflow.com/questions/9267432
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,012
|
Stack Exchange
|
Bruno L L Oliveira, Griffin, Hemali Vekariya, Prashanth, biabright, https://stackoverflow.com/users/21032807, https://stackoverflow.com/users/21032808, https://stackoverflow.com/users/21032809, https://stackoverflow.com/users/21032909, https://stackoverflow.com/users/21037495
|
English
|
Spoken
| 169
| 243
|
How to use timers for a Pong game?
I'm remaking my Pong game in Java that I made in Allegro a while back, but I'm not familiar with Java timers, so I don't know how to proceed. I've setup the paddles and the ball, but the ball doesn't move because I have no timer telling it when to do so. I can move the paddles, but that's only because repaint() gets called when I press a key or release a key, and in my paintComponent() method, it updates the positions of the paddles and draws them.
But with the ball, it will need to constantly move, so how do I accomplish this? The most recent version of my project's code can be found on its GitHub project page here: http://www.github.com/packetpirate/Pong
Thanks for any help.
Something like the answer here: Java TimerTick event for game loop
On the gameloop, check where the ball is, and where its next position needs to be (i.e. if it hit a paddle or not).
| 49,542
|
https://ru.wikipedia.org/wiki/%D0%A7%D0%B5%D0%BC%D0%BF%D0%B8%D0%BE%D0%BD%D0%B0%D1%82%20%D0%BC%D0%B8%D1%80%D0%B0%20%D0%BF%D0%BE%20%D0%B2%D0%BE%D0%B4%D0%BD%D1%8B%D0%BC%20%D0%B2%D0%B8%D0%B4%D0%B0%D0%BC%20%D1%81%D0%BF%D0%BE%D1%80%D1%82%D0%B0%201978
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Чемпионат мира по водным видам спорта 1978
|
https://ru.wikipedia.org/w/index.php?title=Чемпионат мира по водным видам спорта 1978&action=history
|
Russian
|
Spoken
| 93
| 277
|
Чемпионат мира по водным видам спорта 1978 года — III чемпионат мира по водным видам спорта под эгидой FINA прошел в Западном Берлине с 20 по 28 августа.
Таблица медалей
Плавание
Мужчины
Женщины
WR — рекорд мира; CR — рекорд чемпионатов мира
Синхронное плавание
Прыжки в воду
Мужчины
Женщины
Водное поло
Ссылки
1978
Международные соревнования по водному поло в Германии
Международные соревнования по плаванию в Германии
Международные спортивные соревнования в Берлине
Август 1978 года
Чемпионат мира по водным видам спорта 1978
Международные соревнования по прыжкам в воду в Германии
Чемпионаты мира в ГДР
| 37,998
|
https://it.wikipedia.org/wiki/Campizze
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Campizze
|
https://it.wikipedia.org/w/index.php?title=Campizze&action=history
|
Italian
|
Spoken
| 101
| 192
|
Campizze è l'unica frazione di Rotondi in provincia di Avellino, nella valle Caudina.
È da ricordare che in questa località, nel gennaio 1799, ebbe luogo la strage di Campizze.
Geografia fisica
La località si trova lungo un tratto dell'antica via Appia che si estende nel territorio di cinque comuni al confine tra le province di Avellino e di Benevento, a metà strada fra Montesarchio ed Airola, e molto vicina anche ad Arpaia, Paolisi, oltre che Rotondi. Non è lontana dal sito delle Forche Caudine, dove i Romani furono sconfitti dai Sanniti.
Voci correlate
Rotondi
Valle Caudina
Collegamenti esterni
Frazioni di Rotondi
| 22,927
|
https://stackoverflow.com/questions/49050729
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
LONG, Miguel Moura, https://stackoverflow.com/users/577805, https://stackoverflow.com/users/607314, https://stackoverflow.com/users/6901788, paparazzo
|
Maltese
|
Spoken
| 1,122
| 2,005
|
Avoid duplicates when migrating from one table to another
I need to migrate data from an old Books table:
create table dbo.Books_OLD (
Id int identity not null constraint PK_Books_OLD_Id primary key (Id),
Title nvarchar (200) not null,
Image varbinary (max) null,
Preview varbinary (max) null
)
To a new table structure:
create table dbo.Books (
Id int identity not null constraint PK_Books_Id primary key (Id),
Title nvarchar (200) not null
)
create table dbo.Files (
Id int identity not null constraint PK_Files_Id primary key (Id),
Content varbinary (max) null,
Name nvarchar (280) null
)
create table dbo.BookFiles (
BookId int not null,
FileId int not null,
constraint PK_BookFiles_Id primary key (BookId, FileId)
)
alter table dbo.BookFiles
add constraint FK_BookFiles_BookId foreign key (BookId) references Books(Id) on delete cascade on update cascade,
constraint FK_BookFiles_FileId foreign key (FileId) references Files(Id) on delete cascade on update cascade;
The migration should run as follows:
Books_OLD.Title => Create new Book with given Title value
Books_OLD.Image => Create new File with Image content.
Create new BookFile to associate File to Book.
Books_OLD.Preview => Create new File with Preview content.
Create new BookFile to associate File to Book.
I was able to migrate the data but somehow when I run this:
select FileId
from BookFiles
group by FileId
having count(*) > 1;
I have duplicates. I should not have duplicate FileIds. What am I missing?
The migration code I have is:
DECLARE @BOOKS table (
BookId int,
Image varbinary(max),
Preview varbinary(max)
)
MERGE Books AS d
USING Books_OLD AS s
ON 0 = 1
WHEN NOT MATCHED
THEN INSERT (Title)
VALUES (s.Title)
OUTPUT INSERTED.Id, s.Image, s.Preview
INTO @BOOKS;
INSERT Files (Content, Created)
SELECT t.Content, GETUTCDATE()
FROM @BOOKS i
CROSS APPLY (VALUES (Preview, 'Preview'), (Image, 'Image')) t(Content, ContentType)
WHERE Content IS NOT NULL
INSERT BookFiles (BookId, FileId)
SELECT i.BookId, f.Id
FROM @BOOKS i
JOIN Files f
ON f.Content = i.Image
UNION ALL
SELECT i.BookId, f.Id
FROM @BOOKS i
JOIN Files f
ON f.Content = i.Preview
Some Books can have two files (Image and Preview) so BookId can appear more than once in BooksFiles.
But each file (Image or Preview) in Books_OLD table should only be associated with one Book. So it is strange that I have duplicated FileId in BookFiles.
What am I missing?
Do you have any same image or preview for different books?
@LONG In the Books_OLD table you can see that each Book has its own Image and Preview in its own column. But I am not sure if an Image or Preview is not the same in more than one book. But if it is how is my code doing that on migration? Maybe I am missing something ...
If the intent was not to let a book have one or more image/content then why move to this design? Even if you fix this inset your database is not going to stop this problem in the future.
I have this design because I have many tables in the database that use Files so instead of having BookFiles with FK, PostFiles with FK and so on I have one centralized Files table. And in fact somefiles might be shared. However in case of the data I am migrating I want to create a new file for each Image / Preview in a Book and not have them being shared.
I just tested it and in fact in the Books_Old table I have a few rows with a same Image or same Preview. How can I change my code to solve the problem?
@MiguelMoura, please check the answer, see if that works
If you have the same image or preview for different book in your Books_Old, in your original code from this part:
INSERT BookFiles (BookId, FileId)
SELECT i.BookId, f.Id
FROM @BOOKS i
JOIN Files f
ON f.Content = i.Image
It will return you more results when doing the INNER JOIN because two image or preview from different books can be joined. And the duplicate FileId is actually a bad record, because the BookId is not correspond to that particular Image or Preview even though they are the same.
What you could do is have another table variable called @Files, similar to the Files table structure, you just need to add one more column, which is BookId, then:
INSERT BookFiles (BookId, FileId)
SELECT i.BookId, f.Id
FROM @BOOKS i
JOIN @Files f
ON f.Content = i.Image
AND f.BookId = i.BookId --added joining condition
--assume code before has inserted bookId into `@Files`
So at last, you pick all the needed columns from @Files, insert them to Files.
UPDATE: please refer below for the full codes:
DECLARE @BOOKS table (
BookId int,
Image varbinary(max),
Preview varbinary(max)
)
--Added @File Variable
DECLARE @Files table
(
BookId int,
Content varbinary (max) null,
Created nvarchar (280) null,
Id int identity(1,1) not null primary key
)
MERGE Books AS d
USING Books_OLD AS s
ON 0 = 1
WHEN NOT MATCHED
THEN INSERT (Title)
VALUES (s.Title)
OUTPUT INSERTED.Id, s.Image, s.Preview
INTO @BOOKS;
INSERT @Files (BookId,Content, Created) --
SELECT i.BookId,t.Content, GETUTCDATE()
FROM @BOOKS i
CROSS APPLY (VALUES (Preview, 'Preview'), (Image, 'Image')) t(Content, ContentType)
WHERE Content IS NOT NULL
INSERT BookFiles (BookId, FileId)
SELECT i.BookId, f.Id
FROM @BOOKS i
JOIN @Files f
ON f.Content = i.[Image]
AND f.BookId = i.BookId --added joining condition
UNION ALL
SELECT i.BookId, f.Id
FROM @BOOKS i
JOIN @Files f
ON f.Content = i.Preview
AND f.BookId = i.BookId --added joining condition
--Last insert all needed from @File into File
INSERT INTO Files (Content, Created)
SELECT content,Created
FROM @Files
PS: Not sure whether there is a typo for dbo.File, you have Name in your table definition, but when inserting, its Created
Sorry, I tried to integrate your solution into my code but I am probably missing something ... What about the previous block? Where it shows: CROSS APPLY (VALUES (Preview, 'Preview'), (Image, 'Image')) t(Content, ContentType)
@MiguelMoura check it now, may have some typos, but basic idea is that :)
there is something wrong with your code. Check this line: INSERT BookFiles (BookId, FileId) SELECT i.BookId, f.Id FROM BOOKS i JOIN Files f ... There is no Id in your Files table. Am I making sense?
@MiguelMoura, ah, yes, missed the Identity Id column, updated.
That was what I tried but when I run the code I get the following error: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_BookFiles_Files_FileId". The conflict occurred in database "BooksNewDb", table "dbo.Files", column 'Id'. Any idea what might be the problem?
The error was in line SELECT i.BookId, f.Id when inserting BookFiles and it fails to create BookFiles or Files after it but Books are created
@MiguelMoura, yes, that is because before @Files does not have Id, so SELECT f.id will throw error, I updated the @Files structure
| 4,861
|
https://stackoverflow.com/questions/40030130
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
Renato N_, Taylor D. Edmiston, https://stackoverflow.com/users/149428, https://stackoverflow.com/users/7015816
|
English
|
Spoken
| 149
| 337
|
I'm trying to understad better how objects work in Python
In this definition, i'm using optparse to accept some argumets on the command line. So, my question is how the method add_option creates an atribute with the name from dest, that can be called from an object.
def main():
parser = optparse.OptionParser('usage%prog ' + \
'-H <target host> -u <user> -F <password list>')
parser.add_option('-H' , dest='tgtHost', type='string', \
help='specify target host')
parser.add_option('-u' , dest='user', type='string', \
help='specify the user')
parser.add_option('-F', dest='passwdFile', type='string', help='specify password file')
(options, args) = parser.parse_args()
host = options.tgtHost
passwdFile = options.passwdFile
user = options.user
It looks like something happened to the code formatting that introduced a bunch of **s.
If you want to know how it works, you can browse the source for add_option(...) - https://hg.python.org/cpython/file/2.7/Lib/optparse.py#l1008
Thanks man! Thats a very good start.
Documentation is provided here :
optparse — Parser for command line options
| 33,188
|
https://scicomp.stackexchange.com/questions/21252
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
https://scicomp.stackexchange.com/users/10160, knl
|
English
|
Spoken
| 366
| 467
|
Comparing two versions of the same hydrodynamic code and their error
So I have two versions of a hydrodynamic code that has the same underlying physics. Lets call them code A and B. However code B is more optimized and more object oriented. I was trying to compare the numerical results of both codes and see if they seem compatible. The way I'm doing this is running both codes with the same initial parameters and calculating a particular hydrodynamic value X.
X is in the order of magnitude of 1E6. To compare both codes I'm essentially doing
$$X(A)-X(B)= \epsilon,$$
where $\epsilon$ is some error. The test is giving $\epsilon=10^{-2}$.
This would mean that both codes spit out the same X for the first 8 digits.
How significant is this error? I'm using double precision for non-integers, would such a magnitude simply imply a cumulative round off error for the thousands of calculations involved in a hydro code? Or a fundamental difference I'm missing?
One cannot say much based on one number. Thus, it might be that the difference in implementation causes some additional floating point error or with an equal probability there can be a fundamental error in one of the codes. The best way of verifying numerical methods is to find mathematically proven facts regarding the convergence rates of the used techniques and check those numerically. More than once I have managed to get a correct solution with accuracy of multiple digits but could not achieve more due to minor implementation errors.
If two different codes agree to 8 digits on some non-trivial quantity, then that is far better than you'd expect in almost all cases. However, there are some cases where the quantity $X$ is poorly chosen, and consequently not indicative. For example, if you considered the total mass in a simulation, then two codes that are both conservative might give the same answer, but differ in almost every other aspect of the solutions they produce. In other words, the choice of $X$ matters. But if your answers are the same to 8 digits, then you're more than likely on the right track with both codes (or they both contain the exact same bug).
| 18,564
|
https://no.wikipedia.org/wiki/Shelby%20County%20%28Iowa%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Shelby County (Iowa)
|
https://no.wikipedia.org/w/index.php?title=Shelby County (Iowa)&action=history
|
Norwegian
|
Spoken
| 40
| 93
|
Shelby County er et fylke i den amerikanske delstaten Iowa. Hovedsetet er i Harlan.
Navn
Fylket er oppkalt etter generalmajor Isaac Shelby.
Referanser
Eksterne lenker
Fylker i Iowa
Fylker i USA etablert i 1851
1851 i Iowa
Shelby County (Iowa)
| 39,347
|
https://id.wikipedia.org/wiki/Lija
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Lija
|
https://id.wikipedia.org/w/index.php?title=Lija&action=history
|
Indonesian
|
Spoken
| 36
| 82
|
Lija (atau Lia) adalah desa yang terletak di Malta. Desa ini memiliki populasi sebesar 2.779 jiwa. Bersama dengan Attard dan Balzan, desa ini membentuk "The Three Villages".
Referensi
lija.gov.mt
Kota di Malta
Dewan lokal di Malta
| 48,931
|
https://en.wikipedia.org/wiki/Cheryl%20Burnett
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Cheryl Burnett
|
https://en.wikipedia.org/w/index.php?title=Cheryl Burnett&action=history
|
English
|
Spoken
| 542
| 740
|
Cheryl Elaine Burnett (born June 13, 1958) is an American former women's college basketball coach and player. She was the head coach of the Southwest Missouri State women's basketball team from 1987 to 2002. At Southwest Missouri State, she compiled a 319–136 record () and led her teams to the Final Four of the NCAA tournament in 1992 and 2001. She also served as the head coach of the Michigan Wolverines women's basketball team from 2003 to 2007, compiling a record of 35–83 (). She played college basketball at the University of Kansas from 1976 to 1980.
Playing career
Burnett is a native of Centralia, Missouri. She played basketball at Centralia High School where she was selected as an All-American during her senior year.
Burnett received a scholarship to play basketball at the University of Kansas. She was the first woman to receive a full athletic scholarship to that university. She was a starter at the guard position for the Kansas Jayhawks women's basketball team for all four years from 1976 to 1980. In 1977, she was selected as a Big Eight Conference All-Tournament player.
Kansas statistics
Coaching career
Early years
Burnett was drafted to play professional basketball by the New Jersey Gems of the Women's Professional Basketball League. She opted instead to pursue a career in coaching. In 1980, after graduating from Kansas, Burnett began her coaching career as an assistant girls' basketball coach at Lawrence High School in Lawrence, Kansas. In August 1981, she was hired as an assistant coach for the University of Illinois women's basketball team.
Southwest Missouri State
In 1984, Burnett was hired as an assistant coach of the Southwest Missouri State women's basketball team in Springfield, Missouri. She became the head coach in 1987 and held that post for 15 years from 1987 to 2002. Her teams won nine Missouri Valley Conference championships, received invitations to the NCAA Division I women's basketball tournament 10 times, and advanced to the Final Four in 1992 and 2001. She compiled an overall record of 319–136 () at Southwest Missouri State. Players recruited and developed by Burnett include Jackie Stiles who set the NCAA career scoring record with 3,393 points. In April 2002, Burnett resigned her post at Southwest Missouri State, indicating that she intended to look for another job.
University of Michigan
In December 2003, Burnett was hired by the University of Michigan as the head coach of the Michigan Wolverines women's basketball team. In four seasons at Michigan, Burnett compiled an overall record of 35–83 () and a record of 10–54 () against Big Ten Conference opponents. Her teams lost 20 or more games in her last three seasons at Michigan and finished in last place in the Big Ten in 2005 and 2006 and in 10th place in 2007. She retired as Michigan's head coach in March 2007.
Honors
In February 2003, Burnett was inducted into the Southwest Missouri State Hall of Fame. In October 2009, she was also inducted into Missouri Valley Conference Hall of Fame.
Head coaching record
References
1958 births
Living people
American women's basketball coaches
Basketball coaches from Missouri
Basketball players from Missouri
Michigan Wolverines women's basketball coaches
Kansas Jayhawks women's basketball players
Missouri State Lady Bears basketball coaches
People from Centralia, Missouri
| 41,144
|
https://nl.wikipedia.org/wiki/Balige%20II
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Balige II
|
https://nl.wikipedia.org/w/index.php?title=Balige II&action=history
|
Dutch
|
Spoken
| 25
| 58
|
Balige II is een bestuurslaag in het regentschap Toba Samosir van de provincie Noord-Sumatra, Indonesië. Balige II telt 525 inwoners (volkstelling 2010).
Plaats in Noord-Sumatra
| 5,578
|
https://stackoverflow.com/questions/40858663
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
AishApp, Santhosh Kumar, https://stackoverflow.com/users/5430303, https://stackoverflow.com/users/7223693
|
Danish
|
Spoken
| 351
| 770
|
How to get the data from local JSON, to the HTML page using ionic 2 typescript
I have this type of JSON file.
{
"records": {
"patients": {
"day": "Today",
"details": [
{
"name":"Diab",
"stat":"Pending",
"phno":"8197246465",
"patNames":"Sandra Adams",
"tests": [
{"name":"MCHC","result":"positive"}
]
}
]
}
}
}
How to bring each and every key into the html page or how to parse this one using service?
Thanks in advance.
You can do so by creating a service provider
import {Injectable} from '@angular/core';
import {Http, Response} from '@angular/http';
import 'rxjs/Rx';
@Injectable()
export class yourService {
constructor(public http:Http) {}
getData() {
return this.http.get("YOUR_PATH_TO_THE_JSON_FILE")
.map((res:Response) => res.json().YOUR_JSON_HEADER); //records in this case
}
}
Define the service in your ts constructor and call the method to parse through the data
this.yourService.getData().subscribe((data) => {
console.log("what is in the data ", data);
this.myjsondata = data;
});
Make sure to define the service provider in app.module.ts
For promises as in your case modify the code as follows:
In your service.
load() {
console.log('json called');
return new Promise(resolve => {
this.http.get('assets/data/patient.json').map(response => {
this.data = response.json();
resolve(this.data);
});
});
}
Here you are getting data and resolving to promise. To use this in html you have to get the data in your component page as follows.
this.yourService.load().then((data) => {
console.log("what is in the data ", data);
this.patdata= data;
});
You can now use the patdata in your html
<h1> {{patdata | json}} </h1>
load(){ console.log('json called'); return new Promise(resolve => { this.http.get('assets/data/patient.json').subscribe(response => { this.data = response.json(); console.log("json Data" ); console.log(this.data); this.processData(this.data); console.log(this.data); resolve(this.data); }); }); }
code inside the comment converts your json to promise and then returns the data. While the code i have shared uses observable. You can use either of it based on your need. have a look on the difference between observable and promises before deciding :)
okay its working instead of this.myjsondata = data i use this.patDat = data. then how to bring it to html.
use the second part of my code in yout ts file to use it in html. Instead of keyword "subscribe" use "then" as you are returning promise
| 43,236
|
https://eu.wikipedia.org/wiki/Saint-Loup-d%27Ordon
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Saint-Loup-d'Ordon
|
https://eu.wikipedia.org/w/index.php?title=Saint-Loup-d'Ordon&action=history
|
Basque
|
Spoken
| 362
| 1,033
|
Saint-Loup-d'Ordon Frantziako udalerria da, Yonne departamenduan dagoena, Borgoina-Franche-Comté eskualdean. 2013an biztanle zituen.
Demografia
Biztanleria
2007an Saint-Loup-d'Ordon udalerrian erroldatutako biztanleak 229 ziren. Familiak 96 ziren, horien artean 28 pertsona bakarrekoak ziren (16 bakarrik bizi ziren gizonak eta 12 bakarrik bizi ziren emakumeak), 40 seme-alabarik gabeko familiak ziren, 20 seme-alabak dituzten bikoteak ziren eta 8 seme-alabak dituzten guraso-bakarreko familiak ziren.
Biztanleriak, denboran, ondorengo grafikoan ageri den bilakaera izan du:
Erroldatutako biztanleak
<noinclude>
Etxebizitza
2007an 161 etxebizitza zeuden, 97 familiaren etxebizitza nagusia ziren, 51 bigarren erresidentzia ziren eta 13 hutsik zeuden. 158 etxeak ziren eta 2 apartamentuak ziren. 97 etxebizitza nagusietatik 83 bere jabearen bizilekua ziren, 9 alokairuan okupaturik zeuden eta 5 doan lagata zeuden; 5 etxek bi gela zituzten, 24 etxek hiru zituzten, 22 etxek lau zituzten eta 46 etxek bost zituzten. 77 etxek euren parking plaza propioa zuten azpian. 37 etxetan ibilgailu bat zegoen eta 51 etxetan bat baino gehiago zituzten.
Biztanleria-piramidea
2009an sexu eta adinaren araberako biztanleria-piramidea hau zen:
Ekonomia
2007an lan egiteko adina zuten pertsonak 138 ziren, horien artean 104 aktiboak ziren eta 34 inaktiboak ziren. 104 pertsona aktiboetatik 93 lanean zeuden (48 gizon eta 45 emakume) eta 11 langabezian zeuden (8 gizon eta 3 emakume). 34 pertsona inaktiboetatik 11 erretiraturik zeuden, 6 ikasten zeuden eta 17 "bestelako inaktibo" gisa sailkaturik zeuden.
Diru sarrerak
2009an Saint-Loup-d'Ordon udalerrian 105 unitate fiskal zeuden, 245 pertsonek osaturik. Pertsona bakoitzeko diru-sarrera fiskalaren mediana urteko 17.826 euro zen.
Ekonomia jarduerak
2007an zeuden 12 komertzioetatik, 1 erauzte enpresa zen, 1 eraikuntza enpresa zen, 3 ibilgailuen saltze eta konpontze enpresak ziren, 1 garraio enpresa zen, 1 ostalaritza eta jatetxe enpresa zen, 2 zerbitzu enpresak ziren, 2 administrazio publikoko enpresak ziren eta 1 «beste zerbitzu jarduera batzuk» multzoan sailkatutako enpresa zen.
2009an zeuden norbanakoentzako 3 zerbitzu publikoetatik, 1 igeltseroa zen, 1 albaitaria eta 1 jatetxe.
2000. urtean Saint-Loup-d'Ordon udalerrian 19 nekazaritza-ustiategi zeuden, 858 hektarea erabiltzen.
Hezkuntza eta osasun ekipamenduak
2009an inguruko herriekin osatutako haur-eskola bat zegoen.
Gertuen dauden herriak
Diagrama honek gertuen dauden herriak erakusten ditu.
Erreferentziak
Kanpo estekak
Résumé statistique INSEEren udalerriko estatistiken laburpena.
Évolution et structure de la population INSEEren udalerriko datuen fitxa.
France par comune Frantziako udalerri guztietako datu zehatzak mapa baten bitartez eskuragarri.
Yonneko udalerriak
| 26,637
|
https://stackoverflow.com/questions/26921756
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,014
|
Stack Exchange
|
Rosberg Linhares, Swiftmatt, https://stackoverflow.com/users/2160765, https://stackoverflow.com/users/2856289
|
English
|
Spoken
| 471
| 937
|
Change HTML Button Based On Cookie Existance
I want to edit an html button that will tell the user if they have read the page that the button is on. The button is at the bottom of the page, and starts off being red. After the user presses the button, a cookie is generated and the changeButton() function checks to see if the cookie has been created, and then changes the button to green. Even after the user closes and reopens the browser, the button should stay green until the cookie has been deleted.
My browser just shows the button as being green on page loadup, before I even hit the button. Any help would be greatly appreciated.
<head>
<script type="text/javascript">
function changeButton()
{
var name = 'user_read_the_page' + '=';
var ca = document.cookie.split(';');
for(var i=0; i<ca.length; i++)
{
var c = ca[i];
while(c.charAt(0)==' ')
{
c = c.substring(1);
}
if(c.indexOf(name) != -1)
{
var output = c.substring(name.length,c.length);
}
}
document.getElementById("test").innerText = output;
if(output == 1)
{
cookie_exists = 1;
}
else
{
cookie_exists = 0;
}
if(cookie_exists == 1)
{
document.getElementById("read_button").style.backgroundColor = "green";
document.getElementById("read_button").style.color = "white";
document.getElementById("read_button").style.fontWeight = "bold";
document.getElementById("read_button").innerText = "\u2714 You Have Read This Page";
}
else
{
document.getElementById("read_button").style.backgroundColor = "red";
document.getElementById("read_button").style.color = "white";
document.getElementById("read_button").style.fontWeight = "bold";
document.getElementById("read_button").innerText = "\u2718 Please Read This Page";
}
return "";
}
</script>
</head>
...
<button id="read_button" onclick="createCookie('user_read_the_page', 30)"></button>
<script language="javascript">
function createCookie(name, days)
{
var expire = new Date ();
expire.setTime (expire.getTime() + (24 * 60 * 60 * 1000) * days);
document.cookie = name + "=1; expires=" + expire.toGMTString();
changeButton();
}
</script>
Where is the code to initialize your button? There are only function declarations here... so, for me, the button does not appear green at page startup...
Its at the top of the second code window. The text and color get added when the "output" variable satisfies one of the if-than conditions.
Ok, at the fist time that the button is clicked, it gets green... Did you see that you are always setting the cookie to 1 (in the createCookie function) before reading it (in the changeButton function)?
Yes. Essentially, this is how everything should work. The button should be red upon first visit to the page. And then, a user comes along, reads the information on the page, and then clicks the button, which then adds a cookie to their computer, with a value of 1 in it. When they revisit the site, the code will automatically see the 1 in the cookie, and automatically light back up to green, letting the user know they already read this information. If the user never clicks the button, the button will always be red when they visit the site.
I think the error is that you have to remove the cookie to see the red case... Here is a demo
| 34,143
|
https://no.wikipedia.org/wiki/Leptoderiana
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Leptoderiana
|
https://no.wikipedia.org/w/index.php?title=Leptoderiana&action=history
|
Norwegian
|
Spoken
| 154
| 456
|
Se Systematisk inndeling
Leptoderiana er en slekt av biller som tilhører den artsrike underfamilien Cerambycinae i familien trebukker (Cerambycidae).
Utseende
Middelsstore, slanke, svarte trebukker, dekkvingene gjerne med grønnlig metallglans. Hodet er omtrent så bredt som pronotum, ovalt. Antennene er nokså tynne, noe kortere enn kroppen. Pronotum er smalt, lengre enn bredt, mer eller mindre tønneformet. Dekkvingene er jevnbrede, forholdsvis tynne, tett og kraftig punkterte. Beina er slanke, med litt klubbeformede lår.
Utbredelse
Artene lever i Tanzania og Den Sentralafrikanske Republikken.
Systematisk inndeling
Ordenen biller, Coleoptera Linnaeus, 1758
Underordenen Polyphaga Emery, 1886
Gruppen (infraorden) Cucujiformia Lameere, 1938
Overfamilien Chrysomeloidea Latreille, 1802 (=Phytophaga)
Familien trebukker, Cerambycidae Latreille, 1802
Underfamilien tømmerbukker, Cerambycinae Latreille, 1802
Stammen Cleomenini Lacordaire, 1869 eller Sestyrini
Slekten Leptoderiana Bjørnstad, 2013
Leptoderiana coerulea (Aurivillius, 1914)
Leptoderiana teocchii (Adlbauer, 2006)
Kilder
Katalog med utbredelsesdata
Eksterne lenker
Bildegalleri
Cerambycinae
Biller formelt beskrevet i 2013
Dyr formelt beskrevet av Anders Bjørnstad
Tanzanias insekter
Den sentralafrikanske republikks insekter
| 27,249
|
https://nl.wikipedia.org/wiki/Antonij%20Johan%20ten%20Cate
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Antonij Johan ten Cate
|
https://nl.wikipedia.org/w/index.php?title=Antonij Johan ten Cate&action=history
|
Dutch
|
Spoken
| 137
| 273
|
Antonij Johan ten Cate (Delden, 10 augustus 1822 − aldaar, 17 december 1886) was een Nederlands burgemeester.
Biografie
Ten Cate was een zoon van Hendrik ten Cate en Maria ter List of Elbert. Hij trouwde in 1871 met Gerharda barones Sloet tot Westerholt (1831-1918), telg uit het oud-adellijke geslacht Sloet, uit welk huwelijk geen kinderen werden geboren. In 1852 werd hij benoemd tot burgemeester van Blokzijl (tot 1859), in 1859 van Stad Vollenhove en Ambt Vollenhove (tot 1885) en in 1885 tot burgemeester van Stad Delden en Ambt Delden. Het laatste ambt bekleedde hij tot zijn overlijden.
A.J. ten Cate overleed in die laatste gemeente in 1886, op 64-jarige leeftijd. Zijn weduwe overleefde hem meer dan dertig jaar.
Burgemeester van Blokzijl
Burgemeester van Stad Vollenhove
Burgemeester van Ambt Vollenhove
Burgemeester van Stad Delden
Burgemeester van Ambt Delden
| 12,532
|
https://nds.wikipedia.org/wiki/Reeth
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Reeth
|
https://nds.wikipedia.org/w/index.php?title=Reeth&action=history
|
Low German
|
Spoken
| 57
| 155
|
Reeth betekent
Reeth, Oort in Gelderland, Nedderlannen,
Reeth, Oort in Richmondshire, North Yorkshire, England.
Reeth is de Familiennaam von
Adèle Van Reeth (* 1982), franzöösche Philosofin un Höörfunkproduzentin,
Bob Van Reeth (* 1943), belgischen Architekt,
Jozef van Reeth (1843–1923), belgischen Jesuit, Missionar un Bischop.
Kiek ok bi: Van-Reeth-Gletscher, Gletscher in de Königin-Maud-Bargen.
Kiek ok bi: Reet, Reth.
| 21,047
|
https://fr.wikipedia.org/wiki/Rush%20Hour%204
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Rush Hour 4
|
https://fr.wikipedia.org/w/index.php?title=Rush Hour 4&action=history
|
French
|
Spoken
| 161
| 273
|
Rush Hour est une comédie policière américaine qui sera réalisé par Brett Ratner dont la sortie n’est pas précisée.
Synopsis
Fiche technique
Titre original et français : Rush Hour
Titre québécois : Heure limite
Réalisation : Brett Ratner
Pays de production : ,
Langues originales : anglais, chinois
Durée :
Budget :
Distribution
Jackie Chan : l'inspecteur en chef Yan Naing Lee, police de Hong Kong
Chris Tucker : l'inspecteur James Carter, police de Los Angeles
Production
Lors du Red Sea Film Festival qui se déroule à Djeddah du 1er au , Jackie Chan révèle que Rush Hour 4 est bel et bien en production.
Saga Rush Hour
1998 : Rush Hour de Brett Ratner
2001 : Rush Hour 2 de Brett Ratner
2007 : Rush Hour 3 de Brett Ratner
: Rush Hour 4
Notes et références
Liens externes
Film sur le FBI
Film réalisé par Brett Ratner
Film Rush Hour
Film de kung-fu
Comédie policière américaine
Comédie d'action américaine
| 43,954
|
https://stackoverflow.com/questions/39198809
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
Bee, Emman Sun, https://stackoverflow.com/users/5584971, https://stackoverflow.com/users/805563
|
Finnish
|
Spoken
| 448
| 3,460
|
WSO2 APIM 2.0 Clustering deployment issue when deploy sample API
After i deployed APIM 2.0 in one server with 2 pubstore nodes, 2 key manager nodes, 1 gateway manager and 2 gateway worker nodes i login to publisher and deploy sample API, but i encounter such error and failed to deploy it:
TID: [-1234] [] [2016-08-29 00:25:55,799] ERROR {JAGGERY.site.blocks.item-design.ajax.add:jag} - org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :PizzaShackAPI (/publisher/modules/api/add.jag#108)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_5(/publisher/modules/api/add.jag:108)
at org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher/modules/api/add.jag)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_39(/publisher/modules/api/module.jag:124)
at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_anonymous_3(/publisher/site/blocks/item-design/ajax/add.jag:390)
at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_script_0(/publisher/site/blocks/item-design/ajax/add.jag:21)
at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)
at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.exec(/publisher/site/blocks/item-design/ajax/add.jag)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588)
at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:377)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :PizzaShackAPI
at org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:647)
at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:48)
at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:1059)
at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_createAPI(APIProviderHostObject.java:964)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 63 more
Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while performing registry transaction operation
at org.wso2.carbon.apimgt.impl.AbstractAPIManager.handleException(AbstractAPIManager.java:1063)
at org.wso2.carbon.apimgt.impl.APIProviderImpl.createAPI(APIProviderImpl.java:2348)
at org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:600)
... 71 more
Caused by: org.wso2.carbon.governance.api.exception.GovernanceException: Error in associating lifecycle for the artifact. id: a6637158-0f26-460e-86a5-c3cc0c67c1d4, path: /apimgt/applicationdata/provider/admin/PizzaShackAPI/1.0.0/api.
at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:396)
at org.wso2.carbon.apimgt.impl.APIProviderImpl.createAPI(APIProviderImpl.java:2294)
... 72 more
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find aspectName 'APILifeCycle'
at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2469)
at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:499)
at org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1901)
at org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:61)
at org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
at org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1870)
at java.security.AccessController.doPrivileged(Native Method)
at org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1870)
at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:383)
... 73 more
{JAGGERY.site.blocks.item-design.ajax.add:jag}
Any clue for the root cause?
Is the user a tenant one or super tenant one?
I did NOT config multiple tenant support.
This can happen due to many reasons. Corrupted data in the databaseis one of them. Can you try clearing database and restart with -Dsetup option? What is the database you're using. I assume registry mounting configurations are done properly. Please double check anyway.
I used oracle, let me try to clear the registry database first.
after database recreation, the sample API is deployed successfully. but when i generate access token, i encounter "unable to find valid certification path to requested target"
Replied to the question.
This can happen due to many reasons. Corrupted data in the database is one of them. If that is the case, clearing database might fix the issue.
I used existing database for distributed & cluster deployment, then i encounter such issue. Thx!
| 45,559
|
https://uk.wikipedia.org/wiki/%D0%A0%D1%83%D1%85%20%28%D0%A0%D0%B0%D0%B4%D0%B7%D1%8C%D0%BE%D0%BD%D0%BA%D1%83%D0%B2%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Рух (Радзьонкув)
|
https://uk.wikipedia.org/w/index.php?title=Рух (Радзьонкув)&action=history
|
Ukrainian
|
Spoken
| 298
| 801
|
«Рух Радзьонкув» () — професіональний польський футбольний клуб з міста Радзьонкув.
Історія
14 серпня 1919 року був організований футбольний клуб, який отримав назву «Товариство Гри і Забав Радзьонкув». 28 травня 1920 був перейменований на «Рух Радзьонкув». Потім команда стартувала у окружній лізі А.
Після Другої світової війни у 1945 року клуб відновив діяльність. У 1952 команда дебютувала у ІІ лізі, але у результаті реформи системи футбольних ліг наступний сезон розпочала у ІІІ лізі. У 1959 році понизилась до IV ліги, а після сезону повернулася до ІІІ ліги. Але команда не змогла утриматися в ній і у 1961 знову спала до IV ліги. На початку 1964 року було прийнято рішення об'єднати два клуби з Радзьонкува — «Рух» і «Гурнік» — в один. У сімдесятих роках XX століття команда вдало виступала в класі А, поспіль декількох сезонів займуючи місця у верхній частині таблиці. Тільки у 1989 удалося знову повернутися до ІІІ ліги. У 1996 другий раз стартувала у ІІ лізі, а у 1999 році дебютувала у І лізі.
Після трьох сезонів у найвищій лізі команда почала опускатися з ліги в лігу: у 2001 — ІІ ліга, у 2003 — ІІІ ліга, у 2006 — IV ліга. У 2008 у результаті реформи системи футбольних ліг команда залишилась у четвертій за рівнем лізі, яка стала називатися ІІІ ліга. Літом 2009 року команда зайняла 1 місце у своїй групі ІІІ ліги і здобула путівку до ІІ ліги. Наступного сезону знову команда зайняла 1 місце у західній групі ІІ ліги і повернулася до І ліги.
Назви
14.08.1919: ТГіЗ Радзьонкув ()
28.05.1920: ТС Рух Радзьонкув ()
1949: ГКС Рух Радзьонкув ()
01.07.2005: КС Рух Радзьонкув ()
Титули та досягнення
Чемпіонат Польщі:
6 місце (1): 1999
Кубок Польщі:
чвертьфіналіст (1): 1998
Посилання
Офіційний сайт
Профіль клубу на сайті 90minut
Футбольні клуби Польщі
Футбольні клуби, засновані 1919
| 35,062
|
https://stackoverflow.com/questions/15547684
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,013
|
Stack Exchange
|
Mangesh, Tom, https://stackoverflow.com/users/2194922, https://stackoverflow.com/users/949372
|
Yoruba
|
Spoken
| 448
| 997
|
Mysql select value of the key from single field of table having multiple key-value pairs
I have the table like :
services:
+----+-----------+------------+-------------+
| id | name | service_id | description |
+----+-----------+------------+-------------+
| 1 | CHAT | 1 | |
| 2 | SMS | 1 | |
+----+-----------+------------+-------------+
service_features:
+----+------------+------------+-------------+
| id | service_id | name | description |
+----+------------+------------+-------------+
|10 | 1 | Audio | |
|20 | 1 | Video | |
|30 | 2 | BULKSMS | |
+----+------------+------------+-------------+
client_services:
+----+-----------+------------+----------------------------------+---------------------------------------------+
| id | client_id | service_id |service_features_id |service_values |
+----+-----------+------------+----------------------------------+---------------------------------------------+
|100 | 1000 | 1 |features:{10:enable, 20:disable} |values:{data_transfer:102400, quota:204800} |
|200 | 1001 | 2 |features:{30:enable} |values:{total_sms:100000, users:800} |
|300 | 1001 | 1 |features:{10:disable, 20:enable} |values:{quota:204800} |
+----+-----------+------------+----------------------------------+---------------------------------------------+
now I want the service value of any key i.e data_transfer or quota for client_id 1000 only from mysql select query. Answer should be 102400 or 204800 respectively
Is there any better way to formalize the tables or storing the information. Please suggest.
How do the feature values relate to the service_features? For example how do you know what data_transfer and quota goes with? You definitely want to normalize the data, but we need to know a little more about how the relationships work.
@Tom : Edited the column name to service_values and we are mapping client with service_id
There is absolutely a better way. Your schema needs two more tables, client_services_features and a client_services_values, instead of client_services. client_services_features has columns such as:
id
client_id
services_id
service_feature_id
isEnabled
And client_services_values has columns such as:
id
client_id
services_id
value_name
value_value
Whenever you find a table structure that is keeping lists of things in a row, you generally want to create a separate table for the list. When the list contains ids, you always want to create a separete table for the list.
Storing lists of values, json, or xml in a column makes querying for specific data very difficult. It's generally better to break out the data into separate rows.
I would make two other tables
client_services_values:
+----+-----------+------------+---------------------------------+
| id | client_id | service_id |service_type | service_value |
+----+-----------+------------+---------------------------------+
|1 | 1000 | 1 |data_transfer | 102400 |
|2 | 1000 | 1 |quota | 204800 |
|3 | 1001 | 2 |total_sms | 100000 |
|4 | 1001 | 2 |users | 800 |
|5 | 1001 | 1 |quota | 204800 |
+----+-----------+------------+---------------------------------+
and client_features
+----+-----------+------------+-----------------+
| id | client_id | feature_id | feature_value |
+----+-----------+------------+-----------------+
|1 | 1000 | 10 |enable |
|2 | 1000 | 20 |disable |
|3 | 1001 | 30 |enable |
|4 | 1001 | 10 |disable |
|5 | 1001 | 20 |enable |
+----+-----------+------------+-----------------+
| 32,525
|
https://fr.wikipedia.org/wiki/Bernard%20Lassimone
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Bernard Lassimone
|
https://fr.wikipedia.org/w/index.php?title=Bernard Lassimone&action=history
|
French
|
Spoken
| 183
| 318
|
Bernard Lassimone est un mathématicien français.
Lassimone a enseigné à l'Ecole gratuite de dessin, Institut de l'agriculture, des sciences et des arts de Limoges, pour la classe industrielle. Le nom de l’école apparaît également comme suit: "Écoles gratuites de dessin, de géométrie et de méchanique". Il y était professeur de design et également directeur de cette école, au moins depuis 1825.
Bernard Lassimone (parfois aussi écrit "Lassimonne") a enregistré en 1828 le premier brevet au monde pour un taille-crayon.
Auparavant, en 1822, un livre français décrivant une invention d’un autre Français, Monsieur C. A. Boucher, sur les taille-crayons. M. Boucher n'a pas demandé de brevet. Par conséquent, M. Lassimone ne peut être considéré comme l'inventeur du taille-crayon, mais comme le titulaire du premier brevet relatif à un taille-crayon.
Les taille-crayons après l'invention de Lassimone ont été vendus par Binant, un magasin de peinture à Paris. Ceci est démontré par une annonce dans un journal français du 17 février 1829. Là, les affûteuses ont été offertes à 7 francs 50 centimes.
Notes et références
Inventeur français du XIXe siècle
Mathématicien français du XIXe siècle
| 8,124
|
https://ar.wikipedia.org/wiki/%D9%82%D8%B1%D8%A9%20%D8%AF%D8%B1%D9%82%20%D8%B3%D9%81%D9%84%D9%8A
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
قرة درق سفلي
|
https://ar.wikipedia.org/w/index.php?title=قرة درق سفلي&action=history
|
Arabic
|
Spoken
| 24
| 58
|
قرة درق سفلي هي قرية في مقاطعة كليبر، إيران. عدد سكان هذه القرية هو 141 في سنة 2006.
مراجع
أماكن مأهولة في مقاطعة كليبر
| 24,995
|
https://stackoverflow.com/questions/56465218
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
Hans Passant, Simon Mourier, https://stackoverflow.com/users/11605290, https://stackoverflow.com/users/17034, https://stackoverflow.com/users/403671, ivte
|
English
|
Spoken
| 400
| 616
|
How to force the deployment of P/Invoked C++ library together with the C# tests on VS Test Explorer?
I'm trying to make a unit test for a C# library, runnable through the standard Test Explorer UI in Visual Studio 2019. The exact framework, such as xUnit or NUnit, doesn't matter (although I would prefer to use one that is shipped with VS by default, to make it easier for other people to contribute to the project). The issue is that the library P/Invokes some C++ code from another project that it depends on.
This always results in errors such as
Message: System.DllNotFoundException : Unable to load DLL 'CppImplementation.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Looks like the issue is that running through [Test]->[Run]->[All Tests] completely ignores the Working Directory settings for any of the projects, and deploys the tests somewhere before running them. The C++ dll is not being deployed, so later the code fails to find it anywhere.
The way I'm calling the C++ methods from C# is:
[DllImport("CppImplementation.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
private static extern int someFunction();
I tried creating .testsettings file in the solution and setting it as active. There I checked "Enable deployment" and added the compiled C++ .dll to the list of "Additional files and directories to deploy" (which already looks weird, because it doesn't look like I can customize this list per configuration, and I would prefer to deploy the correct version, but for now I would be happy to make it work in at least one).
This seems to have no effect whatsoever. The .dll is not getting copied anywhere, and all tests still fail to find it.
I am looking for a way to either force the deployment, or maybe somehow reconfigure the tests to do the right thing anyway. The closer it is to "the normal way to do it in VS2019" the better, due to the nature of the project.
What I usually do is copy (using post-build events in project, or manually) the .dll(s) at the referencing project's root (the .dll is a project item) and choose "Copy If Newer" in Visual Studio properties. This way, the .dll will always be copied aside the output of the referencing project (including dependent projects) each time you build it (if it has changed)
https://stackoverflow.com/questions/3863419/are-there-any-better-ways-to-copy-a-native-dll-to-the-bin-folder
Thanks, this seems to work.
| 23,004
|
https://zh.wikipedia.org/wiki/%E7%8E%8B%E7%9A%87%E5%90%8E%20%28%E5%8C%97%E9%AD%8F%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
王皇后 (北魏)
|
https://zh.wikipedia.org/w/index.php?title=王皇后 (北魏)&action=history
|
Chinese
|
Spoken
| 9
| 267
|
平文皇后王氏 ,广宁人,十六国代国拓跋鬱律的正妻。
王氏十三岁时进宫,她在318年生下拓跋什翼犍。321年,拓跋鬱律遇难後,王氏把拓跋什翼犍藏在裤中。他没有哭泣,幸免于难。后来拓跋什翼犍夺得王位後,王氏出了很大力。王氏在建国十八年(355年)去世后,葬在云中金陵。北魏建立,北魏道武帝拓跋珪追尊曾祖母谥号平文皇后,配飨太庙。
延伸阅读
参考资料
《魏书》列传第一
代国君主配偶
北魏追封皇后
~
| 45,191
|
https://stackoverflow.com/questions/51522068
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
Agustin Del Pino, Joachim Sauer, RaenonX, Robert, https://stackoverflow.com/users/10134194, https://stackoverflow.com/users/11571888, https://stackoverflow.com/users/1431720, https://stackoverflow.com/users/40342
|
English
|
Spoken
| 159
| 335
|
Bash Permission Denied when try to execute a jar files dependecies (SUSE Linux)
I've a JAR file with dependencies, when I execute it in Suse Console, an error appears.
This is the command:
java -cp ./arba-api-host-0.0.1-SNAPSHOT.jar;./log4j-1.2.17.jar;./json-20180130.jar;./junit-4.12.jar ar.gov.aba.callnatural.LlamadaNatural "S" "SECALL" " " " " " " " " " "
And this is the error:
-bash: ./log4j-1.2.17.jar: Permission denied
-bash: ./json-20180130.jar: Permission denied
-bash: ./junit-4.12.jar: Permission denied
Those JARs are the dependencies.
On Linux you need to use : as the separator in your classpath. ; is already used to separate commands in the shell.
Thank you sooooooo much. Beginner errors :p.
The other answer says NOT to use : as the separator on Linux?
On Linux don't use : as the separator in your classpath. the ; is used to separate this.
...to separate what? Looks like your answer was truncated. Can you [edit] it?
The comment in the question says to use : as the separator on Linux?
| 17,921
|
https://ar.wikipedia.org/wiki/%D8%B8%D8%A7%D9%84%D9%85%20%D9%88%D9%84%D9%83%D9%86
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ظالم ولكن
|
https://ar.wikipedia.org/w/index.php?title=ظالم ولكن&action=history
|
Arabic
|
Spoken
| 106
| 326
|
ظالم ولكن هي أغنية من غناء طلال مداح و كتابة أحمد صادق، وألحان طلال مداح.
كلمات الأغنية
ظالم ولكن في القلب لسى هواه
كم قلت بكره يحن القاه يزيد في جفاه
ينسى الهوا ينساه قولوله ليه ينساه
يعني عشان بهواه يعمل كدا فيه
فين عطفه فين شوقه ياما بكي ليه
واحنا بنتعاهد وحلف لي بعنيه
هي عيوني رخاص لما قسي عليه
ينسى الهوا ينساه قولوله ليه ينساه
يعني عشان بهواه يعمل كدا فيه
مظلوم معاه في الحب محبوبي ظالمني
وعشان انا بحب فكر يعذبني
لو قلت لقلب توب عيني تكذبني
ينسى الهوا ينساه قولوله ليه ينساه
يعني عشان بهواه يعمل كدا فيه.
مراجع
أغاني طلال مداح
| 47,782
|
https://el.wikipedia.org/wiki/%CE%A7%CE%B1%CF%8A%CE%BA%CE%B1%CF%83%CE%AD%CE%BD
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Χαϊκασέν
|
https://el.wikipedia.org/w/index.php?title=Χαϊκασέν&action=history
|
Greek
|
Spoken
| 30
| 94
|
Το Χαϊκασέν (αρμενικά: , έως το 1967 γνωστό ως Γαρασιρίν ή Γαραμπασάρ) είναι αγροτική κοινότητα του μαρζ του Αρμαβίρ, στην Αρμενία. Το 2009, αριθμούσε κατοίκους.
Παραπομπές
Αγροτικές κοινότητες του Αρμαβίρ
| 34,293
|
https://sv.wikipedia.org/wiki/Gypsophila%20heteropoda
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Gypsophila heteropoda
|
https://sv.wikipedia.org/w/index.php?title=Gypsophila heteropoda&action=history
|
Swedish
|
Spoken
| 32
| 88
|
Gypsophila heteropoda är en nejlikväxtart. Gypsophila heteropoda ingår i släktet slöjor, och familjen nejlikväxter.
Underarter
Arten delas in i följande underarter:
G. h. heteropoda
G. h. minutiflora
Källor
Externa länkar
Slöjor
heteropoda
| 4,575
|
https://it.wikipedia.org/wiki/Jagged
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Jagged
|
https://it.wikipedia.org/w/index.php?title=Jagged&action=history
|
Italian
|
Spoken
| 122
| 250
|
Jagged è il diciassettesimo album discografico di Gary Numan, pubblicato dalla Cooking Vinyl Records per il mercato inglese e dalla Metropolis Records per il mercato statunitense il 13 marzo 2006.
Tracce
(Musiche e testi di Gary Numan)
Pressure – 5:19
Fold – 5:47
Halo – 4:17
Slave – 6:02
In a Dark Place – 6:06
Haunted – 5:31
Blind – 7:01
Before You Hate It – 5:14
Melt – 5:18
Scanner – 6:02
Jagged – 5:27
Musicisti
Gary Numan – voce, tastiere, chitarra
Steve Harris - chitarra
Rob Holliday – chitarra, basso
Ade Fenton – tastiere
Andy Gray – tastiere
Richard Beasley - batteria
Monti – batteria, tastiere
Gordon Young – tastiere
Jerome Dillon – batteria
Collegamenti esterni
Album di musica elettronica
| 15,347
|
https://blender.stackexchange.com/questions/129009
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
English
|
Spoken
| 116
| 161
|
blender 2.80 AV sync / frame dropping option
I'm trying to edit a video in the blender VSE and, as expected, the playback framerate isn't realtime, which would be fine in a normal situation; however, the audio plays fine, but the frames don't "skip" to catch up with it, so when I pause the video I'm actually in a different place in the sequence than what I hear.
In blender 2.7 this was fixed by using the AV Sync or frame dropping options, but I can't seem to find those in blender 2.80?
It's still at the top of the playback menu but now in it's own drop down sub-menu. It says No Sync by default.
| 36,346
|
|
https://war.wikipedia.org/wiki/Penichrophorus%20nasuta
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Penichrophorus nasuta
|
https://war.wikipedia.org/w/index.php?title=Penichrophorus nasuta&action=history
|
Waray
|
Spoken
| 34
| 62
|
An Penichrophorus nasuta in uska species han Insecta nga ginhulagway ni Carl Stål. An Penichrophorus nasuta in nahilalakip ha genus nga Penichrophorus, ngan familia nga Membracidae. Waray hini subspecies nga nakalista.
Mga kasarigan
Penichrophorus
| 1,177
|
https://it.wikipedia.org/wiki/Passare%20per%20le%20bacchette
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Passare per le bacchette
|
https://it.wikipedia.org/w/index.php?title=Passare per le bacchette&action=history
|
Italian
|
Spoken
| 102
| 196
|
Il passare per le bacchette (in inglese running the gauntlet) era una punizione corporale nella quale un prigioniero era costretto a camminare tra due file di uomini, che lo colpivano ripetutamente con fruste o corde.
La punizione veniva utilizzata soprattutto nell'ambito militare come punizione per i ladri, gli ubriaconi e generalmente per i soldati che disobbedivano agli ordini, ma anche come tortura per i prigionieri.
Senso figurato
In senso figurato l'espressione inglese running the gauntlet equivale all'italiano «passare dalle forche caudine», locuzione che si rifà alla battaglia nella quale furono umiliati i soldati romani.
Note
Altri progetti
Punizioni
Modi di dire italiani
| 38,109
|
https://unix.stackexchange.com/questions/299694
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
Anthon, Axel Tobieson, Kusalananda, Score_Under, Thorbjørn Ravn Andersen, cas, https://unix.stackexchange.com/users/116858, https://unix.stackexchange.com/users/182402, https://unix.stackexchange.com/users/33055, https://unix.stackexchange.com/users/44425, https://unix.stackexchange.com/users/44461, https://unix.stackexchange.com/users/4869, https://unix.stackexchange.com/users/7696, phuclv
|
English
|
Spoken
| 2,764
| 4,654
|
grep with pattern from one file (3.2Gb) matching in another file (4.8Gb)
I have two text files. One is a text file with name, email address and other fields. Some lines from file1:
John:myemail@gmail.com:johnson123:22hey
Erik:thatwhatsup@gmail.com:johnson133:22hey
Robert:whatsup@gmail.com:johnson123:21hey
Johnnny:bro@gmail.com:johnson123:22hey
The other contains only email addresses. Examples from file2:
1@gmail.com
rsdoge@gmail.com
mynameiscurt@hotmail.com
myemail@gmail.com
I want the output to be each full line of file1 that has an email address in file2. For example, myemail@gmail.com is in file2, so I'd like to see the following line from file1:
John:myemail@gmail.com:johnson123:22hey
Is there an easy way to search file1 and output the lines that match with the "list of email addresses" file2?
I have been searching for HOURS, but my Google searches (and StackOverflow searches) along with efforts on the command line have not been effective thus far.
Commands I have tried and think would work:
fgrep -f file2.txt file1.txt > matched.txt
grep -F -f ....
grep -F -x -f file1 file2 > common
etc., but they all got grep memory exhausted - the files I'm matching are 4.8GB (file1) and 3.2GB (file2, containing just the email addresses). I assume the memory gets exhausted with these commands. I found a method using find to execute the commands smoother I guess, but didn't get it to work.
tldr; need to match file2 with file1 and if there's a line from file2 that matches a line in file1, output it. The files are large and I need a safe way to not use up all the memory.
Thank you, searched whole day for this and experimented, didn't want to give up (5hours+).
This data is a candidate for putting into a database.
what do you mean?
I mean that since the data sets are so large, it may be more efficient to let a database engine perform the query rather than using Unix command-line tools to do it. I was just now looking into a way of reading the data into SQLite or MySQL to see if I could query it efficiently, but it's getting late over here so I don't know if I have time to do something real. Others may step in with other solutions.
alright man, it is in .txt format though.
That just means it's easily parsable. Whatever I do may not lead anywhere, but we'll see.
How many lines does the second file (file2) have? What does wc -l file2 say?
Do you have enough disk space to sort the two files according to the email addresses? This will enable you to create a small program which does not have to look at the whole file2 at once.
i have enough disk place. file2 has 145.5million lines and file1 35million
Why write such big data into a text file? That's not a good format for those data. A database will make searching, adding, removing... much more faster and easier
You have ":" as a record separator which is a valid character (if quoted) for the local part of an email address. Your bad choice of separator character makes it virtually impossible to use all kind of useful programs that can only handle simple separation of fields (like join, cut, etc)
Any progress on this one? (just curious)
Yes. I think I got some great answers but I applied costas answer and got it to work.! :)
@AxelTobieson Good! You may consider accepting his
answer.
It's rather difficult to operate a big files but you can do it in 3 steps:
Sort file1 by second field
sort -k2,2 -t: file1 >file1.sorted
Sort file2
sort file2 >file2.sorted
Join 2 files by email field
join -t: -2 2 file2.sorted file1.sorted -o 2.1,0,2.3,2.4 >matched.txt
You completely fail to take into account that : can occur in the local part of an email address.
@Anthon That''s a weakness of the format used to store the data, surely
I'm submitting a second answer to this question (this is an interesting problem). This one is totally different from my SQLite solution, and from the quite promising-looking sort+join solutions that starts to appear:
Using your initial approach with grep -f, but literally cutting down the problem a bit. Let's split the "query file", file2 into manageable chunks using split.
The split utility is able to split a file into a number of smaller files based on a line count.
A 3.2 Gb file with an average line length of 20 character has somewhere around 172,000,000 lines (unless I've made an arithmetic error). Splitting into 2000 files of 85000 lines per file is doable.
So,
$ mkdir testing
$ cd testing
$ split -l 85000 -a 4 ../file2
The -a 4 option tells split to use four characters after an initial x to create the filenames for the new files. The files will be called xaaaa, xaaab, etc.
Then run the original grep -f on these:
for f in x????; do
grep -F -f "$f" ../file1
done
This may make grep able to hold the now much smaller set of query patterns in memory.
UPDATE: With 145,526,885 lines, use split -l 72000 -a 4 to create roughly 2000 files.
Remember to clear out the testing directory each time you try to create a new set of split files.
Note that the split files from this answer are individually usable as input to any of the other answers you may get to this question.
highly appreciate the help, i am trying - will let you know if it works. also the 3.2 Gb file is at 145.526.885 lines (145.5m)
@AxelTobieson There, I think I got it right now. Sorry for my confusion. No guarantees it will work though. The sort+join solutions are probably good too.
@AxelTobieson I got some feedback and have a better version of the answer now.
Costas answer is probably the best given your exact problem because you have a field that has a 100% match.
But if your problem really was grepping for millions of regexps in billions of lines, then GNU Parallel has a description of how to do that: https://www.gnu.org/software/parallel/man.html#EXAMPLE:-Grepping-n-lines-for-m-regular-expressions
The simplest solution to grep a big file for a lot of regexps is:
grep -f regexps.txt bigfile
Or if the regexps are fixed strings:
grep -F -f regexps.txt bigfile
There are 3 limiting factors: CPU, RAM, and disk I/O.
RAM is easy to measure: If the grep process takes up most of your free memory (e.g. when running top), then RAM is a limiting factor.
CPU is also easy to measure: If the grep takes >90% CPU in top, then the CPU is a limiting factor, and parallelization will speed this up.
It is harder to see if disk I/O is the limiting factor, and depending on the disk system it may be faster or slower to parallelize. The only way to know for certain is to test and measure.
Limiting factor: RAM
The normal grep -f regexs.txt bigfile works no matter the size of bigfile, but if regexps.txt is so big it cannot fit into memory, then you need to split this.
grep -F takes around 100 bytes of RAM and grep takes about 500 bytes of RAM per 1 byte of regexp. So if regexps.txt is 1% of your RAM, then it may be too big.
If you can convert your regexps into fixed strings do that. E.g. if the lines you are looking for in bigfile all looks like:
ID1 foo bar baz Identifier1 quux
fubar ID2 foo bar baz Identifier2
then your regexps.txt can be converted from:
ID1.*Identifier1
ID2.*Identifier2
into:
ID1 foo bar baz Identifier1
ID2 foo bar baz Identifier2
This way you can use grep -F which takes around 80% less memory and is much faster.
If it still does not fit in memory you can do this:
parallel --pipepart -a regexps.txt --block 1M grep -F -f - -n bigfile |
sort -un | perl -pe 's/^\d+://'
The 1M should be your free memory divided by the number of cores and divided by 200 for grep -F and by 1000 for normal grep. On GNU/Linux you can do:
free=$(awk '/^((Swap)?Cached|MemFree|Buffers):/ { sum += $2 }
END { print sum }' /proc/meminfo)
percpu=$((free / 200 / $(parallel --number-of-cores)))k
parallel --pipepart -a regexps.txt --block $percpu --compress grep -F -f - -n bigfile |
sort -un | perl -pe 's/^\d+://'
If you can live with duplicated lines and wrong order, it is faster to do:
parallel --pipepart -a regexps.txt --block $percpu --compress grep -F -f - bigfile
Limiting factor: CPU
If the CPU is the limiting factor parallelization should be done on the regexps:
cat regexp.txt | parallel --pipe -L1000 --round-robin --compress grep -f - -n bigfile |
sort -un | perl -pe 's/^\d+://'
The command will start one grep per CPU and read bigfile one time per CPU, but as that is done in parallel, all reads except the first will be cached in RAM. Depending on the size of regexp.txt it may be faster to use --block 10m instead of -L1000.
Some storage systems perform better when reading multiple chunks in parallel. This is true for some RAID systems and for some network file systems. To parallelize the reading of bigfile:
parallel --pipepart --block 100M -a bigfile -k --compress grep -f regexp.txt
This will split bigfile into 100MB chunks and run grep on each of these chunks. To parallelize both reading of bigfile and regexp.txt combine the two using --fifo:
parallel --pipepart --block 100M -a bigfile --fifo cat regexp.txt \
\| parallel --pipe -L1000 --round-robin grep -f - {}
If a line matches multiple regexps, the line may be duplicated.
Bigger problem
If the problem is too big to be solved by this, you are probably ready for Lucene.
Important disclaimer: I have tested this on the data provided in the question. The loading of several gigabytes of data into a SQLite database may take a lot of time. The querying by using two text fields may be inefficient. Disk performance may factor in. Etc. etc.
The following sh script will create the SQLlite database database.db (this file will be deleted if it already exists), create the tables qadr and data, and load the data into the two tables (file1 into data and file2 into qadr). It will then create an index on data.adr.
#!/bin/sh
address_file="file2"
data_file="file1"
database="database.db"
rm -f "$database"
sqlite3 "$database" <<END_SQL
CREATE TABLE qadr ( adr TEXT );
CREATE TABLE data ( name TEXT, adr TEXT, tag1 TEXT, tag2 TEXT );
.separator :
.import "$data_file" data
.import "$address_file" qadr
VACUUM;
CREATE UNIQUE INDEX adri ON data(adr);
VACUUM;
END_SQL
The creation of the index assumes that the addresses in file1 are unique (that is, that the second :-delimited field is unique). If they are not, then remove UNIQUE from the CREATE INDEX statement (ideally, they are unique, and ideally, the lines in file2 are also unique).
I've never worked with SQLite and these amounts of data, but I know that multi-gigabyte imports into MongoDB and MySQL can be painfully slow, and that index creation likewise can be time consuming. So what I'm basically saying is that I'm just throwing this out there for someone with a lot of data to test.
Then, it's a matter of one simple query:
$ sqlite3 database.db 'SELECT data.* FROM data JOIN qadr ON (data.adr = qadr.adr)'
John|myemail@gmail.com|johnson123|22hey
or possibly even just
$ sqlite3 database.db 'SELECT * FROM data NATURAL JOIN qadr'
John|myemail@gmail.com|johnson123|22hey
Someone with more SQLite knowledge will surely give a constructive comment on this.
Just using : as a seperator is a overly simlistic. A : can be in the local part of a valid email address.
@Anthon Didn't know that. This will require submitting the data to some formatting pre-import, which may require parsing and validating email addresses. I will consider that outside the scope of what I'm willing to do for this particular question. The other answers may be more fruitful if this is the case (or even regardless of whether there are exotic addresses in the list).
the : separator can be fixed easily with awk or perl. split into an array using : as separator. if the array has 4 fields, use it as is. if it has 5 fields, join fields 2&3 with a :, delete field 3, and then use. "use" could be as simple as output with TAB delimiters and pipe into sqlite for import. or correctly quoted and CSV. or json, or XML. BTW, with files of this size, I'd be inclined to use postgresql or mysql instead of sqlite.
If you need to avoid a DB solution (not sure why, it seems the best idea to me), you could do it by sorting the two files on the email addresses and then using the join command, which approximates what a DB would do.
Here's what I did:
sort -t: +1 file1 -o file1
sort file2 -o file2
join -t: -o 1.1,1.2,1.3,1.4 -1 2 file1 file2
That seems to do the right thing with your sample data. It sorts the files in place. If you don't want that, change the -o option on the sorts to temp file names and then use those in the join. Also, if you actually have other than 4 fields in the first file you have to account for that in the -o option to join.
For more details, consult man pages.
You completely fail to take into account that : can occur in the local part of an email address.
Something like this would work, but I'm not sure it's a good idea depending on your use-case (untested):
while read f2line
do
f1=$(grep $line file1)
[[ ! -z $f1 ]] && echo $f1line
done < file2
Another possible solution if you want more of a one-liner method (quickly tested below):
grep . file2 | xargs -i^ grep ^ file1
Which yielded:
root@7Z233W1 (/tmp)# cat f1
John:myemail@gmail.com:johnson123:22hey
Erik:thatwhatsup@gmail.com:johnson133:22hey
Robert:whatsup@gmail.com:johnson123:21hey
Johnnny:bro@gmail.com:johnson123:22hey
root@7Z233W1 (/tmp)# cat f2
1@gmail.com
rsdoge@gmail.com
mynameiscurt@hotmail.com
myemail@gmail.com
root@7Z233W1 (/tmp)# grep . f2 | xargs -i^ grep ^ f1
John:myemail@gmail.com:johnson123:22hey
The second solution look more plausible as the first one does one grep per line in a 3.2 Gb file.
Here's a version of Kusalananda's script that uses perl to transform file1 from : separated to TAB separated before feeding it into sqlite3.
The embedded perl script checks to see if there are 5 fields rather than 4. If there are, it appends field 3 to field 2 (restoring the : that was removed by the autosplit), then deletes field 3.
#!/bin/sh
address_file="file2"
data_file="file1"
database="database.db"
rm -f "$database"
sqlite3 "$database" <<END_SQL
CREATE TABLE qadr ( adr TEXT );
CREATE TABLE data ( name TEXT, adr TEXT, tag1 TEXT, tag2 TEXT );
.mode line
.import "$address_file" qadr
END_SQL
perl -F: -lane 'if (@F == 5) {
$F[1] .= ":" . $F[2]; # perl arrays are zero-based
delete $F[2];
};
print join("\t",@F);' $data_file |
sqlite3 "$database" -separator $'\t' '.import /dev/stdin data'
sqlite3 "$database" <<END_SQL
VACUUM;
CREATE UNIQUE INDEX adri ON data(adr);
VACUUM;
END_SQL
IMO, sqlite isn't suitable for a database this large. I'd recommend using mysql or postgresql instead. For this kind of task, mysql's raw speed probably makes it a better choice - it's faster for simple things like this but postgresql is much faster for more complex tasks - in my experience, pg is "smart fast" (i.e. it can achieve massive speed improvements in complex tasks by working smart rather than working hard), mysql is "dumb fast" (i.e. it works hard, without much capability to work smart).
The script above can easily be adapted to work with the psql or mysql command line clients instead of sqlite3, but i'd modify the CREATE TABLE commands to use fixed-size CHARACTER(size) instead of TEXT, where size is a reasonable guess at what the maximum size for each field is - e.g. maybe 255 characters for the adr field, and 10-50 characters for the others.
one possible optimisation is to careful choose the field sizes so that each record is an even divisor of your drive's block size (taking into account mysql/postgresql's per-record overhead). 512 bytes should be good for all common block sizes. make the fields whatever size you need, and add an extra, unused, CHARACTER(size) field to make up the difference. The point of doing this is so that records never cross a block boundary, so the db engine only ever has to read in one disk block to get all of the data for a given record (actually, it will read multiple records in one block with most current block sizes, but that only helps performance, can't hurt it).
https://dba.stackexchange.com/ is probably the best site to search or ask for info about optimising record sizes.
| 10,001
|
https://stackoverflow.com/questions/55648115
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
English
|
Spoken
| 496
| 1,259
|
Python Post Request - Getting 415 Error When Sending Files via Outlook API
I've been having some trouble sending files via python's rest module. I can send emails without attachments just fine but as soon as I try and add a files parameter, the call fails and I get a 415 error.
I've looked through the site and found out it was maybe because I wasn't sending the content type of the files when building that array of data so altered it to query the content type with mimetypes; still 415.
This thread: python requests file upload made a couple of more edits but still 415.
The error message says:
"A supported MIME type could not be found that matches the content type of the response. None of the supported type(s)"
Then lists a bunch of json types e.g: "'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false"
then says:
"matches the content type 'multipart/form-data; boundary=0e5485079df745cf0d07777a88aeb8fd'"
Which of course makes me think I'm still not handling the content type correctly somewhere.
Can anyone see where I'm going wrong in my code?
Thanks!
Here's the function:
def send_email(access_token):
import requests
import json
import pandas as pd
import mimetypes
url = "https://outlook.office.com/api/v2.0/me/sendmail"
headers = {
'Authorization': 'Bearer '+access_token,
}
data = {}
data['Message'] = {
'Subject': "Test",
'Body': {
'ContentType': 'Text',
'Content': 'This is a test'
},
'ToRecipients': [
{
'EmailAddress':{
'Address': 'MY TEST EMAIL ADDRESS'
}
}
]
}
data['SaveToSentItems'] = "true"
json_data = json.dumps(data)
#need to convert the above json_data to dict, otherwise it won't work
json_data = json.loads(json_data)
###ATTACHMENT WORK
file_list = ['test_files/test.xlsx', 'test_files/test.docx']
files = {}
pos = 1
for file in file_list:
x = file.split('/') #seperate file name from file path
files['file'+str(pos)] = ( #give the file a unique name
x[1], #actual filename
open(file,'rb'), #open the file
mimetypes.MimeTypes().guess_type(file)[0] #add in the contents type
)
pos += 1 #increase the naming iteration
#print(files)
r = requests.post(url, headers=headers, json=json_data, files=files)
print("")
print(r)
print("")
print(r.text)
I've figured it out! Took a look at the outlook API documentation and realised I should be adding attachments as encoded lists within the message Json, not within the request.post function. Here's my working example:
import requests
import json
import pandas as pd
import mimetypes
import base64
url = "https://outlook.office.com/api/v2.0/me/sendmail"
headers = {
'Authorization': 'Bearer '+access_token,
}
Attachments = []
file_list = ['test_files/image.png', 'test_files/test.xlsx']
for file in file_list:
x = file.split('/') #file the file path so we can get it's na,e
filename = x[1] #get the filename
content = open(file,'rb') #load the content
#encode the file into bytes then turn those bytes into a string
encoded_string = ''
with open(file, "rb") as image_file:
encoded_string = base64.b64encode(image_file.read())
encoded_string = encoded_string.decode("utf-8")
#append the file to the attachments list
Attachments.append({
"@odata.type": "#Microsoft.OutlookServices.FileAttachment",
"Name": filename,
"ContentBytes": encoded_string
})
data = {}
data['Message'] = {
'Subject': "Test",
'Body': {
'ContentType': 'Text',
'Content': 'This is a test'
},
'ToRecipients': [
{
'EmailAddress':{
'Address': 'EMAIL_ADDRESS'
}
}
],
"Attachments": Attachments
}
data['SaveToSentItems'] = "true"
json_data = json.dumps(data)
json_data = json.loads(json_data)
r = requests.post(url, headers=headers, json=json_data)
print(r)
| 34,322
|
|
https://stackoverflow.com/questions/72556913
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,022
|
Stack Exchange
|
Anushree Sarkar, Michael Delgado, https://stackoverflow.com/users/14368745, https://stackoverflow.com/users/3888719
|
English
|
Spoken
| 176
| 325
|
JupyterHub Redirecting to /user/tree not working
Step 1: Spawning a user pod is successful via JWT token.
Step 2: Hub should redirect to {{url}}/jhub/user/john.doe12/tree but its throwing Bad Gateway 502 error
Step 3: Now if try and hit {{url}}/jhub/user/john.doe12/tree seperately it works.
Does {{url}}/user/john.doe12/tree (without the jhub) work?
@MichaelDelgado No, it does not. Also I want to mention the token I am using for authentication is a JWT which has a length of 1000+ chars.
can you paste the logs into the question as a formatted code block? generally, posting code/logs/data/errors as images is discouraged as they're not searchable, indexible, parseable by screen readers and assistive devices, etc.
when you do - make sure to include the 502 error - I don't see it in the logs.
Actually the page {{url}}/user/john.doe12/tree opened without JHUB. The problem was with redirecting, and I resolved it by reducing the length of the TOKEN. Apparently, there's some restriction on the length/format of the URL. I didn't find any solid reason behind it, but yes shortening the token length worked smoothly.
| 27,787
|
https://ceb.wikipedia.org/wiki/Morichal%20San%20Bartolo
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Morichal San Bartolo
|
https://ceb.wikipedia.org/w/index.php?title=Morichal San Bartolo&action=history
|
Cebuano
|
Spoken
| 54
| 93
|
Suba ang Morichal San Bartolo sa Venezuela. Nahimutang ni sa estado sa Estado Anzoátegui, sa sentro nga bahin sa nasod, km sa habagatan sa Caracas ang ulohan sa nasod. Ang Morichal San Bartolo mao ang bahin sa tubig-saluran sa Río Orinoco.
Ang mga gi basihan niini
Río Orinoco tubig-saluran
Mga suba sa Estado Anzoátegui
| 41,616
|
https://vi.wikipedia.org/wiki/Protohermes%20similis
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Protohermes similis
|
https://vi.wikipedia.org/w/index.php?title=Protohermes similis&action=history
|
Vietnamese
|
Spoken
| 30
| 63
|
Protohermes similis là một loài côn trùng trong họ Corydalidae thuộc bộ Megaloptera. Loài này được C.-k. Yang & D. Yang miêu tả năm 1988.
Chú thích
Tham khảo
Protohermes
| 43,858
|
https://ceb.wikipedia.org/wiki/Deleng%20Selpa
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Deleng Selpa
|
https://ceb.wikipedia.org/w/index.php?title=Deleng Selpa&action=history
|
Cebuano
|
Spoken
| 168
| 281
|
Bukid ang Deleng Selpa sa Indonesya. Nahimutang ni sa lalawigan sa Sumatera Utara, sa kasadpang bahin sa nasod, km sa amihanan-kasadpan sa Jakarta ang ulohan sa nasod. metros ibabaw sa dagat kahaboga ang nahimutangan sa Deleng Selpa.
Ang yuta palibot sa Deleng Selpa kabungtoran sa amihang-sidlakan, apan sa habagatang-kasadpan nga kini mao ang patag. Kinahabogang dapit sa palibot ang Dolok Bulunipis, ka metros ni kahaboga ibabaw sa dagat, km sa habagatan-sidlakan sa Deleng Selpa. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Deleng Selpa may kaayo gamay nga populasyon..
Hapit nalukop sa lasang ang palibot sa Deleng Selpa. Ang klima tropikal nga kasalupan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Septiyembre, sa °C, ug ang kinabugnawan Hulyo, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Nobiyembre, sa milimetro nga ulan, ug ang kinaugahan Hunyo, sa milimetro.
Saysay
Ang mga gi basihan niini
Kabukiran sa Sumatera Utara
Kabukiran sa Indonesya nga mas taas kay sa 200 metros ibabaw sa dagat nga lebel
| 35,129
|
https://sv.wikipedia.org/wiki/Ancistrocladus%20griffithii
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Ancistrocladus griffithii
|
https://sv.wikipedia.org/w/index.php?title=Ancistrocladus griffithii&action=history
|
Swedish
|
Spoken
| 32
| 80
|
Ancistrocladus griffithii är en tvåhjärtbladig växtart som beskrevs av Jules Émile Planchon. Ancistrocladus griffithii ingår i släktet Ancistrocladus och familjen Ancistrocladaceae. Inga underarter finns listade i Catalogue of Life.
Källor
Nejlikordningen
griffithii
| 28,168
|
https://pl.wikipedia.org/wiki/%C3%89taules%20%28C%C3%B4te-d%E2%80%99Or%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Étaules (Côte-d’Or)
|
https://pl.wikipedia.org/w/index.php?title=Étaules (Côte-d’Or)&action=history
|
Polish
|
Spoken
| 52
| 136
|
Etaules – miejscowość i gmina we Francji, w regionie Burgundia-Franche-Comté, w departamencie Côte-d’Or.
Według danych na rok 1990 gminę zamieszkiwały 242 osoby, a gęstość zaludnienia wynosiła 14 osób/km² (wśród 2044 gmin Burgundii Etaules plasuje się na 670. miejscu pod względem liczby ludności, natomiast pod względem powierzchni na miejscu 546.).
Bibliografia
Etaules (Côte-d’Or)
| 19,479
|
https://sv.wikipedia.org/wiki/Christ%20Johnson-prisen
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Christ Johnson-prisen
|
https://sv.wikipedia.org/w/index.php?title=Christ Johnson-prisen&action=history
|
Swedish
|
Spoken
| 712
| 1,401
|
Christ Johnson-prisen, är ett svenskt musikpris instiftat 1958. Priset ges till tonsättare och är indelat i två klasser, det stora och det mindre priset. En prisnämnd vid Kungliga Musikaliska Akademien utser pristagarna, i allmänhet inom klassisk musik. Prissumman för det stora priset är 200 000 kronor och 80 000 för det lilla priset (2023). Priserna delas ut av kung Carl XVI Gustaf på akademiens högtidsdag.
Pristagare
Stora priset
1958 – Ingvar Lidholm för Ritornell för orkester
1960 – Dag Wirén för Symfoni nr 4
1962 – Hilding Rosenberg för Louisville Concerto
1964 – Karl-Birger Blomdahl för Symfoni nr 3, Facetter
1966 – Bengt Hambraeus för Transfiguration för orkester
1968 – Allan Pettersson för Mesto, sats 2 ur Stråkkonsert nr 3
1970 – Åke Hermanson för Symfoni nr 11972 – Sven-Erik Bäck för Movimento II1974 – Bo Nilsson för Brief an Gösta Oswald1976 – Lars-Erik Larsson för Musik för orkester, Orkestervariationer och Due auguri1977 – Jan W. Morthenson för Morendo1979 – Hans Holewa för Symfoni nr 31981 – Jan Carlstedt för Symfoni nr 21983 – Anders Eliasson för Canto del Vagabondo1985 – Gunnar de Frumerie
1987 – Daniel Börtz
1989 – Hans Eklund för mångårigt symfoniskt skapande
1991 – Siegfried Naumann för mångårig tonsättargärning, hög estetisk och teknisk nivå, osedvanlig personlig målmedvetenhet och integritet
1993 – Sven-Eric Johanson för Symfoni nr 10, Chez nous1995 – Sven-David Sandström för High Mass1996 – Pär Lindgren för Oaijé1997 – Anders Hillborg för Violinkonsert1998 – Jan Sandström för My Assam Dragon för saxofon och orkester
1999 – Klas Torstensson för Stick on Stick och Urban Songs2000 – Anders Nilsson för Concerto Grosso nr 1 för saxofonkvartett & orkester
2001 – Arne Mellnäs för Labyrinthos för altsaxofon och orkester
2002 – André Chini för L'Indien för piano och orkester
2003 – Hans Gefors för Njutningen2004 – Miklós Maros för Symfoni nr 42006 – Maurice Karkoff för en halvsekellång tonsättargärning innefattande många betydande orkesterverk på hög och jämn konstnärlig nivå
2007 – Henrik Strindberg för Neptuni åkrar2008 – Per Mårtensson för Flöjtkonsert2009 – Kent Olofsson för Cordes2010 – Jesper Nordin för Residues2011 – Victoria Borisova-Ollas för Golden Dance of the Pharaohs2012 – Benjamin Staern för Worried Souls för klarinett och orkester
2014 – Tommie Haglund för Flaminis Aura för cello och orkester
2016 – Rolf Martinsson för Orchestral Songs on poems by Emily Dickinson för sopran och orkester
2018 – Mats Larsson Gothe för symfoni nr 3 "...de Blanche et Marie..."2020 - Britta Byström
2021 - Staffan Storm
2022 - B. Tommy Andersson
Mindre priset
1958 – Erland von Koch för Oxbergsvariationer för orkester
1960 – Hans Eklund för Musik för orkester1962 – Gunnar Bucht för Symfoni nr 41964 – Maurice Karkoff för Variazioni per orchestra1966 – Hans Holewa för Komposition för orkester1968 – Lars Johan Werle för baletten Zodiak1970 – Daniel Börtz för Voces, första delen av Kafkatrilogin1972 – Siegfried Naumann för Spettacolo I1974 – Sven-David Sandström för Through and Through1976 – Johnny Grandert för Symfoni nr 41977 – Anders Eliasson för Canto in Lontananza1979 – Miklós Maros för Symfoni nr 21981 – Arne Mellnäs
1983 – Lars-Erik Rosell för Orgelkonsert1985 – Mikael Edlund
1987 – Pär Lindgren för konstnärligt nyskapande
1989 – Jan Sandström
1991 – Anders Hillborg för Celestial Mechanics1992 – André Chini för Mururoa för violin och orkester
1993 – Hans Gefors för orkesterverket Twine(1988) och orkestersatsen i operan Der Park (1992)
1994 – Torsten Nilsson för tonsättargärningen
1995 – Anders Hultqvist för Time and the Bell1996 – Lars Ekström för Genom skärvan av en prisma1997 – Karin Rehnqvist för Solsången1998 – Kent Olofsson för Hephaestus Forge för slagverk och orkester
1999 – Thomas Jennefelt för Musik vid ett berg2000 – Per Mårtensson för Violinkonsert2001 – Ingvar Karkoff för Symfoni nr 12002 – Fredrik Hedelin för Tecken2003 – Mats Larsson Gothe för Violinkonsert2004 – Jesper Nordin för Sleep now in the fire2005 – Victoria Borisova-Ollas för Symfoni nr 1, The Triumph of Heaven2008 – Mirjam Tally för Turbulence2012 – Britta Byström för Utflykt i det okända2019 - Djuro Zivkovic för Unceasing Prayers''
2020 - Malin Bång
2021 - Lisa Streich
2022 - Andrea Tarrodi
Referenser
Christ Johnson Musik Pris Fund Kungliga Musikaliska Akademien
Christ Johnson Musik Pris Fund – tidigare pristagare Kungliga Musikaliska Akademien
Noter
Svenska musikpriser
Priser och utmärkelser instiftade 1958
Kungliga Musikaliska Akademien
| 34,805
|
https://zh-min-nan.wikipedia.org/wiki/Kirtland%20Hills%20%28Ohio%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Kirtland Hills (Ohio)
|
https://zh-min-nan.wikipedia.org/w/index.php?title=Kirtland Hills (Ohio)&action=history
|
Min Nan Chinese
|
Spoken
| 27
| 75
|
Kirtland Hills sī Bí-kok Ohio chiu Lake kūn ê chi̍t ê chng-thâu (village).
Jîn-kháu
Chit ūi tī 2010 nî ê jîn-kháu-sò͘ sī 646 lâng.
Ohio ê chng-thâu
| 10,211
|
https://stackoverflow.com/questions/26919000
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,014
|
Stack Exchange
|
Yada, https://stackoverflow.com/users/45066
|
English
|
Spoken
| 193
| 281
|
Using Laravel on a subdomain, where to put public files when have another website on main directory
Currently, I have my live website hosted in the normal way with all files in public_html.
However, I am rewriting my website using Laravel but wish to test it first on a subdomain.
If I am not mistaken, to use Laravel on a live website you should upload all files into the host root except the public files. Which then should be uploaded into the public_html folder.
However how do I go about this when using the subdomain?
I have a structure as so:
root
-- public_html
-- subdomains
-- beta
I could upload all files into beta and create a public folder inside that beta subdomain for the public files? I have tried this but get all sorts of path errors with double public_html/public_html paths etc. Nothing I try seems to work.
I want to keep the live site in tact, but work on the beta version stand alone when I need live testing.
Any help?
For subdomains you need to setup a virtual hosts.
make a soft link by using:
ln -s /path/to/public_html/ /path/to/subdomains/beta/public
| 42,253
|
https://de.wikipedia.org/wiki/Autonomie%20%28Zeitschrift%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Autonomie (Zeitschrift)
|
https://de.wikipedia.org/w/index.php?title=Autonomie (Zeitschrift)&action=history
|
German
|
Spoken
| 335
| 619
|
AUTONOMIE. Materialien gegen die Fabrikgesellschaft war eine von 1975 bis 1985 unregelmäßig im Abstand mehrerer Monate erscheinende Zeitschrift mit linksradikalem Selbstverständnis, in deren Redaktion unter anderem ehemalige Mitglieder der Frankfurter Gruppe Revolutionärer Kampf tätig waren. Sie wurde bis 1978 vom Trikont-Verlag herausgegeben, danach in einem eigenen Verlag.
In der Autonomie erschienen Originalbeiträge aus der Sponti-Szene, von Thomas Schmid und Joschka Fischer (RK), von Herbert Röttgen (Trikont), von Karl Heinz Roth, Angelika Ebbinghaus und von der Hamburger Organisation Proletarische Front. Es gab einen Artikel von Joschka Fischer mit einer Distanzierung von der sogenannten „revolutionären Gewalt“ der RAF. Auch Texte von Hans Magnus Enzensberger, Paolo Pasolini und Werner Maihofer wurden abgedruckt. Ein Schwerpunkt der Autonomie war die Rezeption und Anwendung des italienischen Operaismus. Erfahrungen mit der Betriebsarbeit bei Fiat während der Arbeitskämpfe 1971 und des „Revolutionären Kampfes“ bei Opel wurden reflektiert. Es gab Essays junger Historiker, die versuchten, die Lokalgeschichte aus ihrer Beschaulichkeit herauszuholen, und die die Verankerung auch der Revolutionäre in ihrem Milieu aufzeigen wollten. Die Autonomie druckte viele nicht-operaistische Texte nach, wie etwa anthropologische Arbeiten des Anarchisten Pierre Clastres.
Bis 1978 wurde die Zeitschrift vorwiegend vom Frankfurter Teil der Redaktion geschrieben, doch eine Auseinandersetzung über das Redaktionsprogramm führte zu deren Ausscheiden. Die Zeitschrift wurde von der Hamburger Redaktion als Autonomie. Neue Folge noch einige Jahre in einem eigenen Verlag fortgeführt und entwickelte sich nach Einschätzung von Fabian Kettner zum „theoretische Zentralorgan der westdeutschen Autonomen und Antiimperialisten“. Aus dieser gingen später die Zeitschrift 1999. Zeitschrift für Sozialgeschichte des 20. und 21. Jahrhunderts und die Materialien für einen neuen Antiimperialismus hervor.
Weblinks
Hefte 1 bis 14 der Autonomie Neue Folge und Autonomie 12/1978 online dargestellt
Beschreibung der Zeitschrift Autonomie in der Datenbank des deutschsprachigen Anarchismus – DadA
I. Zur Geschichte der Autonomen in der alten West-BRD ein Abriß: A Taste of Revolution: 1968. ID-Verlag auf Nadir, abgerufen am 12. Dezember 2015 (Geschichte der Autonomen in der BRD, mit einem Kapitel über die Autonomie)
Einzelnachweise
Anarchistische Zeitschrift
Antiquarische Zeitschrift (Deutschland)
Autonome Bewegung
Antiimperialismus
Ersterscheinung 1975
Erscheinen eingestellt 1985
| 13,417
|
https://pt.wikipedia.org/wiki/L%C3%ADder%20do%20governo%20do%20Senado%20do%20Canad%C3%A1
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Líder do governo do Senado do Canadá
|
https://pt.wikipedia.org/w/index.php?title=Líder do governo do Senado do Canadá&action=history
|
Portuguese
|
Spoken
| 85
| 140
|
O Líder do governo do Senado do Canadá é o ministro do Gabinete do Canadá, escolhdo pelo primeiro-ministro do Canadá e aprovado simbolicamente pelo Governador Geral do Canadá, para liderar, promover e defender o partido político em poder no governo do Canadá. Esta posição não constitui por só só um Ministério ou Departamento do Cabinete do Canadá, e por causa disso, todos os ministros líderes do governo do Senado precisam ao mesmo tempo exercer ofício em outra posição do Cabinete do Canadá.
Política do Canadá
| 9,847
|
https://stackoverflow.com/questions/42494268
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
Nikita R., Uwe Becker, https://stackoverflow.com/users/182371, https://stackoverflow.com/users/5837851
|
English
|
Spoken
| 332
| 542
|
Payload for sending push notifications to Windows 10 (mobile) devices with Azure notifcation hub
What is the payload to send push notification to Windows 10 (mobile) devices without showing a message to the user (silent push)? All i need to deliver within the push is a custom parameter.
Check out whether X-WNS-SuppressPopup header in Push notification service request and response headers works for you:
X-WNS-SuppressPopup
For Windows Phone Store apps, you have the
option to suppress a toast notification's UI, instead sending the
notification directly to the action center. This lets your
notification be delivered silently, a potentially superior option for
less urgent notifications. This header is optional and only used on
Windows Phone channels. If you include this header on a Windows
channel, your notification will be dropped and you will receive an
error response from WNS.
Hi Nikita, that's not working. Is this for Windows Phone 8(.1) only?
It should be the same for W10 I think because the post I referenced is directly linked from Windows Push Notification Services (WNS) overview which was written/updated in Feb 2017 and explicitely mentions Windows 10 as a supported platform. Does the same push work if you remove the X-WNS-SuppressPopup header?
I still get a (visible) notification message using this header attribute.
This is my code for the template:
`Dictionary<string, string> headerSilent = new Dictionary<string, string>
{
{ "X-WNS-Type", "wns/toast" }
, { "X-WNS-SuppressPopup", "true" }
};
var toastSilent = new XElement("binding",
new XElement("text", "$(idParam)"))
.ToString(SaveOptions.DisableFormatting);
var templateSilent = new InstallationTemplate();
templateSilent.Body = toastSilent;
templateSilent.Headers = headerSilent;`
This header is optional and used for Windows Phone channels only.
do you get the same behavior both through Notification Hubs and if you try to send it directly using Windows SDK? If the later, then it means that Notification Hubs doesn't have anything to do with it. I'd recommend adding WNS (or whatever it's called) tag to the post and maybe someone either from the product team or who knows more about WNS-specifics could respond.
| 46,651
|
https://qu.wikipedia.org/wiki/Felipe%20Calder%C3%B3n
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Felipe Calderón
|
https://qu.wikipedia.org/w/index.php?title=Felipe Calderón&action=history
|
Quechua
|
Spoken
| 93
| 295
|
Felipe de Jesús Calderón Hinojosa (* paqarisqa Morelia llaqtapi - ), huk mama llaqtayuq taripay amachaq wan pulitiku qarqan.
2006 watamanta 2012 watakama ñawpaq kuti Mishikupa Umalliqnin karqan.
Taytan: Luis Calderón Vega; Maman: Carmen Hinojosa Calderón.Ñawpaq warmi: Margarita Zavala.Churinkuna: 3 (María, Luis Felipe wan Juan Pablo)
Qillqaqkuna
Kastilla simipi:
Kaypipas qhaway
Mishikupa wiñay kawsaynin
Hawa t'inkikuna
* Sitio oficial de la Presidencia de la República
Programa de Resultados Electorales Preliminares
Biografía extensa en la Fundación Cidob
Qhari
Paqarisqa 1962
Morelia llaqtapi paqarisqa
Taripay amachaq (Mishiku)
Pulitiku (Mishiku)
Apulliq (Mishiku)
Ministru (Mishiku)
Umalliq (Mishiku)
| 38,080
|
https://arz.wikipedia.org/wiki/%D9%81%D8%B1%D9%8A%D8%AF%D8%B1%D9%8A%D9%83%20%D9%85%D9%8A%D8%B1%D9%83
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
فريدريك ميرك
|
https://arz.wikipedia.org/w/index.php?title=فريدريك ميرك&action=history
|
Egyptian Arabic
|
Spoken
| 46
| 144
|
فريدريك ميرك كان مؤرخ من امريكا.
حياته
فريدريك ميرك من مواليد يوم 15 اغسطس سنة 1887 فى ميلواكى.
الدراسه
درس فى جامعة ويسكونسين-ماديسون و جامعة هارفارد.
وفاته
فريدريك ميرك مات يوم 24 سبتمبر سنة 1977.
لينكات برانيه
مصادر
مؤرخين
مؤرخين من امريكا
دارسين فى جامعة هارفارد
| 456
|
https://stackoverflow.com/questions/16408538
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,013
|
Stack Exchange
|
Explosion Pills, Genadinik, Jonathan, Lee Meador, https://stackoverflow.com/users/1832043, https://stackoverflow.com/users/190042, https://stackoverflow.com/users/1932588, https://stackoverflow.com/users/454533, https://stackoverflow.com/users/478573, silverfox
|
English
|
Spoken
| 451
| 735
|
I have some HTML that works in a way that seems like it would be impossible. How can this be explained?
I have this HTML:
<div style="width: 100%;">
<div style="float: left; width: 44%; display: inline;">
<img width="95%" height="95%" style="border: none;" src="http://www.problemio.com/img/phoneimage.png">
</div>
<div style="display: inline; float: left; width:54%>">
</div>
</div>
<p>
Some text blah blah
Note that there is nothing in the second div. And what this does is display the text that is below the second closing div in a space next to the image. In other words, it puts it in the space there the empty div is!
How can that be? Is this somehow a bug or is it supposed to be like this?
The empty one has nothing in it so it takes up no space. The float:left puts the image at the left and the 'blah blah' goes in the next spot, which is next to it.
throw a border:2px solid red; and border:2px solid blue; around your 2 divs, and I think it will become clearer - basically your floats collapse, and the text moves up.
Got it. Thanks guys! So I guess this is the actual correct way to do this, right?
float is a block,
and you tried to use display: inline in a block is not right
try :
<div style="float: left; width: 44%; display: inline-block;">
I just tried the inline-block but it didn't seem to make any visible difference. Which cases is it for?
I did not understand your comment, you want to know what caused the problem?
You are not clearing the floats so they will continue to float next to other content. Apply a clear fix to the outermost div. Adding overflow: hidden will work, but is antiquated.
http://jsfiddle.net/ExplosionPIlls/nNkJ8/
I actually did want the text and image to appear side by side.
@Genadinik so what's the problem?
I don't really understand what you are trying to do :-), but I see this:
On your second div: width:54%>" it should be width:54%" (without the greater than symbol before the quotation mark)
floats and display:inline do not get along together. I would replace both for a display:inline-block like this
<div style="width: 44%; display: inline-block;">
Even though your second div specifies a "width" attribute, if your div is empty, it will be rendered with a width of zero. Try adding a "background-color: red;" to your style to see what I say. You should see nothing.
The text is next to your image because that's what float does. If you want to draw your text below the image you should "clear" your floats. Try this:
<p style="clear:both;">
Some text blah blah
If you decide to try the "display:inline-block" the "clear:both" is not necessary.
| 45,383
|
https://pl.wikipedia.org/wiki/Duesme
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Duesme
|
https://pl.wikipedia.org/w/index.php?title=Duesme&action=history
|
Polish
|
Spoken
| 59
| 156
|
Duesme – miejscowość i gmina we Francji, w regionie Burgundia-Franche-Comté, w departamencie Côte-d’Or. Przez miejscowość przepływa Sekwana.
Według danych na rok 1990 gminę zamieszkiwało 55 osób, a gęstość zaludnienia wynosiła 4 osoby/km² (wśród 2044 gmin Burgundii Duesme plasuje się na 855. miejscu pod względem liczby ludności, natomiast pod względem powierzchni na miejscu 705.).
Przypisy
Bibliografia
Miejscowości w departamencie Côte-d’Or
| 26,530
|
https://sr.wikipedia.org/wiki/%D0%95%D0%BB%20%D0%9A%D0%BE%D0%BD%D0%B2%D0%B5%D0%BD%D1%82%D0%BE%20%28%D0%9C%D0%B8%D0%BD%D0%B0%D1%82%D0%B8%D1%82%D0%BB%D0%B0%D0%BD%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Ел Конвенто (Минатитлан)
|
https://sr.wikipedia.org/w/index.php?title=Ел Конвенто (Минатитлан)&action=history
|
Serbian
|
Spoken
| 56
| 177
|
Ел Конвенто () насеље је у Мексику у савезној држави Колима у општини Минатитлан. Насеље се налази на надморској висини од 770 м.
Становништво
Према подацима из 2010. године у насељу је живело 17 становника.
Хронологија
Попис
Види још
Савезне државе Мексика
Референце
Спољашње везе
Мексичка насеља
Насеља у општини Минатитлан (Колима)
Википројект географија/Насеља у Мексику
| 30,973
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.