identifier stringlengths 7 768 | collection stringclasses 3 values | open_type stringclasses 1 value | license stringclasses 2 values | date float64 2.01k 2.02k ⌀ | title stringlengths 1 250 ⌀ | creator stringlengths 0 19.5k ⌀ | language stringclasses 357 values | language_type stringclasses 3 values | word_count int64 0 69k | token_count int64 2 438k | text stringlengths 1 388k | __index_level_0__ int64 0 57.4k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://stackoverflow.com/questions/39614703 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Tzach Zohar, https://stackoverflow.com/users/1018562, https://stackoverflow.com/users/5344058, pythonic | English | Spoken | 107 | 188 | How to sortBy in spark using a function?
For example, I want to sort by using the difference of two values in the tuple. How could I do that in Spark?
I want for example something like as follows.
rdd.sortBy(_._2._1 - _._2._2)
rdd.sortBy(r => r._2._1 - r._2._2), you can't use underscore more than once or it will be interpreted as two different arguments
That is awesome. Thanks.
@AlbertoBonsanto OK :)
You can't use underscore more than once or it will be interpreted as two different arguments (and the expected function should only have one). Instead, name the argument and use it twice:
rdd.sortBy(r => r._2._1 - r._2._2)
| 33,075 |
https://br.wikipedia.org/wiki/Ferrari%20348 | Wikipedia | Open Web | CC-By-SA | 2,023 | Ferrari 348 | https://br.wikipedia.org/w/index.php?title=Ferrari 348&action=history | Breton | Spoken | 38 | 79 | Ar Ferrari 348 zo ur c'harr sport kenderc'het gant an oberier kirri italian Ferrari etre 1989 ha 1995, da heul ar Ferrari 328 hag a-raok ar Ferrari F355.
Karbedoù Ferrari
Kirri ar bloavezhioù 1980
Kirri ar bloavezhioù 1990 | 9,154 |
https://math.stackexchange.com/questions/2603361 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | https://math.stackexchange.com/users/385404, jonask | English | Spoken | 282 | 596 | Let X be a topological space and let A be a subset of X
Let $X$ be a topological space and let $A$ be a subset of $X$. Which of the
following statements are true?
a. If $A$ is dense in $X$, then $A^o$ (the interior of A), is also dense in $X$.
b. If $A$ is dense in $X$, then $X\setminus A$ is nowhere dense.
c. If $A$ is nowhere dense, then $X\setminus A$ is dense.
Attempt
a.False Try out $X=\mathbb{R}$ and $A=\mathbb{R}$
b,Flase Try out $X=\mathbb{R}$ and $A=\mathbb{Q}$
c.I Think its gonna be true because if $X=\mathbb{R}$ and $A=\mathbb{N}$ but hiw can I prove
P.S. I am new and poor in Latex. So forgive any mistakes commited.
So what is the interior of $\mathbb{R}$ according to the definition? So while your answer is correct you have to come up with a correct counterexample. Your answer to (b) looks right. To prove (c) try writing down all the necessary definitions first and then try to figure out an approach to prove it.
a. It is false, but not because of your example. Take $X=\mathbb R$ and $A=\mathbb Q$.
b. It is false. Again, take $X=\mathbb R$ and $A=\mathbb Q$.
c. It is true, but an example doesn't prove it. Suppose that $X\setminus A$ is not dense. Let $B=X\setminus\overline{X\setminus A}$. Then $B$ is a non-empty open set and $B\subset A$. Therefore, $B\subset\mathring{\overline A}$, which is impossible, since $\mathring{\overline A}=\emptyset$.
Jose's answer is correct and 100% complete. I just want to say that for (c), you can also use the fact that $$\overline{A^{c}}=(int(A))^c$$ Having that in mind we can easily conclude that if $A$ is nowhere dense , meaning $int(\overline{A})=\emptyset$ then :
$$\overline{A^c}=(int(A))^c\supset(int(\overline{A}))^c=(\emptyset)^c=X$$
| 5,836 |
https://stackoverflow.com/questions/24726192 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Karthik, fbynite, https://stackoverflow.com/users/3758631, https://stackoverflow.com/users/722238 | Norwegian Nynorsk | Spoken | 229 | 579 | Underscore template does not load the Model.id, on printing the <% console.log(Model.id) %> it comes as undefined
the expense.id prints as undefined in the log
My Underscore template
<% _.each(expenses, function(expense) { %>
<tr>
<td><%= expense.get('name') %></td>
<td><%= expense.get('amount') %></td>
<td><%= expense.get('category') %></td>
<td><% console.log(expense.id) %></td>
</tr>
<% }); %>
My Backbone View
var ExpenseList = Backbone.View.extend({
el: '.page',
render : function(){
var expenses = new Expenses();
var that = this;
expenses.fetch({
success : function(expenses){
var template = _.template($('#expense-list-template').html(),
{expenses: expenses.models});
that.$el.html(template);
}
});
}
});
Server Response
[
{
"_id": "53c25827555953000091ab71",
"name": "Shell",
"amount": "$1000",
"category": "Internet"
},
{
"_id": "53c2bfee4bf93700006fb714",
"name": "FC",
"amount": "$432",
"category": "Game"
}
]
I've updated the server response and it does contain the id
@user3758631, It contains _id, which is different than id.
@fbynite -tried both expense._id and expense['_id'] still the value is returned undefined
Your server is sending back _id attributes, not id attributes.
The easiest option would be to set idAttribute on your model:
var Expense = Backbone.Model.extend({
idAttribute: '_id',
//...
});
var Expenses = Backbone.Collection.extend({
model: Expense,
//...
});
That will give you expense.get('_id') and expense.id as the same thing and the models will send _id back to the server.
You could also add a parse method to your model to rename the attribute but that would cause problems when you tried to send data back to the server.
| 15,653 |
https://stackoverflow.com/questions/73858512 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | 463035818_is_not_an_ai, DiveIntoML, François Andrieux, https://stackoverflow.com/users/4117728, https://stackoverflow.com/users/6085595, https://stackoverflow.com/users/7359094 | English | Spoken | 504 | 732 | C++ insert class without copy assignment into deque
I'm inserting a class that has copy constructor but does not have copy assignment into a deque, and a simple example is shown below:
class X {
public:
X(const int value): value(value) {}
const int value;
};
void insert() {
std::deque<X> queue;
X x(3);
queue.insert(queue.begin(), x); // this cannot compile
queue.emplace(queue.begin(), x); // this cannot compile
queue.emplace_front(x); // this is OK
}
The compiler complains that the class X does not have a copy assignment due to the const int value in the definition. I understand the part that it does not have a copy assignment, but it indeed has a copy constructor, and I thought to insert into a deque, the element will be copy-constructed, hence I only need a copy constructor and not a copy assignment, where am I wrong here? And how do I deal with this kind of situation where I only have copy constructor and not copy assignment due to const fields?
prefer to make members private rather than const
"I thought to insert into a deque, the element will be copy-constructed, hence I only need a copy constructor and not a copy assignment". The requirements depend on which function you use :
For std::deque<T>::emplace :
Type requirements
-T (the container's element type) must meet the requirements of MoveAssignable, MoveInsertable and EmplaceConstructible.
emplace won't work with X because it can't be move assigned.
For std::deque<T>::emplace_front :
Type requirements
-T (the container's element type) must meet the requirements of EmplaceConstructible.
emplace_front is what you were thinking of and does work with X since it is emplace constructible.
The reason the two functions have different requirements is that elements in a deque are stable under front and back insertion. When you insert an element at the front or back of the deque all pointers and references to its existing elements remain valid, nothing has to move.
With emplace that guarantee isn't provided because it can insert elements anywhere in the container. If you insert in the middle of the container, some number of elements might need to be shifted, so elements need to be assignable to allow this shift. Passing begin() as the iterator doesn't help, the function is implemented to accommodate the case where the iterator may not be begin() or end().
Thanks! This is super helpful! I thought at least in theory, when inserting into the middle we can just change the pointers in the deque without messing up with the contents of the elements, but I guess that just depends on the implementation. Do you have any suggestion in my situation if I'm trying to put elements that do not have copy assignment (such as classes from other people's code) into containers?
@DiveIntoML The first solution should be to make the types assignable. Unassignable types are annoying to work with and generally there shouldn't be any technical reason to have them. If you absolutely can't, you can store std::unique_ptr<X> instead, which I think is how you think deque is implemented.
| 23,953 |
https://sv.wikipedia.org/wiki/Ken%20Bartholomew | Wikipedia | Open Web | CC-By-SA | 2,023 | Ken Bartholomew | https://sv.wikipedia.org/w/index.php?title=Ken Bartholomew&action=history | Swedish | Spoken | 74 | 179 | Kenneth Eldred "Ken" Bartholomew, född 10 februari 1920 i Leonard i North Dakota, död 9 oktober 2012, var en amerikansk skridskoåkare.
Bartholomew blev olympisk silvermedaljör på 500 meter vid vinterspelen 1948 i Sankt Moritz.
Källor
Amerikanska skridskoåkare
Amerikanska olympiska silvermedaljörer
Tävlande vid olympiska vinterspelen 1948 från USA
Tävlande i hastighetsåkning på skridskor vid olympiska vinterspelen 1948
Olympiska silvermedaljörer 1948
Idrottare från North Dakota
Personer från Cass County, North Dakota
Födda 1920
Avlidna 2012
Män | 21,718 |
https://ur.wikipedia.org/wiki/%D8%AC%DB%8C%DA%A9%DB%8C%20%DB%8C%DB%8C-%20%D8%B1%D9%88%20%DB%8C%D9%86%DA%AF | Wikipedia | Open Web | CC-By-SA | 2,023 | جیکی یی- رو ینگ | https://ur.wikipedia.org/w/index.php?title=جیکی یی- رو ینگ&action=history | Urdu | Spoken | 105 | 354 | جیکی یی-رو ینگ (پیدائش: 1966) انگریزی : Jackie Yi-Ru Ying
ایک امریکی نینو ٹیکنالوجی سائنسدان اور سنگاپور میں انسٹی ٹیوٹ آف بائیو انجینیئرنگ اور نینو ٹیکنالوجی کے بانی ایگزیکٹو ڈائریکٹر ہیں
। اس نے 30 سال کی عمر میں اسلام قبول کیاتھا۔
اعزازات اور ایوارڈز
2008 میں، ینگ کو امریکن انسٹی ٹیوٹ آف کیمیکل انجینئرز نے "جدید دور کے 100 انجینئرز" میں سے ایک قرار دیا تھا۔
ینگ کو 2014 میں سنگاپور ویمنز ہال آف فیم میں شامل کیا گیا تھا۔
ذاتی زندگی
حوالہ جات
1966ء کی پیدائشیں
بقید حیات شخصیات
نو مسلمین
امریکی مسلمان
سنگاپوری سائنسدان
ریاستہائے متحدہ کو سنگاپوری تارکین وطن
سنگاپوری مسلم | 35,772 |
https://it.wikipedia.org/wiki/Il%20rito%20%28film%201969%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Il rito (film 1969) | https://it.wikipedia.org/w/index.php?title=Il rito (film 1969)&action=history | Italian | Spoken | 818 | 1,461 | Il rito (titolo originale svedese: Riten) è un film per la televisione del 1969, diretto da Ingmar Bergman.
Trama
Il film è diviso in nove scene girate in bianco e nero e solamente in interni.
Scena I (Una stanza per gli interrogatori)
Il fascicolo che il giudice Abrahmsson sta esaminando riguarda un'accusa di oscenità fatta nei confronti di tre attori comici chiamati "Les riens" ( "I niente") e porta la data del 13 marzo 1968, informando così gli spettatori che la vicenda è contemporanea al film che si sta girando.
Il giudice fa chiamare il capocomico Hans Winkelmann, la moglie Thea von Ritt e l'amante Sebastian Fischer che accoglie con cordialità. Prima di iniziare le domande offre loro da bere mentre in lontananza si odono rumori di tuoni che annunciano l'arrivo di un temporale.
Scena II (Una camera d'albergo)
Thea e Sebastian hanno dormito insieme e al risveglio iniziano a discutere e Thea fa scene di gelosia, ma poi si baciano e si accarezzano. Si sente bussare alla porta, ma loro non vanno ad aprire e rimangono a raccontarsi i loro sogni. Thea dice a Sebastian che non riesce a soddisfarla sessualmente e lui fantastica di dar fuoco al letto con i fiammiferi.
Scena III (Una stanza per gli interrogatori)
Sebastian viene interrogato dal giudice che gli pone davanti i suoi cattivi precedenti ma Sebastian lo insulta accusandolo di essere sporco, di emanare cattivo odore e soprattutto di essere falso. Alla fine si vanta di essere ateo e di non aver timore di nessuno.
Scena IV (Un confessionale)
Si vede il giudice che entra in un confessionale e dice al prete che non vuole confessarsi ma che ha bisogno di parlare con qualcuno perché il suo cuore è pieno di angoscia anche se c'è ancora un po' di speranza. Si ode intanto venire da lontano il suono di una campana e il giudice è assalito da paurosi ricordi dell'infanzia.
Scena V (Una stanza per gli interrogatori)
Hans, interrogato dal giudice, esterna la sua amarezza per lo squallido rapporto a tre e gli chiede, cercando di corromperlo, di dispensare la donna dall'interrogatorio vista la sua labilità psichica. Viene rimproverato aspramente dal giudice.
Scena VI (Camerino di un teatro di varietà)
Appare Thea, vestita da clown, che beve terrorizzata per l'interrogatorio che deve subire mentre Hans la consola.
Scena VII (Una stanza per gli interrogatori)
Thea viene interrogata dal giudice che all'inizio è cortese e le offre anche del brandy, ma in seguito la tratta rudemente accusandola di non essere sincera e alla fine, dopo averla baciata, ne abusa, mentre la donna si lascia andare ad una crisi isterica.
Scena VIII (Un bar)
Hans e Sebastian conversano tranquillamente. La loro tournée è stata sospesa a causa della guerra scoppiata in Medio Oriente e rimane solo la possibilità di fare alcuni spettacoli in Italia. Poi Hans dice a Sebastian che non gli presterà più denaro e gli dà consigli su come appagare sessualmente Thea.
Scena IX (Una stanza per gli interrogatori)
Davanti al giudice i tre attori preparano la pantomima intitolata "Il rito" e Thea lo ringrazia per i fiori che le ha inviato. Gli attori si tolgono i mantelli e indossano le maschere mentre Thea rimane a seno nudo. Durante la rappresentazione il giudice ha una crisi di sconforto e viene schiaffeggiato da Sebastian, poi, dopo aver confessato che nella sua professione "c'è smania di crudeltà", muore colpito da un infarto. Si sente una voce fuori campo che dice che gli attori vennero condannati a pagare una multa e, dopo aver lasciato numerose interviste, lasciarono il Paese per andare in vacanza e non vi ritornarono mai più.
Analisi del film
Il film riprende temi kafkiani e dà la possibilità a Bergman di rappresentare in forma grottesca coloro che censurarono le sue opere oltre ad approfondire il suo pensiero sul mestiere di attore, sull'arte, sul concetto di libertà.
I personaggi sono, come spesso in altri film del regista, quattro senza considerare il quinto, il prete, che non parla. La prima delle nove scene e l'ultima, la nona, sono interpretare da tutti e quattro, mentre nelle altre sei i personaggi si ritrovano a due a due. Sono tutti personaggi negativi ma il peggiore è il giudice che malgrado la sua professione non è privo di peccati e reati e su di lui cade l'ironia di Bergman.
L'opera, assai stimolante dal punto di vista della forma, richiama i simboli dei precedenti film e si snoda attraverso una narrazione agile condotta tra due personaggi.
Produzione
Location: negli studi Filmstaden, Stoccolma; dal 13 maggio al 20 giugno 1967.
Titoli con cui è stato distribuito
Riitti, Finlandia
Le rite, Francia
El rito prohibido, Argentina
O Rito, Brasile
Ritualerne, Danimarca
Der Ritus, Germania Ovest
The Rite, (non definito)
The Ritual, (non definito)
Oi Tipotenioi, Grecia
El rito, Spagna
Rítus, Ungheria
Collegamenti esterni
Scheda su "Il rito" della "Svenska Filminstitutet" in formato pdf
Film diretti da Ingmar Bergman | 14,979 |
https://vi.wikipedia.org/wiki/Gi%E1%BA%A3i%20qu%E1%BA%A7n%20v%E1%BB%A3t%20%C3%9Ac%20M%E1%BB%9F%20r%E1%BB%99ng%202010%20-%20%C4%90%C6%A1n%20n%E1%BB%AF | Wikipedia | Open Web | CC-By-SA | 2,023 | Giải quần vợt Úc Mở rộng 2010 - Đơn nữ | https://vi.wikipedia.org/w/index.php?title=Giải quần vợt Úc Mở rộng 2010 - Đơn nữ&action=history | Vietnamese | Spoken | 658 | 2,412 | Serena Williams là đương kim vô địch, và bảo vệ thành công chức vô địch khi đánh bại tay vợt không được xếp hạt giống Justine Henin trong trận chung kết, 6–4, 3–6, 6–2, để giành chức vô địch Đơn nữ tại Giải quần vợt Úc Mở rộng 2010. Đây là kì Grand Slam đầu tiên của Henin kể từ Giải quần vợt Úc Mở rộng 2008 sau khi giải nghệ tháng 5 năm 2008, Henin lần đầu tiên không được xếp hạt giống kể từ Giải quần vợt Úc Mở rộng 2001 và được đặc cách. Với chức vô địch này, Serena phá vỡ kỉ lục trong Kỷ nguyên Mở nắm giữ bởi Margaret Court, Steffi Graf, Monica Seles và Evonne Goolagong Cawley về số danh hiệu Giải quần vợt Úc Mở rộng nhiều nhất.
Li Na lần đầu tiên vào Top 10 WTA trong sự nghiệp khi vào đến bán kết, trở thành tay vợt Trung Quốc đầu tiên đạt được kì tích này.
Hạt giống
Ghi chú: Yanina Wickmayer, được xếp thi đấu vào ngày hạn cuối cùng 7 tháng 12 năm 2009 và xếp hạt giống 16, bị trễ hạn và phải thi đấu vòng loại.
Vòng loại
Kết quả
Chung kết
Nửa trên
Nhánh 1
Nhánh 7
| RD1-score09-1=6
| RD1-score09-2=6
| RD1-score09-3=
| RD1-seed10=
| RD1-team10= E Rodina
| RD1-score10-1=0
| RD1-score10-2=0
| RD1-score10-3=
| RD1-seed11=
| RD1-team11= J Zheng
| RD1-score11-1=0
| RD1-score11-2=6
| RD1-score11-3=6
| RD1-seed12=
| RD1-team12= S Peng
| RD1-score12-1=6
| RD1-score12-2=1
| RD1-score12-3=2
| RD1-seed13=WC
| RD1-team13= C Vandeweghe
| RD1-score13-1=0
| RD1-score13-2=1
| RD1-score13-3=
| RD1-seed14=
| RD1-team14= S Záhlavová
| RD1-score14-1=6
| RD1-score14-2=6
| RD1-score14-3=
| RD1-seed15=
| RD1-team15= R de los Ríos
| RD1-score15-1=4
| RD1-score15-2=1
| RD1-score15-3=
| RD1-seed16=11
| RD1-team16= M Bartoli
| RD1-score16-1=6
| RD1-score16-2=6
| RD1-score16-3=
| RD2-seed01=8
| RD2-team01= J Janković
| RD2-score01-1=6
| RD2-score01-2=6
| RD2-score01-3=
| RD2-seed02=
| RD2-team02= K O'Brien
| RD2-score02-1=2
| RD2-score02-2=2
| RD2-score02-3=
| RD2-seed03=
| RD2-team03= P Hercog
| RD2-score03-1=4
| RD2-score03-2=5
| RD2-score03-3=
| RD2-seed04=31
| RD2-team04= A Bondarenko
| RD2-score04-1=6
| RD2-score04-2=7
| RD2-score04-3=
| RD2-seed05=24
| RD2-team05=
| RD2-score05-1=6
| RD2-score05-2=2
| RD2-score05-3=3
| RD2-seed06=
| RD2-team06= J Zheng
| RD2-score06-1=2
| RD2-score06-2=6
| RD2-score06-3=6
| RD2-seed07=
| RD2-team07= S Záhlavová
| RD2-score07-1=4
| RD2-score07-2=4
| RD2-score07-3=
| RD2-seed08=11
| RD2-team08= M Bartoli
| RD2-score08-1=6
| RD2-score08-2=6
| RD2-score08-3=
| RD3-seed01=8
| RD3-team01= J Janković
| RD3-score01-1=2
| RD3-score01-2=3
| RD3-score01-3=
| RD3-seed02=31
| RD3-team02= A Bondarenko
| RD3-score02-1=6
| RD3-score02-2=6
| RD3-score02-3=
| RD3-seed03=
| RD3-team03= J Zheng
| RD3-score03-1=5
| RD3-score03-2=6
| RD3-score03-3=6
| RD3-seed04=11
| RD3-team04= M Bartoli
| RD3-score04-1=7
| RD3-score04-2=3
| RD3-score04-3=0
| RD4-seed01=31
| RD4-team01= A Bondarenko
| RD4-score01-1=65
| RD4-score01-2=4
| RD4-score01-3=
| RD4-seed02=
| RD4-team02= J Zheng
| RD4-score02-1=77
| RD4-score02-2=6
| RD4-score02-3=
}}
Nhánh 8
{{16TeamBracket-Compact-Tennis3
| RD1=Vòng một
| RD2=Vòng hai
| RD3=Vòng ba
| RD4=Vòng bốn
| RD1-seed01=14
| RD1-team01= M Sharapova
| RD1-score01-1=64
| RD1-score01-2=6
| RD1-score01-3=4
| RD1-seed02=
| RD1-team02= M Kirilenko
| RD1-score02-1=77
| RD1-score02-2=3
| RD1-score02-3=6
| RD1-seed03=Q
| RD1-team03= Y Meusburger
| RD1-score03-1=6
| RD1-score03-2=4
| RD1-score03-3=6
| RD1-seed04=
| RD1-team04= T Bacsinszky
| RD1-score04-1=4
| RD1-score04-2=6
| RD1-score04-3=2
| RD1-seed05=
| RD1-team05= A-L Grönefeld
| RD1-score05-1=5
| RD1-score05-2=4
| RD1-score05-3=
| RD1-seed06=
| RD1-team06= R Vinci
| RD1-score06-1=7
| RD1-score06-2=6
| RD1-score06-3=
| RD1-seed07=
| RD1-team07= V King
| RD1-score07-1=6
| RD1-score07-2=65
| RD1-score07-3=7
| RD1-seed08=23
| RD1-team08= D Cibulková
| RD1-score08-1=3
| RD1-score08-2=77
| RD1-score08-3=5
| RD1-seed09=30
| RD1-team09= K Bondarenko
| RD1-score09-1=6
| RD1-score09-2=78
| RD1-score09-3=
| RD1-seed10=
| RD1-team10= R Olaru
| RD1-score10-1=2
| RD1-score10-2=66
| RD1-score10-3=
| RD1-seed11=
| RD1-team11= P Parmentier
| RD1-score11-1=4
| RD1-score11-2=6
| RD1-score11-3=5
| RD1-seed12=
| RD1-team12= E Baltacha
| RD1-score12-1=6
| RD1-score12-2=3
| RD1-score12-3=7
| RD1-seed13=
| RD1-team13=
Tham khảo
Liên kết ngoài
Đơn nữ
Giải quần vợt Úc Mở rộng theo năm - Đơn nữ
Thể thao nữ Úc năm 2010 | 31,572 |
https://stackoverflow.com/questions/33883549 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | Danish | Spoken | 182 | 483 | Angular filter data by date
I have a json as follows which i am receiving using an angular service:
[
{
"id": 2,
"order_status": "R",
"order_date": "2015-09-12T07:58:24.733834Z",
"update_timestamp": "2015-10-05T04:22:44.904227Z"
},
{
"id": 8,
"order_status": "D",
"order_date": "2015-09-18T03:46:50.469051Z",
"update_timestamp": "2015-09-23T19:19:31.658001Z"
}
]
I am receiving this data into a variable $scope.order_items and i am filtering them by order_status column:
$scope.order_items = data;
$scope.received = ($scope.order_items.filter(function(item) { return (item.order_status == 'R');}));
$scope.delivered = ($scope.order_items.filter(function(item) { return (item.order_status == 'D');}));
Now i am trying to filter the data by the column order_date such that i get all today's data entries into a separate variable. How do i achieve this?
EDIT: Just realized that you don't actually have a Date() object for the order_date so you'll have to create one before doing the == check belo.
There are a number of good Javascript Date manipulation libraries available(rather than doing the setHours(...) trick below, but something like this is what you want.
var Date today = new Date();
var todaysDates = $filter('filter')($scope.order_items, function(item) {
if(item.order_date.setHours(0,0,0,0) == today.setHours(0,0,0,0)) {
return true;
} else {
return false;
}
});
| 30,977 | |
https://fi.wikipedia.org/wiki/Apulianvinttikoira | Wikipedia | Open Web | CC-By-SA | 2,023 | Apulianvinttikoira | https://fi.wikipedia.org/w/index.php?title=Apulianvinttikoira&action=history | Finnish | Spoken | 40 | 159 | Apulianvinttikoira (Levriero Pugliese) eli foggianvinttikoira (Levriero Foggiano) on sukupuuttoon kuollut italialainen koirarotu.
Ulkonäkö
Apulianvinttikoira oli lyhytkarvainen.
Alkuperä
Rotua esiintyi 1980-luvulle asti Tavoliere delle Puglien tasankoalueella. Siitä oli artikkeli vuonna 1983 ENCI:n julkaisemassa lehdessä.
Lähteet
Italialaiset koirarodut
Sukupuuttoon kuolleet koirarodut
Vinttikoirat | 42,464 |
https://sv.wikipedia.org/wiki/Herre%2C%20l%C3%A5t%20ingenting%20binda%20de%20vingar | Wikipedia | Open Web | CC-By-SA | 2,023 | Herre, låt ingenting binda de vingar | https://sv.wikipedia.org/w/index.php?title=Herre, låt ingenting binda de vingar&action=history | Swedish | Spoken | 37 | 82 | Herre, jag med glädje är en sång med text från 1880 av Lina Sandell-Berg och musik från 1878 av Joël Blomqvist.
Publicerad i
Segertoner 1988 som nr 601 under rubriken "Efterföljd – helgelse".
Referenser
Noter
Svenska psalmer | 30,667 |
https://stackoverflow.com/questions/78235345 | StackExchange | Open Web | CC-By-SA | null | Stack Exchange | Charlieface, https://stackoverflow.com/users/14868997 | English | Spoken | 677 | 866 | How does pre-allocating a pool of SocketAsyncEventArgs objects upfront improve the performance of a server application in c#
In server applications, efficient management of incoming connections is essential for achieving optimal performance. I've come across a common optimization technique used in TCP socket programming, as demonstrated in Microsoft's code samples, which involves pre-creating a pool of SocketAsyncEventArgs objects before the server starts,
code sample
As shown in the code sample, this approach aims to improve server performance by pre-allocating a fixed number of SocketAsyncEventArgs objects. These objects are then used to handle incoming connections by reusing them without the need for re-creation.
However, I'm struggling to understand how this technique truly enhances performance. Let's consider a scenario where a server is designed to handle a maximum of 10 simultaneous connections,
Before creating the server, a pool of 10 SocketAsyncEventArgs objects is initialized and added to the pool. While this allows for the reuse of objects without constant creation and destruction, it presents limitations. For instance, if the server only has 5 connected clients,
then the remaining 5 SocketAsyncEventArgs objects in the pool are unused, This raises the question: does pre-allocating a fixed pool of objects limit scalability and resource utilization?
if you think about it An alternative approach could involve dynamically creating SocketAsyncEventArgs objects as connections are accepted,
For each new client connection, a new SocketAsyncEventArgs object is instantiated and associated with the client session. This method avoids pre-allocation constraints and optimizes resource usage by only creating objects on demand.,
When considering this, it seems that both methods utilize the same amount of resources to create the SocketAsyncEventArgs objects if the server have a max number of connection,
In the first method, a fixed number of objects is created upfront,
while in the second method, objects are created on demand, Given this, how does pre-allocating a fixed pool of SocketAsyncEventArgs objects enhance performance compared to dynamically creating objects on demand ?
thank you.
just a qu for some methods
Allocating itself could have a cost, and there is the question of cache locality. But it's arguable either way. An initial amount for typical usage would make sense. 10 small objects is not a lot at all in the grand scheme.
does pre-allocating a fixed pool of objects limit scalability and resource utilization?
It will at least waste some amount of memory some of the time. If it imposes any practical limit on scalability will depend on the specific implementation and use case. I lack experience to tell if it would be an actual problem in this specific case.
if you think about it An alternative approach could involve dynamically creating SocketAsyncEventArgs objects as connections are accepted, For each new client connection, a new SocketAsyncEventArgs object is instantiated and associated with the client session. This method avoids pre-allocation constraints and optimizes resource usage by only creating objects on demand.,
You will need to consider if and when objects should be released as connections are closed. Some type of pools decrease in size size slowly as the demand decreases. Others might keep allocated resources forever.
In the first method, a fixed number of objects is created upfront, while in the second method, objects are created on demand, Given this, how does pre-allocating a fixed pool of SocketAsyncEventArgs objects enhance performance compared to dynamically creating objects on demand ?
Allocating several objects at once can help keep objects sequentially in memory, and that may help with cache usage. It might also be slightly faster to allocate several at once rather than one at a time.
But I think the bigger issue is one of complexity and tradeoffs. A fixed size pool is less complex than a dynamic one. And if the fixed one works well enough, why bother spending time to develop, profile and test something more complex? And keep opportunity cost in mind, even if it is worth doing, is it the best thing to spend limited resources at? This relates in to the golden rule of optimization, only spend your limited resources optimizing the things that actually matter.
| 18,002 |
https://mr.wikipedia.org/wiki/%E0%A4%98%E0%A5%81%E0%A4%AC%E0%A4%A1%E0%A4%B5%E0%A4%BE%E0%A4%A1%E0%A5%80 | Wikipedia | Open Web | CC-By-SA | 2,023 | घुबडवाडी | https://mr.wikipedia.org/w/index.php?title=घुबडवाडी&action=history | Marathi | Spoken | 116 | 848 | घुबडवाडी हे भारताच्या महाराष्ट्र राज्यातील नांदेड जिल्ह्यातील कंधार तालुक्यातील एक गाव आहे.
भौगोलिक स्थान
हवामान
नैऋत्य मान्सूनमुळे पडणाऱ्या पावसाळ्याचा ऋतू वगळता येथील हवामान सर्वसाधारणपणे कोरडेच असते. येथे वर्षात चार ऋतू असतात. हिवाळा हा नोव्हेंबर ते फेब्रुवारी अखेरपर्यंत असतो. त्यानंतर येणारा उन्हाळा मात्र जूनच्या पहिल्या आठवड्यापर्यंत खेचला जातो. नैऋत्य मान्सूनचा पाऊस त्याच्या पाठोपाठ येतो आणि ऑक्टोबरच्या पहिल्या आठवड्यापर्यंत टिकतो. शेष ऑक्टोबर आणि नोव्हेंबरचा पूर्वार्ध हा मान्सूनोत्तर गरमीचा काळ असतो. सरासरी वार्षिक पर्जन्यमान ९८५ मि.मी.आहे. नैऋत्य मोसमी वाऱ्यापासून पडणाऱ्या पावसाचे प्रमाण एकूण वार्षिक पर्जन्याच्या ८५ टक्के आहे. जुलै आणि ऑगस्ट हे वर्षातील सर्वाधिक पर्जन्याचे महिने आहेत.
लोकजीवन
प्रेक्षणीय स्थळे
नागरी सुविधा
जवळपासची गावे
संदर्भ
https://villageinfo.in/
https://www.census2011.co.in/
http://tourism.gov.in/
https://www.incredibleindia.org/
https://www.india.gov.in/topics/travel-tourism
https://www.mapsofindia.com/
https://www.weather.gov/dvn/climategraphics?n=climategraphics
https://www.weather-atlas.com/en/india-climate
कंधार तालुक्यातील गावे
नांदेड जिल्ह्यातील गावे | 35,227 |
https://ceb.wikipedia.org/wiki/Georissa%20wallaceiana | Wikipedia | Open Web | CC-By-SA | 2,023 | Georissa wallaceiana | https://ceb.wikipedia.org/w/index.php?title=Georissa wallaceiana&action=history | Cebuano | Spoken | 55 | 97 | Kaliwatan sa dawhilahila ang Georissa wallaceiana. Una ning gihulagway ni Stanisic ni adtong 2010. Ang Georissa wallaceiana sakop sa kahenera nga Georissa, ug kabanay nga Hydrocenidae.
Kini nga matang hayop na sabwag sa:
State of Queensland
Walay nalista nga matang nga sama niini.
Ang mga gi basihan niini
Dawhilahila
Dawhilahila sa State of Queensland
Georissa | 20,730 |
https://de.wikipedia.org/wiki/Toxicology%20and%20Applied%20Pharmacology | Wikipedia | Open Web | CC-By-SA | 2,023 | Toxicology and Applied Pharmacology | https://de.wikipedia.org/w/index.php?title=Toxicology and Applied Pharmacology&action=history | German | Spoken | 117 | 239 | Toxicology and Applied Pharmacology, abgekürzt TAAP, ist eine zweimal im Monat erscheinende Peer-Review Fachzeitschrift. Die Erstausgabe erschien im Januar 1959. Die Zeitschrift veröffentlicht Artikel, die sich mit den Wirkungen von Chemikalien, Arzneimitteln oder chemisch definierten Naturprodukten auf Mensch und Tier beschäftigen.
Der Impact Factor des Journals lag im Jahr 2014 bei 3,705. Nach der Statistik des ISI Web of Knowledge wird das Journal mit diesem Impact Factor in der Kategorie Toxikologie an 13. Stelle von 87 Zeitschriften sowie in der Kategorie Pharmakologie und Pharmazie an 52. Stelle von 254 Zeitschriften geführt.
Herausgeber ist Scott W. Burchiel (Albuquerque, New Mexico, USA).
Weblinks
Artikelindex der Zeitschrift
Einzelnachweise
Pharmakologiezeitschrift
Toxikologiezeitschrift
Englischsprachige 14-tägliche Zeitschrift
Ersterscheinung 1959
Medizinische Fachzeitschrift (Vereinigtes Königreich)
Elsevier | 18,005 |
https://de.wikipedia.org/wiki/Harry%20Anselm%20Clinch | Wikipedia | Open Web | CC-By-SA | 2,023 | Harry Anselm Clinch | https://de.wikipedia.org/w/index.php?title=Harry Anselm Clinch&action=history | German | Spoken | 175 | 408 | Harry Anselm Clinch (* 27. Oktober 1908 in San Rafael, Kalifornien; † 8. März 2003) war ein US-amerikanischer Geistlicher und römisch-katholischer Bischof von Monterey in California.
Leben
Harry Anselm Clinch empfing am 6. Juni 1936 das Sakrament der Priesterweihe für das Bistum Monterey-Fresno.
Papst Pius XII. ernannte ihn am 5. Dezember 1956 zum Weihbischof in Monterey-Fresno und Titularbischof von Badiae. Der Bischof von Monterey-Fresno, Aloysius Joseph Willinger CSsR, spendete ihn am 27. Februar des folgenden Jahres die Bischofsweihe; Mitkonsekratoren waren die Weihbischöfe Timothy Manning aus Los Angeles und Merlin Joseph Guilfoyle aus San Francisco.
Clinch nahm an der zweiten bis vierten Sitzungsperiode des Zweiten Vatikanischen Konzils als Konzilsvater teil.
Nach der Ausgründung des Bistums Fresno ernannte ihn Papst Paul VI. am 16. Oktober 1967 zum Bischof von Monterey in California. Papst Johannes Paul II. nahm am 19. Januar 1982 seinen vorzeitigen Rücktritt an.
Weblinks
Römisch-katholischer Bischof (20. Jahrhundert)
Römisch-katholischer Bischof (21. Jahrhundert)
Titularbischof
Weihbischof
Konzilsvater (Zweites Vatikanisches Konzil)
Person (Monterey, Kalifornien)
US-Amerikaner
Geboren 1908
Gestorben 2003
Mann
Person des Christentums (Kalifornien)
Bistum Monterey in California | 34,980 |
https://en.wikipedia.org/wiki/Jane%20Cazneau | Wikipedia | Open Web | CC-By-SA | 2,023 | Jane Cazneau | https://en.wikipedia.org/w/index.php?title=Jane Cazneau&action=history | English | Spoken | 755 | 1,103 | Jane Maria Eliza Cazneau (née McManus, widowed Storm; April 6, 1807 – December 12, 1878) was an Irish-American journalist, lobbyist, and publicist who advocated the annexation of all of Mexico during the Mexican–American War.
Education and early career
Cazneau was born on April 6, 1807, in Brunswick, Rensselaer County, New York, the daughter of Congressman William McManus and Catharine (Coons) McManus. She attended Troy Female Seminary, one of the earliest colleges for women, but did not graduate. On August 22, 1825, she married Allen B. Storm. They separated in 1831, and Allen Storm died 1838 in New York City. Their son, William Mont Storm (b. August 2, 1826), became an inventor whose first invention was patented on Feb. 4, 1851 for an "Improved method of obtaining motive power". He had at least 33 patents to his name, with most in firearms, but many other devices as well.
In 1832, Jane's father ventured into land speculation, and was one of the founders of the Galveston Bay and Texas Land Company, and Jane and her brother Robert traveled to Texas, which was then still part of Mexico, to buy land. The next year, Jane, her father, her brother Robert and a company of German settlers set out to take possession of the land, but the scheme failed when the German settlers refused to go beyond Matagorda. She returned home with her father to Brunswick, NY. Her brother Robert remained in Texas and eventually became a wealthy planter.
Also at this time, Eliza Jumel named her as co-respondent in her divorce suit with Aaron Burr, alleging an affair in addition to his ruinous attempt at land speculation.
Writing
Cazneau later turned to journalism, working for Horace Greeley's New-York Tribune, and Moses Yale Beach's New York Sun and the Democratic Review, strongly advocating manifest destiny. Storm embraced this with enthusiasm, and was to go on to be a firm believer in the expansion of the South and of slavery into Central America and the Caribbean. In Mistress of Manifest Destiny (2001), Linda S. Hudson argued that it was Storm who actually wrote the "Annexation" editorial, and thus coined the phrase "Manifest Destiny". Since many editorials in John L. O'Sullivan's publications were unsigned, Hudson used computer-aided "textual analysis" to support her argument. O'Sullivan biographer Robert D. Sampson disputes Hudson's claim for a variety of reasons.
Mexican–American War and peace
Cazneau was sent by President Polk on a secret peace mission to Mexico in 1845; she rode there on horseback. With the outbreak of the Mexican–American War, she went to the front, where she witnessed Winfield Scott's capture of the fortress of Vera Cruz in March 1847. She was the first female war correspondent in American history, and used the pseudonym "Cora Montgomery" in her writing about the war. She helped negotiate the Treaty of Guadalupe-Hidalgo (1848), which included guarantees of property rights to both male and female nonresident landowners. While in Mexico, she worked on canal-building expeditions and banking projects. At the end of the Mexican–American War she turned her attention to Cuba, and the potential it represented, advocating for its annexation and denouncing its Spanish colonial overlords. She later settled at Eagle Pass, a frontier village three hundred miles up the Rio Grande from the Gulf of Mexico, and got to know many of the local Indian chiefs.
Caribbean
In 1849, she married William Leslie Cazneau. They moved to the Dominican Republic in 1855. Despite her earlier sympathies for southern expansionism she disapproved of secession, and was hired by William H. Seward, Lincoln's Secretary of State, to write denunciations of the Confederacy. To her, the war was a serious interruption to further prospects of American expansion in the Caribbean.
In 1878, she drowned on her way to Santo Domingo, after the steamer Emily B. Souder on which she was travelling was caught in a storm. Only two men survived the shipwreck.
References
Hudson, Linda S. Mistress of Manifest Destiny: A Biography of Jane McManus Storm Cazneau, 1807–1878. Texas State Historical Association, 2001. .
The Handbook of Texas Online: Jane McManus Cazneau
CAZNEAU, Jane Maria Eliza McManus Storms in Notable American Women by Edward T. James & Janet Wilson James (pages 315ff)
External links
Brief summary of Storm's life
1807 births
1878 deaths
People from Brunswick, New York
American people of the Mexican–American War
Women in warfare in North America
American women war correspondents
Deaths due to shipwreck at sea
19th-century American newspaper people
19th-century American women journalists
Women in 19th-century warfare
19th-century American journalists
People from Eagle Pass, Texas | 29,984 |
https://stackoverflow.com/questions/63463298 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Norwegian Nynorsk | Spoken | 142 | 514 | Bot responds to its own reactions
someone can help?
5️⃣ = 5️⃣
var embed1 = new Discord.RichEmbed()
.setTitle("hjgsadgv")
message.channel.send(embed9)
.then(function (message) {
message.react("5️⃣")
.then(() => message.react("4️⃣"))
.then(() => message.react("3️⃣"))
.then(() => message.react("2️⃣"))
.then(() => message.react("1️⃣"))
const filter = (reaction, user) => {
return ['5️⃣', '4️⃣', '3️⃣', '2️⃣', '1️⃣'].includes(reaction.emoji.name) && user.id === message.author.id;
}
message.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
.then(collected => {
const reaction = collected.first();
if (reaction.emoji.name === '5️⃣') {
message.reply('123');
}
else {
message.reply('321');
}
var embed2 = new Discord.RichEmbed()
.setTitle("uysygadk")
message.channel.send(embed10)
})
})
Bot responds to its own reactions
You can ignore bots by changing your filter to this:
const filter = (reaction, user) => {
return ['5️⃣', '4️⃣', '3️⃣', '2️⃣', '1️⃣'].includes(reaction.emoji.name) && user.id === message.author.id && !user.bot;
}
It basically checks the bot property of user and if it's true then the filter blocks it.
| 26,659 | |
https://eu.wikipedia.org/wiki/Mar%C3%ADa%20Consuelo%20Porras | Wikipedia | Open Web | CC-By-SA | 2,023 | María Consuelo Porras | https://eu.wikipedia.org/w/index.php?title=María Consuelo Porras&action=history | Basque | Spoken | 192 | 582 | María Consuelo Porras Argueta (San Juan Comalapa, 1953ko abuztuaren 23a) Guatemalako abokatua da, egungo Guatemalako fiskal nagusia eta Ministerio Publikoko (MP) burua. 2018ko maiatzean izendatu zuen Jimmy Morales presidenteak eta ondoren, Alejandro Giammatei-k bere kargua berrestu zuen.
Biografia
Consuelo Porras Zientzia Juridikoetan eta Gizarte Zientzietan lizentziatua da, Kudeaketa Jurisdikzionalean masterra du ere, biak Guatemalako San Carlos Unibertsitatearen eskutik. Zuzenbideko doktoretza Mariano Gálvez Unibertsitatean lortu zuen.
2018ko maiatzean izendatu zuen Jimmy Morales presidenteak, Thelma Aldana ordeztuz. 2016-2020 aldirako Guatemalako Auzitegi Konstituzionaleko magistratu diputatu hautatu zuen Justizia Auzitegi Gorenak.
2021eko uztailaren 23an, Juan Francisco Sandoval kargugabetu zuen, FECI ataleko fiskaltzaren (Inpunitatearen Aurkako Fiskaltza Berezia) arduraduna zena. Erabakiaren arrazoi ofiziala aginduak betetzen ez zituela eta beste herrialde batzuetatik zuen aitorpenaz baliatuz, ia botere paralelo bat osatzen ari zelako Ministerio Publikoan. Sandovalen aldekoek azaldu zutenez fiskaltzan egiten ziren ikerketak oztopatzeko kendu zuten kargutik.
2021eko irailaren 20an, AEBetako Estatu Idazkaritzak, Antony Blinkenek, bere Twitter kontuan argitaratu zuenez Consuelo Porras, Guatemalako Fiskal Nagusia, eta Ángel Pineda, Ministerio Publikoko Idazkari Nagusiak, korrupto eta ez demokratikoak diren pertsoen txostenean sailkatu zituzten, 353. atalean.
Erreferentziak
Kanpo estekak
Fiskalak
Guatemalako abokatuak
Guatemalako Fiskal Nagusiak
Guatemalarrak
Ustelkeria
Ustelkeria Guatemalan
Emakume fiskalak
Emakume abokatuak | 2,488 |
https://stackoverflow.com/questions/42059081 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | Mehran, cybersam, https://stackoverflow.com/users/4989460, https://stackoverflow.com/users/866082, https://stackoverflow.com/users/974731, stdob-- | English | Spoken | 1,118 | 2,772 | How to ask Neo4j to take cycles into account
It seems Neo4j intentionally omits cycles so a query like:
MATCH (n1)-[:R]->(n2)<-[:R]-(n1)
RETURN n1, n2;
Always returns nothing unless there are two relations with type R between n1 and n2 (which is absolutely possible and a bad hack).
But I have a scenario in which this cycle might happen and it's desired:
MATCH (n1)-[:R]->(n2)<-[:R]-(n3)
RETURN n1, n2, n3;
In this query, n1 and n3 might be the same node or different ones and it all depends on the data (both are valid). One way to implement this is like:
MATCH (n1)-[:R]->(n2)
MATCH (n2)<-[:R]-(n3)
RETURN n1, n2, n3;
This last query will include all the paths even cycles and it's totally fine. But my case is even one level more complicated than this:
MATCH (n0)
OPTIONAL MATCH (n0)-[:R0]->(n1)-[:R]->(n2)<-[:R]-(n3)
RETURN n0, n1, n2, n3;
As we've seen before cycles are omitted in this queries so we have to break it down to two OPTIONAL MATCHes:
MATCH (n0)
OPTIONAL MATCH (n0)-[:R0]->(n1)-[:R]->(n2)
OPTIONAL MATCH (n2)<-[:R]-(n3)
RETURN n0, n1, n2, n3;
But this is not the same as before (if the other one worked). Here the second OPTIONAL MATCH might not return any path while the first one did. In other words, the two OPTIONAL MATCHes are independent.
So my question is: how can I implement the following query and get the cycles in the results?
MATCH (n0)
OPTIONAL MATCH (n0)-[:R0]->(n1)-[:R]->(n2)<-[:R]-(n3)
RETURN n0, n1, n2, n3;
I hope it's not too confusing!
Why two OPTIONAL MATCHes is not the answer
Consider the following nodes and relationships:
CREATE (n0:S)-[:R]->(n1:R)<-[:R]-(n2:E)-[:R]->(n3:R:L);
CREATE (n0:S)-[:R]->(n1:R:L)<-[:R]-(n2:E);
CREATE (n0:S)-[:R]->(n1:R)<-[:R]-(n2:E);
In above examples, here are the meaning of the labels (so you can relate to the problem):
:S start node
:R revision
:E entity
:L latest as in latest revision
In this example each record of data is represented in :E+:R and when the record is updated, a new :R is added to it. The current state of the data is labeled :L so we can find the latest revision.
Now, among the three given examples, the last one is invalid data since it does not have any :L. The first one has two revisions and the second one has one.
The requested query should:
Return :S regardless
Return all the entities and their latest revision, only if they have a latest revision
An entity without latest revision is meaningless, it should not be returned at all
This query would have returned the requested data if Neo4j supported cycles:
MATCH (n1:S)
OPTIONAL MATCH (n1)-[:R]->(n2:R)<-[:R]-(n3:E)-[:R]->(n4:R:L)
RETURN labels(n1), labels(n3), labels(n4);
The expected results for the above query are:
╒════════════╤════════════╤════════════╕
│"labels(n1)"│"labels(n3)"│"labels(n4)"│
╞════════════╪════════════╪════════════╡
│["S"] │["E"] │["R","L"] │
├────────────┼────────────┼────────────┤
│["S"] │["E"] │["R","L"] │
├────────────┼────────────┼────────────┤
│["S"] │null │null │
└────────────┴────────────┴────────────┘
But the actual results are:
╒════════════╤════════════╤════════════╕
│"labels(n1)"│"labels(n3)"│"labels(n4)"│
╞════════════╪════════════╪════════════╡
│["S"] │["E"] │["R","L"] │
├────────────┼────────────┼────────────┤
│["S"] │null │null │
├────────────┼────────────┼────────────┤
│["S"] │null │null │
└────────────┴────────────┴────────────┘
As you can see the second path is cut short because it included a cycle. Now if we use the two OPTIONAL MATCH approach:
MATCH (n1:S)
OPTIONAL MATCH (n1)-[:R]->(n2:R)<-[:R]-(n3:E)
OPTIONAL MATCH (n3)-[:R]->(n4:R:L)
RETURN labels(n1), labels(n3), labels(n4);
The results would be:
╒════════════╤════════════╤════════════╕
│"labels(n1)"│"labels(n3)"│"labels(n4)"│
╞════════════╪════════════╪════════════╡
│["S"] │["E"] │["R","L"] │
├────────────┼────────────┼────────────┤
│["S"] │["E"] │["R","L"] │
├────────────┼────────────┼────────────┤
│["S"] │["E"] │null │
└────────────┴────────────┴────────────┘
While the second case is fixed, the third case is now the problem and that's because the two optional clauses can exist independently.
Sorry for the long question, I tried to be brief!
Give an example of test data on which the first query returns nothing.
I updated the question
If I'm understanding the question correctly, this query should give you the expected result table you're looking for:
MATCH (n1:S)
OPTIONAL MATCH (n1)-[:R]->(n2:R)<-[:R]-(n3:E)
WHERE (n3)-[:R]->(:R:L)
OPTIONAL MATCH (n3)-[:R]->(n4:R:L)
RETURN labels(n1), labels(n3), labels(n4)
The key is the WHERE we give to the first optional match. The OPTIONAL MATCH will only match if n3 has the desired path to a :R:L node, and it will count relationships and nodes that were already traversed by the OPTIONAL MATCH.
1) You can correct the version with two "option" with adding checks for a match of nodes:
MATCH (n1:S)
OPTIONAL MATCH (n1)-[:R]->(n2:R)<-[:R]-(n3:E)
OPTIONAL MATCH (n3t)-[:R]->(n4:R:L) WHERE n3t = n3
RETURN labels(n1), labels(n3t), labels(n4);
2) I think you are wrong to use the term cycle, and this gives rise to the impression that you have something not right with the data model. On your test data no cycles:
I understand your second concern; since the graph is directional my data has got no cycles in it. But since neo4j traverse the graph regardless of the edge directions, then it means the graph is actually undirectional. And in an undirectional graph a-b-a is a cycle. It's just not a simple cycle but a cycle nevertheless. And thanks for the answer.
No, this is not a cycle: in cycle every relationship occurs only one time.
Please refer to the same link you've given. It is mentioned there: A simple cycle may be defined either as a closed walk with no repetitions of vertices and edges allowed. Your definition refers to simple cycles, cycles can have redundant nodes and edges.
Or you might be referring to a circuit: A circuit can be a closed walk allowing repetitions of vertices but not edges; however, it can also be a simple cycle, so explicit definition is recommended when it is used.. Your choice :)
@Mehran Yes you are right. By inertia closed walk I did not take as a cycle.
[UPDATED]
(A) New answer, based on new info in question.
MATCH (s:S)-[:R]->(firstRev:R)
OPTIONAL MATCH (firstRev)<-[:R]-(e:E)
OPTIONAL MATCH (e)-[:R]->(latestRev:L)
RETURN
LABELS(s) AS ls,
CASE WHEN latestRev IS NOT NULL THEN LABELS(e) END AS le,
LABELS(latestRev) AS ll;
The above query uses 2 OPTIONAL MATCH clauses to allow a cycle (where the 2 R relationships are identical). The CASE clause will return a NULL le value if the second OPTIONAL MATCH failed.
(B) Original answer (obsolete)
Does this work for you?
OPTIONAL MATCH (n1)-[:R]->(n2)
OPTIONAL MATCH (n2)<-[:R]-(n3)
RETURN n1, n2, n3;
Please read the question to the end. I've already included your solution in my question and it's not the answer.
I do not see my solution in your question. (By the way, I fixed a minor typo in your sample data.) Try my solution on your sample data.
Yours is the same as the one with two OPTIONAL MATCHes in my question. And as I mentioned in the question, while two MATCHes are the same one, two OPTIONAL MATCHes are not the same as one.
It is NOT the same. Have you tested my solution?
I've updated the question, sorry it took long I hope it's not too long to discourage you.
Thank you for the update, yours is valid but the other one is just a better answer.
| 4,468 |
https://uk.wikipedia.org/wiki/%D0%9F%D1%80%D0%BE%D1%82%D0%BE%D0%BB%D1%96%D0%B7 | Wikipedia | Open Web | CC-By-SA | 2,023 | Протоліз | https://uk.wikipedia.org/w/index.php?title=Протоліз&action=history | Ukrainian | Spoken | 76 | 270 | Протоліз () — реакції заміщення під дією протона, що звичайно йдуть за механізмами SE2, SE1, наприклад,
СН3HgI + H+ → CH4 + HgI+.
Цей термін використовувався як синонім для реакцій переносу протона, чого IUPAC не рекомендує.
Див. також
Діазотування
Автопротоліз
Література
Глосарій термінів з хімії // Й. Опейда, О. Швайка. Ін-т фізико-органічної хімії та вуглехімії ім. Л. М. Литвиненка НАН України, Донецький національний університет. — Донецьк: Вебер, 2008. — 758 с. — ISBN 978-966-335-206-0
Хімічна термінологія | 47,637 |
https://stackoverflow.com/questions/2747145 | StackExchange | Open Web | CC-By-SA | 2,010 | Stack Exchange | Franck, Hemanth Kumar, Len Holgate, https://stackoverflow.com/users/5642764, https://stackoverflow.com/users/5642765, https://stackoverflow.com/users/5642766, https://stackoverflow.com/users/5642773, https://stackoverflow.com/users/5642774, https://stackoverflow.com/users/5642810, https://stackoverflow.com/users/7925, loody, rushil, user5642774, zhql0907 | English | Spoken | 219 | 477 | server/ client server connection
I have a server side program that creates a listening server side socket. The problem occurring is that it seems as if the client side sends a connect request it gets rejected if the server side socket is listening but connects if the server side program is not running. I can see the server side program getting the client request when debugging. It seems as if the client cannot connect to a listening socket. Any suggestions on a resolution?
The server side accept code snippet is this.
void CSocketListen::OnAccept(int nErrorCode)
{
CSocket::OnAccept(nErrorCode);
CSocketServer* SocketPtr = new CSocketServer();
if (Accept(*SocketPtr))
{
// add to list of client sockets connected
}
else
{
delete SocketPtr;
}
The client side code connect is like this.
SOCKET cellModem;
sockaddr_in handHeld;
handHeld.sin_family = AF_INET; //Address family
handHeld.sin_addr.s_addr = inet_addr("127.0.0.1");
handHeld.sin_port = htons((u_short)1113); //port to use
cellModem=socket(AF_INET,SOCK_STREAM,0);
if(cellModem == INVALID_SOCKET)
{
// log socket failure
return false;
}
else
{
// log socket success
}
if (connect(cellModem,(const struct sockaddr*)&handHeld, sizeof(handHeld)) != 0 )
{
// log socket connection success
}
else
{
// log socket connection failure
closesocket(cellModem);
}
I think we need to see more of the code...
It sounds like that port is being opened by something else? Can you verify that you're not competing for the same port?
| 17,825 |
https://zh.wikipedia.org/wiki/%E5%B8%83%E5%88%80%E7%8E%89%E5%91%BD | Wikipedia | Open Web | CC-By-SA | 2,023 | 布刀玉命 | https://zh.wikipedia.org/w/index.php?title=布刀玉命&action=history | Chinese | Spoken | 39 | 1,471 | 布刀玉命()為《古事記》表記之名,《日本書紀》記作太玉命,《古語拾遺》則記作天太玉命,祂是日本神話裡出現的神祇,也是忌部氏(後來稱齋部氏)的祖先,別名為大麻比古神()、天太玉神、木匠神等。雖然《記紀》二書並未記載,但《古語拾遺》提到祂是高皇產靈神之子。
概要
日本書紀之記載
按《日本書紀》卷第一之記載,因素戔嗚尊胡作非為,天照大神躲入天磐戶而閉坐其中,高天原及葦原中國一片黑暗。故八百萬神命思兼神想法子,後者聚常世之長鳴鳥且使其長鳴;命手力雄神立於磐戶之側;命中臣連遠祖天兒屋命和忌部遠祖太玉命挖掘天香山之五百箇眞坂樹,在上枝懸吊五百個八坂瓊、中枝懸掛八咫鏡(亦云真經津鏡)、下枝懸青和幣和白和幣,然後相互祝禱。
後來天津彥彥火瓊瓊杵尊降臨葦原中國,天照大神賜給祂八坂瓊曲玉、八咫鏡、草薙劍等三種寶物,並命令中臣祖先天兒屋命、忌部祖先太玉命、祖先天鈿女命、鏡作祖先石凝姥命、玉作祖先玉屋命等五位神明陪伴。
同書卷第二則提到高皇產靈尊命太玉命以弱肩披上太手繦而代御手,所以祭拜此神即源於此。接著高皇產靈尊敕令天兒屋命、太玉命捧持天津神籬,陪同正哉吾勝勝速日天忍穗耳尊降凡,並且保護之。
古事記之記載
《古事記》上卷的記載和《日本書紀》的神話故事近似,天照大御神遁入天石屋戶後,思金神集合常世國之長啼鳥使其齊鳴;選天安河之天堅石及採天金山之鐵而求鍛人天津麻羅;命伊斯許理度賣命造八咫鏡;命科御祖命作五百個八尺瓊勾玉;召天兒屋命、布刀玉命拔天香山雄鹿肩骨,以天香山所生朱櫻燒之為卜。一切準備好之後,將八咫鏡、八尺瓊勾玉懸掛在枝繁楊桐樹上,讓布刀玉命捧著,並由天兒屋命頌禱祝詞。
後來天孫降臨時,天照大神之孫日子番能邇邇藝命降臨葦原中國之際,天照大神命天兒屋命、布刀玉命、天宇姬命、伊斯許理度賣命、玉祖命等五位神明陪伴在側。
解說
根據《記紀》二書記錄的內容,一般日本民間將布刀玉命與天兒屋命視為執掌祭祀、占卜的神明;由此也可見其後代齋部氏與中臣氏在大和朝廷的勢力。
信仰
在日本主祭布刀玉命的神社計有下述:
安房神社(千葉縣館山市)
大麻比古神社(德島縣鳴門市大麻町板東):稱作「大麻比古大神」。
天太玉命神社(奈良縣橿原市忌部町)
天津神社(新潟縣糸魚川市)
粟井神社(香川縣觀音寺市粟井町)
五社神社(靜岡縣濱松市中區)
大原神社(千葉縣君津市)
洲崎大神(神奈川縣橫濱市神奈川區)
參見
忌部氏
天岩戶
參考資料
天太玉神
《八百万の神々 日本の神霊たちのプロフィール》,戶部民夫著,新紀元社,1997年12月,ISBN 4883172996。
《神道の本 八百万の神々がつどう秘教的祭祀の世界》,學習研究社,1992年3月,ISBN 4051060241。
外部連結
天太玉神
阿波國一の宮 大麻比古神社
忌部氏
日本神祇
天津神 | 30,706 |
https://su.wikipedia.org/wiki/Toto%20Makmur%2C%20Batu%20Putih%2C%20Tulang%20Bawang%20Kulon | Wikipedia | Open Web | CC-By-SA | 2,023 | Toto Makmur, Batu Putih, Tulang Bawang Kulon | https://su.wikipedia.org/w/index.php?title=Toto Makmur, Batu Putih, Tulang Bawang Kulon&action=history | Sundanese | Spoken | 25 | 74 | Toto Makmur nyaéta salah sahiji Désa di kacamatan Batu Putih, Kabupatén Tulang Bawang Kulon, Propinsi Sumatra Kalér, Indonésia.
id:Toto Makmur, Batu Putih, Tulang Bawang Barat | 27,932 |
https://stackoverflow.com/questions/29001257 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | dacastro4, https://stackoverflow.com/users/1539655, https://stackoverflow.com/users/3711964, levi | Sardinian | Spoken | 308 | 693 | AngularJS ngRepeat doesn't work with object from API
I'm trying to display this object, just that simple ... but when I reload the page, nothing happend, blank, the object is perfect because is in the console..
Angular
var store = angular.module('storeApp', []);
store.controller('CategoriesNProducts', ['$scope', function($scope) {
$scope.moltin = new Moltin({publicId: 'wA7eKb9jzqDvNI1V0HKIeGl9osh3FWcAKzOtZfcj'});
$scope.get_categories = function() {
$scope.moltin.Authenticate(function () {
$scope.moltin.Category.Tree({status: '1'}, function (tree) {
return tree;
});
});
};
$scope.categories = $scope.get_categories();
}]);
View
<div ng-app="storeApp">
<h1>Store</h1>
<section id="categories" ng-controller="CategoriesNProducts">
{{categories.length}}
<div ng-repeat="(key, value) in categories">
<div id="{{value.description}}"></div>
{{ value }}
</div>
</section>
</div>
Sure your Category.Tree function, is async, so, you can't assign "async data" and expect it works as normal assignment. You need to assign $scope.categories in your async function callback.
It should be
$scope.get_categories = function() {
$scope.moltin.Authenticate(function () {
$scope.moltin.Category.Tree({status: '1'}, function (tree) {
$scope.categories = tree;
$scope.apply(); // Use this if Category.Tree came from external lib
//Using apply, you tell to angularjs that $scope have been change by external lib
});
});
};
$scope.get_categories();
You're right, is async function but still nothing. After this call $scope.get_categories(); I should be able to call categories in the ng-repeat, isn't it?
@dacastro4 try to print out categories in your html {{categories}} to check if it was assigned correctly.
still nothing ): I put {{categories}} inside the controller but outside the ngrepeat and nothing, then i put inside and nothing. There where you are telling me, right?
a friend helped me with this. He told me that I have to use $scope.$digest() to update the $scope variable and It works. Thanks anyways.
@dacastro4 Ahhh that is because your Category.Tree is a third party lib function, you are not requesting data using normal $http module from angular. An the way to tell angularjs that a third party lib had change the $scope is using $scope.apply() // don't use $digest.
| 13,997 |
https://zh-min-nan.wikipedia.org/wiki/Katerynivka%20%28Kamianka%20Ko%C4%81n%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Katerynivka (Kamianka Koān) | https://zh-min-nan.wikipedia.org/w/index.php?title=Katerynivka (Kamianka Koān)&action=history | Min Nan Chinese | Spoken | 25 | 87 | Katerynivka (Ukraina-gí: ) sī chi̍t ê tī Ukraina Kiōng-hô-kok Cherkasy Chiu Kamianka Koān ê chng-thâu (selo).
Chham-oa̍t
Ukraina ê chng-thâu
Chham-khó
Cherkasy Chiu ê chng-thâu | 10,302 |
https://fa.wikipedia.org/wiki/%D8%A7%D8%B3%D8%AA%D9%88%D9%86%20%D8%A7%DA%A9%D8%B3%DB%8C%D9%85 | Wikipedia | Open Web | CC-By-SA | 2,023 | استون اکسیم | https://fa.wikipedia.org/w/index.php?title=استون اکسیم&action=history | Persian | Spoken | 153 | 481 | استون اکسیم (استوکسیم) یک ترکیب آلی با فرمول شیمیایی (CH3)2CNOH است این ماده سادهترین مثال از گروه کتوکسیمها هست این ماده به صورت جامد کریستالی سفید است که در آب، اتانول، اتر و کلروفرم محلول است و از آن به عنوان یک واکنشگر در سنتز ترکیبات آلی استفاده میشود .
استون اکسیم (استوکسیم) برای اولین بار در سال ۱۸۸۲ توسط شیمیدان آلمانی ویکتور میر و دانش آموز سوئیسی اش آلوئیس جانی تهیه و نامگذاری شد.
آماده سازی
استون اکسیم با تراکم استون و هیدروکسیلآمین در حضور HCl سنتز میشود:
(CH3)2CO + H2NOH → (CH3)2CNOH + H2O
این ماده همچنین در اثر آموکسایش استون در حضور پراکسید هیدروژن نیز ایجاد میشود.
کاربردها
استون اکسیم یک پیشگیری کننده عالی در برابر خوردگی (دیاکسیدان) با سمیت کمتر و پایداری بیشتر در مقایسه با ماده متداول هیدرازین است. همچنین در تشخیص کتونها ، کبالت و نیز در سنتز ترکیبات آلی مفید است.
منابع
کتوکسیمها
مقالههای فاقد یوانآیآی | 4,615 |
https://ceb.wikipedia.org/wiki/Mycena%20furfuracea | Wikipedia | Open Web | CC-By-SA | 2,023 | Mycena furfuracea | https://ceb.wikipedia.org/w/index.php?title=Mycena furfuracea&action=history | Cebuano | Spoken | 48 | 90 | Kaliwatan sa uhong ang Mycena furfuracea. sakop sa ka-ulo nga Basidiomycota, ug Una ning gihulagway ni Aravind. ug Manim. ni adtong 2015. Ang Mycena furfuracea sakop sa kahenera nga Mycena, ug kabanay nga Mycenaceae. Walay nalista nga matang nga sama niini.
Ang mga gi basihan niini
Abungawg-uhong
Mycena | 24,447 |
https://en.wikipedia.org/wiki/Church%20of%20St%20Mary%20the%20Virgin%2C%20Bosley | Wikipedia | Open Web | CC-By-SA | 2,023 | Church of St Mary the Virgin, Bosley | https://en.wikipedia.org/w/index.php?title=Church of St Mary the Virgin, Bosley&action=history | English | Spoken | 553 | 792 | The Church of St Mary the Virgin is in Leek Road, Bosley, Cheshire, England. It is recorded in the National Heritage List for England as a designated Grade II* listed building. It is an active Anglican parish church in the diocese of Chester, the archdeaconry of Macclesfield, and the deanery of Macclesfield. Its benefice is combined with those of St Michael, North Rode, St Michael, Wincle, and St Saviour, Wildboarclough.
History
This church was initially a chapel of ease to the parish church of Prestbury and was dedicated to Saint Thomas the Martyr. Later the dedication was changed to Saint Lawrence, and later again to Saint Mary the Virgin. In response to a petition by the parishioners a papal bull was issued by Pope Boniface IX in 1402 granting the church greater independence.
The church was originally a timber-framed church with a stone tower. The red sandstone tower dates from about 1500. In 1777 the church, apart from the tower, was rebuilt in brick. A chancel designed by James Green was added in 1834. In 1878–79 new bells were installed, the tower was raised by , and some of the original medieval stonework was removed.
Architecture
Exterior
The tower is built of red sandstone, the nave and chancel of brick, with roofs of large grey slates. The tower has three stages with a 19th-century west door in a medieval arch, above which is a window with two lights. The top of the tower is battlemented. The plan of the body of the church consists of a four-bay nave and a one-bay chancel, and a lean-to vestry to the north of the tower. The tower is in Perpendicular style. The nave windows are wide and slightly pointed; those in the chancel are lancets.
Interior
In the church is a late 18th-century altar table, a 17th-century oak pulpit, sanctuary chairs from the same period, and a parish chest dating probably from the 16th century. The organ is dated 1879 and the stone font is also from the 19th century. In the church is a monument to John Willans Newell, a railway engineer, who died in 1851. This includes a female figure, a sarcophagus, an urn, and an amphora containing flowers. The stained glass in the east window and in two of the side windows dates from the 1960s, and is by Harcourt M. Doyle. There is a ring of six bells, the oldest bell by George Oldfield I being dated 1663. Two bells dated 1756 are by Rudhall of Gloucester and another two bells, dated 1927 and 1934 are by Gillett & Johnston. The maker of the sixth bell has not been identified. The parish registers begin in 1728.
External features
In the church yard is a sundial (with the gnomon missing) dating probably from the early 19th century. It consists of a copper dial on a short tapered square gritstone shaft with a square head standing on a weathered red sandstone base. Churchwardens' initials are engraved on the dial. It is listed at Grade II. The churchyard contains the war grave of a First World War Canadian soldier.
See also
Grade II* listed buildings in Cheshire East
Listed buildings in Bosley
References
External links
Photographs by Craig Thornber
Church of England church buildings in Cheshire
Grade II* listed churches in Cheshire
Diocese of Chester | 41,533 |
https://stackoverflow.com/questions/24719157 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Laurence, https://stackoverflow.com/users/1317935 | English | Spoken | 146 | 271 | Laravel Updating User - Admin and User only
When updating a user's account, what is the best way to only allow the user itself and the admin to do so?
I use multiauth and the only way I can think of is:
public function update($id)
{
if (Auth::admin()->check() || Auth::user()->get()->id == $id)
{
// Allow update
}
}
Is there a cleaner way to do so?
I think that is fine, just put that code in a filter, and do a 'before' check on it - then you can reuse it elsewhere later.
Where you put this code depends on your architecture.
If it's a simple setup, the model might be the perfect place for it:
class User extends Eloquent implements .... {
protected static function boot($id)
{
static::updating(function($user)
{
return $user->canCurrentUserUpdate();
});
}
protected function canCurrentUserUpdate()
{
return Auth::admin()->check() || Auth::user()->get()->id == $this->id;
}
}
| 31,034 |
https://de.wikipedia.org/wiki/Metrolinie%205%20%28Montreal%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Metrolinie 5 (Montreal) | https://de.wikipedia.org/w/index.php?title=Metrolinie 5 (Montreal)&action=history | German | Spoken | 352 | 705 | |}
Die Linie 5, auch „Blaue Linie“ () genannt, ist eine von vier U-Bahn-Linien der Metro Montreal. Sie ist 9,7 km lang und zählt zwölf Stationen. In Betrieb genommen wurde sie etappenweise in den Jahren 1986 bis 1988.
Diese Linie ist die einzige, die nicht das Stadtzentrum Montreals berührt. Sie verläuft überwiegend in Nordost-Südwest-Richtung an der Rückseite des Hausbergs Mont Royal. Erschlossen werden dabei die Arrondissements Villeray–Saint-Michel–Parc-Extension, Outremont und Côte-des-Neiges–Notre-Dame-de-Grâce sowie das Gelände der Université de Montréal. Es bestehen Umsteigemöglichkeiten zur Linie 2 (Orange Linie) an den Stationen Jean-Talon und Snowdon.
Geschichte
Beim Bau der Linie 2 erhielt die Station Snowdon im Jahr 1975 als Bauvorleistung eine zweite Bahnsteigebene, die mehr als ein Jahrzehnt ungenutzt blieb. 1979 fasste die Provinzregierung den Beschluss zum Bau der blauen Linie. Als erstes wurde am 16. Juni 1986 das Teilstück Saint-Michel – De Castelnau eröffnet. Es folgten die Abschnitte De Castelnau – Parc am 15. Juni 1987 und Parc – Snowdon am 4. Januar 1988. Die Eröffnung der Zwischenstation Acadie verzögerte sich um fast drei Monate und erfolgte schließlich am 28. März 1988. Weitere vorgesehene Verlängerungen an beiden Enden der Strecke unterblieben bisher aus finanziellen Gründen.
Ausbauplanungen
Die Agence métropolitaine de transport (AMT) veröffentlichte im Dezember 2011 die Studie Vision 2020. Gemäß dieser soll die Linie 5 von Saint-Michel aus weiter in Richtung Nordosten in das Arrondissement Anjou geführt werden. Vorgesehen sind insgesamt fünf neue Stationen; die Endstation würde sich beim Einkaufszentrum Galeries d’Anjou befinden, in unmittelbarer Nähe eines Autobahnkreuzes.
Auf unbestimmte Zeit zurückgestellt wurde die Verlängerung der blauen Linie von Snowdon aus in Richtung Südwesten. Erschlossen würden dabei Côte-Saint-Luc, Montréal-Ouest, Lachine und der Flughafen Pierre-Elliott-Trudeau. Für die Anbindung des Flughafens zieht die AMT in ihrer Vision 2020 mittlerweile einen Ausbau der Vorortseisenbahnlinie entlang dem Südufer der Île de Montréal in Betracht.
Bei der Station Édouard-Montpetit überquert die Metro den Mont-Royal-Tunnel. Planungen, die dort verlaufende AMT-Vorortsbahn mit der Metro zu verknüpfen, wurden nicht weiter verfolgt, da die Höhendifferenz zwischen den beiden Ebenen 50 Meter beträgt.
Weblinks
Beschreibung der Linie 5 auf metrodemontreal.com (französisch)
Offizielle Website des Metrobetreibers (französisch/englisch)
Metro Montreal auf urbanrail.net (englisch)
Einzelnachweise
Metro Montreal | 8,919 |
https://english.stackexchange.com/questions/534194 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Andrew Leach, Someone, The Photon, Weather Vane, https://english.stackexchange.com/users/18696, https://english.stackexchange.com/users/240807, https://english.stackexchange.com/users/24129, https://english.stackexchange.com/users/383629 | English | Spoken | 263 | 386 | Which direction is an apostrophe?
This question is related to LaTeX, however, the question itself is about English.
I am using LaTeX for a document, but since it doesn't use smart quotes or things like that, a question arises:
In a basic phrase like people's, should the apostrophe face forward or backward? (Forward means the end of a subquote, backward means the beginning)
Forwards. Some try to use the backtick ` as an apostrophe or single-quote. IMO it looks horrible.
In LaTeX, that turns into a quote.
So what happens when you use the keyboard character ' ?
Wikipedia has an article on the apostrophe that answers this question.
This could just about be about English, since other languages have other forms of apostrophe, but a simple Google search provides the answer.
Here's an excerpt from the first results of a Google Books search for people's:
(Conservation and Mobile Indigenous Peoples, Chatty & Colchester, Berghahn 2002)
However, even typing people’s in Windows, using Alt0146 for the apostrophe, provides a result, which could also be seen by looking online for examples.
Other “printers’ quotes” follow the 6–9 rule: six comes before nine, and opening quotes look like 6 with closing quotes looking like 9. Since an apostrophe is a closing quote (see printers’) it's a 9.
Since printers' is a 9, would printer's be a 9?
"Since an apostrophe is a closing quote, it's a 9". That is, it's the same character as a closing quote, even if it's not actually at the end of a word.
Alright then. I just needed a clarification
| 29,877 |
https://arz.wikipedia.org/wiki/%D8%AC%D9%8A%D9%81%D8%B1%D9%89%20%D8%AC%D8%A7%D9%84%D8%A7%D8%AA%D8%A7 | Wikipedia | Open Web | CC-By-SA | 2,023 | جيفرى جالاتا | https://arz.wikipedia.org/w/index.php?title=جيفرى جالاتا&action=history | Egyptian Arabic | Spoken | 58 | 165 | جيفرى جالاتا () لعيب كورة قدم من مملكة نيديرلاند.
حياته
جيفرى جالاتا من مواليد يوم 6 مارس سنة 1984 فى امستردام.
الحياه الرياضيه
لعب مع فريق Amsterdamsche FC.
لينكات برانيه
مصادر
ناس
لعيب كورة قدم من مملكه نيديرلاند
نيديرلانديين
لعيب كورة قدم من امستردام
ناس من امستردام
مواليد 1984
مواليد 6 مارس
ناس لسا عايشين
مواليد فى امستردام | 50,018 |
https://de.wikipedia.org/wiki/Ingrid%20Breckner | Wikipedia | Open Web | CC-By-SA | 2,023 | Ingrid Breckner | https://de.wikipedia.org/w/index.php?title=Ingrid Breckner&action=history | German | Spoken | 220 | 559 | Ingrid Breckner (* 1954 in Mediasch) ist eine deutsche Soziologin.
Leben
Sie studierte Erziehungswissenschaft und Soziologie an der LMU München. Sie forschte zu Medienpädagogik und Stadtentwicklung in München. Nach der Promotion in Soziologie an der Universität Bielefeld lehrte sie in Weihenstephan, München und Bochum. 1994/1995 lehrte sie als Gastprofessorin an der Universität Kassel. Seit 1995 war sie Professorin für Stadt- und Regionalsoziologie im Studiengang Stadtplanung an der TU Hamburg, der ab 2006 an die neu gegründete HafenCity Universität Hamburg transferiert wurde.
Ihre Forschungsschwerpunkte sind Suburbanisierung, Soziale Stadt, Flucht und Migration, Unsicherheit in europäischen Städten, Mobilität und Strategien integrierter Stadtentwicklung.
Schriften (Auswahl)
Neue Medien-Zukunft? Ein Handbuch für die Jugendarbeit. Opladen 1984, ISBN 3-8100-0472-3.
Wohnungsnot und Gewalt. München 1985, ISBN 3-89000-009-6.
mit Frank Herrath: Medienkonsum von Kindern und Jugendlichen. Pädagogische Kritik zwischen Mythen und Fakten. München 1987, ISBN 3-87966-276-2.
Armut im Reichtum. Erscheinungsformen, Ursachen und Handlungsstrategien in ausgewählten Grossstädten der Bundesrepublik. Bochum 1989, ISBN 3-88663-120-6.
mit Mariam Arouna, Umut Ibis, Joachim, Schröder & Cornelia Sylla: Fluchtort Stadt. Explorationen in städtische Lebenslagen und Praktiken der Ortsaneignung von Geflüchteten. Wiesbaden 2019, ISBN 978-3-658-26870-1 (Print), ISBN 978-3-658-26871-8 (E-Book).
mit Albrecht Göschel & Ulf Matthiesen (Hrsg.): Handbuch Stadtsoziologie und Stadtentwicklung. Baden-Baden 2020, ISBN 978-3-8487-3340-8 (print), ISBN 978-3-8452-7677-9 (PDF).
Weblinks
Hochschullehrer (HCU Hamburg)
Hochschullehrer (Technische Universität Hamburg)
Soziologe (21. Jahrhundert)
Soziologe (20. Jahrhundert)
Deutscher
Geboren 1954
Frau | 20,950 |
https://fr.wikipedia.org/wiki/Malvi%C3%A8s | Wikipedia | Open Web | CC-By-SA | 2,023 | Malviès | https://fr.wikipedia.org/w/index.php?title=Malviès&action=history | French | Spoken | 1,683 | 2,690 | Malviès est une commune française, située dans l'ouest du département de l'Aude en région Occitanie.
Sur le plan historique et culturel, la commune fait partie du Razès, un pays historiquement très étendu, qui ne se résume aujourd'hui qu'aux collines de la Malepère et au bas Razès au centre et au sud, limité par le pays de Sault. Exposée à un climat méditerranéen, elle est drainée par le Sou, le ruisseau de la Rivairolle et par divers autres petits cours d'eau. La commune possède un patrimoine naturel remarquable : un site Natura 2000 (le « massif de la Malepère ») et deux zones naturelles d'intérêt écologique, faunistique et floristique.
Malviès est une commune rurale qui compte en , après avoir connu une forte hausse de la population depuis 1975. Elle fait partie de l'aire d'attraction de Limoux. Ses habitants sont appelés les Malviais ou Malviaises.
Géographie
Localisation
Malviès est une commune située dans le Razès sur le Sou.
Communes limitrophes
Hydrographie
La commune est dans la région hydrographique « Côtiers méditerranéens », au sein du bassin hydrographique Rhône-Méditerranée-Corse. Elle est drainée par le Sou, le ruisseau de la Rivairolle, le Rec Grand, le ruisseau de Combe Marty, le ruisseau de Granet et le ruisseau de Saint-Blaise, qui constituent un réseau hydrographique de de longueur totale.
Le Sou, d'une longueur totale de , prend sa source dans la commune de Lignairolles et s'écoule du sud-ouest vers le nord-est puis vers l'est. Il traverse la commune et se jette dans l'Aude à Pieusse, après avoir traversé .
Climat
Le climat qui caractérise la commune est qualifié, en 2010, de « climat méditerranéen altéré », selon la typologie des climats de la France qui compte alors huit grands types de climats en métropole. En 2020, la commune ressort du type « climat méditerranéen » dans la classification établie par Météo-France, qui ne compte désormais, en première approche, que cinq grands types de climats en métropole. Pour ce type de climat, les hivers sont doux et les étés chauds, avec un ensoleillement important et des vents violents fréquents.
Les paramètres climatiques qui ont permis d’établir la typologie de 2010 comportent six variables pour les températures et huit pour les précipitations, dont les valeurs correspondent à la normale 1971-2000. Les sept principales variables caractérisant la commune sont présentées dans l'encadré suivant.
Avec le changement climatique, ces variables ont évolué. Une étude réalisée en 2014 par la Direction générale de l'Énergie et du Climat complétée par des études régionales prévoit en effet que la température moyenne devrait croître et la pluviométrie moyenne baisser, avec toutefois de fortes variations régionales. Ces changements peuvent être constatés sur la station météorologique de Météo-France la plus proche, « Limoux », sur la commune de Limoux, mise en service en 1945 et qui se trouve à à vol d'oiseau, où la température moyenne annuelle est de et la hauteur de précipitations de pour la période 1981-2010.
Sur la station météorologique historique la plus proche, « Carcassonne », sur la commune de Carcassonne, mise en service en 1948 et à , la température moyenne annuelle évolue de pour la période 1971-2000, à pour 1981-2010, puis à pour 1991-2020.
Milieux naturels et biodiversité
Réseau Natura 2000
Le réseau Natura 2000 est un réseau écologique européen de sites naturels d'intérêt écologique élaboré à partir des directives habitats et oiseaux, constitué de zones spéciales de conservation (ZSC) et de zones de protection spéciale (ZPS).
Un site Natura 2000 a été défini sur la commune au titre de la directive habitats : le « massif de la Malepère », d'une superficie de , un site boisé présentant un intérêt biogéographique vu sa position intermédiaire sous les influences des climats méditerranéen et atlantique. De nombreuses espèces sont en limite d'aire. Il s'agit d'un site important pour des chauves-souris d'intérêt communautaire avec six espèces présentes : le Grand Rhinolophe, le Petit Rhinolophe, le Murin à oreilles échancrées, le Rhinolophe euryale, le Minioptère de Schreibers et la Barbastelle.
Zones naturelles d'intérêt écologique, faunistique et floristique
L’inventaire des zones naturelles d'intérêt écologique, faunistique et floristique (ZNIEFF) a pour objectif de réaliser une couverture des zones les plus intéressantes sur le plan écologique, essentiellement dans la perspective d’améliorer la connaissance du patrimoine naturel national et de fournir aux différents décideurs un outil d’aide à la prise en compte de l’environnement dans l’aménagement du territoire.
Deux ZNIEFF de sont recensées sur la commune :
les « collines du Bas Razès » (), couvrant du département, et
le « massif de la Malepère » (), couvrant du département.
Urbanisme
Typologie
Malviès est une commune rurale. Elle fait en effet partie des communes peu ou très peu denses, au sens de la grille communale de densité de l'Insee.
Par ailleurs la commune fait partie de l'aire d'attraction de Limoux, dont elle est une commune de la couronne. Cette aire, qui regroupe , est catégorisée dans les aires de moins de .
Occupation des sols
L'occupation des sols de la commune, telle qu'elle ressort de la base de données européenne d’occupation biophysique des sols Corine Land Cover (CLC), est marquée par l'importance des territoires agricoles (93,8 % en 2018), néanmoins en diminution par rapport à 1990 (98,2 %). La répartition détaillée en 2018 est la suivante :
cultures permanentes (68,4 %), terres arables (17,3 %), zones agricoles hétérogènes (8,1 %), zones urbanisées (4,5 %), forêts (1,7 %). L'évolution de l’occupation des sols de la commune et de ses infrastructures peut être observée sur les différentes représentations cartographiques du territoire : la carte de Cassini (), la carte d'état-major (1820-1866) et les cartes ou photos aériennes de l'IGN pour la période actuelle (1950 à aujourd'hui).
Risques majeurs
Le territoire de la commune de Malviès est vulnérable à différents aléas naturels : météorologiques (tempête, orage, neige, grand froid, canicule ou sécheresse) et séisme (sismicité faible). Un site publié par le BRGM permet d'évaluer simplement et rapidement les risques d'un bien localisé soit par son adresse soit par le numéro de sa parcelle.
Le retrait-gonflement des sols argileux est susceptible d'engendrer des dommages importants aux bâtiments en cas d’alternance de périodes de sécheresse et de pluie. La totalité de la commune est en aléa moyen ou fort (75,2 % au niveau départemental et 48,5 % au niveau national). Sur les dénombrés sur la commune en 2019, 241 sont en aléa moyen ou fort, soit 100 %, à comparer aux 94 % au niveau départemental et 54 % au niveau national. Une cartographie de l'exposition du territoire national au retrait gonflement des sols argileux est disponible sur le site du BRGM.
Histoire
Politique et administration
Liste des maires
Démographie
La piste est un lieu de recueil pour les personnes âgées au bord de laquelle de grandes histoires (de chasse, de pêche, de boule) sont racontées par nos habitants de ce village.
De grands joueurs de pétanque s’entraînent nuit et jour sur ce terrain ma foi difficile tel J-L Montpellier (quintuple champion de Malvies) et d'autres maintenant à la retraite comme Roger Montpellier.
Économie
Revenus
En 2018 (données Insee publiées en ), la commune compte fiscaux, regroupant . La médiane du revenu disponible par unité de consommation est de ( dans le département).
Emploi
En 2018, la population âgée de s'élève à , parmi lesquelles on compte 73,9 % d'actifs (64,1 % ayant un emploi et 9,8 % de chômeurs) et 26,1 % d'inactifs. Depuis 2008, le taux de chômage communal (au sens du recensement) des est inférieur à celui de la France et du département.
La commune fait partie de la couronne de l'aire d'attraction de Limoux, du fait qu'au moins 15 % des actifs travaillent dans le pôle. Elle compte en 2018, contre 60 en 2013 et 41 en 2008. Le nombre d'actifs ayant un emploi résidant dans la commune est de 145, soit un indicateur de concentration d'emploi de 48,3 % et un taux d'activité parmi les 15 ans ou plus de 53,8 %.
Sur ces 145 actifs de 15 ans ou plus ayant un emploi, 30 travaillent dans la commune, soit 21 % des habitants. Pour se rendre au travail, 88,3 % des habitants utilisent un véhicule personnel ou de fonction à quatre roues, 3,5 % les transports en commun, 5,6 % s'y rendent en deux-roues, à vélo ou à pied et 2,7 % n'ont pas besoin de transport (travail au domicile).
Activités hors agriculture
20 établissements sont implantés à Malviès au .
Le secteur du commerce de gros et de détail, des transports, de l'hébergement et de la restauration est prépondérant sur la commune puisqu'il représente 50 % du nombre total d'établissements de la commune (10 sur les 20 entreprises implantées à Malviès), contre 32,3 % au niveau départemental.
Agriculture
La commune est dans le Razès, une petite région agricole occupant l'ouest du département de l'Aude, également dénommée localement « Volvestre et Razès ». En 2020, l'orientation technico-économique de l'agriculture sur la commune est la viticulture.
Le nombre d'exploitations agricoles en activité et ayant leur siège dans la commune est passé de 37 lors du recensement agricole de 1988 à 19 en 2000 puis à 17 en 2010 et enfin à 17 en 2020, soit une baisse de 54 % en 32 ans. Le même mouvement est observé à l'échelle du département qui a perdu pendant cette période 60 % de ses exploitations. La surface agricole utilisée sur la commune a également diminué, passant de en 1988 à en 2020. Parallèlement la surface agricole utilisée moyenne par exploitation a augmenté, passant de 16 à .
Culture locale et patrimoine
Lieux et monuments
Église Saint-Félix de Malviès.
Le monument aux morts, surmonté de la statue du Poilu au repos, réalisée par Étienne Camus.
Personnalités liées à la commune
Lazare Escarguel (1816-1893) : homme politique, choisi comme maire de la commune après la révolution de .
Héraldique
Voir aussi
Articles connexes
District de Limoux
Liste des communes de l'Aude
Liens externes
Malviès sur le site de l'Institut géographique national
Notes et références
Notes et cartes
Notes
Cartes
Références
Site de l'Insee
Autres sources
Commune dans l'Aude
Commune dans l'arrondissement de Limoux
Ancien chef-lieu de canton dans l'Aude
Aire d'attraction de Limoux | 23,628 |
https://de.wikipedia.org/wiki/Pursat%20%28Stadt%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Pursat (Stadt) | https://de.wikipedia.org/w/index.php?title=Pursat (Stadt)&action=history | German | Spoken | 86 | 186 | Pursat (Khmer: ) ist die Hauptstadt der Provinz Pursat in Kambodscha.
Geografie
Pursat liegt ungefähr 20 Kilometer südwestlich des Tonle Sap Sees. Durch die Stadt fließt der Stueng Pursat, der in den See mündet.
Durch den Ort führt die Nationalstraße 5, welche Pursat mit Battambang (Richtung Nordwesten) und Kampong Chhnang (Richtung Südosten) verbindet.
Im Jahr 1998 hatte Sisophon eine Bevölkerung von 25.650 (1998 Zensus), im Jahr 2008 waren es 27.180 (2008 Zensus).
Weblinks
Einzelnachweise
Ort in Kambodscha
Provinzhauptstadt in Kambodscha
Provinz Pursat
Namensgeber für einen Marskrater | 42,652 |
https://cs.stackexchange.com/questions/142522 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | Steven, hch, https://cs.stackexchange.com/users/139740, https://cs.stackexchange.com/users/6759, https://cs.stackexchange.com/users/83244, xskxzr | English | Spoken | 675 | 875 | Reduction from TSP to even TSP
I have a question from a test that I failed to pass, I failed to do the question.
The question:
Let's look at the problem of the even-length traveling agent. Given graph $G = (V,E)$ and a weight function on the arcs of the graph $W:E \rightarrow \mathbb{R} ^ {+}$ we would like to find an easier route (of the routes of even length) that passes through all the vertices of the graph and ends at the vertex where it started. We will be interested in the decisive version of the problem. That is, given a natural number $d$, we are asked: "Is there such an even-length route weighing ≤ $d$?"
Formally:
$ETSP = ${
$\left \langle G,w,d \right \rangle$ | There is a path of even length, which passes through all the vertices of G and ends at the point where it started and weighs ≤ $d$ }
Determine which of the following statements is correct:
The language is in P since a polynomial algorithm can be constructed bypassing all the neighbors at a distance of less than 6 from each vertex in G.
The language is in P, as a greedy polynomial algorithm can be constructed which will solve the problem. For each vertex, the algorithm will look at the neighbor with the minimum weight edge each time. This will ensure that the route that passes through all the vertices will be at a very small weight. Finally, he will check whether the length of the route is even and if not - he will start again.
$TSP \leq _P ETSP$ can be reduced so the language is in NPC
The language is not in NP, since if there is no such route then we can not verify it.
None of the above claims are true.
I think 3 is the correct answer.
Does not make sense
A greedy algorithm does not help with such problems
That's the answer, in my opinion, I'm not sure
I think it's not true, you can check it in polynomial time, just go over the witness' solution and see that it is even in length
A more meaningful problem is only to allow complete graphs, otherwise it can be easily reduced from the Hamiltonian cycle problem
Sorry for my English, I meant an even-length path. In TSP you can have an odd and even length path. But in ETSP it is only possible even length path
Just multiply all edge weights by $2$.
Option 1 is odd. We don't know whether a polynomial algorithm can be constructed. The "passing all the neighbors at a distance of less than 6 from each vertex in $G$" is unclear. Any algorithm solving the TSP problem must visit all vertices. Therefore it must also visit all neighbors of each vertex and, in particular, all neighbors at distance less than $6$.
If a polynomial-time algorithm exists, the second part of option 1, as I read it, is trivially satisfied.
Regarding option $2$. It is unclear what "will look at the neighbor with the minimum weight edge each time" means. In particular, what is meant by look? If the algorithm is just required to examine that neighbor in some way then this condition becomes trivial to satisfy (since the algorithm is still free to pick whatever tour) but we don't know if the language is in $P$. If the algorithm is required to build a tour by iteratively going from the current vertex to its closest neighbor, then this algorithm could even not produce a valid tour. If the algorithm goes to the closest unvisted neighbor, then it produces a tour but doesn't ensure that the length is even nor minimized.
Option 3 is true. Simply multiply all edge weights (and the target upper bound on the tour length) by $2$ (or any positive even constant). Notice that the language is in NP since a certificate is the tour itself.
Option $4$ and $5$ are false (this is implied by the fact that option 3 is true).
| 18,295 |
https://stackoverflow.com/questions/24701059 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Hot Licks, JeremyP, canaanmckenzie, https://stackoverflow.com/users/169346, https://stackoverflow.com/users/3772260, https://stackoverflow.com/users/581994 | English | Spoken | 749 | 1,470 | JSON from file not loading into NSArray
In order to test the JSON handling of my app I have created a test.json file that I want to load into an UITableView in my UIViewController class. I have created the JSON file and made a separate json loading class (JSONLoader) that implements the code:
#import <Foundation/Foundation.h>
@interface JSONLoader : NSObject
//return an array of chat objects from the json file given by url
- (NSArray *)chattersFromJSONFile:(NSURL *)url;
@end
in the .h file, in the .m file I have:
#import "JSONLoader.h"
#import "Chatter.h"
@implementation JSONLoader
- (NSArray *)chattersFromJSONFile:(NSURL *)url {
//create a NSURLRequest with the given URL
NSURLRequest *request = [NSURLRequest requestWithURL:url
cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
timeoutInterval:30.0];
//get data
NSURLResponse *response;
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil];
//create NSDictionary from the JSON data
NSDictionary *jsonDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
//create new array to hold chatter information
NSMutableArray *localChatters = [[NSMutableArray alloc] init];
//get an Array of dictionaries with the key "chatters"
NSArray *chatterArray = [jsonDictionary objectForKey:@"chatters"];
//iterate through array of dictionaries
for(NSDictionary *dict in chatterArray) {
//create new chatter object for each one and initialize it with info from the dictionary
Chatter *chatter = [[Chatter alloc] initWithJSONDictionary:dict];
//add the chatter to an array
[localChatters addObject:chatter];
}
//return array
return localChatters;
}
@end
Which I believe will work for both a JSON file loaded from a URL (the end goal) and also a JSON file I have in my Xcode project as a test. In the -viewDidLoad of my viewController.m file I use:
//create a new JSONLoader with a local file from URL
JSONLoader *jsonLoader = [[JSONLoader alloc] init];
NSURL *url = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"json"];
NSLog(@"%@",url);
//load the data on a background queue
//use for when connecting a real URL
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
_localChatters = [jsonLoader chattersFromJSONFile:url];
NSLog(@"%@",_localChatters);
//push data on main thread (reload table view once JSON has arrived)
[self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES];
});
I import the JSONLoader file and also the class the represents a test JSON object (singular chatter) and in my implementation I declare a NSArray *_localChatters.
I'm pretty convinced this should work, however when I NSLog(...) the array it displays empty (), where it should have a list of class objects. This means the JSON is never being parsed by my JSONLoader in the first place.
Any particular reason this could happen?
Don't complain until you fix this bug: error:nil.
Thanks, I added error checking and I got it returns "the operation couldn't be completed". (Cocoa error 3840). I did some research here however I still can't get my head around how I should fix this particular example. It can't recognize my test.json file?
Which error are you checking, the one from NSURLConnection or the one from NSJSONSerialization? And have you printed out the JSON? (Convert NSData to NSString using UTF8 char set, then log the string.)
Note that you did not quote the entire error message. What is the rest of it??
I added a NSError *error = nil; then for both of them I added &error and did a NSLog localizedDescription, it checks both. however I think from the error it is the NSURLConnection. As of right now the JSON is hardcoded into a test.json file that I wanted to access from the mainBundle, URLforResource: name withExtension: json, I've printed out the path, it seems to be correct so the code recognizes the file is there.
also thats the only error that shows from the NSLog, "The operation couldn't be completed. (Cocoa error 3840.)"
No, there is more to the message, if you NSLog it. Look at the question you linked above -- he got 2012-07-21 23:59:31.376 Whisper.Client.IOS[1058:fe03] Error : Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (No string key for value in object around character 1.) UserInfo=0xc9632e0 {NSDebugDescription=No string key for value in object around character 1.}
(Don't log localizedDescription, just log the whole NSError object.)
I see what you mean, here it is: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (Badly formed object around character 492.) UserInfo=0xdc0d810 {NSDebugDescription=Badly formed object around character 492.}
So you need to log the JSON string (as I described above) and figure out about where character 492 is.
It was a comma that should have been there, thanks for everything @HotLicks, works great now.
Don't forget that if you Google for "json parser" there are several online sites where you can paste a JSON string and have it syntax-checked and see it nicely formatted.
Paste your JSON string into jsonlint.com
| 15,213 |
https://lt.wikipedia.org/wiki/Ver%C4%97duvait%C4%97s%20tvenkinys | Wikipedia | Open Web | CC-By-SA | 2,023 | Verėduvaitės tvenkinys | https://lt.wikipedia.org/w/index.php?title=Verėduvaitės tvenkinys&action=history | Lithuanian | Spoken | 61 | 186 | Verėduvaitės tvenkinys – tvenkinys Lietuvoje, Raseinių rajone, 9,5 km į rytus nuo Girkalnio miestelio. Sudarytas užtvenkus Šakumos upelį (Dubysos intakas) 1,4 km nuo jo žiočių. Tvenkinio ilgis vakarų į rytus – 0,16 km, plotis – iki 0,08 km. Altitudė 73,1 m. Tvenkinys gausiai užžėlęs vandens augalais. Krantai aukštoki. Pietinis krantas apaugęs medžiais. Aplinkui plyti pievos ir krūmynai.
Šaltiniai
Raseinių rajono tvenkiniai | 44,917 |
https://be-x-old.wikipedia.org/wiki/%D0%A6%D0%B0%D1%80%D0%BA%D0%B2%D0%B0%20%D0%A1%D1%8C%D0%B2%D1%8F%D1%82%D0%BE%D0%B3%D0%B0%20%D0%90%D0%BF%D0%BE%D1%81%D1%82%D0%B0%D0%BB%D0%B0%20%D0%AF%D0%BD%D0%B0%20%D0%91%D0%B0%D0%B3%D0%B0%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%20%28%D0%94%D0%B0%D0%BC%D0%B0%D1%88%D0%B0%D0%BD%D1%8B%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Царква Сьвятога Апостала Яна Багаслова (Дамашаны) | https://be-x-old.wikipedia.org/w/index.php?title=Царква Сьвятога Апостала Яна Багаслова (Дамашаны)&action=history | Belarusian (Taraškievica) | Spoken | 222 | 892 | Царква Сьвятога Апостала Яна Багаслова — помнік архітэктуры XVIII ст. у Дамашанах. Знаходзіцца на паўночна-ўсходняй ускраіне вёскі, на могілках. Пры пабудове была ў юрысдыкцыі Сьвятога Пасаду, цяпер — у валоданьні Маскоўскага патрыярхату. Твор традыцыйнай беларускай драўлянай архітэктуры з элемэнтамі стылю барока, мастацкае аблічча якога пацярпела ў выніку надбудовы купалоў-цыбулінаў.
Гісторыя
значак|Царква па надбудове купалоў-цыбулінаў
Вялікае Княства Літоўскае
Царкву ў Дамашанах збудавалі ў 1772 годзе з дрэва. Яна была прыпісной да Мікольскай царквы ў Смалявічах.
Пад уладай Расейскай імпэрыі
Па другім падзеле Рэчы Паспалітай (1793 год), калі Дамашаны апынуліся ў складзе Расейскай імпэрыі, царква працягвала дзейнічаць як уніяцкая. Аднак па гвалтоўнай ліквідацыі Ўніяцкай царквы ў 1839 годзе расейскія ўлады адабралі будынак царквы ў Сьвятога Пасаду і перадалі ў валоданьне Ўрадавага сыноду Расейскай імпэрыі (Маскоўскага патрыярхату).
Найноўшы час
У 1990-я гады ў выніку рэканструкцыі замест прытвора дабудавалі аб’ём з маскоўскімі купаламі-цыбулінамі. Яшчэ адзін купал-цыбуліну збудавалі над дахам царквы. На сьцяне апсыды выклалі з дошак вялізны 8-канцовы маскоўскі крыж.
Архітэктура
Помнік традыцыйнай беларускай драўлянай архітэктуры з элемэнтамі стылю барока. Да кубападобнага зруба малітоўнай залі далучаліся прастакутныя прырубы прытвора і апсыды, над якой 2-схільны гонтавы дах пры дапамозе застрэшкаў пераходзіць у вальмавы. Дах завяршаецца 4-гранным барабанам з купалам. Вэртыкальна ашаляваныя сьцены праразаюцца прастакутнымі аконнымі праёмамі ў простых ліштвах. Уваход ажыцьцяўляецца праз ганак бакавога фасаду прытвора.
У афармленьні інтэр’еру выкарыстоўваецца разьба па дрэве.
Крыніцы
Літаратура
Дамашаны
Дамашаны | 22,019 |
https://uz.wikipedia.org/wiki/Eron%20va%20G%27arb | Wikipedia | Open Web | CC-By-SA | 2,023 | Eron va G'arb | https://uz.wikipedia.org/w/index.php?title=Eron va G'arb&action=history | Uzbek | Spoken | 174 | 522 | Eron va G'arb Britaniyaning uch qismli hujjatli filmi 2009-yilda fevral oyida BBC Two telekanalida Eron inqilobining 30 yilligi munosabati bilan namoyish etilgan- Birinchi epizod 7-fevral shanba kuni soat tungi 9 da, ikkinchi va uchinchi qismlar ketma-ket shanba kunlari namoyish etilgan. Hujjatli filmda Eron va Gʻarb mamlakatlari oʻrtasidagi munosabatlar koʻrib chiqiladi va 1979-yildan buyon Eron, Yevropa va Qoʻshma Shtatlar bilan bog'liq voqealarda muhim va asosiy rol oʻynagan siyosatchilar bilan suhbatlardan oʻrin olgan.
Seriya Norma Persi tomonidan ishlab chiqarilgan va uning oldingi seriyalari Yugoslaviya va Isroil va arablarning o'limi:tutib bo'lmaydigan tinchlikni o'z ichiga oladi. Uning oldingi seriyalari singari, Eron va G'arb bu masalada ishtirok etgan asosiy o'yinchilar bilan suhbatlarga ko'plab suyanib ish tutadi.
U 2009-yilda "dunyoning eng qiyin nuqtalaridan birini ko'rib chiqish mumkin bo'lgan va tarixiy jihatdan bebaho tekshiruvi uchun" Peabody mukofotiga ega chiqdi.
Epizodlar
Yana qarang
Afg'oniston-Eron munosabatlari
Eron-Iroq munosabatlari
Eron-Isroil munosabatlari
Eron-AQSh munosabatlari
Eron-Birlashgan Qirollik munosabatlari
Ma'lumotnomalar
Havolalar
Iran and the West at BBC Online
TV review: Iran and the West (BBC2), The Telegraph, 9 February 2009
The Weekend's Television: A grave new world, | 9,745 |
https://stackoverflow.com/questions/34650333 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | English | Spoken | 248 | 363 | Scroll multiple nested recycleviews at once
so... I came across a problem which I suspect there is no easy solution.
I need to make a big table in android, something like 20*10.
So I tried various ways to achieve that, Tablelayout got very quickly out of the question because it's inflating all the cells at once, which make the UI crash.
After a lot of search, I concluded that the best way is to use the reusable views concept.
So I came across a very nasty solution, with the use of nested recycleviews, here a diagram:
A big recycleview with gridlayout vertical scroll with 2 columns, first is the static headers, and the second column is nested recycleviews with linearlayout.
My question is, how to disable all the nested recycleviews scrollers, and implement one unified scroller (so it will look like one big table, and not separated rows).
And does this sounds like the best answer to this problem?
Any answer or guidance is very much appreciated!
Well, I actually found the answer myself, first of all I've used
stoyicker
library for aligning recycleviews.
Then for the content recycler I made a LinearLayoutmanager with horizontal scrolling, and in his the adapter I made passed one item, which is a nested Recycleview, with gridlayoutmanager with Vertical scrolling, disabled his touch events (the library can get buggy when the two recyclers can effect each other), and binded the left recycleviews scrolls to his.
And viola! I have the desired behavior.
| 38,205 | |
https://ce.wikipedia.org/wiki/%2815442%29%201998%20WN11 | Wikipedia | Open Web | CC-By-SA | 2,023 | (15442) 1998 WN11 | https://ce.wikipedia.org/w/index.php?title=(15442) 1998 WN11&action=history | Chechen | Spoken | 136 | 351 | (15442) 1998 WN11 — Мелхан системан коьрта асанан астероид.
Истори
ДӀайиллина 1998 шеран 21 ноябрехь LINEAR проект цӀе йолу Ӏилманчо Сокорро обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «1998 WN11» саналган.
Хьосташ
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.
Билгалдахарш
Хьажа иштта
(15443) 1998 WM19
Коьрта асанан астероидаш
Астероидаш абатца | 41,495 |
https://fr.wikipedia.org/wiki/Pierre%20Muller%20%28universitaire%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Pierre Muller (universitaire) | https://fr.wikipedia.org/w/index.php?title=Pierre Muller (universitaire)&action=history | French | Spoken | 925 | 1,302 | Pierre Muller, né le à Baden-Baden (Allemagne), est directeur de recherche en science politique au Centre national de la recherche scientifique (CNRS). Après avoir exercé ses fonctions au CÉRAT (IEP Grenoble), au Centre de recherches administratives et au CEVIPOF (Fondation nationale des sciences politiques), il a été membre du Centre d’études européennes de Sciences po Paris jusqu’en 2015. Il est désormais directeur de recherche honoraire au CNRS.
Biographie
Après des études secondaires au Prytanée national militaire de La Flèche, Pierre Muller est diplômé de l'Institut d'études politiques de Grenoble en 1971 et licencié en sociologie en 1972. Titulaire d'un diplôme d'études approfondies en science politique en 1973, il soutient en 1980 une thèse de doctorat sous la direction de Lucien Nizard sur la genèse et la mise en œuvre des lois d'orientation agricoles de 1960 et 1962. Il réalise par la suite des recherches sur les stratégies de diversification mises en place par les agriculteurs de montagne et propose la notion « d'exploitation rurale ». Par la suite il travaille sur les politiques aéronautiques, avec un ouvrage sur la naissance d'Airbus. Il a également développé des travaux sur les politiques européennes, les politiques locales et, plus récemment, les politiques du genre.
En tant que spécialiste de l'analyse des politiques publiques, Pierre Muller a contribué au développement de ce domaine en France en publiant plusieurs ouvrages de synthèse notamment L'état en action avec Bruno Jobert , ainsi que des manuels comme L'analyse des politiques publiques avec Yves Surel et le Que sais-je sur Les politiques publiques dont la a été publiée en 2013.
Pierre Muller a exercé un certain nombre de responsabilités collectives dans le domaine de la science politique. Il a ainsi été membre du Comité national de la recherche scientifique du CNRS de 1995 à 2000 et des comités de rédaction de la revue Politiques et management public et de la Revue française de science politique. Il a créé et dirigé aux éditions L'Harmattan la collection Logiques politiques. Il a été secrétaire général de l'Association française de science politique de 1999 à 2002 et plusieurs fois membre du jury de l'agrégation de science politique. En 2008-2009 il a exercé les fonctions de délégué scientifique à l’Agence d’évaluation de la recherche et de l'enseignement supérieur (AERES). Il est également membre de l'Académie d'agriculture de France.
L'analyse cognitive des politiques publiques
Sur la base de ses travaux portant sur des politiques sectorielles, Pierre Muller a contribué dans les années 1980 à l’introduction de l’analyse des politiques publiques en France, en développant (à partir de sa collaboration avec Bruno Jobert) une approche originale pour analyser l’action publique : l ’analyse cognitive des politiques publiques . Celle-ci consiste à étudier les programmes d’action publique non pas comme de simples processus de décision mais comme le lieu où une société donnée construit son « rapport au monde ». Les politiques publiques doivent alors être analysées comme des processus à travers lesquels vont être élaborées les représentations qu’une société se donne pour comprendre et agir sur le réel tel qu’il est perçu : quels sont les dangers qui la menacent ? Comment répartir les richesses ? Quelle place accorder à l’État ? Quelle doit être la place des femmes dans la sphère du travail ?
Le concept de « référentiel » d’une politique
Élaborer une politique publique consiste alors à construire une représentation, une image de la réalité sur laquelle on veut intervenir. C’est en référence à cette image cognitive que les acteurs organisent leur perception du problème, confrontent leurs solutions et définissent leurs propositions d’action. Cette vision du monde est le « référentiel » d’une politique . Par exemple, les propositions que l’on pourra faire en matière de politique de la santé dépendront de la représentation que l’on se fait du statut de la maladie dans la société moderne et du statut du personnel chargé de mettre en œuvre les systèmes de soin.
Comme représentation de la place et du rôle de l’État dans une société donnée à une époque donnée, le référentiel d’une politique publique peut se décomposer en deux éléments : le référentiel global et le référentiel sectoriel, la relation entre les deux formant le rapport global-sectoriel.
L’analyse des transformations de l’action publique
L’approche cognitive telle qu’elle est développée par Pierre Muller se présente comme une théorie globale pour analyser les transformations de l’action publique . Dans cette approche, le changement d’une politique intervient lorsque l’écart devient trop grand par rapport à un changement global. Le changement sectoriel est alors pris en charge par de nouveaux acteurs qui vont remettre en cohérence le référentiel de la politique sectorielle par rapport aux transformations du référentiel global et s’imposer par là comme les nouveaux acteurs dominant le secteur.
Une analyse des politiques « à la française » ?
Cette approche a influencé de nombreux travaux en France tout en donnant lieu à un certain nombre de débats et de controverses, en particulier sur la question de l’importance à accorder aux idées dans l’explication du changement, ou encore sur la possibilité de prendre en compte la dimension du « global » dans l’action publique. Son dernier ouvrage, La société de l’efficacité globale, paru en 2015, propose une réflexion générale sur les transformations de l’action publique aujourd’hui.
Publications
Ouvrages
Muller Pierre, La société de l’efficacité globale, Paris, Presses universitaires de France, 2015
Articles et chapitres d'ouvrages
Notes et références
Voir aussi
Liens externes
Centre d’études européennes
Sciences po
AFSP
PUF
Universitaire français
Élève du Prytanée national militaire
Élève de l'Institut d'études politiques de Grenoble
Naissance en décembre 1950
Naissance à Baden-Baden | 46,490 |
https://nl.wikipedia.org/wiki/Janthecla%20flosculus | Wikipedia | Open Web | CC-By-SA | 2,023 | Janthecla flosculus | https://nl.wikipedia.org/w/index.php?title=Janthecla flosculus&action=history | Dutch | Spoken | 29 | 52 | Janthecla flosculus is een vlinder uit de familie van de Lycaenidae. De wetenschappelijke naam van de soort werd als Thecla flosculus in 1907 gepubliceerd door Hamilton Herbert Druce.
Lycaenidae | 4,557 |
https://ce.wikipedia.org/wiki/%2814513%29%20Alicelindner | Wikipedia | Open Web | CC-By-SA | 2,023 | (14513) Alicelindner | https://ce.wikipedia.org/w/index.php?title=(14513) Alicelindner&action=history | Chechen | Spoken | 135 | 356 | (14513) Alicelindner — Мелхан системан коьрта асанан астероид.
Истори
ДӀайиллина 1996 шеран 15 апрелехь Эрик Эльст цӀе йолу Ӏилманчо Ла-Силья обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «1996 GK17» саналган.
Хьосташ
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.
Билгалдахарш
Хьажа иштта
(14514) 1996 GA18
Коьрта асанан астероидаш
Астероидаш абатца | 7,167 |
https://fr.wikipedia.org/wiki/Jimmy%20Morales%20%28homonymie%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Jimmy Morales (homonymie) | https://fr.wikipedia.org/w/index.php?title=Jimmy Morales (homonymie)&action=history | French | Spoken | 35 | 59 | Jimmy Morales peut faire référence à :
, avocat américain et personnalité politique de Floride ;
Jimmy Morales (1969-), acteur et homme d'État guatémaltèque, président du Guatemala de 2016 à 2020.
Source de la traduction | 12,695 |
https://ceb.wikipedia.org/wiki/Ch%C5%ABrew%C4%81la%20P%C4%81r | Wikipedia | Open Web | CC-By-SA | 2,023 | Chūrewāla Pār | https://ceb.wikipedia.org/w/index.php?title=Chūrewāla Pār&action=history | Cebuano | Spoken | 172 | 287 | Bukid ang Chūrewāla Pār sa Pakistan. Nahimutang ni sa lalawigan sa Punjab, sa amihanan-sidlakang bahin sa nasod, km sa habagatan sa Islamabad ang ulohan sa nasod. metros ibabaw sa dagat kahaboga ang nahimutangan sa Chūrewāla Pār.
Ang yuta palibot sa Chūrewāla Pār kabungtoran. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa amihanan-kasadpan sa Chūrewāla Pār. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Chūrewāla Pār nga hilabihan populasyon. Ang kinadul-ang mas dakong lungsod mao ang Choa Saidān Shāh, km sa kasadpan sa Chūrewāla Pār. Hapit nalukop sa kaumahan ang palibot sa Chūrewāla Pār.
Ang kasarangang giiniton °C. Ang kinainitan nga bulan Mayo, sa °C, ug ang kinabugnawan Enero, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Agosto, sa milimetro nga ulan, ug ang kinaugahan Disyembre, sa milimetro.
Saysay
Ang mga gi basihan niini
Kabukiran sa Punjab (lalawigan sa Pakistan)
Kabukiran sa Pakistan nga mas taas kay sa 500 metros ibabaw sa dagat nga lebel
Mga artikulo sa posisyon itarong ni bot | 9,502 |
https://bicycles.stackexchange.com/questions/81107 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | Adam Rice, Andrew Henle, Carel, Criggie, MaplePanda, Vladimir F Героям слава, Weiwen Ng, bertie, https://bicycles.stackexchange.com/users/10401, https://bicycles.stackexchange.com/users/19705, https://bicycles.stackexchange.com/users/21107, https://bicycles.stackexchange.com/users/21133, https://bicycles.stackexchange.com/users/2152, https://bicycles.stackexchange.com/users/33932, https://bicycles.stackexchange.com/users/38270, https://bicycles.stackexchange.com/users/38536, https://bicycles.stackexchange.com/users/3924, https://bicycles.stackexchange.com/users/54689, https://bicycles.stackexchange.com/users/61083, juhist, mattnz, uiux | English | Spoken | 1,300 | 1,668 | Can mechanical disc brake overheat?
I'm 195cm and 95kg and today was the second time (in one year) my mechanical disc brake pads burned down and had to replace them. The guy in the service told me that mechanical disc brakes are not that good. Is it really the case, the hydraulic brakes are much better? Or I'm really doing something wrong? (I was always told that I should only use the brakes before the corners when I descend, but when I come down from the hill and it is very steep, I just can't do that..)
Are you dragging your brakes on downhills continuously? This could be partially a technique thing. How steep is your descent (either drop/run or gradient, or point it out on strava)
Is the problem that your brake pads are wearing out quickly, or that they are overheating and becoming less effective?
Was he saying that all mechanicals are not as good as all hydraulic (wrong), or was he saying your brakes are not as good as a hydraulic he was suggesting? The question should not be about hydraulic or mechanical, its about if better brakes will make a difference, then you can discuss what type.
@Criggie around 12% descend for ~4 km. The road was narrow and new for me, with many sharp turns so I had to be careful. I already changed my brake pads to semi-metallic ones. My rotor is SM-RT56
@bertie They overheat and the next time I want to go for a ride I just realise that it doesn't work at all.
@mattnz I have a relatively old brake system from 2014 (shimano bR-CX77 which is for a cyclocross). Do the brakes get significantly better over the years?
@uiux around 12% descend for ~4 km That's about a 500m vertical drop. You and your bike weigh about 100 kg. Gravitational acceleration as about 10 m/s^2. That means when you do that descent you have to dissipate about 500,000J of gravitational potential energy. Water has a heat of vaporization of 2260 J/g, which means the potential energy you have to dissipate will boil about 1/5 of a liter of water. Put a pot with that much water in it on your stove, turn the heat to high, and it will probably take a long time to boil off that much water.
(cont) That should give you a feeling for about how much heat goes into your brakes when you drag your brakes down that descent - because you're going too slow to dissipate any significant portion of that energy through aerodynamic drag.
Dragging brakes is detrimental to the brakes with any vehicle. Short & controlled braking periods with release is the better technique.
There are ways in which hydraulic brakes are better, or tend to be better, and generally mechanical brakes cater to the low end of the market and hydraulic to the high end (notable exceptions each way), but none of those ways affect pad wear. Replacing disc pads at home is not hard.
Disc brake type should not affect pad wear, but does affect how hard you can brake. Hydraulic disc brakes tend to be more powerful than mechanical disc brakes.
Both mechanical and hydraulic disc brakes can overheat, leading to rotor "glazing" where pad material is left on the rotor, causing a slick surface and leading to poor braking performance.
Two general guidelines to increase braking power and resistance to overheating are:
Switching from resin disc brake pads to metallic disc brake pads (more even heat distribution)
Larger diameter disc rotors (more surface area for cooling)
If you are satisfied with the power of your brakes as-is, I would not consider replacing the brake pads twice a year excessive, depending on the type of riding. Brake pads are a wear item and need to be replaced periodically. It is a simple service and worth learning to do yourself. I have replaced the brake pads on my mountain bike three times this year, riding in wet and dirty conditions.
It sounds like you’re saying that both hydraulic and mechanical disc brakes can overheat. That is correct. In particular, the rotors overheating and possibly warping can happen on either type of brake. If you brake for really long, hydraulic fluid can also boil, but I am under the impression that the rotors would show issues before your brake fluid did. Also, re metallic pads, is it actually better heat distribution? I thought metallic pads have more bite.
One way in which mechanical disc brakes typically differ from hydraulic is that the mechanical discs have one pad in a fixed position and only one that moves, whereas in the hydraulic system both pads move. It is possible that in your brakes, the fixed pad is not adjusted properly and is too far from the rotor, causing substantial drag on the moving pad before the rotor moves far enough to contact the fixed pad.
This can cause excessive wear on the moving pad as well as potentially overheating that pad. It's an easy problem to diagnose by just looking at the pads and seeing if the moving side (farther from the wheel) is much more worn than the fixed side pad.
Alternatively, even if the pads do not overheat, normal wear on the fixed pad can increase the distance from the rotor to the point that overall braking power is compromised. This is easily fixed by adjusting the position of the pad as it gets worn.
Not all mechanical disc calipers are single-sided; double-sided models are available, including the TRP Spyke and Spyre.
No, hydraulics aren't better, all disc brake suffer from ridiculously low pad life.
Disc brakes have pretty crappy pad life. You may be able to extend pad life by using sintered metallic pads as opposed to using organic resin pads. However, then the rotor life suffers, being far worse with sintered metallic pads.
I am 106 kg, and have a tendency to brake hard using only the front brake. My organic resin front disc brake pads lasted only 2000 km when riding only in dry conditions. That's the worse pad life I have ever seen on any kind of brake. For example, rim brake pads last in excess of 10 000 km if riding only on dry conditions, and even 3000 km can be expected if riding in all kinds of conditions, never avoiding riding because of rain. 3000 km is the worst pad life I have ever had on rim brakes, and the 2000 km disc brake pad life is way below that.
The actuation mechanism (hydraulic vs cable) doesn't matter. The pad type is the only thing that matters. Also how much you weigh and how hard and how often you brake are variables in pad life.
I've seen that on hydraulics disc brake pads there is a cooling fin too, does that count much? (it is interesting I didn't see that on any mechanical disc brake pads).
The cooling fin might be able to help if the problem is too high brake heat. If you can only choose between hydraulics having cooling fins or mechanical brakes not having cooling fins, then obviously the hydraulics are better, but not because of the hydraulic fluid but rather the cooling fins.
What has your low pad life to do with overheating which was the topic of the question? Anyway, just buy better pads, my semi-metallic TRPs supplied with the calipers are still working well after 7.5k km. Many of them off-road.
Also improve your technique, use both brakes!
Pad life is unrelated to the question and is also a non-issue in general. I doubt many people are covering over 2000km in a single ride, and if you are, carrying extra brake pads is something you should be doing regardless…
| 23,447 |
https://en.wikipedia.org/wiki/Sa%20Re%20Ga%20Ma%20Pa%20Mega%20Challenge | Wikipedia | Open Web | CC-By-SA | 2,023 | Sa Re Ga Ma Pa Mega Challenge | https://en.wikipedia.org/w/index.php?title=Sa Re Ga Ma Pa Mega Challenge&action=history | English | Spoken | 1,044 | 2,359 | Sa Re Ga Ma Pa Mega Challenge was a special installment of the popular Indian Sa Re Ga Ma Pa vocal contest shown on Zee TV. This show was a seven-week-long competition among eight teams representing eight different states and consisting of total 24 talented contestants from past seasons of Sa Re Ga Ma Pa. Two teams were competing against each other each week starting 30 October 2009, to head towards the finales. The show was made to celebrate the 1000th episode of Sa Re Ga Ma Pa, and the Grand Finale on 12 Dec 2009 marked the 1000th episode of this great singing competition - a historic moment for any show on Indian television. Notable Indian singers and musicians were selected for each of the episodes to make the decisions as the judges.
The final was between West Bengal Abhijit Ghoshal, Keka Ghoshal and Sanchita Bhattacharya) and Maharashtra (Vaishali Made, Kaushik Deshpande and Rohit Raut) where the latter team was declared as a winner. Sonu Nigam, Suresh Wadkar and Pyarelal were seen as the panel of judges for the grand night.
Judges
The judges are:
30 & 31 October - Asha Bhonsle
6 & 7 November - Sadhana Sargam and Pritam
13 & 14 November - Suresh Wadkar and Alka Yagnik
20 & 21 November - Salim–Sulaiman and Pyarelal
27 & 28 November - Abhijeet Bhattacharya, Bappi Lahiri and Kavita Krishnamurthy
4 & 5 December - Kumar Sanu and Udit Narayan
11 December - Jatin Pandit, Anand, Daler Mehndi
12 December(1000th episode) - Sonu Nigam, Pyarelal and Suresh Wadkar
Hosts
The hosts of Mega Challenge are:
Vipul Roy and Manish Paul
Karan Singh Rathore and Archana Jani (only for the first week of 30-31 Oct)
Karan Singh and Archana Jani are Radio hosts, called "Radio Jockey" or "RJ" in India. They presented impressive Hindi voices in this show, but may have fallen short on expectations of TV audience.
Contestants
The contestants/captains who participate in this show are:
Teams
Assam:
Captain: Joy Chakraborty
Anamika Choudhari
Abhigyan Das
Gujarat:
Captain: Parthiv Gohil
Deepali Somaiya
Prachi Shah
West Bengal:
Captain: Abhijit Ghoshal Runner up of Mega Challenge
Keka Ghoshal
Sanchita Bhattacharya
Madhya Pradesh:
Captain: Sumedha Karmahe
Amir Hafiz
Pratibha Singh Baghel
Maharashtra:
Captain: Vaishali Mhade Winner of Mega challenge! 1000 episode winner!
Kaushik Deshpande
Rohit Raut
Punjab:
Captain: Tarun Sagar
Harpreet Deol
Rohanpreet Singh
Rajasthan:
Captain: Raja Hassan
Dilshad Ali
Priyanka Maliya
Uttar Pradesh:
Captain: Twinkle Bajpai
Hemant Brijwasi
Poonam Yadav
Versus
30 & 31 October - Maharashtra vs. Uttar Pradesh
6 & 7 November - Madhya Pradesh vs. Gujarat
13 & 14 November - Assam vs. Rajasthan
20 & 21 November - West Bengal vs. Punjab
27 & 29 November - Gujarat vs. Maharashtra
4 & 5 December - West Bengal vs. Assam
11 & 12 December - Maharashtra vs. West Bengal
Points
*Maharashtra vs. Uttar Pradesh
*Friday
Group Song 1 6 *Group Song 1 6
Duet Song 2 10 *Duet Song 2 7
Duet Song 3 6 *Duet Song 3 6
Total 22 * Total 19
*Maharashtra vs. Uttar Pradesh
*Saturday
Vaishali Made 10 *Twinkle Bajpai 8
Kaushik Deshpande 8 *Hemant Brijwasi 9
Rohit Raut 8 *Poonam Yadav 7
Total 48 Total 43
Winner Maharashtra pass to the Semifinal!
*Gujarat vs. Madhya Pradesh
*Friday
Group Song 1 7 *Group Song 1 8.5
Duet Song 2 9 *Duet Song 2 7.5
Duet Song 3 8 *Duet Song 3 6.5
Jungalbandi 5 *Jungalbandi 5
Total 29 * Total 27.5
*Gujarat vs. Madhya Pradesh
*Saturday
Parthiv Gohil 9 *Sumedha Karmahe 8
Deepali Somaiya 7 *Amir Hafiz 9.5
Prachi Shah 8 *Pratibha Singh Baghel 8
Jugalbandi 6 *Jugalbandi 4
Total 59 * Total 57
Winner Gujarat pass to the Semifinal!
*Rajasthan vs. Assam
*Friday
Group Song 1 7 *Group Song 1 8
Duet Song 2 8 *Duet Song 2 9
Duet Song 3 8 *Duet Song 3 9.5
Jugalbandi 5 *Jugalbandi 5
Total 28 * Total 31.5
*Rajasthan vs. Assam
*Saturday
Raja Hassan 10 *Joy Chakraborty 8
Dilshad Ali 9 *Anamika Choudhari 9.5
Priyanka Maliya 7.5 *Abhigyan Das 9
Jugalbandi 6 *Jugalbandi 4
Total 60.5 * Total 62
Winner Assam pass to the Semifinal!
*West Bengal vs. Punjab
*Friday
Group Song 1 7 *Group Song 1 5
Duet Song 2 7 *Duet Song 2 7
Duet Song 3 5 *Duet Song 3 7
Jugalbandi 5 *Jugalbandi 4
Total 24 * Total 23
*West Bengal vs. Punjab
*Saturday
Abhijit Ghoshal 8 *Tarun Sagar 9
Keka Ghoshal 8 *Harpreet Deol 4
Sanchita Bhattacharya 7 *Rohanpreet Singh 7
Jugalbandi 5 *Jugalbandi 5
Total 52 * Total 48
Winner West Bengal pass to the Semifinal!
*1st Semifinal
*Maharashtra vs. Gujarat
*Friday
Duet Song 1 7 *Duet Song 1 8
Vaishali Made 8 *Parthiv Gohil 8
Kaushik Deshpande 8 *Deepali Somaiya 6
Rohit Raut 8 *Prachi Shah 9
Total 31 * Total 31
*Maharashtra vs. Gujarat
*Saturday
Duet Song 1 8 *Duet Song 1 6.5
Vaishali Made 10 *Parthiv Gohil 8.5
Kaushik Deshpande 8 *Deepali Somaiya 7
Rohit Raut 7.5 *Prachi Shah 7.5
Jugalbandi 5 *Jugalbandi 5
Total 69.5 * Total 64.5
Winner Maharashtra and is the Mega Finalist of Sa Re Ga Ma Pa Mega Challenge!
2nd Semifinal
*West Bengal vs. Assam
Friday
Duet Song 1 10 *Duet Song 1 8
Abhijit Ghoshal 8 *Joy Chakraborty 9
Keka Ghoshal 9 *Anamika Choudhari 10
Sanchita Bhattacharya 10 *Abhigyan Das 10
Total 37 * Total 37
*West Bengal vs. Assam
Saturday
Duet Song 1 9 *Duet Song 1 9
Abhijit Ghoshal 10 *Joy Chakraborty 9.5
Keka Ghoshal 10 *Anamika Choudhari 10
Sanchita Bhattacharya 10 *Abhigyan Das 10
Jugalbandi 5 *Jugalbandi 5
Total 81 * Total 80.5
THE FINALS
The final was between West Bengal (Abhijit Ghoshal, Keka Ghoshal and Sanchita Bhattacharya) and Maharashtra (Vaishali Made, Kaushik Deshpande and Rohit Raut) where the latter team was declared as a winner. Sonu Nigam, Suresh Wadkar and Pyrelal were seen as the panel of judges for the grand night.
Eliminations
Here are the eliminations so far:
Episode 2 - Uttar Pradesh: Twinkle Bajpai
Episode 4 - Madhya Pradesh: Sumedha Karmahe
Episode 6 - Rajasthan: Raja Hasan
Episode 8 - Punjab: Tarun Sagar
Episode 10 - Gujarat: Parthiv Gohil
Episode 12 - Assam: Joy Chakraborty
Episode 14 - West Bengal: Abijit Ghoshal
References
Sa Re Ga Ma Pa | 10,931 |
https://ce.wikipedia.org/wiki/%2816610%29%201993%20FV23 | Wikipedia | Open Web | CC-By-SA | 2,023 | (16610) 1993 FV23 | https://ce.wikipedia.org/w/index.php?title=(16610) 1993 FV23&action=history | Chechen | Spoken | 136 | 354 | (16610) 1993 FV23 — Мелхан системан коьрта асанан астероид.
Истори
ДӀайиллина 1993 шеран 21 мартехь UESAC проект цӀе йолу Ӏилманчо Ла-Силья обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «1993 FV23» саналган.
Хьосташ
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.
Билгалдахарш
Хьажа иштта
(16611) 1993 FY23
Коьрта асанан астероидаш
Астероидаш абатца | 28,929 |
https://stackoverflow.com/questions/28176392 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | Ross Brooker, https://stackoverflow.com/users/1025392, https://stackoverflow.com/users/118098, maxwellb | Norwegian Nynorsk | Spoken | 510 | 1,164 | Http Header request returns 'ServerProtocolViolation'
I've got an interesting problem...
I'm messing around with a link checker program, here's the heart of it:
private static string CheckURL(string url)
{
string status = string.Empty;
string strProxyURL = "http://blah:1010";
string strNetworkUserName = "blahblahblah";
string strNetworkUserPassword = "blahblahblah";
string strNetworkUserDomain = "blahblah";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
WebProxy proxy = new System.Net.WebProxy(strProxyURL, false);
proxy.Credentials = new System.Net.NetworkCredential(strNetworkUserName, strNetworkUserPassword, strNetworkUserDomain);
request.Method = "HEAD";
request.Proxy = proxy;
try
{
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
status = response.StatusCode.ToString();
}
}
catch (WebException ex)
{
status = ex.Status.ToString();
}
return url + ";" + status;
}
... which I pinched from here.
The problem is that for most URLs I feed it I get an 'OK' status. But I have a page that acts as a PDF viewer that seems to return an OK when examined with Fiddler but shows 'ServerProtocolViolation' as the status within my checker.
I've noticed one oddity of the Fiddler result of this URL, it's got 3 instances of x-xss-protection and x-frame-options, but that's not going to stop it from working, is it???
Here's the Fiddler data:
HTTP/1.0 200 OK
Cache-Control: private
Pragma: public
Content-Length: 230070
Content-Type: application/pdf
Expires: Tue, 27 Jan 2015 17:17:46 GMT
Server: Microsoft-IIS/7.5
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
shortcut icon: href='http://www.jameshay.co.uk/favicon.ico' type='image/x-icon'
Content-Disposition: inline;filename=JamesHayDocJHMP0016Doc2931.pdf
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-AspNet-Version: 4.0.30319
X-UA-Compatible: IE=edge
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
Date: Tue, 27 Jan 2015 17:17:45 GMT
X-Cache: MISS from proxy-3_10
X-Cache: MISS from ClientSiteProxy
X-Cache-Lookup: MISS from ClientSiteProxy:3128
Connection: close
Edit (28/01 09:10am):
When using Fiddler I replace the proxy with this...
WebProxy proxy = new System.Net.WebProxy("127.0.0.1", 8888);
The DocumentView page is the only one that still adds the x-xss-protection and x-frame-options via the code behind, as the web.config file has those settings too:
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=edge" />
<add name="X-XSS-Protection" value="1; mode=block" />
<add name="X-Frame-Options" value="DENY" />
</customHeaders>
</httpProtocol>
I presume it's that which is causing the duplication... but is a duplication really going to mess with the response?
(End of edit)
So what can I do to either get the http request to come back with an 'OK' within my code, or is there an alternative way of checking the URL exists that I can use?
Any help, as always, much appreciated :)
Here's an example URL for the PDF viewer
Is Fiddler adding any of those duplicate headers to the response? Per http://stackoverflow.com/questions/2066037/serverprotocolviolation-error this error will appear when the response consumed by the client (returned by the server) is not valid HTTP. Likely, you need to resolve something upstream, either at the server returning the PDF, or with your proxy, which in this case is Fiddler.
I've added some more detail to the original question - I think I have duplication of the settings both in the code behind and web config which explains the multiple occurrences.
I've got a test version of the site fixed so the DocumentView page only returns single instances of the security options... and still I get an 'OK' in Fiddler, but a 'ServerProtocolViolation' from my link checker. Arghhhhh!
| 37,466 |
https://stackoverflow.com/questions/56838065 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | Necrophades, https://stackoverflow.com/users/6328018 | English | Spoken | 639 | 910 | Docker registry will not update images
I've set up a docker registry on a remote system. I've pushed some images to it. I've made changes to these images and want to update these images so when I pull them I get the most recent version. How can I guarantee I always get the newest version?
I tried to tag my image with :latest, but that doesn't seem to do anything. I also ensured the image gets built anew with the --no-cache flag.
This is what I do at the moment:
I build an image via
docker image build --tag karaf .
I tag that image with
docker image tag karaf outserver.at:5000/karaf
I push that image with
docker push outserver.at:5000/karaf
I pull the image on some destination system via
docker pull outserver.at:5000/karaf
I start my docker-compose file which has these images as services via
docker-compose up
I would expect the push command to just overwrite the existing image on the registry with the newer image. Logically, if I pull that image on the destination system, I would expect the image to be updated. But actually, the image I get is outdated.
Best practice is generally to be explicit in your docker run and similar commands: use a unique tag for every image build (like a date stamp, source control commit ID, or build number), use that specific version/build number when you’re deploying, and don’t rely on things like the latest tag.
The trick here is that if you docker run someimage:latest, Docker first starts by looking at its local list of images. If it already has something with that exact name and tag, it just runs it; if not, it will implicitly docker pull first. This extends to higher-level orchestration systems too (you have to go fairly far out of your way to get Kubernetes to force it to reload an image, for example).
In the case of Docker Compose, docker-compose up tries to bring the system into an expected state, doing the minimum work necessary. If you change the tag on your application container then docker-compose up will delete and recreate that one container without touching your database container. In addition to the manual docker pull you’re doing, you might need to docker-compose stop app; docker-compose rm app to force the one container to be rebuilt.
Okay, I actually did that as a quick fix as I didn't want to waste any more time, but if that's best practice that's all the better. Thank you!
If your push command genuinely worked and you successfully pushed a new image to your registry, then pulling the image as you're doing will work and you will end up with the newer image.
Check (via looking at the return code) that the push worked successfully (below shows Bash):
> docker push outserver.at:5000/karaf
> echo $?
If you are not seeing this then please show us the console messages for the build, tag, push and pull steps.
IMPORTANT:
Note that the :latest tag has nothing to do with the latest image in the registry! A tag is simply a string that is associated with an image: in this case, the string is made up of the letters l, a, t, e, s and t, it does not necessarily mean that the tag is the latest image. The :latest tag is overwritten in 2 circumstances:
You explicitly use the tag when pushing, e.g. docker push
outserver.at:5000/karaf:latest.
You specify no tag at all, e.g.
docker push outserver.at:5000/karaf.
If you push an image with no tag (thereby overwriting the latest tag in the registry), followed by pushing a newer image but specifying a tag, then the :latest tag will not be overwritten and will point to the first image, not the newer one.
Best practice is to always specify an image tag: never use the :latest tag.
| 46,414 |
https://fr.wikipedia.org/wiki/Massacres%20de%20Paracuellos | Wikipedia | Open Web | CC-By-SA | 2,023 | Massacres de Paracuellos | https://fr.wikipedia.org/w/index.php?title=Massacres de Paracuellos&action=history | French | Spoken | 650 | 1,089 | Les massacres de Paracuellos sont l'assassinat de plusieurs milliers de prisonniers politiques et religieux par des membres du camp républicain, durant les premières semaines de la bataille de Madrid (novembre-), lors de la guerre d'Espagne. Les faits se sont produits dans la banlieue de Madrid, près du ruisseau San José, à Paracuellos de Jarama, et dans le bois d'Aldovea, à Torrejón de Ardoz.
C'est l'un des épisodes les plus notoires de la Terreur rouge espagnole.
Contexte
Environ politiques et militaires avaient été incarcérés à Madrid avant le début de la guerre, en . Beaucoup d'entre eux avaient été capturés lors du soulèvement raté de la caserne de Montaña, à l'ouest de Madrid. Les prisonniers sont tombés sous le contrôle de la nouvelle Junta de Defensa de Madrid (Comité de défense de Madrid), un comité d'urgence laissé responsable de la ville le , après que le gouvernement républicain, dirigé par Francisco Largo Caballero, a évacué Madrid, pour sa capitale temporaire, Valence.
Déroulement et victimes
Beaucoup de prisonniers ont été sortis de prison lors des soi-disant « sacas » (extractions), 33 au total, entre le et le , lorsque les nationalistes ont lancé leur assaut sur Madrid, les républicains craignant la présence de tant de prisonniers potentiellement hostiles sur leurs arrières pendant la bataille. Les « extractions » ont été commandées par écrit par les autorités républicaines à Madrid, souvent dans des documents signés par Segundo Serrano Poncela, député de l'ordre public, travaillant directement sous la supervision de l'homme politique communiste Santiago Carrillo. La responsabilité directe de Carrillo dans le massacre est controversée.
Les assassinats se déroulèrent sur plusieurs jours, les 7, 8, 9, 18, 24, 25, 26, 27, 28, 29 et , et les et . Le , l'anarchiste Melchor Rodríguez, nommé en Délégué spécial aux prisons par le ministre anarchiste de la justice Juan García Oliver met fin aux exécutions.
Les protagonistes
La députée socialiste Margarita Nelken qui fut la première à demander de faire « évacuer » de force les prisonniers pour les fusiller. En revanche, elle n'eut aucun rôle durant la journée du massacre ;
Le directeur général de la Sécurité ;
Le socialiste Ángel Galarza, ministre de l'Intérieur (Ministro de Gobernación) dans le gouvernement Largo Caballero ;
Le communiste Santiago Carrillo, qui deviendra secrétaire général du Parti communiste d'Espagne (PCE) en 1960, responsable de l'ordre public dans le Comité de défense de Madrid du au que César Vidal désigne comme le principal organisateur des massacres.
Selon l'historien britannique Antony Beevor, l'ordre de tuer les prisonniers venait probablement du communiste espagnol José Cazorla Maure, ou, plus indirectement, du conseiller soviétique Mikhaïl Koltsov.
Typologie et nombre des victimes
On retrouve parmi ces prisonniers des militaires, soit ayant participé au soulèvement militaire des 17 et , soit n'ayant pas rejoint les forces de défense de la République, des phalangistes, des religieux, prêtres surtout, des militants de droite, des bourgeois et d'autres personnes arrêtées car suspectes d'être favorables aux militaires insurgés. Si certains d'entre eux avaient effectivement pris part au soulèvement, la majorité d'entre eux avaient cependant été arrêtées sans motif ni jugées.
Les raisons pour lesquelles les personnes furent fusillées :
appartenance à un collège catholique ou à une congrégation;
appartenance à une famille de médecins ou d'avocats ;
sympathisants du soulèvement nationaliste.
Pour l'historien César Vidal dont les conclusions sont critiquées par l'hispaniste irlandais Ian Gibson, il s'agit du plus grand massacre réalisé pendant toute la guerre civile dans l'un ou l'autre des deux camps. D'après Bartolomé Bennassar, le nombre de victimes de ce massacre précis s'élève à (sur ).
Suites
Notes et références
Voir aussi
Articles connexes
Guerre d'Espagne
Terreur rouge (Espagne)
Frente Popular
Mikhaïl Koltsov
Massacre de Katyń
Liens externes
Las matanzas de Paracuellos durante la Guerra Civil Española
Bibliographie
César Vidal, Paracuellos-Katyn, 2005.
Ian Gibson, Paracuellos: cómo fue, Plaza & Janés, Madrid, 1983, . Seconde édition : Temas de Hoy, Madrid, 2005.
Guerre d'Espagne
1936
Paracuellos | 24,614 |
https://en.wikipedia.org/wiki/Cannoncourt%20Farm%20Pit | Wikipedia | Open Web | CC-By-SA | 2,023 | Cannoncourt Farm Pit | https://en.wikipedia.org/w/index.php?title=Cannoncourt Farm Pit&action=history | English | Spoken | 104 | 154 | Cannoncourt Farm Pit is a geological Site of Special Scientific Interest in Maidenhead in Berkshire. It is a Geological Conservation Review site.
In the early twentieth century, these gravel pits yielded many Paleolithic tools of the Acheulian and Levallois industries, associated with the Neanderthals, including the largest hand axe ever found. The site is in the Lynch Hill Terrace of the River Thames, dating to the Wolstonian Stage between 350-200,000 years ago.
The pits have long ago been filled in and are now under a path and open ground in northern Maidenhead.
References
Sites of Special Scientific Interest in Berkshire
Geological Conservation Review sites | 33,212 |
https://stackoverflow.com/questions/69501414 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | https://stackoverflow.com/users/2516399, smartmouse | Norwegian Nynorsk | Spoken | 513 | 1,095 | Adding env to options when doing L.tileLayer.wms for leaflet
I have an application using ngx-leaflet, Leaflet for Angular, and I'm trying to do a L.titleLayer.wms but adding an extra option to tileLayer.wms. It looks likes this:
L.tileLayer.wms(url, {
layers: layerName,
format: 'image/png8',
version: '1.1.0',
transparent: true,
attribution: "",
tileSize: 512,
styles: styleName,
env: env // This is the additional option that I am trying to add
});
However, when I try to do this, I get the following error: Argument of type '{ layers: string; format: string; version: string; transparent: true; attribution: string; tileSize: number; styles: string; env: string; }' is not assignable to parameter of type 'WMSOptions'. Object literal may only specify known properties, and 'env' does not exist in type 'WMSOptions'
I'm pretty sure it's because the library only accepts these options for WMSOptions:
export interface WMSOptions extends TileLayerOptions {
layers?: string | undefined;
styles?: string | undefined;
format?: string | undefined;
transparent?: boolean | undefined;
version?: string | undefined;
crs?: CRS | undefined;
uppercase?: boolean | undefined;
}
So I tried to extend TileLayer and created another file that looks like this:
import * as L from 'leaflet';
export namespace ExtendWMS {
export class WMS extends L.TileLayer {
constructor(baseUrl: string, options: ExtendOptions) {
super (baseUrl, options)
};
setParams(params: ExtendParams, noRedraw?: boolean): this {
return this;
}
wmsParams: ExtendParams;
options: ExtendOptions;
}
}
export namespace extendLayer {
function wms(baseUrl: string, options: ExtendOptions): L.TileLayer.WMS {
return new ExtendWMS.WMS(baseUrl, options)
};
}
export interface ExtendOptions extends L.WMSOptions{
env?: string | undefined;
}
export interface ExtendParams extends L.WMSParams{
env?: string | undefined;
}
This is so that the WMSOptions will have the env variable that I need to add to the call, but when I do this and call it,
ExtendWMS.WMS(url, {
layers: layerName,
format: 'image/png8',
version: '1.1.0',
transparent: true,
attribution: "",
tileSize: 512,
styles: styleName,
env: env // This is the additional option that I am trying to add
});
I am unable to add the layer to the map and I notice that the wmsParams is missing: t.WMS {_url: url, options: {…}, _events: {…}, _initHooksCalled: true} when I try to console log the L.tileLayer.wms call...(I noticed that url, options and wmsParams is all present in the L.tileLayer.wms call)
Is there a way I can include the env option to WMSOption so that when I do a L.tileLayer.wms call, it will accept the env as a parameter? I'm trying to do this because I want to change the style for the specific layer in GeoServer: https://docs.geoserver.org/stable/en/user/services/wms/vendor.html#env
Any help with this is greatly appreciated!
All I needed to do to get it to work is:
import * as L from 'leaflet';
export class ExtendWMS extends L.TileLayer {
constructor(baseUrl: string, options: ExtendOptions ) {
super (baseUrl, options)
L.Util.setOptions(this, options);
};
}
export interface ExtendOptions extends L.WMSOptions {
layers: string ;
styles?: string | undefined;
format?: string | undefined;
transparent?: boolean | undefined;
version: string;
crs?: L.CRS | undefined;
uppercase?: boolean | undefined;
env?: string | undefined;
attribution?: string|undefined,
tileSize?: number|undefined,
icon: string|undefined,
tiled: boolean|undefined,
}
Great! It does the trick! Thank you for sharing ;)
| 32,110 |
https://stackoverflow.com/questions/50252756 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Neil Lunn, https://stackoverflow.com/users/1756068, https://stackoverflow.com/users/2313887, manoj | Danish | Spoken | 236 | 462 | Find all Data within Geometric view port in mongodb?
I am trying to get all data within viewport
"viewport": {
"northeast": {
"lat": -33.8652709197085,
"lng": 151.1972016802915
},
"southwest": {
"lat": -33.8679688802915,
"lng": 151.1945037197085
}
}
i have data in collection with data like
{data:"Block 1", location: { "coordinates" : [ 77.58556519999999, 12.943470099999999 ], "type" : "Point" }}
i tried it query on mongodb as
location: {
$near: {
$geometry: {
type: "Point",
coordinates: [27, 83.22].55
},
$maxDistance: 3000
}
}
but i want data within rectange frame how can i acgheve that ?
What do you mean by "viewport"? All you have are two points. Do you mean the northeast and southwest corners of a square? Or something else? $nearSphere will return "nearest" and optionally within a max distance as a "circular" radius. Could do with some clarification.
I get data like viewport that is left-top and button-right from client side and I have to find all data within that area
I think you mean "square" yet despite me actually saying that before you're still using this term where we have no idea what you mean. So you probably mean $geoWithin, but it's up to you to define the other two points in the "square". $geoWithin can take any shape really, but not a "diagonal line" which is all you've given us in the question.
ya I find the answer in https://docs.mongodb.com/manual/reference/operator/query/box/#op._S_box thanks for your support
| 7,090 |
https://stackoverflow.com/questions/76416509 | StackExchange | Open Web | CC-By-SA | 2,023 | Stack Exchange | English | Spoken | 166 | 207 | How to manage Google Colab's tendency for timing out
I need to run a model on Colab (one-off). Most recently it timed out after running for about 6 hours. I had the tab open in front of me and was working on another screen. When I looked again (last viewed only a few minutes before), the runtime had timed out. I'm not sure if a captcha had appeared that I missed. During the 6 hours before, the captcha had only appeared once.
I need to use Google Colab rather than an alternative. I could try Colab Pro/Pay As You Go but I'm not sure this would solve the time out issue - I have no need to close the tab but I also can't look continuously at the screen for a captcha for 6 hours. I know that Colab Pro + allows background execution but I can't pay for this. Any suggestions welcome! Even something like a sound notification when the captcha pops up would help.
| 45,738 | |
https://movies.stackexchange.com/questions/107064 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Johnny Bones, Mikey, Vishwa, https://movies.stackexchange.com/users/28318, https://movies.stackexchange.com/users/51336, https://movies.stackexchange.com/users/8071, https://movies.stackexchange.com/users/83263, ruffdove | English | Spoken | 234 | 347 | What's the meaning of "COS"?
In Charlie's Angels (2019), Sabina & Jane are acting as a lookout for a meeting between
Edgar & Elena:
Jane: COS perimeter check.
Sabina: "COS"? I have less than no idea what that means, but you are
good up here.
What's the meaning of "COS"?
I'm with Sabrina, have less than no idea what that means
In the military, COS is an abbreviation for Chief of Staff. CoS is an abbreviation for Combat Outpost. Might be the former, as Edgar is a Bosley.
In US intelligence circles, COS is Chief of Station—the ranking CIA officer at an embassy or other station.
This is not an answer, but when we were on a Geography field study with an older British dude in India, he would say to do a COS, which to him meant using triangles back in the 1700s to make a map of an area. Sort of like triangulation, I suppose to get an idea where something is. The COS referred to cosine in a sort of geographer's slang. Maybe hollywood spies use COS as slang for the same thing.
I've now watched this movie 5 times, and this time it just clicked. Jane was probably using two sentences: "COS" and "Perimeter check?" I'm personally thinking it stands for "Client on Site", so Sabina knew Elena has arrived for the meeting and then asking for a perimeter check.
| 31,984 |
https://stackoverflow.com/questions/60931224 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Tanaike, https://stackoverflow.com/users/7108653 | English | Spoken | 158 | 251 | Triger a function on a change in doc
I want to run a Google App Script function every time a change is made to my Google Doc. I have found onChange and onEdit triggers which are only available for Google Spreadsheet. I am sure there must be an edit/change trigger for Google Doc as well.
As the current workaround, is this method useful? https://gist.github.com/tanaikech/f27d427f07b20ca9fedec21e643c4a3e
Unfortunately there are no onEdit(), onChange() triggers for Google Docs.
The triggers available for Google Docs are the following:
onOpen() triggers both simple and installable;
time driven triggers;
onInstall() simple triggers.
What you can do instead is to use a time driven trigger so in this way even though the changes are not directly triggering the execution, the trigger will still run how often you want it to.
Last but not least, you can file a Feature Request on Issue Tracker where you specify the details needed.
Reference
Apps Script Trigger;
Google Issue Tracker.
| 48,764 |
https://stackoverflow.com/questions/78156026 | StackExchange | Open Web | CC-By-SA | null | Stack Exchange | English | Spoken | 158 | 366 | Woocommerce sort products by multiple meta keys
I'm adding extra sorting options for products, like by sku, or stock status.
It works, but I would like to have a sorting result by multiple meta keys: all the products in stock must appear before the out of stock ones, but I need them sorted by sku too.
I've found several functions both using woocommerce_get_catalog_ordering_args and woocommerce_product_query, but none of them seems working. I only get a sorting by _sku OR by _stock_status, never combined.
Any code working with the latest woocommerce version?
actual code:
add_filter('woocommerce_get_catalog_ordering_args', 'sort_products_by_stock_order');
function sort_products_by_stock_order($args) {
// in-stock filter and default
if(!isset( $_GET['orderby'] ) || ( isset( $_GET['orderby'] ) && 'in-stock' === $_GET['orderby'] )) {
$args['meta_key'] = '_stock_status';
$args['orderby'] = array( 'meta_value' => 'ASC' );
// SORT BY SKU
} else if( isset( $_GET['orderby'] ) && 'sku' === $_GET['orderby'] ) {
$args['meta_key'] = '_sku';
$args['orderby'] = array( 'meta_value' => 'ASC' );
}
return $args;
}
Thanks
| 48,062 | |
https://ce.wikipedia.org/wiki/%2815152%29%202000%20FJ5 | Wikipedia | Open Web | CC-By-SA | 2,023 | (15152) 2000 FJ5 | https://ce.wikipedia.org/w/index.php?title=(15152) 2000 FJ5&action=history | Chechen | Spoken | 136 | 354 | (15152) 2000 FJ5 — Мелхан системан коьрта асанан астероид.
Истори
ДӀайиллина 2000 шеран 29 мартехь Т. Кобаяси цӀе йолу Ӏилманчо Оидзуми обсерваторехь. Йуьхьанца дуьйна йолу цӀе - «2000 FJ5» саналган.
Хьосташ
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.
Билгалдахарш
Хьажа иштта
(15153) 2000 FD17
Коьрта асанан астероидаш
Астероидаш абатца | 22,393 |
https://cs.wikipedia.org/wiki/Knihovny%20starov%C4%9Bku | Wikipedia | Open Web | CC-By-SA | 2,023 | Knihovny starověku | https://cs.wikipedia.org/w/index.php?title=Knihovny starověku&action=history | Czech | Spoken | 193 | 507 | Velké starověké knihovny sloužily pro přechovávání posvátných textů, jako archivy vládců či jako sbírky knih a kronik.
Knihovny v Ugaritu (dnešní Sýrie), cca 1200 př. n. l., obsahovaly diplomatické archivy, literární tvorbu a první dosud objevené soukromé knihovny.
Aššurbanipalova knihovna v Ninive, 7. století př. n. l., je považována za první systematicky vytvořenou knihovnu. Znovu objevena byla v 19. století A. H. Layardem. Ačkoli byla knihovna zničena, mnoho úlomků hliněných tabulek se uchovalo a bylo restaurováno. Bylo díky tomu možné sestavit z větší části i Epos o Gilgamešovi.
Alexandrijská knihovna, založena na počátku vlády Ptolemaiovců v Egyptě, obsahovala pravděpodobně nejrozsáhlejší sbírky ve starověku.
Pergamská knihovna založená králi z Attalovské dynastie byla považována za druhou největší knihovnu hellénského světa, samozřejmě po té v Alexandrii. Poté, co ztratili přístup k papyru, na který se tehdy psalo, vynalezli nový materiál, na který se začaly zapisovat knihy - pergamen. Později byla přesunuta do Alexandrie Marcem Antoniem jako dar pro Kleopatru.
Knihovny na Foru sestávaly z několika oddělených knihoven, které byly založeny v časech Augusta, nalezených poblíž Fora Romana a které obsahovaly jak latinské, tak řecké texty, které byly od sebe oddělené.
Reference
Externí odkazy
Starověk
Seznamy knihoven | 3,681 |
https://de.wikipedia.org/wiki/Josef%20Nebehosteny | Wikipedia | Open Web | CC-By-SA | 2,023 | Josef Nebehosteny | https://de.wikipedia.org/w/index.php?title=Josef Nebehosteny&action=history | German | Spoken | 311 | 696 | Josef Nebehosteny (* 8. August 1852 in Wien; † 12. Januar 1921 in Brünn) war ein österreichischer Architekt. Er wirkte beim Bau des Brünner Stadt-Theaters (heute Mahen-Theater) mit und war als selbstständiger Architekt für den Bau einiger bedeutender Gebäude in Brünn verantwortlich.
Leben
Nebehosteny studierte von 1870 bis 1872 an der Akademie der bildenden Künste in Wien. Sein Praktikum absolvierte er bei Architekt Paul Wasserburger in Wien, bei der Südbahn und im Atelier F. Fellner d. J. & H. Helmer. Im Jahr 1881 kam er als leitender Architekt in vorgenanntem Atelier für den Bau des Deutschen Stadt-Theaters nach Brünn.
Seit 1883 wirkte er als selbstständiger Architekt in Brünn und wohnte in der Křenová 68. Er baute etliche öffentliche Gebäude wie den Justizpalast (heute Kreisgericht Brünn, Rooseveltova 16/648), sowie mehrere Villen und Wohnhäuser.
Eine Auswahl:
1898–1900 die heutige Brünner Finanzverwaltung (náměstí Svobody 4/98)
1900 das Gebäude der Trauerzeremonienhalle des Brünner Jüdischen Friedhofs
1902–1905 den Umbau des heutigen Brünner Hauptbahnhofs (Brno hlavní nádraží)
1906–1910 die Deutsche Hochschule für Technik Brünn (heute Fakultät für Sozialwissenschaften der Masaryk-Universität, Joštova 10/218)
1906 die sogenannte „Kleine Villa“ Löw-Beer in Svitávka
1909 wurde Nebehosteny zum Präsidenten des Verbandes der Bauunternehmer und 1913 zum Präsidenten des Architekten-Vereins von Mähren und Schlesien ernannt. Er begleitete noch weitere Ämter, z. B. war er Erster Vizepräsident des Mährischen Gewerbevereins.
Weblinks
Über Nebehosteny auf der offiziellen Webseite der BRUNA
Personendaten auf den Seiten der Online-Enzyklopädie der Stadt Brno/Brünn (tschechisch)
Erwähnung Trauerzeremonienhalle mit Foto auf den Seiten des Jüdischen Gemeindezentrums Brno
Villa Löw-Beer auf den Seiten der Villa Tugendhat (englisch)
Beschreibung des Gebäudes Deutschen Technischen Hochschule Brünn (PDF; 9,7 MB) auf den Seiten der Fakultät für Sozialwissenschaften der Universität Brünn (tschechisch)
Beschreibung des Mahen-Theaters auf den Seiten der Theater-Datenbank (mit Fotos, englisch)
Beschreibung Finanzverwaltung auf den Seiten einer Restaurierungsfirma (mit Fotos, tschechisch)
Einzelnachweise
Architekt (Österreich)
Person (Brünn)
Person (Cisleithanien)
Geboren 1852
Gestorben 1921
Mann | 42,681 |
https://nl.wikipedia.org/wiki/Molen%20van%20den%20Kinschot | Wikipedia | Open Web | CC-By-SA | 2,023 | Molen van den Kinschot | https://nl.wikipedia.org/w/index.php?title=Molen van den Kinschot&action=history | Dutch | Spoken | 105 | 204 | De Molen van den Kinschot of Molen Rijmenants is een windmolenrestant in de Antwerpse plaats Ranst, gelegen aan Molenstraat 46.
Deze ronde stenen molen van het type stellingmolen fungeerde als oliemolen en later vooral als korenmolen.
Geschiedenis
De molen werd als oliemolen opgericht in 1856. Vanaf 1899 werd hij vooral als korenmolen gebruikt. Er werd nog een stuk op de molenromp gebouwd. In 1903 werd een stoommachine bijgeplaatst. De molen werd omstreeks 1925 van kap en wiekenkruis ontdaan.
In 2001 werd de molen geklasseerd als monument en in 2006 werd een restauratie van de romp uitgevoerd.
Kinschot
Onroerend erfgoed in Ranst
Beschermd monument in Vlaanderen | 50,593 |
https://su.wikipedia.org/wiki/Mulyo%20Asri%2C%20Tulang%20Bawang%20Tengah%2C%20Tulang%20Bawang%20Kulon | Wikipedia | Open Web | CC-By-SA | 2,023 | Mulyo Asri, Tulang Bawang Tengah, Tulang Bawang Kulon | https://su.wikipedia.org/w/index.php?title=Mulyo Asri, Tulang Bawang Tengah, Tulang Bawang Kulon&action=history | Sundanese | Spoken | 19 | 54 | Mulyo Asri nyaéta salah sahiji Kalurahan di kacamatan Tulang Bawang Tengah, Kabupatén Tulang Bawang Kulon, Propinsi Sumatra Kalér, Indonésia. | 659 |
https://nl.wikipedia.org/wiki/Parolamia%20rudis | Wikipedia | Open Web | CC-By-SA | 2,023 | Parolamia rudis | https://nl.wikipedia.org/w/index.php?title=Parolamia rudis&action=history | Dutch | Spoken | 29 | 55 | Parolamia rudis is een keversoort uit de familie van de boktorren (Cerambycidae). De wetenschappelijke naam van de soort werd voor het eerst geldig gepubliceerd in 1878 door Scudder.
Boktorren | 18,900 |
https://stackoverflow.com/questions/11449211 | StackExchange | Open Web | CC-By-SA | 2,012 | Stack Exchange | Adam Gent, Aiden Zhao, Amber, CodeNameGrant, Emanuele, Inquisitive, MasterJoe, Suketu Bhuta, amicngh, dbf, https://stackoverflow.com/users/1168904, https://stackoverflow.com/users/1324406, https://stackoverflow.com/users/1347082, https://stackoverflow.com/users/2200690, https://stackoverflow.com/users/2587430, https://stackoverflow.com/users/2608104, https://stackoverflow.com/users/2980108, https://stackoverflow.com/users/318174, https://stackoverflow.com/users/6187114, https://stackoverflow.com/users/6648326, https://stackoverflow.com/users/775523, nitinsridar | English | Spoken | 712 | 1,833 | How to prevent null values inside a Map and null fields inside a bean from getting serialized through Jackson
I have a a Map<String,Foo> foosMap that I want to serialize through Jackson . Now I want following two settings on the serialization process:
The Map can have have plenty of null values and null keys and I don't want nulls to be serialized.
For all those Foos that are getting serialized, I do not want to serialize null objects referenced inside Foo.
What is the best way to achieve this ? I am using jackson-core1.9 and jackson-mapper1.9 jars in my project.
Possible duplicate, please check this link: http://stackoverflow.com/questions/3140563/how-to-avoid-null-values-serialization-in-hashmap
Map can have atmost one null key
@dbf not quite . please see the edited question title again.
@dbf Also that method in the accepted answer seems to be deprecated now
If it's reasonable to alter the original Map data structure to be serialized to better represent the actual value wanted to be serialized, that's probably a decent approach, which would possibly reduce the amount of Jackson configuration necessary. For example, just remove the null key entries, if possible, before calling Jackson. That said...
To suppress serializing Map entries with null values:
Before Jackson 2.9
you can still make use of WRITE_NULL_MAP_VALUES, but note that it's moved to SerializationFeature:
mapper.configure(SerializationFeature.WRITE_NULL_MAP_VALUES, false);
Since Jackson 2.9
The WRITE_NULL_MAP_VALUES is deprecated, you can use the below equivalent:
mapper.setDefaultPropertyInclusion(
JsonInclude.Value.construct(Include.ALWAYS, Include.NON_NULL))
To suppress serializing properties with null values, you can configure the ObjectMapper directly, or make use of the @JsonInclude annotation:
mapper.setSerializationInclusion(Include.NON_NULL);
or:
@JsonInclude(Include.NON_NULL)
class Foo
{
public String bar;
Foo(String bar)
{
this.bar = bar;
}
}
To handle null Map keys, some custom serialization is necessary, as best I understand.
A simple approach to serialize null keys as empty strings (including complete examples of the two previously mentioned configurations):
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.SerializerProvider;
public class JacksonFoo
{
public static void main(String[] args) throws Exception
{
Map<String, Foo> foos = new HashMap<String, Foo>();
foos.put("foo1", new Foo("foo1"));
foos.put("foo2", new Foo(null));
foos.put("foo3", null);
foos.put(null, new Foo("foo4"));
// System.out.println(new ObjectMapper().writeValueAsString(foos));
// Exception: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?)
ObjectMapper mapper = new ObjectMapper();
mapper.configure(SerializationFeature.WRITE_NULL_MAP_VALUES, false);
mapper.setSerializationInclusion(Include.NON_NULL);
mapper.getSerializerProvider().setNullKeySerializer(new MyNullKeySerializer());
System.out.println(mapper.writeValueAsString(foos));
// output:
// {"":{"bar":"foo4"},"foo2":{},"foo1":{"bar":"foo1"}}
}
}
class MyNullKeySerializer extends JsonSerializer<Object>
{
@Override
public void serialize(Object nullKey, JsonGenerator jsonGenerator, SerializerProvider unused)
throws IOException, JsonProcessingException
{
jsonGenerator.writeFieldName("");
}
}
class Foo
{
public String bar;
Foo(String bar)
{
this.bar = bar;
}
}
To suppress serializing Map entries with null keys, further custom serialization processing would be necessary.
Just a caveat these directions are Jackson 2.0 specific (com.fasterxml vs org.codehaus).
@ProgrammerBruce - Is it possible to prevent null-field serialization for a specific class in the object mapper?
eg: Use the same object mapper to serialize class A and B, but only null-fields in class B are ignored.
@ProgrammerBurce - as the jackson has upgraded to 2.9, the WRITE_NULL_MAP_VALUES is deprecated. Do you know is there an alternative way to do the same?
I find the equivalent of WRITE_NULL_MAP_VALUES since 2.9: mapper.setDefaultPropertyInclusion(JsonInclude.Value.construct(Include.ALWAYS, Include.NON_NULL))
@AidenZhao - I have jackson 2.9.2. My IDE, Intellij IDEA does not show any method called "setDefaultPropertyInclusion" for com.fasterxml.jackson.databind.ObjectMapper. Am I missing something ?
For Jackson versions < 2.0 use this annotation on the class being serialized:
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
FYI, this is deprecated, the accepted answer above has the latest annotation: @JsonInclude(Include.NON_NULL)
Note that the JsonInclude annotation is not available if you are using Jackson 1.9.x in which case you will have to use the JsonSerialize annotation.
I confirm with Jackson 1.9.x the @JsonInclude(Include.NON_NULL) doesn't work. I'm importing this package: org.codehaus.jackson.map
Answer seems to be a little old, What I did was to use this mapper to convert a MAP
ObjectMapper mapper = new ObjectMapper().configure(SerializationConfig.Feature.WRITE_NULL_MAP_VALUES, false);
a simple Map:
Map<String, Object> user = new HashMap<String,Object>();
user.put( "id", teklif.getAccount().getId() );
user.put( "fname", teklif.getAccount().getFname());
user.put( "lname", teklif.getAccount().getLname());
user.put( "email", teklif.getAccount().getEmail());
user.put( "test", null);
Use it like this for example:
String json = mapper.writeValueAsString(user);
Please add the output of the json.
my solution, hope help
custom ObjectMapper and config to spring xml(register message conveters)
public class PyResponseConfigObjectMapper extends ObjectMapper {
public PyResponseConfigObjectMapper() {
disable(SerializationFeature.WRITE_NULL_MAP_VALUES); //map no_null
setSerializationInclusion(JsonInclude.Include.NON_NULL); // bean no_null
}
}
| 43,047 |
https://ro.wikipedia.org/wiki/Olendon | Wikipedia | Open Web | CC-By-SA | 2,023 | Olendon | https://ro.wikipedia.org/w/index.php?title=Olendon&action=history | Romanian | Spoken | 27 | 55 | Olendon este o comună în departamentul Calvados, Franța. În 2009 avea o populație de 183 de locuitori.
Note
Vezi și
Lista comunelor din Calvados
Comune din Calvados | 21,019 |
https://arz.wikipedia.org/wiki/%D8%A7%D9%8A%D8%B3%D8%A7%D9%83%20%D9%85%D9%8A%D9%84%D8%B3%D9%88%D9%86%20%D9%85%D9%8A%D9%83%D9%8A%D9%86%D8%B3 | Wikipedia | Open Web | CC-By-SA | 2,023 | ايساك ميلسون ميكينس | https://arz.wikipedia.org/w/index.php?title=ايساك ميلسون ميكينس&action=history | Egyptian Arabic | Spoken | 40 | 114 | ايساك ميلسون ميكينس كان محامى من امريكا.
حياته
ايساك ميلسون ميكينس من مواليد يوم 13 فبراير سنة 1875 فى مقاطعه تايريل, مات فى 21 نوفمبر سنة 1946.
الدراسه
درس فى جامعة ويك فورست.
لينكات برانيه
مصادر
محاميين
محاميين من امريكا | 29,835 |
https://lv.wikipedia.org/wiki/FC%20Nitra | Wikipedia | Open Web | CC-By-SA | 2,023 | FC Nitra | https://lv.wikipedia.org/w/index.php?title=FC Nitra&action=history | Latvian | Spoken | 29 | 104 | FC Nitra ir Slovākijas futbola klubs no Nitras. Dibināts 1909. gadā, pašlaik spēlē Slovākijas Superlīgā.
Sasniegumi
2. Liga (1993–šobrïd)
Uzvarētāji (3): 1994–95, 1997–98, 2004–05
Sezonas
Atsauces
Ārējās saites
Nitra | 22,460 |
https://en.wikipedia.org/wiki/Bowers%20Basebed | Wikipedia | Open Web | CC-By-SA | 2,023 | Bowers Basebed | https://en.wikipedia.org/w/index.php?title=Bowers Basebed&action=history | English | Spoken | 101 | 155 | Portland Bowers Basebed is a type of limestone from Bowers Quarry at the Isle of Portland in Dorset, southern England, on the Jurassic Coast, a World Heritage Site.
The stone is clear of fossils and is the cleanest of the Portland stone types. Bowers Basebed, which is quarried by Albion Stone, has a maximum bed height of 1.95 metres. It is known for being highly durable and being able to withstand the effects of weathering.
Bowers Basebed was used to construct "7–10 Old Bailey", in the city of London.
See also
Portland Bowers Roach
Portland stone
References
Limestone
Isle of Portland | 22,376 |
https://br.wikipedia.org/wiki/1907%20e%20Breizh | Wikipedia | Open Web | CC-By-SA | 2,023 | 1907 e Breizh | https://br.wikipedia.org/w/index.php?title=1907 e Breizh&action=history | Breton | Spoken | 116 | 328 |
Darvoudoù
30 Ebrel : an embregerezh Hénaff zo savet e Ploudreuzig gant Jean Hénaff.
4 Eost : gant Lucien Petit-Breton ez a ar maout e Tro Bro-C'hall.
Sevenadur
Ganedigezhioù 1907
Camille Bryen, arzour, barzh ha livour
Henri-François Buffet, istorour ha diellour
Raymond Delaporte, broadelour hag geriadurour breizhat
Denise Guieysse, broadelour breizhat
Yvette L'Héritier, livour breizhat
Jean Langlais, ograouer, pedagogour hag saver-tonioù breizhat
Arsène Le Jeune, barzh brezhonek
Ivona Martin, emsaver ha skrivagner breizhat
Robert Micheau-Vernez, livour breizhat
Yves Miossec, skrivagner brezhonek
Jacques Pâris de Bollardière, jeneral en arme c'hall
Madalen Saint Gal de Pons, skrivagnerez ha barzhez vrezhonek
Adolphe Touffait, melldroader ha reizhaouer breizhat
Marvioù 1907
Reun Kerviler, istorour breizhat
1907
Istor Breizh en XXvet kantved | 42,981 |
https://ceb.wikipedia.org/wiki/Lucidella%20midyetti | Wikipedia | Open Web | CC-By-SA | 2,023 | Lucidella midyetti | https://ceb.wikipedia.org/w/index.php?title=Lucidella midyetti&action=history | Cebuano | Spoken | 40 | 74 | Kaliwatan sa dawhilahila ang Lucidella midyetti. Una ning gihulagway ni Richards ni adtong 1938. Ang Lucidella midyetti sakop sa kahenera nga Lucidella, ug kabanay nga Helicinidae. Walay nalista nga matang nga sama niini.
Ang mga gi basihan niini
Dawhilahila
Lucidella | 31,518 |
https://en.wikipedia.org/wiki/Ministry%20of%20Earth%20Sciences | Wikipedia | Open Web | CC-By-SA | 2,023 | Ministry of Earth Sciences | https://en.wikipedia.org/w/index.php?title=Ministry of Earth Sciences&action=history | English | Spoken | 434 | 626 | The Ministry of Earth Sciences was formed on 29 January 2006 from a merger of the India Meteorological Department (IMD), the National Centre for Medium Range Weather Forecasting (NCMRWF), the Indian Institute of Tropical Meteorology, Pune (IITM), the Earth Risk Evaluation Centre (EREC), and the Ministry of Ocean Development.
History
In 1981; the Government of India created a Department of Ocean development (DoD) as a part of Cabinet Secretariat, which was kept directly under the charge of Prime Minister of India. In 1982 it became a separate department and it started carrying out its activities in the field of ocean development. In 2006; it was made a separate Ministry called Ministry of Ocean development. In July 2006 itself the Ministry was again reorganised and the new Ministry of Earth Sciences came into being with various institutions under its ambit. The Government via a resolution in 2006 brought Indian Metrological Department, Indian Institute of Tropical Meteorology and National centre for medium range weather forecasting and research (NCMRWF) into its administrative control. The resolution also set up an Earth commission just like Atomic energy commission and Space commission. Currently, the ministry is headed by Kiren Rijiju.
Functions
The Ministry's mandate is to look after Atmospheric Sciences, Ocean Science & Technology and Seismology in an integrated manner.
List of ministers
List of ministers of state
Institutions under the Earth System Science Organisation
National Centre for Coastal Research
Indian Institute of Tropical Meteorology
India Meteorological Department
National Centre for Seismology
Indian National Centre for Ocean Information Services
National Centre for Medium Range Weather Forecasting
National Centre for Polar and Ocean Research
National Institute of Ocean Technology
Earthquake Risk Evaluation Centre (under the Atmospheric Sciences and Seismology sector)
Indian Tsunami Early Warning Centre
Centre for Marine Living Resources & Ecology (under the Ocean Science & Technology sector)
National Center for Earth System Sciences
Networking
All institutions under ESSO are connected through National Knowledge Network and its Common User Group (CUG).
Computation Facility
Adithya HPC located at Indian Institute of Tropical Meteorology is one of the largest computation facility in India.
See also
Ministry of Science and Technology (India)
References
External links
Official Ministry of Earth Sciences website
Dod.nic.in: Ministry of Earth Sciences
National Centre for Coastal Research (NCCR)
National Institute of Ocean Technology (NIOT)
Indian National Centre for Ocean Information Services (INCOIS)
National Centre for Antarctic & Ocean Research (NCAOR)
Centre for Marine Living Resources & Ecology (CMLRE)
National Centre for Medium Range Weather Forecasting (NCMRWF)
India Meteorological Department (IMD)
Indian Institute of Tropical Meteorology (IITM)
Earth Sciences
India, Earth Sciences
Earth sciences organizations
Science and technology in India | 4,942 |
DoxaDGK3qz4_1 | Youtube-Commons | Open Web | CC-By | null | Alzheimer's Disease Genetics Laboratory - zebrafish facility tour | None | English | Spoken | 328 | 372 | Now I'm going to show you the zebrafish facility where we breed our zebrafish and we produce eggs for our Alzheimer's disease research. We see in our zebrafish facility are many different tanks with many different genetic strains of zebrafish. But our main interest in these fish is to get the eggs from them so that we can then inject them with substances to regulate gene activity. You can see a number of zebrafish tanks. These tanks are in a light chamber. Now the reason why we have a light chamber is because the zebrafish like to lay their eggs in the morning when the lights come on and we want to inject zebrafish eggs all day. So what we do is we have the light chambers here, here and here have different daylight cycles so that the morning begins at different times and the eggs will be laid throughout the day so that we can inject them. So how do we get the eggs from the fish? Well if you look here you can see a little box of marbles. To the zebrafish these marbles look like river stones and the zebrafish like to lay their eggs over river stones. So what we do is we put this little box of marbles into the fish tank and then when the fish lay their eggs they'll do it here and then we filter off the water and we can get the eggs from there. Down here you can actually see a tank where we have a box of marbles in the tank and the fish are laying their eggs over that. And over here we have another system. This is a specially designed tank with slots in the floor and the fish lay their eggs and they fall through the slots and then they collect in the bottom. At the moment you can see the food which we fed the fish earlier that also fell through the slots..
| 21,469 |
https://arz.wikipedia.org/wiki/%DA%A4%D8%A7%D9%87%D8%A7%D9%86%D8%AF%D9%88%D8%AE%D8%AA%20%D9%8A%D8%B1%D9%8A%D8%AC%D9%8A%D8%A7%D9%86 | Wikipedia | Open Web | CC-By-SA | 2,023 | ڤاهاندوخت يريجيان | https://arz.wikipedia.org/w/index.php?title=ڤاهاندوخت يريجيان&action=history | Egyptian Arabic | Spoken | 30 | 109 | ڤاهاندوخت يريجيان مهندسه من ارمينيا.
حياتها
ڤاهاندوخت يريجيان من مواليد يوم 18 يناير 1945 فى يريفان.
الدراسه
درست فى جامعة ارمينيا الحكوميه للهندسه.
لينكات برانيه
مصادر
مهندسين
مهندسين من ارمينيا | 22,448 |
https://stackoverflow.com/questions/39579364 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Laziale, VLAZ, https://stackoverflow.com/users/362479, https://stackoverflow.com/users/3689450, https://stackoverflow.com/users/5106232, ninjawarrior | English | Spoken | 353 | 637 | Trying to access array object in JS gives me undefined
I have this JS output
I'm trying to access the first member of the ModelState array using this approach:
console.log(data.ModelState[0]);
But I'm getting undefined error.
Also when trying to do alert(data.ModelState) I'm getting Object object.
How can I access the first value in the ModelState array?
I believe that is an object that has a blank key (or maybe whitespace?) which has an array as a value. So you need something like data.ModelState[""][0]
In which browser you are testing this? @Laziale
@RanojitBanerjee that's Firefox. More specifically, the Firebug extension.
@vlaz pls provide your comment as answer so I can select that as correct answer. Thx
I appears that your data contains an array which has a blank or whitespace key. So it most likely looks like this
{
ModelState: {
"": [ "string1", "string2" ]
}
}
You would need to access it via the key there, as long as you know what it is, for example data.ModelState[""][1] //"string1"
There are also alternatives if you are not sure what they key would be or want a less brittle code:
var data = {
ModelState: {
"": [ "string1", "string2" ]
}
};
console.log("--Using Object.keys--")
Object.keys(data.ModelState).forEach(function(key) {
console.log(data.ModelState[key]);
})
console.log("--Using for...in loop--")
for (var key in data.ModelState) {
console.log(data.ModelState[key]);
}
You would have to access it using data.ModelState[''][0]. It seems you have a nested array, with the element of the array containing the two strings has an empty or whitespace-only string for an index.
[object Object] is your first clue there—although I can’t reproduce your exact problem, it looks like the object you think is an array is actually a JavaScript Object, which is a different data structure. JS Objects are fairly similar to objects from other object oriented languages. Their string representation is, as you’ve noticed, [object Object]], regardless of their contents.
> String({})
< "[object Object]"
> String({abc: "foo", def: "bar"})
< "[object Object]"
If you update your question with steps on how to reproduce it, I can help more, but I hope that’s enough to get you on the right track!
| 1,944 |
https://nl.wikipedia.org/wiki/Mispilodes%20andamanica | Wikipedia | Open Web | CC-By-SA | 2,023 | Mispilodes andamanica | https://nl.wikipedia.org/w/index.php?title=Mispilodes andamanica&action=history | Dutch | Spoken | 29 | 56 | Mispilodes andamanica is een keversoort uit de familie van de boktorren (Cerambycidae). De wetenschappelijke naam van de soort werd voor het eerst geldig gepubliceerd in 1969 door Breuning.
Boktorren | 45,920 |
https://en.wikipedia.org/wiki/Coleophora%20jynxella | Wikipedia | Open Web | CC-By-SA | 2,023 | Coleophora jynxella | https://en.wikipedia.org/w/index.php?title=Coleophora jynxella&action=history | English | Spoken | 26 | 48 | Coleophora jynxella is a moth of the family Coleophoridae. It is found in southern France and Spain.
References
jynxella
Moths described in 1987
Moths of Europe | 1,327 |
https://hr.wikipedia.org/wiki/Hajde%20da%20ludujemo%20%28pjesma%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Hajde da ludujemo (pjesma) | https://hr.wikipedia.org/w/index.php?title=Hajde da ludujemo (pjesma)&action=history | Croatian | Spoken | 122 | 302 | "Hajde da ludujemo" pjesma je hrvatske pjevačice Tajči, objavljena 1990. godine na istoimenom albumu. Pjesma je Tajči donijela slavu na području bivše Jugoslavije.
Pjesmu su napisali Zrinko Tutić i Alka Vuica. Prateće vokale pjeva Milana Vlaović.
Tajči je pjesmom predstavljala tadašnju Jugoslaviju na Pjesmi Eurovizije u Zagrebu 1990. godine. Pjesmu je izvela petnaesta po redu, nakon Francuskinje Joëlle Ursull koja je izvodila pjesmu "White and Black Blues", i prije Portugalkinje Nuche koja je izvodila pjesmu "Há sempre alguém". Na kraju glasanja, dobila je 81 bod, osvajajući tako sedmo mjesto od 22 države. Na sljedećoj Pjesmi Eurovizije 1991. godine, tadašnju Jugoslaviju predstavljala je Bebi Dol s pjesmom "Brazil".
Pjesmom je također pobijedila na Jugoviziji u Zadru 1990. godine.
Izvori
Eurovizijske pjesme
Hrvatske skladbe | 10,500 |
https://stackoverflow.com/questions/1844578 | StackExchange | Open Web | CC-By-SA | 2,009 | Stack Exchange | André, Onorio Catenacci, Shawn, https://stackoverflow.com/users/2820, https://stackoverflow.com/users/3696070, https://stackoverflow.com/users/3696071, https://stackoverflow.com/users/3696072, https://stackoverflow.com/users/3696073, https://stackoverflow.com/users/3717081, https://stackoverflow.com/users/3717082, prplrhead, user3696070, user3696071, user3717081 | English | Spoken | 173 | 220 | Intro To x86 Assembly With Windows
There's a chapter in Robbins' Debugging Microsoft Windows Applications where he discusses the assembly code created for Windows apps. This is a community wiki question--please post links to other books, websites, blogs, articles etc. which discuss the x86 assembly code generated by Windows. I'm looking for a little more in-depth discussion of assembly and Windows.
If this was asked and answered somewhere else, please post a link and I'll close this question.
I'm not sure exactly what you're seeking here, but I'd like to point out that since assembly language is specific to a processor architecture, as opposed to a particular OS, one of the best places to seek information about x86 assembly language is to go to the manufacturer -- Intel -- and read their processor manuals. Volume 2 is of particular interest.
Actually after having worked with some people who know assembly and Windows programming, I think I would have been better off to ask for a book discussing assembly in relation to Windows compilers.
| 16,137 |
https://la.wikipedia.org/wiki/Lamagdelaine | Wikipedia | Open Web | CC-By-SA | 2,023 | Lamagdelaine | https://la.wikipedia.org/w/index.php?title=Lamagdelaine&action=history | Latin | Spoken | 45 | 113 | Lamagdelaine est commune Francicum 741 incolarum (anno 2012) praefecturae Oltis in regione australi Meridiano et Pyrenaeo (a die 1 Ianuarii 2016 Occitania Ruscinone Meridiano et Pyrenaeis).
Indicem communium praefecturae Oltis
Nexus externi
De hoc commune apud Cassini
Notae
Communia praefecturae Oldi
Loci habitati praefecturae Oldi | 9,988 |
https://ca.wikipedia.org/wiki/Grigori%20Txernetsov | Wikipedia | Open Web | CC-By-SA | 2,023 | Grigori Txernetsov | https://ca.wikipedia.org/w/index.php?title=Grigori Txernetsov&action=history | Catalan | Spoken | 450 | 892 | Grigori Grigórievitx Txernetsov (, 1802, Lukh - 1865 Sant Petersburg) fou un pintor rus. És conegut sobretot pels seus quadres de paisatges de diverses parts de Rússia, produïts durant els seus viatges, però també fou actiu com a retratista i pintor de gènere.
Biografia
Txernetsov va néixer a Lukh, actualment part de la província d'Ivànovo, Rússia. El seu pare i el seu germà gran, Ievgraf, eren pintors d'icones. El seu germà, Nikanor Txernetsov, tres anys més jove que Grigori, també es va convertir en pintor de paisatges, i sovint va treballar juntament amb Grigori Txernetsov.
El 1819, Grigori Txernetsov, animat per Pàvel Svinin, que anteriorment havia viatjat a Lukh, va arribar a Sant Petersburg on volia inscriure's a l'Acadèmia Imperial de les Arts. Però no va ser admès.No obstant això, va obtenir permís per treballar-hi dues hores per dia. No se li va concedir una beca, per la qual cosa va haver de viure amb el suport del seu pare, i sempre anava just de diners. En 1822, se li va concedir la petita medalla de plata pels seus dibuixos i fou acceptat a l'acadèmia, on va estudiar amb Aleksandr Vàrnek i Maksim Vorobiov. En 1823, es va unir a ell Nikanor a l'Acadèmia. Els germans es van graduar en 1827 amb petites medalles d'or.
Després de la graduació, Grigori Txernetsov va ser contractat com a pintor personal de la cort. Les seves funcions incloïen la producció de pintures d'esdeveniments oficials, com ara desfilades militars o recepcions oficials. En particular, la seva millor pintura coneguda, La desfilada militar del 6 d'octubre de 1831 a Tsaritsin Lug, Sant Petersburg incorpora retrats d'alguns dels seus famosos contemporanis, incloent Aleksandr Puixkin, Vassili Jukovski, Ivan Krilov i Nikolai Gnéditx. La pintura va ser creada entre 1832-1837 i finalment va ser comprada per l'Estat i donat com un regal per al futur tsar, Alexandre II.
Des de 1837 en endavant, els germans Txernetsov van treballar junts. En 1838, van viatjar pel Volga entre Ríbinsk i Astracan, fent esbossos del paisatge pel camí, i més tard usarien d'aquests esbossos per fer pintures. També van produir un llarg panorama de 700 metres de les ribes del Volga, que finalment va ser acceptat com un regal per Nicolau I. En la dècada de 1840, van viatjar a Itàlia i Orient Mitjà, però els intents de vendre les litografies resultants a Rússia tingueren molt poc èxit. Quan Grigori Txernetsov va morir en 1865, el seu germà no tenia prou diners per enterrar-lo.
En 1833, els germans Txernetsov van pressionar per a la creació de la primera escola secundària a Lukh.
Referències
Pintors russos
Persones de la província d'Ivànovo
Alumnes de l'Acadèmia Imperial de les Arts
Morts a Sant Petersburg | 17,058 |
https://zh.wikipedia.org/wiki/%E7%94%B7%E6%A5%B5%E6%8E%A2%E5%B0%84%E7%87%88 | Wikipedia | Open Web | CC-By-SA | 2,023 | 男極探射燈 | https://zh.wikipedia.org/w/index.php?title=男極探射燈&action=history | Chinese | Spoken | 58 | 1,039 | 《男極探射燈》(英文:Nowhere to Hide!),是2015年製作、2016年上映的香港喜劇電影,由李逸朗、楊子瑤、彭懷安、杜浚斌主演,劉馬車特別客串,劉俊輝執導。
劇情
週刊記者家明(李逸朗飾)任識雜誌社《探射燈》,社長達哥(樓南光飾)在雜誌經濟拮据下,要求旗下三位記者家明、Q王(彭懷安飾)及車王泰(杜浚斌飾)力發掘城中不同政治名人醜聞與生態。
家明先後追訪「乳鴿黨」柯春仁與其黨羽的桃色新聞、過程中得悉鳳姐芳芳也是遭到網站壓搾而繼續追訪,透過芳姐繼而揭發黑社會操控情況。另一方面,家明在協助芳芳的過程,認識社工柴奀(楊子瑤飾)。柴奀的爸爸柴郎(陳惠敏飾)是黑幫老大,嘗試逐甜甜角逐業主立案法團席的位置,媽媽龍霞性格涼薄。
雜誌在三人努力追訪下,銷路穩步上揚,可是卻衍生其他危機。
演員
主要演員
其他演員
黃光亮
林子善
馬蹄露
苑瓊丹
黄夏蕙
吴浣仪
區藹玲
戴耀明
王维德
莫慧瑜
艾美琦
李芯瑩
陳麗柔
陳凱韻
盧詠雯
黄榕
林貝峰
區天兒
李力持
林超荣
郑文辉
杨英伟
刘锡贤
梁焯满
黃栢文
林敬刚
李子明
吴瑞庭
乔宝宝
鲁振顺
程芷渝
雪梨
王玮
刘马车
嘉伦
严泳彤
陈思铭
骆文
高俊文
軼事
女主角一度找来時任香港行政長官梁振英二女梁齊昕参与演出,但她后来辭演,女主角最后由新人楊子瑤出演。另外,該电影本来2016年5月12日上映,但上映前突然暂停上映,无公佈原因。最後安排在9月22日上映。
網絡紅人“劉馬車”曾於2015年客串該電影,但2016年3月之後因涉嫌強制猥褻、猥褻兒童罪,在深圳被警方拘留,其後被判罪成入獄,因而無法參與該電影的慶功宴。
參考
外部連結
電影《男極探射燈》預告片
2016年香港電影作品
喜劇
香港惡搞文化 | 2,969 |
https://stackoverflow.com/questions/68636466 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | Mark Setchell, https://stackoverflow.com/users/2836621 | English | Spoken | 193 | 444 | Pillow chop image, keep transparency
I was trying to resize an image to a circular shape, but if i run the code, the transparency of the image is gone.
from PIL import Image,ImageOps
pb = Image.open('pb_image')
bigsize = (pb.size[0] * 3, pb.size[1] * 3)
mask = Image.new('L', bigsize, 0)
mask = mask.resize(pb.size, Image.ANTIALIAS)
pb.putalpha(mask)
circled = ImageOps.fit(pb, mask.size, centering=(0.5, 0.5))
circled.putalpha(mask)
circled.show()
This is my code (pb is a loaded image), but either the image is not resized at all,
the image is resized but the transparent places are black
or the image is completely transparent.
I dont know how to fix this im new to pillow.
Thanks in advance.
Please edit your post to make it actually runnable - that means putting back the import statements you have removed for some reason, and including your input and actual output image (or reasonable representation of them) and expected output image (or a reasonable mock-up).
from How do I generate circular thumbnails with PIL?
using mask.png :
code:
from PIL import Image,ImageOps
image = 'pb.png'
pb = Image.open(image)
mask = Image.open('mask.png').convert('L')
mask = mask.resize(pb.size, Image.ANTIALIAS)
circled = ImageOps.fit(pb, mask.size, centering=(0.5, 0.5))
circled.putalpha(mask)
circled.show()
circled.save('out.png')
| 39,731 |
https://stackoverflow.com/questions/7152808 | StackExchange | Open Web | CC-By-SA | 2,011 | Stack Exchange | Justin808, Keshi, Lukáš Bauer, https://stackoverflow.com/users/15718642, https://stackoverflow.com/users/15719328, https://stackoverflow.com/users/308079 | English | Spoken | 274 | 502 | Javascript not firing when expected
I've got a site that is using javascript to resize images to a max width/height. I'm using javascript and not CSS to do this so it is backwards compatible with older browsers. My issue is that in Chrome it seems to not resize the image all the time. Sometimes on the first visit to a page the image is not resized, on reload and subsequent visits it is resized.
http://justinzaun.com/Tree/people/@I116@.php for an example page but really any of the people pages on the site can show the same issue. I'm trying to resize in $(window).load() and $(documnet).ready() this is taking place in the familytree.js file.
The username/password is admin/pwd
@David - I provided the username and password
You call this code:
$(this).find("img").load(function() { resize($(this)); });
Which does nothing if the image has already loaded.
Use this instead:
var $img = $(this).find("img");
$img.load(function() { resize($(this)); });
// If image is already loaded then it will have a height
if($img.height())
resize($img);
That will call resize on load, but if the image is already loaded it will call resize anyways.
This might be WebKit bug 45586, your code doesn't know the size of the image. Typically, a beforeload handler is being registered by extensions such as Adblock or Adblock Plus.
You are listening for the image load event after window.onload has triggered, which means that all images should already be loaded. Try something like:
$(function() {
// on DOM ready
$('img').each(function() {
var $img = $(this);
(this.width && this.height) ? resize($img) : $img.load(function() {
// timeout to prevent webkit bug 45586
window.setTimeout((function($img) {
return function() {
resize($img);
};
}($img)),2);
});
});
});
| 12,826 |
https://kk.wikipedia.org/wiki/%D2%9A%D0%BE%D0%B6%D0%B0%D2%93%D2%B1%D0%BB%20%D0%91%D0%B0%D0%B9%D1%81%D0%B5%D1%80%D0%BA%D0%B5%D2%B1%D0%BB%D1%8B | Wikipedia | Open Web | CC-By-SA | 2,023 | Қожағұл Байсеркеұлы | https://kk.wikipedia.org/w/index.php?title=Қожағұл Байсеркеұлы&action=history | Kazakh | Spoken | 139 | 595 | Қожағұл Байсеркеұлы (1800 жылдары) Іле ауданы қазіргі Байсерке станциясында туған) - би. Тегі Дулаттың Ботбай тармағынан шыққан. Сәмен батырдың немересі.
19 ғасырдың басында Ұлы жүз қазақтары Қоқан басқыншыларына қарсы көтеріліп, оңтүстік шығыс Қазақстан жерін азат ету үшін күресіп жатқан кезеңде өмір сүрді. Бірнеше рет қоқандықтарға жорық ұйымдастырған. 1845 жылы Ресейдің қол астына кіруге өтініш білдірген. Ұлы жүздің ру басылары арасында Ботпай руынан Қожағұл да болған. 1850 жылы жергілікті патша әкімшілігі оның адал қызметі үшін 2-дәрежелі шапан сыйлаған. 1860-62 жылы генерал Колпаковскийдің қаруымен Қоқан бектерінің иелігіндегі Ұзынағаш, Тоқмақ, Пішпек қалаларын азат ету соғысына Қожағұл өз жасақтарымен қатысып, арнаулы марапатқа (25.11.1868) ие болған. 1866 жылы 24 қыркүйекте әскери жорықтағы айырықша ерлігі мен бейбіт өмірдегі адал қызметі үшін оған штабс-капитан шені берілген. 1868 жылы 1 қаңтарда Верный уезі бастығының көмекшілігне тағайындалып, 3-дәрежелі «Әулие Станислав» орденімен және күміс медальмен марапатталады.
Дереккөздер
Қазақ би-шешендері | 14,946 |
https://stackoverflow.com/questions/69511575 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | Wolof | Spoken | 225 | 787 | How to filter from jQuery Datatable column with another element inside
I am using Datatable filter using select input, but I am getting 0 rows for the column that has link inside.
here's my HTML
<table class="table table-bordered mytable">
<thead class="reg_bg">
<tr>
<th scope="col">column1</th>
<th scope="col">column2</th>
<th scope="col">column3</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for row in my_data %}
<tr class="">
<td>{{ forloop.counter }}</td>
<td title="{{row.description}}">
{{row.title}}
</td>
<td>
<a href="#" data-qid="{{row.id}}" data-toggle="modal" data-target="#myModal">
{{row.author}}</a>
</td>
<td>
<a href="{% url 'book_detail' row.id %}">
<button type="button" class="btn btn-primary">Detail</button>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
and here's my jquery datatable
$('.mytable').DataTable({
"aLengthMenu":[[5,10,25,50,100,-1],[5,10,25,50,100,"All"]],
"iDisplayLength":5,
"initComplete": function () {
$(this).find('thead tr').clone().find('th').each(function() {
while(this.attributes.length > 0) {
this.removeAttributeNode(this.attributes[0]);
}
}).empty()
.wrapAll('<tr/>').parent()
.appendTo($(this).find('thead'));
var current_table_head=$(this).find('thead');
this.api().columns("th:not(:contains('Action'))").every( function () {
var column = this;
var select = $('<select style="width:100%;"><option value="">All</option></select>')
.appendTo( current_table_head.find("tr:eq(1) th").eq(column.index()).empty() )
.on( 'change', function () {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
column
.search( val ? '^'+val+'$' : '', true, false )
.draw();
} );
column.data().unique().sort().each( function ( d, j ) {
var val = $('<div/>').html(d).text();
select.append($('<option>').val(val).text(val))
} );
} );
}
});
so it displays only text in filter dropdown, not the whole elem inside . But when I filter it there are no rows displayed in the table.
Here's JsFiddle. For the 3rd column data is not getting filtered.
Anyone please help me with this. Thanks.
| 24,730 | |
https://vi.wikipedia.org/wiki/Davallia%20decora | Wikipedia | Open Web | CC-By-SA | 2,023 | Davallia decora | https://vi.wikipedia.org/w/index.php?title=Davallia decora&action=history | Vietnamese | Spoken | 53 | 103 | Davallia decora là một loài dương xỉ trong họ Davalliaceae. Loài này được Moore in Sim mô tả khoa học đầu tiên năm 1859.
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
Davallia
Thực vật được mô tả năm 1859
Unresolved names
es:Davallia decora | 21,816 |
https://lld.wikipedia.org/wiki/Seongsan%20Ilchulbong | Wikipedia | Open Web | CC-By-SA | 2,023 | Seongsan Ilchulbong | https://lld.wikipedia.org/w/index.php?title=Seongsan Ilchulbong&action=history | Ladin | Spoken | 25 | 53 | L Seongsan Ilchulbong ie n crëp te la Corea dl Sud. L à na autëza de metri.
Geografia
Referënzes
Crëp te la Corea dl Sud | 28,468 |
https://zh-min-nan.wikipedia.org/wiki/Chuprene%20Ko%C4%81n | Wikipedia | Open Web | CC-By-SA | 2,023 | Chuprene Koān | https://zh-min-nan.wikipedia.org/w/index.php?title=Chuprene Koān&action=history | Min Nan Chinese | Spoken | 36 | 111 | Chuprene Koān (Bulgaria-gí: ) sī Bulgaria Kiōng-hô-kok Vidin Chiu ê chi̍t ê koān (obshtina). Tī 2010 nî jîn-kháu phó͘-cha ê sî-chūn, chit-ê koān ū ê lâng tòa.
Chham-oa̍t
Bulgaria ê koān
Chham-khó
Vidin Chiu ê koān | 28 |
https://superuser.com/questions/1736821 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Daniel B, Gintas, Ramhound, Robert, https://superuser.com/users/1720928, https://superuser.com/users/219095, https://superuser.com/users/62676, https://superuser.com/users/83283 | English | Spoken | 393 | 512 | Restoring personal certificate on windows 10 due to encrypted files
I ran into some trouble. In certmgr.msc I have removed my personal certificate by mistake while trying to update some certificates needed for ID card. The problem is that files which were encrypted with EFS are no longer accessible. Is there any procedure how could I restore certificate and upload personal keys which are still on my computer. Or there is any other solution?
What do you mean by “which are still on my computer“?
I mean the keys. I did not reinstall the windows or anything so they are still on my laptop. Through recovery i tried to roll back the mistake that i've made and recovered prior this mistake that i've made but the files are still encrypted. I see that there is certificate in personal folder but my guess it's lacking appropriate keys?
"Is there any procedure how I could restore the certificate and upload personal keys which are still on my computer?" - If you don't have a copy of the certificate, then the files cannot be decrypted, since the files are securely encrypted. DId you backup your certificate like you were instructed when you enabled EFS?
I did not backup certificate. However I see personal certificate on certmgr.msc. Maybe it is just lacking personal key?
"Just lacking private key", if the key is really missing then the EFS encrypted data will remain inaccessible, because the private key is the crucial part of EFS. No key no data. If your computer part of a domain your admins may be able to decrypt the EFS files using EFS recovery agent.
No it is not part of domain. I did some research and I found some keys C:\ProgramData\Microsoft\Crypto\Keys and C:\Users\xxxx\AppData\Roaming\Microsoft\SystemCertificates\My\Keys. Is there a way how to connect them with the certificate?
"Is there a way how to connect them with the certificate?" - Those are not the correct keys. When you removed the keys from the certificate store, the physical files, were deleted.
But when I check those keys and files when they are created I see the date when I have encrypted those files. Also I was able to restore the computer prior to the when I removed the personal certificate from certificate store. But still I can not access encrypted files. What else I can do in this case?
| 11,058 |
https://af.wikipedia.org/wiki/Steak%20tartare | Wikipedia | Open Web | CC-By-SA | 2,023 | Steak tartare | https://af.wikipedia.org/w/index.php?title=Steak tartare&action=history | Afrikaans | Spoken | 1,047 | 2,265 | Steak tartare of Biefstuk tartare is 'n vleisgereg wat van rou beesmaalvleis gemaak word en in sommige dele van die wêreld ook van perdevleis. Dit word gewoonlik bedien saam met uie, kappertjiesade, swartpeper en worcestersous, wat dikwels apart bedien word sodat dit bygevoeg kan word na smaak. Dit word dikwels bedien met rou eiergeel bo-op die dis.
Die benaming tartare word somtyds gebruik om te verwys na ander rou vleis- of visgeregte.
'n Minder algemene weergawe in Frankryk is tartare aller-retour.
Geskiedenis
Die Tartare en rou vleis
In 'n gewilde karikatuur van Mongoolse krygers - genaamd Tatare of Tartare - word hulle vleis onder die saals saggemaak en dan rou geëet. Hierdie verhaal is in die 13de eeu deur Jean de Joinville gepopulariseer. Maar Joinville het egter nooit self Mongole teëgekom nie, en het hierdie staaltjie gebruik as 'n manier om aan te toon dat die Mongole onbeskaafd was. Dit is moontlik dat die staaltjie 'n verdraaiing was van die gewoonte om dun gesnyde skywe vleis te gebruik om te verhoed dat seerplekke wat opgedoen is in die saal verder ontsteek.
Popularisasie van rou vleis in Europa en die Verenigde State
Aan die einde van die 19de eeu het die Hamburg-steak in verskeie restaurante in die hawe van New York gewild geword. Hierdie soort filet is gemaak van handgemaalde beesvleis wat liggies gesout (en dikwels gerook) en gewoonlik rou bedien is saam met uie en broodkrummels. Hamburg-biefstuk het gewild geword vanweë die maklike voorbereiding daarvan en die lae koste daaraan verbonde. Laasgenoemde blyk uit gedetailleerde beskrywings in sommige van die gewildste kookboeke van die dag. Dokumente toon dat hierdie voorbereidingstyl teen 1887 in sommige Amerikaanse restaurante gebruik is, en ook gebruik is vir die voer van pasiënte in hospitale. Die Hamburg-biefstuk is rou of effens gebraai voorgesit, vergesel van 'n rou eier.
Dit is nie bekend wanneer die eerste restaurantresep vir biefstuk-tartaar verskyn het nie. Dit is moontlik dat die gereg gewild gemaak is in Parys deur restaurateurs wat Jules Verne se beskrywing van "Koulbat" in sy roman uit 1875, getiteld Michael Strogoff, verkeerd verstaan het.
Oorsprong van die naam
In die vroeë twintigste eeu is dit wat tans algemeen bekend staan as "steak tartare" of "biefstuk tartare" in Europa steack à l'Americaine genoem. Een variasie op die gereg was om dit saam met tartarsous voor te sit; die 1921-uitgawe van Auguste Escoffier se Le Guide Culinaire definieer "Steack à la tartare" as steack à l'Americaine, gemaak sonder eiergeel, en voorgesit met tartarsous. "Steack à la tartare" (letterlik: "bedien met tartarsous") is later verkort na "steak tartare" Met verloop van tyd het die onderskeid tussen steack à l'Americaine en die tartarsous-variant verdwyn. Die 1938 uitgawe van Larousse Gastronomique beskryf steak tartare as rou maalvleis bedien met 'n rou eiergeel, sonder enige sprake van tartarsous.
"À la tartare" of eenvoudig "tartare" kan egter steeds "bedien met tartarsous" beteken in sommige disse, meestal gebraaide vis. Terselfdertyd word die naam "tartare" soms ook toegepas op ander geregte, soos rou vleissnitte of rou vis, bv. tunatartare, wat in 1975 bekendgestel is deur die restaurant Le Duc in Parys.
Gesondheidskwessies
Kwessies betreffende gesondheid en die higiëne van die gereg het die gewildheid daarvan in sommige wêrelddele beïnvloed vanweë die risiko van besmetting deur bakterie en parasiete bv. Toxoplasma gondii en Taenia saginata.
Bakterieë
Wanneer basiese higiënereëls gevolg word en vars vleis gebruik word, is bakterieële infeksie laag.
Parasiete
Toxoplasma gondii is 'n parasiet wat gevind mag word in rou vleis of vleis wat onvoldoende gekook is. 'n Multisentrumstudie het onvoldoende gekookte of onvoldoende gedroogde vleis geïdentifiseerd as die hoofrisiko's vir toksoplasma infeksie in al die sentrums. As gevolg van die risiko van kongenitale toksoplasmose in die fetus word verwagtende vroue afgeraai om rou vleis te eet. Latente toksoplasmose in volwassenes is in sommige studies geassosieer met (dit is egter nie bewys as oorsaak nie) sielkundige effekte en laer IK.
Taenia saginata (lintwurm in beeste) kan ook opgedoen word via die inname van ondergekookte beesvleis. Die lintwurm word oorgedra aan mense via aansteeklike larwesiste wat by beeste voorkom. Mense met taeniasis kan onbewus wees daarvan dat hulle 'n lintwurminfeksie het as gevolg van milde, of niebestaande, simptome.
Streeksvariasies
Europa
Biefstuk-tartaar kom wydverspreid in Europa voor.
Die Belgiese weergawe, filet américain (ook bekend as préparé), word gewoonlik met mayonnaise gemaak en bedien met kappertjies en vars kruie. Dit is voorheen van perdevleis gemaak. Dit word gewoonlik saam met patats bedien.
In Tsjeggië en Slowakye word steak-tartaar ("tatarský biftek") in baie restaurante aangetref. Dit word van gemaalde lendeskyf gemaak, met 'n rou eiergeel in 'n kuiltjie in die middel. Die vleis kan vooraf gemeng word met kruie en speserye, maar die klant word van speserye voorsien wat hy of sy na smaak kan byvoeg. Biefstuk-tartaar word gewoonlik met roosterbrood en rou knoffelhuisies bedien wat op die brood gevryf word.
In Pole staan biefstuk-tartaar bekend as "tatar" of "befsztyk tatarski" en word tradisioneel voorgesit as voorgereg met uie, ingelegde sampioene, eiergeel, speserye en ander bestanddele, met 'n opsie van gis-ekstrak of koljander.
'n Variant van biefstuk-tartaar is ook deel van die Deense "smørrebrød" waar dit op rogbrood bedien word.
In Swede word steak-tartaar, bekend as råbiff, gewoonlik bedien met rou eiergeel, rou uie, ingelegde beet en kappertjies. In Finland word tartarpihvi bedien met rou eiergeel, rou uie, ingelegde en gesoute komkommers en kappertjies. Die (Europese) Russiese weergawe kan gepekelde en gesoute sampioene en geroosterde witbrood insluit.
Noord-Amerika
Steak tartare word in verskeie restaurante in die Verenigde State bedien.
In Wisconsin is 'n steak tartare toebroodjie (genoem 'n "cannibal sandwich") gewild onder die afstammelinge van Duitse immigrante; dit word gemaak van lendebiefstuk, rogbrood, sout, peper en gekapte uie.
Suid-Amerika
In Chile word 'n gereg van voorbereide beesvleis voorgesit wat as crudos bekend staan.
In die suide van Brasilië waar Duitse immigrante 'n invloed uitgeoefen het staan dit bekend as Hackepeter, of as Carne de Onça in Curitiba, waar die gereg algemeen voorkom en voorgesit word met sprietuie.
Verwysings
Bibliografie
Linda Stradley, I'll Have What They're Having: Legendary Local Cuisine, Falcon, 2002
Raymond Sokolov, How to Cook, gewysigde uitgawe, 2004, , p. 41 by Google Books
Albert Jack, What Caesar Did for My Salad: Not to Mention the Earl's Sandwich, Pavlova's Meringue and Other Curious Stories Behind Our Favourite Food, 2010, , p. 141 by Google Books
Vleisgeregte | 42,855 |
https://mni.wikipedia.org/wiki/%EA%AF%91%EA%AF%A3%EA%AF%9C%EA%AF%AD%EA%AF%97%20%EA%AF%95%EA%AF%A4%EA%AF%8C%EA%AF%94%20%EA%AF%91%EA%AF%A6%EA%AF%9F%EA%AF%AD%EA%AF%97%20%EA%AF%90%EA%AF%AD%EA%AF%94%EA%AF%A6%EA%AF%9F%EA%AF%97%EA%AF%AD%EA%AF%81 | Wikipedia | Open Web | CC-By-SA | 2,023 | ꯑꯣꯜ꯭ꯗ ꯕꯤꯌꯔ ꯑꯦꯟ꯭ꯗ ꯐ꯭ꯔꯦꯟꯗ꯭ꯁ | https://mni.wikipedia.org/w/index.php?title=ꯑꯣꯜ꯭ꯗ ꯕꯤꯌꯔ ꯑꯦꯟ꯭ꯗ ꯐ꯭ꯔꯦꯟꯗ꯭ꯁ&action=history | Manipuri | Spoken | 16 | 206 | ꯂꯥꯢꯔꯤꯛ ꯄꯔꯤꯡ (ꯕꯨꯛ ꯁꯤꯔꯤꯁ) ꯑꯁꯤ ꯑꯉꯥꯡꯁꯤꯡꯒꯤ ꯂꯥꯢꯔꯤꯛꯁꯤꯡꯒꯤ ꯃꯅꯨꯡꯗꯒꯤ ꯑꯃꯅꯤ ꯫
ꯃꯁꯤꯁꯨ ꯌꯦꯡꯕꯤꯌꯨ
ꯃꯇꯦꯡ ꯂꯧꯔꯛꯐꯝ
ꯑꯉꯥꯡꯁꯤꯡꯒꯤ ꯂꯥꯢꯔꯤꯛꯁꯤꯡ | 28,648 |
https://cy.wikipedia.org/wiki/Rio%20Fantasia | Wikipedia | Open Web | CC-By-SA | 2,023 | Rio Fantasia | https://cy.wikipedia.org/w/index.php?title=Rio Fantasia&action=history | Welsh | Spoken | 137 | 309 | Ffilm comedi ar gerdd gan y cyfarwyddwr Watson Macedo yw Rio Fantasia a gyhoeddwyd yn 1957. Fe'i cynhyrchwyd ym Mrasil. Sgwennwyd y sgript yn wreiddiol yn Portiwgaleg.
Fel y nodwyd, cyhoeddwyd y ffilm yn 1957. Ffilm fwyaf poblogaidd y flwyddyn honno oedd The Bridge on the River Kwai sy’n ffilm ryfel llawn propaganda a wnaed yn America-Lloegr, gan y cyfarwyddwr ffilm David Lean. Hyd at 2022 roedd o leiaf tair mil o ffilmiau Portiwgaleg wedi gweld golau dydd.
Cyfarwyddwr
Ganwyd y cyfarwyddwr ffilm Watson Macedo ar 1 Ionawr 1918 yn Rio de Janeiro a bu farw yn yr un ardal ar 24 Mai 1995.
Derbyniad
Gweler hefyd
Cyhoeddodd Watson Macedo nifer o ffilmiau gan gynnwys y canlynol:
Cyfeiriadau
Ffilmiau gan gyfarwyddwyr ffilm gwrywaidd Portiwgaleg
Ffilmiau deuluol o Frasil
Ffilmiau Portiwgaleg
Ffilmiau o Frasil
Ffilmiau deuluol
Ffilmiau 1957 | 15,652 |
https://war.wikipedia.org/wiki/Stolzia%20leedalii | Wikipedia | Open Web | CC-By-SA | 2,023 | Stolzia leedalii | https://war.wikipedia.org/w/index.php?title=Stolzia leedalii&action=history | Waray | Spoken | 36 | 72 | An Stolzia leedalii in uska species han Liliopsida nga ginhulagway ni Phillip James Cribb. An Stolzia leedalii in nahilalakip ha genus nga Stolzia, ngan familia nga Orchidaceae. Waray hini subspecies nga nakalista.
Mga kasarigan
Stolzia (Orchidaceae) | 32,001 |
https://electronics.stackexchange.com/questions/609288 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Tony Stewart EE75, chroma, https://electronics.stackexchange.com/users/17574, https://electronics.stackexchange.com/users/195162, https://electronics.stackexchange.com/users/38098, jonk | English | Spoken | 441 | 583 | Roughly how fast can a constant current LED circuit ramp to 1A without EMI issues?
I have a constant current circuit supplying a 1A LED for a carefully controlled strobing application; for my application the LED needs to turn ON (no dimming) for ~1ms and then OFF (fully off), at a rate of ~10 times per second.
The strobing is externally triggered, and I had originally expected negligible latency (clock cycles, LED rise time, etc... I figured a few microseconds, which I could ignore). But now I am worried about failing EMI testing due to the sharp current rise when switching ON to 1 amp.
For a typical* constant-current circuit, is there a rule of thumb for ramping the current to turn the LED fully ON without running into horrible EMI issues? How fast can I turn this LED fully ON without making a mess? A few microseconds? A few milliseconds?
*I know "typical" isn't very helpful... I'm really trying to get a very broad sense of reasonable ranges.
I'm no expert, but wouldn't this be highly dependent upon the circuitry itself and also how it is routed and constructed?
You have a non-constant undefined circuit operating at 10 Hz 1% d.c. near undefined sensors or receivers with perhaps 1A/us slew rates going into undefined capacitance, inductance and voltage with undefined unbalanced cable and undefined ground shift and an undefined slew rate of the switch. But transient current can be computed as Ic=C dV/dt with about 100 pF/m typ. cable. What could possibly go wrong ? Nothing or anything depends on everything you haven't told us. Do you care if you hear a ticking sound on your AM radio?
Excellent points! Clearly too generic a question.
If the return current from the LED largely occupies the same spatial co-ordinates as the forward current then magnetic fields pretty much disappear at any distance more than a couple of feet so I wouldn't be worried about this. Like Jonk said in his comment, it's highly dependent on routing and construction.
If the connections to the LED are very long (centimetres or more) and you had a very fast rise time (nano seconds) then you might start creating an antenna effect that could produce a level of EMI that could fail a legislative test but, again, as Jonk said in his comment, this a a construction and routing phenomenon.
In short; keep connections short and keep them spatially very close. If there's a way of driving the LED that permits slew rate limiting then use it but, don't bust a gut if there isn't.
Thank you for these broad guiding principles, much appreciated :)
| 22,766 |
https://sv.wikipedia.org/wiki/Chlorotettix%20rugicollis | Wikipedia | Open Web | CC-By-SA | 2,023 | Chlorotettix rugicollis | https://sv.wikipedia.org/w/index.php?title=Chlorotettix rugicollis&action=history | Swedish | Spoken | 30 | 67 | Chlorotettix rugicollis är en insektsart som beskrevs av Ball 1903. Chlorotettix rugicollis ingår i släktet Chlorotettix och familjen dvärgstritar. Inga underarter finns listade i Catalogue of Life.
Källor
Dvärgstritar
rugicollis | 21,971 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.