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://ceb.wikipedia.org/wiki/Desa%20Rogojampi | Wikipedia | Open Web | CC-By-SA | 2,023 | Desa Rogojampi | https://ceb.wikipedia.org/w/index.php?title=Desa Rogojampi&action=history | Cebuano | Spoken | 95 | 172 | Administratibo nga balangay ang Desa Rogojampi sa Indonesya. Nahimutang ni sa administratibo nga balangay sa Desa Rogojampi, lalawigan sa Jawa Timur, sa habagatan-kasadpang bahin sa nasod, km sa sidlakan sa Jakarta ang ulohan sa nasod.
Hapit nalukop sa kaumahan ang palibot sa Desa Rogojampi. Ang klima habagat. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Oktubre, sa °C, ug ang kinabugnawan Hunyo, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Enero, sa milimetro nga ulan, ug ang kinaugahan Agosto, sa milimetro.
Ang mga gi basihan niini
Mga subdibisyon sa Jawa Timur | 48,780 |
https://es.wikipedia.org/wiki/Vuelo%20514%20de%20TWA | Wikipedia | Open Web | CC-By-SA | 2,023 | Vuelo 514 de TWA | https://es.wikipedia.org/w/index.php?title=Vuelo 514 de TWA&action=history | Spanish | Spoken | 1,049 | 1,638 | El vuelo 514 de Trans World Airlines, registro N54328, fue un vuelo nacional estadounidense operado por TWA con un Boeing 727-231 en ruta desde Indianápolis al Aeropuerto Nacional de Washington que se estrelló contra Mount Weather, Virginia, el domingo 1 de diciembre de 1974. Los 92 a bordo, 85 pasajeros y siete tripulantes, murieron. En condiciones tormentosas a última hora de la mañana, la aeronave estaba en vuelo controlado e impactó una montaña baja a 25 millas náuticas (46 km; 29 mi) al noroeste de su destino revisado.
Accidente
El vuelo estaba programado para el Aeropuerto Nacional de Washington, pero se desvió al Aeropuerto Internacional Washington-Dulles cuando los fuertes vientos cruzados, del este a 28 nudos (32 mph; 52 km/h) y ráfagas de 49 nudos (56 mph; 91 km/h), impidieron operaciones seguras en la pista principal de norte a sur en Washington National. El vuelo estaba siendo vectorizado para una aproximación por instrumentos de no precisión a la pista 12 en Dulles. Los controladores de tráfico aéreo autorizaron el vuelo hasta 7000 pies (2130 m) antes de autorizarlos para la aproximación mientras no se encontraban en un segmento publicado.
El avión de pasajeros comenzó un descenso a 1800 pies (550 m), que se muestra en el primer punto de control para el enfoque publicado. La grabadora de voz de la cabina indicó más tarde que había cierta confusión en la cabina sobre si todavía estaban bajo un segmento de aproximación controlado por radar que les permitiría descender de manera segura. Después de alcanzar los 550 m (1800 pies), hubo algunas desviaciones de altitud de 30 a 60 m (100 a 200 pies) que la tripulación de vuelo discutió como encontrar fuertes corrientes descendentes y visibilidad reducida en la nieve.
El avión impactó la ladera oeste del monte Weather a 510 m (1670 pies) sobre el nivel del mar a aproximadamente 230 nudos (265 mph; 425 km/h). Los restos estaban contenidos dentro de un área de aproximadamente 900 por 200 pies (275 por 60 m). La evidencia del primer impacto fueron árboles cortados a unos 70 pies (20 m) sobre el suelo; la elevación en la base de los árboles era de 1.650 pies (505 m).
La ruta de los restos estaba orientada a lo largo de una línea de 118 grados magnéticos. Los cálculos indicaron que el ala izquierda descendió unos seis grados cuando la aeronave pasó entre los árboles y la aeronave descendía en un ángulo de aproximadamente un grado. Después de aproximadamente 500 pies (150 m) de viaje a través de los árboles, golpeó un afloramiento rocoso a una altura de aproximadamente 1675 pies (510 m). Numerosos componentes pesados de la aeronave fueron arrojados hacia adelante del afloramiento y se produjeron numerosos incendios intensos posteriores al impacto que luego se extinguieron. La cima de la montaña se encuentra a 535 m (1754 pies) sobre el nivel del mar.
Investigación
La junta de investigación de accidentes estaba dividida en su decisión sobre si la tripulación de vuelo o el Control de Tráfico Aéreo eran los responsables. La mayoría absolvió a los controladores porque el avión no estaba en un segmento de aproximación publicado; la opinión disidente fue que el vuelo había sido vectorizado por radar. La terminología entre pilotos y controladores difería sin que ninguno de los grupos fuera consciente de la discrepancia. Era una práctica común en ese momento que los controladores liberaran un vuelo a su propia navegación con "Autorizado para la aproximación", y las tripulaciones de vuelo comúnmente creían que también era una autorización para descender a la altitud a la que comenzó el segmento final de la aproximación. Los controladores del vuelo 514 no habían dado ninguna indicación clara de que ya no estaban en un segmento de vector de radar y, por lo tanto, eran responsables de su propia navegación. Los procedimientos se aclararon después de este accidente. Los controladores ahora dicen: "Mantener (altitud especificada) hasta que se establezca en una parte de la aproximación". El equipo de detección de proximidad al suelo también fue obligatorio para las aerolíneas.
Durante la investigación de la NTSB, se descubrió que un vuelo de United Airlines había escapado por poco del mismo destino durante la misma aproximación y en el mismo lugar solo seis semanas antes. Este descubrimiento puso en marcha actividades que llevaron al desarrollo del Sistema de informes de seguridad de la aviación (ASRS) por parte de la FAA y la NASA en 1976 para recopilar informes voluntarios y confidenciales de posibles riesgos de seguridad de los profesionales de la aviación.
El vuelo también es notable porque el accidente atrajo una atención no deseada a la instalación de Mount Weather, que fue el eje de los planes implementados por el gobierno federal para garantizar la continuidad en caso de una guerra nuclear . El accidente no dañó la instalación, ya que la mayoría de sus características estaban bajo tierra. Solo se cortó su línea telefónica principal subterránea, y C&P Telephone restableció el servicio al complejo dentro de las 2 horas y media posteriores al accidente.
Consecuencias
El accidente, sus secuelas y sus repercusiones son el tema del libro de 1977 Sound of Impact: The Legacy of TWA Flight 514 de Adam Shaw. El vuelo 514 de TWA también se menciona en el cierre del segundo capítulo del libro de Mark Oliver Everett Things the Grandchildren Should Know y en el libro de F. Lee Bailey Cleared for Approach: In Defense of Flying . En 2015 se estrenó un documental titulado Diverted: TWA 514.
Este fue uno de los dos Boeing 727 que se estrellaron en Estados Unidos ese día; el otro era el vuelo 6231 de Northwest Orient Airlines en el Estado de Nueva York, que se dirigía a recoger al equipo de fútbol de los Baltimore Colts en Buffalo.
Roscoe Cartwright, uno de los primeros generales negros del ejército estadounidense, murió en el accidente.
Imágenes antes y después del accidente
Véase también
Accidente de aviación
Anexo:Accidentes más graves de aviación (1953-presente)
Anexo:Accidentes e incidentes notables en la aviación civil
Anexo:Accidentes por fabricante de aeronave
Referencias
Enlaces externos
Descripción del accidente en Aviation Safety
Accidentes e incidentes aéreos de 1974
Accidentes e incidentes aéreos en Estados Unidos
Accidentes e incidentes de Trans World Airlines
Accidentes e incidentes de Boeing 727
Estados Unidos en 1974 | 35,747 |
https://arz.wikipedia.org/wiki/%D9%84%D9%88%D9%8A%D8%B3%20%D9%84%D9%8A%D9%86%D9%88%D8%B1%D9%85%D8%A7%D9%86%D8%AF | Wikipedia | Open Web | CC-By-SA | 2,023 | لويس لينورماند | https://arz.wikipedia.org/w/index.php?title=لويس لينورماند&action=history | Egyptian Arabic | Spoken | 35 | 110 | لويس لينورماند كان مهندس من فرنسا.
حياته
لويس لينورماند من مواليد يوم 1 يناير 1801 فى فرساى, مات فى 10 يناير 1862.
الدراسه
درس فى المدرسه الوطنيه للفنون الجميله.
لينكات
مصادر
مهندسين
مهندسين من فرنسا | 37,517 |
https://nl.wikipedia.org/wiki/Laccophilus%20amicus | Wikipedia | Open Web | CC-By-SA | 2,023 | Laccophilus amicus | https://nl.wikipedia.org/w/index.php?title=Laccophilus amicus&action=history | Dutch | Spoken | 27 | 53 | Laccophilus amicus is een keversoort uit de familie waterroofkevers (Dytiscidae). De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 1955 door Guignot.
amicus | 13,959 |
https://ar.wikipedia.org/wiki/%D8%A5%D9%84%D9%8A%D9%86%20%D8%A8%D9%8A%D9%83%D8%B1 | Wikipedia | Open Web | CC-By-SA | 2,023 | إلين بيكر | https://ar.wikipedia.org/w/index.php?title=إلين بيكر&action=history | Arabic | Spoken | 71 | 244 | إلين بيكر (3 أغسطس 1960) لاعبة تجديف ألمانية في رياضة التجديف حازت على الميدالية البرونزية عندما شاركت في الألعاب الأولمبية الصيفية 1984.
روابط خارجية
المراجع
أشخاص على قيد الحياة
حائزون على ميداليات في الألعاب الأولمبية الصيفية 1984
رياضيون من دويسبورغ
فائزون بميداليات أولمبية في التجديف
فائزون بميداليات برونزية أولمبية من ألمانيا الغربية
مجدفات ألمانيات غربيات
مجدفون أولمبيون من ألمانيا الغربية
مجدفون في الألعاب الأولمبية الصيفية 1984
مواليد 1960
مواليد في دويسبورغ | 27,336 |
https://stackoverflow.com/questions/44123832 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | HubertL, dsp542, https://stackoverflow.com/users/5038107, https://stackoverflow.com/users/8050673 | English | Spoken | 454 | 718 | R: how to write a raster to disk without auxiliary file?
I'm writing a dataset to file in ERMapper format (.ers) using the Raster package in R, but I'm having issues with the resulting .aux.xml auxiliary file (which I'm actually not interested in).
Simple example:
rst <- raster(ncols=15000,nrows=10000)
rst[] <- 1.234
writeRaster(rst, filename='_test.ers', overwrite=TRUE)
The writeRaster() line takes some time to execute, the data file is quite large, about 1.2GB on disk.
When checking what's happening while writeRaster() is executed, I find that the .ers file (header file + associated data file) is typically generated in about 20 sec. Then, it takes writeRaster() another 20 - 25 sec to generate the .aux.xml file, which only contains statistics such as min, max, mean, and st. dev. (which likely explains why it takes so long to compute).
Since I don't care about the .aux.xml file, I would like writeRaster() to not bother with it at all, and save me 20 - 25 sec of exec time (I'm writing lots of these datasets to disk so a 50% speedup in my code is quite substantial).
Anyone has any idea how to tell writeRaster() to not create a .aux.xml file? I suspect it's a GDAL-related issue, but haven't been able to find an answer yet after much research...
Any help most welcome!
Using you code it takes 10 seconds on my setup (win7) and I get 3 files : _test.ers 606B, _test 1.11GB and _test.ers.aux 288B.
Cool, thanks @HubertL. I'm actually writing the file(s) to a remote directory so a lot of the time is spent sending data over the network. This is actually good as it showed me that writeRaster() first transfers data to the data file, but then re-reads the data across the network from that saved dataset to compute the stats in the auxiliary file (!!).
In any case, what's important to me is how long it takes the function to calculate the .aux.xml file, compared to the time taken to write the actual data. Is it also about half the time in your case?
if you provide argument format="raster" the .aux file is not written
True, though that saves the data in 'Native' raster package format (.grd) instead of ERMapper format .ers. I'd then have to rename the data file (assuming the raw data is saved in the same manner) and re-create the .ers header from the .grd file... which could be a workable (though not ideal) option I guess.
Options related to the GDAL file format drivers can be set using the (not so easy to find) rgdal::setCPLConfigOption function.
In your case,
rgdal::setCPLConfigOption("GDAL_PAM_ENABLED", "FALSE")
should disable the xml file creation.
HTH
Indeed it does!... Thanks @LoBu, I would likely never have found this!
| 20,964 |
https://sv.wikipedia.org/wiki/Impatiens%20pseudobicolor | Wikipedia | Open Web | CC-By-SA | 2,023 | Impatiens pseudobicolor | https://sv.wikipedia.org/w/index.php?title=Impatiens pseudobicolor&action=history | Swedish | Spoken | 32 | 86 | Impatiens pseudobicolor är en balsaminväxtart som beskrevs av C. Grey-wilson. Impatiens pseudobicolor ingår i släktet balsaminer, och familjen balsaminväxter. Utöver nominatformen finns också underarten I. p. recticornis.
Källor
Externa länkar
Balsaminer
pseudobicolor | 22,859 |
https://en.wikipedia.org/wiki/Werner%20Klumpp | Wikipedia | Open Web | CC-By-SA | 2,023 | Werner Klumpp | https://en.wikipedia.org/w/index.php?title=Werner Klumpp&action=history | English | Spoken | 91 | 151 | Werner Klumpp (12 November 1928 – 8 January 2021) was a German politician of the Free Democratic Party (FDP). He was born in Baiersbronn, Württemberg. After the death of Franz-Josef Röder, Klumpp was the interim Minister President of the Saarland (26 June 1979 to 5 July 1979).
References
1928 births
2021 deaths
People from Freudenstadt (district)
People from the Free People's State of Württemberg
Free Democratic Party (Germany) politicians
Ministers-President of Saarland
Members of the Landtag of Saarland
Commanders Crosses of the Order of Merit of the Federal Republic of Germany | 1,822 |
https://askubuntu.com/questions/499523 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Standard Latvian | Spoken | 269 | 554 | What is the difference between gvfs commands and common commands like cat, ls, cp?
I recently found the following gvfs commands :
gvfs-cat (1) - Concatenate files
gvfs-copy (1) - Copy files
gvfs-info (1) - Show information about files
gvfs-ls (1) - List files
gvfs-mime (1) - Get or set mime handlers
gvfs-mkdir (1) - Create directories
gvfs-monitor-dir (1) - Monitor directories for changes
gvfs-monitor-file (1) - Monitor files for changes
gvfs-mount (1) - Mounts the locations
gvfs-move (1) - Copy files
gvfs-open (1) - Open files with the default handler
gvfs-rename (1) - Rename a file
gvfs-rm (1) - Delete files
gvfs-save (1) - Save standard input
gvfs-set-attribute (1) - Set file attributes
gvfs-trash (1) - Move files or directories to the trash
gvfs-tree (1) - List contents of directories in a tree-like format
Now, how do these differ by the common commands like cat, cp, mkdir, etc.
In other words what is the difference between the following commands respectively:
cat and gvfs-cat
cp and gvfs-copy
mkdir and gvfs-mkdir etc. and so on.
or what for gvfs-* commands stands for?
gvfs-... type commands can process remote locations based on a url.
From man gvfs-cat:
gvfs-cat works just like the traditional cat utility,
but using gvfs locations instead of local files:
for example you can use something like smb://server/resource/file.txt as location.
For instance
You can use gvfs-cat to do the following:
gvfs-cat smb://server/resource/file.txt
But cat can only be used to do this:
$ cat /path/to/some/file.txt
cat can only access local files, making it useful for local drive lookups. gvfs-cat is used for remote lookups with a valid GVFS url.
| 4,547 | |
https://magento.stackexchange.com/questions/163358 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | Utsav IIHGlobal, https://magento.stackexchange.com/users/44993 | English | Spoken | 285 | 886 | How to add custom page before checkout for extra questionnaires ? Magento 1.9
I want to add custom page which will have a form with some questions.
Customer needs to fill out that form and then go to checkout. This form will be related to order and admin can see that filled form in order view.
Per order there will one questionnaires form.
Custom questionnaire page between cart and checkout page.
How do I achieve this?
Thanks.
Please create one module in the name of Demo_Intermediate using silk software
Note: install and do the steps in default magento i have consider and did the same thing in magento 1.9.2.4
Step 1 :
app/design/frontend/base/default/template/checkout/onepage/link.phtml
<?php if ($this->isPossibleOnepageCheckout()):?>
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Proceed to Checkout')) ?>" class="button btn-proceed-checkout btn-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?>
onclick="window.location='<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'intermediate/' ?>';"><span><span><?php echo $this->__('Proceed to Checkout') ?></span></span></button>
Step2 :
app/design/frontend/rwd/default/template/intermediate/index.phtml
<form action= "<?php echo Mage::getBaseUrl().'intermediate/index/intermediate' ?>" method="post" id="product_addtocart_form" enctype="multipart/form-data">
<p><label for="fristname">FirstName</label>
<input type="text" name="fristname"><br>
<br>
<label for="secondname">SecondName</label>
<input type="text" name="secondname">
<br>
</p>
<button type="submit"><?php echo $this->__('Proceed to Checkout') ?></button>
</form>
Screenshot:
Step 3: /app/code/local/Demo/Intermediate/controllers/IndexController.php
<?php
class Demo_Intermediate_IndexController extends Mage_Core_Controller_Front_Action{
public function IndexAction() {
$this->loadLayout();
$this->getLayout()->getBlock("head")->setTitle($this->__("Titlename"));
$breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
$breadcrumbs->addCrumb("home", array(
"label" => $this->__("Home Page"),
"title" => $this->__("Home Page"),
"link" => Mage::getBaseUrl()
));
$breadcrumbs->addCrumb("titlename", array(
"label" => $this->__("Titlename"),
"title" => $this->__("Titlename")
));
$this->renderLayout();
}
// My custom Action
public function intermediateAction()
{
$getDetails=$this->getRequest()->getPost();
//customize u r code here
$this->_redirect('checkout');
}
}
Note: Here I am guiding u how to redirect from cart to checkout through intermediate page. happy coding
Thanks for your response but i need more details with saving at least one field to order, its better for me if you provide more details about it.
| 42,593 |
https://av.wikipedia.org/wiki/%D0%9F%D0%BE%D1%80%D1%82%D0%B0%D0%BB%3A%D0%9A%D1%8A%D1%83%D1%80%D1%8A%D0%B0%D0%BD/%D0%90%D1%8F%D1%82/%D0%90%D1%80%D1%85%D0%B8%D0%B2 | Wikipedia | Open Web | CC-By-SA | 2,023 | Портал:Къуръан/Аят/Архив | https://av.wikipedia.org/w/index.php?title=Портал:Къуръан/Аят/Архив&action=history | Avaric | Spoken | 18 | 85 | Гьанир рихьизарун ругел аятал загьирлъула "Аят" абураб бутIаялда. Бокьани жеги тIаде жубазе бегьула, гьаниб гьаниб бугеб къагIидаялъухъги балагьун.. | 7,941 |
https://en.wikipedia.org/wiki/Utility%20trailer | Wikipedia | Open Web | CC-By-SA | 2,023 | Utility trailer | https://en.wikipedia.org/w/index.php?title=Utility trailer&action=history | English | Spoken | 23 | 40 | Utility Trailer may refer to:
Trailer (vehicle), an unpowered vehicle pulled by a powered vehicle
Utility Trailer Manufacturing Company, an American semi-trailer manufacturer | 31,340 |
https://en.wikipedia.org/wiki/Wazirabad%E2%80%93Narowal%20Branch%20Line | Wikipedia | Open Web | CC-By-SA | 2,023 | Wazirabad–Narowal Branch Line | https://en.wikipedia.org/w/index.php?title=Wazirabad–Narowal Branch Line&action=history | English | Spoken | 137 | 288 | Wazirabad–Narowal Branch Line () is one of several branch lines in Pakistan, operated and maintained by Pakistan Railways. The line originally runs from Wazirabad Junction station to Narowal Junction station. The total length of this railway line is . There are 15 railway stations from Wazirabad Junction to Narowal Junction.
History
The Wazirabad–Narowal Branch Line was built by the North Western State Railway in 1915 and originally named as the Sialkot–Narowal Railway.
Stations
The railway stations on this railway line are:
Wazirabad Junction
Sodhra Kopra
Begowala Ghartal (Abandoned)
Sambrial
Sahowala (Abandoned)
Ugoki
Sialkot Junction
Tasirabad Halt (Abandoned)
Gunna Kalan
Alhar (Abandobed)
Chawinda
Pasrur
Qila Sobha Singh
Alipur Sayadan Sharif (Abandoned)
Domala
Narowal Junction
See also
Pakistan Railways
References
Railway stations on Wazirabad–Narowal Branch Line
Railway lines opened in 1915
5 ft 6 in gauge railways in Pakistan | 12,696 |
https://pt.wikipedia.org/wiki/Jun%20Hee%20Lee | Wikipedia | Open Web | CC-By-SA | 2,023 | Jun Hee Lee | https://pt.wikipedia.org/w/index.php?title=Jun Hee Lee&action=history | Portuguese | Spoken | 164 | 298 | Jun Hee Lee é um ator coreano-americano. Ele nasceu em 1982 em St. Louis, Missouri, e frequentou a Universidade de Boston. Jun Hee é um Aquáriano.
Carreira
Seu papel no cinema mais recente foi o de "Derrick" no filme Vampires Suck, Ele interpretou o personagem-título no filme Ethan Mao em 2004. Em 2005 ele atuou como "Jimmy" em American Pie Presents: Band Camp e no mesmo ano, atuou como "Kevin" no sangrento filme de terror independente KatieBird *Certifiable Crazy Person.
Teve seu nome nos créditos de series de TV de como: "Quan" em The Mindy Project, "Simon" em House, M.D., e também foi convidado para atuar em papéis na popular série de TV da Nickelodeon, Drake & Josh.
Lee também dublou um assassino adolescente chamado "Con Smith" no game Killer 7 para GameCube e PS2, e foi o anfitrião do programa de TV "Asia Street".
Links Externos
Nascidos em 1982
Naturais de St. Louis (Missouri)
Alunos da Universidade de Boston
Atores dos Estados Unidos | 25,663 |
https://ce.wikipedia.org/wiki/%D0%91%D1%83%D0%BB%D0%B5%D1%88%D0%B8 | Wikipedia | Open Web | CC-By-SA | 2,023 | Булеши | https://ce.wikipedia.org/w/index.php?title=Булеши&action=history | Chechen | Spoken | 24 | 91 | Булеши () — Гуьржийчоьнан Рача-Лечхуми а, Лаха Сванети а Лентехин муниципалитетан эвла. Бахархойн дукхалла 4 стаг (2014 шо).
Билгалдахарш
Лентехин муниципалитетан нах беха меттигаш | 31,659 |
https://superuser.com/questions/1437048 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | DrMoishe Pippik, https://superuser.com/users/285137, https://superuser.com/users/401553, https://superuser.com/users/952127, montonero, user2531336 | English | Spoken | 121 | 168 | how to recover deleted Photo EXIF
Apparently cropping or uploading photos to some certain Websites deletes its metadata.
I have a bunch of photos which have been cropped and then uploaded to telegram and so far I know that both cropping and uploading, deletes metadata of the file.
Is there any way to recover the deleted data?
If you do not have the original files then no, you can't recover the metadate.
unless you ever had the photo with exif data on your harddrive or on a usb stick that you could recover with photorec, no. The data has been removed from the file
For next time: use an editor that can preserve EXIF data in JPEG files, such as IrfanView.
| 27,279 |
https://sv.wikipedia.org/wiki/Drassodes%20cambridgei | Wikipedia | Open Web | CC-By-SA | 2,023 | Drassodes cambridgei | https://sv.wikipedia.org/w/index.php?title=Drassodes cambridgei&action=history | Swedish | Spoken | 32 | 74 | Drassodes cambridgei är en spindelart som beskrevs av Roewer 1951. Drassodes cambridgei ingår i släktet Drassodes och familjen plattbuksspindlar. Inga underarter finns listade i Catalogue of Life.
Källor
Externa länkar
Plattbuksspindlar
cambridgei | 8,934 |
https://ceb.wikipedia.org/wiki/W%C4%81d%C4%AB%20%E1%B8%A8amrah%20%28wadi%20sa%20Yemen%2C%20Mu%E1%B8%A9%C4%81faz%CC%A7at%20a%E1%B8%91%20%E1%B8%90%C4%81li%E2%80%98%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Wādī Ḩamrah (wadi sa Yemen, Muḩāfaz̧at aḑ Ḑāli‘) | https://ceb.wikipedia.org/w/index.php?title=Wādī Ḩamrah (wadi sa Yemen, Muḩāfaz̧at aḑ Ḑāli‘)&action=history | Cebuano | Spoken | 100 | 197 | Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Wādī Ḩamrah.
Wadi ang Wādī Ḩamrah sa Yemen. Nahimutang ni sa distrito sa Juban ug lalawigan sa Muḩāfaz̧at aḑ Ḑāli‘, sa habagatan-kasadpang bahin sa nasod, km sa habagatan-sidlakan sa Sanaa ang ulohan sa nasod.
Ang klima init nga kamadan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Mayo, sa °C, ug ang kinabugnawan Enero, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Agosto, sa milimetro nga ulan, ug ang kinaugahan Disyembre, sa milimetro.
Ang mga gi basihan niini
Mga suba sa Muḩāfaz̧at aḑ Ḑāli‘ | 27,261 |
https://stackoverflow.com/questions/58067053 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | https://stackoverflow.com/users/3257758, user3257758 | English | Spoken | 120 | 176 | Are Wavenet voices still supported through the Node JS Google Text-to-speech client?
Are Wavenet voices still supported through the Node JS Google Text-to-speech client? It used to work before on v.1.3.0 of the NodeJs client and now it is not. I am getting the following error now when I try to generate speech using a Wavenet voice:
Request contains an invalid argument
Regular voices work fine.
I work on Google Cloud Text-to-Speech.
Yes, WaveNet is supposed to work. Can you try to reproduce your synthesis request using a curl command and copy/paste your command payload here?
It Looks like it started working again. I just tested it again and it now works fine. It looks was just a temporary issue.
| 48,490 |
https://ca.wikipedia.org/wiki/Columbus%20%28Carolina%20del%20Nord%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Columbus (Carolina del Nord) | https://ca.wikipedia.org/w/index.php?title=Columbus (Carolina del Nord)&action=history | Catalan | Spoken | 275 | 490 | Columbus és una població dels Estats Units a l'estat de Carolina del Nord. Segons el cens del 2000 tenia una població de 992 habitants.
Demografia
Segons el cens del 2000, Columbus tenia 992 habitants, 414 habitatges i 238 famílies. La densitat de població era de 216,4 habitants per km².
Dels 414 habitatges en un 19,8% hi vivien nens de menys de 18 anys, en un 44,7% hi vivien parelles casades, en un 10,4% dones solteres, i en un 42,5% no eren unitats familiars. En el 38,6% dels habitatges hi vivien persones soles el 26,8% de les quals corresponia a persones de 65 anys o més que vivien soles. El nombre mitjà de persones vivint en cada habitatge era de 2,08 i el nombre mitjà de persones que vivien en cada família era de 2,75.
Per edats la població es repartia de la següent manera: un 17,5% tenia menys de 18 anys, un 5% entre 18 i 24, un 21,1% entre 25 i 44, un 17,6% de 45 a 60 i un 38,7% 65 anys o més.
L'edat mediana era de 52 anys. Per cada 100 dones de 18 o més anys hi havia 79,4 homes.
La renda mediana per habitatge era de 25.469 $ i la renda mediana per família de 38.542$. Els homes tenien una renda mediana de 30.000 $ mentre que les dones 19.000 $. La renda per capita de la població era de 15.587 $. Entorn del 9,3% de les famílies i el 15,8% de la població estaven per davall del llindar de pobresa.
Poblacions properes
El següent diagrama mostra les poblacions més properes.
Referències
Entitats de població de Carolina del Nord | 23,137 |
https://ceb.wikipedia.org/wiki/Sh%C4%81h%20R%C5%ABd%20%28suba%20sa%20Ost%C4%81n-e%20M%C4%81zandar%C4%81n%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Shāh Rūd (suba sa Ostān-e Māzandarān) | https://ceb.wikipedia.org/w/index.php?title=Shāh Rūd (suba sa Ostān-e Māzandarān)&action=history | Cebuano | Spoken | 55 | 110 | Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Shāh Rūd.
Suba ang Shāh Rūd (Pinulongang Persiyano: شاه رود) sa Iran. Nahimutang ni sa lalawigan sa Ostān-e Māzandarān, sa amihanang bahin sa nasod, km sa amihanan-sidlakan sa Tehrān ang ulohan sa nasod.
Ang mga gi basihan niini
Mga suba sa Ostān-e Māzandarān | 39,065 |
https://ku.wikipedia.org/wiki/Teber%C3%AE%20%28zanyar%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Teberî (zanyar) | https://ku.wikipedia.org/w/index.php?title=Teberî (zanyar)&action=history | Kurdish | Spoken | 49 | 138 | Teberî (jdb. 839 - m. 923) zanyarê îslamê û dîrokê ye. Navê wî tam Muhemmed bin Cerîr Teberî ye.
Ew bi xwe ji Teberistanê ye loma bi navê Teberî tê naskirin. Bi berhema wî ya bi navê "Tefsîra Teberî" tê naskirin.
Çavkanî
Jidayikbûn 839
Mirin 923
Zanyarên îslamê
Tefsîrvan | 41,833 |
https://math.stackexchange.com/questions/1239924 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | English | Spoken | 176 | 422 | Can we represent the curl as a multiplication by skew-symmetric matrix?
Considering that two vectors $A \times B$ = $\hat A* B$, where $\hat A$ is a skew symmetric matrix containing elements of $A$
Can we then write the curl $\nabla \times A$ as $\partial \vec r *A$ where $\partial \vec r$ = $[\partial x, \partial y, \partial z]$
$\nabla \times \vec A$ can be written in terms of a tensor $T$ operator with
$$T = \hat x \hat y(-\partial_z)+\hat x \hat z(\partial_y)+\hat y \hat x(\partial_z)+\hat y \hat z(-\partial_x)+\hat z \hat x(-\partial_y)+\hat z \hat y(\partial_x)$$
Then, for all differentiable vector fields $\vec A$, we have
$$\nabla \times \vec A=T\cdot \vec A$$
Another way to see this (implicit summation over repeated indices which label the three Cartesian coordinates $x,y,z$):
$$(\nabla \times \mathbf{v})_i = \epsilon_{ijk} \partial_j v_k$$
Let
$$T_{ik} = \epsilon_{ijk} \partial_j$$
which as a matrix looks like
$$T_{ik} = \begin{pmatrix}
0 & -\partial_z & \partial_y \\
\partial_z & 0 & -\partial_x \\
-\partial_y & \partial_x & 0
\end{pmatrix}
$$
then by construction,
$$(\nabla\times \mathbf{v})_i = T_{ij} v_j$$
| 31,783 | |
https://cs.wikipedia.org/wiki/Vladislav%20Ribnikar | Wikipedia | Open Web | CC-By-SA | 2,023 | Vladislav Ribnikar | https://cs.wikipedia.org/w/index.php?title=Vladislav Ribnikar&action=history | Czech | Spoken | 189 | 458 | Vladislav Ribnikar (v srbské cyrilici Владислав Рибникар; 13. listopadu 1871, Trstenik, Srbsko – 1. září 1914) byl zakladatel srbských novin Politika a dlouholetý ředitel deníku, který vedl až do své smrti v první světové válce.
Vladislav se narodil do rodiny Franja Ribnikara ze Slovinska a Milici Srnić z Kostajnici. Studoval v Jagodině a Bělehradu, v letech 1888 až 1892 vystudoval filozofii na místní filozofické fakultě bělehradské univerzity. Magisterský titul získal na Sorbonně a poté nějakou dobu studoval také na Humboldtově univerzitě v Berlíně. Kvůli převratu na srbském trůnu nicméně doktorský titul nakonec nezískal. Po svém návratu do vlasti se rozhodl založit první nezávislé srbské noviny. Do novinářské činnosti se zapojil také i jeho mladší syn Darko Ribnikar. Jeho druhý bratr, Vladislav Slobodan, se stal příbuzným Jiřího Dienstbiera.
V letech 1912 až 1913 se Vladislav Ribnikar zapojil do první a druhé balkánské války. Do aktivní služby byl povolán po vypuknutí války první světové. Byl zabit v boji v západním Srbsku v pohoří Sokolska planina.
Reference
Externí odkazy
Srbové
Narození v roce 1871
Narození 13. listopadu
Narození v Rasinském okruhu
Úmrtí v roce 1914
Úmrtí 1. září
Úmrtí v Srbsku
Muži | 27,568 |
https://it.wikipedia.org/wiki/Sun%20Ken%20Rock | Wikipedia | Open Web | CC-By-SA | 2,023 | Sun Ken Rock | https://it.wikipedia.org/w/index.php?title=Sun Ken Rock&action=history | Italian | Spoken | 1,522 | 2,577 | è un seinen manga scritto e illustrato dal mangaka sudcoreano Boichi e serializzato sulla rivista Young King.
Trama
Il giovane e svogliato Ken Kitano si invaghisce di una sua compagna di classe, Yu Min, alla quale si dichiara venendo però rifiutato. Ma Ken non si perde d`animo e, venuto a sapere che la sua amata si trasferirà in Corea, decide di seguirla. Senza un soldo e senza prospettive, Ken finisce per entrare in contatto con una gang coreana che gli chiederà addirittura di divenirne il boss. Durante le lotte sostenute contro le altre gang e organizzazioni Ken, grazie al suo carisma, riuscirà a far entrare nella sua squadra molti validi elementi. Come se questi continui scontri non rendessero abbastanza intricata la sua vita, nel frattempo la giovane Yu Min è diventata membro delle forze di polizia coreana.
Personaggi
Il protagonista di Sun Ken Rock, uno studente svogliato e superficiale ma dotato di un forte senso di giustizia, oltre che di una grande resistenza fisica. Nel momento in cui gli viene offerto di entrare nella gang, ribatte che in realtà avrebbe voluto arruolarsi nelle forze di polizia; ma quando gli viene fatto notare che tra gang, stati ed aziende non esiste alcuna differenza nei metodi, decide di accettare.
Park Tae Su
Figlio di un potente boss della malavita organizzata. Con la morte del padre cade in disgrazia ma si ripromette che un giorno ciò che ha perso sarebbe tornato nelle sue mani. È lui a convincere Ken a diventare il boss del Sun Ken Rock. Ambizioso di carattere, risulta difficile capire quali siano le sue vere intenzioni, ma Ken sembra in grado di carpirle a fondo. Grazie alle attività del padre, continua ad avere conoscenze e contatti che a volte si riveleranno determinanti in situazioni cruciali.
San-Dae "Piccone" Yang
È uno dei membri originali della banda di Tae-Soo e uno dei tirapiedi di Ken. Non ama Ken e spesso entra in conflitto con lui. Mentre la sua fedeltà è a volte discutibile, è estremamente agguerrito e non si tira mai indietro davanti ad una lotta. Ha lasciato il suo villaggio quando aveva 16 anni, dopo aver fatto sesso con la moglie di un contadino. Più tardi San-dae trova la sua città natale trasformata in una base militare degli Stati Uniti e si rende conto che non potrà mai tornare alla sua vita precedente. Il suo soprannome deriva dal fatto che utilizza un vero piccone in combattimento. Il suo passato rivela che San-dae ricopriva l'identità segreta di un supereroe chiamato Diago Cavaliere, respinto da supercriminali femminili.
San-Ki "Marin" Lee
È il primo membro della banda di Tae Su, da dopo la morte del padre di Tae-Soo e ben prima dell'inizio della storia, e uno degli scagnozzi di Ken. È fedele a entrambi. È un ex soldato, e spesso combatte impugnando due chiavi inglesi.
Do-Heun Chang
È uno dei membri della banda. Si fa notare per il suo fisico muscoloso abbinato a un contegno mite. Ken lo recluta in un combattimento, utilizzando una varietà di tattiche inusuali per abbatterlo. Ama la sua macchina e il suo hobby è prendersi cura di essa. Sembra morire nel capitolo 84 cadendo da un palazzo in costruzione, ma sopravvive alla caduta grazie alla sua macchina.
Kae-Lyn Kim
Membro femminile della banda, è anche l'addetta alle "pulizie" del Gruppo Sun-Ken. È uno specialista di armi, utilizza prevalentemente coltelli, ed è ossessionato da Ken. Nel volume 12 dice di aver perso la sua verginità prostituendosi in un Kiss Club solo per farlo ingelosire salvo poi portarselo a letto con tale scusa.
Capo della gang omonima. Ha una personalità spietata e vigliacca. Gli piace divertirsi con le donne costringendole a prestazioni masochistiche. Una delle attività da cui maggiormente trae profitto la sua gang è lo sfruttamento della prostituzione.
Boss mafioso su un territorio che si estende da Napoli fino a Roma. Era in affari col padre di Tae Su prima della sua dipartita. In passato veniva chiamato Don Perini.
Picciotto di Don Prego. Madre natura l`ha dotato di un lungo "pregio" ma per il resto non può vantare grandi doti. Si scoprirà poi che in realtà è in grado di capire le persone al primo sguardo. Don Prego si accorge di questa sua qualità e decide di mandarlo in Corea a "studiare" assieme a Ken e la sua gang. Non può fare a meno di fare il cascamorto quando vede una bella donna.
Kim Ban Phuong
Figlio di Kim Jin Hae, un soldato dell'Esercito della Repubblica di Corea, veterano della Guerra del Vietnam, e di una ragazza vietnamita proveniente da una famiglia povera. Durante la Guerra del Vietnam, nella quale la Corea del Sud inviò ingenti truppe per supportare il Vietnam del Sud e gli Stati Uniti, suo padre assistette ad un massacro di civili perpetrato dalle proprie truppe. Terminato il conflitto, tormentato continuamente dai rimorsi, tornò in quel villaggio Vietnamita ove i militari Sud Coreani avevano commesso il massacro, per chiedere perdono ai superstiti: la giovane ragazza che era riuscita a salvarsi grazie al suo intervento, accettò di sposare Kim Jin Hae. Kim Ban Phuong nacque in Vietnam imparando le arti marziali del Tae Kwon Do e del Muay Thai. Dopo la morte del padre, tornò in Corea dove si innamorò perdutamente di una ragazza Vietnamita, Hae Yi: questa, però, venne un giorno avvicinata dal proprio boss e da due altri uomini che tentarono di violentarla. La ragazza si suicidò lanciandosi dalla finestra per non finirne vittima. Dopo che Ban Phuong trucidò gli aguzzini del suo unico amore, iniziò a lavorare per la Banda Garugi come subalterno e combatté Ken dimostrandosi estremamente abile. Successivamente lascerà la Garugi per fondare una propria gang formata da spietati assassini stranieri per distruggere la Sun Ken Rock.
Ji Hae "Miss Yoo" Yoo
Giovane ragazza Coreana che lavora in un bar molto frequentato da Ken. Un giorno il bar viene assalito da una gang mafiosa che rapisce la ragazza per abusare sessualmente di lei. Giunto Ken per salvarla, scopre che la ragazza è stata portata via dai criminali per essere costretta a prostituirsi. Miss Yoo si trova in una buia stanza delle torture dove è stata picchiata e torturata dalla gang: quando Ken giunge, i mafiosi affermano che la ragazza ha perso la sua "purezza", essendo ora divenuta un mero oggetto impuro. Ken esplode di rabbia contro i criminali riuscendo poi a salvare la giovane donna. Per garantire la sua sicurezza, Miss Yoo viene fatta tornare al proprio piccolo paese natale di campagna per vivere in pace. Tuttavia, mentre Ken e la sua banda sono assenti, i criminali si mettono alla ricerca di Miss Yoo e, scovando la sua posizione, la rapiscono dal villaggio. Per molti giorni, la giovane donna verrà tenuta prigioniera in una piccola stanza subendo interminabili violenze sessuali da più uomini. I criminali diffondono ovunque fotografie di Miss Yoo mentre viene stuprata selvaggiamente: la propria famiglia, dalla vergogna di ciò, si suicida. Quasi per caso, i compagni di Ken, dopo una lunga assenza da Seoul, una notte decidono di divertirsi in un locale di prostituzione in città: gli amici costringono il riluttante Ken ad intrattenersi con una ragazza del locale. Questa ragazza sarà proprio Miss Yoo, ora costretta a vendere il proprio corpo per procurare sempre più guadagni alla gang di cui è schiava. Dopo aver udito la sua storia, Ken devasterà il quartier generale della gang.
Kim Gae Ha
Giovane ragazzo ex famosa star del K Pop, ora gestisce la KG Entertainment: società che arruola giovani aspiranti cantanti. Kim è giovane e molto ricco, possedendo un costoso modello di Ferrari di cui fa sfoggio in giro per i quartieri alla moda di Seoul. Egli si serve delle più belle giovani aspiranti star della musica per venderle come schiave del sesso di potenti politici: in cambio del rapido successo delle ragazze, spesso esse vengono abusate da Kim e da Yan Tae Shin, maestro personale delle ragazze. Kim è inoltre molto abile nelle arti marziali: inizialmente infliggerà una severa sconfitta a Ken fratturandogli alcune ossa durante un combattimento. In seguito verrà sconfitto dallo stesso Ken.
Yan Tae Shin
Manager della KG Entertainment che si occupa di giudicare e guidare le aspiranti cantanti verso il mondo della musica. Inizialmente si opporrà a Ken dando man forte a Kim Gae Ha, a cui obbedisce meschinamente. Oltre ad essere molto severo nei confronti delle ragazze, ama abusare sessualmente di loro. Una sera, in una stanza d'albergo, costringe una delle giovani aspiranti ad essere la sua schiava sessuale, venendo poi fermato da Ken. Un'altra volta, prima di un famoso concerto di Idol girl del K pop, costringe una delle cantanti ad avere rapporti con lui.
Volumi
Riferimenti ad altre opere
Nel sesto volume compare il cuoco Go "Cesare" Jumong che si vanta della sua famiglia, da sempre stata legata ai fornelli. Dirà poi che anche in futuro i suoi discendenti continueranno a cucinare nello spazio e nello sfondo si può intravedere la sagoma di Space Chef Caisar, protagonista dell`omonimo manga sempre di Boichi. Si può dunque ipotizzare che il futuro lì descritto sia quello del "mondo" di Sun Ken Rock.
Note
Collegamenti esterni
Anime e manga sulla yakuza | 41,126 |
https://ru.wikipedia.org/wiki/%D0%93%D0%B0%D0%B7%D0%BE%D0%B2%D1%8B%D0%B9%20%D0%97%D0%B0%D0%B2%D0%BE%D0%B4%20%28%D1%83%D0%BB%D0%B8%D1%86%D0%B0%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Газовый Завод (улица) | https://ru.wikipedia.org/w/index.php?title=Газовый Завод (улица)&action=history | Russian | Spoken | 111 | 351 | Улица Га́зовый Заво́д — улица в Кронштадте. Является продолжением Ленинградской улицы наряду с Тулонской аллеей. Протяжённость магистрали — 340 метров.
История
Улица заложена в начале XIX века, её первоначальное название неизвестно. В 1868 году в районе её магистрали состоялось открытие газового завода, построенного с целью выработки и хранения газа для обеспечения уличного освещения в Кронштадте. После этого события улица получила своё нынешнее название — улица Газовый Завод.
Здания и сооружения
дом 2 — ГУП Больница № 36 (детское инфекционное отделение);
дом 3A — ГУП Больница № 36;
Территория ГУП «Водоканал Санкт-Петербурга» (восточная оконечность улицы);
Промышленные территории;
Складские помещения.
Транспорт
На пересечении с Тулонской аллеей:
Автобусы: № 1Кр, 2Кр, 3Кр.
Примечания
Литература | 28,462 |
https://fr.wikipedia.org/wiki/Bataille%20de%20Philippes | Wikipedia | Open Web | CC-By-SA | 2,023 | Bataille de Philippes | https://fr.wikipedia.org/w/index.php?title=Bataille de Philippes&action=history | French | Spoken | 1,796 | 2,916 | La bataille de Philippes (septembre – ) voit, au cours de deux affrontements successifs, les triumvirs Octave et Antoine vaincre les républicains Brutus et Cassius dans la plaine à l'ouest de Philippes, en Macédoine orientale. Cette défaite sonne le glas des espoirs du Sénat de préserver le régime républicain.
Guerre civile entre le second triumvirat et les républicains
Après le coup d'État d'Octave qui se fait élire consul par les comices le , et la conclusion du second triumvirat le avec Lépide et Marc Antoine, les espoirs du Sénat de maintenir la république reposent sur les assassins de César, Brutus et Cassius, qui se sont enfuis en Orient en En automne 43, Cassius qui a pris la tête des légions de Syrie et d'Égypte, et vaincu le césarien Dolabella à Laodicée, fait sa jonction avec Brutus à Smyrne. Tous deux décident alors la guerre totale contre les triumvirs.
Mouvements des armées avant la bataille
Brutus et Cassius franchissent les détroits avec une armée imposante de vingt légions accompagnées d'une importante cavalerie.
Antoine et Octave traversent l'Adriatique puis la Grèce avec vingt-huit de leurs quarante-trois légions. Ils en détachent une armée de huit légions qu'ils envoient sous le commandement de L. Decidius Saxa et de C. Norbanus Flaccus à la rencontre des républicains. Cette armée traverse toute la Macédoine pour aller interdire l'accès de deux défilés en Thrace : Decidius occupe celui des Korpiles et Norbanus celui des Sapéens.
Brutus et Cassius sont prévenus de la présence de Norbanus aux défilés des Sapéens par le prince thrace Rhaskuporis, leur allié. Ils contournent l'obstacle grâce à un stratagème : ils envoient leur flotte, menée par Tillius Cimber, avec une légion, contourner le cap Serrheion et longer la côte pour faire croire qu'ils n'ont pas besoin de la route terrestre. Effectivement, Norbanus, impressionné par la démonstration de force, ordonne à Decidius de faire retraite, ce qui dégage le défilé des Korpiles pour les républicains.
Les huit légions de Norbanus et Decidius occupent de concert le défilé des Sapéens, dans la région d'Abdère. Rhaskuporis montre alors aux républicains comment contourner la position par le nord, au prix de quatre jours de marche dans de difficiles chemins de montagne du Symbolon. Brutus et Cassius parviennent ainsi dans la plaine de Philippes. Prévenus par un autre prince thrace, Rhaskos, frère de Rhaskuporis, que leur position a été de nouveau tournée, Decidius et Norbanus se replient par la route de la côte sur Amphipolis.
Brutus et Cassius établissent chacun leur camp dans la plaine à l'ouest de Philippes, le premier sur les pentes au nord-ouest de la ville, le second sur une petite colline au sud-ouest.
Forces en présence
Dans le camp républicain, d'après Appien, Brutus dispose de huit légions et ; Cassius de onze légions et également. Brutus avait ainsi de Gaule et de Lusitanie, de Thrace et d'Illyrie et Parthes et Thessaliens. La cavalerie de Cassius de son côté se décompose en Espagnols et Gaulois, archers montés arabes, mèdes et parthes. Des princes alliés galates et asiatiques leur apportent des renforts d'infanterie et surtout supplémentaires, dont proviennent de Rhaskuporis. Le total des forces républicaines s'établit à environ ; certaines légions étaient en sous-effectifs.
Dans le camp des triumvirs, vingt-huit des quarante-trois légions dont ils disposent en tout sont engagées dans cette campagne, mais huit en ont été détachées, de sorte qu'Octave et Antoine n'en disposent que de vingt devant Philippes. Contrairement aux légions républicaines, elles sont au maximum de leurs effectifs. Rhaskos a également fourni aux triumvirs.
Première bataille de Philippes (première semaine d'octobre 42 )
Antoine tente de retourner la protection qu'offre le marais aux républicains en profitant de la couverture qu'elle offre à ses troupes : il fait construire discrètement une chaussée qui contourne par le sud les positions de Cassius et, après dix jours de ce travail, envoie quelques troupes établir des redoutes au sud-est de celles-ci (fig. 2.1). Cassius surprend l'opération et riposte en faisant construire une digue dans le marais perpendiculaire à celle d'Antoine, le coupant ainsi de son avant-poste (fig. 2.2). Antoine lance alors une attaque frontale générale sur les positions de Cassius : il s'empare de son camp que ses soldats se mettent à piller (fig. 2.3).
Simultanément, les légions de Brutus attaquent au nord en direction du camp d'Octave, bousculent ses légions et s'emparent à leur tour du camp ennemi qu'ils mettent à sac. Octave lui-même ne doit miraculeusement son salut — c'est ce qu'il rapporte dans ses mémoires — qu'à un rêve prémonitoire qui l'avait fait quitter le camp (fig. 2.4).
Chassé de ses fortifications, Cassius préfère se réfugier sur l'acropole de Philippes toute proche pour y bénéficier d'une vue d'ensemble du champ de bataille. Mais la poussière lui masque l'attaque de Brutus contre Octave et ne lui laisse à voir que la déroute de ses propres troupes. Jugeant la situation perdue, et malgré peut-être des messagers lui annonçant la victoire de Brutus, il demande à son affranchi Pindarus de le tuer (fig. 2.5).
La bataille se termine lorsque chaque armée se retire sur ses positions originelles en emportant le butin fait dans le camp adverse. Les pertes sont lourdes des deux côtés : Cassius et Brutus auraient perdu et Octave et Antoine . Ces chiffres élevés (et douteux comme tous les chiffres de pertes des batailles antiques) témoignent de la violence des combats de cette première bataille indécise. Brutus fait enterrer Cassius secrètement à Thasos pour essayer de limiter les effets de cette nouvelle sur l'armée républicaine.
Seconde bataille de Philippes ()
Le jour même de la première bataille de Philippes a lieu un engagement naval en mer Ionienne : la flotte républicaine de et Ahenobarbus détruisent les renforts de deux légions que Domitius Calvinus devait apporter à Octave. Ce revers contraint les triumvirs à garder l'initiative et à forcer les républicains au combat, car leur situation logistique reste très mauvaise. Brutus de son côté occupe les anciennes positions de Cassius et souhaite de nouveau temporiser pour affaiblir ses adversaires.
Antoine tente de nouveau de contourner par le flanc sud les républicains, mais en y engageant l'essentiel de ses forces (fig. 3.1). Il fait occuper par quatre légions la colline secondaire entre le camp de Cassius et le marais, que Brutus a omis de réoccuper. Puis, à partir de cette position, il envoie dix légions établir un autre camp cinq stades plus à l'est le long du marais, et de nouveau deux autres légions construire un troisième camp, quatre stades à l'est du second.
Brutus réagit en construisant une série de redoutes pour faire face à ces nouveaux déploiements (fig. 3.2). La ligne de front change ainsi complètement de direction pour devenir ouest-est et non plus nord-sud. Elle s'étend dangereusement dans la direction de Philippes et menace de couper Brutus de sa ligne de communication avec la mer. Les triumvirs font de leur côté le pari d'occuper une position délicate, le long du marais, qui ne leur laisse pas ou peu de possibilité de retraite s'ils sont vaincus.
La seconde bataille de Philippes est finalement engagée le 23 octobre vers 15 heures, trois semaines après la première, lorsque Brutus cède à ses officiers qui le pressent de lancer le combat. D'après Appien, ce sont les soldats d'Octave qui font cette fois la décision et s'emparent des postes de fortification de Brutus. La défaite tourne rapidement à la déroute, les républicains fuyant vers la mer et la montagne. Brutus fait retraite vers les hauteurs (fig. 3.3), d'où il pense pouvoir poursuivre le combat et reprendre son camp investi par Octave. Mais il doit se résigner, abandonné par ses hommes : il choisit de se suicider à son tour plutôt que d'être fait prisonnier. Antoine fait brûler son cadavre sur un bûcher et envoyer ses cendres à sa mère, Servilia Cæpionis. D'après Suétone, au contraire, Octave lui tranche la tête pour la faire jeter aux pieds de la statue de César à Rome. Parmi les fuyards, le poète latin Horace n'est pas le dernier, lui qui avait attaché sa destinée à celle de Brutus. Les troupes républicaines restantes capitulent et se mettent aux ordres des triumvirs. Il n'y a pas d'estimations sur les pertes subies par les deux camps dans cette seconde bataille.
Conséquences de la victoire des triumvirs
Octave et Antoine licencient une partie de leurs troupes sur le champ de bataille et fondent une colonie romaine sur le site de la ville grecque de Philippes, la colonia Iulia Victrix Philippensis, dédiée à la victoire qu'ils viennent de remporter. Ils élèvent probablement un monument sur le champ de bataille, dont on n'a pas trouvé la trace. À l'endroit où la via Egnatia passait la levée de terre de Cassius, est construit un arc monumental qui marque, selon les interprétations, soit le pomœrium de la colonie, soit les nécropoles, et notamment celle des soldats tombés dans la bataille.
Les triumvirs procèdent à un partage du monde romain. Antoine, grand artisan de la victoire, obtient la Narbonnaise et surtout l'Orient qui reste sous la menace des Parthes. Octave conserve l'Occident, à charge pour lui de distribuer les terres aux vétérans de l'armée aux dépens des propriétaires fonciers italiens et d'éliminer Sextus Pompée. Lépide, qui n'a pas participé à la bataille de Philippes, doit se contenter de l'Afrique.
La République romaine est bien morte, mais la forme du régime qui la remplacera reste à déterminer : plus de dix ans de guerres civiles séparent Philippes d'Actium, l'acte de naissance de l'Empire romain.
Télévision
La bataille de Philippes constitue la fin du de la saison 2 de la série Rome. La fin de Brutus diffère cependant de la réalité historique, celui-ci mourant sous les glaives des soldats d'Antoine et d'Octave. Quant à Cassius, il meurt bel et bien des blessures subies au combat.
Notes et références
Voir aussi
Bibliographie
Appien, Bell. civ. (IV, 105-138), donne un récit très détaillé de la bataille.
Dion Cassius, Histoire romaine (XLVII, 35-49).
(« Brutus », 38-53 ; « Antoine », 22).
Shakespeare, Jules César (acte IV, scène III notamment et acte V)
L. Heuzey et H. Daumet, Mission archéologique de Macédoine, 1876, et plan A (utilisé pour illustrer cet article) : étude pionnière pour reconnaître le champ de bataille et suivre Appien pas à pas.
P. Collart, Philippes ville de Macédoine de ses origines jusqu'à la fin de l'époque romaine, Paris, 1937, : il corrige et complète Heuzey-Daumet.
P. Collart, « Note sur les mouvements de troupes qui ont précédé la bataille de Philippes », BCH LIII, 1929, : les conclusions de cet article sont reprises dans Collart 1937, mais il a l'avantage d'être consultable en ligne sur les CEFAEL
Liens externes
Cartes de la première et de la seconde bataille de Philippes sur livius.org.
Philippes
Guerre impliquant la Macédoine antique
Philippes
42 av. J.-C.
Bataille impliquant l'Empire parthe
Auguste | 21,973 |
https://id.wikipedia.org/wiki/Turiel | Wikipedia | Open Web | CC-By-SA | 2,023 | Turiel | https://id.wikipedia.org/w/index.php?title=Turiel&action=history | Indonesian | Spoken | 55 | 164 | Turiel, Tûrêl dalam penerjemahan selanjutnya (Aramaik: טויאלר, Yunani: Τονριήλ) adalah Pengintai ke-18 dari 20 atas 200 malaikat yang jatuh yang disebutkan dalam Kitab Henokh. Namanya diyakini berasal dari "tuwr-el" berarti "bukit Tuhan". Michael Knibbsmenerjemahkannya menjadi "Pegunungan Tuhan" atau "Bukit Tuhan" dari teks Kitab Henokh Ethiopia.
Referensi
Lihat pula
1 Henokh
Malaikat yang jatuh
Kitab Henokh | 30,292 |
https://ar.wikipedia.org/wiki/%D8%B7%D9%87%D8%A7%D8%B1%D9%82%D8%A9 | Wikipedia | Open Web | CC-By-SA | 2,023 | طهارقة | https://ar.wikipedia.org/w/index.php?title=طهارقة&action=history | Arabic | Spoken | 382 | 1,115 | طهارقة أو طهراقا أو ترهاقا هو أحد الملوك الكوشيين في نبتة وكان خامس ملوك الأسرة الخامسة والعشرين وأكثرهم شهرة إلى جانب أبيه بعنخي. ورد ذكره في الإنجيل على أنه حامي أورشليم من الآشوريين وامتدت فترة حكمه من 690 ق.م إلى 664 ق.م. قام طهارقا ببناء العديد من الآثار، وذلك لتدعيم وضعه. ومن أهم هذه الآثار مجموعة الأعمدة التي أقيمت في الساحة الكبيرة بمعبد آمون العظيم بالكرنك، والتي لم يبق منها سوى عمود واحد فقط. وفي معبد الكرنك قام بعمل منحدر ملكي في منتصف المعبر الثاني لمعبد الكرنك ليقسمه إلى ثلاثة أقسام بعد تشييد هذا المنحدر.
كان طهارقة حاكمًا مهمًا، حيث مثل عهده عصرًا ذهبيًا لمملكته الجديدة. على الرغم من أنه لم يكن من أصل مصري، إلا أنه حافظ على عبادة الإله المصري آمون، وبنى أهرامًا ومعابد بالأسلوب المصري، وكان مسؤولوه يكتبون بالهيروغليفية المصرية.
التاريخ العسكري
من المتفق عليه أن تتويج طهارقة ملكًا قد تم في سنة 690 ق.م. كانت أول سنين حكم طهارقة تتمتع بالسلام، وقد تمتع الحكام المحليون بقدر كبير من الحكم الذاتي. بسبب التنافس مع الآشوريين، دعم طهارقة تمردات محلية في المدن الفينيقية والتي كانت تسعى للاستقلال، إلا أنها أخمدت من قبل الملك الآشوري آسرحدون. في 674 ق.م. حاول آسرحدون غزو مصر إلا أنه هُزم، فحاول مجددا بعد ثلاث سنوات، وتمكن من هَزم طهارقة، الذي هرب من منف تاركا عائلته الملكية التي أُسرت وأُرسلت إلى آشور مع ثروة كبيرة من منف. مع ذلك، على الأغلب لم يمدد الآشوريون سيطرتهم إلى مصر العليا جنوبي منف. وتمكن طهارقة بعد سنة من إعادة السيطرة على الدلتا، مما استدعى عودة آسرحدون لمصر مجددا إلا أنه مات في الطريق. تولى بعد ذلك ابنه آشوربانيبال والذي غزا مصر مجددا وتمكن من هزم طهارقة للمرة الثانية، والذي تراجع إلى نبتة. بعد عودة آشوربانيبال إلى نينوى، تآمر الحكام المحليون في مصر مع طهارقة لمشاركته الحكم، حيث على الأغلب رأوا أنه أقل غرورا وتدخلا في الشؤون المحلية، إلا أن المؤامرة اكتشفت وتم إعدام المتآمرين.
انظر أيضًا
شجرة عائلة الأسرة المصرية الخامسة والعشرون.
مملكة كوش.
صور تهارقا
مصادر
اكتشاف المعبر الثانى في معبد الكرنك في الجزيرة
مقالة عن طهرقا في موقع السياح العرب
ذكر تهارقا في الأنجيل- الجزيرة نت
آثار السودان
القرن 7 ق.م في مصر
سنة الولادة غير معروفة
فترة انتقالية ثالثة
فراعنة الأسرة المصرية الخامسة والعشرين
فراعنة في الكتاب المقدس
كوش
ملكيون من مملكة كوش القرن 7 ق م
نوبيون
وفيات 664 ق م
مصريون من أصل نوبي | 3,962 |
https://en.wikipedia.org/wiki/George%20Bardanes | Wikipedia | Open Web | CC-By-SA | 2,023 | George Bardanes | https://en.wikipedia.org/w/index.php?title=George Bardanes&action=history | English | Spoken | 337 | 535 | George Bardanes (, died. ca. 1240) was a Byzantine churchman and theologian from Athens. A pupil of Michael Choniates, he later became bishop of Corfu and played a major role in the rivalry between the Epirote Church and the Ecumenical Patriarchate, exiled in the Empire of Nicaea.
Life
Bardanes was born in Athens some time in the late 12th century. He came under the tutelage of the city's archbishop, Michael Choniates, under whom he received his education.
When Athens was captured by the Crusaders in 1205, Bardanes followed his master to his exile on Keos, serving as his secretary (hypomnematographos and chartophylax). In 1214 he went to the capital of the Latin Empire, Constantinople, to represent Choniates in the discussions between Greek Orthodox prelates and the Papal representative, Cardinal Pelagius of Albano. By 1218 he was serving in the bishopric of Grevena as chartophylax. By this time he had established a friendship and correspondence with another prominent cleric, the Metropolitan of Naupaktos John Apokaukos, and through the latter's intercession, was appointed in 1219 as Metropolitan of Corfu by the ruler of Epirus, Theodore Komnenos Doukas.
From this position Bardanes, along with Apokaukos and the Archbishop of Ohrid Demetrios Chomatenos, became one of the leading proponents of political and ecclesiastical independence of Epirus from the Empire of Nicaea, where the exiled Ecumenical Patriarch of Constantinople resided after the city had fallen to the Crusaders. In 1228, Bardanes authored the letter of the Epirote clergy to Patriarch Germanus II which effected a schism between the two Churches that lasted until 1233, when again it fell to Bardanes to compose the letter that ended it.
In 1235/6, the ruler of Thessalonica Manuel Komnenos Doukas sent Bardanes to Italy, as an envoy to Frederick II Hohenstaufen and Pope Gregory IX, but he fell ill at Otranto and was unable to carry out his mission. He died in ca. 1240.
References
Sources
12th-century births
1240s deaths
13th-century Byzantine bishops
Greek Orthodox bishops of Corfu
Byzantine Athenians
People from the Despotate of Epirus | 18,475 |
https://en.wikipedia.org/wiki/Merwin%20%28name%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Merwin (name) | https://en.wikipedia.org/w/index.php?title=Merwin (name)&action=history | English | Spoken | 211 | 420 | Merwin or Merwyn is a surname and masculine given name.
Surname
Abigail Merwin (1759–1786), who warned her hometown of the arrival of British forces in the American Revolutionary War
Bannister Merwin (1873–1922), early American film director
Jesse Merwin (1783–1852), American schoolmaster, possible inspiration for the character Ichabod Crane in the short story "The Legend of Sleepy Hollow"
John David Merwin (born 1921), former Governor of the United States Virgin Islands
Orange Merwin (1777–1853), member of the U.S. House of Representatives from Connecticut
Sam Merwin, Jr. (1910–1996), mystery and science fiction writer, and editor
Samuel Merwin (writer) (1874–1936), American playwright and author
Samuel Edwin Merwin (1831–1907), American politician, Lieutenant Governor of Connecticut
W. S. Merwin (1927–2019), American poet
Given name
Merwin Coad (born 1924), former member of the U.S. House of Representatives from Iowa
Merwin Graham (1903-1989), American Olympic athlete
Merwin K. Hart (1881–1962), American politician
Merwin Hodel (1931–1988), American football player
Merwin Jacobson (1894–1978), Major League Baseball backup outfielder
Merwin Maier (1908-1942), American attorney
Merwin Mitterwallner (1897-1974), American football player
Merwin Mondesir (born 1976), Canadian actor
Merwin Sibulkin (1926-2006), American scientist
Merwin H. Silverthorn (1896–1985), lieutenant general and Assistant Commandant of the United States Marine Corps
Merwin Crawford Young (1931-2020), American political scientist
See also
Merwin (disambiguation)
Surnames of Welsh origin | 7,346 |
https://uk.wikipedia.org/wiki/%D0%90%D0%BD%D0%B3%D1%80%D0%B5%D0%BD%D1%81%D1%8C%D0%BA%D0%B5%20%D1%80%D0%BE%D0%B4%D0%BE%D0%B2%D0%B8%D1%89%D0%B5%20%D0%B2%D1%83%D0%B3%D1%96%D0%BB%D0%BB%D1%8F | Wikipedia | Open Web | CC-By-SA | 2,023 | Ангренське родовище вугілля | https://uk.wikipedia.org/w/index.php?title=Ангренське родовище вугілля&action=history | Ukrainian | Spoken | 191 | 711 | Ангре́нське родовище вугілля — родовище бурого вугілля розташоване в долині річки Ахангаран в Ташкентській області Узбекистану. Відкрите у 1933 році, розробляється з 1940 року.
Характеристика
Площа близько 70 км². Розвідані запаси 1 880 мільйонів тонн. Юрська вугленосна товща (до 160 м) містить потужний вугільний поклад складної будови потужністю від 20 м (на виходах) до 130 м (на глибині). Нижня, компактніша частина покладу — «Потужний комплекс» (20-50 м); верхня, більш «розкидана» частина — «Верхній комплекс». Вугленосна товща складає широку пологу синкліналь. Південно-східне крило слабконахилене (5-6°), місцями порушене розривами, північно-західне крило ускладнене вторинною складчастістю і насувами. Вугілля буре (зольність 22%; теплота згоряння — 13,4 МДж./кг).
Технологія розробки
Розробка вугілля, в основному, ведеться відкритим способом. У 1990-х роках працює станція підземної газифікації вугілля. Родовище комплексне. Первинні каоліни, які залягають у ґрунті вугільних покладів, використовуються як сировина для виготовлення цементу, керамічних виробів. В перспективі розглядається як глиноземна сировина. У відкладах, які перекривають вугленосну товщу, містяться вапняки, які придатні для виготовлення портландцементу, вапна, флюсів, бурту, щебеню, а також лесовидні суглинки — сировина для виготовлення цегли та каналізаційних труб.
Див. також
Ангренський ВТТ
Джерела
Географический энциклопедический словарь. Москва. «Советская энциклопедия». 1989. стор. 30
Родовища Узбекистану
Ташкентська область | 201 |
https://et.wikipedia.org/wiki/Modulatsioon%20%28%C3%BClekandetehnika%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Modulatsioon (ülekandetehnika) | https://et.wikipedia.org/w/index.php?title=Modulatsioon (ülekandetehnika)&action=history | Estonian | Spoken | 716 | 2,254 | Modulatsioon (ladina keeles modulatio taktipärasus) tähendab info- ja kommunikatsioonitehnoloogias info edastamiseks kasutatava signaali ‒ kandesignaali ‒ mingi parameetri muutmist ülekantava infosignaali muutumise taktis.
Kandesignaaliks võib olla kas pidev signaal, harilikult katkematu harmooniline võnkumine ehk siinusvõnkumine, või siis mittepidev, s.o katkeline signaal, enamasti kujutatav ristkülikimpulsside jadana. Kandesignaali (moduleeritava signaali) muudetavateks parameetriteks on tema amplituud, sagedus ja faas, impulsside puhul ka nende laius. Moduleerivaks signaaliks võib olla nii analoogsignaal kui ka digitaalsignaal.
Signaalide moduleerimise seade on modulaator; moduleeritud kandesignaalist eraldab esialgse info demodulaator. Modem on seade, mis teostab nii moduleerimist kui ka demoduleerimist. Moduleeritud signaalide edastusmeediumiks (-kanaliks, -liiniks) võib olla traat- või kiudoptiliste soontega kaabel või raadiosageduskanal.
Moduleerimise eesmärk on töödelda infot nii, et seda saaks edastada kiiresti suures mahus ja seejuures võimalikult moonutusvabalt. Seepärast edastatakse info tema algsest sagedusest palju kõrgemal sagedusel, sest siis on edastuskanali läbilaskevõime suurem. Moduleerimine on ka ainus võimalus edastada infot raadiolainete vahendusel. Seda võimalust hakati kasutama juba ligi 100 aastat tagasi ringhäälingusaadete levitamiseks.
Olenevalt edastatava signaali liigist ja teisendamise eesmärgist on kasutusel mitmesuguseid moduleerimismeetodeid.
Siinuselise kandevõnkumise moduleerimine analoogsignaaliga
Amplituudmodulatsioon (lühend AM, amplitude modulation) ‒ kandevõnkumise amplituudi muudetakse vastavalt pideva infosignaali hetkväärtusele; kasutusel ringhäälingusaadete edastamiseks pikk-, kesk- ja lühilainel.
Ühe külgriba (SSB, single sideband) modulatsioon ‒ amplituudmodulatsioon, mille puhul kandesageduse ümber tekkivast ülemisest ja alumisest külgribast lõigatakse üks külgriba ära. Näiteks analoogtelevisioonis edastatakse AM-videosignaal nii, et alumine külgriba on peaaegu täielikult ja kandja osaliselt maha surutud.
Kvadratuurne amplituudmodulatsioon (QAM); kasutusel näiteks analoogvärvitelevisioonis kahe värvussignaali üheaegseks edastamiseks, samuti AM-stereoringhäälingus.
Sagedusmodulatsioon (FM, frequency modulation) ‒ kandevõnkumise sagedust muudetakse pidevalt vastavalt infosignaali taseme muutusele; kasutusel näiteks raadioringhäälingu saadete edastamiseks meeterlainetel ja heli edastamisel analoogtelevisioonis.
Faasimodulatsioon (PM, phase modulation) ‒ kandevõnkumise faasi muutmine vastavalt edastatava informatiivse signaali hetkväärtusele.
Siinuselise kandevõnkumise moduleerimine digitaalsignaaliga
Digitaalsignaaliga siinuselise kandesignaali moduleerimist nimetatakse manipulatsiooniks (inglise keeles keying, mille üks tähendus on morsevõtme käsitsemine ehk manipulatsioon ‒ kontakti avamise-sulgemisega kahendsignaalide edastamine). Kandevõnkumise parameetrit ‒ amplituudi, sagedust või faasi ‒ muudetakse siin hüppeliselt manipulatsiooni taktis.
Amplituudmanipulatsioon (ASK, amplitude-shift keying) ‒ püsiva sagedusega kandevõnkumise amplituudi muudetakse astmeliselt kahe taseme vahel vastavalt infosignaali väärtustele 0 ja 1.
Sagedusmanipulatsioon (FSK, frequency-shift keying) ‒ püsiva amplituudiga kandevõnkumise sagedust muudetakse hüppeliselt kahe sageduse vahel vastavalt infosignaali väärtustele 0 ja 1.
Faasmanipulatsioon (PSK phase-shift keying) ‒ püsiva amplituudiga kandevõnkumise faasi muudetakse hüppeliselt vastavalt infosignaali muutumisele.
Binaarfaasmanipulatsioon (BPSK, binary phase-shift keying) ehk 2-PSK ‒ kasutusel on kaks faasinurka, näiteks signaaliväärtusele 0 vastab 0º ja väärtusele 1 faasinihe 180º).
Kvadratuurfaasmanipulatsioon (QPSK, quadrature phase-shift keying või quaternary phase shift keying) ehk 4-PSK ‒ kasutusel on neli faasinurka: 45°, 135°, 225° ja 315°; igale faasile vastab siis kahest bitist koosnev sümbol 00, 01, 10, 11. Seega saab korraga edastada kaks korda rohkem infot ja vastavalt suureneb kaks korda ka andmeedastuskiirus.Modulatsioonisüsteemides 8-PSK, 16-PSK, 32-PSK on kasutusel vastavalt 8 faasinurka (sümbol koosneb kolmest bitist), 16 faasinurka (sümbol koosneb neljast bitist) või 32 faasinurka (sümbol koosneb viiest bitist).
Amplituud-faasmanipulatsioon (APSK, amplitude and phase-shift keying või asymmetric phase-shift keying) ‒ amplituudmanipulatsiooni (ASK) ja faasmanipulatsiooni (PSK) kombinatsioon.
Kvadratuuramplituudmodulatsioon (QAM, quadrature amplitude modulation ‒ siin edastatakse korraga kaks võrdse sagedusega kandesignaali, mis on omavahel 90-kraadises faasinihkes (kvadratuuris). Kumbagi kandelainet amplituudmoduleeritakse mitmel tasemel. Näiteks modulatsiooni 4-CAM korral saab edastada 4 kahebitist sümbolit (see annab sama tulemuse kui QPSK ehk 4-PSK), 16-QAM korral edastatakse 16 sümbolit (4 bitist), 64-QAM ‒ 64 sümbolit (6 bitist) jne.
Impulsijada moduleerimine analoogsignaaliga
Impulsiamplituudmodulatsioon (PAM, pulse amplitude modulation) ‒ moduleeriv analoogsignaal muudab püsiva sagedusega üksteisele järgnevate ühelaiuste impulsside jada amplituudi.
Impulsskoodmodulatsioon (PCM, pulse code modulation) ‒ impulsiamplituudmodulatsioon, kui iga impulsi amplituudväärtus väljendatakse kahendkoodis arvuga (näiteks audiosignaali digiteerimisel CD jaoks on koodisõna pikkus 16 bitti).
Diferents-impulsskoodmodulatsioon (DPCM, differential pulse code modulation) ‒ impulsskoodmodulatsioon (PCM), mispuhul salvestusmahu vähendamiseks kodeeritakse iga näiduvõtuväärtuse asemel selle erinevus eelmisest.
Deltamodulatsioon (DM, delta modulation, Δ-modulation) ‒ diferents-impulsskoodmodulatsioon (DPCM), mille puhul iga järjestikuse näiduvõtuväärtuse kohta salvestatakse selle erinevus (Δ, delta) 1 biti võrra eelmisest, s.o signaali tugevnemisel 1 ja nõrgenemisel 0.
Adaptiivne deltamodulatsioon (ADM, adaptive delta modulation) ‒ digiteeritava analoogsignaali muutumise kiirust arvestava kvantimisastmega deltamodulatsioon.
Impulsisagedusmodulatsioon (PFM pulse frequency modulation) ‒ moduleeriv analoogsignaal muudab püsiva amplituudiga impulsside sagedust (impulsside arvu ajaühikus).
Impulssfaasmodulatsioon (PPM, pulse phase modulation, pulse position modulation) ‒ moduleeriv signaal muudab püsiva amplituudi ja sagedusega impulsside faasi (näiteks signaalipinge suurenemisel impulsside vaheaeg pikeneb).
Impulsilaiusmodulatsioon (PWM, pulse width modulation) ehk impulsikestusmodulatsioon (PDM pulse duration modulation) ‒ moduleeriv signaal muudab püsiva amplituudi ja sagedusega ristkülikimpulsside laiust.
Välislingid
Modulatsiooni mõiste
Traadita side tehnoloogiad
Digitale Modulationsverfahren
Infotehnoloogia
Side | 29,295 |
https://superuser.com/questions/489571 | StackExchange | Open Web | CC-By-SA | 2,012 | Stack Exchange | Avi Cherry, Cantrell Ashby, Chris Page, Horowitz Feddersen, Lohse Ohlsen, Matthew, Oxiriarkana, RaphaAxel, Schmidt Parrish, Tamir Maidani, https://superuser.com/users/1282578, https://superuser.com/users/1282579, https://superuser.com/users/1282580, https://superuser.com/users/1405971, https://superuser.com/users/1423904, https://superuser.com/users/1468923, https://superuser.com/users/1470342, https://superuser.com/users/777417, https://superuser.com/users/81175, https://superuser.com/users/82772 | English | Spoken | 950 | 1,216 | UP arrow key on Apple External Keyboard not recognized in OSX Lion terminal
I have a MacBook pro for work use, and just got my hands on an apple USB keyboard.
When I am in the terminal, using the external keyboard ONLY I receive weird characters when I hit the UP arrow key. For instance, hitting the up arrow either enters a "~" (tilda) character. I tried changing the keyboard settings, and after doing that I started getting garbage characters "]]&D]]" and the like (that's not the actual error - it's the sort of character output you get when using a box remotely with the shell not configured properly for arrow keys).
The weird thing though is that while doing this with the external keyboard, the macbook's built in keyboard has no issues, all arrow keys work just fine. So this seems to be entirely related to the external keyboard.
Does anyone have any ideas what could be going on or how it could be fixed?
What sort of USB keyboard? Does it have a US QWERTY layout?
I just noticed I hadn't put in the ultimate fix. The problem ultimately appears to have been the keyboard. It worked in all other facets BUT the terminal. When I attached a different unit of the same type of keyboard to the same laptop, the issue went away. So for some reason the keyboard is generating an interrupt that is seen by the OS as an up arrow press, but the shell is not understanding it as such. I don't really understand how that can happen, but that's what it is doing. Thank you all for your great suggestions.
I'll be damned. I just discovered exactly the same problem. Plugged in a different Apple External Keyboard and the problem went away.
Crazy right? I can't believe it actually worked. Amazingly enough I've been using the good keyboard for years now with no problems.
It is possible that a little more detail would help answer this question. As it stands, I would approach this problem by trying to troubleshoot step-by-step, and here are some steps I would consider.
If you have access to a different Apple or other vendor's USB keyboard, attempt to use that to see if the problem recurs. It is possible that your particular keyboard and/or laptop USB ports have a problem.
I would check your terminal emulation type with:
$ printenv TERM
xterm-256color
If it is not "xterm-256color" (the default for new windows in OS X's Terminal) then you may wish to consider setting your window to use that via Terminal's preferences. (This assumes you are using Terminal, and not an alternative, like iTerm.)
If you are using the "screen" utility or an SSH session, you may wish to try the same processes without them. If the problem repeats without them, you've gained some more information. If the problem doesn't repeat, then the configuration for those utilities or the interaction with your shell may be at issue, and you can look further into that.
Your tags indicate that Zsh might be in use. Determine if you have the same problem if you switch to bash (the default for OS X since Mac OS X 10.3 Panther) or another shell. A benefit of trying this that Bash and Zsh shouldn't share any or many configuration files. So, the possibility of a particular customized configuration for either shell being the culprit would be minimized.
If another shell doesn't have the same problem, you will need to determine whether the shell configuration or shell itself is the problem. If the shell you normally use has been customized, I'd back up and eliminate that customization before starting a new session. If the new session works, then it stands to reason there's a problem in your specific shell configuration.
You could also try the above steps with a fresh new OS X user account, which will inherit default settings from the localized user template for your language. This user account can be created and removed after testing via System Preferences > Users & Groups (as it is named in OS X Mountain Lion). This step would generally eliminate any other keyboard layouts that have been installed, as well as software that might modify keyboard behavior. Even if such software was installed for all users on the system, it is probably not set up as a Login Item for new users.
Assuming the keys actually work at all, the problem would seem to be that they generate unrecognized control sequences, although why this should happen on an Apple keyboard is beyond me.
My suggestion would be to grab USB Overdrive. You should be able to use this to map the arrow keys to the normal functions.
The Apple Keyboard sometimes throw F6 with Up arrow key. You might not notice the effect in other apps or generally in the OS. You can confirm this issue by launching an online keyboard testing utility (e.g. https://www.keyboardtester.com/)
Press Up arrow and see if F6 hits with it. If you have the same issue which brought me here then here are few fixes.
1) Plug out and Plug in the keyboard after some time.
2) Try to use a different USB Port to connect the keyboard.
3) Try cleaning the keyboard (Not recommended as people tried multiple brand new keyboards)
4) Restart the computer (Seriously)
5) If nothing works, Just install a free utility like (Karabiner-Elements) and map F6 to Up Arrow.
There is a better fix using Karabiner, (I've been using it) it involved practical mess around its configurations and time consuming. So if you do not use F6 for brightness etc. This might be helpful for you.
| 44,514 |
https://en.wikipedia.org/wiki/Finno-Samic%20languages | Wikipedia | Open Web | CC-By-SA | 2,023 | Finno-Samic languages | https://en.wikipedia.org/w/index.php?title=Finno-Samic languages&action=history | English | Spoken | 724 | 1,085 | The Finno-Samic languages (also known as Finno-Saamic, Finno-Lappic, Fenno-Saamic, or Saamic–Fennic) are a hypothetical subgroup of the Uralic family, and are made up of 22 languages classified into either the Sami languages, which are spoken by the Sami people who inhabit the Sápmi region of northern Fennoscandia, or Finnic languages, which include the major languages Finnish and Estonian. The grouping is not universally recognized as valid.
Related hypotheses
The Mordvinic languages appear to also align closely with both Finnic and Samic. Some innovations in the consonant system are shared by Finnic and Mordvinic specifically, while a number of innovations in the vowel system are shared by Samic and Mordvinic specifically.
The Mari language shows a smaller number of similarities with all three of these, and a larger grouping encompassing Finnic, Samic, Mordvinic and Mari is sometimes posited (the Finno-Volgaic languages).
Helimski (2006) proposes a "Northwest" group of Finno-Ugric languages, encompassing not only Finnic and Sami, but also extinct languages once spoken in the north of European Russia, traceable only as substrata, especially in toponymy.
Arguments for and against genetical unity
The common ancestor of Finnic and Samic is traditionally known as Early Proto-Finnic (Finnish: varhaiskantasuomi). Its phonology and morphology can be reconstructed in great detail. However, this reconstruction turns out to be nearly identical to assumed preceding stages such as Proto-Finno-Volgaic, Proto-Finno-Ugric, and even Proto-Uralic itself.
There are a number of noticeable traits common to most Finno-Samic languages, however none of them unquestionably in favor of a family unity. The first of these is the presence of consonant gradation, found in all of the languages except the marginal languages of the group, Livonian, Veps and Southern Sami. Gradation is also found in the distantly related Samoyedic Nganasan, and it has been debated if gradation is an original Uralic feature suppressed in all other branches, an independent innovation in Finno-Lappic and Nganasan, or independent in all three of Finnic, Samic and Nganasan. Also, even if gradation in Finnic and Samic is connected, it is disputed whether this represents common inheritance or later contact influence.
The contrastive presence of rounded vowels beyond the first syllable, atypical of Uralic languages in general, is also found in both Finnic and Samic (and again also Samoyedic). This too has been argued to represent later contact influence, on the basis of comparisons such as F. : S. "maternal uncle", where the exclusively Finnic development > appears to have been loaned into Samic. There is also considerable disagreement between the languages (both between the two families, and within them) in whether certain words contain a rounded vowel.
The loss of initial before a short rounded vowel has also been proposed as a common innovation, but with counterexamples such as Estonian võtta- "to take" (with preserved as its regular reflex due to the development > ) suggesting a date postdating not only the split between Finnic and Samic, but also of northern and southern Finnic (cf. Finnish otta-). (A complementary epenthesis of *w before initial long rounded vowels is accepted to not represent common inheritance, as it occurs also before long vowels resulting from the exclusively Samic development > . )
For morphological features common to Samic and Finnic formerly thought to represent Finno-Samic innovations, explanations have likewise been offered either of common Uralic inheritance or of independent innovation.
Lexicon
Approximately 600 native word roots are shared by the Finnic and Samic languages, of which approximately 100 lack cognates in the other Uralic languages. The high number of Finnic loanwords in Samic makes exact analysis however difficult, and old loanwords from Samic to Finnic may also be involved, especially in light of approximately a third of these words being absent also from the more southern Finnic languages (Estonian, Livonian and Votic). These numbers can be contrasted with ca. 40 word roots exclusive to Finnic and Mordvinic, 12 word roots exclusive to Samic and Mordvinic, and 22 word roots exclusive to all three.
Additionally a large number of early loanwords from the Germanic languages, and a small number from the Baltic languages, are found in both Finnic and Samic. Such words cannot however provide clear evidence for a Finno-Samic grouping, as the possibility remains that these have been acquired separately by early Finnic and early Samic, after their initial separation but prior to the development of their most distinctive features.
References
Uralic languages | 16,513 |
https://stackoverflow.com/questions/31124606 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | Roman Ivanov, https://stackoverflow.com/users/1015848 | English | Spoken | 306 | 644 | Is it possible to use some auth credentials of travis-ci or my user to use github api
for Testing on Travis-CI I need to download some projects from github by wget. Here is what I have in travis logs:
Requesting a tar: 'wget https://api.github.com/repos/apache/hbase/tarball/1.1.0.1 -O src/main/java/apache-hbase.tar.gz'
--2015-06-28 18:24:16-- https://api.github.com/repos/apache/hbase/tarball/1.1.0.1
Resolving api.github.com (api.github.com)... 192.30.252.139
Connecting to api.github.com (api.github.com)|192.30.252.139|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2015-06-28 18:24:16 ERROR 403: Forbidden.
Github support explained that as:
You're probably hitting the rate limit for unauthenticated requests:
https://developer.github.com/v3/#rate-limiting
If you switch to making authenticated requests -- you should get a
much better API rate limit. We don't provide support for the Travis
platform, so you should reach out to Travis support to understand the
options for making authenticated requests using their platform.
So questions is: is it possible to safely reuse Travis-CI credentials or credentials of my travis user to work with github api without limitations of 60 request per hour?
You should be able to use a Github OAuth token by storing it securely in an encrypted variable in Travis CI and then passing it to your wget call like this:
// First encrypt your Github OAuth token
travis encrypt MY_GITHUB_OAUTH_TOKEN=token --add
The previous call will automatically add the environment variable hash to your .travis.yml file.
Then you should be able to use it like this in your wget call:
wget \
--header='Authorization: token $MY_GITHUB_OAUTH_TOKEN' \
https://api.github.com/repos/apache/hbase/tarball/1.1.0.1 \
-O src/main/java/apache-hbase.tar.gz
Hope this helps!
My opensource project use FREE plan of travis, so we do not have dedicated server, I also use "sudo: false" that also limits a bit. "Encrypted variables are not added to untrusted builds such as pull requests coming from another repository." - that does not work for us, I need that Travis builds to check PRs from contributors.
Do you have any other ideas ?
| 37,001 |
https://stackoverflow.com/questions/69995466 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | https://stackoverflow.com/users/4679320, https://stackoverflow.com/users/8870206, prasad_, s.khan | English | Spoken | 430 | 765 | Unable to query all the documents of a reference model that match a string instead of an id
So I am working on an app where I have two models, Posts and Categories. In posts there's a field which references the Categories model. Now there are multiple posts with the same category and I need to fetch those posts by passing a string which will match with the category name. I need to use aggregate here as there are thousands of posts. And it takes a lot of time to fetch 90k posts and then match with the category name to find all the posts. So I want to use aggregate to lookup the category with the category name then use that category's id to find all the posts.
Suppose here are both the schemas:
**POSTS SCHEMA**
const postSchema = new mongoose.Schema( {
text: {
type: String
},
categories: [ {
_id: false,
categoryID: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Categories',
}
} ]
} );
**CATEGORIES SCHEMA**
const categorySchema = new mongoose.Schema( {
category: {
type: String,
}
} );
So now suppose I need to find all the posts that have a category called Politics. I can't fetch all the posts and then filter out based on category name as fetching takes a lot of time because of the total number of posts. So here's what I tried:
const aggregateObj = [
{
"$lookup": {
"from": "categories",
"let": {
"category": "$category"
},
"pipeline": [
{
"$match": {
"category": "Politics"
}
}
],
"as": "category"
}
},
{
$unwind: "$category"
},
{
"$lookup": {
"from": "posts",
"pipeline": [
{
"$match": {
"categories.categoryID": "$_id"
}
}
],
"as": "posts"
}
}
];
const posts= await Post.aggregate( aggregateObj ).exec();
I don't get any output as it keeps on loading without any errors. What am I doing wrong here?
You my want to verify if your first $lookup usage is okay; for example, what is the purpose of the let option in it as you are using.
@prasad_ I got that from a tutorial. And I guess it is to assign a variable.
You don't need to lookup another collection then use that to lookup data in another. You can populate the posts collection and then match with your desired string. Something like this:
const aggregateObj = [
{
'$lookup': {
'from': 'categories',
'localField': 'categories.categoryID',
'foreignField': '_id',
'as': 'categories' // if you have a field with the same name then it will overwrite that and populate. Or you can just specify a different name
}
}, {
'$match': {
'categories.category': 'Politics'
}
}
];
| 17,856 |
https://stackoverflow.com/questions/50737714 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Sunny, Søren D. Ptæus, https://stackoverflow.com/users/5389131, https://stackoverflow.com/users/7267866 | English | Spoken | 187 | 269 | Focus preventScroll not working in firefox
I need to prevent the scroll caused by focus().
For this purpose, I found that if I use element.focus({preventScroll : true}) instead of element.focus(), it works fine, based on the documentation from mozilla.
However, this only works perfectly on Chrome but not in Firefox.
I'm wondering how could it be not supported by FireFox, when the documentation has been done by Mozilla.
Am I missing something here?
Focus method documentation by Mozilla
Please note the documentation specifies the optional focusOptions parameter is considered experimental and should currently not be used in production code. I can confirm that the example Mozilla provides on the documentation page does not work on Firefox 60 (tested on 60.0.1 and 60.0.2).
hmm yeah...that says it all...but still surprising..as it works in Chrome! So, the only alternative I've currently is to reset the scroll behavior after on focus.
It's relatively new in Chrome as well. The focusOptions parameter has been introduced with Chrome 64 this January.
Oh ok, but in my opinion, as seen in the past, firefox should have been the 1st browser to support this!
| 30,107 |
https://stackoverflow.com/questions/75235555 | StackExchange | Open Web | CC-By-SA | 2,023 | Stack Exchange | English | Spoken | 572 | 1,268 | Routing is not triggerd with useEffect in Nextjs
I have a dynamic page in Nextjs -> steps -> [slug].tsx . Essentially, it is a steps page and routing is triggered whenever a step changes in the state. For example, if I am in the first step, its value is null but once I click next its value becomes "next". When I go back I basically null the step and useEffect should react to these changes and route. However, it doesn't seem to work. I am not sure why.
Here is my code
type Steps = {
title: string;
slug: string;
value: string | null;
};
const StepsPage: NextPage = () => {
const router = useRouter();
const { query } = router;
const [steps, setSteps] = useState<Steps[]>([
{
title: "Step 1",
slug: "step-1",
value: null,
},
{
title: "Step 2",
slug: "step-2",
value: null,
},
{
title: "Step 3",
slug: "step-3",
value: null,
},
]);
let step: Steps | undefined = undefined;
useEffect(() => {
if (!steps) {
return;
}
const nextStep = steps.find((step) => step.value === null);
if (nextStep && step && step.slug !== nextStep.slug) {
console.log("go to next step");
router.push(`/steps/${nextStep.slug}`);
return;
}
if (!nextStep) {
router.push("/result");
return;
}
}, [router, steps, step]);
if (!steps) {
<div>no steps found</div>;
}
const slug = Array.isArray(query.slug) ? query.slug[0] : query.slug;
if (!slug) {
return <div>no slug found</div>;
}
const currentStep = steps.find((step) => step.slug === slug);
if (!currentStep) {
return <div>no current step found</div>;
}
const handleStep = (value: string | null) => {
setSteps((prevSteps) => {
const updatedSteps = prevSteps.map((step) => {
if (step.slug === slug) {
return { ...step, value };
}
return step;
});
return updatedSteps;
});
};
return (
<div>
<h1>Step Page</h1>
<p>Slug: {slug}</p>
<button onClick={() => handleStep("next")}>Next</button>
<button onClick={() => handleStep(null)}>Back</button>
</div>
);
};
export default StepsPage;
To me, it looks like the logic might just be a little jumbled. Here's what I'd recommend.
First, it looks like the steps themselves are static. I would make your Step type simply
type StepSlug = "step1" | "step2" | "step3"; // Extra type safety
interface Step {
title: string;
slug: StepSlug;
};
Then, I would declare the following array outside of the component, since it is static.
const STEPS: Step[] = [
step1: {
title: "Step One",
slug: "step1",
},
// same for step2 and step3
];
Then, within your component, you have the following state:
const StepsPage = () => {
...
const [stepIx, setStepIx] = useState(0);
const [values, setValues] = useState<(string | null)[]>(STEPS.map(() => null)); // creates initial values of array, same length as STEPS, with all null values
...
// Not necessary but for readability
const currentStep = STEPS[stepIx];
const canGoForward = stepIx < STEPS.length - 1;
const canGoBackward = stepIx > 0;
const goForward = () => {
if (!canGoForward) return;
setStepIx((val) => val + 1);
}
const goBackward = () => {
if (!canGoBackward) return;
setStepIx((val) => val - 1);
}
// Helper functions
const updateCurrentValue = (newVal: string) => {
setValues((oldValues) => {
oldValues[stepIx] = newVal;
return oldValues;
}
};
...
// Here's how you listen to changes to the step
useEffect(() => {
... // logic for setting the slug
}, [stepIx]);
...
}
Obviously there's still a bit to fill in, but this is both safer (w.r.t types) and lets stepIx serve as the source of truth combined with the STEPS array so you don't have to keep searching for the slug.
| 36,229 | |
https://da.wikipedia.org/wiki/Studenter-nellike | Wikipedia | Open Web | CC-By-SA | 2,023 | Studenter-nellike | https://da.wikipedia.org/w/index.php?title=Studenter-nellike&action=history | Danish | Spoken | 201 | 440 | Studenter-Nellike (Dianthus barbatus) er en art af nellikeslægten, som er hjemmehørende i det sydlige Europa fra Pyrenæerne øst til Karpaterne og Balkan, med en række udspredninger i det nordøstlige Kina, Korea og sydøstlige Rusland.
Beskrivelse
Studenter-nelliken er, som andre nelliker, en staude og vokser til en højde af 30-75 cm. Blomsterne sidder i en tæt klynge af op til 30 på toppen af stilkene, med grønne til blågrønne tilspidsede blade, som er 4-10 cm lange og 1-2 cm brede. Hver blomst er 2-3 cm i diameter med fem savtakkede kronblade. Vilde studenter-nelliker producerer røde blomster med en hvid midte, men sorter og hybrider i andre farver spænder fra hvid, pink, rød og lilla, til brogede mønstre.
Studenter-nelliker tiltrækker bier, fugle og sommerfugle. De trives i leret, let basisk jord med sol til delvis skygge. Formering er ved frø eller afklippede stiklinger.
Planten blev introduceret til det nordlige Europa i det 16. århundrede, og senere til Nordamerika og andre steder, og er blevet naturaliseret i disse områder.
Der er to varianter:
Dianthus barbatus var. barbatus. Sydeuropa. Bredere blade, op til 2 cm bred.
Dianthus barbatus var. asiaticus. Nordøstlige Asien. Tyndere blade, ikke over 1 cm bred.
Galleri
Referencer
Haveplanter
Røde blomster
Nellike | 6,476 |
https://id.wikipedia.org/wiki/Mesoprionus%20zarudnii | Wikipedia | Open Web | CC-By-SA | 2,023 | Mesoprionus zarudnii | https://id.wikipedia.org/w/index.php?title=Mesoprionus zarudnii&action=history | Indonesian | Spoken | 59 | 145 | Mesoprionus zarudnii adalah spesies kumbang tanduk panjang yang tergolong famili Cerambycidae. Spesies ini juga merupakan bagian dari genus Mesoprionus, ordo Coleoptera, kelas Insecta, filum Arthropoda, dan kingdom Animalia.
Larva kumbang ini biasanya mengebor ke dalam kayu dan dapat menyebabkan kerusakan pada batang kayu hidup atau kayu yang telah ditebang.
Referensi
TITAN: Cerambycidae database. Tavakilian G., 25 Mei 2009.
Mesoprionus | 26,567 |
https://zh-yue.wikipedia.org/wiki/%E8%B1%90%E7%94%B0%E6%B3%B0%E5%BB%A3 | Wikipedia | Open Web | CC-By-SA | 2,023 | 豐田泰廣 | https://zh-yue.wikipedia.org/w/index.php?title=豐田泰廣&action=history | Cantonese | Spoken | 4 | 49 | ()係日本足球員,司職後衞,效力過大宮松鼠。
出面網頁
日本足球員
大宮松鼠球員 | 5,336 |
https://cy.wikipedia.org/wiki/Rolfe%2C%20Iowa | Wikipedia | Open Web | CC-By-SA | 2,023 | Rolfe, Iowa | https://cy.wikipedia.org/w/index.php?title=Rolfe, Iowa&action=history | Welsh | Spoken | 29 | 78 | Dinas yn , yn nhalaith Iowa, yw .
Poblogaeth ac arwynebedd
Pobl nodedig
Ceir nifer o bobl nodedig a anwyd yn Rolfe, gan gynnwys:
Cyfeiriadau
Dinasoedd Pocahontas County, Iowa | 21,776 |
https://stackoverflow.com/questions/23527063 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Ken White, https://stackoverflow.com/users/62576 | English | Spoken | 246 | 342 | FPC/Lazarus and Android development?
Hi,
I've heard something about component to Lazarus to develop Android apps... I understand pascal very well and Im not sure if it will be easier to learn Java, or make applications in Pascal ... What do you think? It will be better to work with Pascal and do something in something other than it should be, or to learn Java? thats my question,
thx for responses
Welcome to StackOverflow. The [help/on-topic] clearly states "Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam.". We also don't provide opinion-based answers, and whether it will be easier for you to learn Java or Pascal is entirely opinion, as we have absolutely no information about your learning abilities, background, or intelligence. Evaluate the two languages, see which one you seem to be able to learn more quickly, and make your own decision.
Please use the official Android Studio provided by Google as it will be a lot easier to search for problems/solutions when you're coding with the Android&Java combination than Android&Pascal
This question is off-topic here (it's entirely opinion-based), and shouldn't be answered. The [help] has more information, if you're not sure what types of question are appropriate to ask here. Answering off-topic questions encourages more off-topic questions, and we try hard to keep noise and clutter down here to make the site more useful. Thanks.
| 9,046 |
https://ceb.wikipedia.org/wiki/Pioneer%20Canal | Wikipedia | Open Web | CC-By-SA | 2,023 | Pioneer Canal | https://ceb.wikipedia.org/w/index.php?title=Pioneer Canal&action=history | Cebuano | Spoken | 66 | 125 | Ang Pioneer Canal ngalan niining mga mosunod:
Heyograpiya
Tinipong Bansa
Pioneer Canal (kanal sa Tinipong Bansa, California), Kern County,
Pioneer Canal (kanal sa Tinipong Bansa, Idaho), Ada County,
Pioneer Canal (kanal sa Tinipong Bansa, Utah, Duchesne County),
Pioneer Canal (kanal sa Tinipong Bansa, Utah, Weber County),
Pioneer Canal (kanal sa Tinipong Bansa, Wyoming), Albany County,
Pagklaro paghimo ni bot 2017-02
Pagklaro paghimo ni bot Tinipong Bansa | 39,918 |
https://sv.wikipedia.org/wiki/Heteromyza | Wikipedia | Open Web | CC-By-SA | 2,023 | Heteromyza | https://sv.wikipedia.org/w/index.php?title=Heteromyza&action=history | Swedish | Spoken | 40 | 100 | Heteromyza är ett släkte av tvåvingar. Enligt Catalogue of Life ingår Heteromyza i familjen Heteromyzidae, men enligt Dyntaxa är tillhörigheten istället familjen myllflugor.
Heteromyza är enda släktet i familjen Heteromyzidae.
Kladogram enligt Catalogue of Life och Dyntaxa:
Källor
Tvåvingar
Heteromyza | 23,458 |
https://ceb.wikipedia.org/wiki/Tox%20Hill | Wikipedia | Open Web | CC-By-SA | 2,023 | Tox Hill | https://ceb.wikipedia.org/w/index.php?title=Tox Hill&action=history | Cebuano | Spoken | 186 | 285 | Bukid ang Tox Hill sa Tinipong Bansa. Ang Tox Hill nahimutang sa kondado sa Chouteau County ug estado sa Montana, sa sentro nga bahin sa nasod, km sa kasadpan sa ulohang dakbayan Washington, D.C. metros ibabaw sa dagat kahaboga ang nahimutangan sa Tox Hill.
Ang yuta palibot sa Tox Hill kay kabungtoran sa habagatang-sidlakan, apan sa amihang-kasadpan nga kini mao ang patag. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa amihanan sa Tox Hill. Kunhod pa sa 2 ka tawo kada kilometro kwadrado sa palibot sa Tox Hill. Hapit nalukop sa kasagbotan ang palibot sa Tox Hill. Sa rehiyon palibot sa Tox Hill, mga walog, ug nga bato nga pormasyon talagsaon komon.
Ang klima bugnaw nga ugahon. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hulyo, sa °C, ug ang kinabugnawan Disyembre, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Mayo, sa milimetro nga ulan, ug ang kinaugahan Pebrero, sa milimetro.
Saysay
Ang mga gi basihan niini
Kabukiran sa Montana (estado)
Kabukiran sa Tinipong Bansa nga mas taas kay sa 500 metros ibabaw sa dagat nga lebel | 16,952 |
https://fr.wikipedia.org/wiki/Accident%20de%20la%20route%20en%20Europe | Wikipedia | Open Web | CC-By-SA | 2,023 | Accident de la route en Europe | https://fr.wikipedia.org/w/index.php?title=Accident de la route en Europe&action=history | French | Spoken | 2,462 | 3,833 | Un suivi de l’évolution des accidents de la route se produisant dans les pays de l’Union européenne est effectué et communiqué annuellement par l’Observatoire national interministériel de la sécurité routière (ONISR).
Synthèse
On constate une diminution assez régulière du nombre de tués sur la route depuis les années 1970 dans l'ensemble de l’Union européenne. Cette évolution n’est néanmoins pas homogène pour l’ensemble du continent ; les pays d’Europe de l'Est présentent un décalage dans le temps : le nombre de tués a crû jusqu’au début des années 1990, pour décroître ensuite d’environ 4 % chaque année.
Le nombre de morts sur la route dépend fortement des différences structurelles (taille du pays, composition, densité et qualité du réseau routier, population, etc.) et socio-économiques (composition du parc, présence de trafic international et touristique, comportement des usagers).
Si l'on considère l'ensemble des pays de l'Union européenne, la mortalité diminue plus rapidement que les accidents corporels. Cette baisse de la mortalité fait l'objet d'objectifs fixés depuis l'an 2000.
Définitions du « tué »
Définitions du « tué »
La définition internationale du « tué » a été amendée lors de la Convention de Vienne de 1968 : « Une victime d’un accident de la route est considérée comme tuée si elle décède sur le coup ou dans les trente jours qui suivent l’accident ».
Progressivement, depuis 1968, la définition du tué à trente jours s’est imposée dans la plupart des pays de l’Union européenne.
Définition des « Blessures graves de la route » ou serious injuries
En 2015, l'Union européenne s'est doté d'une définition commune du concept de serious injuries (ou en français « blessures graves de la route ») afin de pouvoir agréger au niveau européen les statistiques nationales.
Ce nouveau concept se base sur des normes médicales. L'échelle MAIS (de l’anglais Maximum Abbreviated Injury Score) est utilisée. Les serious injuries ou « blessures graves de la route » sont définies comme les blessures de type scale 3 and more (ou MAIS3+). Ceci est lié au modèle de l'.
Localisation des accidents mortels
En 20189, la majorité des accidents mortels de l'Union européenne (53 %) ont lieu sur le réseau secondaire (voir diagramme)
Indicateurs nationaux de mortalité
La plupart des pays européens disposent d'une forme d'observatoire régional ou national de la sécurité routière. En Europe, l' (ERSO) rassemble et harmonise l'information sur les pratiques de sécurité routière dans les pays européens.
Dans l'Union européenne, des différences de performance existent de pays à pays. Par exemple, Allemagne, Espagne et Pays-Bas ont tués en 2019 pour % de la population de 2017. Cela signifie que ce groupe de trois pays peuplés a de meilleures performances que l'ensemble de l'UE. À l'opposé, Pologne, Bulgarie et Roumanie dénombrent la même année , mais pour seulement % de la population de 2017. Ces six pays comptent ainsi 48 % de la population UE et 48 % des tués dans l'UE, mais le taux de tués par population est % plus élevé dans le deuxième groupe de trois pays que dans le meilleur groupe. Entre ces deux groupes, le France et Italie ensemble comptent tués la même année, pour % de la population de 2017. De fait, le taux de tués par population dans ce troisième groupe est % plus élevé que dans le meilleur groupe. La Belgique se rapproche de ce troisième groupe avec des performances un peu moins bonnes et une moindre taille. Ces huit pays (Belgique non comptée) groupent 77% de la population de l'UE et 76% des tués dans l'UE. Le dernier quart regrouperait les 19 autres États membres de l'UE qui ont également des performances disparates, mais avec un moindre poids sur la performance totale de l'UE.
Pour de nombreux pays européens, les anciens indicateurs sont disponibles. Toutefois les pays de l'Union européenne envisagent d'utiliser de nouveaux indicateurs clés de performance pour la décennie 2021-2030.
Les différences existantes entre pays s'expliquent par la démographie, le niveau de développement et la densité de l’habitat. Selon les travaux de Siem Oppe de l’Institut de recherche en sécurité routière des Pays-Bas (SWOW), on remarque un phénomène d'apprentissage dans l'évolution du nombre de tués :
dans les pays les plus pauvres, les déplacements sont peu nombreux et se font en transports collectifs. La circulation automobile est très faible et le taux de tués par million d’habitants est très bas (moins de 30) ;
le développement de l’usage de la voiture entraîne une forte hausse de la circulation donc du nombre des accidents et le ratio des tués par million d’habitants dans les pays « moins pauvres » peut dépasser les 200 ;
de leur côté, les pays très riches connaissent beaucoup d’encombrements. Ils ont développé des politiques de transport collectif et de sécurité routière. Les comportements sont plus prudents et le ratio retombe à moins de 80 tués par million d’habitants.
Source IRTAD pour les données suivantes :
Parc automobile : 2005 sauf Irlande 2003 ; Luxembourg 2004 ; Slovaquie 2002.
Longueur du réseau : 2005 sauf Hongrie et Luxembourg 2004 ; Allemagne et Danemark 2003 ; Slovaquie 2002 ; Islande 2000 ; Irlande 2001 ; Pays-Bas 1999 ; Grèce et Royaume-Uni 1998 ; Portugal 1993 ; Italie 1992.
Kilométrage : 2005 sauf Danemark 2004 ; Italie et Pays-Bas 2003 ; Irlande 2001 ; Islande et Slovaquie 2000 ; Royaume-Uni et Grèce 1998.
Population : source IRTAD sauf pour l’Irlande, le Luxembourg, la Slovaquie, la Suède, l’Islande et la Norvège : source INED. Nations unies et banque mondiale.
Les moyennes nationales ne reflètent pas les variations locales. Ainsi, en 2015, les régions NUTS (Nomenclature des unités territoriales statistiques) ayant la mortalité routière la plus faible, par million d'habitants, sont Stokholm (6), Vienne (7), Hambourg et Oslo (11), Berlin (14) et Ostra Verige (15). La même année, les régions les plus meurtrières sont la province de Luxembourg en Belgique (210) et Kastamonu en Turquie (192).
Évolution historique
La plupart des pays d'Europe ont connu une baisse très importante du nombre de tués sur la route entre 1970 et 2015.
Par exemple, l’Allemagne et les Pays-Bas ont divisé par quatre leur nombre de tués en trente-cinq ans, la France par trois.
Pour les pays d’Europe du Nord ou de l’Ouest, cette baisse s’est effectuée en deux étapes : 1970-1995 et 1995-2009
1970 - 1995
Entre 1970 et 1995, on observe une baisse très importante et régulière du nombre de tués dans la plupart des pays d’Europe de l’Ouest. Cette baisse quasi générale s’explique par la mise en place d’une réglementation complète, et de l'amélioration de la sécurité des véhicules (active et passive), du réseau routier et de la médecine d'urgence.
En France, cette baisse est amorcée avec le choc pétrolier, et diverses mesures de sécurité routière comme la création de vitesses maximales autorisées (VMA), l'obligation du port de la ceinture de sécurité à l’avant et du casque pour les motocyclistes, la baisse du seuil de l’alcoolémie à 0,8 g/l d’alcool dans le sang, les systèmes antiblocage des roues ou la construction de carrefours giratoires puis en 1990, la VMA de 50 km/h en agglomération, l’alcoolémie à 0,5 g/l, le permis à points, l'achèvement du réseau autoroutier, et les airbags.
Au Royaume-Uni, la mortalité maximale est atteinte en 1966, et dès 1965-1967 les pouvoirs publics mettent en place un système de permis de conduire centralisé et étendu aux poids-lourds, des limitations d'alcoolémie, et des courts-métrages télévisés de promotion de la conduite sûre.
1995 - 2009
Entre 1995 et 2009, la tendance s’est infléchie, toujours marquée à la baisse, mais de façon moins importante. En effet, .
Ainsi, dans un pays comme la France, entre 2000 et 2010, plus de 30 000 vies ont été sauvées dont les trois quarts du fait de la baisse des vitesses pratiquées et 11% du fait d'un parc automobile plus sûr.
ND : non disponible.
Sources : http://ec.europa.eu/transport/road_safety/sites/roadsafety/files/pdf/observatory/historical_evol.pdf
2015-2019
Entre 2017 et 2018, l'Union européenne a réduit la mortalité routière de 200 tués par an (en passant de 25300 à 25100 sur le périmètre UE-28 incluant le royaume-Uni). La France contribue à 95% de ces 200 vies sauvées, avec une réduction de la mortalité routière de 189 tués par an (3.448 morts de 2017 puis 3.259 morts sur les routes de métropole) que le gouvernement attribue unilatéralement à sa politique de sécurité routière. Il est à noter que ceci est fortement contesté par les Associations de conducteurs Français car cette politique est exclusivement centrée sur les limitations de vitesse et la répression extensive au détriment, entre autres, de l’amélioration du réseau routier.
Toutefois, d'autres pays ayant un moindre poids dans la mortalité routière européenne (inférieur à 750 tués par an) ont fait des progrès relatifs supérieur sans avoir une politique de réduction de la vitesse aussi importante que la France. Cependant cette nouvelle limitation s'inscrit dans le sillage des pays les plus exemplaires au niveau de la sécurité routière.
Dans la même période, l’Allemagne (ayant un poids comparable dans la mortalité routière européenne) a vu sa mortalité augmenter, passant de 3177 tués en 2017 à 3265 tués en 2018. De fait en 2018, la France n'est plus le pays comptant le plus grand nombre de tués, et descend à la troisième place, après l'Allemagne et l'Italie.
En 2018, sur le périmètre UE-27 induit par le retrait britannique de l'UE, 23 339 tués ont été comptabilisés sur les routes européennes.
En ce qui concerne la mortalité par habitant, les meilleurs pays de l'UE sont l'Irlande, le Danemark, la Suède et les Pays-Bas, Malte et l'Espagne qui ont une mortalité inférieure à 40 tués par millions d'habitants en 2018. Les pires pays de l'UE sont la Roumanie, la Bulgarie, la Croatie, la Lettonie et la Pologne qui ont une mortalité supérieure à 75 tués par millions d'habitants en 2018.
En 2019, l'Union européenne comptabilise 22800 tués sur les routes, pour un objectif de 15900.
2020
En 2020 avec environ 18 800 tués, l'UE compte 4000 tués en moins, soit une baisse exceptionnelle de 17%. La baisse est de 21 % en Espagne et en France, 22 % en Allemagne et en Belgique, 25 % en Italie et 26 % en Bulgarie.
Enjeux actuels
Législature 2019-2024
Afin de réduire les accidents, la nouvelle législation qui rentre en vigueur en 2022 pour les nouveaux modèles de véhicules et en 2024 pour tous les véhicules neufs commercialisés prévoit l'ajout de quelques équipement pour mieux sécuriser les véhicules :
adaptation intelligente de la vitesse,
facilitation de l'installation d'un éthylomètre antidémarrage,
avertisseur de somnolence (Règlement délégué (UE) 2021/1341 de la Commission du 23 avril 2021 ),
avertisseur de distraction du conducteur,
signal de freinage d'urgence,
détection en marche arrière,
enregistreur de données,
système de surveillance de la pression des pneus,
freinage automatique d'urgence,
alerte de franchissement involontaire de ligne
Décennie d'action 2021-2030
En 2020, et sur la décennie précédente, plus de 25 000 personnes meurent chaque année d'un accident de la route. Plus de 135 000 personnes sont gravement blessées sur les routes de l'Union Européenne à 28 (l'UE-28 comprend le Royaume-Uni). Il est estimé que ce préjudice inutile a un coût de 280 milliards d’euros annuels soit 2 % du PIB. Ces chiffres de mortalité correspondent à l'écrasement d'un avion gros porteur chaque semaine.
L'UE se fixe pour objectif de réduire le nombre de blessés graves de 50% sur la décennie 2020-2030. Pour atteindre cet objectif, elle prévoit de s'appuyer sur trois piliers:
prévalence de la Vision Zero tant chez les décideurs politiques que dans la population ;
le « système sûr » : véhicules sûrs, infrastructures sûres, utilisation sûre de la route (vitesse, sobriété, port de ceinture de sécurité et de casque) et meilleure administration des soins post-collision ;
lutte contre les nouveaux risques
Influence du mode de transport
Tués par mode de transport de la victime
En 2007, dans l'Union européenne, % des tués dans des accidents étaient les conducteurs des véhicules impliqués, % étaient des passagers et % des piétons .
Par ordre décroissant, voici la répartition des décès selon le mode de transport :
Voitures et taxis : %
Piétons : %
Motos : %
Vélos : %
Cyclomoteurs : %
Camions de moins de : %
Poids lourds : %
Engins agricoles : %
Bus et transports en commun : %
Dans le monde, et dans l'union européenne à 28, la mortalité dépend du mode de transport.
Tués par véhicule adverse en 2019
Piétons tués
La France est classé huitième pour les piétons tués en 2013.
32% des tués en zone urbaine sont des piétons en France, alors que ce taux n'est que de 18% aux Pays-Bas.
Blessures graves de la route par véhicule adverse
Une étude par échantillonnage permet de savoir quels sont les véhicules de la partie adverse les plus impliqués dans les Blessures graves de la route, en Europe.
Cyclistes
Aux Pays-Bas en 2018, 10 % des accidents de vélos sont occasionnées par une rupture du système de freinage.
Tués selon l'âge et le sexe
Politiques de sécurité routière
À différents niveaux, européen, nationaux ou régionaux, des politiques de développement de la sécurité routière sont mises en place. Concernant les véhicules eux-mêmes, des règlements standardisés pour les véhicules sont définis par la Commission économique pour l'Europe des Nations unies et l'Organisation des Nations unies ; certains de ces standards sont rendus obligatoires par l'Union européenne, comme la ceinture de sécurité dans les voitures et dans les autocars ; sont également mises en place des notations de sécurité des véhicules européens, notamment par l'EuroNCAP. Concernant les comportements des usagers de la route, des campagnes nationales sont organisées. Concernant les routes, leurs gestionnaires procèdent à des amémliorations, telles que le développement d'un réseau autoroutier par l'Espagne, la sécurisation de passages à niveau ou l'introduction de dans certaines communes.
Projet européen SafetyCube
Certains projets européens de recherche visent à améliorer le sécurité routière. Ainsi, dans le cadre du projet européen de recherche SafetyCube, l'efficacité de certains dispositifs a été évaluée. Parmi les systèmes considérés efficaces on trouve notamment :
Dispositifs de véhicules
Ceinture de sécurité,
Event data recorder,
coussin gonflable frontal.
Infrastructure
dos d'âne,
contrôle de vitesse,
affichage dynamique de la vitesse
réduction des limites de vitesse,
barrière de passage à niveau .
Comportement
contrôle du port de ceinture de sécurité.
Soins post accidents
ambulance et hélicoptère.
Notes et références
Voir aussi
Articles connexes
Accident de la route
Liste des pays par taux de mortalité routière
Assurance
Collision frontale
Médecine d'urgence, Traumatologie routière, Premiers secours sur la route, Prompt secours routier
Mortalité animale due aux véhicules
Prévention et sécurité routières
Accident avec perturbation du mouvement
Accident de la route en France
Liens externes
Base de données européenne CARE (Community database on Accidents on the Roads in Europe)
Base de données américaine FARS (U.S. DOT Fatality Analysis Reporting System)
Europe
Transport routier dans l'Union européenne
Sécurité civile dans l'Union européenne | 14,978 |
https://stackoverflow.com/questions/36001166 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Brendan Green, Vincent Parrett, https://stackoverflow.com/users/1567352, https://stackoverflow.com/users/2097483 | Dutch | Spoken | 970 | 1,995 | MVC 5 Custom error pages when using Autofac
I'm trying to implement custom error handling in my asp.net mvc 5 application, using the same technique I have always used :
protected void Application_Error(object sender, EventArgs e)
{
try
{
HandleApplicationErrors();
Response.TrySkipIisCustomErrors = true;
}
catch(Exception ex)
{
Response.Write(ex.ToString());
Response.StatusCode = 500;
}
}
private void HandleApplicationErrors(int? statusCode = null)
{
try
{
Exception ex = Server.GetLastError();
Response.Clear();
HttpException httpEx = ex as HttpException;
if (statusCode == null && httpEx != null) statusCode = httpEx.GetHttpCode();
RouteData routeData = new RouteData();
routeData.Values.Add("controller", "Error");
switch (statusCode)
{
case 404:
routeData.Values.Add("action", "NotFound");
break;
case 403:
routeData.Values.Add("action", "Forbidden");
break;
default:
routeData.Values.Add("action", "ServerError");
break;
}
routeData.Values.Add("exception", ex);
Server.ClearError();
this.Server.ClearError();
this.Response.TrySkipIisCustomErrors = true;
IController controller = new ErrorController();
controller.Execute(new RequestContext(new HttpContextWrapper(this.Context), routeData));
}
catch(Exception ex)
{
Response.Write(ex.ToString());
Response.StatusCode = 500;
}
}
This has worked just fine in the past, however in this application, I'm using Autofac, and it's throwing "Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed." on the controller.Execute line. I've tried excluding the ErrorController from autofac registration (it doesn't have and constructor parameters anyway) and constructing it directly.
The controller code is pretty simple :
private CustomErrorModel GetModel(Exception ex)
{
var model = new CustomErrorModel();
model.RequestedUrl = Request.Url.OriginalString;
model.ReferrerUrl = (Request.UrlReferrer == null || model.RequestedUrl == Request.UrlReferrer.OriginalString) ? null : Request.UrlReferrer.OriginalString;
model.Exception = ex;
return model;
}
public ActionResult ServerError(Exception ex)
{
var model = GetModel(ex);
Response.StatusCode = (int)HttpStatusCode.InternalServerError;
Response.Status = "500 Internal Server Error";
return View(model);
}
Anyone have any ideas on making this work?
What about the constructor for the error controller? Is there one? I am doing the exact same thing as you (including using Autofac) and don't have any issues.
the error controller doesn't have a constructor. This all works when not using autofac. Btw, I did also try with an empty default constructor.
Actually, I think your issue is that the ServerError action in your controller defines the parameter as ex, but in HandleApplicationErrors you're setting the route parameter for it as exception. Change either so that they match, and it'll work as you expected.
@BrendanGreen you are correct, how did I not see that! I think somewhere along the line I reneamed the parameters, but forgot about the routedata. Add this as an answer and I'll accept it. Thanks.
Happy to help - answer posted.
I am doing a very similar thing in my application, including using Autofac for dependency injection, and have not seen the same issues as you.
Looking closely at your HandleApplicationErrors method, I notice that your route data does not match the parameter that your ServerError action is expecting.
In HandleApplicationErrors, you are passing in a parameter named exception
In ServerError, you are expecting a parameter named ex
Updating the setting of the route data to match like so:
routeData.Values.Add("ex", ex);
will resolve the issue.
Ok, answering my own question here. I had a look at stack trace, and it seemed the exception was caused by mvc trying to use the container to find the model binder.. so I made my action methods parameterless and that solved it!
Posting code for reference here :
protected void Application_Error(object sender, EventArgs e)
{
try
{
HandleApplicationErrors();
Response.TrySkipIisCustomErrors = true;
}
catch(Exception ex)
{
Response.Write(ex.ToString());
Response.StatusCode = 500;
}
}
private void HandleApplicationErrors(int? statusCode = null)
{
try
{
Exception ex = Server.GetLastError();
Response.Clear();
HttpException httpEx = ex as HttpException;
if (statusCode == null && httpEx != null) statusCode = httpEx.GetHttpCode();
RouteData routeData = new RouteData();
routeData.Values.Add("controller", "Error");
switch (statusCode)
{
case 404:
routeData.Values.Add("action", "NotFound");
break;
case 403:
routeData.Values.Add("action", "Forbidden");
break;
default:
routeData.Values.Add("action", "ServerError");
break;
}
//routeData.Values.Add("exception", ex);
Server.ClearError();
this.Server.ClearError();
this.Response.TrySkipIisCustomErrors = true;
IController controller = new ErrorController();
controller.Execute(new RequestContext(new HttpContextWrapper(this.Context), routeData));
}
catch(Exception ex)
{
Response.Write(ex.ToString());
Response.StatusCode = 500;
}
}
and my controller method :
public ActionResult ServerError()
{
HttpException ex = Server.GetLastError() as HttpException;
var model = GetModel(ex);
Response.StatusCode = (int)HttpStatusCode.InternalServerError;
Response.Status = "500 Internal Server Error";
return View(model);
}
"The request lifetime itself is disposed in the EndRequest event. You
can see this in the RequestLifetimeHttpModule which gets added
automatically to your pipeline when you reference the MVC integration.
Most likely there is a race condition where the Autofac event handler
is firing before your own EndRequest event handler. This is most
likely cropping up now simply because more recent Autofac integration
tries to make the registration of the module, etc. more seamless to
the developer so we register the module on pre-application-start. We
subscribe to the event first, so we get called first.
Unfortunately, there's really not much to be done about it from the
Autofac side - EndRequest is the last event in the pipeline and we
have to dispose of the lifetime scope, so that's where it happens.
If you are handling something at EndRequest that needs to be resolved,
it may be too late. Even in previous integrations, EndRequest would
have been a risk. For example, if you resolve an object that
implements IDisposable, the release of the lifetime scope on
EndRequest would dispose of the object and you'd be working with an
object in a bad state.
I recommend trying to move the execution of your action to some time
before EndRequest. Alternatively, if you are 100% sure that the
objects in your chain aren't IDisposable, you could resolve the object
in an earlier event, store it in HttpContext.Items, and retrieve it
from there to use in your EndRequest handler."
font: https://github.com/autofac/Autofac/issues/570
I somewhat confused by this, I'm not using the container or trying to resolve anything in the Application_Error handler.
So what is the recommended way to handle errors when using autofac then, since everything I read points to using the technique that I'm using.. it seems I have to choose, autofac or custom error pages?
| 23,305 |
https://ceb.wikipedia.org/wiki/Williams%20Spring%20%28tubud%20sa%20Tinipong%20Bansa%2C%20Montana%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Williams Spring (tubud sa Tinipong Bansa, Montana) | https://ceb.wikipedia.org/w/index.php?title=Williams Spring (tubud sa Tinipong Bansa, Montana)&action=history | Cebuano | Spoken | 192 | 297 | Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Williams Spring.
Tubud ang Williams Spring sa Tinipong Bansa. Ang Williams Spring nahimutang sa kondado sa Gallatin County ug estado sa Montana, sa sentro nga bahin sa nasod, km sa kasadpan sa ulohang dakbayan Washington, D.C. metros ibabaw sa dagat kahaboga ang nahimutangan sa Williams Spring.
Ang yuta palibot sa Williams Spring kay kabungtoran. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa kasadpan sa Williams Spring. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Williams Spring may gamay nga populasyon. Ang kinadul-ang mas dakong lungsod mao ang Ponderosa Pines, km sa habagatan-kasadpan sa Williams Spring. Hapit nalukop sa lasang nga dagomkahoy ang palibot sa Williams Spring. Sa rehiyon palibot sa Williams Spring, mga walog, ug mga kapanguhaan talagsaon komon.
Ang klima bugnaw nga ugahon. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hulyo, sa °C, ug ang kinabugnawan Enero, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Hunyo, sa milimetro nga ulan, ug ang kinaugahan Oktubre, sa milimetro.
Saysay
Ang mga gi basihan niini
Mga tubud sa Montana (estado) | 46,558 |
https://en.wikipedia.org/wiki/Sivanthipuram | Wikipedia | Open Web | CC-By-SA | 2,023 | Sivanthipuram | https://en.wikipedia.org/w/index.php?title=Sivanthipuram&action=history | English | Spoken | 79 | 139 | Sivanthipuram is a panchayat town in Tirunelveli district in the Indian state of Tamil Nadu.
Demographics
At the 2001 India census, Sivanthipuram had a population of 13,650 (49% male, 51% female). Sivanthipuram had an average literacy rate of 81%, higher than the national average of 59.5%: male literacy was 85% and female literacy 77%. 9% of the population were under 6 years of age.
The nearest railway station is at Ambasamudram, .
References
Cities and towns in Tirunelveli district | 22,064 |
https://unix.stackexchange.com/questions/332862 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Bigon, DevonRyder, GAD3R, Hamdambek, Jeremy Boden, Parsa, RalfFriedl, Sidahmed, WitnessTruth, https://unix.stackexchange.com/users/117599, https://unix.stackexchange.com/users/149682, https://unix.stackexchange.com/users/153195, https://unix.stackexchange.com/users/205853, https://unix.stackexchange.com/users/207157, https://unix.stackexchange.com/users/28791, https://unix.stackexchange.com/users/300929, https://unix.stackexchange.com/users/301065, https://unix.stackexchange.com/users/335064, https://unix.stackexchange.com/users/376109, phk | English | Spoken | 1,211 | 2,206 | Unmet dependencies while installing Git on Debian
I am attempting to install git on Debian 8.6 Jessie and have run into some dependency issues. What's odd is that I didn't have any issues the few times I recently installed Git in a VM while I was getting used to Linux.
apt-get install git
Results in:
The following packages have unmet dependencies:
git : Depends: liberror-perl but is not installable
Recommends: rsync but it is not installable
E: Unable to correct problems, you have held broken packages.
UPDATE
my sources.list
Seems to be an issue with my system. I can no longer properly install anything. I'm getting dependency issues installing things like Pulseaudio which I've previously installed successfully a few days ago.
Try sudo apt -f install or sudo aptitude -f.
@phk 0 packages installed
Run apt-get dist-upgrade && apt-get install git
Please edit here by adding the output of cat /etc/apt/sources.list
@GAD3R I can't seem to copy from the terminal or nano
@GAD3R Okay, sorry, I've added the scrot now.
You should edit your sources.list , by adding the following line:
deb http://ftp.ca.debian.org/debian/ jessie main contrib
Then upgrade your package and install git:
apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get -f install
apt-get install git
Edit
the following package git , liberror-perl and [rsync]3 can be downloaded from the main repo , because you don't have the main repo on your sources.list you cannot install git and its dependencies .
Your sources.list should be (with non-free packages):
deb http://ftp.ca.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.ca.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ jessie-updates main contrib non-free
deb http://ftp.ca.debian.org/debian/ jessie-backports main contrib non-free
On debian Stretch your /etc/apt/sources.list should be (at least):
deb http://deb.debian.org/debian stretch main
deb http://security.debian.org/ stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main
I already have that in the image, no? Also, it seems to be a new issue with my system. I get a similar unmet dependencies message when tryin to install anything now.
No ! You have the deb-src on your sources.list
Alright, I'll take a look shortly. Why would this cause all these dependency issues while installing any packages though when it worked before?
Okay, it's worked now, thanks. What's the difference with the deb source at the bottom VS at the top? Do you just prefer to add backports separate? Also, is it normally advised to use non-free and contrib with security updates?
the deb-src is used to download the source code of a program , the deb is used to install the program. You can move backports source to the top , it is not a problem . Yes you should use the security update with non-free sources
@GAD3R for debian 9 we should also add the following link that you wrote , to our sources list or another link ??
@Parsa I have update my answer.
This is bad for Ubuntu. A simple git installation we have to follow all these steps to simply install a git.
@WitnessTruth This answer is valid for only for Debian. On Ubuntu you should have main , update and security components enabled on your sources.list. You can ask a question to if you have a problem with git installation to get a detailed answer , and you are welcome.
@GAD3R. Thank you for the answer. I understand your point. However, when I read this answer I was using Ubuntu and I had the exaclty same problem in Ubuntu 18.04 ... :/ Unfortunately...
@WitnessTruth There is a sample sources.list on AskUbuntu , exclude the bionic-backports, just you need the first 3 lines, Then update and install git. Make sure to have only the 3 lines ( that's why it is hard to answer in a comment without knowing the current sources configuration. Because a duplicate url may cause a problem)
Try apt-get update && apt-get install git-core.
I found it in here.
The git-core package is just a transitional package which unique function is to pull the git package.
@sidahmed I too saw this link earlier. However, I get the error git-core : Depends: git (> 1:1.7.0.2) but is not going to be installed.
I know that this may be obvious, but did you use apt-get update ??
@Sidahmed Indeed.
okay, clean all the cache with this two commands sudo apt-get clean and sudo rm -r /var/lib/apt/lists/*. Then reuse the command in the answer.
sudo apt-get purge mongodb mongodb-server mongodb-server-core mongodb-clients
sudo apt-get purge mongodb-org
sudo apt-get autoremove
Use this code. It is working.
So the solution is to install some Ubuntu stuff on top of Debian? Good luck with that.
I fixed by only keeping in the sources.list these urls:
nano /etc/apt/sources.list
deb http://ftp.debian.org/debian/ stable main contrib non-free
deb http://ftp.de.debian.org/debian jessie main
Then I run:
# ensure that the shared libraries are properly registered (also fixes some GCC/G++ errors)
sudo ldconfig
#check your package cache
sudo apt-get check
#update your package list
sudo apt-get update
#ensure package downloads were properly completed when the system last updated
sudo apt-get upgrade --fix-missing
#try to upgrade the system (sometimes an updated package version fixes the issue)
sudo apt-get upgrade
sudo apt-get dist-upgrade
#try to reconfigure all applications that failed to install
sudo dpkg --configure -a
#try to fix broken packages
sudo apt-get install -f
Finally:
sudo apt-get install git
I just ran sudo apt update followed by sudo apt upgrade. After that, sudo apt install git worked fine.
There are several materials which I would like to solve problems in Debian Linux 10.
Linux (by terminal):
uname -a
uname -mrs
You should download suitable version of the git (here)
Try this command by terminal:
sudo dpkg -i git_2.20.1-2_amd64.deb
If you faced the issues dependence problems (more):
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt install git_2.20.1-2_amd64.deb --reinstall
You should configure:
cd /etc/apt/
nano sources.list
(try open all_ )
deb http://ftp.debian.org/debian/ stable main contrib non-free
deb http://ftp.de.debian.org/debian jessie main
Just follow this structure:
apt-update && apt search ^git
Next also following several command by the terminal:
--> Make sure that the shared libraries are properly registered (also fixes some GCC/G++ errors)
sudo ldconfig
--> check your package cache
sudo apt-get check
--> You should update your package list here
sudo apt-get update
--> ensure package downloads were properly completed when the system last updated
sudo apt-get upgrade --fix-missing
--> try to upgrade the system (sometimes an updated package version fixes the issue)
sudo apt-get upgrade
sudo apt-get dist-upgrade
--> Strive to reconfigure all applications that failed to install
sudo dpkg --configure -a
--> try to fix broken packages
sudo apt-get install -f
Final Step is just giving processing:
sudo apt-get install git.
Summary:
git is already the newest version (1:2.20.1-2).
You are successfully proceeding all steps.
Can you explain what the steps do?
RalfFriedl you can use above explanation content.
What is exactly issues in your system.
I am new to linux environment so i was facing this issue and unable to find solution for myself. After reading from resources, this helped in my case:
Commented everything else in sources.list
Added just "deb http://archive.ubuntu.com/ubuntu 1 bionic main" line.
how to edit sources.list:
click here
And the discussion i found usefull was Here
| 10,733 |
https://stackoverflow.com/questions/65676951 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | ZatoPulse, https://stackoverflow.com/users/14987424, https://stackoverflow.com/users/3574628, luther | English | Spoken | 145 | 209 | Difference between dofile and -l in lua
In reading about the interpreter ive tried both dofile and -l to load files.
However -l only works like this
enter image description here
and dofile only works after typing lua into the cmd, what is the reason for this?
-l is a lua command option. dofile is a Lua function. I'm not sure how you're expecting them to work the same way.
dofile is a Lua function. You have to "type lua into the cmd" because you cannot run Lua functions in the Windows command line. You have to start the Lua interpreter first.
lua -l name only works like this becasue -l is a command line option.
that will call require("name") as soon as the Lua interpreter started.
dofile and require are two different things btw.
Please read the manual
Thanks man I appreciate your response!
| 3,025 |
https://de.wikipedia.org/wiki/Schranbach | Wikipedia | Open Web | CC-By-SA | 2,023 | Schranbach | https://de.wikipedia.org/w/index.php?title=Schranbach&action=history | German | Spoken | 72 | 175 | Schranbach ist ein Gewässername:
Schranbach (Brixentaler Ache), rechter Zufluss vom Gampenkogel der dort noch Brixenbach genannten Brixentaler Ache nahe der Brixenbachalm, Gemeinde Brixen im Thale, Bezirk Kitzbühel, Tirol
Schranbach (Kapruner Ache), linker Zufluss von der Hohen Kammer der Kapruner Ache nach der Limbachsperre, Gemeinde Kaprun, Bezirk Zell am See, Salzburg
Schranbach (Wattenbach), linker Zufluss vom Largoz des Wattenbachs (zum Inn) vor dem Wirtshaus Säge, Markt Wattens, Bezirk Innsbruck-Land, Tirol
Siehe auch:
Schrambach | 655 |
https://ceb.wikipedia.org/wiki/Chrysocraspeda%20leucotoca | Wikipedia | Open Web | CC-By-SA | 2,023 | Chrysocraspeda leucotoca | https://ceb.wikipedia.org/w/index.php?title=Chrysocraspeda leucotoca&action=history | Cebuano | Spoken | 42 | 86 | Kaliwatan sa alibangbang ang Chrysocraspeda leucotoca. Una ning gihulagway ni Louis Beethoven Prout ni adtong 1938. Ang Chrysocraspeda leucotoca sakop sa kahenera nga Chrysocraspeda, ug kabanay nga Geometridae. Walay nalista nga matang nga sama niini.
Ang mga gi basihan niini
Insekto
Chrysocraspeda | 42,165 |
https://meta.stackoverflow.com/questions/326048 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Mr Lister, NathanOliver, Patrice, Sadegh, Servy, Taryn, https://meta.stackoverflow.com/users/1016716, https://meta.stackoverflow.com/users/1159478, https://meta.stackoverflow.com/users/2417948, https://meta.stackoverflow.com/users/423316, https://meta.stackoverflow.com/users/426671, https://meta.stackoverflow.com/users/4342498, https://meta.stackoverflow.com/users/5510001, https://meta.stackoverflow.com/users/578411, rene, zod | English | Spoken | 459 | 648 | Why is this not "Not an answer"?
I asked "How do I force MATLAB to run deep learning code on the CPU instead of the GPU?", and the answer is "MATLAB needs a GPU". This is obviously not an answer, because it is stating the obvious. As stated in comments, there should be an answer.
My question is: Why is a "not-an-answer" flag rejected? I cannot see details of disputation.
Disputed means the community aka review disagreed with your flag.
my question is why they disagree?
related: http://meta.stackoverflow.com/questions/287563/youre-doing-it-wrong-a-plea-for-sanity-in-the-low-quality-posts-queue
apples and oranges
ok, now I see even a partial explanation is acceptable as an answer. This is somehow unfair in my opinion. but anyway rules is rules.
Why is that unfair? Keep in mind that we are not answering your question, we are answering a question that we think is interesting for future visitors. For those visitors partial answers might have value. Down voting is a much better moderation option because with flags you're trying to delete stuff and we hate to delete anything of possible value.
@rene if anything interesting for future visitors can be considered as an answer, then each single comment can be an answer itself. isn't it? each of them have some valuable information.
Some comments are indeed valuable to help make the question or answer clearer. In an ideal world comments should disappear after that. And sometimes the best answer is in a comment, yes. Either the OP or someone else is happy to move that to an answer so proper voting can start.
This is obviously not an answer because it is stating the obvious.
That would mean that you feel it's not a correct answer. That doesn't make it "Not An Answer". It makes it a failed attempt at answering the question.
You should downvote answers that you feel attempt, but fail, to answer the question.
The Not An Answer flag is for posts that aren't even attempting to answer the question.
I am still saying it is not an answer because it is not even attempting to answer. My question is "how can I overcome the limitation?" and the answer is " the limitation is blablabla" .
@Woeitg You asked how to perform a given action using a CPU, and you were given the answer that you can't, because there's a requirement that you need to have a GPU. That you don't like the answer doesn't make it not an answer. (In fact, it doesn't even make it an incorrect answer.)
@Servy Well, if the comment about a workaround can be made into a valid and working answer, I'd say this one counts as an incorrect answer.
@mrLister which brings it back to "it attempts to answer but it's wrong, so downvote"
| 19,920 |
https://pl.wikipedia.org/wiki/W%C5%82odzimierz%20Kierno%C5%BCycki%20%28ur.%201941%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Włodzimierz Kiernożycki (ur. 1941) | https://pl.wikipedia.org/w/index.php?title=Włodzimierz Kiernożycki (ur. 1941)&action=history | Polish | Spoken | 268 | 686 | Włodzimierz Kiernożycki (ur. 23 września 1941 na Polesiu we wsi Zaostrowiecze) – polski inżynier, prezydent Gorzowa Wielkopolskiego.
Posiada dyplom inżyniera budownictwa lądowego Politechniki Poznańskiej z 1965 r. Pracował na stanowiskach kierowniczych w Zielonogórskim Przedsiębiorstwie Budowlanym i Wojewódzkim Zarządzie Inwestycji Miejskich w Zielonej Górze. Od 1975 r. był dyrektorem nowo powstałej Wojewódzkiej Dyrekcji Rozbudowy Miast i Osiedli Wiejskich w Gorzowie. 16 czerwca 1978 r. powołany na stanowisko prezydenta miasta, które piastował do 15 kwietnia 1982 r. Za jego prezydentury Gorzów przekroczył 100 000 mieszkańców (oficjalnie stało się to 24 kwietnia 1979 r.). We wrześniu 1980 r. udostępnił pomieszczenia w Urzędzie Miasta na siedzibę Zarządu Regionu NSZZ "Solidarność". Swą rezygnację uzasadnił wypełnieniem misji Prezydenta Miasta. W latach 1983-1988 był dyrektorem Wojewódzkiej Dyrekcji Inwestycji, od 1 maja 1988 r. do sierpnia 1988 był dyrektorem Wydziału Budownictwa w Urzędzie Wojewódzkim. W sierpniu 1988 r. został (ostatnim) I sekretarzem KM PZPR w Gorzowie, którym był do końca grudnia 1989 r. W styczniu 1990 r. podjął pracę w „Gobexie” jako specjalista od inwestycji, następnie został partnerem firmy inżynierskiej „Invest-service". Od 1995 r. do 30 czerwca 1999 r. był partnerem w Przedsiębiorstwie Konsultingowym „Engineer”, które zaprojektowało i nadzorowało budowę terminali w Świecku i Olszynie na granicy polsko-niemieckiej oraz terminalu towarowego w Koroszczynie na granicy z Białorusią. W latach 1994–2005 był współwłaścicielem Przedsiębiorstwa Usług Inwestycyjnych w Gorzowie Wlkp. Od 1999 r. aktywny członek Stowarzyszenia Inżynierów Doradców i Rzeczoznawców polskiej organizacji członka FIDIC (Międzynarodowa Federacja Inżynierów Konsultantów) – wykładowca, rozjemca i arbiter.
Bibliografia
Gorzów 1945–1990, Jerzy Zysnarski, Gorzów Wlkp. 1990
Encyklopedia Gorzowa Jerzy Zysnarski, Bydgoszcz. 2007
Pierwsi sekretarze Komitetów Miejskich PZPR
Prezydenci Gorzowa Wielkopolskiego
Urodzeni w 1941 | 47,905 |
https://id.wikipedia.org/wiki/Mecometopus%20macilentus | Wikipedia | Open Web | CC-By-SA | 2,023 | Mecometopus macilentus | https://id.wikipedia.org/w/index.php?title=Mecometopus macilentus&action=history | Indonesian | Spoken | 59 | 144 | Mecometopus macilentus adalah spesies kumbang tanduk panjang yang tergolong famili Cerambycidae. Spesies ini juga merupakan bagian dari genus Mecometopus, ordo Coleoptera, kelas Insecta, filum Arthropoda, dan kingdom Animalia.
Larva kumbang ini biasanya mengebor ke dalam kayu dan dapat menyebabkan kerusakan pada batang kayu hidup atau kayu yang telah ditebang.
Referensi
TITAN: Cerambycidae database. Tavakilian G., 25 Mei 2009
Mecometopus | 18,781 |
https://stackoverflow.com/questions/46641934 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | English | Spoken | 104 | 374 | Exoplayer 2.0 hls Response code: 505 error on some devices
I am streaming Hls video in exoplayer link is working fine but the problem is video won't stream on certain devices.... logcat
Source error.
com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 505
at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:211)
at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:123)
at com.google.android.exoplayer2.source.hls.HlsMediaChunk.loadMedia(HlsMediaChunk.java:251)
at com.google.android.exoplayer2.source.hls.HlsMediaChunk.load(HlsMediaChunk.java:200)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:295)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
the pattern I found is this error occurring on device below Android nougat
Check your video link. It may not be properly encoded (contain spaces). I have got the same problem.
If the URL contains a space it will work on some devices, on others I got an 505 error.
| 32,866 | |
https://stackoverflow.com/questions/68294786 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | James, Tpojka, https://stackoverflow.com/users/15056151, https://stackoverflow.com/users/939630 | English | Spoken | 614 | 1,440 | Laravel authorization/policy prevents access for everyone
I found similar title and similar asked question on this website when I was researching to solve the problem. But none of posted answers helped me. This question might be duplicated but I could not solve the problem using existing questions on StackOverflow.
I'm trying to prevent access to users who are not logged in OR who are not member of "School" model!
In "web.php" file I used "middleware("auth")" to prevent access to users who are not logged in.
Now I created a "Policy" named "SchoolPolicy" to prevent access to users who are not member of "Schools" database/model.
When I call "view" method from SchoolPolicy, it prevents access for all authorized and unauthorized users!
I also checked and I realized "School" model returns "null" when I try to catch "user_id" foreign key from "schools" table.
The below piece of code is the way I created "Schools" table using Migration:
Schema::create('schools', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained();
$table->string('school_name');
$table->string('school_address')->nullable();
$table->string('school_email');
$table->string('school_phone')->nullable();
$table->string('url');
$table->longText('descriptions')->nullable();
$table->timestamps();
});
This is the route to view any school which is created by any user (URL can be dynamic)
Route::group(['middleware' => 'auth'], function () {
Route::get('/schools/{url}', [ViewSchool::class, 'index'])->name('yourschool.show');
});
And this is "School" model. I used php artisan make:model School command to create this model:
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Support\Facades\Auth;
class School extends Model{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
'school_name',
'school_address',
'school_email',
'school_phone',
'url',
'descriptions'
];
}
In this section I created School Policy. However I used Laravel 8 but I also registered created Policy manually
SchoolPolicy
<?php
namespace App\Policies;
use App\Models\School;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class SchoolPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return mixed
*/
public function viewAny(User $user)
{
//
}
/**
* Determine whether the user can view the model.
*
* @param \App\Models\User $user
* @param \App\Models\School $school
* @return mixed
*/
public function view(User $user, School $school)
{
return $user->id == $school->user_id;
}
}
In AuthServiceProvider.php I registered SchoolPolicy like this:
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
use App\Models\User;
use App\Models\School;
use App\Policies\SchoolPolicy;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
School::class => SchoolPolicy::class
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
}
}
"ViewSchool.php" file where I want to use authorize method:
<?php
namespace App\Http\Controllers\Schools;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\User;
use App\Models\School;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
class ViewSchool extends Controller
{
public function index (School $school) {
$this->authorize('view', $school);
return view('layouts.viewschool');
}
}
I tried many ways to solve the problem, but none of them properly worked:
First Try:
public function index (School $school) {
$this->authorize('view', $school);
}
Second Try:
public function index () {
$this->authorize('view', School::class);
}
I even tried to print any output from School model but I receive "null":
public function index (School $school) {
dd($school->user_id);
}
I followed all tutorials on YouTube and official Laravel website, but in my examples I gave you, authorization doesn't work properly.
Please help me to solve this problem.
Thank you
@Tpojka I added codes for route. If anything else is missing in this question please let me know
You are using 'implicit model binding' and your route parameter should fit model object name: /schools/{school}. Docs.
@Tpojka Yes that was the problem. Thank you very much for your help.
Check here for known framework's practices and naming conventions.
@Tpojka Yes I found this source so useful. Thank you.
| 46,818 |
https://en.wikipedia.org/wiki/Warszawa%20Jeziorki%20railway%20station | Wikipedia | Open Web | CC-By-SA | 2,023 | Warszawa Jeziorki railway station | https://en.wikipedia.org/w/index.php?title=Warszawa Jeziorki railway station&action=history | English | Spoken | 46 | 102 | Warszawa Jeziorki railway station is a railway station in the Ursynów district of Warsaw, Poland. It is served by Koleje Mazowieckie, who run services from Warszawa Wschodnia to Góra Kalwaria and Skarżysko-Kamienna.
References
Station article at kolej.one.pl
External links
Jeziorki
Railway stations served by Koleje Mazowieckie | 31,620 |
https://sv.wikipedia.org/wiki/Heteropterna%20fenestralis | Wikipedia | Open Web | CC-By-SA | 2,023 | Heteropterna fenestralis | https://sv.wikipedia.org/w/index.php?title=Heteropterna fenestralis&action=history | Swedish | Spoken | 36 | 87 | Heteropterna fenestralis är en tvåvingeart som beskrevs av Loïc Matile 1990. Heteropterna fenestralis ingår i släktet Heteropterna och familjen platthornsmyggor.
Artens utbredningsområde är Sri Lanka. Inga underarter finns listade i Catalogue of Life.
Källor
Platthornsmyggor
fenestralis | 27,685 |
https://stackoverflow.com/questions/10254802 | StackExchange | Open Web | CC-By-SA | 2,012 | Stack Exchange | Koushal Goyal, Lucas Vasconcellos, Sanju Kaushik, Wellington Júnior, geoB, https://stackoverflow.com/users/1318266, https://stackoverflow.com/users/23529812, https://stackoverflow.com/users/23529813, https://stackoverflow.com/users/23529814, https://stackoverflow.com/users/23530042 | Yoruba | Spoken | 257 | 439 | How to impose correct ordering in nested query
I have two tables, one of items, and one of users who have flagged the items. Here is an example:
items: flags:
item_id | item_name | owner_id item_id | flagged_by
------------------------------ --------------------
1 | foo | 1 1 | 2
2 | bar | 2 2 | 4
3 | baz | 2 2 | 7
2 | 7
I want to select the information from the item table about all the items that are in the flag table, ordered by the number of flags. So for the above example, my desired output would be
item_id | item_name | owner_id
------------------------------
2 | bar | 2
1 | foo | 1
The query I have right now is select * from items where id in (select item_id from flags group by item_id order by count(*) desc);
I know that the inner query works correctly (returns all the IDs in the correct order) but when I run the overall query, I just get the items in order of item id. How do I fix my query?
This looks similar to a question I recently asked. See [link]http://stackoverflow.com/questions/10131150/mysql-which-value-has-maximum-count[/link]. hth
You are ordering the subquery only currently, which doesn't have an effect on the order of the outer query. If you join the tables rather than using a subquery, you should be able to apply an order to the whole query:
select i.*
from items i
join flags f on i.item_id = f.item_id
group by i.item_id
order by count(f.item_id) desc
Demo: http://www.sqlfiddle.com/#!2/f141b/2
| 31,199 |
https://dsp.stackexchange.com/questions/42942 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | endolith, https://dsp.stackexchange.com/users/29 | English | Spoken | 236 | 295 | Super resolution methods
I am working on the project where my goal is to create SR image from 25 LR images that are precisely shifted by 0.2px (both in horizontal and vertical direction ). I also know that the captured object is a back and white grid ( something like chessboard)
I am looking for some precise SR method that will take advantage of the precise shift of the images. The emphasis is on precision not on the speed of the method. I have read a lot of the papers on that topic and found out that there is a lot of methods and it is difficult for me to decide which method suits my task.
If you have experience with SR please suggest some methods that find good for this task.
This is for a class? The class didn't talk about specific methods before this assignment?
You'll need to describe the density ("kernel") with which light from different angles contributes to each (physical) pixel's amplitude. Expect something rather gaussian.
Now, shift that kernel by 0.2 pixel width, repeat. You'll find a Max-Likelihod estimator for the high-density picture simply by finding a system of equations that describe how much the values of the 5 pixel positions whose densities overlap that position contribute.
If you want a very intuitive first approach, look for the kdeplot tool of the python seaborn library. The website has a nice gallery.
| 4,634 |
https://zh.wikipedia.org/wiki/%E7%99%BD%E5%90%BB%E6%93%AC%E9%AD%BE | Wikipedia | Open Web | CC-By-SA | 2,023 | 白吻擬魾 | https://zh.wikipedia.org/w/index.php?title=白吻擬魾&action=history | Chinese | Spoken | 5 | 122 | 白吻擬魾,為輻鰭魚綱鯰形目粒鯰科的其中一種,為熱帶淡水魚,分布於亞洲泰國湄南河及南部淡水流域,體長可達3公分,棲息在底層水域,生活習性不明。
参考文献
扩展阅读
PL
leucorhynchus | 48,115 |
https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BB%D0%BE%D0%BC%D0%B5%D0%BD%D1%81%D0%BA%D0%B8%D0%B9 | Wikipedia | Open Web | CC-By-SA | 2,023 | Коломенский | https://ru.wikipedia.org/w/index.php?title=Коломенский&action=history | Russian | Spoken | 330 | 1,110 | Коло́менский — русская фамилия, имеет женскую форму Коломенская, а также топоним.
Фамилия
Коломенский, Андрей Александрович (1920—1990) — профессор, советский учёный в области теоретической физики и техники ускорителей различных типов, лауреат Премии Президиума АН СССР.
Коломенский, Геннадий Васильевич (1941—2014) — советский и российский моряк, капитан-наставник барка «Крузенштерн» (1983—1995).
Топоним
Коломенский — посёлок в Таловском районе Воронежской области.
Коломенский — остров в Адмиралтейском районе Санкт-Петербурга.
Коломенский кремль — русская крепость, построенная в 1525—1531 годах в городе Коломна, во времена царствования Василия III.
Коломенский округ — административно-территориальная единица Московской области, существовавшая в 1929—1930 годах.
Коломенский проезд — проезд в Южном административном округе города Москвы.
Коломенский пруд около Аллеи Любви — пруд Москвы, возле улицы Садовая Слобода.
Коломенский район — бывшее административно-территориальная единица и бывшее муниципальное образование в Московской области России.
Коломенский городской округ — муниципальное образование в Московской области России.
Коломенский ручей — правый приток реки Москвы.
Коломенский уезд — административная единица в составе Московской губернии, существовавшая до 1929 года.
Коломенский укрупнённый сельский район — административно-территориальная единица в составе Московской области РСФСР в 1963—1965 гг.
Верхний Коломенский пруд — пруд по левому берегу Коломенского ручья в низовьях Голосова оврага.
Нижний Коломенский пруд — пруд по левому берегу Коломенского ручья в низовьях Голосова оврага.
Коломенский посёлок — бывший посёлок на окраине Москвы, находившийся недалеко от платформы Коломенское.
Другое
«Коломенский» — булочно-кондитерский холдинг (созданный на базе московского булочно-кондитерского комбината «Коломенское»).
Коломенский 119-й пехотный полк — пехотное подразделение Русской императорской армии.
Коломенский благочиннический округ — организационно-структурное подразделение Московской епархии Русской православной церкви.
Коломенский дворец — деревянный царский дворец, построенный в подмосковном селе Коломенском во второй половине XVII века.
Коломенский завод — российское производственное предприятиe транспортного машиностроения.
Коломенский мост — пешеходный мост, соединяющий Коломенский и Покровский острова через канал Грибоедова в Адмиралтейском районе Санкт-Петербурга.
Коломенский рабочий — бронепоезд, построенный на Коломенском заводе во время Великой Отечественной войны.
Коломенский трамвай — система трамвайных линий города Коломна.
См. также
Павел Коломенский (ум. 1656) — епископ Русской Православной церкви, епископ Коломенский и Каширский.
Коломенка
Коломенская
Коломенское (значения)
Коломна (значения)
Коломнин | 13,367 |
https://de.wikipedia.org/wiki/Zinnoberroter%20Pustelpilz | Wikipedia | Open Web | CC-By-SA | 2,023 | Zinnoberroter Pustelpilz | https://de.wikipedia.org/w/index.php?title=Zinnoberroter Pustelpilz&action=history | German | Spoken | 390 | 881 | Der Zinnoberrote Pustelpilz oder Rot-Pustelpilz (Nectria cinnabarina) ist ein Schlauchpilz aus der Ordnung der Krustenkugelpilzartigen (Hypocreales).
Merkmale
Makroskopische Merkmale
Der Zinnoberrote Pustelpilz ist ein kleiner, aber leicht kenntlicher Pilz. Seine Fruchtkörper erinnern an kleine Himbeeren. Sie bestehen aus mehreren zusammenstehenden, etwa 0,2–0,3 mm breiten Perithecien – der gesamte Fruchtkörper misst etwa 2 mm. Die Farbe variiert von zinnoberrot (Name!) bis dunkelrot. Oft bildet die Art auch eine Nebenfruchtform, die als rosa bis orange-rote, unförmige Pusteln erkennbar ist, sogenannte Sporodochien. Beide Formen können gleichzeitig auftreten.
Mikroskopische Merkmale
Die zylindrisch-keuligen Schläuche messen 65–80 × 8–10 Mikrometer. Darin entwickeln sich farblose, glatte und einfach septierte Sporen. Sie sind leicht eingeschnürt und ähneln in der Form einer Sohle. Die Maße betragen in der Länge zwischen 15 und 25 und in der Breite zwischen 5 und 9 Mikrometer.
Die Konidien der Nebenfruchtform haben eine schmal elliptische bis zylindrische Form, sind gerade oder leicht gekrümmt sowie unseptiert. Sie werden 5,2–7 × 1,9–2,7 Mikrometer groß.
Ökologie, Phänologie und Verbreitung
Der Zinnoberrote Pustelpilz wächst meist auf toten, noch berindeten Ästen. Er besitzt ein breites Wirtsspektrum und besiedelt vor allem Ahorne, Hainbuchen und Linden, aber auch Buchen, Felsenbirnen, Johannisbeeren, Robinien und Rosskastanien. Die Art wird als vorwiegend saprob angesehen, doch kann sie manchmal krebsartige Wucherungen an lebenden Bäumen und Sträuchern auslösen. Da Fungizide kaum Wirkung zeigen, werden nach Schnitten Wundverschlussmittel empfohlen.
Er ist das ganze Jahr über anzutreffen, die Hauptfruchtform besonders im Frühjahr.
Die Art ist weit verbreitet und kommt in Europa und Nordamerika vor.
Systematik
Der Zinnoberrote Pustelpilz wurde 1791 von Tode als Sphaeria cinnabarina erstbeschrieben. Fries stellte ihn 1849 als Typusart in die neue Gattung Nectria. Die Nebenfruchtform wurde von Tode als eigene Art unter dem Namen Tubercularia vulgaris beschrieben. Erst Fries erkannte, dass es sich bei beiden um ein und dieselbe Art handelt. Über 20 verschiedene Varietäten und Formen wurden neben mehreren Synonymen beschrieben, unter anderem Nectria ribis auf Johannisbeere. Neueste molekularbiologische Studien haben die Aufteilung der Sammelart in vier Arten nahegelegt: Nach der neuen Einteilung zählen zu Nectria cinnabarina Exemplare mit lang gestielten Spordochien. Nectria asiatica wächst in Asien und die Sporodochien sind nur kurz gestielt. Nectria dematiosa besitzt nur ein ungestieltes Sporodochium oder bildet gar keine Nebenfruchtform aus. Nectria nigrescens hat schließlich bis zu dreifach septierte Ascosporen.
Quellen
Literatur
Ewald Gerhardt: Pilze. BLV Verlag, München 2006, ISBN 3-8354-0053-3, S. 533.
Einzelnachweise
Weblinks
Hypocreomycetidae (Unterklasse) | 27,087 |
https://ceb.wikipedia.org/wiki/Shi%E2%80%98b%20Abunek | Wikipedia | Open Web | CC-By-SA | 2,023 | Shi‘b Abunek | https://ceb.wikipedia.org/w/index.php?title=Shi‘b Abunek&action=history | Cebuano | Spoken | 104 | 182 | Wadi ang Shi‘b Abunek sa Yemen. Nahimutang ni sa distrito sa Al Masilah ug lalawigan sa Al Mahrah, sa sidlakang bahin sa nasod, km sa sidlakan sa Sanaa ang ulohan sa nasod. Shi‘b Abunek nidagayday paingon ngadto sa Dagat sa Arabiya.
Ang klima init nga kamadan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Mayo, sa °C, ug ang kinabugnawan Enero, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Enero, sa milimetro nga ulan, ug ang kinaugahan Hunyo, sa milimetro.
Ang mga gi basihan niini
Mga suba nidagayday paingon ngadto sa Dagat sa Arabiya
Mga suba sa Al Mahrah (lalawigan) | 8,386 |
https://stackoverflow.com/questions/66545603 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | Shailesh Sutar, Vladimir Trifonov, Wiktor Stribiżew, https://stackoverflow.com/users/15220981, https://stackoverflow.com/users/21159013, https://stackoverflow.com/users/2214549, https://stackoverflow.com/users/3832970, joreign | English | Spoken | 487 | 1,088 | regular expression for [STRING] in gitlab-ci.yml file
I am tyring to set rule for deployment stage in gitlab-ci.yml file where if the git commit message is having a particular [STRING] in this format then it should deploy to that particular environment where this rule is written.
# Deploy to QAT environment
deploy-qat:
stage: deploy
extends: .helm_deploy
environment:
name: qat
tags:
- exe-prd
rules:
- if: $CI_COMMIT_MESSAGE =~ "/[QAT]$/|/[qat]$/" #&& $CI_COMMIT_REF_NAME == "example/qat"
when: always
I have wrote above rule however it is not working. I have tried below combinations of regular expressions however none of them are working.
"/\[QAT\]/|/\[qat\]/"
"/[QAT]/|/[qat]/"
"*\[QAT\]*|*\[qat\]*"
"\[\(QAT\|qat\)\]"
"\[\(QAT\|qat\)]"
"/\[(qat|QAT)\]/"
I tried following website for regular expression here which validates my requirement but it is not working inside gitlab-ci.yml file.
Try "^(QAT|qat)$" (POSIX ERE) or "^\(QAT\|qat\)$" (POSIX BRE). If the string contains [ and ] chars, try "^\[(QAT|qat)]$" or "^\[\(QAT\|qat\)]$".
It didn't work. A typical commit message would be like below.
"Testing commit message rule for [QAT] environment."
Ah, then remove ^ and $. These anchors require a full string match.
"\[\(QAT\|qat\)]" and "\[\(QAT\|qat\)\]" didn't work.
So, "\[(QAT|qat)]" works, right?
"[(QAT|qat)]" didn't work. Only build and test stages are getting executed and not the deploy stage.
Let us continue this discussion in chat.
I think this if: $CI_COMMIT_MESSAGE =~ /\[(QAT|qat)]/ must work. It is a valid POSIX ERE expression. Just had a look at rules:variables docs.
Hey Wiktor this solutions works for me. Thank you.
You can use
# Deploy to QAT environment
deploy-qat:
stage: deploy
extends: .helm_deploy
environment:
name: qat
tags:
- exe-prd
rules:
- if: $CI_COMMIT_MESSAGE =~ /\[(QAT|qat)]/
when: always
See more about how to format regex matching conditions at the rules:variables reference page.
NOTES:
/\[(QAT|qat)]/ should not be put inside quotes
You need to use /.../ regex literal syntax (the backslashes are regex delimiters)
\[(QAT|qat)] is a regex that matches [, then either QAT or qat, and then a ] char
=~ is a regex matching operator.
Here is a direct link to regex compoarison to variables:
https://docs.gitlab.com/ee/ci/jobs/job_control.html#compare-a-variable-to-a-regex-pattern
Try this block in your yml:
deploy-qat:
only:
message:
- /\[(qat|QAT)\]/
Thank you Vladimir but I need to check multiple conditions at the time of deployment. The branch must be example/qat and commit message must have [QAT] or [qat] tag in it for QA environment deployment else a simple commit message on the same branch would deploy to a different environment. lets say dev environment. I can't use only and rule directive at the same time.
My mistake. But have you try this pattern in your code example?
I really appreciate your efforts. I tried this pattern in my code and it is still not deploying code to QA environment.
One last thing:
https://docs.gitlab.com/ee/ci/yaml/
here I saw an example of pretty same "if" statemant but without quotes around pattern - have you try this before?
I tried the suggested solutions however the gitlab-ci.yml file becomes invalid when I use them without quotes,
| 12,629 |
https://kaa.wikipedia.org/wiki/Lokomotiv | Wikipedia | Open Web | CC-By-SA | 2,023 | Lokomotiv | https://kaa.wikipedia.org/w/index.php?title=Lokomotiv&action=history | Karakalpak | Spoken | 283 | 1,087 | Lokomotiv (lat. loco moveo — orni'nan qozg'altaman) — temir izler, temir jolda ayri'm vagonlar yaki poyezdlardi' tarti'p ju'riwge mo'njellengen transport tu'ri. Dizel-poyezdlar, turbo poyezdlar, elektrpoyezdlar qurami'na kiretug'in motorli' vagonlar ha'mde avtodrezina ha'm motodrezinalar ha'm L. Waziypasi'n o'teydi. Biraq motorli' vagonlar ha'm drezinalarda jolawshi'lar ha'm ju'k tasi'w ushi'n ori'nlar ha'm jaylar boladi'. Uluwma temir joldag'i' ba'rshe tarti'w transporti' L. esaplanadi. da'stlepki L. 19-a'sir basi'nda ulli' Britaniyada, keyinshelik (1834) Rossiyada (parovoz) jasalg'an ha'm diyerli 1 a'sir dawaminda temir jolda tarti'w transporti' esaplang'an. 20-a. basi'nda parovozlardi'n' qollaylasqan teplovoz ha'm elektrovoz siqib shi'g'ara basladi.
A'melge asi'ratug'i'n isine qarap, L.ler magistral ha'm sanaat L.lerine bo'linedi. Magistral L.ler uli'wma paydalanatug'i'n t.jolda, sanaat L.leri bolsa zavodlar, ka'nler, shaxtalar, qurilis maydanlari' ha'm b.da isletiledi. Magistral L.din' ju'k tasi'ytug'i'n ha'm jolawshi' tasi'ytug'i'n poyezdlardi tarti'w ushi'n, manevr qiliw (poyezdlar du'ziw), vagonlardin' ornin almastiriw ushi'n mo'mjellengen tu'rleri bar. L. ensiz ha'm enli izlarda ju'riw ushi'n ha'm mo'mjellep islep shi'g'ari'ladi'.
Birlemshi energiya siltewi tu'rine qarap, L. issilliq ha'm elektr L.lerine bo'linedi. Issilliq L.leri — parovoz, teplovoz, motovoz, gaz-turbovoz. Bularda energiya islep shi'g'aratug'i'n bo'lek ku'sh quri'lmasi' boladi'. Elektr L.leri kontakli ha'm akkumulya-torli elektrovozlardan iba'rat. Parovozdi' puw mashinasi', teplovoz ha'm motovozdi ishki jani'w dvigatel, gaz-turbovozdi gaz turbinasi', elektrovoz ha'm elektr poyezdti' elektr dvigateli ha'm akkumulyator ha'reketlentiredi. Tiykarg'i' L.lerden ti'sqari' ha'r tu'rli aralas L.ler ha'm bar: dizel-elektrovozlar, teplovozlar, kontaktli-akkumulyatorli elektrovozlar ha'm b. (bular onsheli ken' tarqalmag'an). Ha'zir, ko'binshe, teplovoz ha'm elektrovozlardan paydalani'ladi', tezligi 200 km/saatdan asatug'i'n aviatsiya gaz turbinali turbovozlar (Angliya, Rossiya), magnit ha'm hawa jasti'qli' L. (tezligi 500 km/sag'at g'a shekem) jarati'lg'an (Yaponiya), jani'lg'i' elementlar ha'm yadro reaktorlardan paydalani'p isleytug'i'n energetik qurilmali L. proyekti u'stinde isler ali'p bari'lmaqta.
Galleriya
Siltemeler
Локомотивы с гибридным электро-дизельным приводом dwelle.de-2007
«Локомотив-информ» — международный информационный научно-технический журнал
Этапы развития тепловозной тяги
Transport | 32,344 |
https://uk.wikipedia.org/wiki/%D0%9B%D1%83%D0%BA%27%D1%8F%D0%BD%D1%87%D1%83%D0%BA%20%D0%9F%D0%B0%D0%B2%D0%BB%D0%BE%20%D0%9E%D0%BB%D0%B5%D0%B3%D0%BE%D0%B2%D0%B8%D1%87 | Wikipedia | Open Web | CC-By-SA | 2,023 | Лук'янчук Павло Олегович | https://uk.wikipedia.org/w/index.php?title=Лук'янчук Павло Олегович&action=history | Ukrainian | Spoken | 210 | 706 | Павло́ Оле́гович Лук'янчу́к ( 19 травня 1996, Запоріжжя) — український футболіст, центральний захисник київської «Оболоні». Ексгравець молодіжної збірної України.
Біографія
Клубна
Футболом почав займатися в Запоріжжі в дитячій школі місцевого «Металурга». Перший тренер — Сеновалов Микола Миколайович.
У сезоні 2011/12 перебрався до академії «Динамо». У ДЮФЛ виступав за «Металург» та київське «Динамо».
На початку 2013 року був включений до заявки «Динамо». У чемпіонаті юнацьких команд U-19 дебютував 23 квітня 2013 у матчі з львівськими «Карпатами» (4:1). У чемпіонаті молодіжних команд U-21 дебютував 28 вересня 2013 у матчі проти «Ворскли» (1:2). У сезонах 2015/16 та 2016/17 з командою U-21 ставав молодіжним чемпіоном України.
У липні 2017 на правах оренди перейшов у донецький «Олімпік». Дебютував на дорослому рівні 16 липня 2017 року в матчі першого туру Прем'єр-ліги проти «Олександрії» (2:0). У січні 2018 року футболіст повернувся до «Динамо», проте вже в лютому був відданий в оренду рівненському «Вересу».
Збірна
З 2012 року залучався до юнацьких збірних України, у складі яких був учасником чемпіонату Європи U-17 у 2013 році та чемпіонатів Європи U-19 у 2014 та 2015 роках.
З 2015 року став виступати за молодіжну збірну.
Примітки
Посилання
Уродженці Запоріжжя
Українські футболісти
Гравці молодіжної збірної України з футболу
Футболісти «Олімпіка» (Донецьк)
Футболісти «Вереса» (Рівне)
Футболісти «Кішварди»
Українські футбольні легіонери
Футбольні легіонери в Угорщині | 31,941 |
https://stackoverflow.com/questions/22646674 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | EDanaII, Wiktor Zychla, https://stackoverflow.com/users/3420712, https://stackoverflow.com/users/941240 | English | Spoken | 723 | 1,102 | Decorator Pattern with Inheritance and Composition
Maybe I'm missing something here, and I admit my OO skills are not what I'd like them to be, but looking at this example of the decorator pattern, I notice that the UML declares that a decorator is both is-a component and has-a component. This puzzles me a little bit in that it seems redundant for it to be both, and, in fact, when I test the "real world" code, found here, and modify the decorator class to look like this:
abstract class Decorator /*: LibraryItem*/ {
protected LibraryItem libraryItem;
// Constructor
public Decorator(LibraryItem libraryItem) {
this.libraryItem = libraryItem;
}
public /* override */ void Display() {
libraryItem.Display();
}
}
...
class Borrowable : Decorator {
protected List<string> borrowers = new List<string>();
// Constructor
public Borrowable(LibraryItem libraryItem) : base(libraryItem) { }
public void BorrowItem(string name) {
borrowers.Add(name);
libraryItem.NumCopies--;
}
public void ReturnItem(string name) {
borrowers.Remove(name);
libraryItem.NumCopies++;
}
public new /*override*/ void Display() {
base.Display();
foreach (string borrower in borrowers) {
Console.WriteLine(" borrower: " + borrower);
}
}
}
What I've done here is simply removed the is-a relationship by commenting out the ": LibraryItem" but kept the has-a relationship by keeping "protected LibraryItem libraryItem;". I also commented out the override on the Display methods replacing one with the new keyword. As best I can tell, this works just as well as the original code.
Am I missing something here? Is it really necessary for the decorator to inherit from component? The UML diagram and implemented code would certainly suggest so, but I'm curious if there's something I'm not seeing or addressing properly.
Thoughts?
No matter how long I look at your code, I can't see a decorator here. The fundamental idea of decorators are recursive application of the same interface to decorated objects. There is no anything like this here.
That's because the code I provided is only a modification of the real Decorator provided in one of the links above. :)
The decorator pattern is suppose to
Attach additional responsibilities to an object dynamically.
Decorators provide a flexible alternative to subclassing for extending
functionality. This pattern is designed so that multiple decorators can be stacked on top of each
other, each time adding a new functionality to the overridden
method(s).
In effect you can if your decorator classes inherits from the same type that it is decorating one could chain more and more decorators thus adding more and more responsibility while still being able to use it where the original base class was called.
You would for example not be able to pass Borrowable where you required a LibraryItem in your example. Your example is just a composition example and not a decorator example.
Look at C# Stream and its decorators.
Lets for example say I had a Document class. Now I could have a DocumentWithSpellCheckingDecorator and DocumentWithGrammarCheckingDecorator. I could use both decorators or just one or the other, but still I would have a Document and can be used as a Document since I just decorated it with more functionality. Maybe this is not the perfect example, but hope it helps.
Btw the dofactor website is easy to understand but sometimes does not quite get the message across. I have found this on other patterns on the site as well.
Good point. I was so focused on the redundancy of the has-a part that I wasn't thinking about the inheritance part. Of course, this wouldn't be an issue if the 'this' keyword were read-only. I guess, if I wanted to, I could manually assign each property in the object passed by the constructor to its 'this' counter part, but the UML, itself, still defines the class as both is-a and has-a.
The decorated component IS-A component, for example a BorderedImage is an image decorated with a border, and it can be used in any place that it's Image superclass would be used.
This means BorderedImage can be passed to any code that uses an Image, for example a method that calls saveImage(Image image).
Breaking the inheritance relation between BorderedImage and Image would prevent the use of the decorated image in code that takes an Image.
This would mean that a BorderedImage would no longer simply be an Image. Keeping the inheritance relation is therefore essential to keep the meaning intended by the the Decorator pattern.
| 5,295 |
https://stackoverflow.com/questions/31121000 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | Dominus, Franziskus Karsunke, https://stackoverflow.com/users/4788979, https://stackoverflow.com/users/762585 | English | Spoken | 487 | 1,475 | Can't manage to POST image in multipart-form
I'm trying to use camfind for an Android app, and using retrofit for all the requests and so. I'm finding huge difficulties uploading my image file to the server using multipart form-data. Can you solve this?
My code:
public class getCamFind {
//Set constants
private static final String TAG = MainActivity.class.getSimpleName();
private static final String API_URL = "https://camfind.p.mashape.com";
//creates object getCamFind, sends request and gets answer
static void getCamResult(String path) throws IOException {
File imageFile = new File(path); //THIS FILE EXISTS AND SD IS MOUNTED
String language = new String("en_US");
String keyMashape = "XXX";
RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint(API_URL)
.setLogLevel(RestAdapter.LogLevel.FULL)
//.setRequestInterceptor(new SessionRequestInterceptor())
.build();
// Create an instance of our API interface.
CamFind camFind = restAdapter.create(CamFind.class);
camFind.send(keyMashape, language, new TypedFile("image/jpeg", imageFile), new Callback<resultClass>() {
@Override
public void success(resultClass result, Response response) {
Log.d(TAG, response.toString());
Log.d(TAG, result.getStatus());
Log.d(TAG, response.getBody().toString());
}
@Override
public void failure(RetrofitError retrofitError) {
Log.d(TAG, "Error : " + retrofitError.getMessage());
}
});
}
static class Contributor {
String login;
int contributions;
}
//interface of the object getCamFind
interface CamFind {
@Multipart
@POST("/image_requests")
void send(
@Header("X-Mashape-Key") String keyMashape,
@Part("image_request[locale]") String language,
@Part("image_request[image]") TypedFile imageFile,
//@Field("image_request[remote_image_url]") String URL,
Callback<resultClass> callback);
}
private class resultClass{
String name;
String status;
public String getName(){return this.name;}
public String getStatus(){return this.status;}
}
}
When I send it this way it says "{"error": {"image": ["invalid image format"]}}" and when I send it using File instead of typed file, it says "image": ["can't be blank"].
This might be useful, it's the retrofit Log of my POST using cloudsight (basically same exact thing as using mashape, the request is identical) :
06-29 16:59:43.866 2483-2502/bookshotco.bookshot2 D/Retrofit﹕ ---> HTTP POST https://api.cloudsightapi.com/image_requests
06-29 16:59:43.866 2483-2502/bookshotco.bookshot2 D/Retrofit﹕ Authorization: CloudSight XXX
06-29 16:59:43.866 2483-2502/bookshotco.bookshot2 D/Retrofit﹕ Content-Type: multipart/form-data; boundary=ac3731a5-466f-4baf-87d1-b21fddc41701
06-29 16:59:43.866 2483-2502/bookshotco.bookshot2 D/Retrofit﹕ Content-Length: 531
06-29 16:59:43.879 2483-2502/bookshotco.bookshot2 D/Retrofit﹕ --ac3731a5-466f-4baf-87d1-b21fddc41701
Content-Disposition: form-data; name="image_request[locale]"
Content-Type: text/plain; charset=UTF-8
Content-Length: 5
Content-Transfer-Encoding: binary
en_US
--ac3731a5-466f-4baf-87d1-b21fddc41701
Content-Disposition: form-data; name="image_request[image]"; filename="JPEG_20150627_231626_1086927409.jpg"
Content-Type: image/jpeg
Content-Length: 0
Content-Transfer-Encoding: binary
--ac3731a5-466f-4baf-87d1-b21fddc41701--
06-29 16:59:43.880 2483-2502/bookshotco.bookshot2 D/Retrofit﹕ ---> END HTTP (531-byte body)
This might also be useful (look the "image_requests" part) : http://cloudsight.readme.io/v1.0/docs/testinput
As you can see in the documentation of retrofit, the first parameter of the constructor isn't the path of the file.
TypedFile(String mimeType, File file)
Constructs a new typed file.
It is the mimetype. Try
new TypedFile("image/png", imageFile)
or
new TypedFile("image/jpeg", imageFile)
Well that was a stupid mistake, thanks for that ! Tried again and it still doesn't work though (same exact error)
Can you try "application/octet-stream" as mimetype?
In the logfiles you posted, it sais Content-Length: 0. Does the jpeg file have any bytes? Can you log file.length() to assure that?
I thought it was an upload problem but you seem to be right, the file length is zero. Damn it. Thank you, I'll figure out what's wrong now.
It works !! Thank you ! Can't believe I made such a beginner's mistake lol
Don't worry! This happens to everyone :)
| 40,996 |
https://stackoverflow.com/questions/74317389 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Matthew Schuchard, Naveen, https://stackoverflow.com/users/18528471, https://stackoverflow.com/users/5343387 | Danish | Spoken | 179 | 396 | Return multiple parameters from a function using if else in jenkins pipeline script
I'm facing an error while trying to return multiple parameters from a function using if else in Jenkins pipeline script. Below is my test pipeline.
def envi, host
def build_func(envi, host){
if (env.ENVIRONMENT == 'dev') {
envi = 'dev'
host = 'devhost'
}
else if(env.ENVIRONMENT == 'prod') {
envi = 'prod'
host = 'prodhost'
}
return [envi, host]
}
pipeline {
agent any
environment {
def (envir,hostname) = build_func(env,host)
}
stages {
stage('Hello') {
steps {
echo "Hello World\n${envir}\n${env.ENVIRONMENT}"
}
}
}
}
When I build this, getting the below error,
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 18: Expected string literal @ line 18, column 7.
def (envir,hostname) = build_func(env,host)
The error is currently absent from the question.
@MattSchuchard updated the question with the error which I've faced from Jenkins build.
I don't think you can return multiple values and create Environment variables like that within an environment block. As a workaround, maybe you can do something like this.
environment {
envir = "${build_func(env,host)[0]}"
hostname = "${build_func(env,host)[1]}"
}
| 28,174 |
https://fr.wikipedia.org/wiki/Daheim | Wikipedia | Open Web | CC-By-SA | 2,023 | Daheim | https://fr.wikipedia.org/w/index.php?title=Daheim&action=history | French | Spoken | 272 | 462 | La revue Daheim : ein deutsches Familienblatt mit Illustrationen est publiée sur 79 ans de 1864 à 1943 par la maison d'édition Daheim-Expedition (Velhagen & Klasing) à Leipzig, Bielefeld et Berlin. Le journal est initialement publié chaque semaine, puis tous les 14 jours et est basé sur la conception du Die Gartenlaube. En termes de contenu, une attitude chrétienne conservatrice prévaut.
Un calendrier Daheim annuel est également publié de 1872 à 1935, et de 1886 à 1888, il y a aussi des magazines Daheim mensuels. De 1915 à 1918, la maison d'édition Daheim-Expedition publie également une sous-série Illustrierte Kriegschronik des Daheim.
Encore et encore, le magazine contient des encarts thématiques tels que Aus der Zeit – für die Zeit (à partir de 1879), Frauen-Daheim (à partir de 1886), Hausmusik (à partir de 1890), Der Hausgarten (à partir de 1892) ou encore à partir de 1894 Kinder-Daheim, plus tard l'Arche Noah.
Au début, la direction éditoriale est assurée par , jusqu'en 1877, prend la relève. À partir de 1890, est rédacteur en chef du magazine. Le directeur du supplément de musique house est de 1889 à 1914.
Parmi les auteurs et illustrateurs qui travaillent pour Daheim figurent l'auteur de livres de cuisine Henriette Davidis et Ottilie Wildermuth, très connue à l'époque, ainsi que Theodor Fontane, Paul Heyse, , , Fedor Flinzer, , , , et d'autres. Le magazine est illustré par Richard Knötel, entre autres.
Bibliographie
(Hg.): Daheim. Mikrofiche Edition. Leipzig/Bielefeld 1865-1943. Harald-Fischer-Verlag, Erlangen, 2001 .
Liens externes
Copie numérique de l'édition de guerre de Daheim pendant la Première Guerre mondiale
Titre de presse créé en 1864
Titre de presse disparu en 1943 | 7,422 |
https://de.wikipedia.org/wiki/Badstube%20Mimbach | Wikipedia | Open Web | CC-By-SA | 2,023 | Badstube Mimbach | https://de.wikipedia.org/w/index.php?title=Badstube Mimbach&action=history | German | Spoken | 157 | 389 | Die Badstube Mimbach (vormals Badstube) ist ein Naturschutzgebiet und Natura 2000-Gebiet im Saarpfalz-Kreis im Saarland.
Die Badstube liegt auf der Gemarkung von Blieskastels Stadtteil Webenheim südöstlich von Mimbach im Biosphärenreservat Bliesgau und nahe der Landesgrenze zu Rheinland-Pfalz. Zum Naturschutzgebiet wurde das Areal am 3. September 1962 erklärt und am 24. Juni 2016 ergänzt.
Es handelt sich um eine alte terrassierte Ackerlandschaft. Die Hänge im Süden und Südwesten befinden sich auf unterem Muschelkalk.
Flora & Fauna
Auf dem ca. 9,48 Hektar großen Gelände befinden sich ein Orchideen-Buchenwald, ein Waldmeister-Buchenwald, eine Magere Flachland-Mähwiese und ein Kalk-Trockenrasen. Die Magerrasen stechen hervor durch eine hohe Artenvielfalt und Vorkommen an Orchideen.
In der Tierwelt finden sich unter anderem Goldene Scheckenfalter, Bergsingzikaden, Neuntöter und Turteltauben.
2004 wurden in dem Naturschutzgebiet besonders viele Bergsingzikaden beobachtet mit einer teilweisen Populationsdichte von 10–15 Exuvien auf 1 m2.
Weblinks
Naturschutz-Verordnung zur Badstube bei sl.juris.de
Einzelnachweise
Naturschutzgebiet im Saarpfalz-Kreis
Natura-2000-Gebiet
Geographie (Blieskastel)
Schutzgebiet (Umwelt- und Naturschutz) in Europa | 43,396 |
https://cy.wikipedia.org/wiki/Jefferson%2C%20De%20Dakota | Wikipedia | Open Web | CC-By-SA | 2,023 | Jefferson, De Dakota | https://cy.wikipedia.org/w/index.php?title=Jefferson, De Dakota&action=history | Welsh | Spoken | 31 | 76 | Dinas yn , yn nhalaith De Dakota, yw .
Poblogaeth ac arwynebedd
Pobl nodedig
Ceir nifer o bobl nodedig a anwyd yn Jefferson, gan gynnwys:
Cyfeiriadau
Dinasoedd Union County, De Dakota | 10,134 |
https://stackoverflow.com/questions/32750820 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | JVene, https://stackoverflow.com/users/2745183 | English | Spoken | 617 | 1,075 | Accessing methods of objects held in multidimensional vectors of unique_ptr's
I have a 2 dimensional structure of objects initialized as thus:
std::vector<std::shared_ptr<tile> > appearance;
for (int x = 0; x < building_data.x_width; x++)
{
appearance.push_back
(std::shared_ptr<tile>(new tile[building_data.y_length]));
}
now, as far as I can figure out, the only way to access a member function of a tile in this is to use
appearance.at(x).get()[y].member_function()
which is confusing and cumbersome, and I feel like I'm missing something.
Previously, I had used tile** for the same structure, and the syntax of
tile[x][y] was nice but the raw pointers were a headache.
So, is there a better way access functions of an object held in an array, where the first element in the array is pointed to by a smart pointer held in a vector? Wordy but its the best I have.
You can use the -> operator to access members of the object managed by the shared_ptr. It's the same syntax you use with raw pointers.
However, you're going to run into problems with delete as mentioned in Dantez's answer.
Also, it looks like you're building some sort of board of tiles, perhaps for a game? Have you considered replacing the multidimensional array with with a 1D vector and some accessor functions?
// board_width and height should be integers
std::vector<Tile> board;
board.reserve(board_width * board_height);
for (unsigned y_axis = 0; y_axis < board_height; ++y_axis)
{
for (unsigned x_axis = 0; x_axis < board_width; ++x_axis)
{
board.push_back(Tile());
}
}
...
vec2 index_to_coords(unsigned index)
{
return vec2(index % board_width, index / board_width);
}
...
unsigned coords_to_index(const vec2& coords)
{
return (static_cast<unsigned>(coords.y) * board_width) + static_cast<unsigned>(coords.x);
}
I agree with Fibbles, but have an alternate idea to provide. Fibble's approach is actually quite common even in C, because multidimensional structures (matrices) are just much easier that way.
However, if you do insist on the two dimensional concept, you can nest vectors. Consider:
typedef std::vector< tile > TileRow;
typedef std::vector< TileRow > Tiles;
At first, this may be a bit confusing, so to be clear that creates:
std::vector< std::vector< tile > > t;
However, with the typedef, thats
Tiles t;
Now, that's empty. To use it you'd need to push in some rows, and for each row push in some columns. You might not like that, so...you can use the assign function to set some rows. If, for example, you needed a matrix of 10 rows by 10 columns, you might
t.assign( 10, TileRow( 10, tile() ) );
This assume tile has a default constructor, pushing 10 rows of TileRow, each with 10 columns of default constructed tiles.
Now, t[ 1 ] returns a reference to the row 1. As such, t[ 1 ][ 1 ] is a reference to the tile at location 1,1, much like an array.
Yet, now you have no allocation/deallocation issues.
Something similar can be done with std::array, even better.
typedef std::array< tile, 10 > TileRow;
typedef std::array< TileRow, 10 > Tiles;
Tiles t;
At which point, t is ready with default initialized tiles.
First of all, shared_ptr is not designed to work with arrays. When there is no more references, it calls delete instead of delete[] which results in undefined behaviour if managed object is an array. You can read about it here.
As for accessing shared_ptr object, you can use operator* to dereference it.
Also, if you know vector's final size, you may want to reserve some space to avoid reallocation.
While I'm not arguing against your point, it's true that shared_ptr from TR1 was not so equipped, the current C++11/C++14 std::shared_ptr has a provision for it (a customer deleter), it just takes an extra bit of effort.
@JVene You can find it in the link I provided.
| 25,074 |
https://fa.wikipedia.org/wiki/%D8%A8%D9%84%DA%A9%D8%A8%D8%B1%D9%86%D8%8C%20%D9%85%DB%8C%D8%B2%D9%88%D8%B1%DB%8C | Wikipedia | Open Web | CC-By-SA | 2,023 | بلکبرن، میزوری | https://fa.wikipedia.org/w/index.php?title=بلکبرن، میزوری&action=history | Persian | Spoken | 65 | 205 | بلکبرن (به انگلیسی: Blackburn) یک شهر در ایالات متحده آمریکا است که در میزوری واقع شدهاست. بلکبرن ۰٫۸۳ کیلومتر مربع مساحت و ۲۴۹ نفر جمعیت دارد و ۲۴۲ متر بالاتر از سطح دریا قرار دارد.
جستارهای وابسته
فهرست شهرهای ایالات متحده آمریکا بر پایه جمعیت
منابع
پیوند به بیرون
بازبینی گمر شهرهای ایالات متحده آمریکا
شهرهای شهرستان سالین، میزوری
شهرهای شهرستان لافایت، میزوری
شهرهای میزوری | 11,876 |
https://sr.wikipedia.org/wiki/Vitizin%20A%20%28stilbenoid%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Vitizin A (stilbenoid) | https://sr.wikipedia.org/w/index.php?title=Vitizin A (stilbenoid)&action=history | Serbian | Spoken | 27 | 93 | Vitizin A (stilbenoid) je organsko jedinjenje, koje sadrži 56 atoma ugljenika i ima molekulsku masu od 906,925 -{Da}-.
Osobine
Reference
Literatura
Spoljašnje veze
Феноли
Алкени
Ресвератролни олигомери | 13,470 |
https://ca.wikipedia.org/wiki/Papir%2065 | Wikipedia | Open Web | CC-By-SA | 2,023 | Papir 65 | https://ca.wikipedia.org/w/index.php?title=Papir 65&action=history | Catalan | Spoken | 136 | 277 | El Papir 65 (amb la numeració Gregory-Aland) és una còpia del Nou Testament en grec. És un manuscrit en papir de la Primera Epístola als Tessalònicencs. Els textos supervivents de l'epístola són els versos 1: 3-2: 1 i 2: 6-13. El manuscrit ha estat assignat en terrenys paleogràfics al .
El text grec d'aquest còdex és un representant del text de tipus alexandrí. Aland la va situar a la categoria I, però el text del manuscrit és massa breu per a la certesa. Segons unes notes del papir 49 i el papir 65 provenien del mateix manuscrit.
Es conserva a l'Institut Papirològic de Florència al Museu Arqueològic Nacional (Florència) (PSI 1373).
Referències
Bibliografia complementària
Vittorio Bartoletti, Papiri greci e latini della Società Italiana, vol. XIV, (1957), pp. 5-7.
Naldini, Documenti, núm. 17.
Papirs del Nou Testament | 26,498 |
https://tt.wikipedia.org/wiki/NGC%204917 | Wikipedia | Open Web | CC-By-SA | 2,023 | NGC 4917 | https://tt.wikipedia.org/w/index.php?title=NGC 4917&action=history | Tatar | Spoken | 45 | 197 | NGC 4917 — Томанлыклар һәм йолдыз тупланмалары яңа гомуми каталогында теркәлгән галактика.
Тарихы
Әлеге галактика елда тарафыннан, яктылык җыючы элемент буларак көзге кулланучы, зурлыктагы оптик телескоп ярдәмендә ачылган.
Чыганаклар
VizieR
NASA/IPAC Extragalactic Database
Искәрмәләр
Шулай ук карагыз
Яңа гомуми каталог
Мессье җисемнәр исемлеге
4917
4917 | 13,909 |
https://tt.wikipedia.org/wiki/NGC%206936 | Wikipedia | Open Web | CC-By-SA | 2,023 | NGC 6936 | https://tt.wikipedia.org/w/index.php?title=NGC 6936&action=history | Tatar | Spoken | 45 | 197 | NGC 6936 — Томанлыклар һәм йолдыз тупланмалары яңа гомуми каталогында теркәлгән галактика.
Тарихы
Әлеге галактика елда тарафыннан, яктылык җыючы элемент буларак көзге кулланучы, зурлыктагы оптик телескоп ярдәмендә ачылган.
Чыганаклар
VizieR
NASA/IPAC Extragalactic Database
Искәрмәләр
Шулай ук карагыз
Яңа гомуми каталог
Мессье җисемнәр исемлеге
6936
6936 | 14,130 |
https://security.stackexchange.com/questions/123792 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | https://security.stackexchange.com/users/81951, pee2pee | English | Spoken | 341 | 478 | Why do I have to do manual XSS testing in addition to using tools such as Burp Suite/XXSer/Xenotix?
At what point does manual testing for XSS come preferred to an automated attack like one through Burp Suite?
Looking through bug bounties and various exploits and it's not clear where there is a dividing line between manual and automatic discovery of XSS, if at all.
Does it come down to preference or are there payloads that one or the other can't handle?
I understand the need to comprehend XSS attacks is needed, but why can't automated tools do the legwork for us?
https://www.google.com/about/appsecurity/learning/xss/#HowToTest - seem reasonable?
That link is reasonable.
Why do you need to manually test for vulnerabilities? Because a tool it's just a tool someone else created and he might have forgot to add a possible payload. Don't know about any specific case though, although I'm not much on the "offensive" side nowadays.
So, if you are the developer, a good approach is to:
Know where are you accepting input data.
Integrate automatic testing of input filtering.
Run any reliable tool to check for possible XSS.
On the other hand, if you are just black-box testing:
Identify the possible input points.
Run whatever tool you want.
If you consider that the tool might have skipped something, manually check for it.
Thanks - with something like Burp Suite, you could just add payloads on an ongoing basis which I guess helps as well
Automated tools are only as good as the people who made them (i.e. the test logic they contain and the rules/signatures they use). "Garbage In Garbage Out" as the old saying goes !
In pretty much all automated security testing tools I've used there have always been false positives and false negatives.
Therefore in order to ensure your test results are truthful, any serious penetration tester (or other security professional) will always undertake a degree of manual testing in order to validate what their automated tools are telling them, and to supplement what their automated tools can do.
| 8,731 |
https://sr.wikipedia.org/wiki/%D0%95%D0%BB%20%D0%95%D0%B4%D0%B5%D0%BD%20%28%D0%92%D0%B8%D1%99%D0%B0%20%D0%9A%D0%BE%D1%80%D0%B7%D0%BE%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Ел Еден (Виља Корзо) | https://sr.wikipedia.org/w/index.php?title=Ел Еден (Виља Корзо)&action=history | Serbian | Spoken | 58 | 183 | Ел Еден () насеље је у Мексику у савезној држави Чијапас у општини Виља Корзо. Насеље се налази на надморској висини од 914 м.
Становништво
Према подацима из 2010. године у насељу је живело 30 становника.
Хронологија
Попис
Види још
Савезне државе Мексика
Референце
Спољашње везе
Мексичка насеља
Насеља у општини Виља Корзо (Чијапас)
Википројект географија/Насеља у Мексику | 50,947 |
https://es.wikipedia.org/wiki/Marmota%20bobak | Wikipedia | Open Web | CC-By-SA | 2,023 | Marmota bobak | https://es.wikipedia.org/w/index.php?title=Marmota bobak&action=history | Spanish | Spoken | 362 | 612 | La marmota bobac o marmota de las estepas (Marmota bobak) es una especie de roedor esciuromorfo de la familia Sciuridae que habita en las estepas de Ucrania, Rusia y Asia Central. Su nombre procede de baibak, palabra por la que se la conoce en su lugar de origen.
Distribución
Es la única marmota presente en Europa junto con la marmota alpina (Marmota marmota). Antaño ampliamente difundida (llegando hasta Siberia oriental y los límites de Manchuria), hoy en día se encuentra reducida a distintas poblaciones aisladas en zonas protegidas, fruto de la intensa roturación de su hábitat natural y de la caza indiscriminada. Habita tanto en zonas llanas como en las cordilleras de los Urales, Hindu Kush e Himalaya, y la meseta del Tíbet.
Características
Es una especie de pequeño tamaño y formas más gráciles que las de otras marmotas. El cuerpo mide 58 centímetros a los que se añaden 14,5 de la cola. El pelaje es corto y de color tierra, para camuflarse con el medio.
Historia natural
Se trata de un animal social que vive en grupos familiares. Estos habitan una madriguera usada durante generaciones, que puede llegar a medir 100 metros de largo y tener hasta tres entradas distintas, con el fin de acceder rápidamente a la seguridad de su interior si aparece alguna amenaza en las zonas circundantes. La profundidad de las galerías puede llegar a los 4 metros, conduciendo a distintas cámaras de hibernación y cría que se conectan entre sí bajo tierra. En caso de que penetre en ella algún depredador, las marmotas cuentan con túneles más finos por los que escapan al exterior rápidamente. Durante la hibernación, los animales se reúnen en grupos de 12 a 15 individuos que se apelotonan para darse calor entre sí. También desarrollan una importante concentración de grasa subcutánea tras atiborrarse de comida durante los tres meses de verano.
La caza humana sigue siendo la principal amenaza para esta especie, que no está regulada en los países donde la marmota bobac habita.
Subespecies
Se conocen dos subespecies de Marmota bobak:
Marmota bobak bobak
Marmota bobak tschaganensis
Referencias
Enlaces externos
bobak
Animales descritos en 1776
Taxones descritos por Philipp Ludwig Statius Müller | 41,226 |
https://de.wikipedia.org/wiki/Fu%C3%9Fball-Verbandsliga%20Mittelrhein%201957/58 | Wikipedia | Open Web | CC-By-SA | 2,023 | Fußball-Verbandsliga Mittelrhein 1957/58 | https://de.wikipedia.org/w/index.php?title=Fußball-Verbandsliga Mittelrhein 1957/58&action=history | German | Spoken | 124 | 271 | Die Verbandsliga Mittelrhein 1957/58 war die 2. Spielzeit der Verbandsliga Mittelrhein, die von 1956 bis 1978 die höchste Spielklasse im mittelrheinischen Amateur-Fußball der Männer war. Bis 1963 stellte diese Liga zusammen mit den Verbandsligen Niederrhein und Westfalen den Unterbau zur II. Division West dar und war im damaligen deutschen Fußball-Ligasystem drittklassig.
Saisonabschluss
Der SV Bergisch Gladbach 09 wurde Mittelrheinmeister, verblieb aber in der Liga, da er auf den Aufstieg zur II. Division West 1958/59 verzichtete. TuRa Bonn und die Amateure von SC Viktoria Köln stiegen in die Landesliga Mittelrhein ab. Aus den Landesligen stiegen zur neuen Saison 1958/59 die Alemannia Mariadorf und der Siegburger SV 04 auf.
Abschlusstabelle
|}
Weblinks
Verbandsliga Mittelrhein 1957/58 auf f-archiv.de
Ehrentafel der Mittelrhein-Meister bei D.S.F.S
Fußballsaison 1957/58
Fußball-Verbandsliga Mittelrhein | 9,416 |
https://stackoverflow.com/questions/78092014 | StackExchange | Open Web | CC-By-SA | null | Stack Exchange | Aleix CC, Community, Koushik Roy, Limonka, https://stackoverflow.com/users/-1, https://stackoverflow.com/users/11532919, https://stackoverflow.com/users/14180508, https://stackoverflow.com/users/5024063, https://stackoverflow.com/users/6430523, soni sharma | English | Spoken | 208 | 282 | Execute a dbt model only when if condition is true
I am pretty new to dbt and any help will be appreciated.
I have a model which inserts data into target table a.
Now if the target table (in snowflake) has data existing for passed input date the insertion model should not run.
So how to call a model from if else block of jinja/macro
Ref () is not working as the query is insert command
Ref calling from model
can you try adding a filter like where source_date > (select max(target_date) from {{this}} ) to the model. This will check if data is new in source or not, if yes then only produce rows
Please provide enough code so others can better understand or reproduce the problem.
This sounds like an incremental strategy to me. Have you checked this docs here? https://docs.getdbt.com/docs/build/incremental-models
Where does the date come from, a source model? an env var?
Thanks for the help yes we have incremental solution but again I don't want to invoke the model itself. As incremental we have to execute a query on top of target table and current query for that date . In dbt the model will get invoked unnecessarily during run and consume sometime there
| 14,136 |
https://stackoverflow.com/questions/55649185 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | Bill Karwin, Jan, Rick James, https://stackoverflow.com/users/1766831, https://stackoverflow.com/users/20860, https://stackoverflow.com/users/9295146 | English | Spoken | 244 | 313 | Increase in InnoDB Row Operations
We have almost doubled the InnoDB Row Operations (Rows read) after a change.
The question I have is what exactly is this number representing. Is it the rows returned from the queries or is it the number of rows touched by the queries in different tables.
We have introduced new tables to join. This should not have changed the amount of returned rows but clearly the amount of touched rows in the different tables.
Thanks for the help.
At the storage engine level (e.g. InnoDB), rows read refers to the physical rows read from each table. These rows are returned by the storage engine to the SQL layer of MySQL, where they are joined or filtered out by the conditions in your query.
So it makes perfect sense that your rows read figure would increase when you join to a new table. It's counting rows read from each table.
Thanks for the answer, this is exactly what I was looking for.
Bill, I think that, with ICP, the rows are not necessarily returned to the Handler layer. The counts at that layer come from the collection of STATUS values in Handler_read%.
You're probably right. But in any case, this supports the idea that the total count is the rows read from each table, not the rows of result set.
You can try using EXPLAIN to check how your join is behaving.
For understanding, output format refer here and here
| 16,377 |
https://pl.wikipedia.org/wiki/Saint-Didier%20%28Vaucluse%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Saint-Didier (Vaucluse) | https://pl.wikipedia.org/w/index.php?title=Saint-Didier (Vaucluse)&action=history | Polish | Spoken | 64 | 184 | Saint-Didier – miejscowość i gmina we Francji, w regionie Prowansja-Alpy-Lazurowe Wybrzeże, w departamencie Vaucluse.
Według danych na rok 1990 gminę zamieszkiwało 1657 osób, a gęstość zaludnienia wynosiła 458 osób/km² (wśród 963 gmin regionu Prowansja-Alpy-W. Lazurowe Saint-Didier plasuje się na 296. miejscu pod względem liczby ludności, natomiast pod względem powierzchni na miejscu 814.).
Populacja
Bibliografia
Linki zewnętrzne
Oficjalna strona internetowa Saint-Didier
Miejscowości w departamencie Vaucluse | 9,978 |
https://ceb.wikipedia.org/wiki/Mononychellus%20tunstalli | Wikipedia | Open Web | CC-By-SA | 2,023 | Mononychellus tunstalli | https://ceb.wikipedia.org/w/index.php?title=Mononychellus tunstalli&action=history | Cebuano | Spoken | 51 | 102 | Kaliwatan sa murag-kaka ang Mononychellus tunstalli. Una ning gihulagway ni Meyer ni adtong 1974. Ang Mononychellus tunstalli sakop sa kahenera nga Mononychellus, ug kabanay nga Tetranychidae.
Kini nga matang hayop na sabwag sa:
Malawi
Walay nalista nga matang nga sama niini.
Ang mga gi basihan niini
Murag-kaka
Murag-kaka sa Malawi
Mononychellus | 31,115 |
https://stackoverflow.com/questions/72612034 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Ted Lyngmo, https://stackoverflow.com/users/7582247 | English | Spoken | 158 | 328 | Construct a class that have default arguments with given arguments
Example I have some random class, which constructor have some default arguments. And I have a function to construct there class with some given arguments, and I need somehow to check if I can construct there class with those given arguments
class someRandomClass
{
public:
someRandomClass(int a = 0, float b = 0.f, double c = 0.0, const char* d = "") {}
// any argument you can think of
};
template<typename Cls, typename... Ts>
void constructClass(Ts... args) {
// something to check
if (constructable(Cls, Ts...))
Cls myClass(args...);
}
Are there some way to achieve this?
Does Function Pointer with default values answer your question?
std::is_constructible traits might help (And you might get rid of fake_constructor :-) ):
template<typename Cls, typename... Ts>
// requires(std::is_constructible_v<Cls, Ts&&...>) // C++20,
// or SFINAE for previous version
void callClassConstructor(Ts&&... args)
{
if constexpr (std::is_constructible_v<Cls, Ts&&...>)
{
Cls myClass(std::foward<Ts>(args)...);
// ....
}
}
| 27,053 |
https://war.wikipedia.org/wiki/Metaparagia%20maculata | Wikipedia | Open Web | CC-By-SA | 2,023 | Metaparagia maculata | https://war.wikipedia.org/w/index.php?title=Metaparagia maculata&action=history | Waray | Spoken | 36 | 69 | An Metaparagia maculata in uska species han Hymenoptera nga syahan ginhulagway ni Meade-waldo hadton 1910. An Metaparagia maculata in nahilalakip ha genus nga Metaparagia, ngan familia nga Masaridae. Waray hini subspecies nga nakalista.
Mga kasarigan
Metaparagia | 25,251 |
https://ru.stackoverflow.com/questions/763487 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | https://ru.stackoverflow.com/users/177345, pavlofff | Russian | Spoken | 232 | 715 | Создание 3-х динамических макетов с Custom ViewAdapter
Доброго времени суток!
Делаю вёрстку динамического каталога с помощью адаптеров.
Приложение будет отлавливать JSON с данными и впихивать их в 3 фрагмента.
Раньше я всё делал через создание View (А это было давно и скорее всего неправильно)
А сейчас мне надо сделать целых 3 разных макета в одном приложении.
Каким образом можно ПРАВИЛЬНО реализовать 3 различных адаптера?
// пункт списка
@Override
public View getView(final int position, final View convertView, final ViewGroup parent) {
// используем созданные, но не используемые view
View view = convertView;
if (view == null) {
view = lInflater.inflate(R.layout.cymbal_item, parent, false);
}
Product p = getProduct(position);
// заполняем View в пункте списка данными из товаров: название, описание
// и картинка
((TextView) view.findViewById(R.id.tvDescr)).setText(p.cymbalName);
//((TextView) view.findViewById(R.id.tvSubDescr)).setText(p.cymbalSubName);
((ImageView) view.findViewById(R.id.ivImage)).setImageDrawable(p.cymbalImage);
Button chooseButton = (Button) view.findViewById(R.id.chooseButton);
chooseButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mOnProductSelected.onProductSelected(position);
//Когда нажали на кнопку , адаптер вернет в функцию onProductSelected
//которая находится во фрагменте, позицию товара в листе которую выбрали,
//то есть в фрагменте мы будем знать что выбрали
//и сможем передать только один продукт в следующий экран
}
});
return view;
}
Примеры фрагментов.
RecyclerView имеет LayoutManager и гораздо лучше подходит для вашей задачи. Насчет разного вида и содержимого айтемов смотрите про переопределение метода адаптера getItemViewType()/ В общем вам понадобится один адаптер с тремя видами айтемов в getItemViewType() и двумя LayoutManager - LinearLayoutManager для первых двух и ``GridLayoutManager` для третьего.
| 22,932 |
https://stackoverflow.com/questions/20904799 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | English | Spoken | 144 | 301 | android download manager - download file into previously created directory
I want to save the downloaded file into a custom folder previously created as :
String trainingDirectory = "swimmer" + File.separator + "trainings";
String trainingsPath = Environment.getExternalStorageDirectory().toString() + File.separator + trainingDirectory;
File trainingSubdirectory = new File(getFilesDir() + File.separator + trainingsPath );
trainingSubdirectory.mkdirs();
to store the downloaded file into this directory, I tried to follow the solution given : Set custom folder Android Download Manager
writing
request.setDestinationInExternalPublicDir ( "/trainings", "mydownloadedfile.mp4");
In this case , the download manager is creating a new 'training' directory , not using the one I created previously...
I tried also to use
request.setDestinationInExternalPublicDir ( "/swimmer/trainings", "mydownloadedfile.mp4");
but in this case an error is raised ( a path with separators is not accepted..)
where am I wrong ?
Use this:
String directoryPath = Environment.getExternalStorageDirectory() + "/swimmer/trainings/"
// ...
request.setDestinationUri(Uri.fromFile(new File(directoryPath + "fileName.ext")));
| 32,245 | |
https://br.wikipedia.org/wiki/Ska%20punk | Wikipedia | Open Web | CC-By-SA | 2,023 | Ska punk | https://br.wikipedia.org/w/index.php?title=Ska punk&action=history | Breton | Spoken | 161 | 426 | Ar sonerezh ska punk zo sonerezh punk kejet gant ska
Peurvuiañ e vez mesket dre seniñ an diskan en doare punk hag ar peurrest en doare ska, pe ar c'hontrol. Strolladoù ska punk a son kanaouennoù a zo penn-da-benn gant al lusk ska, pe c'hoazh penn-da-benn gant al lusk punk.
Istor
Mesket e voe evit ar wech kentañ ar ska hag ar punk e-pad al luskad Two-Tone e dibenn ar bloavezhioù 1970 gant strolladoù evel The Specials, The Selecter ha The Beat.
E penn kentañ ar bloavezhioù 1980 e krogas ar sonerezh-se da vezañ anavezet en Europa, dre ar strollad Madness, met er bloavezhioù 1990 hepken e krogas da vezañ brudet er Stadoù-Unanet dre Fishbone (krouet e 1979) ha, dreist-holl, Operation Ivy (1987).
Strolladoù
Against All Authority (Stadoù-Unanet)
Citizen Fish (Rouantelezh-Unanet)
Culture Shock (Rouantelezh Unanet)
Distemper (Rusia)
8°6 Crew (Bro-C'hall)
Fiskal Bazar (Breizh)
Inner Terrestrials (Rouantelezh-Unanet)
Leftöver Crack (Stadoù-Unanet)
Les Betteraves (Bro-C'hall)
Les Skalopes (Bro-C'hall)
Rancid (Stadoù-Unanet)
Skambomambo (Polonia)
Notennoù
Punk | 6,008 |
https://it.wikipedia.org/wiki/Hammett%20Prize | Wikipedia | Open Web | CC-By-SA | 2,023 | Hammett Prize | https://it.wikipedia.org/w/index.php?title=Hammett Prize&action=history | Italian | Spoken | 392 | 689 | L'Hammett Prize o Premio Hammett è un premio letterario istituito nel 1991 e assegnato annualmente a partire dal 1992 dalla sezione nord americana della International Association of Crime Writers (IACW/NA) ad uno scrittore statunitense o canadese o residente in uno di questi due paesi per un libro (romanzo o saggio) poliziesco in lingua inglese.
Il premio ha questo nome come omaggio allo scrittore Dashiell Hammett.
Vincitori
Anni 1992-1999
1992 - Il massimo della pena (Maximum Bob) di Elmore Leonard
1993 - La notte dei prodigi (Turtle Moon) di Alice Hoffman
1994 - L'anatra messicana (The Mexican Tree Duck) di James Crumley
1995 - Rabbia a New Orleans (Dixie City Jam) di James Lee Burke
1996 - Under the Beetle's Cellar di Mary Willis Walker
1997 - La rosa nera (Rose) di Martin Cruz Smith
1998 - Trial of Passion di William Deverell
1999 - Tidewater Blood di William Hoffman
Anni 2000-2009
2000 - Havana (Havana Bay) di Martin Cruz Smith
2001 - L'assassino cieco (The Blind Assassin) di Margaret Atwood
2002 - Il regno delle ombre (Kingdom of Shadows) di Alan Furst
2003 - Honor's Kingdom di Owen Parry
2004 - La seduzione dell'acqua (The Seduction of Water) di Carol Goodman
2005 - Il principe dei ladri (Prince of Thieves: A Novel) di Chuck Hogan
2006 - Alibi: A Novel di Joseph Kanon
2007 - The Prisoner of Guantánamo di Dan Fesperman
2008 - The Outlander di Gil Adamson
2009 - Il sognatore (The Turnaround) di George Pelecanos
Anni 2010-2019
2010 - Manuale di investigazione (The Manual of Detection) di Jedediah Berry
2011 - Exit (The Nearest Exit) di Olen Steinhauer
2012 - The Killer is Dying di James Sallis
2013 - Oregon Hill (Oregon Hill) di Howard Owen
2014 - Angel Baby (Angel Baby) di Richard Lange
2015 - Mr. Mercedes (Mr. Mercedes) di Stephen King
2016 - The Do-Right di Lisa Sandlin
2017 - The White Devil di Domenic Stansberry
2018 - August Snow di Stephen Mack Jones
2019 - November Road (November Road) di Lou Berney
Anni 2020-2029
2020 - Bluff di Jane Stanton Hitchcock
2021 - Queste montagne bruciano (When These Mountains Burn) di David Joy
2022 - Legittima vendetta (Razorblade Tears) di S. A. Cosby
2023 - Pay Dirt Road di Samantha Jayne Allen
Note
Collegamenti esterni
Premi della letteratura gialla
Premi letterari statunitensi
Premi letterari canadesi | 32,298 |
https://stackoverflow.com/questions/61427180 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Maltese | Spoken | 93 | 195 | Create Expression for Entity Framework 6 for JSON column in SQL
In a .NET Framework application using Entity Framework 6, I would like to write a SQL query lambda expression as follows:
var result = DbContext.Register
.Where(r => r.Metadata.JsonValue("$.CONTRACT") == 123456)
.ToList();
I want to intercept the expression and write an SQL command like this:
public class DbSetInterceptor : ExpressionVisitor
{
protected override Expression VisitBinary(BinaryExpression node)
{
BinaryExpression expression;
//WRITE EXPRESSION FOR "JSON_VALUE(Metadata, '$.CONTRACT') = 123456"
//expression = Expression.MakeBinary(...);
return base.VisitBinary(expression);
}
}
How to write an expression that translates the JSON_VALUE command?
| 21,194 | |
https://stackoverflow.com/questions/54859317 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | https://stackoverflow.com/users/10121512, https://stackoverflow.com/users/6389328, minato, 郑迎风 | English | Spoken | 209 | 429 | Problem integrating flutter module in existing android app
I am having problems with integrating my flutter module in an existing android app.
What went wrong:
A problem occurred evaluating settings 'androidapp'.
C:\Users\Akshay Satish\youthPillar-master (1)\flutterapp.android\include_flutter.groovy (C:\Users\Akshay Satish\youthPillar-master (1)\flutterapp.android\include_flutter.groovy)
I am getting the above error after running "gradlew assembleDebug".
These are the errors i am getting in android studio.
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :flutter.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :flutter.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :flutter.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :flutter.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :flutter.
Show Details
Affected Modules: app
how did you solved this problem ?
I'm glad to see another add2app question.
Sorry about the delay - hopefully you got it figured out by now, but if not - flutter packages get from the flutter module should create this file.
cheers
I dont understand.can you make it a little more clear?
Close flutter module and your native android project and reopened it for first build.
| 3,811 |
https://stackoverflow.com/questions/45790116 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | Hans Passant, Hasan Elsherbiny, Mong Zhu, https://stackoverflow.com/users/17034, https://stackoverflow.com/users/5174469, https://stackoverflow.com/users/6398435, https://stackoverflow.com/users/7621536, 고요한 | Norwegian Nynorsk | Spoken | 365 | 723 | FolderBrowserDialog topmost
firstLogic
FolderBrowserDialog dialog = new FolderBrowserDialog();
DialogResult ret = STAShowDialog(dialog);
Second Logic
private DialogResult STAShowDialog(FolderBrowserDialog dialog)
{
DialogState state = new DialogState();
state.dialog = dialog;
System.Threading.Thread FolderBrowserThread = new System.Threading.Thread(state.ThreadProcShowDialog);
FolderBrowserThread.SetApartmentState(System.Threading.ApartmentState.STA);
FolderBrowserThread.Start();
FolderBrowserThread.Join();
return state.result;
}
last Logic
class DialogState
{
public DialogResult result;
public FolderBrowserDialog dialog;
public void ThreadProcShowDialog()
{
dialog.Description = "Select the folder where you want to save the WAV files.";
result = dialog.ShowDialog(new Form(){TopMost = true,TopLevel = true} );
}
}
FolderBrowserDialog Top most does not work.
The layer of the screen is the lowest layer.
No Errors !
I want to be called on the top layer
@Guy What should I do?
@Guy Not errors but TopMost can not
your posted code is definetely not enough to reproduce your problem. There has to be more. How do you call ThreadProcShowDialog ? what do you before that, describe a little bit your context
@MongZhu sorce add
still not reproducible. When I try your code it shows top most.
what is your windows version?
@MongZhu windows 7
have a look at this answer he is talking about a bug in Win 7 may be it helps
A dialog must always have an owner window. The ShowDialog() overload is provided as a convenience, normally Winforms can find an owner by itself. But sure, not here, that thread doesn't own any other window. So at a minimum you'll have to annoy the user with a do-nothing form, at least he'll have a taskbar button to activate the window. The correct way to draw the user's attention is with a NotifyIcon.
Does this answer your question? BrowseForFolder-Dialog: center and make TopMost
private void CreateMyTopMostForm()
{
// Create lower form to display.
Form bottomForm = new Form();
// Display the lower form Maximized to demonstrate effect of TopMost property.
bottomForm.WindowState = FormWindowState.Maximized;
// Display the bottom form.
bottomForm.Show();
// Create the top most form.
Form topMostForm = new Form();
// Set the size of the form larger than the default size.
topMostForm.Size = new Size(300,300);
// Set the position of the top most form to center of screen.
topMostForm.StartPosition = FormStartPosition.CenterScreen;
// Display the form as top most form.
topMostForm.TopMost = true;
topMostForm.Show();
}
| 28,261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.