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://ms.wikipedia.org/wiki/Massanes
Wikipedia
Open Web
CC-By-SA
2,023
Massanes
https://ms.wikipedia.org/w/index.php?title=Massanes&action=history
Malay
Spoken
22
60
Massanes boleh bermaksud: Massanes, Catalonia, merupakan sebuah kawasan perbandaran di Girona, Sepanyol. Massanes, Gard, ialah komun di jabatan Gard di selatan Perancis.
10,267
https://arz.wikipedia.org/wiki/%D8%A8%D8%A7%D9%8A%D8%B1%D8%A7%D9%85%20%D9%83%D9%86%D8%AF%D9%89
Wikipedia
Open Web
CC-By-SA
2,023
بايرام كندى
https://arz.wikipedia.org/w/index.php?title=بايرام كندى&action=history
Egyptian Arabic
Spoken
16
55
بايرام كندى ( بالفارسى بایرامکندی ) قريه فى ايران. وصلات مصادر تجمع سكان قرى ايران قرى
11,792
https://gl.wikipedia.org/wiki/Palloza%2C%20Reigosa%2C%20A%20Pastoriza
Wikipedia
Open Web
CC-By-SA
2,023
Palloza, Reigosa, A Pastoriza
https://gl.wikipedia.org/w/index.php?title=Palloza, Reigosa, A Pastoriza&action=history
Galician
Spoken
44
93
Palloza é un lugar da parroquia de Reigosa no concello lugués da Pastoriza na comarca da Terra Chá. Segundo o IGE, en 2019 tiña 2 habitantes (1 home e 1 muller). Lugares e parroquias Lugares de Reigosa Parroquias da Pastoriza Notas Lugares da Pastoriza
32,737
https://stackoverflow.com/questions/76435439
StackExchange
Open Web
CC-By-SA
2,023
Stack Exchange
Bert-Jan, Charlieface, https://stackoverflow.com/users/14868997, https://stackoverflow.com/users/5431087
English
Spoken
208
348
HttpClient request from ASP.NET app returns error: The request was aborted: Could not create SSL/TLS secure channel In my ASP.NET appication (.NET 4.8) I execute an async get request with the HttpClient object. If I run this code in a unit test in Visual Studio 2022 on my Windows 11 dev machine it works fine. But if run this code in the ASP.NET application (in an MVC controller) locally on the same machine, the error is: The request was aborted: Could not create SSL/TLS secure channel. The request in the web app and unit test are exactly the same and use the same url (hard coded for now). I did not set any security protocol or anything in code. Any idea why? Run a Wireshark trace to see what the Client and Server Hello look like. There is probably a mismatched cipher. Can you share the URL (just the hostname and port number) if it's a public server? If it's your own webserver what version of Windows/Linux is it running (exact build number) Thanks @Charlieface URL I am connecting to is https://eaccountingapi-sandbox.test.vismaonline.com/v2/ So here are the cipher results for the server https://www.ssllabs.com/ssltest/analyze.html?d=eaccountingapi-sandbox.test.vismaonline.com&hideResults=on You need to use IIS Crypto and compare to see if you have a matching cipher.
14,877
https://ca.wikipedia.org/wiki/Cam%C3%AD%20de%20la%20Vall%20%28Castellcir%29
Wikipedia
Open Web
CC-By-SA
2,023
Camí de la Vall (Castellcir)
https://ca.wikipedia.org/w/index.php?title=Camí de la Vall (Castellcir)&action=history
Catalan
Spoken
153
279
El Camí de la Vall és una pista forestal dels termes municipals de Castellcir i de Castellterçol, a la comarca del Moianès. Com la major part dels camins, el seu nom és de caràcter descriptiu: és el camí que des de Castellcir menava a la masia castellterçolenca de la Vall. El camí arrenca de la cruïlla dels carrers del Sot de les Moles i d'Esteve Torrentó, cap al sud-oest, passa pel costat meridional de la Font del Poble i continua cap al sud-oest, passa pel nord de la Solella de la Vall i tot seguit arriba a la masia de la Vall. Aquest camí en el primer tram és el Camí de la Font. Bibliografia RODRÍGUEZ LARA, José Luis. Aproximació a la Toponímia del Moianès. Barcelona: Rafael Dalmau, Editor, 2009. (Col·lecció "Camí Ral", núm. 30). . Enllaços externs El Camí de la Vall en el seu entorn a l'Institut Cartogràfic de Catalunya Vall
2,000
https://nn.wikipedia.org/wiki/Musikkteori
Wikipedia
Open Web
CC-By-SA
2,023
Musikkteori
https://nn.wikipedia.org/w/index.php?title=Musikkteori&action=history
Norwegian Nynorsk
Spoken
93
218
Musikkteori er ein del av musikkvitskap og musikalsk undervising som tek for seg musikk på ein teoretisk måte. Innan musikkteori tek ein for seg ulike musikalske element og skildrar, systematiserer og analyserer dei. Slike element kan vera tone, rytme, harmoni, melodi, tekstur og form. Musikkteorien er ofte retta mot mønstera og systema som dei fleste komponistar arbeider etter. omgrepet «musikkteori» blir ofte brukt som in samlenemning for ei rekke læreemne (notelære, harmonilære, satslære osb.) som blir brukte innan vestleg musikkutdanning. Kjelder Denne artikkelen bygger på «Musikkteori» frå , den 6. desember 2018. Musikkvitskap
35,838
https://stackoverflow.com/questions/30626093
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
https://stackoverflow.com/users/2818105, https://stackoverflow.com/users/2988337, taxicala, user14666
English
Spoken
277
442
Comparing variable pathinfo How do I get the path info (php) when the path is of the form: www.example.com/post/* (* being a variable number that matches the post id) and compare it to www.example.com/post to make it TRUE. In other words, if pathinfo is www.example.com/post/1068 (or 1069, or 1070, or whatever the id number) then the statements that follow are executed. If not, then they are skipped. The snippet is destined to a template file. If this requires a pre-process function, please say so. Thank you. I am new at this so please do not send me to some other post that reads like Chinese! :) Thank you. You could explode and filter for empty values and then use the last occurrence, something rough like this: $url = "www.example.com/post/1068"; $id = array_pop(array_filter(explode('/', $url))); $validIds = array("1068", "1069", "1070"); if (in_array($id, $validIds)) { //do something; } explode will separate your string in an array using "/" as a separator (in this case) array_filter will filter empty values in order to make sure that the last value will be your id array_pop will retreive the last value of the given array in_array will compare a value with an array and check if the value is within the given array and return true/false depending whether it is or not inside the array. Interesting approach. Precision however: when i said 1068, 1069, 1070, I wasn't limiting to those numbers. I meant ANY id number that follows the post/ directory, There could be hundreds or even thousands. The array could be the result of a request done to a db Yes, but that's the Chinese part for me! Thank you anyway. :)
45,485
https://ru.stackoverflow.com/questions/564308
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
4per, Alexander Petrov, Draktharon, Sergey_73, https://ru.stackoverflow.com/users/178957, https://ru.stackoverflow.com/users/179402, https://ru.stackoverflow.com/users/184217, https://ru.stackoverflow.com/users/215717, https://ru.stackoverflow.com/users/22836, https://ru.stackoverflow.com/users/32793, iluxa1810, Владимир Мартьянов
Russian
Spoken
153
432
Как в listBox добавить все текстовые файлы из папки? При запуске программы (WindowsFromsApp) в listBox должны отображаться все элементы(то бишь текстовые файлы), которые находятся в определенной папке. Как это реализовать? И что, совершенно никаких своих мыслей на этот счет? Перечисление файлов из каталога, выбор нужных, помещение в список. В чем конкретно проблемы? listBox.DataSource = Directory.GetFiles(path); уточните текстовые это *.txt только? или *.csv тоже? ещё какие-нибудь расширения? а может нужно не взирая на расширение определить, что файл текстовый? только .txt файлы Вот так можешь отфильтровать нужное расширение string file; string[] inf = Directory.GetFiles( filename, "*.*", SearchOption.AllDirectories ); foreach ( var info in inf ) { file = Path.GetExtension(info); if(file == ".mp3") { listBox.Items.Add( info ); } } еще нужно отфильтровать текстовые Автор не уточнял что ему надо отфильтровывать, я показал от себя пример. @Sergey_73, пример не безопасен из-за 'SearchOption.AllDirectories' . Если попадется папка на которую нет прав, то вылетит исключение и ничего не вернется.
17,875
https://stackoverflow.com/questions/43699156
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Alexis King, Li-yao Xia, https://stackoverflow.com/users/465378, https://stackoverflow.com/users/5919010, https://stackoverflow.com/users/6863749, sandboxj
English
Spoken
466
695
Pattern matching simple types I am a beginner trying to learn functional programming. Is there a way to pattern match different standard (not user defined) types? E.g. if the argument of the function is a tuple, add them, if it is just an int, use int: form (x, y) = x + y form any_num = any_num This obviously won't work, because the program thinks any_num is just any tuple and is therefore unreachable. This question has nothing to do with standard vs user-defined types. The issue is that Haskell functions can only accept a single, consistent type as input. You cannot have one case of a function that uses one type and another case of a function that uses a different type. Ok thanks, if that is the case. I guess I have to take another approach. Generally, if you want a function to accept two types of data, you tag them using a sum type. For example, you could write data IntOrTuple = I Int | T (Int, Int), then write a function from IntOrTuple -> Int. Overloading and type classes also seem relevant. I guess you may do as follows; form :: Either (Int,Int) Int -> Int form (Left (n,m)) = n + m form (Right n) = n >> form (Left (2,3)) >> 5 >> form (Right 7) >> 7 You can do this with a type class. We can define the class of Formable types that have a form function: class Formable a where form :: a -> Int For ints, just use the int instance Formable Int where form x = x If the argument is a tuple, add its arguments together. I'm going to go one step further, and instead of only working on tuples (Int, Int) its formable instance will work on any tuple (a, b) as long as both a and b are Formable instance (Formable a, Formable b) => Formable (a, b) where form (a, b) = form a + form b We can write Formable instances for other types in a similar vein. Like totaling the elements of a list instance (Formable a) => Formable [a] where form = sum . map form or the alternatives of a sum instance (Formable a, Formable b) => Formable (Either a b) where form (Left a) = form a form (Right b) = form b or even Maybe, if we know what to do with Nothing instance (Formable a) => Formable (Maybe a) where form Nothing = 0 form (Just a) = form a In Miranda, function must be of given type. For example: Your first line: form (x, y) = x + y has type: form :: (num,num) -> num There are two solutions: Use abstract type with alternative cases Use dynamic FP language (I like Erlang).
13,798
https://ceb.wikipedia.org/wiki/Deparia%20prolifera
Wikipedia
Open Web
CC-By-SA
2,023
Deparia prolifera
https://ceb.wikipedia.org/w/index.php?title=Deparia prolifera&action=history
Cebuano
Spoken
70
118
Kaliwatan sa tanom ang Deparia prolifera. sakop sa ka-ulo nga Tracheophyta, ug Una ning gihulagway ni Georg Friedrich Kaulfuss, ug gihatagan sa eksakto nga ngalan ni William Jackson Hooker ug Robert Kaye Greville. Ang Deparia prolifera sakop sa kahenera nga Deparia, ug kabanay nga Athyriaceae. Kini nga matang hayop na sabwag sa: Hawaii Walay nalista nga matang nga sama niini. Ang mga gi basihan niini Tanom Tanom sa Hawaii Deparia
31,045
https://ceb.wikipedia.org/wiki/Maricopodynerus%20pulvipilus
Wikipedia
Open Web
CC-By-SA
2,023
Maricopodynerus pulvipilus
https://ceb.wikipedia.org/w/index.php?title=Maricopodynerus pulvipilus&action=history
Cebuano
Spoken
42
89
Kaliwatan sa insekto ang Maricopodynerus pulvipilus. Una ning gihulagway ni Richard Mitchell Bohart ni adtong 1948. Ang Maricopodynerus pulvipilus sakop sa kahenera nga Maricopodynerus, ug kabanay nga Eumenidae. Walay nalista nga matang nga sama niini. Ang mga gi basihan niini Insekto Maricopodynerus
26,971
https://en.wikipedia.org/wiki/WFIA%20%28AM%29
Wikipedia
Open Web
CC-By-SA
2,023
WFIA (AM)
https://en.wikipedia.org/w/index.php?title=WFIA (AM)&action=history
English
Spoken
587
865
WFIA is an AM radio station on 900 kHz in Louisville, Kentucky. WFIA is owned by Word Media Group through its subsidiary Word Broadcasting Network, Inc. WFIA broadcasts with a daytime power of 930 watts and a nighttime power of 162 watts and carries Christian radio programming. History WKYW WKYW began broadcasting on March 24, 1947, with a 25-minute preview of programs before initiating full service the next day. The station's original power was 1,000 watts, broadcast from the transmitter site off River Road; because of its location near the Ohio River, the transmitter building was raised on aluminum pontoons. The daytime-only outlet claimed several firsts: its off-air hours were silenced by a mattress company, and one Christmas it recorded its entire programming on tape so all of its employees—save for an engineer—could take the holiday off. In its programming, WKYW emphasized music, with a minimum of talk. WKYW was also noteworthy by the mid-1960s for the use of a helicopter to report traffic conditions. WFIA In 1965, the Polaris Corporation, owners of WKYW, opted to relaunch the station as a religious outlet: WFIA (With Faith In America), effective September 5. Along with the change in call letters, the station ceased to accept beer, wine and tobacco commercials. The traffic helicopter moved over to WAVE. In 1975, WFIA spawned its first FM sister station, WFIA-FM 103.9. That station remained co-owned in the 1980s as WXLN, a contemporary Christian outlet, while WFIA's programming shifted to religious talk and teaching. WFIA-WXLN was sold in 1989 to Jim Kincer for $2.1 million. This started a decade in which the station changed hands multiple times; when the FM station prepared for a secular flip, its longform religious programming migrated to WFIA. Neon Communications split WFIA and the FM outlet, by that time known as WQLL, by selling them separately in 1994; the buyer for WFIA, paying $500,000, was Regent Broadcasting. Regent was acquired by Jacor in 1996; under Jacor ownership, Ohio River flooding briefly forced WFIA and its riverside transmitter off the air in March 1997, and the University of Louisville allowed the station to temporarily broadcast from an unused tower. When Jacor was merged into Clear Channel Communications three years later, the company was required to divest 18 radio stations, including WFIA, which was sold to Blue Chip Broadcasting. The ownership carousel ended when Salem Communications acquired WFIA for $1.75 million in 2001. On December 22, 2016, Salem announced that it would hand operation of its Louisville radio stations, including WFIA, to Word Broadcasting Network (also known as Word Media Group) under a time brokerage agreement. Programming of WFIA was changed to a simulcast of Word's contemporary Christian station WJIE-FM, and the station carried the WJIE call letters for 10 months in 2017 before reverting to WFIA in October. On February 10, 2020, Word Broadcasting announced that it would take advantage of the option in its agreement to acquire the stations from Salem for $4 million; the sale was completed on May 25, 2022. By 2023, WFIA was again carrying Christian preaching programming, simulcast with WFIA-FM 94.7. WFIA changed its call sign to WLGK on August 1, 2023; on August 10, that call sign was moved to 94.7, with AM 900 again returning to WFIA. The call sign changes were in connection to a format change at WFIA-FM to worship music. Translator WFIA's signal is repeated over translator station W297BV on 107.3 MHz, also at Louisville. References External links FIA Radio stations established in 1947 1947 establishments in Kentucky FIA
40,801
https://en.wikipedia.org/wiki/Hjalmar%20L%C3%B8ken
Wikipedia
Open Web
CC-By-SA
2,023
Hjalmar Løken
https://en.wikipedia.org/w/index.php?title=Hjalmar Løken&action=history
English
Spoken
138
236
Hjalmar Løken (31 October 1852 – 1932) was a Norwegian jurist and newspaper editor. Personal life Hjalmar Løken was born in Vang, Hedmark as the son of cand.jur. Edvard Martin Løchen and his wife Anne Elisabeth Grøtting. He was a brother of painter and actor Kalle Løchen, County Governor of Hedmark Thorvald Løchen, politician and Minister of Justice and the Police Einar Løchen, and philosopher Arne Løchen. He married his cousine, writer and feminist Olaug Løken in 1881. Professional career Løken graduated as cand.jur. in 1876. He was a lawyer in Christiania from 1879, and a lawyer of the Supreme Court of Norway from 1883. He was editor-in-chief for the Trondheim newspaper Dagsposten from 1885 to 1890, and of Norske Intelligenssedler from 1890 to 1918. References 1852 births 1932 deaths People from Hamar Norwegian jurists Norwegian newspaper editors
3,490
https://es.wikipedia.org/wiki/Ad%20ali%20di%20falco
Wikipedia
Open Web
CC-By-SA
2,023
Ad ali di falco
https://es.wikipedia.org/w/index.php?title=Ad ali di falco&action=history
Spanish
Spoken
187
373
Ad ali di falco (literalmente, «a alas de halcón») es una tipología de escalera abierta característica de algunos palacios nobiliarios del del centro histórico de Nápoles. Descripción En el panorama de las escaleras abiertas del napolitano, el arquitecto Ferdinando Sanfelice es uno de los protagonistas. Inspirado por un tratado sobre la arquitectura «oblicua» de Juan Caramuel y Lobkowitz, Sanfelice introdujo en la arquitectura residencial napolitana este novedoso modelo denominado ad ali di falco por Bernardo De Dominici, y su primer proyecto fue para la escalera del seminario de Nardò (1723-28). Las escaleras ad ali di falco dan hacia un patio y se caracterizan por un virtuoso juego de arcos, diferentes tipos de bóvedas rampantes —es decir, que tienen sus apoyos a alturas diferentes— tales como bóvedas de cañón, de crucería y vaída, y cruces espaciales. En las escaleras de doble rampa simétricas, esta composición arquitectónica es de gran efecto escenográfico. Entre los ejemplos más destacables están el Palazzo Sanfelice, el Palazzo dello Spagnolo y el Palazzo Trabucco. Galería de imágenes Véase también Palazzo Sanfelice Palazzo dello Spagnolo Barroco napolitano Referencias Bibliografía Enlaces externos Escaleras Arquitectura de Nápoles
46,324
https://eu.wikipedia.org/wiki/Gymnapogon%20philippinus
Wikipedia
Open Web
CC-By-SA
2,023
Gymnapogon philippinus
https://eu.wikipedia.org/w/index.php?title=Gymnapogon philippinus&action=history
Basque
Spoken
29
103
Gymnapogon philippinus Gymnapogon generoko animalia da. Arrainen barruko Actinopterygii klasean sailkatzen da, Apogonidae familian. Banaketa Erreferentziak Ikus, gainera Gymnapogon Apogonidae Kanpo estekak FishBase.org Apogonidae Itsaso Horiko arrainak Australiako arrainak
32,804
https://pl.wikipedia.org/wiki/Level%20Park-Oak%20Park
Wikipedia
Open Web
CC-By-SA
2,023
Level Park-Oak Park
https://pl.wikipedia.org/w/index.php?title=Level Park-Oak Park&action=history
Polish
Spoken
19
44
Level Park-Oak Park – jednostka osadnicza w Stanach Zjednoczonych, w stanie Michigan, w hrabstwie Calhoun. CDP w stanie Michigan
23,726
https://drupal.stackexchange.com/questions/264560
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
English
Spoken
97
203
How to add "#" as a menu link? How can I simply add "#" as a menu link in Drupal 8? I want to have: <a href="#" ... output as a menu link. Do I have to define my own route token akin to <nolink> and write a custom LinkGenerator class to handle that case? i.e.: elseif ($url->isRouted() && $url->getRouteName() === '<nolink>') { $generated_link = new GeneratedNoLink(); unset($attributes['href']); } elseif ($url->isRouted() && $url->getRouteName() === '<hashonly>') { $generated_link = new GeneratedLink(); $attributes['href']= "#"; } Or is there an easier place to do this without disrupting the render pipeline?
49,436
https://dsp.stackexchange.com/questions/80648
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Hilmar, Marcus Müller, TimWescott, https://dsp.stackexchange.com/users/13320, https://dsp.stackexchange.com/users/3997, https://dsp.stackexchange.com/users/45593
English
Spoken
593
879
How to use inverse 2D Fourier transform to reconstruct the original image? I have managed to get the forward Fourier transform of an image to the frequency space like so: But I cannot for the life of me reconstruct the original image from the inverse Fourier transform of this frequency image? Can someone give pointers, please? According to various articles, we are supposed to be using somehow both the Real and Imaginary (or Magnitude and Phase) of the results for frequency, so I have saved both the original Real and Imaginary parts while doing the forward transform. My question is, how can we use these Real and Imaginary parts to reconstruct the original image back using inverse Fourier transform? Thank you. Whatever library you have used to do the forward FFT will provide an inverse FFT as well. Look that up and read the documentation. @Hilmar thanks, i am doing it from scratch this time, pixel by pixel here we go... :) It would be helpful if you edit your question with the information that you're rolling your own. how does one do a "pixel by pixel" FFT? an FFT is always an operation of vectors; complex vector of length N in, complex vector of length N out. The inverse FFT is almost identical to the forward one, so you can use what you already have: Transpose and take conjugate complex Apply forward 2D FFT Transpose and take conjugate complex again Divide by number of elements in the matrix (e.g. 256 for an 8x8 matrix) @ Hilmar thanks! I am still a bit vague about what to do from here, but here's a toy example. Suppose the image is of size 4x4 as follows: [[1,2,1,2],[2,5,4,3],[6,4,3,2],[1,3,2,1]]. Could you perhaps show a simple code for calculating the complete 4x4 Fourier frequencies of these entries, then the code to reconstruct back the original numbers exactly using inverse Fourier process, please? There would be way more code than information. @James you already have the FFT code; so, instead of running $[[1,2,1,2],[\ldots$ through it, run the result throught it again (after modification as described in steps 3 and 4). You haven't explained why you can't just do that! A 2D rectangular FFT is just an FFT of all the columns then an FFT of all the rows (or visa-versa). A 2D rectangular IFFT is just the IFFT of all the columns and then all of the rows. If you have your FFT code all written, and it's written to accept complex data (which is usually a good idea), then if you start with $x(n)$ and take it's FFT, the FFT of that will be a scaled and time-reversed FFT of $x(n)$. So if you just take the FFTs that you're generating and take their FFTs, you should get the same images back, only with the pixel values much higher and the letters rotated by 180 degrees. Once you see that, then you can start working on your IFFT routines. @ TimWescott thank you! I have wondered some about that, using complex input. Since original image is only real-valued, do we construct as input complex numbers with all Imaginary parts zero, like [255,0],[134,0],[23,0],... ? Then, feeding it into the DFT forward transform sum over_all_pixels += [cos(a),sin(a)] where a = - 2 Pi * (u * i / Width + v * j / Height)... Where should the real and complex part be inputed into this forward fourier function? Thanks! @James: Yes, $a = a + j0$, and that's exactly how you express a real $a$ as a complex number.
27,857
https://lt.wikipedia.org/wiki/Tulniki%C5%B3%20tvenkinys
Wikipedia
Open Web
CC-By-SA
2,023
Tulnikių tvenkinys
https://lt.wikipedia.org/w/index.php?title=Tulnikių tvenkinys&action=history
Lithuanian
Spoken
100
295
Tulnikių tvenkinys – tvenkinys Lietuvoje, Mažeikių rajone, 4 km į šiaurę nuo Mažeikių. Sudarytas užtvenkus Ašvos upę (Vadaksties intakas) 8,4 km nuo jos žiočių. Tvenkinio ilgis iš pietų į šiaurę – 2,18 km, plotis – iki 0,22 km. Į rytus yra nutįsusi 0,86 km ilgio įlanka, į kurią įteka Vaidminas. Altitudė 62 m. Krantai neaukšti, daugiausia apaugę medžiais ir krūmynais. Vakarinėje pakrantėje stūkso Tulnikių miškas, pietinėje – Reivyčių kaimas. Į šiaurę įsikūręs Tulnikių kaimas, į rytus plyti dirbami laukai. Pietinį tvenkinio galą kerta kelias . Tvenkinys įrengtas 1975 m. Šaltiniai Tvenkinių katalogas. Aplinkos apsaugos ministerija. Kaunas, 1998 Mažeikių rajono tvenkiniai
40,368
https://zh.wikipedia.org/wiki/CaraQ
Wikipedia
Open Web
CC-By-SA
2,023
CaraQ
https://zh.wikipedia.org/w/index.php?title=CaraQ&action=history
Chinese
Spoken
21
589
CaraQ為一台灣網路遊戲,以如同樂高積木般方正的人物和物品設計為特色。前身為奶糖,現在更名為CaraQ。已在2015年4月1號結束營運。 劇情簡介 故事的開端是在一個牛奶糖工廠,有天工廠遭到雷擊,而製造出了奶糖人 ,且那些奶糖人都有自主意識,那個世界就變成了奶糖人的世界,也就是caraq(俗稱:奶糖界) 遊戲特色 相較於一般線上遊戲打怪提升等級的RPG模式,CaraQ結合了部落格系統和線上遊戲的一個Web2.0聚落,以CaraQ幣做為各種活動的獎勵與取得各種物品的主要流通貨幣,網友互動性極高,無論是透過遊戲本身內部的設計或是部落格系統,完全屏除一般線上遊戲以RPG為遊戲架構的觀念,而改以人與人的互動做為提升等級的基礎,因此玩家的凝聚力在眾多網路遊戲中頗高。 小遊戲 大老二 五子棋 跳舞雞(在限定時間輸入英文單字,限定時間會隨著遊戲的進行縮短) 心算教室(以10位整數數字四則運算的心算) 資源回收(利用滑鼠點選垃圾和對應垃圾桶,將垃圾正確回收) 挖寶 猜拳 開寶箱 外部連結 CaraQ City官方網站 C 大型多人在线角色扮演游戏 奶糖系列
26,720
https://math.stackexchange.com/questions/3559723
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
1190, Ben Grossmann, https://math.stackexchange.com/users/52042, https://math.stackexchange.com/users/81360
English
Spoken
464
726
How can I generalize the equation in order to find the determinant for given matrix I have a question related to my previous past. This is just information question. I have this matrix. For example, assume that N =4, then I can find eigenvalues with this following equation $$(2*4 - \lambda)^4 - 4^4=0$$ So in general, for any N, I can find eigenvalues with this following equation $$(2*N - \lambda)^N - N^N=0$$ (this equation is indeed the determinant of $D_N-\lambda*I$. Is this equation true to find the determinant of $D_N-\lambda*I$? Every question is an information question No, the second formula does not necessarily hold as a consequence of the first Well, where is my mistake in the second equation? how can modify / re-write this Second equation? Please give you a suggestion or correction? Many thanks @Omnomnomnom the mistake is that you're saying "because of [formula for $\det(D_4 - \lambda)$], we can conclude [formula for $\det(D_N - \lambda)$]". That is an inherently wrong line of reasoning. Well, I understand what you said. How can I write the general determinant for given matrix $D_N$ ? At this point, can you help me? @Omnomnomnom I know how to find eigenvalues basically. But this is too complex. I cannot handle it dear @Omnomnomnom You have not included the original statement of the question in either of your posts. What is the exact question that is being asked or task being requested? If the only task is "examine the eigenvalues", then why are you trying to find a formula for the determinant of $D_N$? If you are particularly interested in finding and proving such a formula, you could apply the general formula given on this wikipedia page. Okay, I say more clearly. I am sorry for that. I only want to find the Eigenvalues of this matrix each for N=4, 8, 16... etc. In the Matlab. So I need to form a general equation to find its eigenvalues in Matlab. (Toolbox functions are not accepted. ) @Omnomnomnom If you're meant to use Matlab, then presumably you should be using one of the built-in functions like eig. This would not typically be referred to as a "toolbox function". Thank you so much. In fact, you help very much. My last question is that how can write this my circulant matrix? I searched for circulant matrix matlab code. I found it. But I get error. Can you write its code? thank you again so much dear @Omnomnomnom Based on the discussion in the comments, it seems that what is really needed is code that will produce the eigenvalues of the matrix $D_N$. We can produce this outcome with the following script: N = 2^3; D = circshift(eye(N),-1) + circshift(eye(N),1) - 2*eye(N); eig(D) You are the best!! Thanks a lot :))
48,767
https://stackoverflow.com/questions/20392589
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
English
Spoken
179
501
php live search email address after @ if (isset($result_array)) { foreach ($result_array as $result) { // Format Output Strings And Hightlight Matches $display_function = preg_replace("/".$search_string."/i", "<b class='highlight'>".$search_string."</b>", $result['email']); $display_name = preg_replace("/".$search_string."/i", "<b class='highlight'>".$search_string."</b>", $result['email']); //$display_url = 'http://php.net/manual-lookup.php?pattern='.urlencode($result['function']).'&lang=en'; // Insert Name $output = str_replace('nameString', $display_name, $html); // Insert Function $output = str_replace('functionString', $display_function, $output); // Insert URL //$output = str_replace('urlString', $display_url, $output); // Output echo($output); } when i search if input is match with the email in the datase, I ONLY want to check everything before @ in the email address ignore everything after @. how am i able to do that? i try to put $result = array_shift(explode('@', $result['email'])); before display_function. it will remove everything after @ in the result. but it still display the wrong result. which the input string matching email part after @ Use this code: $email = 'username@example.com';$user = explode('@', $email);echo $user[0];//prints username Make use of strstr() in PHP <?php $email = 'name@example.com'; $user = strstr($email, '@', true); echo $user;//prints name Linking your example... $result = strstr($result['email'],'@',true); Try this $result = preg_split("/(@)/", $result['email']); echo $result[0];
15,630
https://stackoverflow.com/questions/70374442
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Mark Ransom, Peter O., Photon, RobG, Spektre, https://stackoverflow.com/users/2521214, https://stackoverflow.com/users/4059145, https://stackoverflow.com/users/5987, https://stackoverflow.com/users/815724, https://stackoverflow.com/users/9416103
English
Spoken
478
584
Need algorithm to generate color codes I see many questions asking for help with an algorithm, so I'm hoping this is a reasonable question for the site. I'm developing a product with Python to chart part histories in a machine. There are three of the same type of part in a machine at any given time, and each part has a 3-digit serial number. These parts are often swapped around or replaced with another part with a different 3-digit serial number. I want engineers and maintenance personnel to be able to visualize a part being swapped around or replaced. I thought this could be done with varying background colors, but if anyone has a better idea I'm very much open to suggestions. I tried a number of different permutations, plugging the 3 digits into an RGB color chart, multiplying the digits, placing each digit in a different place in the RGB code, reversing the numbers, etc., but the numbers often vary by a single digit, and everything I've tried results in colors too difficult to differentiate. To date, most of the serial numbers are within the range of 600 to 800, but this isn't guaranteed. The sample data I have at the moment has numbers ranging from 724 to 784. Of course, any suggestions don't have to be in Python, just as long as I can eventually translate it into Python. Try using a hashing function to convert the serial number to something more random. instead of mapping a serial number to color you can just keep a pool of colors (visually distinct) and assign a new one when a new thing comes in or is being replaced If you need to distinguish many items, you should use other visual means in addition to color (or rather than color) to distinguish them. For example, you can identify the parts with letters or numbers, or use different shapes, different shading, different dash patterns, etc. It may be hard to distinguish more than 22 colors without other cues (see, for example, the 22 maximum-contrast colors of Kelly, 1965). Using S/N or hash directly as color is not a good idea as it might conflict your color scheme instead I would: 1. create list of usable colors (ideally power of 2 number of colors) in your product color scheme 2. from serial number create a hash that will be used as index for the color table, you can use any hash like SHA or MD5 or CRC32 and use just lover bits tomap into your color table. All good answers that I'll play with, still remains to be seen how adjacent cells can be viewed and still not blow out the user's eyes ;-) I even considered different levels of grey, but looking at colors in an RGB tool and in a table of data are very different things. Thanks everyone!
50,122
https://zh-min-nan.wikipedia.org/wiki/Okr%C4%99glica%20%28T%C5%8Da%20Pho-l%C3%A2n%20S%C3%A9ng%29
Wikipedia
Open Web
CC-By-SA
2,023
Okręglica (Tōa Pho-lân Séng)
https://zh-min-nan.wikipedia.org/w/index.php?title=Okręglica (Tōa Pho-lân Séng)&action=history
Min Nan Chinese
Spoken
25
90
Okręglica sī chi̍t ê tī Pho-lân Kiōng-hô-kok Tōa Pho-lân Séng Turek Kūn Kawęczyn Kong-siā ê chng-thâu. Chham-oa̍t Pho-lân ê chng-thâu Chham-khó Turek Kūn ê chng-thâu
3,968
https://hy.wikipedia.org/wiki/%D4%B1%D5%B7%D5%B8%D5%BF%20%D4%B1%D5%A2%D6%80%D5%A1%D5%B0%D5%A1%D5%B4%D5%B5%D5%A1%D5%B6%20%28%D6%83%D5%AB%D5%AC%D5%AB%D5%BD%D5%B8%D6%83%D5%A1-%D5%AC%D5%A5%D5%A6%D5%BE%D5%A1%D5%A2%D5%A1%D5%B6%29
Wikipedia
Open Web
CC-By-SA
2,023
Աշոտ Աբրահամյան (փիլիսոփա-լեզվաբան)
https://hy.wikipedia.org/w/index.php?title=Աշոտ Աբրահամյան (փիլիսոփա-լեզվաբան)&action=history
Armenian
Spoken
1,508
7,306
Աշոտ Սերգեյի Աբրահամյան (), հայ փիլիսոփա-լեզվաբան, նշանագետ, բանասիրական գիտությունների թեկնածու, Երևանի պետական համալսարանի Հայ բանասիրության ֆակուլտետի Ընդհանուր լեզվաբանության ամբիոնի դոցենտ։ Գիտական հետաքրքրության շրջանակներն են եղել ընդհանուր լեզվաբանությունը, լեզվափիլիսոփայությունը, նշանագիտությունը։ Կենսագրություն Աշոտ Աբրահամյանը ծնվել է 1954 թվականի սեպտեմբերի 23-ին Երևանում։ Որդին է լեզվաբան, ՀՀ ԳԱԱ ակադեմիկոս Սերգեյ Աբրահամյանի։ 1961-1971 թվականներին սովորել է Երևանի 118-րդ դպրոցում, որն ավարտել է ոսկե մեդալով։ 1971-1976 թվականներին սովորել է ԵՊՀ բանասիրական ֆակուլտետի հայոց լեզվի և գրականության բաժնում, որն ավարտել է գերազանց առաջադիմությամբ (կարմիր վկայագրով)։ 1977-1980 թվականներին ուսումը շարունակել է ՀԽՍՀ ՀՀ ԳԱԱ Հրաչյա Աճառյանի անվան լեզվի ինստիտուտի ասպիրանտուրայում։ Վախճանվել է Երևանում 2021 թվականի փետրվարի 10-ին ուսուցչի՝ Էդվարդ Աթայանի ծննդյան օրը։ Աշխատանքային փորձ 1976-1977 թվականներին Աշոտ Աբրահամյանն աշխատել է Երևանի Վ. Բրյուսովի անվան օտար լեզուների պետական մանկավարժական ինստիտուտում, 1977-1978 թվականներին՝ Հայաստանի գրքասերների ընկերությունում, 1981-1995 թվականներին՝ Լեզվի ինստիտուտի ընդհանուր լեզվաբանության բաժնում։ 1991-2021 թվականներին աշխատանքի է անցել ԵՊՀ ընդհանուր լեզվաբանության ամբիոնում, 2000-2004 թվականներին՝ Վ. Բրյուսովի անվան լեզվաբանական համալսարանի ընդհանուր լեզվաբանության ամբիոնում (համատեղության կարգով)։ Տիրապետել է հայերեն (նաև դասական՝ գրաբար), ռուսերեն, անգլերեն, գերմաներեն լեզուներին։ Դասավանդել է «Ընդհանուր լեզվաբանություն», «Լեզվաբանության հիմունքներ», «Լեզվաբանական տիպաբանություն», «Նշանագիտություն», «Լեզվանշանագիտություն», «Լեզվաբանական ուսմունքների պատմություն» գիտակարգերը։ Մասնագիտական գործունեություն Աշոտ Աբրահամյանի՝ գիտական «ընդունելի» ոճով գրված միակ աշխատությունը նրա թեկնածուական ատենախոսությունն է՝ «Արսեն Այտընյանի լեզվաբանական հայացքները»։ Այս գրքով Աշոտ Աբրահամյանը բացահայտել է աշխարհաբարի քննական քերականության խոշոր տեսաբանի լեզվաբանական հայեցակարգը, որի՝ մինչև իսկ զուտ հայերենին վերաբերող դրույթները վեր են հանված ընդհանուր լեզվաբանության չափանիշներով։ ։ Աշոտ Աբրահամյանի այդ աշխատության ավարտից հետո սկսվել է նրա գործունեության երկրորդ շրջանը, որը նրա գործունեության մեջ գիտական ու փիլիսոփայական մտքի ճախրի փուլն էր։ Աշոտ Աբրահամյանը եղել է Ընդհանուր լեզվաբանության մեջ աթայանական դպրոցի հետևորդն ու նրա ուսմունքի ստեղծագործաբար յուրացնողը։ Անդրադարձել է լեզվի ստորակարգային բոլոր մակարդակներին՝ հնչյունից մինչև տեքստային տարածությունը բաղադրող միավորները վեր հանելով հատկապես նշանագիտական բեկումներով և տրամախոսական (դիալեկտիկական) հակադրամիասնության անօրինակ գնահատումներով։ Բացի լեզվափիլիսոփայական և նշանագիտական հետազոտություններից՝ նաև մաթեմատիկայի դպրոցական դասագրքերի համահեղինակ է եղել։ Մաթեմատիկոսների հրավերով դասախոսությունների շարք է կարդացել մաթեմատիկայի վերաբերյալ։ «Մաթեմատիկական հետաքրքրությունը գալիս էր դեռ դպրոցական ուսումնառության շրջանից, որի ընթացքում մասնակցելով մաթեմատիկայից հանրապետական օլիմպադաներին` միշտ առաջին տեղ է շահել` շնորհիվ խնդիրների նորովի լուծման իր անզուգական հմտության։ Ճշգրիտ մատածողությունը և մաթեմատիկայի հրաշալի իմացությունը, սակայն, Աշոտ Աբրահամյանին հեռու է պահել լեզվական օրինաչափությունները զուտ մաթեմատիկական եղանակներով բացահայտելու գայթակղությունից և ինքնանպատակ դրսևորումներից։ Քաջ տիրապետելով մաթեմատիկական լեզվաբանության դրույթներին ու մեթոդաբանությանը` լեզվական իրողությունների ճշգրտությունն Աշոտ Աբրահամյանը բացահայտել է առավելապես փիլիսոփայական իմաստավորմամբ։ Մաթեմատիկան ինքնին բարձր վերացարկում պարունակող գիտություն է, սակայն լեզվի պարագայում նրա սոսկական գործադրումը՝ առանց խորքային իմաստավորման, մակերեսային տրամաբանության էր հավասար Աշոտ Աբրահամյանի համար»,- Աշոտ Աբրահամյանին նվիրված «Ներդաշնակության և չափավոր անհամաչափության քննախոսը» հոդվածում գրել է Գրական թերթը։ Հրատարակված գիտական և ուսումնամեթոդական աշխատանքներ Գրական լեզվի ընտրության և մշակման հարցերն ըստ Արսեն Այտընյանի // Հայոց լեզուն և գրականությունը դպրոցում, 1981, հ. 1, էջ 46-51։ Արսեն Այտընյանը և լեզվի հասարակական տարբերակման հարցը // Լրաբեր հասարակական գիտությունների, 1981, հ. 3, էջ 37-48։ Հայոց լեզվի զարգացման ընթացքը Արսեն Այտընյանի մեկնաբանությամբ // Հայոց լեզուն և գրականությունը դպրոցում, 1982, հ. 2, էջ 58-63։ Արսեն Այտընյանը որպես հայոց լեզվի պատմաբան // Միջազգային հայերենագիտական գիտաժողով. Զեկուցումներ, Եր., ՀՍՍՀ ԳԱ հրատ., 1984, էջ 237-245։ Բովանդակության և արտահայտության հակադրման հարաբերականությունը լեզվում // Բանբեր Երևանի համալսարանի, 1988, հ. 1, էջ 34-44։ Э. Г. Туманян, А. С. Абраамян. Научная жизнь: III Международный симпозиум по армянскому языкознанию // Вопросы языкознания, 1989, № 2, с. 153-157. Քերականական իմաստի և քերականական ձևի փոխհարաբերության զարգացման հիմնական դրսևորումները հայոց լեզվի պատմության մեջ // Միջազգային հայերենագիտական երկրորդ գիտաժողով. Զեկուցումներ, հ. 1, Եր., ՀԳԱ հրատ., 1993, էջ 5-14։ Հնչյունը որպես լեզվական միավոր // Բանբեր Երևանի համալսարանի, 1999, հ. 2, էջ 86-98։ Language, Alter-Consciousness, and Self-Consciousness. // Semiotics and Language Teaching: Theoretical Principles and Practical Applications. Selected Papers Presented at the II Conference Held at Yerevan University 20-22 May 1996. Ann Arbor: Caravan Books, 2001, pp. 49-59. The Form-Building Role of Verb Stems: A Typological Study of Old and Contemporary Armenian. // Semiotics and Language Teaching: Theoretical Principles and Practical Applications. Selected Papers Presented at the II Conference Held at Yerevan University 20-22 May 1996. Ann Arbor: Caravan Books, 2001, pp. 115-122. Էդուարդ Աթայան (1932-2002) // Բանբեր Երևանի համալսարանի, 2002, հ. 1, էջ 221-224։ Ընդգրկել անընդգրկելին (առաջաբան) // Է. Աթայան, Հոգի և ազատություն, Եր., Սարգիս Խաչենց, 2005, էջ 5-21։ Էդուարդ Ռաֆայելի Աթայան // Ակադեմիկոս Էդուարդ Աթայան. Կենսամատենագիտություն, Եր., ԵՊՀ, 2007, էջ 9-14։ Essence and Phenomenon in Linguistic Content and Expression. // Armenian Folia Anglistika: International Journal of English Studies, 1-2 (6) / 2009, Yerevan, pp. 47-50. Նշանակյալի և նշանակիչի կրկնակի ներդաշնակումը լեզվում // Նշան, համակարգ, հաղորդակցում. Հոդվածների ժողովածու` նվիրված Էդվարդ Աթայանի հիշատակին, Եր., ԵՊՀ հրատ., 2011, էջ 20-26։ Իմացության, սիրո և արարման ուղի // Նշան, համակարգ, հաղորդակցում. Հոդվածների ժողովածու` նվիրված Էդվարդ Աթայանի հիշատակին, Եր., ԵՊՀ հրատ., 2011, էջ 15-18։ Նույնը՝ Путь познания, любви и созидания // Նշան, համակարգ, հաղորդակցում. Հոդվածների ժողովածու` նվիրված Էդվարդ Աթայանի հիշատակին, Եր., ԵՊՀ հրատ., 2011, էջ 366-369։ Չմարող երախտագիտության տուրք // Բանբեր Երևանի համալսարանի. Բանասիրություն, 2012, 137.2, էջ 79-81։ Об авторе // Э. Атаян. Душа и ее отображения. М.: Эвидентис, 2012, с. 6-11. Похвала лжи // Критика и семиотика. Вып. 16. Новосибирск, 2012, с. 148-157. Էդուարդ Աղայանի ներդրումը տեսական լեզվաբանության և նրա ուսուցման մեջ // Բանբեր Երևանի համալսարանի. Բանասիրություն, 2014, 2 (143), էջ 15-22։ Ներակայություն և հավելուրդայնություն. լեզվական արտահայտման երկու բևեռները // Բանբեր Երևանի համալսարանի. Բանասիրություն, 2015, № 2 (17), էջ 3-13։ Հնչյուն և գիր. թռչո՞ւմ է արդյոք Զենոնի նետը // Արդի բանասիրության հիմնախնդիրները. Միջազգային գիտաժողովի նյութերի ժողովածու / ՀՀ ԿԳՆ, Վանաձորի պետական համալսարան, Եր., «Վարդան Մկրտչյան Ֆեոդորի» ԱՁ, 2015, էջ 8-16։ Живой уголок лингвофилософии: обходной путь “герменевтики себя” // Идеи и идеалы. Новосибирск, 2016, № 2, т. 2, с. 22-30. Տեքստային տարածության հորիզոնները // Վէմ, 2016, թիվ 3, էջ 119-129։ Տեքստի տարբերակները և Ռասելի պարադոքսը // Վէմ, 2016, թիվ 4, էջ 117-129։ Ցուցանշանից խորհրդանշանին անցումը լեզվում // Բանբեր Երևանի համալսարանի. Բանասիրություն, 2017, № 2 (23), էջ 32-39։ Բառի նշանագիտական բնութագրություն // Լեզու, խոսք, իրականություն. Միջազգային գիտաժողով / ՀՀ ԿԳՆ, Վանաձորի պետական համալսարան, Եր., «Արման Ասմանգուլյան» ԱՁ, 2017, էջ 23-32։ Բառեր և իրեր // Բանբեր Երևանի համալսարանի. Բանասիրություն, 2018, № 2 (26), էջ 34-44։ Նշանը, որի մասին երազում էր Չարլզ Փիրսը // Վէմ, 2019, թիվ 1, էջ 9-29։ Լեզվի զարգացման հարցերը ըստ Ա. Այտընյանի // Երիտասաքրդ լեզվաբանների հանրապետական գիտական երկրորդ կոնֆերանսի նյութեր, Հայկ ՍՍՀ. ԳԱ Հրատ., Երևան – 1981: Լեզվական նշանների և նրանց ուսումնասիրման մակարդակները // Նշանաբանություն, լեզվաբանություն և հաղորդակցման պրոբլեմներ (Զեկուցման թեզիսներ), Եր., 1977, էջ 7-9։ Հիմնանյութի ձևավորումը որպես բովանդակության արտահայտման սկզբունք // Երիտասարդ լեզվաբանների հանրապետական հինգերորդ գիտաժողովի նյութեր, Եր., 1986, էջ 3։ Քերականական կարգերի համակարգման փորձ // Նշանագիտություն և լեզուների դասավանդում (տեսական հիմունքներ և գործնական կիրառություն). Թեզիսներ, Եր., ԵՊՀ, 1997, էջ 5-6։ Interrelation of Grammatical and Positional Features in the Structure of Composite Sentences. // Sixième Colloque International de Linguistique Arménienne. Paris: INALCO, 1999, p. 3. Խոսքի մասերի և նախադասության անդամների իմաստաբանական զուգադրում // Թեզիսներ Քրիստոնեության 1700-ամյակին նվիրված գիտական նստաշրջանի, Եր., ԵՊՀ հրատ., 2001, էջ 46։ Է. Աթայանի լեզվաբանական և հոգեբանական տիպաբանությունների ընդլայնման փորձ // Языковая типология. Теоретические и прагматические аспекты: Тезисы: Республиканская научная конференция. Ер., 2004, с. 138-139: Լեզվական իրողությունների տեսական ըմբռնման և գործնական վերլուծության զուգակցումը Սերգեյ Աբրահամյանի աշխատություններում // Զեկուցումների դրույթներ (ՀՀ ԳԱԱ ակադեմիկոս Ս. Գ. Աբրահամյանի 90-ամյակին նվիրված հանրապետական գիտաժողովի), Եր., 2015, էջ 5-7։ Տեքստը և Ռասելի պարադոքսը // Ժամանակակից լեզվաբանությունը միջգիտակարգայնության լույսի ներքո (Միջազգային գիտաժողով – 4 (17-18 մայիսի, 2016՝ նվիրված Կանադայի Մակգիլ համալսարանի պրոֆեսոր Դորա Սաքայանի ծննդյան 85-ամյակին), Ծրագիր և դրույթներ), ԵՊՀ հրատ., 2016, էջ 22։ Աշնանային լավատեսություն կամ վարիացիաներ Յոհան Հյոյզինգայի թեմաներով // Գարուն, 1996, հ. 5, էջ 48-52։ Գրքեր «Արսեն Այտընյանի լեզվաբանական հայացքները», Երևան, ՀՍՍՀ ԳԱ հրատարակչություն, 1984, 215 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա. Հանրակրթական դպրոցի 4-րդ դասարանի դասագիրք, Եր., Փյունիկ-Մակմիլան, 1997, 256 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 4. Դասագիրք հանրակրթական դպրոցի 4-րդ դասարանի համար, Եր., Մակմիլան-Արմենիա, 2000, 240 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 5. Դասագիրք հանրակրթական դպրոցի 5-րդ դասարանի համար, Եր., Մակմիլան-Արմենիա, 2000, 208 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկան 4-5-րդ դասարաններում. Ուսուցչի մեթոդական ձեռնարկ, Եր., Մակմիլան-Արմենիա, 2000, 60 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 5. Դասագիրք հանրակրթական դպրոցի 5-րդ դասարանի համար, Եր., Մակմիլան-Արմենիա, 2006, 240 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկան 5-6-րդ դասարաններում. Մեթոդական ձեռնարկ, Եր., Մակմիլան-Արմենիա, 2006, 64 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 6. Դասագիրք հանրակրթական դպրոցի 6-րդ դասարանի համար, Եր., Մակմիլան-Արմենիա, 2007, 208 էջ։ Յու. Ավետիսյան, Հ. Զաքարյան, Ա. Աբրահամյան, Մ. Հալաջյան, Ա. Պապոյան, Հայոց լեզվի և հայ գրականության պետական ավարտական և միասնական քննության ուղեցույց, Եր., Մուսալեռ տպագրատուն, 2007, 74 էջ (նույնը` 2008, 2009)։ Յու. Ավետիսյան, Հ. Զաքարյան, Ա. Աբրահամյան, Հայոց լեզու և հայ գրականություն. 7 թեստ, Եր., Զանգակ-97, 2008, 176 էջ։ Յու. Ավետիսյան, Հ. Զաքարյան, Ա. Աբրահամյան, Հայոց լեզվի և հայ գրականության ձեռնարկ-շտեմարան, Եր., Զանգակ-97, 2009, 352 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 5. Հիմնական դպրոցի 5-րդ դասարանի դասագիրք, Եր., ՄԱՆՄԱՐ, 2011, 224 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 5-6. Ուսուցչի ձեռնարկ, Եր., ՄԱՆՄԱՐ, 2011, 88 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 6. Հիմնական դպրոցի 6-րդ դասարանի դասագիրք, Եր., ՄԱՆՄԱՐ, 2012, 224 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 5. Հիմնական դպրոցի 5-րդ դասարանի դասագիրք, Եր., ՄԱՆՄԱՐ, 2015, 224 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Մաթեմատիկա 6. Հիմնական դպրոցի 6-րդ դասարանի դասագիրք, Եր., ՄԱՆՄԱՐ, 2016, 224 էջ։ Բ. Նահապետյան, Ա. Աբրահամյան, Վ. Արզումանյան, Ս. Դալալյան, Հ. Հարությունյան, Հ. Ղազարյան, Մաթեմատիկական տերմինների բացատրական բառարան. I – VI, Եր., Մանկավարժ, 2017, 120 էջ։ Ծանոթագրություններ Արտաքին հղումներ Սերգեյ Աբրահամյան․ հին լեզվի նոր պահապանը Ռադիոզրույց Պետություն և լեզու Հայ լեզվաբաններ Անձինք այբբենական կարգով Գիտությունների թեկնածուներ
47,261
https://it.wikipedia.org/wiki/Eddie%20Cahill
Wikipedia
Open Web
CC-By-SA
2,023
Eddie Cahill
https://it.wikipedia.org/w/index.php?title=Eddie Cahill&action=history
Italian
Spoken
345
672
Biografia Nato a New York, secondo di tre figli, di origini irlandesi, si è diplomato alla Byram Hills High School nel 1996. Debutta partecipando alle serie televisive Streghe e Felicity, inoltre ha interpretato Tag, assistente di Rachel Green, in Friends ed il ragazzo bisessuale di Carrie Bradshaw in Sex and the City. Al cinema ha debuttato nel 2004 in Miracle con Kurt Russell, mentre nel 2005 ha recitato in Lords of Dogtown. Dal 2004 al 2013 ha interpretato il detective Don Flack in CSI: NY. Nel 2014 entra nel cast della seconda stagione di Under the Dome. Vita privata Dal 2009 è sposato con la modella Nikki Uberti, dalla quale nel 2010 ha avuto un figlio. Filmografia Attore Cinema Miracle, regia di Gavin O'Connor (2004) Lords of Dogtown, regia di Catherine Hardwicke (2005) This Is Not a Test, regia di Chris Angel (2008) The Narrows, regia di François Velle (2008) Televisione Sex and the City – serie TV, episodio 3x04 (2000) Streghe (Charmed) – serie TV, episodio 3x05 (2000) Felicity – serie TV, episodi 3x09-3x10-3x11 (2000) Friends – serie TV, 7 episodi (2000-2001) Law & Order - Unità vittime speciali (Law & Order: Special Victims Unit) - serie TV, episodio 2x17 (2001) Dawson's Creek – serie TV, episodi 6x09 (2002) CSI: NY – serie TV, 197 episodi (2004-2013) – Don Flack Under the Dome – serie TV, 39 episodi (2014-2015) Conviction – serie TV (2016-2017) NCIS: New Orleans – serie TV, episodio 6x06 (2019) Fantasy Island – serie TV, episodi 1x09-1x10 (2021) Doppiatore CSI: NY – videogioco (2008) Doppiatori italiani Nelle versioni in italiano delle opere in cui ha recitato, Eddie Cahill è stato doppiato da: Francesco Bulckaen in Streghe, Conviction Alessandro Quarta in Felicity, Miracle Roberto Certomà in Dawson's Creek, NCIS: New Orleans Gaetano Varcasia in Law & Order - Unità vittime speciali Christian Iansante in Sex and the City Vittorio De Angelis in CSI:NY Patrizio Prata in Under the Dome Oreste Baldini in Friends Tony Sansone in Demon Town Saverio Indrio in Fantasmi Massimo De Ambrosis in Fantasy Island Altri progetti Collegamenti esterni
42,749
https://el.wikipedia.org/wiki/%CE%A3%CF%84%CF%81%CE%B1%CF%84%CF%8E%CE%BD%CE%B1%CF%82
Wikipedia
Open Web
CC-By-SA
2,023
Στρατώνας
https://el.wikipedia.org/w/index.php?title=Στρατώνας&action=history
Greek
Spoken
64
196
Ο στρατώνας είναι κτίριο ή κτιριακό συγκρότημα που έχει κτιστεί για τη στέγαση στρατιωτών. Ο κύριος στόχος του στρατώνα είναι ο διαχωρισμός των στρατιωτών από τον άμαχο πληθυσμό και η ενίσχυση της στρατιωτικής πειθαρχίας, η κατάρτιση και η συναδέλφωση. Έχει ονομαστεί "εργοστάσιο πειθαρχίας για στρατιώτες". Δείτε επίσης Στρατοπέδευση Παραπομπές Εξωτερικοί σύνδεσμοι Royal Engineers Museum Military Works (Barrack construction) Στρατιωτικοί σχηματισμοί ανά είδος Ανθρώπινα ενδιαιτήματα
13,597
https://et.wikipedia.org/wiki/%C5%9Awidnik
Wikipedia
Open Web
CC-By-SA
2,023
Świdnik
https://et.wikipedia.org/w/index.php?title=Świdnik&action=history
Estonian
Spoken
45
147
Świdnik on linn Poolas Lublini vojevoodkonnas, Świdniki maakonna halduskeskus. Świdnik asub Lublini kesklinnast umbes 10 km idakagus. Świdnik sai linnaõigused 1954. aastal, maakonnakeskus on alates 1999. aastast. Świdnikis asub kopterite ja väikelennukite tehas PZL-Świdnik. Osaliselt asub Świdniki territooriumil Lublini lennujaam. Galerii Viited Lublini vojevoodkonna linnad
17,702
https://fr.wikipedia.org/wiki/Askeran%20%28r%C3%A9gion%29
Wikipedia
Open Web
CC-By-SA
2,023
Askeran (région)
https://fr.wikipedia.org/w/index.php?title=Askeran (région)&action=history
French
Spoken
105
329
{{Infobox Région du Haut-Karabagh |nom=Askeran |autres noms= |imageloc=Askeran in Artsakh.svg |capitale=Askeran |communautés urbaines=1<ref name="NKR fig 13"> National Statistical Service of Nagorno-Karabakh Republic, {{lien web|url=http://stat-nkr.am/files/publications/nkr%20in%20figures/2010_lxh_tverov.pdf|titre=Nagorno-Karabakh Republic in figures|date=2010|page=13|consulté le=15 mars 2011}}.</ref> |communautés rurales=41 |population=17700 |année_pop=2010 |superficie=1196.3 |siteweb= }} Askeran (en arménien '') est une région du Haut-Karabagh ; sa capitale est la ville d'Askeran. La région compte habitants (est. 2010) pour . Pour l'Azerbaïdjan, son territoire relève de ceux des raions de Khodjaly et Agdam. Géographie humaine Outre la capitale Askeran (incluant la localité de Kyatuk), la seule communauté urbaine de la région, 41 communautés rurales sont dénombrées : Notes et références Article connexe Tigranakert (Artsakh)
40,968
https://math.stackexchange.com/questions/4477895
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
English
Spoken
160
453
Why does $\lVert u\rVert_{W^{k+2,p}}\leq C\lVert\Delta u\rVert_{W^{k,p}}$ imply injectivity of $\Delta$? Let $(M,g)$ be a compact Riemannian manifold with nontrivial boundary. I try to prove that for each nonnegative integer $k$ and every $p>1$, the $g$-Laplacian $$\Delta:W_0^{k+2,p}(M)\to W^{k,p}(M)$$ is injective. $W_0^{k+2,p}(M)$ is the collection of functions in the Sobolev space $W^{k+2,p}(M)$ that vanish on $\partial M$. If I can find a constant $C$ so that for each $u\in W_0^{k+2,p}(M)$, $$\lVert u\rVert_{W^{k+2,p}}\ \ \leq C\lVert\Delta u\rVert_{W^{k,p}}\ ,\tag{$*$}$$ then is there anything I can say to reach injectivity of $\Delta$? A book says that $(*)$ implies injectivity, but I don't see how. Can we suppose $\Delta u=\Delta v$ and deduce $u=v$? In this case, the norm of $u$ is of the same order as that of $v$, that is, they are both bounded above by $C\lVert\Delta u\rVert=C\lVert\Delta v\rVert$. Thank you. By linearity of the Laplace operator $\Delta$ $$\|u-v\|\leq C\|\Delta(u-v)\|=C\|\Delta u-\Delta v\|=C\|0\|=0$$ and by positive definiteness of the norm this implies $u-v=0\iff u=v$ (a.e).
39,067
https://nl.wikipedia.org/wiki/Welsh%20voetbalelftal
Wikipedia
Open Web
CC-By-SA
2,023
Welsh voetbalelftal
https://nl.wikipedia.org/w/index.php?title=Welsh voetbalelftal&action=history
Dutch
Spoken
11
40
Welsh voetbalelftal (mannen) Welsh voetbalelftal (vrouwen) Welsh voetbalelftal onder 21 (mannen)
240
https://stackoverflow.com/questions/61771960
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
Keti Kutateladze, UfguFugullu, https://stackoverflow.com/users/6193316, https://stackoverflow.com/users/7104341
English
Spoken
176
245
mdbootstrap pagination basic table load data according to page number I'm using mdboostrap pagination basic table. link: enter link description herehttps://mdbootstrap.com/docs/jquery/tables/pagination/ 1) How can i load only one page data from server according with page number.(Also show how many total number of items are there). 2) Search problem. In case I'll load only one page data, how can i give searched text to server side and callback searched items to load in table. If the mdbootstrap theme uses this datatables plugin, then you can solve it like this example or you find all informations about it here Unfortunately, I've posted their official site and answer is : "Hi. I'm afraid not.The problem is that datatables dynamically sets the number of pages. For example: if you set 10 lines to appear on one page and download 100 records, then pagination will show 10 pages. But if you only want to download 10 records, how do you simulate that 10 pages should appear? I don't see option in docs to manually set how many pages should be available."
24,488
https://he.wikipedia.org/wiki/%D7%90%D7%93%D7%A8%D7%99%D7%9B%D7%9C%D7%95%D7%AA%20%D7%9E%D7%9E%D7%9C%D7%95%D7%9B%D7%99%D7%AA
Wikipedia
Open Web
CC-By-SA
2,023
אדריכלות ממלוכית
https://he.wikipedia.org/w/index.php?title=אדריכלות ממלוכית&action=history
Hebrew
Spoken
1,151
4,227
האדריכלות הממלוכית היא הסגנון האדריכלי של מבנים מונומנטליים ומבני דת ברחבי הסולטנות הממלוכית, אשר שלטה במרחב המזרח התיכון בין השנים 1250–1517. האדריכלות הממלוכית באה לידי ביטוי בעיקר בקהיר, דמשק וירושלים. סוגי המבנים מדרסה - המבנה הממלוכי הייצוגי העיקרי הוא המדרסה, מרכז לימוד דתי. המבנה המסורתי כמעט בכל המדרסות הוא חלל מרכזי (מקורה או פתוח) ממנו מתפצלים ארבעה אולמות-לימוד (איוָואנים), כנגד ארבע אסכולות השריעה. הכניסה למדרסה נעשית מן הרחוב, דרך מעבר צר אל החלל המרכזי. בקיר הקיבלה, כלומר הקיר הפונה לכיוון התפילה (לכיוון מכה), ממוקמת גומחת-תפילה (מחראב) מעוטרת כשער בזעיר-אנפין (ראו להלן). למדרסה שתי קומות או יותר, כאשר בקומות העליונות היו מגורים לתלמידים, למשפחת מקדישי המרדסה ולצליינים נכבדים. בקהיר למדרסה נבנו גם צריחים, מנהג זה לא נפוץ בירושלים ודמשק. ח'אן, ח'נקה, רִבאט - אכסניות לעוברי דרכים וצליינים. הח'אן הוא מבנה במימון ויזמה שלטונית שהוקם עבור סוחרים, פקידי ממשל ועוברי-דרכים. רבאט היא אכסניה במימון פרטי המיועדת כהקדש (וקף) עבור צליינים, במקרים רבים הוקדש רבאט בידי יוצאי עיר מסוימת עבור עולי רגל שמוצאם באותה עיר או אזור. ח'נקה היא אכסניה מיוחדת לדרווישים צופים. ככלל, כל המבנים הללו בנויים כשורת חדרים, לעיתים דו-קומתית, המקיפה חצר פנימית. שורת החדרים בקומה הראשונה מחוברת על ידי ארקדה ובקומה השנייה בנויה מרפסת. ח'אן מחוץ לעיר יהיה מוקף חומה ובפינתו הדרומית יהיה מסגד קטן (ר' למשל ח'אן ג'וב יוסף או חנות תגרים על דרך הדואר). חצר הח'אן גדולה יותר מחצר האכסניות האחרות ושימשה למסחר, בה ורק בה, יכלו סוחרים נוכרים לסחור. בח'אן שכנו גם משרדי גביית מס. ההכנסות מהאכסניות שימשו למימון מוסדות דת. תורבה, מבנה קבורה - מבנה הקבורה לנכבדים הממלוכיים הוא מבנה קובייתי שבראשו כיפה הנישאת על תוף. בתוך המבנה ניצבות מצבות מוארכות, המקושתות בפינותיהם בבולבוסי אבן. בקיר התורבה קבועים בדרך כלל שני חלונות גדולים במפלס הרחוב, המאפשרים לקהל העובר לראות את הקברים, לחלוק כבוד לנפטרים ולהאזין לדרשן הקורא בקוראן בתוך המבנה, מול החלון, במימון משפחת הנפטר להעלאת נשמות המתים ולזיכוי הרבים. נכבדים רבים (גם נשים כתורכאן ח'תון והגבירה טונשוק) בחרו להיקבר סמוך להר הבית בירושלים. מסגדים וצריחים - הממלוכים לא בנו מסגדים רבים, אולם האמור לגבי עיטור המדרסות תקף גם לגבי עיטורם של מסגדים. הצריחים הממלוכיים נחלקים לשני טיפוסים: הסורי, המרובע והמצרי, הבנוי ממספר שלבים בדרך כלל בסיס מרובע וצריח עיקרי גלילי המעוטר במרפסות. בצריחים מונומנטליים גם בדגם הסורי נמצא מרפסת בשליש העליון (ראו למשל בצריחי הר הבית, שכולם, פרט לצריח שער השבטים הם מהטיפוס הממלוכי הסורי). מילון עיצובי את האדריכלות הממלוכית מאפיין מילון פריטי עיצוב מצומצם יחסית ואופייני מאוד. עם זאת, המבנים השונים אינם דומים זה לזה. תוך שימוש באותם פריטי עיצוב מושג עושר צורני רב. בדרך כלל חזית המבנה מעוטרת ומפוארת, ובייחוד הפתח הראשי. במרחב העירוני (כמו בעיר העתיקה בירושלים) נבנו המבנים צמודים זה לצד זה לאורך הרחובות, כאשר הם יוצרים כעין חזית-חומה וחושפים אל הרחוב רק קיר אחד. מאחורי החזית משתרעת חצר פנימית רחבה אליה פונים החלונות והכניסות לחללים השונים. כיוון שאל הרחוב פונה חזית המבנה ושערו, החזית והשער מעוטרים בפאר רב. השער של המבנה המונומנטלי (למשל, המדרסה) שקוע בגומחה גבוהה ומחודדת וחללו נקרא "פורטל". הפורטל מעוטר באלמנטים הבאים, מלמעלה למטה: חצי-כיפה קעורה כלפי פנים כקונכייה, לרוב מחורצת פלחים-פלחים. חצי הכיפה מקושטת בנטיפי אבן מדורגים הנקראים "עיטור נטיפות" או "מוּקָרְנָס". זהו עיטור שמקורו באדריכלות הפרסית-סלג'וקית. בעלי המלאכה שהתקינו את המוקרנס היו אומנים נודדים. הם חתמו על יצירותיהם במקום נסתר ואנו מכירים כמה מהם בשמם. עומק המוקרנס (מספר שורות הנטיפים) מעיד על עושר המבנה ופארו. יש מבנים ובהם 15 שורות מוקרנס (הדבר קשור כמובן גם לעומק הפורטל). טבלת אבן ובה כתובת הקדשה מסולסלת שבה האותיות הערביות מהוות קישוט בפני עצמו. הטקסט מעיד על תפקיד המבנה, שם הבונה, שנת הבניה ופסוקים מהקוראן. העיטור משלב מקלעות אבן מפותלות בתבנית גאומטרית או צורות מן הצומח המשתלבים בכתב הערבי בצורת ערבסקה. גודל הטבלה, רמת עיטורה ולעיתים "גלישה" של הכתוב אל הצדדים מעידים על עושר המבנה ופארו. לרוב ישולב בכתובת ההקדשה רנכ (رنك, הסמל המשפחתי) של המקדיש. משקוף הדלת בנוי תשליב אבנים (jogglers) - אבנים משתלבות בשני צבעים שונים ובצורות גאומטריות דמויות-עלים כאשר אחת היא תשליל (נגטיב) של השנייה. מזוזות הפתח בנויות בתשליב אבלק - לרוב נעשה שימוש באבלק המשלב אבנים לבנות ושחורות או אדומות לסירוגין. אין ספק שהאבלק הוא המאפיין הבולט ביותר של האדריכלות הממלוכית המונומנטלית. במבנים צנועים יחסית האבלק מוגבל למזוזות הפתח, ובמפוארים הוא מקיף את כל קיר החזית הפונה אל הרחוב. משני צידי הפתח נבנו שני ספסלי אבן נמוכים (מצטבא), לטובת שומרי המבנה ועוברי-אורח. במבנים ממלוכיים דלים ניתן לזהות את היותו של המבנה ממלוכי לפי ספסלים אלו. דלתות המבנה הן דלתות עץ כבדות, מצופות בברזל. הברזל מוצמד לדלת העץ על ידי מסמרים בעלי ראש רחב, המסודרים בתבנית קישוטית. לרוב צבועה הדלת ירוק או אפור. לעיתים שרדו במרכז הדלתות מקושים מעוצבים (כמו במדרסת הטשתמוריה). אלמנטים נוספים חלונות וסורגים - במדרסות, כאמור, החלונות אינם פונים אל הרחוב במפלס הרחוב אלא לחצר הפנימית, אולם במבני קבורה (ובמקרים בהם החלל הצמוד לפתח במדרסה משמש כחלל קבורה) יפנו אל הרחוב חלונות מלבניים גדולים אופייניים מאוד. החלונות מחופים בסורגים ממלוכיים - סורגי ברזל עבים ועגולים הערוכים בתבנית שתי וערב, כאשר המוטות האנכיים מושחלים דרך המוטות האפקיים עם גולות תפוחות בחיבורים. מאחורי הסורגים נסגר החלון בשבכת עץ (משרביה). מסגרת משוננת - במקרים מסוימים מוקפת חזית המבנה בתבליט עיטורי משונן סביב לשולי המבנה (למשל בתורבת הגבירה טונשוק). שימוש משני - הממלוכים נטו לעשות שימוש בחלקי מבנים קדומים, במיוחד מבני שיש ובמיוחד ממקור צלבני, כעונש לכופרים. הם לא נטלו עמודים או חלקים שלמים אלא עיצבו אותם כך שיתאימו לצרכיהם ויצרו מהם אריחים, אבנים משתלבות לעיטור משקופים וכדומה. כרכובים - כרכובי-תמיכה מסוגננים מאבן, התומכים מרפסת במבנה דו-קומתי. לדוגמה כרכובי תמיכת המרפסות בחאן אל-סולטאן. קשתות וקירוי קשתות - הקשתות הממלוכיות הן מחודדות. במקרים מסוימים יצרו קשתות בצורת תלתן בעל שלושה ואף חמישה עלעלים. הם השתמשו בתכסיסים קונסטרוקטיביים כך שלמעשה קשתות-מקלות נושאות את משקל המבנה ולא המבנה העיטורי הנאה. כיפות תוף - הכיפה הממלוכית הקלאסית היא כיפה בתבנית חצי-כדור על גבי תוף (הגבהה גלילית). המעבר הפנימי בין הגג לתוף מעוצב כשורת נטיפי מוקרנס בקשת זווית או מבנה של פירמידות (בדגם המצרי). רוב הכיפות מבוססות על מתומן וקשתות זווית עם מוקרנס, ולא על בסיס פנדנטיבה כפי שנעשה באדריכלות הביזנטית והאירופית של התקופה המקבילה. קירוי קשתות - הקירוי הפנימי נעשה בקמרונות שונים ומגוונים, החל בקשתות פשוטות (כמו בשוק הכתנים וכלה במבנה של קשתות מצטלבות היוצרות בהיפגשן מתומן (שהושאר לעיתים פתוח, כעין חלון-גג). ראו גם ממלוכים ירושלים בתקופה הממלוכית מדרסת תנכזיה ארמון הגבירה טונשוק שוק הכתנים מבני הר הבית המאוזולאום הממלוכי בצפת לקריאה נוספת M.H. Burgoyne, Mamluk Jerusalem, An Architectural Study, 1987 יוסף דרורי, ירושלים בתקופה הממלוכית ו-אדריכלות ממלוכית בירושלים, בתוך: אלי שילר (עורך), תולדות ירושלים מחורבן בית שני ועד לתקופה התעות'מאנית, אריאל 83-84, 1992. עמ' 169-206 עפרה רגב, ממלוכ כי ימלוך, בתוך אייל מירון (עורך), ירושלים וכל נתיבותיה, יד יצחק בן-צבי, ירושלים תשנ"ז (1996) עמ' 142-153 דוד קרויאנקר, אדריכלות בירושלים, הבניה בעיר העתיקה, עמ' 57-77 דן בהט, מבנים ממלוכיים בירושלים, המחלקה לחינוך של יד בן צבי, 1975 קישורים חיצוניים ארכיטקטורה ממלוכית בורג'ית בקהיר המחלקה לאדריכלות של MIT (אנגלית) ארכיטקטורה ממלוכית בחרית בקהיר המחלקה לאדריכלות של MIT (אנגלית) ארכיטקטורה ממלוכית המחלקה לאמנות איסלאמית ב"מוזיאון ללא גבולות" (אנגלית) עדה כרמי מלמד ודן פרייס: נבי מוסא - עיר מכונסת בעצמה מול פולשים ומדבר, Xnet, 14.11.11 ממלוכית ממלוכית התקופה הממלוכית בארץ ישראל ממלוכים en:Islamic architecture#Mamluk architecture
48,106
https://math.stackexchange.com/questions/4482980
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
Kam, Sarvesh Ravichandran Iyer, dan_fulea, https://math.stackexchange.com/users/252071, https://math.stackexchange.com/users/316409, https://math.stackexchange.com/users/328520, https://math.stackexchange.com/users/550003, lulu
English
Spoken
2,499
4,925
Number of vowels in the first 5 letters of a random arrangement I am struggling to understand the textbook solution of the following problem, my solution is correct, but I would like to understand the author's thinking Let $X$ be the number of vowels (not necessarily distinct) among the first five letters of a random arrangement of the expression "ELIZABETHTAYLOR" Find the probability mass function of $X$ My Solution: For the case $X=5$, I imagined all the letters being in a bag, there are 6 vowels (Two A's, Two E's, one I and one O) and that I need to find the probability that the first 5 letters I pick are vowels, this translates to: ${5\choose 5}\times \frac{6}{15}\times\frac{5}{14}\times\frac{4}{13}\times\frac{3}{12}\times\frac{2}{11} = \frac{720}{360,360} = \frac{2}{1001}$ For the case $X=4$, ${5\choose 4}\times \frac{6}{15}\times\frac{5}{14}\times\frac{4}{13}\times\frac{3}{12}\times\frac{9}{11} = \frac{720}{360,360} = \frac{45}{1001}$ etc. The author gives this general solution: $$\frac{{5\choose i}\times {_6}P{_i} \times {_9}P{_{5-i}} \times 10!}{15!} $$ which I don't understand the intuition of. I see the first combinatorial is the same as mine, but I don't understand why we are multiplying two permutations which represent the vowels and consonants by $10!$. Can someone please give me the explanation and guide me through the authors method? Any help is very much appreciated, thank you! $10! / 15! = \frac{1}{11}\frac{1}{12}\frac{1}{13}\frac{1}{14}\frac{1}{15}$. That appears in your formula as well , so it seems there is some amount of similarity in the approach. Also, "Elizabeth Taylor", interesting. my goodness I can't believe I missed that, thank you! @SarveshRavichandranIyer, should one come up with the general formula directly or derive it from seeing the case-by-case patterns? Because I cannot see myself coming up with the general formula the author gave just from definition But I don't understand the apparent use of "ordinary" permutations. At some point the multi-set nature of the Vowels and Consonants needs to appear. I am not sure what you mean @lulu may you please elaborate? It seems that we count permutations, not the result of the action of permutations on the given word... @lulu To me, $_6P_i$ means the number of ways to choose $i$ elements out of $6$ distinct options. But that's not the situation here. Here you need to choose $i$ objects from the multiset ${A,A, E, E, I ,O}$. @dan_fulea If you mean that we are imagining that we had the set ${A_1,A_2, E_1, E_2, I, O}$ then I agree with you. And perhaps that's the answer. I was taking the pair $A_1A_2$, say, to be the same as the pair $A_2A_1$ but perhaps that was not the intent. But, yes. Read your way, the formula is correct. OK, than we have to ask the question: The given word is $$ELIZ\color{red}{A}BETHT\color{blue}{A}YLOR\ ,$$and we can permute using different permutations to get the same word $\color{red}{A}\color{blue}{A}ELIZ\ BETHT\ YLOR=\color{blue}{A}\color{red}{A}ELIZ\ BETHT\ YLOR$, when written black on white paper. What do we count here? Permutations or the words resulted after applying them (when modelling the probability space)? It's an interesting ambiguity. I read the problem as asking "amongst all distinct $5$ letter words drawn from the given letters, what's the distribution of the number of vowels?". That is not the same as asking for "of all the draws of $5$ letters from the available ones, with multiplicity, what is the distribution of the number of vowels. " The official answer suggests that the second reading is intended. Side note: Not sure about the status of $Y$ here. It's a "vowel glide", if memory serves, or perhaps a "semivowel" (not sure I ever understood the difference). And, personally, I'd just go ahead and call those things vowels. Not sure what the consensus is, if there is one. Oh, it's not confusing, see this. (though I see from the comments on that link that not everyone agrees with this distinction). A glide precedes the vowel, a semivowel follows it. So , here, the $Y$ is a semivowel. I do understand that this is not the important issue here. in my book $Y$ is a vowel, but the exercise chooses to not to consider it one @lulu @lulu THANK you for all your input, I really appreciate it. I will let these thoughts decant in my head @Kam I'm going one step further and trying to write an answer. For your detail, I believe you merit this. +1. @SarveshRavichandranIyer That is very kind of you, many thanks :) I think I'll go for this, given I had a helpful comment first up. I'll call Elizabeth Taylor as Liz Taylor or Liz below, I hope she does not mind. Our idea is to think about the individual components in the formula $$ \frac{\binom{5}{i} \times \ _6P_i\ \times\ _9P_{5-i} \times 10!}{15!} $$ For the purposes of this answer, it seems the following happens. All the letters of $ELIZABETHTAYLOR$ are treated as different from each other, something like $$E_1L_1IZA_1BE_2T_1HT_2A_2YL_2OR$$ (I can hear Liz Taylor screaming in the distance). Some kind of choices and permutations are made. Are the letters combined back later? Thus began, the suspense novel "Was Liz Taylor put back together?". Tackle the $15!$ first. Clearly, $15!$ is the number of ways in which one can permute $15$ different letters. So we must differentiate the letters of Liz Taylor's name to begin with, and then we realize that the sample space is probably the space of all permutations of the differentiated letters. So an example of a permutation is $$ IZL_2A_1BE_1OE_2T_1HRA_2L_1YT_2 $$ Let's now go into the components. Make the following preliminary observation that there are $6$ vowels and $9$ consonants in this permutation, all distinct from each other now. We use a table to illustrate the process of permutation creation. On the right, is a particular term of the numerator. In the middle is the reason it's there. For $i=3$ we will build a permutation using the author's schema, and place the example we build on the right. Term Reason Example $\binom{5}{i}$ We choose $i$ positions out of the first $5$ Positions numbered $1,2,4$ were chosen $_6P_i$ We arrange $i$ vowels out of the $6$ in a certain order Take say $E_2 O E_1$ $_9P_{5-i}$ We arrange $5-i$ consonants out of the $9$ available in a certain order. Say $YT_1$ $10!$ There are $10$ leftover letters. We arrange them in any order. $ZA_2RL_2L_1T_2BHA_1I$ Now, let us see what permutation is constructed out of this. Positions $1,2,4$ will be occupied by the vowels $E_2OE_1$ in that order. Positions $3,5$ (the leftover positions) will be the consonants $YT_1$ in that order. Positions $6$ to $15$ will the letters $ZA_2RL_2L_1T_2BHA_1I$ in that order. At the end, we get $$ E_2OYE_1T_1ZA_2RL_2L_1T_2BHA_1I $$ That is how the author intends to build permutations, and that's how his schema is made. But I can hear Liz Taylor saying : "This isn't a permutation of $ELIZABETHTAYLOR$! This is a permutation of $E_1L_1IZA_1BE_2T_1HT_2A_2YL_2OR$, which isn't the same name(duh)!!" How can we assuage her concerns? To help out Liz, we must understand why the author chose to count the way he did. What if the author ignored the denominator and start out with the letters $ELIZABETHTAYLOR$ instead of $E_1L_1IZA_1BE_2T_1HT_2A_2YL_2OR$? Then I claim that the author's scheme could have made them overcount. The reason for that is rather obvious. For example, the permutations $EE$ and $EE$ are the same (really?), while the permutation $E_1E_2$ is different from the permutation $E_2E_1$ when the two letters are identified distinctly. Imagine the author was doing the second step, where he had to choose $3$ vowels out of $6$ , say. The number of permutations is not equal to $_6P_3$, because the six vowels are not distinct in $ELIZABETHTAYLOR$. So that's where the overcounting would have occurred had he proceeded with this step. The author's idea to differentiate the letters, was done to avoid overcounting with his proposed scheme. He came up with the scheme first, then realized that he had to differentiate the letters to avoid trouble. But we still haven't answered Liz's question (and she's getting impatient) : how do we retrieve a permutation of $ELIZABETHTAYLOR$ from the permutation written there? For this, we recall a useful notion in probability : a function between sample spaces, often called a probabilistic mapping. This is a function $f : \Omega_1 \to \Omega_2$ between sample spaces, which allows us to think of events in one space in terms of events in another space. Let $\Omega_1$ be the set of all permutations of $E_1L_1IZA_1BE_2T_1HT_2A_2YL_2OR$ and $\Omega_2$ the set of all permutations of $ELIZABETHTAYLOR$. Then, the map $f$ from $\Omega_1$ to $\Omega_2$ is defined as the identification of all the "distinct" letters in the corresponding permutation in $\Omega_1$, interpreted then as a permutation in $\Omega_2$. To give an example,$$ f(E_2OYE_1T_1ZA_2RL_2L_1T_2BHA_1I) = EOYETZARLLTBHAI $$ What's something nice about this map? It's the following : every element of $\Omega_2$ has exactly $2^4$ preimages. To prove this, look at a particular permutation, say $$ EOYETZARLLTBHAI $$ How could a permutation from $\Omega_1$ have been mapped to this? The only way is that some letters were identified together. Now, there are $2$ copies each of $E,T,A,L$ in the permutation above. Simply numbering the $T$s with $1,2$, the $E$s with $1,2$ and so on can be done in $2^4$ different ways and leads to $2^4$ different elements of $\Omega_2$. For example, $$ f(E_2OYE_1T_1ZA_2RL_2L_1T_2BHA_1I) = EOYETZARLLTBHAI \\ f(E_1OYE_2T_1ZA_1RL_1L_2T_2BHA_2I) = EOYETZARLLTBHAI $$ and you can perhaps see how the other of $16$ possible preimages can be written : by permuting the $1$s and $2$s among $E,T,A,L$ subscripts till exhaustion. Remember that $f$ can be used to map subsets of $\Omega_1$ to $\Omega_2$ and vice-versa via the image and preimage operations. That is, if $S_1 \subset \Omega_1$, then $f(S_1) = \{f(\sigma) : \sigma \in S_1\}$ is a subset of $\Omega_2$. Similarly, if $S_2 \subset \Omega_2$, then $f^{-1}(S_2) = \{x \in \Omega_1 : f(x) \in S_2\}$ is a subset of $\Omega_1$. From what we discussed earlier, we have the relation $$ |f^{-1}(S_2)| = 16|S_2| \quad ; \quad |f(S_1)| = \frac{|S_1|}{16} $$ where $S_1,S_2$ are as above. The big observation occurs when we think about the sizes of $\Omega_1$ and $\Omega_2$. What is $|\Omega_1|$? It is $15!$. What is $|\Omega_2|$? Indeed, that is $\frac{15!}{16}$, because we can use $S_2 = \Omega_2$ in our discussion above to get this conclusion. Now, we can easily see that $f$ is indeed very special. $f$ is a probability preserving map between $\Omega_1$ and $\Omega_2$. In other words, for every set $A_1 \subset \Omega_1$, we have $\mathbb P_1(A_1) = \mathbb P_2(f(A_1))$. Similarly, for every event $A_2 \subset \Omega_2$, we have $\mathbb P_2(A_2) = \mathbb P_1(f^{-1}(A_2))$ (note : $\mathbb P_1,\mathbb P_2$ indicate that we are taking the probabilities of events in $\Omega_1$ and $\Omega_2$ respectively). The proof is very easy. One direction of it would be $$ \mathbb P_1(A_1) = \frac{|A_1|}{|\Omega_1|} = \frac{\frac{|A_1|}{16}}{\frac{|\Omega_1|}{16}} =\frac{|f(A_1)|}{|f(\Omega_1)|} = \frac{|f(A_1)|}{|\Omega_2|} = \mathbb P_2(f(A_1)) $$ I'd imagine you can go the other way as well. Now, having this probability preserving map in our armory, let's proceed to place Liz's and our reader's mind at rest. Recall the random variable $X$, the number of vowels among the first letters in a random permutation of $ELIZABETHTAYLOR$. Note that $\{X=i\}$ for $i=0,1,2,3,4,5$ is an event of $\Omega_2$. For $i=0,1,2,3,4,5$, Consider the event in $\Omega_1$ given by $$ E_i = \{X=i\} = \{\sigma \in \Omega_1 : \text{ There are $i$ vowels in the first $5$ letters in $\sigma$}\} $$ and the event in $\Omega_2$ given by $$ F_i = \{\sigma' \in \Omega_2 : \text{There are $i$ vowels in the first lettes in $\sigma'$}\} $$ One sees that $f(F_i) = E_i$ for all $i$. Why? Indeed, vowels continue to be vowels and consonants continue to be consonants under the map $f$ : it only changes the identification among the letters, but doesn't change whether each is a letter or a consonant. Therefore, this is true. The author's schema shows that $\mathbb P_1(F_i) = \frac{\binom{5}{i} \times \ _6P_i\ \times\ _9P_{5-i} \times 10!}{15!}$. We already discussed how the author uses each of the terms to come up with a permutation in $\Omega_1$, and how it avoids overcounting. Because $f$ is probability-preserving, it is also true that $$ \boxed{ \mathbb P_2(\{X= i\}) = \mathbb P_2(E_i) = \mathbb P_2(f(F_i)) = \mathbb P_1(F_i) = \frac{\binom{5}{i} \times \ _6P_i\ \times\ _9P_{5-i} \times 10!}{15!} } $$ So that completes the loop. To perhaps put it from the author's perspective. He cam up with a scheme for generating permutations with the desired number of vowels. Then, he realized that he was overcounting if he performed his scheme with permutations of $ELIZABETHTAYLOR$. So he simply had to differentiate the letters of the name. However, he rescued the situation by realizing that there is a very natural and probability preserving map between the two sample spaces given by the permutation with the identified and non-identified letters. This allowed him to reconnect the permutation of the marked letters, with a permutation in the set $\{X=i\}$, while not needing to change the probability. Thus, his task was achieved. Now, let's be honest. I did my best to explain the naturality of $f$ as a map, but I really think the author's scheme is excessively confusing. I prefer the OP's approach. However, Liz is happy, since we returned to $\Omega_2$ in the end. I hope others are , as well. Side note : probability-preserving maps are a big deal in measure theory and dynamical systems. Glad to have given you and Liz a first-hand look at their usefulness. I want to vote this as the best answer ever given on MSE, Sarvesh, you have absolutely floored me, I will be sharing this answer with as many friends as I can, thank you from the bottom of my heart, i came looking or wood and I found a diamond, may you have an excellent rest of your year, bless your soul! I might have questions, but for now I am just savoring this answer as much as I can @Kam I thank you for providing me with enough information to write this answer and be of service to you. I hope that , in particular, I could communicate the usefulness of measure-preserving transformations. Note that these are often referred to as ergodic transformations in literature, and ergodic transformations form a whole different subject because of intricate links to dynamical systems. As you saw with the toy example linking permutations of different names of Liz, the same can be done with very complicated sample spaces, providing for a rich theory. Oh, pardon me : $f$ is a "probability mapping" that , because it preserves the probability of events, is called a "measure preserving transformation". Yes, it's nice to see how simple questions can knock on the door of interesting recent research. I will remember these two days for as long as I live, thanks again Sarvesh, I have much to learn from this information you provided, and I have no doubt it will prove very useful in my pursuit of probability and statistics @Kam Thank you so much, I am very glad I was able to be of great service to you today.
43,011
https://stackoverflow.com/questions/14199279
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
ZnArK, ghostrider, https://stackoverflow.com/users/1113997, https://stackoverflow.com/users/1440715
English
Spoken
1,244
2,031
Reading data over serial Arduino and XBee I am having the following: Two Arduinos and two XBees. I want to send data from the one to another. The XBees communicate, because I have the proposes test (connect one XBee with the Arduino and the other to the PC, write from the one, and watch the other in the other terminal). Now I want to send data from the one to another: These are my two scripts: For sending (which is tested in the former test that sends all the letters): #include <SoftwareSerial.h> SoftwareSerial xbee(2, 3); // RX, TX char c = 'A'; int pingPong = 1; void setup() { Serial.begin(9600); Serial.println( "Arduino started sending bytes via XBee" ); //Set the data rate for the SoftwareSerial port xbee.begin(9600); } void loop() { // Send character via XBee to other XBee connected to Mac // via USB cable. xbee.write( c ); //--- Display the character just sent on console. --- Serial.println( c ); //--- Get the next letter in the alphabet, and reset to --- //--- 'A' once we have reached 'Z'. c = c + 1; if ( c>'Z' ) c = 'A'; //--- Switch LED on Arduino board for every character sent--- if ( pingPong == 0 ) digitalWrite(13, LOW); else digitalWrite(13, HIGH); pingPong = 1 - pingPong; delay( 1000 ); } The problem is when I connected an Arduino to receive data from the other XBee. Here is my code: #include <SoftwareSerial.h> SoftwareSerial xbee(2, 3); // RX, TX void setup() { Serial.begin(9600); Serial.println( "Arduino started receiving bytes via XBee" ); // Set the data rate for the SoftwareSerial port. xbee.begin(9600); } void loop() { int temp = xbee.read(); Serial.print("Character received:"); Serial.println(temp); delay(1000); } Output is always: Character received: -1. If I change the temp from int to byte I see Character received: (a non-[ASCII][3] symbol). I am using XBee series 1. They are configured through X-CTU, based on the one tutorial found on ladyada.net. Then I connected the XBee to an Arduino (TX to pin 3, RX to 2, Vcc and GND respectively) and the other XBee to the PC through an FTDI cable. I was able to send characters from the Arduino and see them in the serial monitor of the X-CTU. Does this mean that they are configured correctly? Then I wanted to connect an Arduino to my receiver. You can see the code above. I am always getting no available data. Returned -1 means that there is no data in the serial. What Arduino board and version are you using? I tried arduino Uno to Uno and rduino Uno to micro. Changing int to byte is really changing int to char. The non-ASCII symbols are a result of trying to render the character (0b11111111). Negative one (-1) in decimal is all ones in binary because int's are signed by default. Check out Bin/Dec/Hex Converter to verify. All of that is to say that xbee.read() returns a byte/char. I was not able to find anything in the documentation, but I would assume that the -1 is due to an error (based on the hardware Serial documentation). This is because there is nothing to read. You could try the following: Ensure the RX/TX lines are correct. Trust me, it happens. Check to see if the XBee has data available prior to reading. (You'll get a lot less lines printed since it will wait until a byte is ready to be read.) if (xbee.available()) { byte temp= xbee.read(); Serial.print(temp); } Use the built in (hardware). SoftwareSerial should work, but in my experience, hardware serial is much more reliable. Depending on your model(s) of Arduino, you may have to (Disable Auto Reset on Serial Connection). This appears to be only needed if you're trying to send data through the FTDI chip from somewhere other than the IDE's Serial Monitor (generally speaking). This thread Arduino to Arduino XBee Serial Communication has a very similar setup that appears to be working. Simplify your effort as much as possible and then slowly add functionality. Directly connect the XBee RX & TX lines to a USB-to-FTDI connector, such as this cable or this breakout board. Until you have a working proof of concept, you should make it as simple as possible. Once it is working then add features one at a time. This seems like what you're doing already, but this could probably be simplified further (cut the Arduinos out of the equation by using FTDI only, use hardware serial, etc.). It sounds like a pretty cool project. Good luck! it always go to the else.. "No data available". With FTDI only it works. If FTDI works then try using the Arduino's Hardware serial. I have a suspicion that the problem is somewhere in the use of SoftwareSerial or a mixup of the RX/TX lines. (Possibly both). You could try your Arduino in tristate mode to make sure your RX/TX lines are correct when using hardware serial. Once that's settled, you can begin debugging your code. I tried changing the ports (TX and RX) in case I have connected them wrong but still no change. I will check again this with Hardware Serial. I cannot find any examples on how to use hardware seral? what do you mean? Here is the program documentation. Hardware serial means that you connect the serial lines of the xbee to "tx->1" and "rx<-0" (http://arduino.cc/en/Main/ArduinoBoardUno) (top right hand corner of the board) Hardware Serial does not work either. So where to check for the problem? Does the fact that they speak with the FTDI means that they are correclty configured or not? @ghostrider From your feedback, it seems that the Xbees are configured correctly. Instead of going through the xbee's perhaps you should try getting your program to work by connecting them directly (tx -> rx) and (rx -> tx). Once this works, I would put one arduino into tristate mode and hook your FTDI to the other one. Once you have at least one working across the Xbee swap it out for the other one. This will show whether or not both are working. Once you verified they both work separately, across the XBee, start adding components. it does not work even connecting them direclty. it should be pretty easy I do not get what is going on right now :/ @ghostrider This is the first thing you want to overcome. It is probably something trivial (it usually is for me) that takes two weeks to find. Validate your cables are correctly connected and your hardware is alright by putting the arduinos in tristate mode. See here for more. I finally added. Didn't change any code, but bought new wires and now it is ok. Thanks!! void loop() { unsigned char temp; = if (Serial.available() > 0){ temp = xbee.read(); Serial.print("Character received:"); Serial.println(temp,HEX); } try this code. I converted your int temp to unsigned char to handle MSB. It works for me. But I used Xbee series 2 and hardware serial. Anyway, data handling is maters. i know its kinda late, but maybe there still someone who in need for this solution at the moment. if (xbee.available()) { byte temp= xbee.read(); Serial.print(temp); } for this code here at the reciving part, i change serial.print(tempt) to serial.write(tempt). the reasons is its kinda display ASCII code when i use serial.print(variablesname), but when i use serial.write(variablesname) it display as it suppose to. can try it out if any of you still stuck at this prob.
20,755
https://en.wikipedia.org/wiki/John%20Hay%20Whitney
Wikipedia
Open Web
CC-By-SA
2,023
John Hay Whitney
https://en.wikipedia.org/w/index.php?title=John Hay Whitney&action=history
English
Spoken
3,131
4,971
John Hay Whitney (August 17, 1904 – February 8, 1982) was U.S. Ambassador to the United Kingdom, publisher of the New York Herald Tribune, and president of the Museum of Modern Art. He was a member of the Whitney family. Early life Whitney was born on August 17, 1904, in Ellsworth, Maine, Whitney was a descendant of John Whitney, a Puritan who settled in Massachusetts in 1635, as well as of William Bradford, who came over on the Mayflower. His father was Payne Whitney, and his grandfathers were William C. Whitney and John Hay, both presidential cabinet members. His mother was Helen Hay Whitney. The Whitneys' family mansion, Payne Whitney House on New York's Fifth Avenue, was around the corner from James B. Duke House, home of the founder of the American Tobacco Co., father of Doris Duke. Whitney's uncle, Oliver Hazard Payne, a business partner of John D. Rockefeller, arranged the funding for Duke to buy out his competitors. Jock Whitney attended Groton School, then Yale College. He joined Delta Kappa Epsilon fraternity (Phi chapter), as his father had. Whitney, his father, grandfather, and great-uncle were oarsmen at Yale, and his father was captain of the crew in 1898. He was a member of Scroll and Key. While at Yale, he inspired the coining of the term "crew cut" for the haircut favored by the rowing crew which still bears the name. After graduating in 1926, Whitney went to Oxford University, but the death of his father on May 25, 1927 necessitated his returning home. He inherited a trust fund of $20 million (approximately $343.9 million in 2023 dollars), and later inherited four times that amount from his mother. Career Business career In 1929, Whitney, despite his vast wealth, was a clerk at the firm of Lee, Higginson & Co where, through his boss, J.T. Claiborne, Jr., he met former Lee, Higginson clerk Langbourne Meade Williams, Jr., who had come to Claiborne for help in his efforts to gain control of Freeport Texas Co. Williams was a scion of a founding investment firm in the sulfur mining company. In 1929, the year after Whitney became one of the wealthiest men in America, through inheritance, Williams enlisted the help of Whitney's boss, who then enlisted Whitney's financial participation, in his efforts to oust founder and Chairman Eric P. Swenson, casting Whitney in the role of corporate raider before the term existed. Whitney was soon Freeport's biggest shareholder, enabling Williams to replace the chairman and his management team. Claiborne was made a vice-president; Williams became Freeport's president in 1933, and Whitney was appointed chairman of the board. In 1946, Whitney founded J.H. Whitney & Company, the oldest venture capital firm in the U.S., with Benno C. Schmidt, Sr.—who coined the term "venture capital"—with J. T. Claiborne as a partner. Whitney put up $10 million to finance entrepreneurs with business plans who were unwelcome at banks. Companies Whitney invested in included Spencer Chemical and Minute Maid. In 1958, while he was still ambassador to the United Kingdom, his company Whitney Communications Corp. bought the New York Herald Tribune, and was its publisher from 1961 to its closure in 1966. He was chairman of the International Herald Tribune from 1966 until his death. Whitney Communications also owned and operated other newspapers, magazines and broadcasting stations. Whitney's television stations were sold to Dun & Bradstreet in 1969. Theatre and motion pictures Whitney invested in several Broadway shows, including Peter Arno's 1931 revue Here Goes the Bride, a failure that cost him $100,000, but was more successful as one of the backers of Life with Father. An October 1934 Fortune article on the Technicolor Corporation noted Whitney's interest in pictures. He had met Technicolor head Herbert Kalmus at the Saratoga Race Course. In 1932, Technicolor achieved a breakthrough with its three-strip process. Merian C. Cooper of RKO Radio Pictures approached Whitney with the idea of investing in Technicolor. They joined forces and founded Pioneer Pictures in 1933, with a distribution deal with RKO to distribute Pioneer's films. Whitney and his cousin Cornelius Vanderbilt Whitney bought a 15% stake in Technicolor. Whitney was also the major investor in David O. Selznick's production company Selznick International Pictures, putting up $870,000 and serving as chairman of the board. He put up half the money to option Margaret Mitchell's Gone with the Wind for the Selznick film version, in which he then invested, and later in Rebecca (1940). Military career Whitney served in the United States Army Air Forces as an intelligence officer during World War II, assigned to the Office of Strategic Services. This is where he met his good friend and former leader of the CIA, Allen Dulles. He was taken prisoner by the Germans in southern France, but escaped when the train transporting him to a POW camp came under Allied fire. Thoroughbred horse racing Whitney inherited his family's love of horses, a predilection he shared with his sister, Joan Whitney Payson. Jock and his sister ran Greentree Stables in the U.S., owned by their mother. In 1928, he became the youngest member ever elected to The Jockey Club. Whitney and his first wife "Liz" raced horses both in the United States and in Europe. He owned Easter Hero who won the 1929 and 1930 editions of the Cheltenham Gold Cup. In the 1929 Grand National, his horse twisted a plate and was beaten by a nose at the finish. Although Whitney entered the Grand National annually, he never again came close to winning. The Whitneys entered four horses in the Kentucky Derby in the 1930s, "Stepenfetchit," which finished 3rd in 1932, "Overtime," which finished 5th in 1933, "Singing Wood," which finished 8th in 1934, and "Heather Broom," which finished 3rd in 1939. Jock Whitney was also an outstanding polo player, with a four-goal handicap, and it was as a sportsman that he made the cover of the March 27, 1933, issue of Time magazine. In 2015, Whitney was posthumously inducted to the National Museum of Racing's Hall of Fame as Pillar of the Turf. Political life Whitney was the major backer of Dwight D. Eisenhower and a member of the New York Young Republican Club. Eisenhower appointed him United States Ambassador to the United Kingdom, a post held sixty years earlier by Whitney's grandfather John Hay. Whitney played a major role in improving Anglo-American relations, which had been severely strained during the 1956 Suez Crisis, when Eisenhower demanded that the British, French and Israelis terminate their invasion of Egypt. Personal life In 1930, Whitney purchased the Llangollen estate as a bridal gift for his fiancée, the Pennsylvania socialite Mary Elizabeth "Liz" Altemus. It was a historic equestrian farm just outside Middleburg, Virginia. They were married on September 23, 1931. Although married to Altemus, Whitney was romantically linked to Tallulah Bankhead, Joan Bennett, Paulette Goddard and Joan Crawford. Clark Gable and Carole Lombard met at one of Whitney's parties. In the early 1930s, Jock Whitney began an affair with Nina Gore Vidal; simultaneously, his wife had an affair with Nina Vidal's husband Eugene Vidal. The couple divorced in 1940, but Liz Whitney remained at Llangollen for the rest of her life, becoming an internationally renowned horse breeder and a member of the Virginia Thoroughbred Association Hall of Fame. On March 1, 1942, he married Betsey Cushing Roosevelt Whitney, ex-wife of James Roosevelt, son of Franklin D. Roosevelt, and adopted her two daughters: Kate Roosevelt Whitney Sara Roosevelt Whitney (born March 13, 1932) Whitney met Fred Astaire in New York City while the former was a student at Yale University and they became lifelong friends, sharing a passion for horse racing. Whitney became a major investor in two of Astaire's Broadway stage vehicles, The Band Wagon (1930) and Gay Divorce (1932), and played a crucial role in securing for Astaire a contract with RKO Pictures in 1933, using his contacts with Merion C. Cooper; both men were board members of Pan American Airways whose planes were prominently featured in Astaire's breakthrough film with Ginger Rogers: Flying Down to Rio (1933). During the 1970s, Whitney was listed as one of the ten wealthiest men in the world. The residences at his disposal over the years included an estate on Long Island; an Atlantic Beach, NY beach house; Greenwood Plantation in Georgia; a townhouse and an elegant apartment in Manhattan; a large summer house on Fishers Island, near New London, Connecticut; a 12-room house in Saratoga Springs, which the Whitneys used when they attended horse races; a golfing cottage in Augusta, Georgia, where he was a member of the Augusta National Golf Club; and a spacious house Cherry Hill in Virginia Water, Surrey, England, near the Ascot Racecourse. Mr. Whitney also owned an estate in Aiken, South Carolina, which he considered his "retirement" home and where he hoped to spend his final days. Whitney died on February 8, 1982, at North Shore Hospital, Manhasset, Long Island, after a long illness. Philanthropy Payne Whitney made substantial gifts to Yale, to the New York Presbyterian Hospital, and the New York Public Library. After his father's death, the family built the Payne Whitney Gymnasium at Yale in his honor. The family also financed Payne Whitney Psychiatric Clinic at New York Presbyterian Hospital in 1932. Whitney created the John Hay Whitney Foundation for educational projects in 1946. The foundation provided fellowships to the racially and culturally deprived. He became a major contributor to Yale University, where he served as a Fellow of the corporation. In 1951, he and his wife Betsey Cushing Whitney donated land from their "Greentree" estate in Manhasset, New York toward the building of North Shore Hospital. Currently called North Shore University Hospital, it is the flagship hospital of the 3rd largest not-for-profit secular healthcare system in the United States, the North Shore-Long Island Jewish Health System. In 1953, Whitney received The Hundred Year Association of New York's Gold Medal Award "in recognition of outstanding contributions to the City of New York." In the late 1960s/early 1970's John Hay Whitney donated two small parcels of land in Manhasset to the County of Nassau and to the Manhasset-Lakeville Volunteer Fire Department. The Nassau County parcel was the new home for the 6th Police Precinct of the Nassau County Police, located at the S/E intersection of Community Drive and East Community Drive. Just east of the 6th pct, at 2 E Community Dr., the M-LFD parcel was the new home of Fire Company #2 of the M-LFD, where John Hay Whitney was voted in by the membership of Company number two as an Honorary Member of the company. Museum of Modern Art In 1930 Whitney was elected to the board of trustees of the Museum of Modern Art in New York City, and named President of the MoMA Film Library in 1935. In 1941 he succeeded Nelson A. Rockefeller as President of MoMA. In 1946 he succeeded Stephen C. Clark as chairman of the board of trustees Art collection When Whitney moved to England as United States ambassador, he took a number of his favourite artworks with him to enjoy during his posting. Before his return to the US, he agreed for the first time to loan part of his collection for the public to see. He provided the Tate Gallery with 56 paintings from the collection in England and specially brought in a further 11 paintings from the US. The exhibition, the John Hay Whitney Collection, ran from 16 December 1960 to 29 January 1961 In 1983 the National Gallery of Art, Washington held an exhibition of the John Hay Whitney Collection with paintings loaned by Whitney's wife, The Museum of Modern Art and Yale University Art Gallery Among the paintings in his collection, Jock Whitney's prized possession was the Bal au moulin de la Galette painted in 1876 by the French artist Pierre-Auguste Renoir. In 1990, his widow put the painting up for auction with Sotheby's, New York and it sold for US$78 million to Japanese businessman, Ryoei Saito. Whitney's widow donated a number of paintings from his collection to the Greentree Foundation. One of those paintings by Pablo Picasso, Garçon à la pipe was auctioned by Sotheby's in May 2004 for $104 million The following works have been publicly exhibited or sold from the former collection of John Hay Whitney. Albert Marquet, The Beach at Trouville Alfred de Dreux, Cheval Blanc Effraye Par L'orage Alfred de Dreux, Moorish Groom André Derain, Charing Cross Bridge André Derain, Collioure Landscape Balthus (Balthasar Klossowski): Le Salon Bazille, Jean-Frédéric: Pots De Fleurs Bernard Perlin, Vacant Lots Berthe Morisot, Hide and Seek (Cache-Cache) Camille Pissarro, Jeanne with Flowers Camille Pissarro, Pommes En Fleurs, Temps Gris, Eragny Claude Monet, Bateaux Sur Le Galet Claude Monet, Camille on the Beach Edgar Degas, Avant la Course Edgar Degas, Cheval de Selle Edgar Degas, Chevaux de Course Edgar Degas, La Promenade Des Chevaux Edgar Degas, Le faux Depart Edgar Degas, Le faux Depart (drawing) Edgar Degas, Self Portrait Édouard Manet, Les Courses au Bois de Bologne Édouard Manet, Woman in a Decollete Gown Édouard Vuillard, An Artist Édouard Vuillard, Demoiselle en Rouge Édouard Vuillard, Embroiders near a Window (Tapestry) Édouard Vuillard, La Mère De Vuillard En Profil Édouard Vuillard, Portrait of the Artist's Mother Edward Hopper, Cape Cod Evening Eugène Boudin, Hollyhocks Eugène Boudin, Roses George Bellows, Club Night George Bellows, Crowd at Polo George Bellows, Introducing John L. Sullivan Georges Braque, Bouteiile et Verre Georges Braque, Les Cabines Georges Braque, The Port of La Ciotat Georges Seurat, Grandcamp, Evening Georges Seurat, The Island of La Grande Jatte Gustave Courbet, The Hound Henri de Toulouse-Lautrec, Marcelle Lender Dancing the Bolero in "Chilperic" Henri Fantin-Latour, Roses Henri Fantin-Latour, Vase of Flowers Henri Matisse, Luxe, Calme et Volupte Henri Matisse, Nature Morte au Purro II Henri Matisse, Open Window, Collioure Henri Rousseau, L'Heureux Quatuor (the Happy Quartet) Henri Rousseau, Tropical Forest with Monkeys Henri-Edmond Cross, Coast near Antibes Henri-Edmond Cross, The Grape Harvest Honoré Daumier, Joueurs Des Cartes James McNeill Whistler, Wapping on Thames Jean-Baptiste-Camille Corot, Chaumieres Et Moulins Au Bord D'un Torrent (Morvan Ou Auvergne) Jean-Baptiste-Siméon Chardin, Still Life John Constable, View of the back of a terrace of houses at Hampstead, with an elder tree John Singer Sargent, Robert Louis Stevenson John Singer Sargent, Venetian Courtyard Kees van Dongen, Saida Maurice de Vlaminck, Tugboat on the Seine, Chatou Maurice Utrillo, The Rue des Abbesses, Montmartre Odilon Redon, Fleurs Dans Un Vase Vert Pablo Picasso, Ace of Clubs Pablo Picasso, Garçon à la pipe Le jeune Apprenti Pablo Picasso, Head of a Sleeping Woman Pablo Picasso, Homme assis (seated man) Pablo Picasso, Plant de Tomate Pablo Picasso, Self Portrait Pablo Picasso, Still Life (Le Journal) Pablo Picasso, Still Life with a Bottle of Maraschino Pablo Picasso, Still Life with Fruit and Glass Pablo Picasso, Still Life with vase, Gourd and Fruit Paul Cézanne, Route Tournante a Montgeroult Paul Cézanne, Still Life With Curtain, Pitcher and Bowl of Fruit Paul Gauguin, Parau-Parau Paul Signac, Collioure Le Mohamed-El-Sadok Paul Signac, Fishing Boats in the Sunset Paul Signac, The Yawl Pierre-Auguste Renoir, La Foret de Marly Pierre-Auguste Renoir, La Yole Pierre-Auguste Renoir, Liseuse Pierre-Auguste Renoir, Bal du moulin de la Galette Raoul Dufy, Beach at Saint-Adresse Raoul Dufy, Fete a Sainte-Adresse Raoul Dufy, Jockeys et Turfistes À Epsom Raoul Dufy, Sailboats at Le Havre Roger de La Fresnaye, Still Life, Coffee, Pot and Melon Rufino Tamayo, Women Sir Alfred Munnings, Before the Start Sir Alfred Munnings, Leaving The Paddock At Epsom Downs Sir Alfred Munnings, The Red Prince Mare Sir Alfred Munnings, The Winner Sir John Lavery, Weighing in at Sandown Park Théo van Rysselberghe, Port Cette Théodore Géricault, Cheval de Napoleon Théodore Géricault, Officier de Cavalerie à Cheval Théodore Rousseau, The Isle of Capri Thomas Eakins, Baby at Play Thomas Eakins, The Oarsmen Vincent van Gogh, Les Oliviers, St Remy Vincent van Gogh, Self Portrait William Blake, The Good and Evil Angels Struggling For Possession of a Child Winslow Homer, Woodshopper in the Adirondacks Fosburgh, Daisies Sources: John Hay Whitney Collection (Catalogue), Tate Gallery, 1960, John Hay Whitney Collection (Catalogue), National Gallery of Art, 1983, Sotheby's Catalogue, auction 10 May 1999, Sotheby's Catalogue, auction 5 May 2004 Anecdotes Whitney gave Fred Astaire a pair of big-wheel roller skates as a present. A few years later roller skating was one of his most important dance numbers on film. Whitney and Jimmy Altemus provided the lyrics for a sing composed by Fred Astaire, "Tappin' the Time." President Dwight D. Eisenhower took pains to transmit to Ambassador Whitney in London, by telegram, the first round golf scores of the Masters Tournament at the Augusta National Golf Club on 5 April 1957. Ambassador Whitney had a very demanding and exhausting scheduled but was not fazed by it. After having been to three or four receptions one day, his wife was not surprised to find their chauffeur, groggy from his rounds, dozing on the back seat of their limousine and the Ambassador driving the car. Whitney: "I have just had a heart attack and am on a very strict diet. However if you will twist my arm a little, I will probably give in and we will consume a number of very large dry martinis" William S. Paley (the legendary founder of CBS), who was Whitney's brother in law, had a gentle rivalry with Whitney. Once while watching television with Whitney at Greentree, Paley wanted to change the channel. 'Where's your clicker?' Paley asked, figuring Jock would have a remote-control switch at his fingertips. Jock calmly pressed a buzzer, and his butler walked up to the TV set to make the switch. The White House Is Nice, But It's No Greentree! E. J. Kahn, Mr. Whitney's biographer, reported that one of his daughters, Kate, once took her own children on a tour of the White House. Mr. Kahn wrote, After inspecting it, they pronounced it nice enough but hardly on a par with Greentree. [Greentree was the more prestigious of his Long Island residences'] References Sources External links Philadelphia Inquirer Obituary 9 Feb 1982 Manhasset-Lakeville Fire Department 1904 births 1982 deaths 20th-century American newspaper publishers (people) Ambassadors of the United States to the United Kingdom American art collectors American escapees American prisoners of war in World War II Philanthropists from New York (state) American socialites United States Army Air Forces personnel of World War II Elijah Parish Lovejoy Award recipients New York Herald Tribune people People from Ellsworth, Maine Whitney family World War II prisoners of war held by Germany Yale College alumni Groton School alumni Private equity and venture capital investors United States Army Air Forces officers Virginia Republicans New York (state) Republicans People from Manhasset, New York People from Middleburg, Virginia Escapees from German detention People of the Office of Strategic Services 20th-century American diplomats
50,934
https://ce.wikipedia.org/wiki/%2815395%29%20%D0%A0%D1%83%D0%BA%D0%BB
Wikipedia
Open Web
CC-By-SA
2,023
(15395) Рукл
https://ce.wikipedia.org/w/index.php?title=(15395) Рукл&action=history
Chechen
Spoken
134
354
(15395) Рукл — Мелхан системан коьрта асанан астероид. Истори ДӀайиллина 1997 шеран 21 октябрехь П. Правец цӀе йолу Ӏилманчо Ондржеёв обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «1997 UV» саналган. Хьосташ Lutz D. Schmadel. Dictionary of Minor Planet Names. — Fifth Revised and Enlarged Edition. — B., Heidelberg, N. Y.: Springer, 2003. — 992 p. — ISBN 3-540-00238-3. Lutz D. Schmadel. Dictionary of Minor Planet Names. — Springer Science & Business Media, 2012-06-10. — 1458 с. — ISBN 9783642297182 Chapman, C. R., Morrison, D., & Zellner, B. Surface properties of asteroids: A synthesis of polarimetry, radiometry, and spectrophotometry// Icarus : journal. — Elsevier, 1975. — Vol. 25. — P. 104—130. Kerrod, Robin. Asteroids, Comets, and Meteors (неопр.). — Lerner Publications Co., 2000. — ISBN 0585317631. Билгалдахарш Хьажа иштта (15396) Говардмур Коьрта асанан астероидаш Астероидаш абатца
20,692
https://lt.wikipedia.org/wiki/Tosnas
Wikipedia
Open Web
CC-By-SA
2,023
Tosnas
https://lt.wikipedia.org/w/index.php?title=Tosnas&action=history
Lithuanian
Spoken
77
228
Tosnas ) – miestas Rusijoje, netoli Sankt Peterburgo, prie Tosnos upės. Rajono centras. Istorija 1500 m. pirmasis gyvenvietės paminėjimas rašytiniuose šaltiniuose. Anksčiau vadintas Tosna, bei Jam Tosna. 1617–1700 m. gyvenvietė priklausė Švedijai. Atiteko švedams pagal Stolbovo taikos sutartį. Nuo 1700 m. priklausė Rusijai. Miesto teisės suteiktos 1963 m. Sportas FK Tosno (buvęs futbolo klubas), savo laiku rungtyniavęs Rusijos Premjer lygoje ir pasiekęs Rusijos futbolo taurės finalą. Nuorodos Apie miestą enciklopedijoje „Mano miestas“ («Мой город») Leningrado srities miestai
48,771
https://ce.wikipedia.org/wiki/%2816606%29%201993%20FH11
Wikipedia
Open Web
CC-By-SA
2,023
(16606) 1993 FH11
https://ce.wikipedia.org/w/index.php?title=(16606) 1993 FH11&action=history
Chechen
Spoken
136
353
(16606) 1993 FH11 — Мелхан системан коьрта асанан астероид. Истори ДӀайиллина 1993 шеран 17 мартехь UESAC проект цӀе йолу Ӏилманчо Ла-Силья обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «1993 FH11» саналган. Хьосташ Lutz D. Schmadel. Dictionary of Minor Planet Names. — Fifth Revised and Enlarged Edition. — B., Heidelberg, N. Y.: Springer, 2003. — 992 p. — ISBN 3-540-00238-3. Lutz D. Schmadel. Dictionary of Minor Planet Names. — Springer Science & Business Media, 2012-06-10. — 1458 с. — ISBN 9783642297182 Chapman, C. R., Morrison, D., & Zellner, B. Surface properties of asteroids: A synthesis of polarimetry, radiometry, and spectrophotometry// Icarus : journal. — Elsevier, 1975. — Vol. 25. — P. 104—130. Kerrod, Robin. Asteroids, Comets, and Meteors (неопр.). — Lerner Publications Co., 2000. — ISBN 0585317631. Билгалдахарш Хьажа иштта (16607) 1993 FN12 Коьрта асанан астероидаш Астероидаш абатца
10,173
https://stackoverflow.com/questions/46941175
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
John Hanley, Lahav, Michael - sqlbot, https://stackoverflow.com/users/1695906, https://stackoverflow.com/users/2627137, https://stackoverflow.com/users/5057543, https://stackoverflow.com/users/8016720, wandering-geek
English
Spoken
368
554
http:// website not loading for old users I recently moved a website from https://www.ezacu.com to http://www.ezacu.com and I'm finding that the website loads for people who have never visited the https version, but not for people that have. I believe that this is either because their browsers keep autocorrecting http to https (since it used to be https) or because their browser is trying to use a cached version. Im not sure how to find out or how to fix the issue, but it is especially difficult for me because it works on my computer/phone; The issue is with other users. I am hosting the website on amazon S3 Just curious to know. Why the downgrade from https to http? I want to be able to use an amazon EC2 server as my backend, which was more difficult when I was using https Did you ever have redirects from http to https for your website? If true, then some browsers (Google Chrome) will remember the previous redirect. Note: the trend today is to stop using HTTP and start pushing users to HTTPS. Google is one of the leaders on this. https://motherboard.vice.com/en_us/article/xygdxq/google-will-soon-shame-all-websites-that-are-unencrypted-chrome-https @JohnHanley The problem was I switched to S3 because it ended up being a lot easier to cofigure S3 supports HTTPS. @JohnHanley not with your own domain name. That requires CloudFront in front of S3. @Michael, good point. I missed the hosting on S3 part. So Apparently everyone's browser is autocorrecting to https, which is something I can't easily overcome, right? The simple solution is to create a CloudFront distribution with your domain name as its Alternate Domain Name, attach a free SSL cert from Amazon Certificate Manager, type the web site hosting endpoint from your bucket as the Origin Domain Name (don't select the bucket from the drop-down list -- that won't enable the web site hosting features of S3), then point your DNS to CloudFront. When you use CloudFront with S3, you pay bandwidth charges to CloudFront instead of to S3, so the cost difference is negligible and in certain cases, bandwidth can actually cost slightly less. There isn't a way to convince browsers not to try to use HTTPS once they believe it's available.
46,647
https://ja.stackoverflow.com/questions/83768
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
Hunt - JPN, https://ja.stackoverflow.com/users/49184
Norwegian Nynorsk
Spoken
285
1,423
Javascriptでフォーム調整プログラム(その他を選択時に追加の選択事項を表示、選択させる)を書きたいです プログラムを最近独学で始めたのですが、インターネットで調べながらやってみたい動作が なかなか上手く動作しません。 下のプログラム単体では動くのですが、 elements、len、sele_valを『elements1、elements2、elements3』といった形で増やす  と動作しなくなってしまいます。 動かしたいプログラムとして、 ・『その他』を選択した時のみ、『その他詳細』を選択できるようにしたい。 ・同様の動作が1つのフォームで複数箇所あるため、まとめて書きたい なのですが、どうやってもうまく動きません。 下記、一つだけ書くと動くコードになります。 何卒、ご指導のほどよろしくお願いいたします。 function controlselect() { let elements = document.getElementsByClassName("disselect"); let len = elements.length; var sele_val = document.getElementById("other").value; if(sele_val === "その他") { for (let i = 0; i < len; i++){ elements.item(i).removeAttribute("disabled"); } }else { for (let i = 0; i < len; i++){ elements.item(i).setAttribute("disabled", true); } } } 次のような形で実現できないでしょうか: // 引数で要素のグループを指定する function controlselect(target) { let elements = target.getElementsByClassName("disselect"); let len = elements.length; // id は使えないので class に変更する var sele_val = target.getElementsByClassName("other")[0].value; if (sele_val === "その他") { for (let i = 0; i < len; i++) { elements.item(i).removeAttribute("disabled"); } } else { for (let i = 0; i < len; i++) { elements.item(i).setAttribute("disabled", true); } } } 実装例: function controlselect(target) { let elements = target.getElementsByClassName("disselect"); let len = elements.length; var sele_val = target.getElementsByClassName("other")[0].value; if (sele_val === "その他") { for (let i = 0; i < len; i++) { elements.item(i).removeAttribute("disabled"); } } else { for (let i = 0; i < len; i++) { elements.item(i).setAttribute("disabled", true); } } } document.addEventListener("DOMContentLoaded", () => { const targets = ["elements1", "elements2", "elements3"]; for (let t of targets) { const div = document.getElementById(t); div .getElementsByClassName("other")[0] .addEventListener("change", () => controlselect(div)); controlselect(div); } }); <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8" /> <title>title</title> </head> <body> <div id="elements1"> <div> <select class="other"> <option value="a">A</option> <option value="b">B</option> <option value="その他">OTHER</option> </select> </div> <div> <input type="text" class="disselect" /> <input type="text" class="disselect" /> </div> </div> <div id="elements2"> <div> <select class="other"> <option value="a">A</option> <option value="b">B</option> <option value="その他">OTHER</option> </select> </div> <div> <input type="text" class="disselect" /> <input type="text" class="disselect" /> </div> </div> <div id="elements3"> <div> <select class="other"> <option value="a">A</option> <option value="b">B</option> <option value="その他">OTHER</option> </select> </div> <div> <input type="text" class="disselect" /> <input type="text" class="disselect" /> </div> </div> </body> </html> お返事が遅くなり、大変申し訳ございません。 試してみたところ、イメージどおりの動作しました。 まだまだわからないことばかりで、勉強する身ですがKazuyukiさんのように教える立場までの技術をつけれるようがんばります。 ありがとうございました!
6,754
https://stats.stackexchange.com/questions/558273
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
https://stats.stackexchange.com/users/11852, https://stats.stackexchange.com/users/342989, https://stats.stackexchange.com/users/919, unbutu, usεr11852, whuber
English
Spoken
592
838
Is there a clustering method that allows me to indicate the number of points desired per cluster? I've looked into the various clustering algorithms and realize that specifying an exact cluster size up front sort of defeats the purpose of what clustering is intended to do - identify natural patterns in data. Imposing a size constraint up front might not be something anyone would want to do. However, I do have a need for a method that allows me to specify the exact number of points allowed per cluster. Is there such an algorithm available or will I unfortunately have to try to write my own? The solution I posted at https://gis.stackexchange.com/a/31879/664 will get you very close: it guarantees the numbers of points in the clusters lie between specified bounds. Relatively minor modifications to the code in that post would be one way of solving your problem. @whuber I'll have a look. Thanks! Welcome to CV.SE. Interesting and not too common question (+1), unfortunately you hit a relatively rare clustering sub-task, I haven't seen something authoritative in Python or R, please see my answer for further details. @whuber: That is a fun application indeed. I suspect that if you made a gif showing the successive splits, it would be super cool. :) @usεr11852 That's a great suggestion. I am leery of posting animated gifs here on CV, though, because I have found no way to control them: they annoyingly keep cycling. Being some specific here, the question is not strictly speaking about clustering (i.e. discover underlying data structures) but rather for partitioning with general similarity constraints, to that extent this task is often referred at as balanced clustering. Finally to help one going forward terminology-wise: we care for "cluster cardinality", i.e. the number of elements in the cluster. An approximate (almost) out-of-the-box solution can be to use $k$-means with some minor modifications; the ELKI data mining software has a great tutorial on how to perform same-size $k$-means variation, it contains example in Java. Without going into too much detail, we initialise our clustering our $k$-means variant with $k=\frac{n}{p}$ means/centroids, $p$ being the expected cluster cardinality. Then assign up to $p$ elements per cluster and iterate this procedure forward. This is essentially an E-M procedure same as the one done in "vanilla" $k$-means but with constraints during the $E$ step (Expectation - label assignment). The link present the whole procedure in with great care. The above being said, the formal treatment of the problem is not trivial, there is a somewhat sparse technical work on the subject. Basically we need to reformulate this problem as an optimisation task with certain discrete constraints. For starters I would recommend looking at: Balanced K-Means for Clustering (2014) by Malinen and Fränti and Balanced Clustering: A Uniform Model and Fast Algorithm (2019) by Lin et al. Unfortunately I have not seen any curated Python implementations on any of these papers; you might want to directly reach out to the authors. @user11852 Thank you for the insightful response. "the formal treatment of the problem is not trivial, there is a somewhat sparse technical work on the subject" <-- That certainly appears to be the case. I'll check out the resources you provided and hope a Python implementation emerges! Cool, I am glad I could help. @Eyal Shulman's python solution provides a K-means method that allows one to define cluster cardinality. Nice... (+1) (For the record, that function is the initial step of what ELKI methodology describes, we need to do a few more to ensure some slight stability)
17,731
https://es.wikipedia.org/wiki/Tumba%20del%20Emir%20Al%C3%AD
Wikipedia
Open Web
CC-By-SA
2,023
Tumba del Emir Alí
https://es.wikipedia.org/w/index.php?title=Tumba del Emir Alí&action=history
Spanish
Spoken
139
270
La tumba del emir Alí (Imamzadeh-ye Alas Ebn-y Hamze) es un mausoleo y mezquita situada en Shiraz, Irán. En este sitio yacen los restos de Ali Ibn Hamze, nieto sah de Cheragh. El santuario actual se construyó en el siglo XIX después de los daños sufridos por los terremotos durante los siglos. La particularidad de este lugar es su cúpula con forma cebolla, típica del estilo arquitectónico de Shiraz y las decoraciones de los interiores a base de fragmentos de espejos venecianos, lo que dota al interior de una atmósfera distinta. En el patio del santuario se encuentran numerosas tumbas de familias que enterraron a sus allegados a cambio de importantes sumas de dinero. Galería de imágenes Bibliografía Enlaces externos Mezquitas de Irán con cúpula Shiraz Mausoleos de Irán Arquitectura de Irán del siglo XIX Mezquitas del siglo XIX
29,878
https://fr.wikipedia.org/wiki/Lorenzo%20Ottoni
Wikipedia
Open Web
CC-By-SA
2,023
Lorenzo Ottoni
https://fr.wikipedia.org/w/index.php?title=Lorenzo Ottoni&action=history
French
Spoken
320
550
Lorenzo Ottoni, aussi connu comme Lorenzo Ottone ou Lorenzone (1648-1736), est un sculpteur italien qui a travaillé pour la papauté et diverses maisons nobles de la renaissance italienne. Biographie Lorenzo Ottoni est né à Rome en 1648 et a passé la majorité de sa vie dans cette ville. Il s'est formé auprès de  Ercole Ferrata, a ouvert par la suite son propre atelier et a compté Bernardino Cametti parmi ses élèves. Vu le nombre de ses  assistants, il était aussi en mesure de prendre des commandes à l'extérieur de Rome. Il est surtout connu pour les sculptures religieuses  Baroques de la Contre-Réforme lors de la rénovation de Rome et a créé les portraits de hauts responsables de l'église de son temps.  Lorenzo Ottoni reçoit de nombreuses commandes de la puissante famille Barberini  pendant les années 1670 et 1680 dont les portraits du Cardinal Francesco Barberini, le Cardinal Antonio Barberini , et leur neveu Maffeo Barberini, ainsi que des bustes des papes Urbain VIII et Alexandre VIII. Entre les années 1690 et 1718, à l'aide de bronze et stuc, il a contribué à la décoration de la Chapelle du Baptisterium, le transept et les chapelles de la Basilique Saint-Pierre, la chapelle de Sant'Ignazio de l'église du Gesù et la Basilique Saint-Jean-de-Latran. Il a également sculpté deux putti  en marbre blanc qui font partie du monument de la reine Christine de Suède dans la Basilique Saint-Pierre. Lorenzo Ottoni a été élu en 1691 à l'Accademia di San Luca à Rome et ensuite à la Académie pontificale des beaux-arts et des lettres des virtuoses au Panthéon,  deux des plus prestigieux groupes d'artistes à Rome. Un buste du Cardinal Stefano Agostini par Lorenzo Ottoni est conservé à la Pinacoteca Civica de Forlì. Images Références Liens externes Naissance en novembre 1658 Naissance à Rome Sculpteur italien du XVIIe siècle Sculpteur italien du XVIIIe siècle Décès en septembre 1736 Décès à Rome Décès à 77 ans
2,124
https://fr.wikipedia.org/wiki/Jean-Antoine%20Constantin
Wikipedia
Open Web
CC-By-SA
2,023
Jean-Antoine Constantin
https://fr.wikipedia.org/w/index.php?title=Jean-Antoine Constantin&action=history
French
Spoken
988
1,804
Jean-Antoine Constantin, plus connu sous le nom de Constantin d'Aix, né le à Marseille et mort le à Aix-en-Provence, est un peintre français, élève de David de Marseille. Directeur de l'école de dessin d'Aix-en-Provence, il est considéré comme l'un des pères de la peinture provençale. Il est considéré par certains critiques d'art soit comme un petit maître d'Ancien Régime soit comme un préromantique inspiré par Joseph Vernet et Salvator Rosa. Il est en tout cas un précurseur de l'œuvre de son élève François Marius Granet. Biographie Né au quartier de la Loubière, à Marseille, près du quartier de Bonneveine et de Notre-Dame du Mont, il est remarqué encore enfant par un peintre sur émail qui le fait entrer dans une fabrique de porcelaine appartenant à Gaspard Robert au quartier de Saint-Jean du Désert. Mais il n'y reste pas longtemps et part étudier à l’Académie de Peinture de Marseille sous la férule de Jean-Joseph Kapeller (1702-1790), de David de Marseille et Jean-Baptiste Giry. Il se fait alors remarquer pour la qualité de ses dessins par un amateur d'art originaire d'Aix-en-Provence qui le faire venir avec lui. Ainsi, bien que né à Marseille et y ayant fait ses études, c’est à Aix-en-Provence qu’il mènera toute sa carrière de peintre. Rome puis Aix-en-Provence Après ses études, il s’établit décorateur dans une fabrique de faïences de Clérissy. Puis il prend la direction de la ville de Rome pour un séjour de six années que lui offre son mécène aixois, M. Perron, négociant de son état, et grâce à l'aide de trois autres amoureux des arts : Grégoire, de Sideron, Boyer de Fonscolombe et de Montvalon. Dans un premier temps, il s'adonne presque exclusivement à la peinture, mais y renonce pour se consacrer entièrement au dessin. Son séjour à Rome devra cesser au bout de trois ans en raison de fièvres contractés sur place. Rentré d'Italie, il s’établit dans la ville d'Aix-en-Provence, s'y marie, et y devient peintre, réalisant une quantité impressionnante de paysages aixois et provençaux, généralement peints sur le motif. C’est ainsi qu’il collectionne monuments et paysages aussi variés que la ville de Digne, la Fontaine de Vaucluse ou la rade de Marseille. École de dessin d’Aix En 1786, il devient le troisième directeur de l’école de dessin d’Aix, succédant au peintre Claude Arnulphy. La Révolution met un terme temporaire à cette institution et Constantin perd son emploi. En 1807, il part pour Digne où il exercera la fonction de professeur de l’école de dessin pendant six années. Il rentre à Aix en 1813 où il profite de l’appui financier de son élève, François Marius Granet, qui lui accorde une pension de 150 francs et il accepte le modeste poste de professeur adjoint à l'école de dessin d'Aix au titre de « professeur de paysage ». En 1817, il reçoit une médaille d'or à l'Exposition de Paris et, jusqu'en 1827, envoie régulièrement des toiles au musée du Louvre où elles font sensation. Il est nommé chevalier de la Légion d'honneur en 1833. Il réalise également de nombreuses gravures à l'eau forte. Sa carrière est entravée par une santé défaillante. En 1823, il se plaint notamment de ses difficultés à achever une commande : « Mes forces me manquent, j'ai mon bras droit attaqué par des douleurs, ainsi je crois ma carrière finie. » Ajoutés à ses problèmes de santé des soucis financiers. C’est pauvre qu’il meurt dans sa ville d’adoption, en , à l’âge avancé de 88 ans. Il est enterré au cimetière Saint-Pierre d'Aix-en-Provence. Influence Jean-Antoine Constantin est considéré comme l’un des pères de la peinture provençale. De nombreux peintres de Provence lui doivent leurs tableaux de paysages, entre autres François Marius Granet, Auguste de Forbin, Louis Mathurin Clérian ou Émile Loubon. Vers 1830, Granet, parlant de Constantin, dit à Forbin : . En 1860, Adolphe Meyer écrit au sujet de Constantin dans Le Plutarque marseillais : « Bien des gens m'ont dit qu'ils avaient l'habitude de rencontrer un homme petit, assez pauvrement vêtu, d'une physionomie douce et calme, traversant curieusement les champs et allant, selon son caprice, s'asseoir à quelque ombre pour dessiner l'un des nombreux sites aux environs d'Aix. Tout le monde connaissait ce bonhomme qui, souvent, demeurait la journée devant le même point de vue, dînant d'un morceau de pain et de quelques radis, allant boire au premier ruisseau clair qu'il entendait jaser. » Œuvres Peintures : La Fontaine de Vaucluse, musée Calvet (Avignon). Une petite Sainte-Victoire, musée Granet (Aix-en-Provence). Paysage vallonné avec saint Jean-Baptiste et l'agneau, musée Magnin (Dijon) Vue du château de La Barben, possédé par la maison de Forbin depuis Palamède, musée du château de Fontainebleau (Fontainebleau) Bord de rivière, musée de Marseille. L’Orage, musée de Marseille. Monastère, musée des beaux arts, Marseille. Dessins sépia : Rade de Marseille, musée du Louvre. Vue de Moustiers, musée du Louvre. Dessins à la plume : Lancement d’une montgolfière à Aix, 1784, musée Longchamp (Marseille). Lavis d’encre de Chine : Vue de Digne, musée de Digne. Prise du Couvent de la Sainte-Enfance, musée de Digne. Vue de la ville d’Aix, musée du Louvre. Vue de Marseille, musée du Louvre. Bord de rivière, musée Cantini (Marseille). Vue de Salon, musée Cantini (Marseille). Les Ermites, musée Cantini (Marseille). L’Aumône devant l’église, musée Cantini (Marseille). Neuf scènes paysannes ou marines d’Italie, musée Granet (Aix-en-Provence). Panneau contenant neuf scènes villageoises d’Italie, musée Granet (Aix-en-Provence). Aquarelle : Paysage et Guerriers, musée Cantini (Marseille). Lithographie : Vue de Marseille ; Paris, Rittner et Goupil (v. 1830), bibliothèque municipale de Marseille. Notes et références Annexes Articles connexes François Marius Granet Claude Arnulphy Liens externes Dessin à la pierre noire et au lavis d’encre sépia. Vue de la Fontaine de Vaucluse, musée-bibliothèque Pétrarque, La Fontaine-de-Vaucluse. Association de généalogie des Bouches-du-Rhône, Jean-Antoine Constantin Peintre français du XVIIIe siècle Chevalier de la Légion d'honneur Peintre français du XIXe siècle Naissance en janvier 1756 Naissance à Marseille Décès en janvier 1844 Décès à Aix-en-Provence Décès à 87 ans
13,964
https://superuser.com/questions/962065
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
MonkeyZeus, Rhonda, https://superuser.com/users/259665, https://superuser.com/users/458064
English
Spoken
215
352
Dancing .gif in slideshow "smears" the image in OpenOffice Impress I'm creating slides which includes a dancing .gif Unfortunately when I play the slideshow, it leaves an impression of the image in the background, like this How to fix this??? This .gif render properly in SlideShow mode Does this happen with all motion GIFs or just this dancing one in particular? Also, what is OpenOffice Libre? I could have sworn that OpenOffice and LibreOffice are two distinct applications. @MonkeyZeus I changed the title, it's OpenOffice Impress. Other motion .gifs are fine, will add to question. It looks like there is an issue with the first GIF because the white space is actually alpha-transparency; might be a bug with OpenOffice's rendering engine not clearing the previous frame and showing the new frame on top of it. I would recommend seeing if you can edit the GIF to hard-code a white background to each frame so that OpenOffice cannot suffer from the transparency side-effect. If you change the background color of your slide to yellow then this effect will become more obvious. @MonkeyZeus I saved as .ppt and now it works! Nice! Good luck with the rest of the presentation! @MonkeyZeus Thank you. Actually, I am troubleshooting one more issue, perhaps you may have some ideas, http://superuser.com/questions/961734/how-to-embed-not-insert-mp3-in-openoffice-impress
39,996
https://en.wikipedia.org/wiki/List%20of%20Boston%20Red%20Sox%20captains
Wikipedia
Open Web
CC-By-SA
2,023
List of Boston Red Sox captains
https://en.wikipedia.org/w/index.php?title=List of Boston Red Sox captains&action=history
English
Spoken
211
289
The Boston Red Sox, a professional baseball franchise in Major League Baseball (MLB), has given the title of captain to select players since the team's inaugural season as a member of the American League in 1901 (the team was known as the Boston Americans through the 1907 season). For various seasons during the team's history, the position has been vacant; while in early baseball a captain was responsible for many of the functions now assumed by managers and coaches, the title is purely honorary in modern professional baseball. Since the end of World War II, only three players have served as captain of the Red Sox. The most recent was catcher Jason Varitek, who was captain during the 2005–2011 seasons, and wore a distinctive "C" on the left side of his jersey, similar to captains in the National Hockey League. Captains The history of Red Sox captains was researched by baseball historian Howard W. Rosenberg in 2004. The Red Sox front office contacted Rosenberg in advance of Jason Varitek being named captain, after learning that Rosenberg, author of a 2003 book featuring captains in 19th-century baseball, had disputed the official count of captains in New York Yankees franchise history. Notes Served as acting captain for one game. References captains Sports captains
1,915
https://uk.wikipedia.org/wiki/%D0%A1%D1%82%D0%B5%D0%BF%D0%B0%D0%BD%D1%96%D0%B2%D0%BA%D0%B0%20%28%D0%B7%D1%83%D0%BF%D0%B8%D0%BD%D0%BD%D0%B8%D0%B9%20%D0%BF%D1%83%D0%BD%D0%BA%D1%82%29
Wikipedia
Open Web
CC-By-SA
2,023
Степанівка (зупинний пункт)
https://uk.wikipedia.org/w/index.php?title=Степанівка (зупинний пункт)&action=history
Ukrainian
Spoken
51
201
Степа́нівка — пасажирський залізничний зупинний пункт Конотопської дирекції Південно-Західної залізниці на лінії Ворожба — Конотоп. Розташований неподалік від села Степанівка Буринського району Сумської області між станціями Путивль (10 км) та Путійська (7 км). На платформі зупиняються приміські електропоїзди. Примітки Джерела Зупинні пункти Сумської області Зупинні пункти Південно-Західної залізниці Транспорт Буринського району
11,950
https://vi.wikipedia.org/wiki/Pteridium%20psittacinum
Wikipedia
Open Web
CC-By-SA
2,023
Pteridium psittacinum
https://vi.wikipedia.org/w/index.php?title=Pteridium psittacinum&action=history
Vietnamese
Spoken
51
104
Pteridium psittacinum là một loài dương xỉ trong họ Dennstaedtiaceae. Loài này được Maxon mô tả khoa học đầu tiên năm 1933. Danh pháp khoa học của loài này chưa được làm sáng tỏ. Chú thích Liên kết ngoài Pteridium Thực vật được mô tả năm 1933 Unresolved names es:Pteridium psittacinum
20,597
https://sv.wikipedia.org/wiki/Batracomorphus%20tarchon
Wikipedia
Open Web
CC-By-SA
2,023
Batracomorphus tarchon
https://sv.wikipedia.org/w/index.php?title=Batracomorphus tarchon&action=history
Swedish
Spoken
30
65
Batracomorphus tarchon är en insektsart som beskrevs av Knight 1983. Batracomorphus tarchon ingår i släktet Batracomorphus och familjen dvärgstritar. Inga underarter finns listade i Catalogue of Life. Källor Dvärgstritar tarchon
48,847
https://stackoverflow.com/questions/44463253
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Amy L., Rob, https://stackoverflow.com/users/1271826, https://stackoverflow.com/users/2963352, https://stackoverflow.com/users/7082531, vivek bhoraniya
English
Spoken
695
901
How to check if NSTimer is running or not for a deployed app? I am using a NSTimer to control CLLocation services. When the location is updated, I pause the location update service and set up a timer in 60 sec to restart updating the location. The problem is, sometimes the restart function is called but sometimes it is not. I want to check if the timer is running properly everytime. So is there a way to show in NSLog or any other place that a timer is currently running or not? Or even show the countdown of the timer? You could call API and check @vivek could you expand a little on it? Thank you! If you mean [retriving timer info] on the official doc, the properties doesn't show if the timer is counting, and because there is nothing else running in the code except the going-to-be-called function, I have nowhere to call anything either. If you keep a weak reference to the timer, you can check to see if that reference is nil or not. If you have a strong reference to the timer, you can check to see whether it isValid or not. By the way, you're not talking background location updates are you (i.e. after the user has left the app and has gone to the home screen or another app)? That's a completely different kettle of fish altogether. @Rob I am talking about background location updates actually. I know that people say the NSTimer doesn't work in background mode, but it is working sometimes for me. And I am sure the timer is valid because the timer sometimes resumes itself after a long time, I just want to know if the timer is paused by the system. The timer isn't being paused; your app, itself, is being suspended (and eventually terminated). When you run it thru the debugger, it will stay running, but in the absence of that, it will stop running. Unless your app has requested the battery-crushing background navigation abilities (something Apple only grants where it's critical to the operation of the app, not just a "I'd like to know"), your timer will not continue to operate. The suggested compromise is the significant change location service which is a little more efficient, though (a) less accurate; and (b) is initiated when the user moves, not after amount of time has elapsed. Possible duplicate of https://stackoverflow.com/questions/26269387. @Rob I was going to ask another question because it is related to this but focusing on different problems. But since you mentioned it, then: my timer is stopped only when the phone is sleeping(screen is black) & not charging, but as long as the screen is light up, no matter what I am doing (staring at the lock screen, using other apps etc), or if the phone is being charged, the timer will fire even if the app is in the background, at least for hours. How do you know that the timer is firing? Are you watching the console in Xcode? I.e., what I'm really asking, is the app connected to the debugger when you experience this behavior? I am testing the app in TestFlight, so I am using BugFender to generate remote log file. I see the NSLog messages only if the timer fires and the function is called. The phone is not connected to the computer. And actually if the phone is connected to the computer or charger, the timer will fire on time at all times. Does the app have any background modes enabled? @Rob, Yes, location updates, background fetch and remote notifications are all enabled. Yep, these can keep your app running in the background (i.e. Keeping your timers alive), but is not guaranteed to do so (if your app was terminated it will restart it as needed). If you add logging statements in the appropriate app delegate calls, you can monitor the app’s lifecycle. I suspect the problem is not the timers themselves, but rather that the OS decided at some point that your app could safely be terminated at some point. @Rob thank you for your answer, maybe I should add more logs and see
46,002
https://math.stackexchange.com/questions/4849383
StackExchange
Open Web
CC-By-SA
null
Stack Exchange
FireWolf15G8, Vincent Batens, https://math.stackexchange.com/users/1087858, https://math.stackexchange.com/users/1251263
English
Spoken
278
947
convex function inequality similr to the Hermite-Hadamard inequality Given a function $f: [a,b] \to \mathbb{R}$, that is convex and continuous, prove that the following inequality: $$\frac{2}{b-a}\int_a^b f(x) \,dx\le\frac{f(a)+f(b)}{2}+f\left(\frac{a+b}{2}\right).$$ I tried using the Hermite-Hadamard inequality because I thought it had a similar form, but nothing came out. I'm not sure if it helps but $\frac{1}{b-a}\int_a^bf(x);\mathrm{d}x\leq\frac{f(a)+f(b)}{2}$, by convexity and $(b-a)\frac{f(a)+f(b)}{2}-\int_a^bf(x);\mathrm{d}x$ is the area between the line between $f(a)$ and $f(b)$ and the curve yeah, I unfortunately have alredy tried using it and doesn't work You can probably try to find some characterisation like that as well for the second term and then compare the difference with the difference from the other inequality Step 1 For $a \leq s < u < t \leq b$, the following holds. $$f(u)+f(s+t-u) \leq f(s)+f(t)$$ I’ll leave this as an exercise. Just use the definition of convexity. Step 2 For $a \leq s < t \leq b$, the following holds. $$\frac{1}{t-s}\int_{s}^{t}f(x) \mathrm{d}x \leq \frac{f(s)+f(t)}{2}$$ This is because of the following. $$2\int_{s}^{t}f(x) \mathrm{d}x = \int_{s}^{t} \{ f(x)+f(s+t-x) \} \mathrm{d}x$$ $$\leq \int_{s}^{t} \{ f(s)+f(t) \} \mathrm{d}x = (t-s)\{ f(s)+f(t) \}$$ Step 3 Add the following. $$\frac{2}{b-a}\int_{a}^{\frac{a+b}{2}}f(x) \mathrm{d}x \leq \frac{f(a)+f(\frac{a+b}{2})}{2}$$ $$\frac{2}{b-a}\int_{\frac{a+b}{2}}^{b}f(x) \mathrm{d}x \leq \frac{f(\frac{a+b}{2})+f(b)}{2}$$ Thank you so much! The picture says it all. Use the formula for the area of a trapezoid. UPD: I have no idea why my hint got downvoted, so here is the full solution. As we can see in the picture due to function convexity and continuity we have the following area inequality: $$\int_{a}^b f(t)dt \le S_{ABED} + S_{BCFE}$$ Both $ABED$ and $BCFE$ are trapeziods, so $$S_{ABED} = \frac{f(a)+f\left(\frac{a+b}{2}\right)}{2}\cdot\frac{b-a}{2}$$ $$S_{BCFE} = \frac{f\left(\frac{a+b}{2}\right) + f(b)}{2}\cdot\frac{b-a}{2}$$ Now we have: $$\int_a^b f(t)dt \le \frac{b-a}{2}\left(f\left(\frac{a+b}2\right) + \frac{f(a)+f(b)}{2}\right)$$ QED
28,251
https://electronics.stackexchange.com/questions/610406
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
Andy aka, JYelton, Michael Harvey, Mike, Thijs, https://electronics.stackexchange.com/users/168140, https://electronics.stackexchange.com/users/198309, https://electronics.stackexchange.com/users/20218, https://electronics.stackexchange.com/users/2028, https://electronics.stackexchange.com/users/305071, https://electronics.stackexchange.com/users/43172, user3352632
English
Spoken
1,165
1,482
Why is the actual position of things in a circuit diagram not considered? What is the type of diagram that cares about the ordering? After looking at several circuit diagrams and their actual implementation, I found that the position of the parts is not considered in the diagram. Is there any reason for this? If all parts are arranged on a flat ground (i.e. 2D) would it be theoretically possible? I clearly see the problem if the parts are organized in a 3D structure (e.g. a machine) but not in a 2D way. What is the right type of diagram that provides a circuit diagram with the corresponding position? Mostly all the components of the machine that I want to represent are relatively simple ones (motors, compressors, sensors etc.) and connected directly to the inputs and outputs of one controller. This means there is nothing between controller and component. What is the value of using a circuit diagram instead using a simple table? A layout, probably... The purpose of a circuit diagram is usually to convey to the viewer the electrical functioning of the circuit. if they had to include physical placement of components (which is a matter for the constructor), they would be much harder to understand, and probably look like a crazy spider web. @MichaelHarvey, thanks! As I understand you right: a circuit diagram is just to represent how the electrical circuit works, and not how the components of that machine are arranged to provide the machine's function. If you were building an audio amplifier (for example), you might want to take multiple connections to ground at the same place, to avoid hum or other loops, but the circuit diagram will probably show them all going separately to the bottom ground or common line. Failure to appreciate this sort of thing, can be reason for problems, maybe if a breadboard is being used for a prototype. RF even more so. To answer the addition to the question, sounds more like a functional diagram then a circuit. Could use https://www.diagrams.net . Super easy to draw quick diagrams. Its free and they have a library of high-level electronic symbols for components but industrial stuff (rotating equipment) as well. Just beware that larger drawings get difficult to manage because there is 0 automation. This is really an quick-and-dirty tool. For design of industrial machines there must exist special cad packages but not one that I know of. Perhaps someone knows of this? Related: https://electronics.stackexchange.com/q/105136/2028 What is the right type of diagram that provides a circuit diagram with the corresponding position? The "right type of diagram" is the PCB layout and one of the several layered images that the PCB software produces. It should never be the intent that a schematic diagram (aka circuit diagram) indicates physical component positions. Schematic diagrams and PCB layout diagrams are pretty much interlinked within one software tool so, when you say this: - I found that the position of the parts is not considered in the diagram. Is there any reason for this? I have to say that it appears that you haven't looked in the right places. Thank you for the fast answer! I was not aware of PCB (Printed Circuit Board) but when I looked at these diagrams, those are more for boards. I want to represent a machine consisting of several motors, compressors, etc. . Is this type of diagram also used for this type of task? Or there are other ones? What do you recommend? Thanks in advance! @user3352632 you've asked a few electronic questions so far so I'm a little confused here as to why you were not more specific in your question (too late now of course). I think you may be referring to single-line diagrams (schematic) and, in your edit you ask about tables vs diagrams. Firstly, do not evolve this question further; once you have answers, it is bad form to move the goalposts of your question but, for this one-time, I'll try and answer. If the SLDs are simple then of course a table can suffice; it all depends on how much information you wish to put on the diagram. Single line diagrams from wiki FYI. A 'schematic' is just that. It's a purely symbolic representation of the circuit that shows the scheme of the circuit. That's parts and logical interconnections ('nets'). A schematic drawing contains no mechanical information. Instead, each part symbol has a footprint associated with it that contains the shape on the PCB needed for the part but no location information. The PCB layout is a separate and secondary exercise after schematic capture. It is the files/drawings produced by layout that carry all mechanical information needed to make, assemble, inspect and use the board. Mechanical information may additionally be conveyed in text notes on the schematic but these are for critical or noteworthy items only. Part symbols can show mechanical information about the part but few do. In nearly all schematics, these would be carrying a tiny fraction of the total mechanical info for the board. Mechanical requirements for PCB track distancing, thickness etc can be embedded in the schematic files. This information is used in PCB layout and only results in mechanical dimensions and positions during PCB layout. Beyond global defaults selected for the board design, this information is only of particularly use for higher-frequency transmission line tracks and tracks carrying higher currents and voltages. What is the right type of diagram that provides a circuit diagram with the corresponding position? Generally speaking, it's called a "wiring diagram". For example, these images". For example: {Wikipedia} In the specific case of a PCB, it's called a "PCB layout" For example: source I found that the position of the parts is not considered in the diagram. Is there any reason for this? Yes - there is a good reason: There are always different ways to realize such a circuit diagram in hardware. More than that, passive and active parts are available in different forms and packages (dependent on manufactureres). Therefore, it would be not a good decision to require a particular layout from the beginning. As an industrial maintenance electrician, and the person who will be working on your machine when the line has stopped because of it and there are 100 people getting more mad by the minute, it's a ONE LINE diagram that just show the controls... ie: output 0:1 starts motor 1, or input 0:4 is end of conveyor stop sensor. I cannot explain to you the importance of these diagrams, as most machines are different and most maintenance guys cannot get online with a PLC... so thank you for caring and honestly, we would buy more machines from you if you put those simple words like end of conveyor stop sensor in your one line diagrams. Too many engineers get lazy and use default definitions on these inputs and outputs that really makes your machine not as good as someone who just added this extra step.
13,365
https://stackoverflow.com/questions/23029571
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
ChoiZ, Dave, https://stackoverflow.com/users/2636464, https://stackoverflow.com/users/3398351, https://stackoverflow.com/users/913154, user2636464
English
Spoken
198
441
git push not working over https (even with a user option) I have created a git repository and trying to push to github. I tried these: #1 git remote add origin https://github.com/userid/reponame.git git push -u origin master #2 git remote add origin https://userid@github.com/userid/reponame.git git push -u origin master It says error: The requested URL returned error: 403 while accessing https://github.com/userid/reponame.git/info/refs git remote -v shows for above two tries https://github.com/userid/reponame.git https://userid@github.com/userid/reponame.git I don't want to use ssh. Is there any way to resolve it? use git remote -v to check if your origin is already added like origin https://userid@github.com/userid/repo.git (fetch) origin https://userid@github.com/userid/repo.git (push) The error https://github.com//.git/info/refs worries me. The double // should be something like https://github.com/<user>/<repo>.git/info/refs Are you SURE your remote url (fetch AND push) are correct? git remote -vv I have edited with more info. please help @iltempo HTTPS for git is not read-only. On GitHub, only HTTP is read-only. -u is not a "user" option for git push. It's an option to enable the local branch to track the remote-branch that you're pushing to the remote repo. thanks everyone. It has started working now with the second optiongit remote add origin https://userid@github.com/userid/reponame.git git push -u origin master
6,233
https://stackoverflow.com/questions/41250644
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
English
Spoken
41
77
Xamarin form: Is there a way to get a thumbnail from the video I am using a MediaPlugin which can pick up photo/video. I need to display their thumbnail. Is there a way to extract the thumbnail through video file. https://github.com/jamesmontemagno/MediaPlugin/tree/master/src
37,996
https://arz.wikipedia.org/wiki/%D8%AF%D9%88%D8%A7%D8%B1%D8%AA%D9%89%20%D9%83%D8%A7%D8%B1%D8%AF%D9%88%D8%B3%D9%88%20%D8%A8%D9%8A%D9%86%D8%AA%D9%88
Wikipedia
Open Web
CC-By-SA
2,023
دوارتى كاردوسو بينتو
https://arz.wikipedia.org/w/index.php?title=دوارتى كاردوسو بينتو&action=history
Egyptian Arabic
Spoken
59
179
دوارتى كاردوسو بينتو () لاعب اتحاد الرجبى من پورتوجال. حياته دوارتى كاردوسو بينتو من مواليد يوم 17 مارس سنة 1982 فى ليشبوا. الحياه الرياضيه لعب مع فريق منتخب البرتجال لاتحاد الرجبى. لينكات برانيه مصادر ناس لاعب اتحاد الرجبى من پورتوجال ناس من پورتوجال لاعب اتحاد الرجبى من ليشبوا ناس من ليشبوا مواليد 1982 مواليد 17 مارس ناس لسا عايشين
29,029
https://stackoverflow.com/questions/75590207
StackExchange
Open Web
CC-By-SA
2,023
Stack Exchange
English
Spoken
130
246
PHP shorthand for combination of ?? and ?: operators? is there any "beautiful" shorthand in PHP to use ?? and ?: operators together? I often check something for array keys to exist and to "evalutate to TRUE" in web apps, e.g. for ids, such as if ($foo['id']) { // ... } but this leads to PHP notices starting with PHP 8.x+. I could write if (isset($foo['id']) && $foo['id']) { // ... } but this makes the code such unreadable. An alternative would be if ($foo['id'] ?? NULL) { // ... } but also this is ...cruel. Especially when writing something like echo 'Rsource foo '.(($foo['id'] ?? NULL) ? 'edit' : 'create'); Any ideas, recommendations? array keys to exist and to "evalutate to TRUE" That's empty, or rather, !empty: if (!empty($foo['id']))
40,653
https://vi.wikipedia.org/wiki/Elaphoglossum%20lloydii
Wikipedia
Open Web
CC-By-SA
2,023
Elaphoglossum lloydii
https://vi.wikipedia.org/w/index.php?title=Elaphoglossum lloydii&action=history
Vietnamese
Spoken
53
112
Elaphoglossum lloydii là một loài dương xỉ trong họ Dryopteridaceae. Loài này được Underw. ex Domin mô tả khoa học đầu tiên năm 1929. Danh pháp khoa học của loài này chưa được làm sáng tỏ. Chú thích Liên kết ngoài Elaphoglossum Thực vật được mô tả năm 1929 Unresolved names es:Elaphoglossum lloydii
29,434
https://es.wikipedia.org/wiki/%281257%29%20M%C3%B3ra
Wikipedia
Open Web
CC-By-SA
2,023
(1257) Móra
https://es.wikipedia.org/w/index.php?title=(1257) Móra&action=history
Spanish
Spoken
93
212
(1257) Móra es el asteroide número 1257 situado en el cinturón principal. Fue descubierto por el astrónomo Karl Wilhelm Reinmuth desde el observatorio de Heidelberg, el 8 de agosto de 1932. Su designación alternativa es 1932 PE. Está nombrado en honor del astrónomo húngaro Károly Móra (1899-1938). Véase también Lista de asteroides del (1201) al (1300) Cuerpo menor del sistema solar (2517) Orma Referencias Enlaces externos Asteroides del cinturón principal Objetos astronómicos descubiertos por Karl Wilhelm Reinmuth Objetos astronómicos descubiertos desde el Observatorio de Heidelberg-Königstuhl Objetos astronómicos descubiertos en 1932 Wikiproyecto:Asteroides/Artículos de asteroides
1,624
I0siPP1A93o_1
Youtube-Commons
Open Web
CC-By
null
Ready to Launch Your Career? You can do this!
None
English
Spoken
8,567
10,103
Hello, my name is Kim Doherty and I am the advisor, the career advisor for the San Jose State University Information School, or the iSchool. And I am going to be talking with you today about getting ready to launch your career after you have gone through the program. The cool thing is that you can actually be working on this all the way through the program. You'll see that there are things that are applicable that you can start doing right now if you're just starting out. But my goal is to have you feel confident and comfortable that as you're getting ready to graduate, you've sort of got everything, all the pieces and parts in the order that you need to have them. You've sort of done all the things that you need to do to be prepared to move out and start your profession, your career. All right, with that, let's start with a concept. And this is the concept that I would encourage you to keep in mind throughout your entire career. As you go from being a student to becoming a professional and growing your career, you are going to be building what I would call your professional equity. And that comprises three different pieces. The first piece is what you know. That could also be your domain knowledge. If you think of all the things that you're learning or have learned as you've gone through the program, think of that as your what you know circle. That's all the things that you can do with your LIS skills. The second piece of your professional equity which you will be building over the course of your career is who you know. That's sometimes called your network. We call it your community of colleagues. It's all those people that you have come into contact with built relationships and continue to stay in touch with. One of the things that you will find as you go through your career is that many of your jobs will come through people referring you for those jobs. So the more people you know, the likelier it is that opportunities, professional opportunities, will just sort of walk in the door and find you, which is a wonderful place to be. And then the third piece of your professional equity is what I would describe as who knows what about you. Otherwise known as your professional reputation or brand. It's it's what you are sort of creating through literally every single interaction you have with anyone in grad school in your job and your volunteer work who remembers your name. Each one of those people have built an assumption about who they think you are and how they think you contribute and how much respect they have for you and your abilities as a professional. So, as you're going through grad school, or as you are starting off launching your career, assume that what you want to always be building whenever you have the opportunity. After you've recovered for a brief spirit, period of time from grad school, what you want to be building is, again, what you know, and what you can do with that knowledge. Who you know, your community, and who knows what about you, and, and quite frankly, how many people know it. So how visible are you to the profession and to colleagues who you would like to have respect you, or value your judgment and your contribution. So that's, I want you to leave with that takeaway of when I, when I am a student, or when I am building my career, I am building always my professional equity, and these three aspects of it when I have the opportunity. All right, so now we're thinking though about specifically moving out, we are going to transition from being a student into profession into a professional, or into a professional setting. And so I would say that what we need to do is lay the groundwork, and that means sort of figuring out, where are you starting from, do you already know a lot of people, or do you need to work on building your community. Do you already have experience that you can speak to in an interview, or is that something you want to add. So I want you to think about as you're getting ready to move forward, figuring out sort of where do I need to do some more work. And as part of that you want to identify the steps you need to take to develop that domain knowledge, what you know, your connections, and your visibility in the target areas where you would like to be hired quite frankly, because if you come from a different profession. It's great that you have a lot of visibility and connections in that profession. But if you for example have said I really want to work in public libraries, and you don't have any connections or visibility in public libraries, then you're going to pivot and start developing them in that target area. And then we're also going to talk about tonight, putting together an action plan to make these things happen for you, because one of the things that we all tend to do is say okay I need to do this and this and this and this. And it sort of all gets jumbled into a mix of okay I need to do that thing and I need to do this thing and this other thing. So another thing we're going to talk about today is how do you actually organize an action plan that helps you move from where you are to where you want to be. And the reason I'm emphasizing that today is because this is a process. It is a practical tool that you can use throughout your entire career for any career goals that you have whether it's pivoting into a new type of information work, or moving into a new account and sort of starting from scratch you know how do I, how do I make that happen or asking for a promotion. All of these things that you are trying to make happen can be addressed by putting together an action plan. So we're going to work on that a little bit. Let me start by introducing you to this bad boy, Carl von Klauswitz. So Carl was a Prussian general. He was a theoretician of battle tactics, and he wrote the most. How would I put this? I had to read this book for one of my clients. He wrote a very ponderous and big and long book called On War. And the premise of On War is that people who go into battle, up to this point or up to Carl's day, would just sort of say, okay, let's get a whole bunch of people and a whole bunch of archers and people and horses and you know just sort of rushing and smash each other and see who does a better job of smashing. Carl on the other hand said, no, no, no, no, no, we can develop battle tactics. And the way we will do this is a three pronged approach of setting a goal, setting our strategies for accomplishing those that goal. And then identifying the tactics or the action items that will enable us to implement those strategies. So creating a goal or a, excuse me, creating your career plan. This is your career launch plan. Versus executing your career launch plan. Two different mindsets and I want to call them out now so that you don't wonder why is this not working for me if it's not. And it may be because of this. There is a difference between creating a plan and executing it. Some of us are terrific at creating a plan. Others of us are terrific at executing a plan. Here's what the difference is. When you are creating a plan, you are setting out what you want to accomplish. You are identifying sort of the broad strokes of what do I need to accomplish that goal. And then for those each of those strategies, you are identifying the tactics or action items and I will give you examples of all of those. However, when you are executing a plan, say you have said, I'm going to, this is my goal. And I'm, this is how I'm going to get there. And this is what I'm going to do. There is an entire discipline around how to actually execute against your goals. How do you, it's called change behavior or behavioral change. And it's how do you get yourself to do the things that you have said that you are planning to do. When it's easier, quite frankly, I think we all know this. It's way easier to say, Oh, I'll do that next week. I don't really need to do that this week. So what we want to do is think about when it comes to executing your career launch plan. We want to think about creating the environment or the incentives that best support your ability to do that. And on the other hand, we want to lower what's called your barriers to action, which means a lot of things are going to going to get in the way. You don't get sick, or you'll have a vacation for a week in Mexico, where you don't do anything but body surf, or you will have your mother-in-law come and visit. And it basically hijacks you for the month that she's there, and then three months of recovery afterwards. Anything can happen. And so we just want, as I'm talking to you about creating an action plan. And that's my way of saying, don't take it personally, don't feel like you're a failure if you set up a plan to accomplish these things, and then they get derailed. Because all you need to do is say, Okay, that was interesting. But because I have my plan, I can go back to it now, and just pick up where I left off. Okay, if you're interested in the best book on behavioral change, the book by Chip and Dan Heath, who are two brothers called Switch is the absolute best thing I've ever read. All right, so I'm going to give you my fantasy career launch action plan. You can see how all of these ideas tie together. So my goal, that's that's the thing I'm trying to achieve is to become a backup singer for Beyonce. It's clearly, as you all well know, something I could certainly achieve. So remember that you have your goal. Then you have your strategies, which are sort of like your big overarching things that you need to accomplish in order to achieve your goal. So for me, I'm going to have three strategies. First one is learn how to sing. My second strategy is learn how to dance. And then my third strategy is to figure out how I'm going to get Beyonce to hire me. And then for each one of these strategies, I have to have a set of tactics, my action items that I'm going to undertake to respond to or drive forward each one of those strategies. So okay, let's let's look at strategy number one, learn how to sing. Here are my tactics. Three singing coaches choose one. And you'll note that I've said choose one within six weeks. When you are putting together an action plan, it helps if you make it quantifiable. So if I'm interviewing three singing coaches. Within six week period, I can very quickly know if I'm on track. Did I actually interview those three singing coaches, and did I actually get that done within six weeks. Probably not, but that's what I'm shooting for. And then I'll sign up for singing lessons. And then I'll practice singing two hours a day. Just as the person will say, I'm currently trying to practice my drums that my son gave me for my birthday, and I'm taking drum lessons. It's hard to practice a half an hour a day. So this was before I put in practicing singing two hours a day before I realized how hard it was to even do a half an hour day. And then last and probably most important, soundproof the basement so I don't get sued by my neighbors. So, as you can see, all four of those are action items that support the strategy of learning how to sing. All right, number two strategy, learn how to dance. And then here are my tactics for learning how to dance. Again, I'm going to be interviewing dance coaches, going to sign up for lessons, going to practice. And again, probably most important time going to purchase a back brace and many, many, many pain meds prior to beginning my dance lessons. All right, so then strategy number three is to figure out how to get Beyonce to hire me. So just to recap that my goal is to become a backup singer for Beyonce. I have three strategies. This is the third one and tactics for each strategy. So let's see what my tactics are here. First is that I knock off her current backup singers. So there's clearly a job opening. And then I explained to Beyonce that hiring someone like me gives her an entirely new market demographic, which I would describe as old white broads who got kicked out of their current kindergarten dance class for lack of coordination, which is actually a true start. Probably again, most important, I will offer to pay her double her Superbowl fee and triple if I fall off the stage while I'm performing. All right, so that takes us through a sort of imaginary career launch action plan. Now, let's see how this will work for you as you're getting ready to have what I consider I'm assuming is your goal, which is landing a an LIS job. After you graduate. Here are the strategies I would suggest will be most helpful for you in order to do this. First one is to understand the responsibilities of the target position. And that means more than just I read the job description. We will go into each one of these in more detail. What we have heard at the high school from a number of hiring managers is that one of their biggest challenges is that people come in for an interview and they don't understand the job. Responsibilities well enough to really be able to speak to them. So strategy number one in terms of you landing that job is really understanding the job you're applying for. Second strategy there is to understand your fit for that job and its responsibilities so well that you can then do strategy number three, which is to prepare the business, the key decision maker, either hiring manager to give you the desired position. You cannot do that if you haven't completed the first two strategies. So let's look at how we want to do that. I've got some recommendations here for how to understand that the strategy number one how to understand the responsibilities of target position. The thing that I would do, if at all possible, is to talk to people who know about the job or do the job. Even if you're doing an informational interview with someone who has that job at a completely different organization. If at all possible you want to go deeper than just the description in the job posting, you want to talk to people who have done this work, and you want to understand what kinds of issues come up. You understand want to understand what things have surprised them about the job. You want to understand any things they might want to share with you about what they love or don't love about the job so that you have a practitioner's viewpoint then of a sort of a deeper, broader take on what that job is all about. And I would also encourage you to read additional descriptions for that job with other employers. The reason I would encourage you to do that is that if the job says, here's the job title, and this job requires you to do these four things. Read 10 similar job descriptions, and those job descriptions mention another five things that didn't show up in that job description that you're looking at and you're targeting. That gives you some ideas of things to talk about in your interview. In other words, you can say, you know, I've been researching this job, and one of the things that I found interesting was in this job, some organizations ask this role to do these other things would that be helpful for you. If the library or the nonprofit or the government agency, or the special library, would this be helpful for you if we added one or two of those things to this job. That tells your hiring manager that you've done the work necessary to really think seriously about the job that you're applying for. And then, if it's at all possible, and a lot of times it won't be but sometimes it will, because you may know with the organization. Talk with someone, three-someones if possible, who've held the job previously, and ask them again similar questions of what did you love about this job, what did you feel was most challenging about the job. What were the things that you wanted to do on the job that you never could quite get to. What do you think the most important attributes are for someone who's doing this job. So, strategy number one, understand the responsibilities of the target position. These are the ways I would, if I were doing this, I would approach that. Strategy number two is, and this is incredibly important, understand your fit for the job responsibilities. This does not mean that if there are 12 requirements for a given job in a job description, and you've got 10 of them but you don't have two of them. This does not mean, oh, I don't fit this job. In fact, you might be the perfect fit for the job. But you need to think about it. So the first thing I would do is basically say, here are my areas of skill, expertise, expertise and professional strength, and then here's what this job requires. So I would encourage you in point number two there, not to just look at your domain skills, because you are going to find when you apply for jobs, that one of the things a hiring manager is looking at most closely is, how can a person fit in with our organization? Do they have self-management, self-knowledge skills? Do they have good collaborative skills? Do they work well with the public? Do they have the ability to be adaptive and responsive when all of a sudden the project we were working on has to change? Do they have a good sense of humor? Everybody's nervous in a job interview, but are they willing and willing and able to comfortably smile and say, you know, that's a really good question. Let me think about how I would answer that. They're not looking for you to be perfect, and most likely they are not going to get the perfect job applicant. But what they will be paying close attention to is your soft skills, especially as it relates to the job that you're applying for. For example, if you are applying for a job as a reference librarian, they're going to want to know about your ability to deal with a diverse group of patrons. Your ability to make someone feel comfortable and at ease if they're feeling anxious about being in a library for the first time. Your ability to diffuse uncomfortable situations that may come up now and then. And also, always, always, always, your ability to work collaboratively as part of a team. And then if you see what I would call a skills gap, if you see a gap between what they're asking for and what you have. Again, I wouldn't let that deter you unless it's like the main piece of the job. We're looking for a cataloger and you've never cataloged before. It's more of the sort of, it's four bullet points down in the job requirements. I would address that off the bat. I would say, I think I'm, I would be comfortable saying and this is what you want to think about as you're determining how to handle this is, I realize you've asked for two things here that I don't consider areas of expertise yet. But here's how I plan to address that immediately when I'm hired for the job. So what you're signaling is, I know I'm not everything you're looking for, but I'm a good learner. I can learn on demand. I take the initiative and I'm taking responsibility for what I need to learn. So again, don't feel like if you see that skills gap, or there's, there's not a total alignment that you're not a good candidate, you may be a terrific candidate. You just need to determine how you're going to handle the missing areas. All right, strategy number three for prepare to convince decision makers. This is, is critically important because I have been told by a number of hiring managers. Again, will, which will give you an idea of how often I hear from hiring managers that one of their challenges is that people who come into apply for a job. Tell the hiring manager why they would be a good fit for that job. So you've done. Number one, you've understood the job. You've done number two, you've understood what makes you a good fit. Number three is where you put those two pieces together. So as you're preparing to do this, you want to have what I would call a back pocket list, which means that's sort of like a virtually back pocket list. You're not actually going to pull this out of your back pocket, but you've got a mental list of here are five examples of great, relevant student or professional projects or work, or collaborative team efforts or initiatives or whatever that I can talk about that address this job that there are relevant to the job that I'm applying for. In addition, you want to have stories at your command that document your unique strengths. So part of this is what Alicia is going through right now, she's putting her portfolio together. She's looking at, okay, how do I, what do I pull in to document what it is that demonstrates I'm really good at this or I have, I know how to do this. So what you want to be able to document through your stories, if you can, is not only what you know, but what you have been able to do with what you know. So as you're preparing to convince that hiring manager, and you're thinking all these pieces through these are the kinds of things you want to be prepared to respond with. So part of that, I cannot encourage you strongly enough to work with the mock interview platform that the San Jose State career services group has available for all of you. In addition, I have noted there, with my asterisk, you have one of the most capable, competent career resources, I've ever met in Kerry McKnight. Kerry is our liaison between the San Jose Career Services Center and the iSchool. And, and I will just say it out loud Kerry likes the iSchool students best of all. She and I work together frequently and she tells me how cool you guys are. And she can do an amazing job for you on your resumes on your cover letters and on your LinkedIn profiles. She can coach you on how to use the mock interview tool. You don't want to graduate until you've had a carry session. She's just, she's so helpful I can hardly begin to, to recommend her strongly enough and thank you Ariel. Kerry is truly amazing. You are always going to feel nervous when you walk in for a job interview. That's a fact of life. All of us are that person. But the thing is, the more you know about what to expect, and the more prep work you have done answering any questions, sort of going through that process, then if someone throws a question at you. That's completely out of the blue, like, if you were a tree, what tree would you be. People know, oh, okay, they're not really asking me what tree I would be. They're asking me how I think, through a question like that. And so that's when you can tell them that you would be a mighty oak because you are strong and capable or, or just whatever. And, and this is part of what the resources will help you with is how you do these different kinds of, of interviews. This is the third strategy I would encourage you to keep in mind in terms of convincing decision makers. Assume that they have no clue who you are, or very little, because they've been looking at, you know, 400 applications to start with. And then they've narrowed it down to maybe 10 interviews, and they can't remember, are you the person who was that or are you that other person that was whatever. Your job is to take responsibility for the outcome of the interview, and to be prepared to step in and talk about your strengths, your expertise and why those things will be so valuable to the organization. You're not going to be a potential employer, because honestly you're the person who will know that the best. And, and this is not bragging, it's simply saying, I would really do a wonderful job for you, because I would be excited to do X, Y and Z, and help the organization meet its goals. So, okay, those are your strategies, your three strategies and then your tactics for landing your post graduation job. This is just sort of putting that all into a more of an outline form. If it's easier for you to see it all together like that. Again, those are the strategies and tactics that I would use. If I were going to be out looking for my, my first or my next LIS job, you may have other ones that work equally well for you. My only recommendation is that you put together some sort of a, almost a project plan for how you intend to do this. Identify your goal. Identify your strategies. Identify your tactics. And one of the reasons we've spent so much time on this is that I have had probably I think like 12 different jobs. I've worked on probably eight different startups and projects. And every time I wanted to make a change, this is the process I used. And I haven't actually put together a resume for the last 30 years, because using this strategy, it resulted in my being able to get the work that I wanted to do. Right. So now, however, I'm going to hit you with your pre graduation checklist. These are the things that I would strongly recommend you do before you graduate. And I'm just going to go through the list and again, you will have them you can be able to you'll be able to see them online as soon as we publish this. This presentation and also if you have questions about any of them again, I'm here for you to answer those questions. But here is is sort of a quick tour. The first one is to secure and or strengthen your key relationships that you have built as you've gone through grad school. So for example, that could be a relationship with Kerry. That could be a relationship with me. That could be a relationship with your advisor. That could be one with someone who mentored you through grad school, or with whom you did an internship as part of the program. But equally important is the relationships that you have built with your fellow students. If at all possible, I would encourage you to do the work to maintain those relationships. Connect with each other on LinkedIn. Exchange emails after you're no longer on the San Jose State email account. And always touch with each other because all of your fellow students as you go through the program and and who you've survived this incredibly traumatic and challenging and and wonderful and an amazing experience. You guys are all survivors together, and you know each other. And that's the basis of building a professional community. So I can't, I can't recommend strongly enough that you guys all stay in touch with each other. Another thing you want to do before you graduate and start applying for jobs is to vet your professional reputation and visibility, essentially, and most importantly, online. And here's why. 75% or more, but 75% is the minimum 75% or more hiring managers, looking at your resume or your application and making a decision about whether or not to invest the time in interviewing you are going to check you out online. They're going to look to see what information they can find out about you. If you have a LinkedIn profile online, and if you don't carry is a great resource for getting that done and I can help you as well. If you've got a LinkedIn profile online. That's the first thing they'll see, which is greatness for you, because a LinkedIn profile basically says, Here's what I want you to know about me. And all the stuff that wouldn't fit into that two pages on a resume. These are the other things that make me an amazing human being. And you can put it on LinkedIn and you don't really have to feel like you're bragging. And that way, if they're trying to check you out at midnight, they can find something at midnight about you. So, Google, Google yourself or use your favorite browser, put your name in and see what comes up. If bad stuff comes up. One way to deal with that is to paper it over. And that is what that what that means is, you do a whole bunch of stuff online. And that the things that are negative are bottom are start, excuse me, start getting buried on the page, so that they don't get to that, that horrible Facebook post or whatever that you did when you were young and not quite as professionally adept from years and years ago, shall we say, you don't get that to that until it's like page 10 by then they've given up. And so you're good to go. But you do want to see what information is out there so that you're prepared for it. If there is any negative information. I would recommend that as part of your pre grad checklist. You narrow down your job hunting focus, if you can to no more than three job types, or three career paths. This is only to start. One of the cool things about LIS careers is that you can have like 40 different careers and still be doing LIS work. That's pretty much killing. So, I would say, you don't need to say, Oh, I'm, I'm going to look for these three kinds of jobs, which means then that I'm giving up these other 12 that I find quite fascinating. All you're doing is trying to get a foot in the door. You are just getting your career started. And from that foot in the door career, you can pivot any of a gazillion different directions. So I would say it just makes it easier for you, and especially if Kerry's trying to help you to be able to say these are the three kinds of jobs I'd like to go after, because what's going to happen is, you're going to probably do a like a modular resume and a modular cover letter, and then you'll tweak it, depending on the job or the career path that you're applying for. And then next I would say, make sure you've prepared your marketing materials. And your marketing materials are your resume, your cover letter, your LinkedIn profile, as I mentioned earlier, and if possible, LinkedIn recommendations. LinkedIn recommendations are when you reach out to someone who knows you well, preferably a superior but if not a peer or a colleague, and ask them if they would be willing to write you a recommendation. This assumes that they're on LinkedIn. They can only do this if they're on LinkedIn for you. But one of the cool reasons to do that is it functions almost like a letter of recommendation, or like a recommendation that that hiring manager would call, because it will show up on your LinkedIn profile. So if someone knows your work, and you know that they would be comfortable recommending you that something you'd like to do as part of your marketing materials. I recommend that you start doing your preliminary job hunting research before you graduate, just so you feel like when you do graduate, you've already started the process. You'll feel like you've knocked down a few of the things you knew you were going to have to do. And so just having done some of that preliminary work gives you a sense of momentum that you might otherwise not have. I would also recommend that you beef up your interviewing skills and and you guys can do that with each other. You can do that with your siblings, where you, you know, interview each other to work on your skills. And keep in mind that these days, interviews are all over the board. So assume the first interview might be a telephone interview. It might be a zoom interview. It might be over lunch if you guys like live down the street from each other. It might be a one on one interview, but it also might be a group or a panel interview. And the thing that's most important to know about a group or a panel interview is that when you walk into a group or a panel interview, or even if you have one on a video call, the normal rational expectation you might have would be all of these people will know who I am because they've read my resume and so they're going to have targeted questions for me. That is not the case. Everyone on your panel or group interview will have no idea who you are. They will not have read your resume. They will have been handed right before they showed up a question that they're supposed to ask you. It may be to be prepared if it's a group or a panel interview to give more background information, to tell more stories, to be more detailed, talking about who you are and why you're applying for the job and that sort of thing. Then you might if you were in a one on one situation. And then also another type of interview is a traditional versus behavioral interview. A traditional interview is more along the lines of tell us about when you were at this job, what did you like, why did you leave that kind of thing. Behavioral interview is more along the lines of how would you handle it if a patron walked in and did this strange and bizarre thing, or the famous and ever popular, what kind of a tree do you want to be when you grow up. Behavioral is looking at, how do you think about things? How do you process information? How do you deal with something out of the blue? How do you think through a response? Does it totally derail you? Or do you take a step back very commonly and say, interesting question, let me think about that. I think here's how I would respond to that. So part of what you want to do as you're thinking about interviewing is realizing that your interviews could fall into any of these kinds of categories. And I just the other day read an interview article about the fact that they may be automating this. So now you may be talking to an artificial intelligence robot, I guess. So, I'm not sure those are in play yet, but I would say you do want to be prepared for that. Next thing is to renew your professional memberships. If you don't have them already, get them now. Two reasons. The first reason is, when you're a student, almost every LIS profession we can think of, including archives and medical librarianship and law librarianship and all of those people, they're trying to recruit students. And so they have steeply discounted membership fees for students. I know that the iSchool pays for one of them for you, but I would say if you've got three different interests, career interests, join three different groups, it will cost you a little bit of money, but not nearly as much as a full professional membership would. And also you want to, no matter when you join, renew as a student the day before you graduate. The second thing is that if you have professional memberships, you have access to their membership directories. You can see everyone who's doing that kind of work, and as a member in your neck of the woods. So if you're trying to build your connections or you'd like to do informational interviews, this is a great way to be able to reach out and do that. Another point is, and this is very strongly, if possible, try to make sure that you've done some work in a library or information-based work setting if you can before you graduate. Because one of the things that you will find is everybody is asking for experience. I want you to have two years working in a library, or at the very least volunteer experience or whatever. Sometimes going back to what I said earlier, none of their applicants are going to have it. And so don't let that stop you from applying for a job that you are otherwise absolutely perfect for, but it will just make your life way, way easier if you do this before you graduate. Alright, and then wrapping up your pre-graduation checklist. The thing I would strongly recommend, and for those of you who are starting or midway through the program, I would encourage you to be willing to take an A minus rather than an A in your courses in order to do more information interviews if you can. They are golden for you. So here's what the student halo is. Student halo is, when you're a student, you can call up or email just about anyone in the profession and say, Hi, I'm a graduate student getting my MLIS, and I would love to talk to someone who really knows the profession. And I read the article that you wrote or I heard you speak or I live in the same community or state that you do. Would you be willing to give me 20 minutes of your time and answer some questions I have about this type of work? And I understand if you can't do it, but if you can, that would be so wonderful and I would really appreciate it. Usually, most people will fall all over themselves saying, Ah, you're a student. Of course, I would be happy to chat with you. And it's a wonderful way to learn more about potential career paths, but also to start making professional connections. And to have people start getting to know you, because when you ask them wonderful questions, and you are very appreciative, and then lo and behold, you send them a thank you note, they will remember who you are. And then when you graduate, you can follow up with, Hot damn, I graduated, I just wanted to take a moment and say, Thank you again, I really appreciated that. And I would love to, you know, I'm going to be busy looking for jobs. But at some point I would love to be able to take you to lunch or out for a cup of coffee. I didn't actually ask them for a job. But you've let them know that you've graduated. So who knows, a job may come across their desk, or they may be talking to a colleague at a different library, or organization who's looking for someone just like you. The second point there is to help people help you. You are going to say to your community of colleagues that you've diligently built up. Okay, I've graduated help. I need help looking for a job. What you want to do is say, I am looking for this. That means what kind of a job are you looking for. What, what are some titles that might be relevant. What type of an organization might you be looking for, or are you looking for a specific organization, I want to get a job with Google, do any of you know anybody at Google that you could introduce me to. So when you tell people that you're looking for a job, people who like you are going to want to help you, but they can't do it if they don't know how, and you're the only one who can tell them that. The second most important, be able to understand and articulate your value proposition that the clearest way of saying that is, is if I the hiring manager say to you, why should we hire you. I would be really comfortable saying, here's why. This is why I believe that I would be an incredible asset for the organization for the department for this specific role. And by the way, it also helps to be able to do that when you graduate with your MLIS and people start saying to you, why did you need a graduate degree in librarianship aren't libraries going away. You know everything's on Google. The first thing I would encourage you is to make sure you have a good sense of humor. To be able to to sort of pivot and not take that question personally. I'm here to tell you that you are graduating with one of the most valuable degrees and skill sets known to man. And when everybody else is out of a job throughout your entire career you're going to be able to pivot and find the job that you want to do. I am a testament to that, and given any other degree, or any other knowledge base that anybody could have had. I have loved my career because I'm an information professional. Okay, with that, I'm going to throw it open to questions, and I'm happy to stay with you and answer questions for as long as you want or by Ariel, or I am happy to feel questions for you via email. If you want to follow up with me at some point. So, let's say, I'm not saying questions. Can I ask you. Sorry, go ahead. How do you answer the question about why, why did you get your degree or aren't like libraries going away. The way I answer it is, I do several things and I'll give an example, I was actually at one point, one of the startup projects I was leading was I was asked by the CEO of an online university to create the first virtual academic library. And I did that working with over 100 subject specialist academic librarians from around the country. And I was interviewed by the business editor for the Denver post. And he was asking me about the project and I was telling him, here's what we're doing and blah, blah, blah. And his response to me was librarians, you're working with librarians, and I said, yeah, why. And he said, well, I think of librarians as people who take the book down off the shelf and put it back up. And, of course, you know, no matter what you say it's going to show up in the newspaper the next day. So, you're responding very carefully. And my response to him was, I think you have perhaps some misperceptions about the work that librarians and other information professionals are doing these days. So, you're thinking about the way libraries were like 20 years ago, or 30 years ago. What librarians are doing today is to actually make the world of information make sense. They're helping people understand what's real and what's not. They are helping in a crisis when someone's turned to Google and realized they have no way of finding out what it is they're trying to find there. We're the real Google. We're the people who know the difference between information and not real not information. The people whose information skills basically are the keys to the kingdom for anyone who is trying to do anything. There is not an organization in the world that cannot do a better job strategically in meeting their goals by having strategic as access to their information. I don't see anybody or throw things. You know, I try to smile and I don't say oh that was so cute that you asked things like that. But I would have to admit having I've done this for a really, really long time now. It's so easy for people who don't understand the strategic value of information and how much difference it makes to underestimate something and think Google is good enough. And I would say, you know, if you look at the world around you, we can see what misinformation does. We can see how damaging it is. We are on the front lines of that fight. Every single day, trying to make sure that the good guys win. Well I'm inspired. Thank you. I'm glad I, I really do believe it and, and I love the work that I do. Next question. I can, I have a question about transitioning you mentioned briefly like the possibility of moving to a new city which is what I'm going to be doing after graduation. So I was just wondering if you had any advice about like the timing for jobs, like I'm working full time now and finishing my portfolio, and then I will be moving. And so if you have any advice about how to navigate that transition timing wise while, while trying to do the checklist and all of the strategizing and everything involved. So Kathleen, I'm just assuming that you're young and you don't need to sleep for the next four weeks. Seriously, here's what I would recommend. What you're needing to do is very possible. So I would say don't, don't be worried about it. What you're going to end up doing is sort of building a bridge of connections into your new community. And an easy way to do that is through the professional associations and chapters that are located wherever you're going to. For example, talking to doing informational interviews with the local public librarians in the community that you are moving into, or if it's a special library, joining the Special Libraries Association and and becoming involved in the local chapter. I'm just doing some volunteer work for them. Essentially, for anyone who's moving locations, your challenge is to build the bridge from here's where I am now what I know who I know what I've done all those kinds of things. And now I'm moving over here to this other state. There are things like looking at your network and just saying, does anybody know anybody in Omaha, Nebraska in the information field that I should connect with, and that I can talk to there. That's just an example off the top of my head. But basically what you're going to be doing is building connections for where you're going. You don't have an opportunity to do that before you move. Don't worry about it. I, you and I can brainstorm ways to do that at any point. Wonderful. Thank you very much. I really appreciated this very helpful. Anybody else, those are two really good questions. That was kind of an extension on Kathleen's question. If you don't mind and it might be kind of a weird one. What about trying to find a job internationally. Have you got any experience with that or finding job internationally. I think that if I recall correctly, I actually wrote a blog post on how to find international jobs. I have neglected my poor blog, which is infanista.com so badly in the last several years that it's, I mean, I can, I'll have to go back and find it. But if you will send me an email reminding me to do that. And that way I've got your email, I will track that down and send it to you. And basically what you want to think about when you are thinking, excuse me, I'm going to stop share what you're thinking about when you're making that kind of a change is what are all of the different ways that libraries exist or information exists in the world. So it might be that there's a library with an NGO, a non governmental organization. It might be that a company that's based in the United States, but has international settings has an information opportunity for their job. It might be that you work in a school library at an international school. So it's not, it's, there are many different ways to be an international librarian. But it, I'd have to refresh my memory on that. And I'm sure you're probably already aware of if the International Federation of Library Associations. I have information, if I recall, that's available as well. But another thing you can do is just go on the different job search engines and go on to LinkedIn jobs, put in librarian, or whatever type of library or information work you want to do, put in a country and see what happens. Okay, yeah. Thanks. I'll, yeah, I'll send you an email and read that blog post because I'll track it down for you. Yeah, that'd be great. Thank you. Sure. Other questions. I have one more. Just a slightly technical question. You mentioned Carrie McKnight and the services available to us as students. Are those available after we graduate as well or no? So your goodness for the day is yes. Yay. I think that I was recently on a conference call with Carrie. I think I remember Carrie saying that they are open for like a year.
3,069
https://stackoverflow.com/questions/30619725
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Falt4rm, Geoff Atkins, Melvin, https://stackoverflow.com/users/1716356, https://stackoverflow.com/users/1793423, https://stackoverflow.com/users/4859303
Norwegian Nynorsk
Spoken
318
733
Increment value by one on each instance hi have been workin on this .i need to increment the value of i on ech instance of the condition.currently i have three.the code below <?php if( !empty($instance['link']) ): ?> <div class="caption lft slide-heading" data-x="580" data-y="30" data-speed="1800" data-start="1200" data-easing="easeOutExpo"> <a href="<?php echo $instance['link']; ?>"> <?php if( !empty($instance['title']) ): echo apply_filters('widget_title', $instance['title']); endif; ?> </a> </div> <!-- FOCUS HEADING --> <?php endif;?> i tried <?php $i=0;$i++; if( !empty($instance['link']) ): ?> <div class="caption lft slide-heading" data-x="580" data-y="30" data-speed="1800" data-start="1200" data-easing="easeOutExpo"> <a href="<?php echo $instance['link']; ?>"> <?php if( !empty($instance['title']) ): echo apply_filters('widget_title', $instance['title']); endif; ?> </a> </div> <!-- FOCUS HEADING --> <?php echo $i; endif; ?> this results 1 1 1 . I would like to get it as 1 2 3. where did i went wrong? please help update You're not showing how this is being looped, but my guess would be that you're resetting $i to zero with each iteration and then incrementing it. So, it will 1 everytime. Set $i to zero before the loop starts. you have to initialise your counting variable before you start the loop. As it is now you set $i to 0 and increment it to 1 in every iteration. Try this : <?php if( !empty($instance['link']) ) { for($i = 1; $i < 4; ++$i) { echo "<div class=\"caption lft slide-heading\" data-x=\"580\" data-y=\"30\" data-speed=\"1800\" data-start=\"1200\" data-easing=\"easeOutExpo\">"; echo "<a href=\"" . $instance['link'] . "\">"; if(!empty($instance['title'])) echo apply_filters('widget_title', $instance['title']); echo "</a></div>"; echo $i . ' '; } } ?> 0123 0123 0123 it is returning like this Isn't that what u needed ? - If u miss the space character add it the echo with echo $i . ' '; it is returning 3 times Impossible if u use my code. there only 1 loop - It must be out of the example you show us. Code running here : http://www.tehplayground.com/#wRVPD728D Let us continue this discussion in chat.
18,177
https://ceb.wikipedia.org/wiki/El%20Molinillo%20%28suba%20nga%20anhianhi%20sa%20Mehiko%2C%20Estado%20de%20Durango%2C%20lat%2025%2C27%2C%20long%20-105%2C59%29
Wikipedia
Open Web
CC-By-SA
2,023
El Molinillo (suba nga anhianhi sa Mehiko, Estado de Durango, lat 25,27, long -105,59)
https://ceb.wikipedia.org/w/index.php?title=El Molinillo (suba nga anhianhi sa Mehiko, Estado de Durango, lat 25,27, long -105,59)&action=history
Cebuano
Spoken
100
163
Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang El Molinillo. Suba nga anhianhi ang El Molinillo sa Mehiko. Nahimutang ni sa estado sa Estado de Durango, sa sentro nga bahin sa nasod, km sa amihanan-kasadpan sa Mexico City ang ulohan sa nasod. Ang klima bugnaw nga ugahon. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hunyo, sa  °C, ug ang kinabugnawan Enero, sa  °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Septiyembre, sa milimetro nga ulan, ug ang kinaugahan Abril, sa milimetro. Ang mga gi basihan niini Mga suba sa Estado de Durango
32,784
https://pl.wikipedia.org/wiki/Orel%20%28sport%29
Wikipedia
Open Web
CC-By-SA
2,023
Orel (sport)
https://pl.wikipedia.org/w/index.php?title=Orel (sport)&action=history
Polish
Spoken
113
288
Orel (z czes. Orzeł) – czeska organizacja sportowa, powstała na początku XX wieku na Morawach, złożona z katolickich sportowców. Określenie dokładnej daty powstania organizacji jest problematyczne, ponieważ pochodzi z czasów tworzenia i łączenia się lokalnych wspólnot katolickich z przełomu XIX i XX stulecia. Prawdopodobna data powstania to między 1902 a 1909 rokiem. Utworzenie tejże organizacji było odpowiedzią na powstanie antykatolickiego Sokoła. Liczba członków Orel ma obecnie 17000 członków, działa na terenie całych Czech. Uprawiane sporty Do najczęściej uprawianych sportów należą: piłka nożna, tenis stołowy, hokej na lodzie. Linki zewnętrzne Oficiální stránky Orla Historie Orla: smutné pády, hrdé vzestupy a Kdo dává sportu smysl? – Katolický týdeník 26/2009 Stowarzyszenia w Czechach Sport w Czechach
8,621
https://sv.wikipedia.org/wiki/Colpochila%20erythrocephala
Wikipedia
Open Web
CC-By-SA
2,023
Colpochila erythrocephala
https://sv.wikipedia.org/w/index.php?title=Colpochila erythrocephala&action=history
Swedish
Spoken
30
71
Colpochila erythrocephala är en skalbaggsart som beskrevs av Lea 1917. Colpochila erythrocephala ingår i släktet Colpochila och familjen Melolonthidae. Inga underarter finns listade i Catalogue of Life. Källor Skalbaggar erythrocephala
5,917
KlUaqlgYnj4_2
Youtube-Commons
Open Web
CC-By
null
🔴 LATEST UPDATES ON ISRAEL-HAMAS WAR | DAY 186
None
English
Spoken
3,671
4,157
Narriere Ambassador Daniel, stay with us we're going out for a brief break but we'll be right back with more of the special broadcast of I-2040's Newsday 186 of Israel's war against Hamas I-24 News Channel broadcasting from Israel with dozens of correspondents throughout the world brings the truth from Israel to hundreds of millions of people in scores of countries bringing Israel's story to the world I-24 News Channels now on Hot the sequel was held captive for 51 days welcome back to this special broadcast on I-24 News Israel's war against Hamas day 186 now because of that war relations between Israel and Turkey have drastically declined since October 7th and maybe reached or fell to a new level after Turkish President Rajeeb Tayyip Erdogan has just announced new restrictions on exports to Israel the first such economic sanctions imposed by Ankara the second such economic sanctions of the past Israel today told Erdogan that two nations can play at that game more in this report from Ariel Levin Waldman Turkey, one of Hamas's key allies and one of Israel's biggest trade partners has just cut off most exports to Israel Turkey says the embargo will cover 54 categories of goods including concrete, steel and fuel and says it's because Israel refused to let it carry out airdrops into Gaza there is no excuse for Israel to block our attempt to airlift aid to the starving people of Gaza faced with this situation we decided to take a series of new measures against Israel these measures approved by our president will be implemented step by step without delay relations between the two countries have withered since the war with Hamas began after the terrorists slaughter of Israeli border communities on October 7th but until now trade hadn't been touched Turkey is Israel's fifth biggest trade partner exporting more than 7 billion dollars worth of goods to Israel annually raw materials such as iron, steel and plastics taking up the majority of the list we are not talking about like very replaceable goods we are talking about strategic goods like steel like marble and cement these are all very much related to the construction sector and this is something related with the national security of the state of Israel but the reasoning may be more political than diplomatic Erdogan's party just lost a sweeping series of local elections because his traditional Islamist voter base didn't turn out many cited continued trade with Israel as the cause it is very much related to the Turkish politics during the whole election campaign Mr. Erdogan was attacked by the Turkish opposition especially by the Islamist new welfare party that this particular party asked Mr. Erdogan to put an end to all trade relations with Israel Turkey maintains the embargo will continue as long as Israel fights in Gaza but as many Israelis have abandoned Turkish products to miss souring relations it is unlikely to ever recover we are still with the studio Dr. Jacques Neri we want to go and speak with Ambassador Alon Leal the former head of the Israeli diplomatic mission to Turkey joining us this evening from the town of Herzliya Ambassador Leal thank you for joining us Alon I think in the past when we have talked about Israel's diplomatic differences with Turkey you've made the point that Erdogan always kept the economic connections going he separated out diplomacy from trade which is a step now of taking economic sanctions of Turkey against Israel it's certainly serious it's civilian goods that are under an agreement a trade agreement free trade agreement that we signed with Turkey in 1996 so it's against all regulations trade regulations so it has a bilateral meaning because the goods are very important especially to the construction business here that is a sensitive in a sensitive situation now but it has also a wider meaning because this can affect other countries as far as I know it's the first country that has diplomatic full diplomatic relations with Israel that is applying sanctions on civilian goods some spoke on weapons some spoke on sanctions on settlers and settlements but I think it's the only one it's the first one Turkey definitely hopes that there will be more following but bilaterally important and also globally now we know it was really maybe economic concerns that fueled Erdogan's reproshmah with Israel looking maybe to join with Israel and exploiting that natural gas in the eastern Mediterranean Israel now says it's going to apply sanctions back on Turkey in response is that the proper way you think to deal with this situation for Israel to strike back at Turkey with its own economic sanctions and one of the sad things here is that Erdogan did it because he feels that Israel is much weaker than it was on the 6th of October and its ability to respond also globally through the United States or through Europe or through international organizations is minimal the direct response is also not so meaningful because Erdogan still thinks that he can go ahead with and if we will revenge by limiting Israeli goods to go to Turkey he can still stop the oil the Azerbaijanian oil from coming to Israel because the pipeline is going through Turkey so I'm not sure an economic revenge from the Israeli side will be much felt in Turkey and I think it can trigger further moves by Turkey one last question briefly do you think internal politics in Turkey is a factor here as we said in our report yes yes definitely definitely during the municipal elections right before the opposition demanded stopping the trade with Israel and even was critical on Erdogan for not doing so he has the feeling somehow that one of the reasons for his defeat was that he didn't take such measures before the municipal elections so he is doing it now I think it is a factor but not as much as the feeling he has that Turkey does not suffer any reaction international reaction as might have been a year or two ago when Israel had a different international standing Alright Ambassador Alonli, thank you for joining us on I-24 News Danny you have your own history playing a role as deputy minister in previous diplomatic rose with Turkey I'll pick up on something you could add but I want to pick up on something Alonli said shutting down the oil pipeline from Azerbaijan would be a huge escalation you really think Erdogan would go that far? I think if he goes that far that would mean that he will forgo Israel's laying or allowing the natural gas from our European stocks to Europe through Turkey actually the rapprochement that started a few years ago was exactly because he covered very much to be involved with the gas and he knows that Israel has alternatives especially with Cyprus and Greece so if he takes such a strong measure it will not hurt Israel because today the free oil markets are pretty much robust and this is exchangeable but he will risk actually losing that proposition that I'm not sure that Israel should do it anyway but he was still hoping and if he does that for sure we will go the Greek route which will be I think a matter of hurting the Turkish economy and there's tens of billions of dollars huge amounts of money involved in that East Mediterranean gas now Israel today unveiled a new line of defense against the missile and drone attacks launched by Yemen's Iran-backed Tutti rebels against the Red Sea resort of Alat for the first time the Israeli Navy deployed its C-Dome defense system a ship based version of the Iron Dome to shoot down a drone headed for Alat it's the first known operational test that was successfully tested last year more on this report from Dikshita Arvind for the first time an unmanned aerial vehicle which was approaching Israel's southern city of Alat was successfully downed by the Israeli Defense Forces over the Red Sea the drone was intercepted by a new system the C-Dome launched from the Israeli Navy Sa'ar 6-class Corvette Missile Ship the defense establishment continues all the time to upgrade the capabilities of the Iron Dome system on land and at sea in order to increase its effectiveness in the current campaign we successfully tested additional new capabilities for the system in its naval configuration on board the Sa'ar 6-ship along with other layers of the multi-layered defense system layer of the state of Israel Alat has faced repeated ballistic missiles from the Iran-backed Houthis in Yemen as an act of solidarity with Hamas Houthis have also launched a series of attacks targeting shipping in the Red Sea since the inception of Israel's operation in Gaza following the start of Israel's offensive in Gaza Israel deployed missile boats in the Red Sea one of which used the C-Dome to intercept the drone the C-Dome uses the same interceptor as the land-based Iron Dome system both engineered by the Israeli Defense Forces contractor Rafael using the same capabilities linking the ship's systems to the systems on the land and the radar that was developed specifically for the task of protecting the economic waters the system successfully identified the threats rockets, UAVs and cruise missiles and launched towards them from the heart of the sea Naval Iron Dome interceptors that destroyed them with perfect precision the integration of the C-Dome in tandem with the Aero the aerial anti-missile system and the Iron Dome ensures Israel's comprehensive defense system across all domains land, sea and air Jacques the C-Dome proved its worth in the field today Israel has a defense against the Houthis and by the way we also see a decrease in their attacks on shipping through the European effort the speedies I think it's called is the Houthis threat diminishing The Houthis threat has proven to be a failure I mean except for one ship that has sunk all the rest have been hit those were hit were not sunk and I think that the coalition the European and American coalition is very successful in thwarting all the Houthis attacks and they are just right now targeting an aiming installation inside Yemen which seems to be very operational and very successful by the way the same SAR-6 was almost hit a week ago by the drone that was sent from Iraq and hit the naval base of Eilat and another thing is that the Iron Dome is put on other platform it's not the only platform that is being adapted to fight I mean in the sea we have others also I mean strategic ones that are being developed and they are being also operational and I think that this is a good thing because I mean installing such a system on the SAR-6 has saved billions of dollars of development and of course extends Israel's defense capability much further beyond beyond its borders so that's certainly as I said passing the test today let's go now to the U.S. where Israel's battle against Hamas seems to be steadily losing support among leading political figures in the Democratic Party as some Republicans including Donald Trump look to take advantage of that trend by using the Hamas war as a wedge issue in this campaign season for more let's go to our senior U.S. correspondent in New York and Mike some of those things I'm thinking of comments made by reportedly by Senator Elizabeth Warren I got it should be certainly re-raising some concerns and among Israel supporters there in the U.S. and I think here too Warren has generally taken I don't know if it's an anti-Israel bent all the time but certainly it's not been a staunch ally of Israel so her comments today in a Senate hearing where she said she believes it will play out that it will be proven that Israel is committed genocide in Gaza I think is of less concern than some of the more not only middle of the road but pro-Israel traditionally Democrats that have been making comments about possibly conditioning aid we heard today from Gregory Meeks the top Democrat on the House Foreign Affairs Committee again just a staunch pro-Israel ally he represents a district in Queens not far from where we are here rarely has gone against Israel in any measure in any vote saying today that he's flying back to Washington to get more information in a special briefing about whether the United States should sell weaponry to Israel that the Biden administration has proposed including 50 F-15s fairly large weapons package so he said he wants to know whether it's going to be used for quote unquote more death humanitarian aid going into Gaza wants to see make sure that won't lead to a possible longer holding of the hostages there or impair a possible two-state solution this is Gregory Meeks again not one you would look at for possibly withholding weapons to Israel. Tim Cain who was Hillary Clinton's vice presidential candidate partner back in 2016 talked this weekend about potentially withholding aid Nancy Pelosi went on cable station earlier on today and blasted Benjamin Netanyahu who specifically said he's a tragedy and the way the war is being conducted right now is not doing any good for Israel more of a personal attack nevertheless to see Nancy Pelosi who quotes Henry Heret every other second going against Israel in this way is quite concerning so it's these traditional staunch Democratic allies of Israel that are more likely to be some right now than the Bernie Sanders and Elizabeth Warrens of the world. Right and as I mentioned some Republicans including President Trump who said this before that American Jews that vote for Joe Biden are showing there the fact they have no concern for Israel are looking to see this as an issue maybe they think they'll pick up some Jewish votes in the US I don't think Donald Trump threatening anybody with a stern talking to support of Joe Biden and the Democrats is going to win anybody over I think the Jewish vote is kind of played out as it is right now in terms of who's in which camp and I think it's been that way for quite some time I think the longer term concern not only is the lack of a bipartisan agreement on Israel related issues which we're seeing play out more and more within the halls of Congress I think there's no coherent policy right now even on Trump in his four years of office whether you agree with his policies or not he was staunchly pro-Israel in his policies but everything with Trump plays out on a personal level what if he has a complication again with Benjamin Netanyahu what if Yair Lapid or Benny Gantz are in office who tend to sway more to the left in their relationships with Democrats how will that play out so there's no safe play right now for Jews on either side of the aisle I think when it comes to the presidential election all right as soon as it's developing that way Mike Wagenheim in New York thank you for that Danny Ernie Week I asked I told Michael Lauren there must be some times when you're happy you're no longer the ambassador in Washington this is a challenging time for Israel certainly close to the baby since I remember and the question is what should Israel be doing more to try to reverse some of the trends at least on a diplomatic front well first and foremost I think we should show the I would say the more pleasant side of Israel in terms of personal relationships between Israeli leaders and American leaders I think that will play a long I would say way in terms of getting some more support or sympathy but I'll tell you this has never been so bad because the aid the military aid of the United States has been sacrosanct until this war in Gaza the fact that we see more and more people from the mainstream not the progressive not the leftist not the anti Israel which I know which we know where declared ones like Warren and Sandy and Bernie Sanders but other mainstream the fact that they are bringing up the issue of the fans aid this is very dangerous because it is a slippery slope I don't think that we will see it coming imminently but once the genie is out of the battle it can be played about any time in the future we have spoken a couple of times this evening about the possibility or the concern over international opposition to Israel's war and Gaza leading at the very minimum now to public discussion of the likes we haven't heard before of limiting arms sales to Israel even in political circles in the United States and also in Germany these are the two leading foreign suppliers of defense products to Jerusalem the U.S. accounts for 69 percent of arms supplies to Israel and Germany to 30 percent a mandate set down in the 2016 Memorandum of Understanding promised a total of $676 billion I think we have some visuals on this of US military aid over 10 years Germany's arms sales to Israel totaled $326.5 million mainly for air defense systems and communications equipment now at the Hague in the Netherlands today German officials responded strongly to accusations made by Nicaragua's leftist government that charging Berlin with facilitating what it characterizes as Israel's campaign of genocide against Palestinians in Gaza here's what the legal adviser to Germans Foreign Ministry had to say after today's hearing at the IJC unlike Nicaragua we are striving to do justice to both parties to the conflict we are guided by respect for international law responsibility for the security of Israel respect for the suffering of the Palestinian population in Gaza efforts to free the Israeli hostages as well as by the legitimate rights of the Palestinian people to self-determination in the context of a two-state solution we have stated that will reject Nicaragua's unfounded accusations and there is no reason for the ICJ to adopt provisional measures from what let's go to Berlin and speak with journalist and political analyst James Jackson and James how is this being taken now in Germany the irony of course from our perspective in Israel to see Germany being accused of abetting genocide in helping Jews defend itself as opposed to committing genocide against the Jewish people well of course the genocide convention was set up after the Second World War by a Polish Jew Raphael Lemkin who wanted to see people on trial for committing genocide against the Jews so there is a certain historical irony about this case however I think that also makes it slightly painful or even just awkward for many Germans to see themselves effectively on trial for genocide again but this time for supporting the Jews or rather the state of Israel the Jewish state instead of for committing the Holocaust and I think that's why they made one of their arguments today which was one of their principal arguments was that the support for Israel came from Germany's responsibilities from its history however some would also say critics might argue that Germany should have learned a responsibility for all of humanity especially the Jews and not just for defending the Jewish state it's a big political discussion that has been taking place in Germany in the meantime the German public have changed their opinion and are backing a ceasefire by a large majority with 8 out of 10 now wanting Israel to stop 69% want an immediate ceasefire and 8 out of 10 want Germany to put pressure on Israel so we've seen a noted change in senior politicians previously these were activists on the street many of them Palestinian themselves or pro-Palestinian but I do think that the center of society has taken a more critical line towards Israel that of course does not mean that they support Nicaragua's accusation of genocide or that that will go through in the court in the preliminary measures or towards the final ruling of the ICJ or that it would translate into for example limiting arms sales at least not perhaps in the present government James Jackson thank you for that but Jack this is disturbing because as James has said we're seeing a shift in Germany it's something we saw I think a little earlier in France which started out very staunchly on Israel and Manuel Macron certainly growing public opposition and then the shift in fact Macron joining with two Arab leaders how in the Western Quadruses fight but of course Germany as a strategic partner much more important to Israel then for example then I'd say any other country in Europe well you know I'm not surprised I mean about France I mean I've served three years in France and I fought the French administration because of that that remnants of goalism inside the French establishment they still looked at Israel as the goal used to look at us I mean and this doesn't surprise me that Macron has turned back again to those very dark days of France concerning Israel as far as Germany Germany is very important for Israel I mean it just remember that the strategic arm of Israel the submarines are being built by Germans and they are being financed mostly by Germans and this is of utmost importance and I mean paramount importance and we have to safeguard all our relations with Germany and continue to nourish this special relationship otherwise I mean hurting and harming this venue of weapons from Germany could be very dangerous for Israel.
43,142
https://math.stackexchange.com/questions/4481493
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
Pandaaaaaaa, giovanni.demuri, https://math.stackexchange.com/users/1068857, https://math.stackexchange.com/users/251210, https://math.stackexchange.com/users/252071, lulu
English
Spoken
398
621
What's the number of combinations when randomly picking $n$ balls from a bag with infinite number of balls with 3 colors? What's the number of combinations when randomly picking $n$ balls from a bag with infinite number of balls with 3 colors? Suppose 3 colors are A, B and C. I started with $n=1$ and the answer is 3 (A or B or C). For $n=2$, the answer is also easily derived as 6; there is 1 case ending with A (AA), 2 cases ending with B (AB, BB) and 3 cases ending with C (AC, BC, CC). When $n=3$, it's 10 = 1 (only 1 case ending with A for $n=2$) + 3 (cases ending with A or B for $n=2$) + 6 (all possible cases for $n=2$). So I could do the calculation recursively, but what's the general formula for $f(n)$ would look like? Thank you! See Stars and Bars Thank you but how does this applies to the problem? If you have $n$ choices from $k$ colors, then an unordered selection is given by an ordered $k-$tuple of non-negative integers which sum to $n$ so... Thank you I think I understand it now. It's like Theorem 2 in the link you posted. The bar separates different colors. So it's basically like $2$ out of $n+2$. It is exactly the same as Theorem $2$ from that link. With $n$ balls and $k$ colors you get $\binom {n+k-1}{k-1}$ possibilities. In your case, $k=3$ so, yes. $\binom {n+2}{2}$, or $\frac {(n+2)(n+1)}2$. This problem can be seen as one of combination with replacement. More in particular, infinitely many balls of 3 colors are like 3 balls of different colors with replacement (since at each step you can always pick one of the 3 colored balls). Moreover, here, we are not interested in the order. Therefore, we can use the following formula: $$ \frac{(n+r-1)!}{n!(r-1)!} $$ where $r$ is the number of distinct balls (3 in our case) and $n$ is the number of balls that we pick from the bag. Thank you for replying but For $n=3$, what is $r$? I've just changed the notation to make it coherent with the question, sorry. Hopefully this makes it a little bit clearer. Thank you! The Stars and Bars method mentioned in the question comments is also interesting and intuitive approach. You can consider add more details about that approach as well.
29,277
https://stackoverflow.com/questions/60927080
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
Jon Clements, Shabari nath k, Umar.H, ansev, https://stackoverflow.com/users/11884237, https://stackoverflow.com/users/1252759, https://stackoverflow.com/users/12977233, https://stackoverflow.com/users/9375102
English
Spoken
364
770
How to check if a Dataframe contains a list or dictionary I have a dataframe : col1 col2 col3 col4 A 11 [{'id':2}] {"price": 0.0} B 21 [{'id':3}] {"price": 2.0} C 31 [{'id':4}] {"price": 3.0} I want to find out what all columns are of datatype 'list' and 'dictionary' and probably store the result into another list. How do i go about it ? when i use this : data.applymap(type).apply(pd.value_counts) output is : col1 col2 col3 col4 0 a 11 [{'id':2}] {"price": 0.0} 1 b 21 [{'id':3}] {"price": 2.0} 2 c 31 [{'id':4}] {"price": 3.0} Does something like: df.applymap(type).apply(pd.value_counts) get you close? Nothing happens..It just outputs the same dataframe what is your expected output? have your column dict and list or only str? @Anti_cse51 err... that definitely won't return the same DF...? Could you [edit] your Q to show what the output of the above is given your input? It's not clear if you've just got strings that need interpreting or whether you've actually got list/dict objects. @JonClements:expected output probably be a list L = ['list':col2,'dict':col4]..or something like that.. @ansev : col1 is str, col2 is int,col3 is list, col4 is dict.. Okay... so using the code I put in a comment - can you [edit] to show the output of that? You'll get an index of the column names and then columns of the count of types that column contains... Then we can probably tweak that accordingy... @JonClements : output is still the same .. IIUC, we can use apply and literal_eval from the ast standard library to build up a dictionary: for performance reasons, lets work with the first row of the data frame as apply is computationally quite heavy. from ast import literal_eval data_dict = {} for col in df.columns: try: col_type = df[col].iloc[:1].apply(literal_eval).apply(type)[0] data_dict[col] = col_type except (ValueError,SyntaxError): data_dict[col] = 'unable to evaluate' print(data_dict) {'col1': 'unable to evaluate', 'col2': 'unable to evaluate', 'col3': list, 'col4': dict} does not work for datetype object ? Error :2020-03-08T14:10:23Z ^ SyntaxError: invalid token @Anti_cse51 there is no datetime in your example? Sorry @Datanovice : I forgot to add datatime column. Rookie mistake . @Anti_cse51 see edit, you just need to handle the multiple exceptions.
18,316
https://stackoverflow.com/questions/32242465
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Alex Andrei, Manoj Salvi, Sougata Bose, https://stackoverflow.com/users/2500658, https://stackoverflow.com/users/5043552, https://stackoverflow.com/users/5169155
English
Spoken
766
2,064
PHP Warning: mysqli_connect(): Cannot connect php with mysql I try to connect php and mysql several times but I am always getting this errors when I tried to compile php code this is output on checking php and mysql Command : php -i | grep -i mysql Configure Command => './configure' '--prefix=/usr' '--sysconfdir=/etc' '-- localstatedir=/var' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '-- enable-fpm' '--with-fpm-user=apache' '--with-fpm-group=apache' '--with- config-file-path=/etc' '--with-zlib' '--enable-bcmath' '--with-bz2' '-- enable-calendar' '--enable-dba=shared' '--with-gdbm' '--with-gmp' '--enable- ftp' '--with-gettext' '--enable-mbstring' '--with-mysql=mysqlnd' '--with- mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-readline' PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0 mysql MySQL Support => enabled Client API version => mysqlnd 5.0.11-dev - 20120503 - $Id:3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ mysql.allow_local_infile => On => On mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off mysqli MysqlI Support => enabled Client API library version => mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ mysqli.allow_local_infile => On => On mysqli.allow_persistent => On => On mysqli.default_host => no value => no value mysqli.default_port => 3306 => 3306 mysqli.default_pw => no value => no value mysqli.default_socket => no value => no value mysqli.default_user => no value => no value mysqli.max_links => Unlimited => Unlimited mysqli.max_persistent => Unlimited => Unlimited mysqli.reconnect => Off => Off mysqli.rollback_on_cached_plink => Off => Off mysqlnd mysqlnd => enabled Version => mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_pa ssword API Extensions => pdo_mysql,mysqli,mysql mysqlnd statistics => PDO drivers => mysql, sqlite pdo_mysql PDO Driver for MySQL => enabled Client API version => mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ pdo_mysql.default_socket => /tmp/mysql.sock => /tmp/mysql.sock This is config in mysql # Begin /etc/mysql/my.cnf # The following options will be passed to all MySQL clients [client] #password = your_password #port = 3306 #socket = /run/mysqld/mysqld.sock #bind-address = 127.0.0.1 # The MySQL server [mysqld] user = mysql port = 3306 pid-file = /srv/mysql/nutnud.pid socket = /run/mysqld/mysqld.sock datadir = /srv/mysql skip-external-locking key_buffer_size = 16M max_allowed_packet = 1M sort_buffer_size = 512K net_buffer_length = 16K myisam_sort_buffer_size = 8M explicit_defaults_for_timestamp=1 #bind-address = 10.0.60.163 bind-address = 0.0.0.0 # Don't listen on a TCP/IP port at all. #skip-networking # required unique id between 1 and 2^32 - 1 server-id = 1 # Uncomment the following if you are using BDB tables #bdb_cache_size = 4M #bdb_max_lock = 10000 # Uncomment the following if you are using InnoDB tables #innodb_data_home_dir = /srv/mysql #innodb_data_file_path = ibdata1:10M:autoextend #innodb_log_group_home_dir = /srv/mysql # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memory usage too high #innodb_buffer_pool_size = 16M #innodb_additional_mem_pool_size = 2M # Set .._log_file_size to 25 % of buffer pool size #innodb_log_file_size = 5M #innodb_log_buffer_size = 8M #innodb_flush_log_at_trx_commit = 1 #innodb_lock_wait_timeout = 50 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash # Remove the next comment character if you are not familiar with SQL #safe-updates [isamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer_size = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout This is a code when I use to test php connect to mysql <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = '00000000'; $conn = mysqli_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); if ($conn) { echo "CONNECT OK"; } $dbname = 'mysql'; mysql_select_db($dbname); ?> and I get this error PHP Warning: mysqli_connect(): (HY000/2002): No such file or directory in /srv/www/php-test.php on line 6 on browser it shows Error connecting to mysql which means my php works just fine. I use Operating system from Linux from scratch book 7.7 and my system doesn't have any packet manager. I can login to mysql on linux. If anybody have any clue which and where I should take a look. Please help me out. Thank you very much. try $dbhost='127.0.0.1'; you are using mysqli (mysql improved), but you haven't mentioned name of database you want to connect... mysqli_connect & mysql_select_db together... yes you are using mysqli for connection and mysql for selecting db... just put the db name with mysqli_connect() only
6,084
https://fi.wikipedia.org/wiki/Marie-Gayanay%20Mikaelian
Wikipedia
Open Web
CC-By-SA
2,023
Marie-Gayanay Mikaelian
https://fi.wikipedia.org/w/index.php?title=Marie-Gayanay Mikaelian&action=history
Finnish
Spoken
71
203
Marie-Gayanay Mikaelian (s. 3. maaliskuuta 1984 Lausanne) on sveitsiläinen tennispelaaja, joka siirtyi ammattilaiseksi vuonna 2001. Hän on urallaan saavuttanut yhden turnausvoiton, joka tapahtui Taškentissä vuonna 2002, jolloin hän kukisti finaalissa Tatjana Putšekin. Lisäksi hän on finaalin häviävänä osapuolena ollut kolme kertaa. Grand Slam -turnauksissa hän on yltänyt kahdesti toiselle kierrokselle Ranskan avoimissa ja kerran US Openissa ja Wimbledonissa. Hänen paras ranking-sijoituksensa on 33. Lähteet Sveitsiläiset tennispelaajat Vuonna 1984 syntyneet Elävät henkilöt
46
https://uk.wikipedia.org/wiki/%D0%93%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D0%BB-%D0%B4%D0%B8%D1%80%D0%B5%D0%BA%D1%82%D0%BE%D1%80%201-%D0%B3%D0%BE%20%D1%80%D0%B0%D0%BD%D0%B3%D1%83
Wikipedia
Open Web
CC-By-SA
2,023
Генерал-директор 1-го рангу
https://uk.wikipedia.org/w/index.php?title=Генерал-директор 1-го рангу&action=history
Ukrainian
Spoken
243
827
Генерал-директор 1-го рангу ( — «загальний», «спільний»; і від , «спрямовую, керую») .— «здібність», «винахідливість»; і , — «старший») — персональне звання вищого начальницького складу в Народному комісаріаті шляхів сполучення в 1943–1954. Генерал-директор 1-го рангу був вище за рангом, ніж генерал-директор 2-го рангу і нижче за віце-генерал-директора шляхів сполучення 2-го рангу. Історія Наказом № 711Ц від 13 вересня 1943 року для працівників залізничного транспорту (НКШС) введено персональні звання. Працівників було поділено на склади: рядовий, молодший, середній, старший та вищий начальницький. До звання додавалося уточнення згідно зі спеціальністю працівника: руху, тяги, шляхів та будівництва, зв'язку та адміністративної служби. 12 червня 1954 року було видано Указ Президії Верховної Ради СРСР «Про скасування персональних звань і відзнак для працівників цивільних міністерств і відомств». Знаки розрізнення Погони вищого начальницького складу зі срібним «генеральським зигзагом». Ґудзики у верхній частині погона золочені з гербом СРСР. Для позначення служби, до якої відносився працівник, у верхній частині погона розміщувалася металева оксидована емблема. Звання позначалося на погонах п'ятипроменевими 20 мм зірочками (від одної до чотирьох). Генерал-директор 1-го рангу мав на погонах по три зірочки. Див. також Знаки розрізнення залізничників Джерела Приказ Народного комиссариата путей сообщений № 711Ц 13 сентября 1943 г. О выполнении Указа президиума Верховного Совета СССР от 4 сентября 1943 г. «О введении персональных званий и новых знаков различия для личного состава железнодорожного транспорта» Мурашев Г.А. Титули, чини, нагороди. 3-є видання. — СПб.: ТОВ «Видавництво «Полігон», 2003. — 347[5]с.іл. 16 стор. Кол.іл. (Історична бібліотека) —ISBN 5-89173-148-7 Знаки розрізнення залізничників України
1,952
https://de.wikipedia.org/wiki/Milad%20Intezar
Wikipedia
Open Web
CC-By-SA
2,023
Milad Intezar
https://de.wikipedia.org/w/index.php?title=Milad Intezar&action=history
German
Spoken
280
557
Milad Intezar (* 4. November 1992 in Kabul) ist ein niederländisch-afghanischer Fußballspieler. Er steht beim niederländischen Verein FC Lienden unter Vertrag und ist seit 2016 afghanischer Nationalspieler. Karriere Verein Intezar wurde in der afghanischen Hauptstadt Kabul geboren und kam im Alter von vier Jahren in die Niederlande. Er begann mit dem Fußballspielen beim CVV Renkum und wechselte als Neunjähriger in die Jugend des Ehrendivisionären NEC Nijmegen. Zur Saison 2011/12 aber musste er den Verein verlassen, was er später als den Tiefpunkt seiner Karriere bezeichnete. Er wechselte daraufhin zum FC Oss in die Eerste Divisie. Sein Debüt in der zweiten Liga absolvierte der Abwehrspieler am 28. Oktober 2011 (11. Spieltag) bei der 0:2-Niederlage gegen den FC Eindhoven. Insgesamt spielte Intezar 15-mal in der Liga und verließ den Verein am Ende der Saison. Nach einem Jahr bei DIO '30 Druten wechselte er zum damaligen Viertligisten FC Lienden. Nach einem 10. Platz in der ersten Saison gewann man in der Saison 2014/15 die Meisterschaft und auch die Relegationsspiele gegen die Kozakken Boys, allerdings verzichtete man auf den Aufstieg. Erst in der darauffolgenden Saison stieg man nach der erneuten Meisterschaft auf. Nationalmannschaft Zusammen mit seinen Vereinskollegen Anoush Dastgir und Esmat Shanwary wurde Intezar 2015 zu einem Trainingslager der afghanischen A-Nationalmannschaft nach Dubai eingeladen. Zu einem Einsatz in den Testspielen gegen Laos (2:0) und Bangladesch kam er jedoch nicht. Erst am 5. September 2016 debütierte er im Nationaltrikot bei der 0:2-Niederlage gegen Libanon; in der 72. Minute sah er wegen wiederholten Foulspiels die gelb-rote Karte. Erfolge Meister der Derde Divisie (2): 2015, 2016 Aufstieg in die Tweede Divisie (1): 2016 Weblinks Einzelnachweise Fußballnationalspieler (Afghanistan) Fußballspieler (TOP Oss) Fußballspieler (FC Lienden) Afghane Niederländer Geboren 1992 Mann
14,097
https://it.wikipedia.org/wiki/Campionati%20europei%20di%20nuoto%202010%20-%20200%20metri%20rana%20femminili
Wikipedia
Open Web
CC-By-SA
2,023
Campionati europei di nuoto 2010 - 200 metri rana femminili
https://it.wikipedia.org/w/index.php?title=Campionati europei di nuoto 2010 - 200 metri rana femminili&action=history
Italian
Spoken
87
155
Le qualifiche per la semifinale si sono svolte la mattina del 12 agosto 2010, mentre la semifinale si è svolta la sera dello stesso giorno. La finale, invece, si è svolta la sera del 13 agosto 2010. Medaglie Record Prima della manifestazione il record del mondo (RM), il record europeo (EU) e il record dei campionati (RC) erano i seguenti. Durante la competizione sono stati migliorati i seguenti record: Risultati batterie Sono ammesse alla semifinale solo due atlete per nazione. Semifinali Finale Collegamenti esterni 200 rana F
44,517
https://eo.wikipedia.org/wiki/Jamajko%20en%20la%20Vintra%20Olimpiko%202014
Wikipedia
Open Web
CC-By-SA
2,023
Jamajko en la Vintra Olimpiko 2014
https://eo.wikipedia.org/w/index.php?title=Jamajko en la Vintra Olimpiko 2014&action=history
Esperanto
Spoken
157
331
Fakte ekde la unua apero de jamajka teamo en la vintra olimpiko 1988 ĝis la jaro 2010 ĉiam la lando sendis nur atletojn pri bobado, foje por du- kaj kvar-persona bobo, ĉi-foje nur por du-persona. Post 2010 tio ŝanĝiĝis, sed tamen bobado restis la ĉefa vintrosporta disciplino de la jamajkanoj. Kaj same fakte, neniam en la sep vintraj partoprenoj ĝis 2014 la jamajkanoj iam ajn akiris medalon, ankaŭ poste en 2018 kaj 2022 ne ... la partopreno estas pli simbola. Tial ĝis nun pri la aliaj partoprenoj en vintraj olimpikoj ne keiĝis apartaj artikoloj, por 2014 tamen jes, nur pro tio ke en Soĉi iu fotis bonajn bildojn de la du-persona bobo en la konkuro (ekzemplero videblas sube). Kompreneble, unu el la du bobistoj ankaŭ havis la honoron esti la flagotenanto de la teamo, kaj lia kolego estis la resta teamo. Kunordigis la teaman partoprenon la Jamajka Olimpika Asocio. Landoj en la Vintra Olimpiko 2014 Vintra Olimpiko
50,597
https://math.stackexchange.com/questions/1658685
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
English
Spoken
201
539
Real Analysis, Folland problem 3.3.23 Differentiation on Euclidean Space Background information: If $f\in L^{1}_{loc}$, we define its Hardy-Littlewood maximal function $Hf$ by $$Hf(x) = \sup_{r > 0}A_r|f|(x) = \sup_{r > 0}\frac{1}{m(B(r,x))}\int_{B(r,x))}|f(y)|dy$$ where $L^{1}_{loc}$ is the space of locally integrable functions. Also, $Hf$ is measurable. A useful variant of the Hardy-Littlewood maximal function is $$H^{*}f(x) = \sup\{\frac{1}{m(B)}\int_B |f(y)|dy: B \ \text{is a ball and} \ x\in B\}$$ Show that $H f\leq H^{*}f\leq 2^n Hf$. Attempted proof: First, we will show that $Hf\leq H^{*}f$. I believe this is true since the way Hardy-Littlewood maximal function $Hf$ is defined where $r$ is strictly positive. I am not sure how to show this in a rigorous fashion though. Any suggestions is greatly appreciated. First of all, the supremum in the definition of $H^*f(x)$ is taken over a set which contains the set in the definition of $Hf(x)$. Since suprema get larger as the sets get larger, this shows that $Hf(x)\leq H^*f(x)$. For the other inequality, let $B$ be any ball containing $x$, and suppose that $B$ has radius $r$. Then $B\subset B(2r,x)$, hence $$\frac{1}{m(B)}\int_B|f(y)|\;dy\leq \frac{m(B(2r,x))}{m(B)}\frac{1}{m(B(2r,x))}\int_{B(2r,x)}|f(y)|\;dy\leq 2^n Hf(x)$$ Since $B$ was any ball containing $x$, taking the supremum over all such balls shows that $H^*f(x)\leq 2^nHf(x)$.
44,443
https://stackoverflow.com/questions/4499423
StackExchange
Open Web
CC-By-SA
2,010
Stack Exchange
ACAB, Ahmed Mostafa, Charifa Alaoui, Dad, Dave DeLong, Eiko, Georg Fritzsche, Jaggie McCool, Jyoti kumari, Kashyap Kuntal, Mickel Maldonado, Pierre Karaffa, Pinki Gupta, Radu, Thomas Clayson, Yarragudi Redeppa Reddy, bbum, hatfinch, https://stackoverflow.com/users/107392, https://stackoverflow.com/users/115730, https://stackoverflow.com/users/145108, https://stackoverflow.com/users/168225, https://stackoverflow.com/users/25646, https://stackoverflow.com/users/356292, https://stackoverflow.com/users/414972, https://stackoverflow.com/users/549897, https://stackoverflow.com/users/9498960, https://stackoverflow.com/users/9498961, https://stackoverflow.com/users/9498962, https://stackoverflow.com/users/9499017, https://stackoverflow.com/users/9499040, https://stackoverflow.com/users/9499124, https://stackoverflow.com/users/9499202, https://stackoverflow.com/users/9499268, https://stackoverflow.com/users/9499402, https://stackoverflow.com/users/9506071, https://stackoverflow.com/users/9506749, lalaland1994
English
Spoken
1,284
2,081
I have a Objective C function that takes any type of object by reference. But when i pass a NSMutableArray My function does not recognise It I have a function That takes by reference any kind of object -(BOOL)RemoteCall:(id**)DataClass; in the implementation i use [*DataClass isMemberOfClass:[NSMutableArray class] to find out the type of the object. The problem is it does not work with NSMUtableArrays Does anybody have a solution to this problem ? Here is the relevant code: Implementation: -(BOOL)RemoteCall:(id**)DataClass { if([*DataClass isMemberOfClass:[NSMutableArray class] ] == YES) { NSMutableArray * SW =(NSMutableArray *)*DataClass; //do something with SW DataClass= (id**)SW; return TRUE; } } Any help and I mean anything at all will be appreciated, I'm stuck. Method Call: NSMutableArray * channelArray = [[NSMutableArray alloc]init] Services * serv = [[Services alloc] init]; return [serv RemoteCall:&channelArray]; I'm thoroughly confused - what do you actually want to happen to channelArray? Do you want to change its contents or do you want to change what actual instance it points to by calling RemoteCall? Pass by reference in Objective-C is almost never the right way. There are a number of problems with that code. (id**) is a pointer to a pointer to a pointer to an object. Probably not at all what you want. YES and NO are BOOL return types; not TRUE there is no reason in that code to be returning something by reference. method names start with lower case letters. Arguments do, too. There will never be an instance of NSMutableArray in an application; just subclasses You can't tell the difference between a mutable and immutable array in the first place; check for isKindOfClass: or isMemberOfClass: for an NSMutableArray won't do you much good (it is useful, but misleading). This is better: -(BOOL)remoteCall: (id) dataThing { if([dataThing isKindOfClass:[NSMutableArray class]] == YES) { NSMutableArray *swArray = dataThing; // not strictly necessary, but good defensive practice //do something with swArray return YES; } return NO; } To be called like: NSMutableArray * channelArray = [[NSMutableArray alloc]init]; // you'll need to release this somewhere Services * serv = [[Services alloc] init]; return [serv remoteCall:channelArray]; Since you don't return a different array in remoteCall:, channelArray's contents will be manipulated by the method and the YES/NO return value. If there is some reason why the above seemingly won't work for you, please explain why. Note: The code obviously requires an NSMutableArray if you are going to muck with the contents. The isKindOfClass: could be checking for NSMutableArray or NSArray and it wouldn't matter either way. When using arrays in your code and requiring a mutable array, it is up to you to make sure the data flow is correct such that you don't end up w/an immutable array where you need a mutable array. Very first line is super large and bold? Must be an answer from @bbum! ;) (You'll also want to release the serv object...) since trying to modify an NSArray throws an exception, IIRC, being able to test if an collection is mutable seems like it might be useful. Care to explain the reasoning for why this isn't good practice? (note that I've never felt the need to do this, just musing about ObjC here). Sure; if you can differentiate between NSArray* and NSMutableArray*, then every API that returns an NSArray ends up having to return an autoreleased copy of the internal NSMutableArray oft used as a backing store. Similarly, you end up w/code that does a lot of if-immutable-copy, but there is no way to fix up all references to the original immutable copy and, thus, object graph maintenance becomes an utter nightmare. All good points, although "There will never be an instance of NSMutableArray in an application; just subclasses" might change whenever the implementor of the foundation classes feels like it. Thanks guys. I'm new to Objective C started 3 weeks ago. Seems I have to learn a lot more. This answered a lot of questions. But what if i would need to use the array has an out-parameter (pass a reference to a pointer to receive an instance) just like in this post: http://stackoverflow.com/questions/2939695/passing-an-array-by-reference-in-objective-c but for every type of object It's also good defensive programming to compare with NO rather than YES -- the former is always zero, whereas the latter can take any number of other values, and who knows which second-hand third-party header may have redefined it? @hatfinch Absolutely correct. @Radu All objects are passed by reference; if you need to put something in a mutable array, pass the array as an argument and call addObject: in the receiver. That is it. If you don't need to reassign your variable, then don't use this. id or NSObject * is just fine and works by reference anyway. id * or NSObject ** would be references. id ** doesn't make sense at all here. Also, learn naming conventions (like upper/lowercase). NSArray is a class cluster. That means that every NSArray instance is actually an instance of some subclass. Only isKindOfClass: is useful for class-membership testing with class clusters. Also... thats horrible code - please accept this: -(BOOL)remoteCall:(id)dataClass { if([dataClass isKindOfClass:[NSMutableArray class]]) { NSMutableArray *sw =(NSMutableArray *)dataClass; return YES; } } that should work. Constructive critisism of coding: You need to adhere to coding conventions. Although your code will work... its not brilliant to read and theres a lot of unnecessary *s and such. Function names should be camel coded with a preceeding lower-case letter as should variable names. Passing (id) into a function doesn't require *s at all. Objects you pass into a function only available throughout the scope of the method anyway and that method doesn't own it, I'm not sure what you're trying to do with all the extra *s, but just treat objects you pass into the method as if you don't own them. :) Might as well return YES;. But more importantly, you missed the "by reference" part :) ah... missed that. return TRUE should still work, but in objc Georg is right - the proper way to work with BOOLs is YES and NO. Georg, you talking about passing vars into a method? Thats what I wanted to say, but couldn't think of the right words! :p I thought he meant "passing channelArray by reference and making it point to another instance". But looking at it again i'm fully confused as to what he wants, so... ;) from the look of his code it seems he just wants to return YES if the object is an NSMutableArray... :/ hes only returning a BOOL... :/ hmm i see what you mean though - i'm confused now. :p yes i want to pass channelarray has a reference and keep the changes to it outside the method. all the pointers (**) i used are for using array has an out-parameter. I got the idea from this post http://stackoverflow.com/questions/2939695/passing-an-array-by-reference-in-objective-c don't bother - just have a method that returns a mutable nsarray or something similar. :) its much easier. :) As Eiko said before, i'd use just id and not double pointers to ID. I'm also pretty sure that isMemberOfClass is your Problem. isMember does not check for inheritance, so you're only asking for Top level Classes. isKindOfClass is probably the better choice, as there is no guarantee that Apple doesn't use an internal subclass of NSMutableArray internally. Check the Apple Docs. i'd write it as such: -(BOOL)RemoteCall:(id)dataClass { if([dataClass isKindOfClass:[NSMutableArray class] ] == YES) { NSMutableArray * SW =(NSMutableArray *)dataClass; //do something with SW return TRUE; } } Change the TRUE to YES and add a return NO; at the end and this would be correct. Note also that the methods are isKindOfClass:/isMemberOfClass: (the colon is significant). Good answer save for these minor quibbles!
43,586
https://ms.wikipedia.org/wiki/Kampung%20Wakaf%20Kedondong
Wikipedia
Open Web
CC-By-SA
2,023
Kampung Wakaf Kedondong
https://ms.wikipedia.org/w/index.php?title=Kampung Wakaf Kedondong&action=history
Malay
Spoken
103
278
Kampung Wakaf Kedondong merupakan sebuah kampung yang terletak di Bukit Payong, dalam Terengganu, iaitu sebuah negeri di Malaysia. Terengganu merupakan sebuah negeri yang mempunyai sultan dan salah sebuah negeri yang membentuk negara Malaysia. Ia juga dikenali dengan gelaran Terengganu Darul Iman. Terdapat banyak pulau peranginan yang terletak berhampiran pantai Terengganu, seperti Pulau Kapas, Pulau Redang, Pulau Perhentian Besar, Pulau Perhentian Kecil dan Pulau Tenggol.. Terengganu terkenal dengan hidangan nasi dagang, dan keropok lekor. Kemudahan asas Pendidikan Tempat beribadat Poskod Poskod yang digunakan di Kampung Wakaf Kedondong, Bukit Payong, Terengganu ialah 21400. Rujukan Pautan luar Lokasi Kampung Wakaf Kedondong di Peta Google Wakaf Kedondong
36,921
https://my.wikipedia.org/wiki/%E1%80%80%E1%80%BB%E1%80%B1%E1%80%AC%E1%80%84%E1%80%BA%E1%80%B8%E1%80%95%E1%80%BC%E1%80%B1%E1%80%AC%E1%80%80%E1%80%BA%E1%80%9B%E1%80%BD%E1%80%AC%E1%81%8A%20%E1%80%99%E1%80%80%E1%80%BD%E1%80%B1%E1%80%B8%E1%80%99%E1%80%BC%E1%80%AD%E1%80%AF%E1%80%B7%E1%80%94%E1%80%9A%E1%80%BA
Wikipedia
Open Web
CC-By-SA
2,023
ကျောင်းပြောက်ရွာ၊ မကွေးမြို့နယ်
https://my.wikipedia.org/w/index.php?title=ကျောင်းပြောက်ရွာ၊ မကွေးမြို့နယ်&action=history
Burmese
Spoken
26
313
ကျောင်းပြောက်ရွာ ()သည် မကွေးတိုင်းဒေသကြီး၊ မကွေးခရိုင်၊ မကွေးမြို့နယ်၊ သရက်လေးပင်ကျေးရွာအုပ်စု၌ တည်ရှိသည်။ ရွာနေရာကုတ်မှာ ၁၈၄၈၉၉ ဖြစ်သည်။ ၂၀၁၄ သန်းခေါင်စာရင်းအရ သရက်လေးပင်ကျေးရွာအုပ်စုတွင် ကျား ၁၅၆၇ ဦး၊ မ ၁၈၈၇ ဦး၊ လူဦးရေ စုစုပေါင်း ၃၄၅၄ ဦးနေထိုင်သည်။ ကိုးကား မကွေးမြို့နယ်ရှိ ရွာများ
50,132
https://stackoverflow.com/questions/61740299
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
G. Anderson, Juan Sebastián Osorno Bolívar, Mazziotti Raffaele, https://stackoverflow.com/users/11202170, https://stackoverflow.com/users/7835267, https://stackoverflow.com/users/9586057
English
Spoken
158
328
Iterate over queried dataframe (Pandas) I'm trying to iterate over a queried Pandas dataframe: Column=ORIG_FID. So for every ORIG_FID (0, 1,2,...) I have two rows of (x,y). Then I would like to use ax.plot(x,y) drawing a line that joins every pair of coordinates for every ORIG_FID. So far I've tried this: for i in df[df['ORIG_FID'].eq(i)]: ax.plot(df[df['x']].values.tolist()[i], df[df['y']].values.tolist()[i]) Note: Also, there is one particular dataframe that doesn't have two rows per ORIG_FID (it can have 2, 3 or whatever number of rows) but the idea is the same, I'd like to plot straight lines for every coordinate in every ORIG_FID value. Thanks in advance. Please provide sample input and expected output data according to How to make good pandas examples to make a [mcve] there is something wrong in this line "for i in df[df['ORIG_FID'].eq(i)]:" "i" is repeated in the statement of the for loop Check sample input image. Expected output data: ax.plot(x, y) for (x,y)-pair in every ORIG_FID.
6,404
https://pl.wikipedia.org/wiki/S%C4%99dziw%C3%B3j%20z%20Jarocina
Wikipedia
Open Web
CC-By-SA
2,023
Sędziwój z Jarocina
https://pl.wikipedia.org/w/index.php?title=Sędziwój z Jarocina&action=history
Polish
Spoken
360
958
Sędziwój z Jarocina herbu Zaremba (1249/1250–1305/1306) – wojewoda poznański. Życiorys Sędziwój z Jarocina był synem Janka, wojewody i kasztelana kaliskiego, a w końcu wojewody poznańskiego. Rodzina ta była blisko związana z księciem Bolesławem Pobożnym, który Sędziwoja trzymał do chrztu i z tego tytułu w latach 1249/50 nadał Jankowi 5 wsi. Wraz z bratem brał w czerwcu 1271 udział w wyprawie księcia krakowskiego Bolesława Wstydliwego na Śląsk, należąc do posiłkowego oddziału wielkopolskiego, a następnie uczestniczył w zdobywaniu przez Pobożnego Kujaw inowrocławskich. Będąc marszałkiem dworu w gronie dostojników wielkopolskich i kujawskich poręczył finansowe zobowiązanie księcia wobec zakonu krzyżackiego. Bolesław Pobożny najpóźniej w 1276, a może już w 1271 mianował go podkomorzym gnieźnieńsko-kaliskim. Sędziwój z owym urzędem przeszedł po zgonie księcia w służbę Przemysła II. Towarzyszył Przemysłowi II na zjeździe z Mściwojem II w Kępnie w 1282. Przemysł przeniósł go w czerwcu lub lipcu 1282 na podkomorstwo poznańskie, a przed lutym 1284 na kasztelanię rudzką. W 1284 z niewiadomych powodów zawiązał wówczas przeciw Przemysłowi spisek: jesienią 1284 opanował gród kaliski i przekazał księciu wrocławskiemu Henrykowi Prawemu. W 1285 po odzyskaniu Kalisza przez Przemysła stracił swe dobra i wraz ze współrodowcem, wojewodą poznańskim Beniaminem został przez niego uwięziony. Powrócił w 1290 lub 1291 na odzyskaną, kasztelanię rudzką i zarazem na podkomorstwo kalisko–gnieźnieńskie, a jeszcze wcześniej w 1289 książę przywiesił pieczęć do aktu braci Jankowiców dla biskupstwa lubuskiego. Sędziwój jeszcze niejednokrotnie występował w otoczeniu Przemysła. W 1294 stracił kasztelanię rudzką. Władysław Łokietek, którego Zarembowie poparli solidarnie po śmierci Przemysła, na przełomie 1298/99 awansował go na kasztelana poznańskiego. Wraz ze współrodowcami brał udział w 1300 w przewrocie na rzecz Wacława II i z rąk tego króla otrzymał w latach 1301/02 urząd wojewody poznańskiego. Popadł w niełaskę w końcu 1305 lub na początku 1306 i utracił swój urząd. Jeszcze raz odzyskał go przy Henryku głogowskim, za którym Zarembowie z kolei się opowiedzieli. Zmarł przed 20 marca 1306, w dokumencie z 11 lutego 1308 wymieniony jest już nowy wojewoda. Sędziwój miał czterech synów: młodo zmarłego Janka, wojewodę kaliskiego Marcina, Filipa z Jarocina oraz wojewodę kaliskiego Beniamina z Uzarzewa. Bibliografia Biografia w iPSB Wojewodowie poznańscy (Polska średniowieczna) Kasztelanowie poznańscy (średniowieczni) Podkomorzowie poznańscy Zarembowie herbu Zaremba Ludzie związani z Jarocinem
28,386
https://nl.wikipedia.org/wiki/Chloroselas%20mazoensis
Wikipedia
Open Web
CC-By-SA
2,023
Chloroselas mazoensis
https://nl.wikipedia.org/w/index.php?title=Chloroselas mazoensis&action=history
Dutch
Spoken
49
93
Chloroselas mazoensis is een vlinder uit de familie van de Lycaenidae. De wetenschappelijke naam van de soort is voor het eerst gepubliceerd in 1898 door Roland Trimen. De soort komt voor in de droge savannen van Tanzania, Zambia, Zimbabwe, Botswana, Zuid-Afrika en Swaziland. Lycaenidae Dier uit het Afrotropisch gebied
12,632
https://si.wikipedia.org/wiki/%E0%B7%81%E0%B7%92%E0%B7%80%E0%B7%8A%E0%B6%B1%E0%B7%9A%E0%B6%BB%E0%B7%92%20%E0%B6%BD%E0%B7%99%E0%B6%B1%E0%B7%8A
Wikipedia
Open Web
CC-By-SA
2,023
ශිව්නේරි ලෙන්
https://si.wikipedia.org/w/index.php?title=ශිව්නේරි ලෙන්&action=history
Sinhala
Spoken
76
636
ශිව්නේරි ලෙන් (शिवनेरी लेणी) ‍යනු ක්‍රි.ව. 1වන සියවසේ දී බෞද්ධ භික්ෂූන් උදෙසා නිර්මාණය වූ කෘත්‍රිම ලෙන් සමූහයකි. ප්‍රකට සංචාරක ආකර්ෂණයක් වන මෙය ඉන්දියාවේ ජුන්නර් සිට 2 km පමණ නිරිතදිගට වන්නට ශිව්නේරි කඳුගැටයේ පිහිටා තිබේ. ජුන්නර් නගරය අවට ඇති සෙසු ලෙන් වන්නේ: මන්මෝඩි ලෙන්, ලෙන්‍යාද්‍රි, සහ තුල්ජා ලෙන් ය. ආශ්‍රේයයන් ඉන්දියාවෙව් බෞද්ධ ලෙන් මහාරාෂ්ට්‍රයේ ලෙන් ඉන්දියානු ශෛලමය ගෘහනිර්මාණ ශිල්පය ඉන්දියාවේ පැරණි ජනාවාස පැවති ස්ථාන ඉන්දියාවේ බෞද්ධ වන්දනා ස්ථාන ඉන්දියාවේ බෞද්ධ ආරාම ඉන්දියවේ බෞද්ධ විහාර ඉන්දියාවේ ගෘහනිර්මාණ ශිල්පය
32,440
https://stackoverflow.com/questions/45338960
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Andrew Kuan, Webkix, https://stackoverflow.com/users/5065781, https://stackoverflow.com/users/7020500
English
Spoken
787
2,168
How to change date to days ago (human time diff) I'm using the WordPress theme Newspaper. Right now the date is appearing as "July 26, 2017", but I would like it to appear as "4 hours ago", or "3 days ago". After looking around, I've found there is a WordPress code that will do this. However, I can't figure out how to replace the current date of my site with human time diff. Does anyone have any suggestions? The get date function my theme uses: function get_date($show_stars_on_review = true) { $visibility_class = ''; if (td_util::get_option('tds_m_show_date') == 'hide') { $visibility_class = ' td-visibility-hidden'; } $buffy = ''; if ($this->is_review and $show_stars_on_review === true) { //if review show stars $buffy .= '<div class="entry-review-stars">'; $buffy .= td_review::render_stars($this->td_review); $buffy .= '</div>'; } else { if (td_util::get_option('tds_m_show_date') != 'hide') { $td_article_date_unix = get_the_time('U', $this->post->ID); $buffy .= '<span class="td-post-date">'; $buffy .= '<time class="entry-date updated td-module-date' . $visibility_class . '" datetime="' . date(DATE_W3C, $td_article_date_unix) . '" >' . get_the_time(get_option('date_format'), $this->post->ID) . '</time>'; $buffy .= '</span>'; } } return $buffy; } Where the function is called: <div class="item-details"> <?php echo $this->get_title();?> <div class="td-module-meta-info"> <?php if (td_util::get_option('tds_category_module_mx1') == 'yes') { echo $this->get_category(); }?> <span class="td-author-date"> <?php echo $this->get_author();?> <?php echo $this->get_date();?> </span> </div> <div class="td-excerpt"> <?php echo $this->get_excerpt();?> </div> </div> The human time diff code: <?php echo str_replace('mins', 'minutes', human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'); ?> the element where I am trying to change the date <?php class td_module_2 extends td_module { function __construct($post) { //run the parrent constructor parent::__construct($post); } function render() { ob_start(); ?> <div class="<?php echo $this->get_module_classes();?>"> <div class="td-module-image"> <?php echo $this->get_image('td_324x160');?> <?php if (td_util::get_option('tds_category_module_2') == 'yes') { echo $this->get_category(); }?> </div> <?php echo $this->get_title();?> <div class="td-module-meta-info"> <?php echo $this->get_author();?> <?php echo wp_relative_date(get_the_time('U'));?> </div> <div class="td-excerpt"> <?php echo $this->get_excerpt();?> </div> <?php echo $this->get_quotes_on_blocks();?> </div> <?php return ob_get_clean(); } } In the functions.php file add function wp_relative_date($post_date) { return human_time_diff( $post_date , current_time( 'timestamp' ) ) . ' ago'; } To display the time add this within the loop echo wp_relative_date(get_the_time('U')); How would I specifically add this to my theme? I have the code above (inside the item details class) You can simply put the first part outside the class on functions.php file. Is it under a class or namespace? I placed the code of the element I changed the date on above in my answer. Does it look right? It's saying all dates are 6 days ago, even if they were 10 days ago or 10 hours ago? Do you think it is because of the function get_date that the theme already had? Do you think I just have to edit that code? ( the first code in my question above) Here is some code that converts to either minutes, hours, or days based on the set current date and time with post date being a date timestamp of when you created the element. Try and see if this fits your requisites. Change $post_date to a timestamp of the creation of your post. (E.G In this example below based on when I posted this answer shows 1 day...) Wrap the code below in a function and pass in $post_date with the wordpress getDate feature with the timestamp ('7/25/2017 00:00:00') and the function will return hours, minutes, days. $seconds_hours = 60*60; $hours_days = $seconds_hours*24; $today = date("Y-m-d"); $timestamp = $today.' '.date("H:i:s"); $post_date = '7/25/2017 00:00:00'; $difference = strtotime($timestamp)-strtotime($post_date); if ($difference>$hours_days) { $date1 = new DateTime(substr($post_date,0,10)); $date2 = new DateTime($today); $since = $date2->diff($date1)->format("%d"); if ($since==1) { $since .= ' day'; } else { $since .= ' days'; } } else if ($difference>$seconds_hours) { $since = floor($difference/$seconds_hours).' hours'; } else { $since = floor($difference/60).' mins';//mins } echo $since; Wordpress Solution (Untested) function human_difference($post_date) { $seconds_hours = 60*60; $hours_days = $seconds_hours*24; $today = date("Y-m-d"); $timestamp = $today.' '.date("H:i:s"); $difference = strtotime($timestamp)-strtotime($post_date); if ($difference>$hours_days) { $date1 = new DateTime(substr($post_date,0,10)); $date2 = new DateTime($today); $since = $date2->diff($date1)->format("%d"); if ($since==1) { $since .= ' day'; } else { $since .= ' days'; } } else if ($difference>$seconds_hours) { $since = floor($difference/$seconds_hours).' hours'; } else { $since = floor($difference/60).' mins';//mins } return $since; } $post_date_time = get_the_date() . ' ' . get_the_time(); //Format this to m/d/Y H:i:s echo human_difference($post_date_time); // x days or x hours or x minutes Thanks for trying to help. I got this error - Parse error: syntax error, unexpected '$post_date_time' (T_VARIABLE), expecting function (T_FUNCTION) on this line - $post_date_time = get_the_date() . ' ' . get_the_time(); //Format this to m/d/Y H:i:s Make sure to add in the correct format into get_the_date and time. EG get_the_date('m/d/Y') etc put the below function in your functions.php file and just call the_time(); and you get ago format date function post_time_ago_format() { return sprintf(esc_html__('%s ago', 'textdomain'), human_time_diff(get_the_time('U'), current_time('timestamp'))); } add_filter('the_time', 'post_time_ago_format');
4,200
https://en.wikipedia.org/wiki/Bailey%20machine%20gun
Wikipedia
Open Web
CC-By-SA
2,023
Bailey machine gun
https://en.wikipedia.org/w/index.php?title=Bailey machine gun&action=history
English
Spoken
609
776
The Bailey Machine Gun was a rapid-fire weapon developed in the late 19th century. It was a multiple barrel weapon similar to the much more commonly known Gatling gun, and was the first weapon of this type to be belt-fed. Although commonly referred to as the Bailey Machine Gun, it is technically not a machine gun since it is externally powered using a hand crank. However, rapid-fire weapons of this type are commonly referred to as machine guns, even though this usage of the term is technically incorrect. History The Bailey Machine Gun was designed in 1874 by Fortune L. Bailey of Indianapolis, Indiana. The initial design had some issues, but by 1875, a reliable working model had been produced by the Winchester Arms Company. This design was submitted to the U.S. Navy for evaluation. In January 1876, Commodore T. H. Patterson of the Navy Yard in Washington, D. C. ordered trials for the new weapon. These trials began on February 11, 1876. It was noted that the weapon was small in comparison to similar weapons, which Bailey explained was due to the fact that the weapon had been designed around the .32 caliber rifle round for demonstration and proof of concept. Initial testing of the weapon had been so successful that Bailey had chosen to demonstrate the weapon as-is, rather than scale the technology up to a larger round. The Navy Board found that Bailey had brought an insufficient number of ammunition belts for a thorough reliability and endurance test, and because of this, they refused to officially take the weapon under consideration. They did allow Bailey to fire off as many rounds as he desired for unofficial consideration, however. The ammunition belts that Bailey had provided held 100 rounds each, and a second belt could not be loaded after a burst of fire had been initiated. The sustained rate of fire was therefore found to be inadequate for Naval requirements. Bailey did manage to demonstrate a very high rate of fire, firing off a complete 100 round belt in 6 seconds for an official firing rate of 1,000 rounds per minute. Commander Sicard, the officer in charge of the evaluation, wrote that "The test that was made for rapidity of fire was, however, truly astonishing. One hundred rounds being fired in about 6 seconds, the gun appearing to be almost in a continual blaze, the whole number ran off smoothly." Design and features Superficially, the Bailey Machine Gun resembled the Gatling gun, as it also had multiple barrels and was hand cranked. The similarity was only superficial though, as the firing mechanism of the Bailey Machine Gun was significantly different than that of the Gatling gun. The Bailey Machine Gun used a belt feed system that did not remove the cartridges from the belt as the weapon was fired. Other rapid-fire weapons of this era used a drum or hopper to hold the ammunition. The belt-feed was considered to be very innovative, and many later machine guns would end up using belt-feed mechanisms of some sort. When the handle was cranked, the barrels as well as the firing mechanism rotated. The round was fired from the top barrel, and the weapon was designed so that a round could not be fired until the round and its associated barrel reached the top position on the weapon. This prevented accidental premature discharges. See also References "The Machine Gun, History, Evolution, and Development of Manual, Automatic, and Airborne Repeating Weapons" by George M. Chinn, Lieutenant Colonel, USMC. Prepared for the Bureau of Ordnance, Department of the Navy, 1951 Early machine guns Machine guns of the United States Multi-barrel machine guns
44,429
https://workplace.stackexchange.com/questions/164804
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
Kat, confused, https://workplace.stackexchange.com/users/118870, https://workplace.stackexchange.com/users/54765
English
Spoken
228
284
Timing between notifying that I am quitting and background check? I accepted a job offer but it is contingent on a background check. In the offer letter, the start date is 2 weeks from now. I did not lie about anything on my resume, but I am always a bit paranoid about accidently making a mistake on my resume or just something out of my control happening. I want to give my current employer two weeks of notice out of respect. Pushing back the start date may be tough as well since they onboard only on Mondays and starting in November means I miss out in open enrollment it seems like. Should I ask my new employer when they expect the background check to be done? Would this make me look bad? Is this usual for an applicant to check up on. My record should be spotless but I am paranoid stuff out of my control, same with the paranoia that I get framed for something I didn't do. Thanks! There should always be an open enrollment period when you start a new job, if you're in the USA. Yes. Tell them that you need to give your current employer notice and ask them when they expect to have the results of the background check. Thanks! I didn't know if it would come off poorly if I asked.
21,473
https://academia.stackexchange.com/questions/178294
StackExchange
Open Web
CC-By-SA
2,021
Stack Exchange
https://academia.stackexchange.com/users/149605, https://academia.stackexchange.com/users/48413, lighthouse keeper, scientist1
English
Spoken
1,049
1,243
Is it a good idea to ask my postdoctoral mentor for a recommendation letter when they have extended my contract yet do not seem impressed by me? I am a postdoctoral fellow, working in a rather prestigious institute in Asia, for about a year. To be frank, I was rather surprised to get a position here, as many people here have spent at least some time in Ivy league level colleges. I did my PhD in a good university in Asia, but it is not well-known for my field. Moreover, I did my undergraduate degree in my home country, and it is not a very reputable university despite being the best in the country. Part of the reason I got this position was because my present mentor decided to fund me from her grant, unlike others who are funded by the institute. My mentor is also highly respected in her field, basically a superstar. However, I made some mistakes after coming to the institute. Firstly my mentor had told me earlier that I had research freedom, but after arriving I slowly realized she did not really mean it. The main mistake was choosing to work on a project with multiple other authors including her, and in a topic that was only related to my previous work in a minor way. It was really out of curiosity and an interest to learn that I took up this project. As the project was going on, she started hinting that we should discuss topics closer to my specialization, but I naively said maybe we could do that after the current project was done, and she just chuckled. It became confusing when not long after that she said she might be able to extend my contract, so that I would not have to apply for a postdoc during the next round of applications. It sounded great to me but I sensed something was not right, and indeed I eventually realized, when I spoke to her, that she wanted me to work on something closer to my specialization, as she said it was a promising topic. I started working on the topic, but somehow nothing worked out. To top it off I was subject to a lot of indirect condescension and even racism from colleagues at times, which made me even more anxious. Strange local contract laws, Covid restrictions, loneliness and maladjustment just added to my troubles. I did ask her about my performance and about whether I contributed enough to the first paper (that did get published), and her answer was that I contributed more than some other coauthors. To make things more confusing, on one occasion she said she felt I was doing well, but on another occasion she said that she felt I was not very competitive. Shortly before this, she had also mentioned to me that it was important to become an expert in one topic if I wanted to get another postdoc. It is now the season for postdoctoral applications, I have no concrete new results, and to be honest I am full of regret for not just playing it safe after arriving, and working with her on something I knew well. She was kind enough to give me the official contract extension recently, but for various reasons I still feel like applying and hopefully securing another postdoc. The main reason is I am sort of a persecuted person in my home country, where I have no freedom of religion. I have permanent residency in the country where I did my PhD, but the longer I stay away the more likely it is that I will lose it. I am really hoping to make it to the West and find an academic job there (the country I am in does not take in foreigners easily), or go back to the country where I did my PhD and find a similar job there. But both of these are difficult, as both options seem to require that I have studied/worked in the West myself. A positive recommendation letter for the postdoc applications from my supervisor, who is very influential, might help. She said she did not mind writing one, but my fear is that it might be negative given my performance and silly choices (although she is aware of the non-academic challenges I faced in the institute). A negative letter from her might irreparably damage my chances of lasting long in my career. Should I go ahead with getting a recommendation letter from her? Could you not just ask her if she is willing to write you a strong recommendation letter? If not, why? I never really knew one could do that, since I thought such letters are confidential. Thank you for the suggestion, I could try asking, but it is hard to say if she would give me a straightforward answer. The contents of the letter are confidential, but the information whether she would be willing to write you a strong letter isn't. I'm not sure why you think she doesn't appreciate your work. Every indication you give here suggests otherwise. She thinks you contribute a lot (more than others), she wanted to extend your contract, etc. I think you will get a good letter, but you can ask her about it directly, though that is a bit uncomfortable. And, in any case, a letter from the supervisor is almost always needed. Don't worry too much about research results being elusive. If you are doing serious research (as a student or thereafter) that is the nature of it. Talk to her about your long term goals and ask for her support in getting there. Both in the current research and in finding a more permanent position. I'd guess that she would welcome having you as an external collaborator and you would also benefit greatly by keeping contact and collaborating as much as possible. I'd also guess that the residency question is causing stress that might be leading to fear of failure that is probably not warranted. Thank you for your reply. It is really encouraging and helpful. Indeed asking her would help, but to be honest I am not sure whether it would come across as rude according to the local culture. But I guess it is worth a shot.
10,170
https://stackoverflow.com/questions/37956042
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
English
Spoken
173
237
If programs depend on system calls to perform important tasks how can they run on different oss? If i understood correctly programs depend on system calls to perform tasks like creating files, create new process, and stuff like that. How can programs run on different os? Are system calls standarised? It's a linking process that actually resolve missing symbols after compilation. When you cross compile something or compile any software for other platform. Than you have to provide that symbol table. That symbol table consist of many library components and system call table. So, they are specific (and different) for each OS. System calls are indirectly called by library functions. Try to compile any C program with this command (It should call some type of system call, like call malloc function). gcc -c -nostdlib main.c -o main.o This will create object file with no OS (target) specific library and without linking (-c flag). After that look at the symbols of output ELF. readelf --symbols main.o | grep "UND" You will see unresolved symbols.
25,639
https://stackoverflow.com/questions/27319021
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
English
Spoken
186
451
Excel VBA generating Listbox (defining range) Ok, so I'm completely stumped with this. The below was working and now isn't. I'm trying to extract data to fill a list box. when counting rows of my data (which is currently A1:D4) both the row and column count are returning values of '1'. I just can't understand it. The column can simply be 4 as this is not variable, but I need this to count the rows! Sub generateListbox() Dim wb As Workbook Dim ws As Worksheet Dim rng As Range Set wb = Workbooks.Open("C:\Users\masta p\Desktop\Egencia\Data.xlsx") Set ws = [Sheet1] 'define end of range With ws lRow = .Rows(Rows.Count).End(xlUp).Row lCol = .Cells("1" & .Columns.Count).End(xlToLeft).Column 'set rng Set rng = .Range(.Cells(1, 1), .Cells(lRow, lCol)) MsgBox lRow MsgBox lCol MsgBox rng.Address Me.ListBox1.RowSource = rng.Address Workbooks("Data.xlsx").Close End With End Sub Try changing: lRow = .Rows(Rows.Count).End(xlUp).Row lCol = .Cells("1" & .Columns.Count).End(xlToLeft).Column to something like: lRow = .Cells(Rows.Count, dataCol).End(xlUp).Row lCol = .Cells(dataRow, Columns.Count).End(xlToLeft).Column where dataCol is the column with the (max?) no of rows you are interested in and dataRow is the row with the (max?) no of cols you are interested in
15,695
https://no.wikipedia.org/wiki/Kaya%20Turski
Wikipedia
Open Web
CC-By-SA
2,023
Kaya Turski
https://no.wikipedia.org/w/index.php?title=Kaya Turski&action=history
Norwegian
Spoken
78
177
Kaya Turski (født 3. mai 1988 i Montréal) er en canadisk freestylekjører som konkurrerer i slopestyle. Hun representerte landet sitt under Vinter-OL 2014 i Sotsji, der hun ble nummer 19. Hun har totalt fire gull fra Vinter-X-Games, samt gull fra VM 2013 på Voss og sølv fra VM 2011 i Deer Valley. Referanser Eksterne lenker Canadiske freestylekjørere Deltakere for Canada under Vinter-OL 2014 Freestylekjørere under Vinter-OL 2014 Canadiske deltagere i X Games Verdensmestere i freestyle Personer fra Montréal
29,464
https://ca.wikipedia.org/wiki/Emmenagog
Wikipedia
Open Web
CC-By-SA
2,023
Emmenagog
https://ca.wikipedia.org/w/index.php?title=Emmenagog&action=history
Catalan
Spoken
99
225
Les substàncies emmenagogues són aquells remeis que estimulen el flux de la sang a la zona pelviana i a l'úter; algunes estimulen la menstruació. Tradicionalment, les dones utilitzaven plantes emmenagogues com el julivert i el gingebre per prevenir l'embaràs o bé per finiquitar-lo (plantes abortives). En altres casos, es feien servir emmenagogs per estimular el flux menstrual quan no hi havia menstruació per raons diferents de l'embaràs, com poden ser els trastorns hormonals o condicions com l'oligomenorrea (menstruació infreqüent o molt lleugera). Algunes espècies emmenagogues Corona de rei o Saxifraga Longifolia Llorer o Laurus nobilis Bibliografia Referències Fàrmacs Botànica
18,832
https://superuser.com/questions/1735416
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
MichaIng, Michael Gauthier, https://superuser.com/users/1183051, https://superuser.com/users/1714721
English
Spoken
336
512
Awk regex: how to remove all punctuation except when in the middle of a word? Following information gathered on this thread, I wanted to use this code to fill my needs, however the code provided wasn't working for more than one punctuation character (e.g. '...'). I thus wanted to adapt it, so here is my bit of code: awk '{gsub(/^[[:punct:]]+|[[:punct:]]+$/, "")} 1' myfile.txt However this is not working as expected. Can someone explain why, as I'm learning bash and awk? Input file: @Username you are a nice person, I like you! I hate @username, she's not one I'd like to have dinner with... he told me '@Username is such a horrible man', but I didn't listen... Expected result: Username you are a nice person I like you I hate username she's not one I'd like to have dinner with he told me Username is such a horrible man but I didn't listen Thanks a lot for any pointer, I've spent quite a bit of time trying many things, but I just don't get it. If sed is fine, try: sed -E 's/(([[:space:]]|^)[[:punct:]]+|[[:punct:]]+([[:space:]]|$))/\2\3/g' myfile.txt. This matches not only punctuation at start and end of lines but also at start and end of any spaces/words. awk however doesn't support back-references reliably to preserve the spaces. It doesn't support word. .word since one space is matched only one time, so for this you'd need to add another case in the sed regex, if it can appear in your file Sorry for the delay. It works as expected indeed, thanks a lot! It's a bit of a pity that awk is not the ideal solution for the job, but for the time being, sed will do! : ) I'm using it to clean tweet files, so actually, many types of situations can appear, this is why it's difficult to find a perfect program that would delete everything except apostrophes that are in the middle of relevant strings. This program works for most cases however, so thanks a lot! : )
13,126
https://war.wikipedia.org/wiki/Teulada
Wikipedia
Open Web
CC-By-SA
2,023
Teulada
https://war.wikipedia.org/w/index.php?title=Teulada&action=history
Waray
Spoken
32
71
Iton Teulada poyde tinmudlok ha: Teulada, Italya, comune ha lalawigan han Cagliari ha rehiyon han Sardinya ha nasod han Italya. Teulada, Espanya, usa ka bungto ha Probinsya han Alicante, Comunidad Valenciana, Espanya.
30,607
https://stackoverflow.com/questions/46160794
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
English
Spoken
84
193
R what is this error in rSymPy? install.packages("rJava") require(rJava) install.packages("xlsxjars") require(xlsxjars) install.packages("rSymPy") require(rSymPy) The above codes have been successfully run. And below I use the testing codes: sympy("var('x')")## it is a code recommender by package reference with error: Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : Traceback (most recent call last): File "", line 1, in NameError: name 'var' is not defined How to fix this error? This error happens in R language not python, I want to know how to fix it in R.
11,363
https://stackoverflow.com/questions/54370917
StackExchange
Open Web
CC-By-SA
2,019
Stack Exchange
Aziz.G, Elie Nassif, https://stackoverflow.com/users/6352723, https://stackoverflow.com/users/7253451, https://stackoverflow.com/users/7719592, whizzzzz
Norwegian Nynorsk
Spoken
213
539
set <li> value id to <input> value but show the li text in input $(document).on('click', 'li', function() { $('#operator_name').val($(this).text()); let y = $(this).val(); $('#operator_name').attr('data-id', y); $('#operator_list').fadeOut(); alert(y) }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <input id="operator_name" name="operator_name" value=" "> <div class="dropdown show " id="operator_list"></div> this is the blade public function fetch(Request $request) { if ($request->get('query')) { $query = $request->get('query'); $data = DB::table('operators') // ->where('firstname', 'Like', '%{$query}%') ->where('firstname', 'like', '%' . $query . '%') ->orWhere('middlename', 'like', '%' . $query . '%') ->orWhere('surname', 'like', '%' . $query . '%') ->get(); $output = '<ul class="dropdown-menu" style="display:block;">'; foreach ($data as $row) { $output .= '<li class="dropdown-item" value=' . $row->id . '>'. $row->surname.', '.$row->firstname.'</li>'; } $output .= '</ul>'; echo $output; } } this is the controller. I managed to alert the li id while show the li text in input tag yet its the input text that will be saved in database i would like to save the li id at the same time show the li text in input tag, how to do it? Can you please elaborate with an example (current behavior vs needed behavior)? can you please change the blade with a simple html code example i want to save the operator id but show the operator name {{ $user->surname }}, {{ $user->firstname }} something like this, example only
24,752
https://sv.wikipedia.org/wiki/Lamine%20Diengs%20d%C3%B6d
Wikipedia
Open Web
CC-By-SA
2,023
Lamine Diengs död
https://sv.wikipedia.org/w/index.php?title=Lamine Diengs död&action=history
Swedish
Spoken
98
189
Lamine Diengs död är ett franskt uppmärksammat rättsfall som följde på den 25-årige senegalesen Lamine Diengs död i en skåpbil vid hans gripande 17 juni 2007 i Paris. Det anklagades för att vara ett fall av övervåld från polisens sida. Efter en första nedlagd undersökning 2014 och flera överklaganden från den dödes familj avvisade cour de cassation – en av Frankrikes högsta rättsliga instanser – ärendet tio år efter dödsfallet. Familjen överklagade ärendet till Europadomstolen 2017, varefter Frankrike tre år senare accepterade att betala 145 000 euro i förlikning. Se även Adama Traorés död Källor 2007 i Frankrike
15,519
https://ceb.wikipedia.org/wiki/Pointe%20Babinos
Wikipedia
Open Web
CC-By-SA
2,023
Pointe Babinos
https://ceb.wikipedia.org/w/index.php?title=Pointe Babinos&action=history
Cebuano
Spoken
134
221
Punta ang Pointe Babinos sa Kanada. Nahimutang ni sa lalawigan sa Québec, sa sidlakang bahin sa nasod, km sa sidlakan sa Ottawa ang ulohan sa nasod. Ang yuta sa Pointe Babinos kabungtoran sa amihang-kasadpan, apan sa habagatang-sidlakan nga kini mao ang patag. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa habagatan-sidlakan sa Pointe Babinos. Kunhod pa sa 2 ka tawo kada kilometro kwadrado sa palibot sa Pointe Babinos. Walay lungsod sa palibot. Hapit nalukop sa lasang nga dagomkahoy ang palibot sa Pointe Babinos. Sa rehiyon palibot sa Pointe Babinos, mga luuk, mga lawis, ug mga lanaw talagsaon komon. Ang klima boreal. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hulyo, sa  °C, ug ang kinabugnawan Enero, sa  °C. Saysay Ang mga gi basihan niini Mga lawis sa Québec (lalawigan)
37,176
https://sv.wikipedia.org/wiki/Pagaronia%20togashii
Wikipedia
Open Web
CC-By-SA
2,023
Pagaronia togashii
https://sv.wikipedia.org/w/index.php?title=Pagaronia togashii&action=history
Swedish
Spoken
31
65
Pagaronia togashii är en insektsart som beskrevs av Toyohi Okada 1978. Pagaronia togashii ingår i släktet Pagaronia och familjen dvärgstritar. Inga underarter finns listade i Catalogue of Life. Källor Dvärgstritar togashii
22,065
https://pt.wikipedia.org/wiki/Pristomerus%20vulnerator
Wikipedia
Open Web
CC-By-SA
2,023
Pristomerus vulnerator
https://pt.wikipedia.org/w/index.php?title=Pristomerus vulnerator&action=history
Portuguese
Spoken
101
225
Pristomerus vulnerator é uma espécie de insetos himenópteros, mais especificamente de vespas pertencente à família Ichneumonidae. A autoridade científica da espécie é Panzer, tendo sido descrita no ano de 1799. Trata-se de uma espécie presente no território português. Referências Pristomerus vulnerator - de Jong, Y.S.D.M. (ed.) (2013) Fauna Europaea version 2.6. Web Service available online at http://www.faunaeur.org (consultado em 14 de janeiro de 2014). Ligações externas Pristomerus vulnerator - Biodiversity Heritage Library - Bibliografia Pristomerus vulnerator - NCBI Taxonomy Database Pristomerus vulnerator - Global Biodiversity Information Facility Pristomerus vulnerator - Encyclopedia of Life Himenópteros de Portugal vulnerator Animais descritos em 1799
23,405
https://stackoverflow.com/questions/75608648
StackExchange
Open Web
CC-By-SA
2,023
Stack Exchange
Barmar, David C. Rankin, Fe2O3, Hans Passant, Jim Rogers, Jonathan Leffler, Rafsun Masud, Vlad from Moscow, chqrlie, chux - Reinstate Monica, https://stackoverflow.com/users/1491895, https://stackoverflow.com/users/15168, https://stackoverflow.com/users/17034, https://stackoverflow.com/users/17592432, https://stackoverflow.com/users/21154399, https://stackoverflow.com/users/2410359, https://stackoverflow.com/users/2877241, https://stackoverflow.com/users/3422102, https://stackoverflow.com/users/4593267, https://stackoverflow.com/users/6854407
English
Spoken
2,087
3,691
Why does the counter variable come up one short for words? The word count always comes up one short. I tried adding +1 - +10 on i < len; I've tried removing the space after "Text: " in the get_string prompt. For example, the prompt entry "One fish. Two fish. Red fish. Blue fish." compiles and the output for letters is correct, 29 letters, the output for words is WRONG (off by 1) — 7 words (should be 8), and the output for sentences is correct as well — 4 sentences. I'm assuming the isblank inside the prototype int count_words(string sample) doesn't count the last word because the last word ends with a period. Is setting the counter to 1 instead of 0 a good idea or is there a better way to get the last word? #include <cs50.h> #include <stdio.h> #include <ctype.h> #include <string.h> int count_letters(string sample); int count_words(string sample); int count_sentences(string sample); int main(void) { string sample = get_string("Text: "); printf("%s\n", sample); int lettercount = count_letters(sample); printf("%i letters\n", lettercount); int wordcount = count_words(sample); printf("%i words\n", wordcount); int sentencescount = count_sentences(sample); printf("%i sentences\n", sentencescount); } int count_letters(string sample) { int counter = 0; int len = strlen(sample); for (int i = 0; i < len; i++) { if (isalpha(sample[i])) { counter++; } } return counter; } int count_words(string sample) { int counter = 0; int len = strlen(sample); for (int i = 0; i < len; i++) { if (isblank(sample[i])) { counter++; } } return counter; } int count_sentences(string sample) { int counter = 0; int len = strlen(sample); for (int i = 0; i < len; i++) { if ((sample[i] == '.') || (sample[i] == '?') || (sample[i] == '!')) { counter++; } } return counter; } You only count blanks. But there's no blank after the last word. This sentence has four blanks. And five words. Initialising the counter with 1 may cause problems when your input has no words (i.e. empty string). What happens if there are several consecutive blanks? What happens if there are one or more blanks at the start, or one or more blanks at the end? You need to keep track of an 'in word' status, which is true when the last character was part of a word and is set to false when you find an inter-word gap (a blank). Would you be better served by counting when you find the start of a word, rather than by when you find an inter-word character? (Is the sentence count OK for an input like "You said what?!!?"? Is setting the counter to 1 instead of 0 a good idea ... Setting the counter to 1 is bad as the string may have zero words. OP's approach does not work in all cases where the strings may optionally begin/end with non-letters. Best to use unsigned char values for is...() functions as those functions are not defined for most negative values. A very long string may exceed length INT_MAX. Best to count letters/words with size_t to handle all strings. Rather than iterate to the length of the string, iterate until reading a null character. This skips the unnecessary (and expensive) prior strlen() call. ... or is there a better way to get the last word? A simple ways to count words: Count transitions from non-letter to letter. Less complex and less error prone than many other approaches. size_t count_words(const char *str) { const unsigned char *us = (const unsigned char*) str; size_t words = 0; bool previous_is_letter = false; while (*us) { bool current_is_letter = isalpha(*us++); if (!previous_is_letter && current_is_letter) words++; previous_is_letter = current_is_letter; } return words; } Counting letters only needs 1 pass down the string, not 2, like OP's code. is...() functions return 0 or non-zero. Use !! to convert any non-zero value to 1. size_t count_letters(const char *str) { size_t letters = 0; const unsigned char *us = (const unsigned char*) str; while (*us) { letters += !!isalpha(*us); us++; } return letters; } Counting sentences is similar. // letters += !!isalpha(*us); sentences += *us == '.' || *us == '?' || *us == '!'; I like it, nice addition to a well answered question. Learning can certainly occur on this one. For consistency, you could also write words += (current_is_letter && !previous_is_letter); In your count_words() function you do not account properly for the presence or absence of leading whitespace, multiple included whitespace characters and trailing whitespace. Essentially you are treating each space as a word. While you can handle this with library functions (@Fe203 using scrcspn()/strspn() is a good example), using a simple loop State-Variable where you keep track of whether you in a word reading characters or outside a word reading whitespace is another method that is quite efficient (and also operates on string-literals/constant string just fine.) Keeping track of the state of things is applicable to many many problems. For your word count, you could do something as simple as the following, using in_word as your state-variable that keeps track of whether you are in a word reading characters or before, between or after a word reading whitespace, e.g. /* returns the number of whitespace separated words in str */ size_t count_words (const char *str) { size_t words = 0; int in_word = 0; while (*str) { if (isspace ((unsigned char)*str)) in_word = 0; else { if (!in_word) words++; in_word = 1; } str++; } return words; } (note: the word count words is only incremented on transition from not in-word to in-word, triggered on the first character in each word) Shamelessly borrowing the example from @Fe203 with a few additional whitespace characters and breaking the string into two parts could be: #include <stdio.h> #include <ctype.h> /* returns the number of whitespace separated words in str */ size_t count_words (const char *str) { size_t words = 0; int in_word = 0; while (*str) { if (isspace ((unsigned char)*str)) in_word = 0; else { if (!in_word) words++; in_word = 1; } str++; } return words; } int main (void) { printf ("words = %zu\n", count_words ( "One fish Two fish Red Fish Blue Fish" ) ); printf ("words = %zu\n", count_words ( " One fish Two fish Red Fish Blue Fish" ) ); printf ("words = %zu\n", count_words ( "One fish Two fish Red Fish Blue Fish " ) ); printf ("words = %zu\n", count_words ( " One fish Two fish " "Red Fish Blue Fish " ) ); return 0; } The result is the same, 8 words per string. Look it over and let me know if you have questions. Invoice is in the mail... :-)... Nice solution. Clean, too! UV... @chux-ReinstateMonica - not sure I follow. if (!isspace(*((unsigned char *)str)) && *str) words++; would count characters if that was the body of the while() loop? @DavidC.Rankin Yes, my alternate code was amiss. Posted alternate code below. The problem in the OP code presumes single spaces between words, and does not account for the absence of a space at the end of the string. Without making a copy or reinventing standard library functions, the following seems to work. #include <stdio.h> #include <string.h> int cntWords( char *str ) { int cnt = 0; str += strspn( str, " " ); // discard leading spaces while( *str ) { cnt++; str += strcspn( str, " " ); // find next SP str += strspn( str, " " ); // find next that is not SP } return cnt; } int main( void ) { printf( "words = %d\n", cntWords( "One fish Two fish Red Fish Blue Fish" ) ); printf( "words = %d\n", cntWords( " One fish Two fish Red Fish Blue Fish" ) ); printf( "words = %d\n", cntWords( "One fish Two fish Red Fish Blue Fish " ) ); printf( "words = %d\n", cntWords( " One fish Two fish Red Fish Blue Fish " ) ); return 0; } words = 8 words = 8 words = 8 words = 8 EDIT The function can be made even more compact: int cntWords( char *str ) { int cnt = 0; while( *str ) { str += strspn( str, " " ); // find next non-space cnt += *str != '\0'; str += strcspn( str, " " ); // find next space } return cnt; } The function count_words does not take into account the last word because neither space followed it. Also in general the function will count words incorrectly if between words there are more than one space character or if the string contains leading or trailing spaces. And using the function strlen is inefficient and redundant. The function can be defined the following way. int count_words( string sample ) { int counter = 0; while ( *sample ) { while ( isblank( ( unsigned char )*sample ) ) ++sample; if ( *sample ) { ++counter; while ( *sample && !isblank( ( unsigned char )*sample ) ) ++sample; } } return counter; } Though it would be much better to declare the function like size_t count_words( const char *sample ) { size_t counter = 0; while ( *sample ) { while ( isblank( ( unsigned char )*sample ) ) ++sample; if ( *sample ) { ++counter; while ( *sample && !isblank( ( unsigned char )*sample ) ) ++sample; } } return counter; } Here is a demonstration program. #include <stdio.h> #include <ctype.h> size_t count_words( const char *sample ) { size_t counter = 0; while (*sample) { while (isblank( ( unsigned char )*sample )) ++sample; if (*sample) { ++counter; while (*sample && !isblank( ( unsigned char )*sample )) ++sample; } } return counter; } int main( void ) { const char *sample = "One fish. Two fish. Red fish. Blue fish."; printf( "There are %zu words.\n", count_words( sample ) ); } The program output is There are 8 words. The function count_sentences is also incorrect. For example for this string "What?!" the function returns two sentences instead of one. The function could be implemented the same way as the shown above function count_words. This could work, maybe start the counter at 1, and return 0 if len equals zero? You are counting spaces, not words. so for the string "Hello World" you would count 1 because there's 1 space. int count_words(string sample) { int counter = 1; int len = strlen(sample); if(len == 0) { return 0; } for (int i = 0; i < len; i++) { if (isblank(sample[i])) { counter++; } } return counter; } I would do it using strtok, really for no other reason than it counts the actual words for me, it's actually more complicated. int count_words(const char *sample) { char *cpy = NULL; char *token = NULL; int word_count = 0; /* I believe strtok will mangle the string so I'll make a copy of it */ cpy = calloc(1, strlen(sample) + 1); if(!cpy) { return -1; } strcpy(cpy, sample); token = strtok(cpy, " \t"); while(token) { word_count++; token = strtok(NULL, " \t"); } free(cpy); return word_count; } For your first fragment: What happens if there are several consecutive blanks? What happens if there are one or more blanks at the start, or if there are one or more blanks at the end? (These are questions I asked in a comment to the question, but they're also relevant to your answer.) You say (in a comment in the code) "I believe strtok() will mangle the string". It will indeed mangle the string; making a copy of it is a good idea. You could enforce that by making the argument const char *sample; then you couldn't use strtok() on the original argument. Making strings that won't be changed constant is a good idea, in general. Similar comments would apply to the other count functions. This is, however, a refinement; the basic idea you show is correct. Using strtok() deals with the leading, trailing and multiple blanks. You might care to note that the isblank() function matches space ' ' and tab '\t'; you can fix that easily in your calls to strtok(). @TWitvliet I like your answer. You showed how the function shall not be written.:) I am sure it is a very useful example for such beginners as me and the author of the question. Rather than counting blanks count the times you encounter a letter following a non-letter. This will require you to keep track of the current character and the previous character. Initialize the previous character to a non-letter such as a blank so that you count the first word if the string begins with a letter.
992
https://sw.wikipedia.org/wiki/Nyabasi%20West
Wikipedia
Open Web
CC-By-SA
2,023
Nyabasi West
https://sw.wikipedia.org/w/index.php?title=Nyabasi West&action=history
Swahili
Spoken
20
45
ni kata ya kaunti ya Migori, Eneo bunge la Kuria Mashariki, nchini Kenya. Tanbihi Kata za Kenya Kaunti ya Migori
29,363
https://stackoverflow.com/questions/43651090
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Ricardo, https://stackoverflow.com/users/2571805
Norwegian Nynorsk
Spoken
259
604
can't access data variables in watch handler vuejs I'm trying to set a data variable in a watch handler function for an input field in a VueJs Component. I have something like this: data() { return { params: { // default params to 1 month from: new Date().setMonth(new Date().getMonth() - 1), to: Date.now(), skip: 0, limit: 100 } } } watch: { dates: { handler: date => { console.log(this.params) if (date.start) { this.params.from = moment(date.start, "YYYY/MM/DD") } if (date.end) { this.params.to = moment(date.end, "YYYY/MM/DD") } }, deep: true } } When I set an input for the dates variable in the view template, I get an undefined for this.params in the console log, and I get an error for trying to set this.params.from. So I tried accessing it using a method: methods: { printParams() { console.log(this.params) } } calling it in the view template, it correctly resolves the params object. Am I missing something here? To avoid additional binding, just avoid using the arrow function syntax here.Instead go with ES6 Object shorthands: watch: { dates: { handler(date) { console.log(this.params) if (date.start) { this.params.from = moment(date.start, "YYYY/MM/DD") } if (date.end) { this.params.to = moment(date.end, "YYYY/MM/DD") } }, deep: true } } Now this will be bound to the correct context by default. Let's try bind this to your handler handler(date) { console.log(this.params) if (date.start) { this.params.from = moment(date.start, "YYYY/MM/DD") } if (date.end) { this.params.to = moment(date.end, "YYYY/MM/DD") } }.bind(this) I went through all colours of complication trying to fix this. .bind(this) is PERFECT! Works like a charm. Thanks a million.
38,337