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://war.wikipedia.org/wiki/Paradisanthus%20mosenii | Wikipedia | Open Web | CC-By-SA | 2,023 | Paradisanthus mosenii | https://war.wikipedia.org/w/index.php?title=Paradisanthus mosenii&action=history | Waray | Spoken | 39 | 77 | An Paradisanthus mosenii in uska species han Liliopsida nga ginhulagway ni Heinrich Gustav Reichenbach. An Paradisanthus mosenii in nahilalakip ha genus nga Paradisanthus, ngan familia nga Orchidaceae. Waray hini subspecies nga nakalista.
Mga kasarigan
Mga sumpay ha gawas
Paradisanthus | 25,888 |
https://ceb.wikipedia.org/wiki/Justen%20Wildlife%20Area | Wikipedia | Open Web | CC-By-SA | 2,023 | Justen Wildlife Area | https://ceb.wikipedia.org/w/index.php?title=Justen Wildlife Area&action=history | Cebuano | Spoken | 171 | 267 | Parke ang Justen Wildlife Area sa Tinipong Bansa. Ang Justen Wildlife Area nahimutang sa kondado sa Chickasaw County ug estado sa Iowa, sa sidlakang bahin sa nasod, km sa kasadpan sa ulohang dakbayan Washington, D.C. metros ibabaw sa dagat kahaboga ang nahimutangan sa Justen Wildlife Area.
Ang yuta palibot sa Justen Wildlife Area kay patag. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa sidlakan sa Justen Wildlife Area. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Justen Wildlife Area may kaayo gamay nga populasyon. Ang kinadul-ang mas dakong lungsod mao ang New Hampton, km sa amihanan sa Justen Wildlife Area. Hapit nalukop sa kaumahan ang palibot sa Justen Wildlife Area.
Ang klima klima sa kontinente. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hulyo, sa °C, ug ang kinabugnawan Pebrero, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Hunyo, sa milimetro nga ulan, ug ang kinaugahan Enero, sa milimetro.
Saysay
Ang mga gi basihan niini
Mga dapit sa Iowa (estado) | 21,572 |
https://stackoverflow.com/questions/49432600 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Martin Honnen, https://stackoverflow.com/users/252228 | Finnish | Spoken | 314 | 1,338 | XSL percentile function
Is there way how to get 90, 95 or 99 percentile from input values with XSLT 2.0 or 3.0? Below is a code from this question How to print percentile using xsl, but is is not working correctly. This gives me a avarage from two values and not one value which is that wanted percentil.
From this "online calculator" is result 5. https://www.emathhelp.net/calculators/probability-statistics/percentile-calculator/?i=2%2C4%2C3%2C1%2C5&p=90&steps=on
XML
<root>
<value t="5"></value>
<value t="1"></value>
<value t="2"></value>
<value t="4"></value>
<value t="3"></value>
</root>
XSL
<xsl:template match="/">
<xsl:variable name="thisPercentile">
<xsl:call-template name="percentiles">
<xsl:with-param name="responsetimes" select="/root/*/@t" />
<xsl:with-param name="percentile" select="0.9" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="$thisPercentile" />
</xsl:template>
<xsl:template name="percentiles">
<xsl:param name="responsetimes" select="." />
<xsl:param name="percentile" select="." />
<xsl:variable name="sortedresponsetimes">
<xsl:for-each select="$responsetimes">
<xsl:sort data-type="number" />
<xsl:element name="time">
<xsl:value-of select="." />
</xsl:element>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="n" select="count($responsetimes)-1" />
<xsl:variable name="k" select="floor($percentile*$n)+1" />
<xsl:variable name="f" select="($percentile*$n+1)-$k" />
<xsl:variable name="a0" select="$sortedresponsetimes[1]/time[$k]" />
<xsl:variable name="a1" select="$sortedresponsetimes[1]/time[$k+1]" />
<xsl:value-of select="$a0 + ( $f * ( $a1 - $a0))" />
</xsl:template>
Ouput after transform
4.6
In XPath 3.1 making use of the sort function you could implement that algorithm given on the linked page as
<xsl:function name="mf:percentile" as="xs:decimal">
<xsl:param name="input-sequence" as="xs:decimal*"/>
<xsl:param name="p" as="xs:integer"/>
<xsl:sequence select="let $sorted-input := sort($input-sequence),
$i := round($p div 100 * count($sorted-input))
return $sorted-input[$i]"/>
</xsl:function>
in a complete sample as
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mf="http://example.com/mf"
exclude-result-prefixes="xs mf"
version="3.0">
<xsl:function name="mf:percentile" as="xs:decimal">
<xsl:param name="input-sequence" as="xs:decimal*"/>
<xsl:param name="p" as="xs:integer"/>
<xsl:sequence select="let $sorted-input := sort($input-sequence),
$i := round($p div 100 * count($sorted-input))
return $sorted-input[$i]"/>
</xsl:function>
<xsl:output method="text"/>
<xsl:template match="root">
<xsl:value-of select="mf:percentile(value/@t, 90)"/>
</xsl:template>
</xsl:stylesheet>
https://xsltfiddle.liberty-development.net/bFukv8u
In XSLT/XPath 2.0 you can use perform-sort and then local XSLT variables in the function:
<xsl:function name="mf:percentile" as="xs:decimal">
<xsl:param name="input-sequence" as="xs:decimal*"/>
<xsl:param name="p" as="xs:integer"/>
<xsl:variable name="sorted-input" as="xs:decimal*">
<xsl:perform-sort select="$input-sequence">
<xsl:sort select="."/>
</xsl:perform-sort>
</xsl:variable>
<xsl:variable name="i" select="round($p div 100 * count($sorted-input))"/>
<xsl:sequence select="$sorted-input[$i]"/>
</xsl:function>
http://xsltransform.hikmatu.com/3Nqn5Yc
Well, if you want to output that value computed from the other document then <xsl:value-of select="mf:percentile(document(root/file[1]/@filename)/root/value/@t, 90)"/> should do.
| 30,123 |
https://tt.wikipedia.org/wiki/%D0%9C%D0%BE%D0%BD%D1%82%D0%B5%D0%BC%D0%B0%D0%BD%D1%8C%D0%BE%D0%BB%D0%B8%20%28%D0%A4%D0%B8%D1%80%D0%B5%D0%BD%D1%86%D0%B0%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Монтеманьоли (Фиренца) | https://tt.wikipedia.org/w/index.php?title=Монтеманьоли (Фиренца)&action=history | Tatar | Spoken | 112 | 347 | Монтеманьоли — Италиянең Тоскана төбәге өязендә урнашкан торак пункт.
Географиясе
Монтеманьоли Апеннин ярымутравының урта өлешендә, Италия башкаласы Римнан көнчыгышка таба урнашкан.
Климаты
Биредәге җирләргә Урта диңгез климаты хас, җәй чагыштырмача коры һәм кызу, эссе, ә кыш — йомшак.
Халкы
Искәрмәләр
Әдәбият
Gino Moliterno, ур. (2003). Encyclopedia of Contemporary Italian Culture. Routledge; Routledge World Reference. ISBN 0415285569.
Catherine B. Avery, ур. (1972). The New Century Italian Renaissance Encyclopedia. Simon & Schuster. ISBN 0136120512.
Италия // Италия — Кваркуш. — М. : Советская энциклопедия, 1973. — (Большая советская энциклопедия : [в 30 т.] / гл. ред. А. М. Прохоров ; 1969—1978, т. 11).
Тоскана төбәге торак пунктлары
Италия торак пунктлары
Әлифба буенча торак пунктлар | 29,690 |
https://stackoverflow.com/questions/50253017 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Elletlar, https://stackoverflow.com/users/1600332 | English | Spoken | 457 | 1,153 | Display single Column from sqlite to listview
I have a database of universities. I just want to display the university name column in the listview. For that, I have created getData() object which will fetch the row. Then it would be displayed in the listview. I'm getting the university name from the database but the format is not correct. I'm just getting random multiple university names in list view.
Here is my database file
public class UniversityFinderDB extends SQLiteOpenHelper{
private static final int DATABASE_VERSION= 1;
static final String DATABASE_NAME="universities.db";
private static final String TABLE_NAME="universityFinder";
private static final String COLUMN_UNIVID="univId";
private static final String COLUMN_UNIVERSITYNAME="univName";
private static final String COLUMN_SCORE="score";
SQLiteDatabase db;
private static final String TABLE_CREATE = "create table IF NOT EXISTS universityFinder (univId integer PRIMARY KEY , univName varchar not null, score integer not null);";
public UniversityFinderDB(Context context) {
super(context, DATABASE_NAME,null ,DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase database) {
database.execSQL(TABLE_CREATE);
}
public void addUser(Universities universities) {
SQLiteDatabase db = this.getWritableDatabase();
ContentValues values = new ContentValues();
values.put(COLUMN_UNIVID, universities.getUnivId());
values.put(COLUMN_UNIVERSITYNAME, universities.getUnivName());
values.put(COLUMN_SCORE, universities.getGre());
// Inserting Row
db.insert(TABLE_NAME, null, values);
db.close();
}
public List<String> getData(int input){
String query="select univName from universityFinder where score >="+input+"";
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor =db.rawQuery(query, null);
List<String> attrStr = new Vector<String>();
if(cursor.moveToFirst()){
do{
attrStr.add(cursor.getString(cursor.getColumnIndex(COLUMN_UNIVERSITYNAME)));
Arrays.toString(new List[]{attrStr});
}while (cursor.moveToNext());
}
while (cursor.moveToNext()){
}
return attrStr;
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
String query = "DROP TABLE IF EXISTS " +TABLE_NAME;
db.execSQL(query);
onCreate(db);
}
}
here is the listview file where it will get the score from the user and then will only display the universities with that score or higher. But instead of that, I'm just getting a random list of universities in output.
public class ListviewFinderUniversities extends AppCompatActivity {
UniversityFinderDB myDB;
Universities universities;
ListView finderListview;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_listview_finder_universities);
myDB = new UniversityFinderDB(this);
universities = new Universities();
int gre = getIntent().getIntExtra("Gre",0);
finderListview = (ListView) findViewById(R.id.finderListView);
List<String> data = myDB.getData(gre);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(ListviewFinderUniversities.this, android.R.layout.simple_list_item_1, data);
finderListview.setAdapter(adapter);
}
}
Couple of code review comments/tips: It is probably best to use a 'CursorAdapter' instead of an 'ArrayAdapter' and a 'CursorLoader' or 'ASyncTask' instead of querying on the main thread. Also, 'close()' is not being called on the cursor, that should happen inside the 'finally' clause of a 'try'. Using 'while (cursor.moveToNext())' is probably better than using 'if' and 'do-while'. It is difficult to comment on the output without knowing the contents of the DB, but it might be beneficial to write a little routine to log the full contents of the DB...
use the below query:
To avoid multiple names and also to get the list in an order
String query="select distinct univName from universityFinder where score >= " +input+ " order by univName ";
| 50,370 |
https://ceb.wikipedia.org/wiki/Psathyrella%20similis | Wikipedia | Open Web | CC-By-SA | 2,023 | Psathyrella similis | https://ceb.wikipedia.org/w/index.php?title=Psathyrella similis&action=history | Cebuano | Spoken | 58 | 110 | Kaliwatan sa uhong ang Psathyrella similis. sakop sa ka-ulo nga Basidiomycota, ug Una ning gihulagway ni C. S. Parker, ug gihatagan sa eksakto nga ngalan ni Alexander Hanchett Smith ni adtong 1941. Ang Psathyrella similis sakop sa kahenera nga Psathyrella, ug kabanay nga Psathyrellaceae. Walay nalista nga matang nga sama niini.
Ang mga gi basihan niini
Abungawg-uhong
Psathyrella | 29,373 |
https://pnb.wikipedia.org/wiki/%D8%A8%DB%8C%D9%85%20%D9%84%DB%92%20%DB%81%D9%86%D8%AA | Wikipedia | Open Web | CC-By-SA | 2,023 | بیم لے ہنت | https://pnb.wikipedia.org/w/index.php?title=بیم لے ہنت&action=history | Western Punjabi | Spoken | 469 | 1,517 | بیم لے ہونت (جم 1964) اک بریٹیش-بھارتی-آسٹریلیائی لکھاری اے ۔ جس دے قومانتری پدھر تے شائع ناول، دِ سڈکشن آف سائلینس (2001) اتے اتھے، جتھے پیپر گروز (2006) نے اس دیاں کئیاں مثبت جائزے حاصل کیتیاں اتے اک مکمل، تعریف یوگ پاٹھک پوربی اتے مغربی دنیا ، اسدا پہلا ناول 2001 دے دولت مشترکہ لکھاریاں دے انعام لئی شارٹلسٹ کیتا گیا سی۔
زندگی اتے کیریئر
1989 توں پہلاں
بیم لے ہونتے دا جم کولکاتہ وچ ہویا سی، اک بھارتی ماں اتے انگریزی پیؤ دے نال اک پروار وچ چوتھا بچہ۔ اوہ بھارت اتے انگلینڈ وچ وڈی ہویا، اُتے اس نوں سکھیا حاصل کرن گودونلپھن اتے لاٹیمیر سکول وچ ہمیرسمتھ ، مغربی لنڈن | پھیر اسنے اک سال کیمبرج دے پھٹزولیئم کالج وچ پڑھن توں پہلاں صحافت دی پڑھائی کیتی۔ جتھوں اسنے سوشل اینتھروپولوجی وچ بیئے اتے انگریزی ساہت وچ ڈاکٹریٹ نال گریجوئیشن کیتی۔ اس توں بعد اسنے جاپان اتے ریاست ہائے متحدہ امریکہ وچ رہندیاں دنیا دا سفر کیتا، جتھے اسنے شکاگو وچ سماں بتایا۔ پھیر اوہ بھارت واپس آ گئی| جہڑی دلی وچ رہندی سی اتے اقوام متحدہ سنگھ لئی خاتون ترقی دے قومانتری دہاکے دوران شارٹ فلماں وچ کم کردی سی۔
1989 وچ آسٹریلیا چلی گئی اتے لکھن دے کیریئر دی شروعات کیتی
25 سال دی عمر وچ، اوہ آسٹریلیا چلی گئی اتے کجھ ہی ہفتیاں دے اندر، سڈنی یونیورسٹی دے منکھتا ڈیپارٹمنٹ وچ پورا سماں بھاشن دے رہی سی| 2001 وچ شائع ہویا اس دا پہلا ناول، دِ پرداپھاش اک بھارتی پروار دی کہانی نوں اجاگر کردا اے اتے اس یادگاری تبدیلی نے اس نوں سو سالاں دے ویلے دوران پیار اتے گھاٹے وچوں لنگھایا اے| کتاب دے وارتک نوں گیرلڈائین بروکس نے “واضع اتے گرپھتار” اتے تھومس کینیلی ولوں “کافی اتے دلچسپ” دسیا اے۔ امریکہ اتے آسٹریلیا وچ ہارپرکولن ولوں شائع اتے بھارت وچ پینگئن گروہ ولوں شائع اس کتاب نوں وڈی کامیابی ملی اتے 2001 دے دولت مشترکہ لکھاریاں دے انعام لئی شارٹلسٹ کیتا گیا۔ اسدا پولش وچ کسز ووآنی سیسی دے سرلیکھ ہیٹھ ترجمہ کیتا گیا سی اتے کیملیؤن ولوں شائع کیتا گیا سی| 2006 وچ، اسدا دوجا ناول، اتھے، جتھے دی پیپر گروز، اک پولش- یہودی پروار بارے اک کہانی اے جو دوجی عالمی لڑائی دوران فلسطین جاندے ہوئے کولکاتہ وچ اتر گیا سی اتے ہارپرکولنز نے قومانتری پدھر اُتے شائع کیتا سی۔ اسدا تیجا ناول، ہاتھیلز ود ہیڈلائیٹ، مارچ 2020 وچ شائع ہویا سی|
لے ہونتے اس ویلے اپنے شوہر جان اتے پتراں ٹالیسن، رشی اتے کاشی نال سڈنی وچ رہندی اے اتے یونیورسٹی آف ساؤتھ ولیس سینٹر صحافت اتے میڈیا سینٹر وچ کم کردی اے۔
اوہ اس ویلے یوٹیئیس (یونیورسٹی ٹیکنالوجی سڈنی) وکھے کریئیٹو انٹیلیجینس اینڈ انوویشن دے نویں بیچلر دی اگوائی کر رہی اے ۔
حوالے
باہری لنک
بیم لے ہنٹے دی نجی ویبسائیٹ (فوٹواں اتے جیونی متعلق ویروے شامل ہن)
زندہ لوک
بھارتی خاتون ناول کار
جم 1964 | 22,360 |
https://en.wikipedia.org/wiki/List%20of%20highways%20numbered%20422 | Wikipedia | Open Web | CC-By-SA | 2,023 | List of highways numbered 422 | https://en.wikipedia.org/w/index.php?title=List of highways numbered 422&action=history | English | Spoken | 79 | 152 | The following highways are numbered 422:
Canada
Manitoba Provincial Road 422
Newfoundland and Labrador Route 422
Japan
Route 422 (Japan)
United States
Interstate 422 (future)
U.S. Route 422
Georgia State Route 422 (unsigned designation for Georgia State Route 10 Loop)
Louisiana Highway 422
Maryland Route 422
New York State Route 422 (former)
Oregon Route 422
Oregon Route 422S
Puerto Rico Highway 422
Tennessee State Route 422
Texas State Highway Spur 422
See also
Special routes of U.S. Route 422 | 21,374 |
https://it.wikipedia.org/wiki/Mister%20jubu%20quiz%20wang | Wikipedia | Open Web | CC-By-SA | 2,023 | Mister jubu quiz wang | https://it.wikipedia.org/w/index.php?title=Mister jubu quiz wang&action=history | Italian | Spoken | 82 | 155 | Mister jubu quiz wang (), noto anche con i titoli internazionali Mr. Housewife e Quiz King, è un film del 2005 scritto e diretto da Yoo Sun-dong.
Trama
Jo Jin-man svolge il mestiere di "casalingo", per aiutare la moglie che invece lavora presso una stazione televisiva. Trovandosi ad avere problemi finanziari e preso dalla disperazione, l'uomo decide infine di partecipare a un gioco a premi per casalinghe; dato che il regolamento non ammette maschi, Jin-man pensa allora a uno stratagemma.
Collegamenti esterni | 10,892 |
https://th.wikipedia.org/wiki/%E0%B8%A2%E0%B8%8A%E0%B8%B8%E0%B8%A3%E0%B9%80%E0%B8%A7%E0%B8%97 | Wikipedia | Open Web | CC-By-SA | 2,023 | ยชุรเวท | https://th.wikipedia.org/w/index.php?title=ยชุรเวท&action=history | Thai | Spoken | 101 | 832 | ยชุรเวท (สันสกฤต ยชุรฺเวท, यजुर्वेद) เป็นหนึ่งในสี่แห่งคัมภีร์พระเวทในศาสนาพราหมณ์ฮินดู มาจากศัพท์ ยชุสฺ (บทสวดด้วยพิธีกรรม) และ เวท (ความรู้) ประมาณกันว่าประพันธ์ขึ้นเมื่อราว 1,400 - 1,000 ปีก่อนคริสตกาล ส่วนหลักของคัมภีร์นี้เรียกว่า "ยชุรเวทสัมหิตา" มีคาถา หรือมันตระ ที่จำเป็นแก่การกระทำพิธีสังเวยตามความเชื่อในศาสนาสมัยพระเวท และมีการเพิ่มเติมคำอธิบายว่าด้วยการประกอบพิธีต่างๆ
สาขา
ยชุรเวทสัมหิตามักจะแบ่งเป็นสองสาขา คือ ศุกล (ขาว) และ กฤษณ (ดำ) มักเรียกกันว่า ยชุรเวทขาว และยชุรเวทดำ ตามลำดับ ทั้งสองคัมภีร์มีบทร้อยกรองที่จำเป็นแก่การประกอบพิธี แต่กฤษณยชุรเวท รวมร้อยกรองส่วนอธิบายขยายความที่เกี่ยวข้อง (พราหมณะ) เข้าไว้ด้วย ส่วนศุกลยชุรเวทนั้นมีคัมภีร์พราหมณะแยกต่างหาก มีชื่อว่า "ศตปถ พราหมณะ"
แหล่งข้อมูลอื่น
Sanskrit Web ดาวน์โหลดได้ฟรี, carefully edited Sanskrit texts of Taittiriya-Samhita, Taittiriya-Brahmana, Taittiriya-Aranyaka, Ekagni-Kanda etc. as well as English translations of the Taittiriya-Samhita etc.
Albrecht Weber, Die Taittirîya-Samhita 1871
Ralph Griffith, The Texts of the White Yajurveda 1899, full text, (online at sacred-texts.com)
A. Berridale Keith, The Yajur Veda - Taittiriya Sanhita 1914, full text, (online at sacred-texts.com)
คัมภีร์ของศาสนาฮินดู | 23,055 |
https://stackoverflow.com/questions/64303242 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Zachary Vance, https://stackoverflow.com/users/3163618, https://stackoverflow.com/users/391896, https://stackoverflow.com/users/7224354, maydin, qwr | English | Spoken | 437 | 759 | Why gradient descent blows up almost every time?
I tried writing the GD algorithm from scratch (actually I borrowed the code from one Git repo which I
am gonna credit soon). The thing is it blows up (get `+Inf or -Inf) and I cannot see where the problem lies. Tried changing alpha to a really small value, it still didn't work out (got wrong values), though it didn't blow up.
Here is the code I used:
# features
x <- with(
data = mtcars,
cbind(hp, disp)
)
# target var
y <- mtcars$mpg
N <- length(y)
# optimal values with in-built lm function
res <- lm(y~x)
# define cost function to minimize
cost <- function(X, y, theta){
sum((X %*% theta - y)^2)/N
}
# training params
alpha = 0.00005
n_max <- 1000
# log the changes
cost_history <- double(n_max)
theta_histoty <- vector("list", n_max)
# initialize the coeffs
theta <- matrix(rep(0, ncol(x) + 1), ncol = 1)
rownames(theta) <- c("(Intercept)", "hp", "disp")
# add ones to the feature matrix
X <- cbind(1, x)
# train
for(i in seq_len(n_max)){
error <- (X %*% theta - y)
delta <- t(X) %*% error / N
theta <- theta - alpha*delta
cost_history[[i]] <- cost(X, y, theta)
theta_histoty[[i]] <- theta
}
# check
theta;coef(res)
It is a converging problem. Set the N <- ncol(X)+1 , alpha <- 0.000002 and n_max <- 15*10^5 . You will get the result. By the way, I found this guys by trial. There may exist some more efficient hyperparameter setting. It must be actually! 1.5 million iteration is just too much for this kind of problem! I just wanted to show you that it stems from your hyperparameters...
This is more of a optimization problem than a programming question
Please be more specific than "blows up"
The problem is that your problem is particularly poorly suited to gradient descent. It's hard to visualize the cost function, but contours of it are ellipses, with drastically different axis lengths. Unless you take tiny steps (alpha = 1e-5 worked for me), most steps will jump right across the valley and you get a worse value. If you do take tiny steps, then it takes a really long time to converge, because you're taking tiny steps. With alpha = 1e-5 and n_max = 1e6 you can see things are converging, but it's still a long way from the optimal value.
You can speed it up a lot by standardizing the predictors. Using
x <- with(
data = mtcars,
cbind(scale(hp), scale(disp))
)
will make it really fast with alpha = 1. The scale() function subtracts the mean and divides by the standard deviation.
| 23,677 |
https://english.stackexchange.com/questions/531822 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Edwin Ashworth, Hot Licks, Laurel, Matthew, https://english.stackexchange.com/users/191178, https://english.stackexchange.com/users/216063, https://english.stackexchange.com/users/21655, https://english.stackexchange.com/users/282363, https://english.stackexchange.com/users/70861, jsw29 | English | Spoken | 776 | 1,169 | What is the jargon term for something which is (unjustifiably) unique?
There is a (derogatory) jargon term, which I am having trouble recalling, for something (or someone) that is unique, often in an obnoxious or unjustified way. (For example, in a message handling application, a message type that needs special handling when all other messages share a common path.) Does anyone know what it is?
I want to say it's either "butterfly" or "special flower" (or "special _____", anyway), but as you can probably imagine, trying to search on these terms it is extremely difficult to get contextually relevant results. If you can confirm, please cite sources, either examples of other usage, or better yet, a jargon dictionary entry.
Now isn't that special!!
Closely related: Someone who thinks they are overly special / out-of-the-ordinary.
Probably you are thinking of (special) snowflake, which Wikipedia defines as:
Snowflake is a 2010s derogatory slang term for a person, implying that they have an inflated sense of uniqueness, an unwarranted sense of entitlement, or are overly-emotional, easily offended, and unable to deal with opposing opinions. Common usages include the terms special snowflake, Generation Snowflake, and snowflake as a politicized insult.
The related term special snowflake syndrome also matches the intended usage:
(derogatory) The conviction that one [...] is, in some way, special and should therefore be treated differently from others.
These are just general definitions, but the term is definitely used to describe software. For example:
Another way to make only the background transparent is by using a transparent png as background-image, and then use this jQuery fix for the special snowflake IE.
(Matteo Riva on Stack Overflow)
(It’s easy to find more examples.)
The reason “special snowflake” makes sense here is because software like this is unique for no good reason (“an inflated sense of uniqueness”) and often requires extra effort to deal with (“an unwarranted sense of entitlement”).
Almost. I am, as you quoted but didn't include in your own text, thinking of "special snowflake". Note. (Also, Googling that turns up much more pertinent results, which shows that it is definitely the commonly used term.)
The word snowflake, in this sense, is usually used for those who believe themselves to be unique, without being actually unique; as the quoted definition says, a snowflake is somebody who has 'an inflated sense of uniqueness'.
@jsw29, possibly I am asking the question poorly. In the programming sense, the term is used for something which is being treated uniquely, but shouldn't be unique (hence the pejorative). IOW, "unique [...] in an [...] unjustified way" (emphasis added). In any case, now that Laurel has jogged my memory, "special snowflake" is definitely the phrase I was trying to remember.
I've edited this to give the answer as "special snowflake", not just "snowflake", with additional references. Folks that can review, please accept the edit so I can accept the answer.
Eh, I liked my edit, but close enough. I already mentioned SSS in a comment; "(derogatory) The conviction that one (or often, one's child) is, in some way, special and should therefore be treated differently from others" is exactly what I'm looking for, and some Googling also confirms this usage, in addition to the SO link.
@Matthew I rejected the edit by accident, sorry.
@Laurel, that's okay. My biggest nit was to include "special", which you did, and your backup link is arguably better than mine anyway. I'll re-edit to include SSS in the body, but anyway between your edits and my comments, it's pretty well covered. BTW, thanks for the help!
The problem with your question is your use of the word 'unique'. Something is either unique (if there is only one of it/her/him, or or it isn't. Nowadays the word can be stretched to mean 'rare', and todays no longer tell there students that there is no such thing as 'almost unique' or 'quite unique'. Some (not all) good things/people are rare and some (not all) bad ones are rare. The unmistakably pejorative word for 'unique' or 'rare' is probably the US word 'oddball'. To be an oddball is to be different in a bad, foolish or annoying way.
Most people use the word unique in a positive sense. Laurel's suggestion of snowflake is the closest to the word you yourself suggested (butterfly). But neither snowflakes not butterflies are rare or unique. But if you really meant a butterfly type person, flitting from one thing to another without much thought or purpose (or, at least worthwhile thought or purpose), snowflake's your word. If you are looking for someone who is different from most others in a bad but not wicked way, try oddball.
| 24,724 |
https://avk.wikipedia.org/wiki/Slakevol%20%28Thaptomys%20nigrita%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Slakevol (Thaptomys nigrita) | https://avk.wikipedia.org/w/index.php?title=Slakevol (Thaptomys nigrita)&action=history | Kotava | Spoken | 170 | 454 | Slakevol (Thaptomys nigrita) tir tana moukolafa katca ke Thaptomys oxi vey Cricetidae yasa ( Muroidea veyyasa, Sigmodontinae volveyyasa ) ke RODENTIA veem ( MYOMORPHA volveyveem ). Gan Lichtenstein bak 1829 taneon zo pimtayar.
Vexala dem apteem
Sedme Mammal Species of the World (siatos ke 2005), bata katca tir aptiskafa.
Pulasa vuestexa is xantaza
(en) vuest- : Mammal Species of the World (v- 3, 2005) : Thaptomys nigrita (Lichtenstein, 1829)
(en) vuest- : CITES : Thaptomys nigrita
(en) vuest- : UICN : katca Thaptomys nigrita (Lichtenstein, 1829)
(en, fr) vuest- : ITIS : Thaptomys nigrita (Lichtenstein, 1829)
(en) vuest- : Tree of Life Web Project : Thaptomys nigrita
(en) vuest- : Catalogue of Life : Thaptomys nigrita (Lichtenstein, 1829)
(en) vuest- : Paleobiology Database : Thaptomys nigrita (Lichtenstein, 1829)
(en) vuest- : Animal Diversity Web : Thaptomys nigrita
(en) vuest- : NCBI : Thaptomys nigrita
Ara vuestexa
Slakevol (Thaptomys nigrita) dene Wikispecies
Kotavafa vuestesa xantaza
Kotava winugaf moukolaf ravlemak (Kotava, Latinava, 2019)
Slakevol (Thaptomys nigrita)
Slakevol (Thaptomys nigrita)
Slakevol (Thaptomys nigrita) | 50,221 |
https://ru.wikipedia.org/wiki/%D0%A7%D0%B5%D0%BC%D0%BF%D0%B8%D0%BE%D0%BD%D0%B0%D1%82%20%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8%20%D0%BF%D0%BE%20%D0%BA%D1%91%D1%80%D0%BB%D0%B8%D0%BD%D0%B3%D1%83%20%D1%81%D1%80%D0%B5%D0%B4%D0%B8%20%D0%B6%D0%B5%D0%BD%D1%89%D0%B8%D0%BD%202017 | Wikipedia | Open Web | CC-By-SA | 2,023 | Чемпионат России по кёрлингу среди женщин 2017 | https://ru.wikipedia.org/w/index.php?title=Чемпионат России по кёрлингу среди женщин 2017&action=history | Russian | Spoken | 353 | 1,115 | 25-й чемпионат России по кёрлингу среди женских команд в группах «А» и «Б» проходил с 3 по 9 апреля 2017 года в кёрлинг-центре «Ледяной куб» города Сочи. Чемпионский титул впервые выиграла команда Краснодарского края.
Регламент турнира
В группе «А» приняли участие 10 команд: 3 из московского клуба «Москвич» (Москва, «Зекурион-Москвич», «Москвич»-1), две из санкт-петербургского клуба «Адамант» («Адамант»-1 и «Адамант»-2), две из Московской области, команда Краснодарского края и ещё по одной команде из Москвы («Воробьёвы Горы») и Челябинска.
Чемпионат включал два этапа — предварительный и плей-офф. На предварительной стадии команды играли в один круг. Места распределялись по общему количеству побед. В случае равенства этого показателя у двух и более команд приоритет отдавался преимуществу в личных встречах соперников. Если на место в плей-офф претендуют несколько команд, имеющих одинаковое количество побед, то между двумя из них проводится дополнительный матч (тай-брейк). Четыре лучшие команды вышли в плей-офф и, разделившись на пары (1-я играет с 4-й, 2-я — с 3-й), определили двух финалистов, которые разыграли первенство. Проигравшие в полуфиналах в матче за 3-е место разыграли бронзовые награды.
Команды, занявшая в чемпионате 9-е и 10-е места, покидают группу «А».
Чемпионат в группе «Б» проводился по той же схеме, что и в группе «А». Две лучшие команды получают путёвки в группу «А» следующего сезона. Окончательно же состав групп «А» и «Б» чемпионата России 2018 определится в следующем году.
Группа «А»
Составы команд
Результаты
Предварительный этап
Плей-офф
Полуфинал
Матч за 3-е место
Финал
Итоги
Положение команд
Призёры
Краснодарский край (Сочи): Ольга Жаркова, Галина Арсенькина, Юлия Портунова, Юлия Гузиёва, Людмила Прививкова. Тренер — Ефим Жиделев.
«Адамант»-1 (Санкт-Петербург): Алина Ковалёва, Ульяна Васильева, Екатерина Кузьмина, Мария Комарова, Мария Бакшеева. Тренер — Алексей Целоусов.
Москва: Анна Сидорова, Маргарита Фомина, Александра Раева, Нкеирука Езех, Екатерина Антонова. Тренер — Ольга Андрианова.
Группа «Б»
Результаты
Предварительный этап
Тай-брейк
Плей-офф
Полуфинал
Матч за 3-е место
Финал
Итоги
Положение команд
Сборная клубов Москвы и команда «Воробьёвы Горы»-2 завоевали право на переход в группу «А» чемпионата России 2018.
Примечания
Ссылки
Чемпионат на сайте «Кёрлинг в России».
2017
2017 год в кёрлинге
Чемпионаты России в 2017 году
Апрель 2017 года в России
Соревнования по кёрлингу в Сочи
2017 год в Краснодарском крае | 26,674 |
https://ru.wikipedia.org/wiki/%D0%98%D0%BD%D0%B2%D0%B5%D1%81%D1%82%D0%B1%D0%B0%D0%BD%D0%BA | Wikipedia | Open Web | CC-By-SA | 2,023 | Инвестбанк | https://ru.wikipedia.org/w/index.php?title=Инвестбанк&action=history | Russian | Spoken | 593 | 1,785 | Инвестбанк (ОАО «Акционерный коммерческий банк «Инвестбанк») — российский коммерческий банк, прекративший деятельность 13 декабря 2013 года в связи с отзывом лицензии Центральным банком РФ.
История
Зарегистрирован в июне 1989 года в Калининграде местными организациями НПО «Союзгазавтоматика», «Судмашавтоматика», ПО «Система» и «Калининградзверпром». Из-за экономического кризиса 1998 года «Инвестбанк» в начале 1999 года попал под управление госкорпорации «Агентство по реструктуризации кредитных организаций» (предшественник Агентства по страхованию вкладов). В мае 2001 года 85% акций кредитной организации были проданы частным инвесторам. Включён в систему страхования вкладов в декабре 2004 года.
В 2008 году "Инвестбанк" поглотил три кредитные организации: московский ЗАО «Конверсбанк», екатеринбургский ОАО «Гранкомбанк» и воронежский ОАО «Воронежпромбанк». После этого объединения «Инвестбанк» получил лицензию на прием вкладов у населения.
В IV квартале 2011 года головной офис Инвестбанка был перенесен из Калининграда в Москву.
В общей сложности клиентами «Инвестбанка» были 430 тысяч человек и более 30 тысяч компаний, в Свердловской области у него было 10 тыс. вкладчиков.
Собственники и руководство
В 2006-2011 г. владельцем Инвестбанка был банкир Владимир Антонов, глава "Конверс групп". В 2011 году он продал Инвестбанк своему партнёру Сергею Менделееву; в 2012 банк продан Сергею Мастюгину.
Накануне отзыва лицензии бенефициарами банка были Сергей Мастюгин (19,97%; помещён в СИЗО после отзыва лицензии), Василий Свинарчук (19,94%), Наталья Глухова (19,75%), Оксана Сорокопуд (14,18%), инвестфонд RenFin Ltd., принадлежащий гражданину США Блейку Клейну (10,2%), Ирина Полубоярова (7,19%), Игорь Нэтзель (4,71%).
Отзыв лицензии
13 декабря 2013 года лицензия Инвестбанка отозвана приказом Банка России №ОД-1024 ввиду "существенной недостоверности отчётных данных" и разнообразных нарушений.
Центральный банк обратился в правоохранительные органы, подозревая банкиров в преднамеренном банкротстве: в капитале кредитной организации была обнаружена недосдача в 30,2 млрд рублей — самая крупная за три предшествовавших года сумма.
Расходы государства в связи с отзывом лицензии у «Инвестбанка» оцениваются в 29 млрд рублей.
По мнению зампредседателя ЦБ Михаила Сухова, владельцами и менеджерами Инвестбанка до отзыва у него лицензии совершались многочисленные нарушения. Так, финогранизация не применяла обязательные критерии оценки финансового положения заемщиков и качества обслуживания долга. Кредитный портфель в 31,5 миллиарда рублей на момент отзыва лицензии полностью обесценился. При этом банк вложил около 8,2 миллиарда долларов в ценные бумаги закрытых паевых инвестиционных фондов недвижимости (ЗПИФН) и в облигации компании Sofina AG на сумму более 60 тысяч евро. Эти бонды Bloomberg относит к худшей категории качества с отрицательной доходностью (-59,6%). По данным Банка России, размер активов кредитной организации составляет порядка 18,1 миллиарда рублей, в то время как обязательства превышают 62 миллиарда.
4 марта 2014 года Арбитражный суд Москвы признал Инвестбанк банкротом. Задолженность Инвестбанка перед физическими лицами достигает около 40,8 миллиарда рублей. В ходе ревизии еще до отзыва лицензии были выявлены сомнительные сделки с ценными бумагами. Финансовый анализ дел свидетельствует о наличии признаков преднамеренного банкротства финансового учреждения.
13 мая 2015 года по ходатайству СКР был арестован Сергей Мастюгин — один из владельцев хоккейного клуба "Спартак" и бывший бенефициар обанкротившегося Инвестбанка, в капитале которого ЦБ обнаружил внушительную дыру в 44,5 млрд руб..
В июле 2017 г. Таганский суд Москвы приговорил Сергея Мастюгина к восьми годам тюремного заключения в колонии общего режима. Он и бывший предправления банка Ольга Боргардт признаны виновными по ст.160 УК РФ (растрата) и ст.201 УК РФ (злоупотребление полномочиями).
По мнению источника агентства "Росбалт" Мастюгин в 2012 году купил "Инвестбанк", из которого "выкачал" немного денег, однако все основные средства были "выкачены" из него ранее — Мастюгину уже достался банк с гигантской "дырой". Однако к уголовной ответственности привлекли только его и Боргардт. ЦБ неоднократно рекомендовал Генпрокуратуре и правоохранительным органам проверить не только Мастюгина, но и всех предыдущих собственников и руководителей Инвестбанка, поскольку вывод средств из банка начался еще в 2008 году, но никакой реакции не последовало.
Примечания
Литература
Ссылки
Исчезнувшие банки России | 12,907 |
https://es.wikipedia.org/wiki/Vasili%20Yefr%C3%A9mov | Wikipedia | Open Web | CC-By-SA | 2,023 | Vasili Yefrémov | https://es.wikipedia.org/w/index.php?title=Vasili Yefrémov&action=history | Spanish | Spoken | 1,304 | 2,241 | Vasili Serguéyevich Yefrémov (; Tsaritsin, Imperio ruso, 14 de enero de 1915 – Kiev, Unión Soviética, 19 de agosto de 1990) fue un aviador militar soviético que combatió en la Segunda Guerra Mundial en la Fuerza Aérea Soviética. En el curso de dicho conflicto recibió dos veces el título de Héroe de la Unión Soviética. Después de la guerra permaneció en la fuerza aérea hasta 1960 cuando se retiró del servicio activo. Falleció en Kiev en 1990.
Biografía
Infancia y juventud
Vasili Yefrémov nació el 14 de enero de 1915 en el seno de una familia de clase trabajadora en la localidad de Tsaritsin, en la gobernación de Sarátov del Imperio ruso (actualmente la ciudad de Volvogrado en Rusia). En 1929 después de completar su séptimo grado en la escuela de su localidad natal, pasó a estudiar en una escuela de oficios, donde se graduó en 1932. Luego , entre 1932 y 1934, trabajó como electricista en una fábrica de carpintería en Stalingrado hasta ingresar en el Ejército Rojo en 1934. Después de graduarse en la Escuela de Pilotos de Aviación Militar de Stalingrado, en noviembre de 1937, se convirtió en piloto en el 33.º Regimiento de Aviación de Bombarderos de Alta Velocidad, que más tarde pasó a llamarse 10.º Regimiento de Aviación de Bombarderos de la Guardia. Allí, entre febrero y marzo de 1940, realizó varias misiones de combate con el bombardero ligero Túpolev SB durante la Guerra de Invierno.
Segunda Guerra Mundial
En junio de 1941, cuando la Alemania nazi invadió la Unión Soviética, Yefrémov ya había sido ascendido a comandante de vuelo. En los primeros días de la guerra, voló en el obsoleto bombardero ligero Túpolev SB. A pesar de eso, durante su primera salida en junio de 1941, su navegante derribó un caza enemigo; sin embargo, el 10 de julio fue derribado cerca de la ciudad de Korostýsiv (Ucrania) por lo que la tripulación del avión se vio obligada a saltar en paracaídas, después él y el resto de su tripulación se unieron a un grupo de soldados soviéticos en retirada y finalmente regresaron a salvo a territorio amigo, aunque el navegante resultó herido. Para principios de septiembre, Yefrémov ya había realizado un total de 39 salidas de combate.
Durante la batalla de Stalingrado, realizó casi 200 misiones sobre territorio enemigo, a menudo realizando varias en un día, lo que resultó en la destrucción de cinco trenes, quince vehículos de carga, once aviones y otros equipos. Durante un bombardeo de un cruce en el río Don el 23 de agosto de 1942, permaneció sobre el área objetivo durante tres horas a pesar del fuerte fuego antiaéreo enemigo y atacó a las tropas alemanas que intentaban reconstruir el puente. Esa noche realizó tres salidas. Solo en noviembre de ese mismo año, realizó veinticuatro incursiones y eliminó diez tanques y cinco trenes, además de otros objetivos. El 3 de febrero de 1943, fue nominado para recibir el título de Héroe de la Unión Soviética por haber realizado 293 misiones; para entonces era comandante de escuadrón. El 1 de mayo de 1943, recibió finalmente el título.
Mientras volaba principalmente en el bombardero Douglas A-20 Havoc de fabricación estadounidense, participó en numerosas batallas aéreas en los enfrentamientos y ofensivas de Ucrania (1941), Kiev (1941), Vorónezh (1942), Stalingrado (1942-1943), en la batalla del Dniéper (1943), Níkopol-Krivói Rog (1944), Crimea (1944), Vítebsk, Minsk y Vilnus (estas tres últimas parte de la más amplia operación Bagratión) y Kaunas (1944), durante estos enfrentamientos fue alcanzado por fuego enemigo tres veces, viéndose obligado a realizar un aterrizaje de emergencia en el bombardero SB y dos en el A-20B. Después de haber sumado 320 misiones de combate, fue nominado para una segunda Estrella de Oro de Héroe de la Unión Soviética, finalmente, el 24 de agosto de 1943, recibió su segundo título. Cuando dejó el frente en el otoño de 1944 para asistir a la Academia de la Fuerza Aérea de Mónino, había realizado un total de 350 salidas volando en bombarderos SB, Ar-2 y A-20, durante los cuales su tripulación derribó cuatro aviones enemigos.
Posguerra
En el otoño de 1944, se retiró del frente de batalla para estudiar en la Academia de la Fuerza Aérea en Mónino (cerca de Moscú) donde se graduó en mayo de 1949, después de completar sus estudios se convirtió en subcomandante del 277.º Regimiento de Aviación de Bombarderos. Desde julio de 1950 hasta marzo de 1953, se desempeñó como subcomandante del 668.º Regimiento de Aviación de Bombarderos, después se convirtió en el inspector de vuelo principal de las unidades de aviación de bombarderos del 48.º Ejército Aéreo, puesto que ocupó hasta agosto de ese mismo año, cuando fue transferido al 132.º División de Aviación de Bombarderos donde trabajó como piloto-inspector sénior.
De enero a junio de 1954 regresó al 277.º Regimiento como subcomandante. En junio de 1954, comenzó a trabajar en el 4.º Centro de Empleo de Combate, donde comenzó como inspector de vuelo sénior, para luego pasar a trabajar como piloto de pruebas y oficial de investigación. Llevó a cabo una serie de proyectos de investigación sobre el uso de los bombarderos a reacción Il-28 y Yak-28.
El 15 de octubre de 1967, durante la inauguración del conjunto monumental «A los Héroes de la Batalla de Stalingrado», en Volvogrado tuvo el honor de encender la llama eterna en la Plaza de los Combatientes Caídos en recuerdo y conmemoración de los soldados caídos durante la batalla de Stalingrado. En 1978 escribió sus memorias (tituladas Los escuadrones vuelan sobre el horizonte) sobre su participación en la guerra. Murió en Kiev el 19 de agosto de 1990 y fue enterrado en el complejo conmemorativo de la colina Mamáyev Kurgán en Stalingrado (Rusia).
Condecoraciones
A lo largo de su carrera militar Vasili Yefrémov fue galardonado con las siguientes condecoraciones
Héroe de la Unión Soviética, dos veces (1 de mayo de 1943 y 24 de agosto de 1943)
Orden de Lenin, dos veces (30 de agosto de 1942 y 1 de mayo de 1943)
Orden de la Bandera Roja (6 de noviembre de 1941)
Orden de la Guerra Patria de grado, dos veces (21 de mayo de 1944 y 11 de marzo de 1985)
Orden de la Estrella Roja, dos veces (6 de noviembre de 1941 y 15 de noviembre de 1950)
Medalla por el Servicio de Combate (3 de noviembre de 1944)
Medalla Conmemorativa por el Centenario del Natalicio de Lenin
Medalla por la Defensa de Stalingrado
Medalla por la Defensa de Kiev
Medalla por la Victoria sobre Alemania en la Gran Guerra Patria 1941-1945
Medalla Conmemorativa del 20.º Aniversario de la Victoria en la Gran Guerra Patria de 1941-1945
Medalla Conmemorativa del 30.º Aniversario de la Victoria en la Gran Guerra Patria de 1941-1945
Medalla Conmemorativa del 40.º Aniversario de la Victoria en la Gran Guerra Patria de 1941-1945
Medalla de Veterano de las Fuerzas Armadas de la URSS
Medalla del 30.º Aniversario de las Fuerzas Armadas de la URSS
Medalla del 40.º Aniversario de las Fuerzas Armadas de la URSS
Medalla del 50.º Aniversario de las Fuerzas Armadas de la URSS
Medalla del 60.º Aniversario de las Fuerzas Armadas de la URSS
Medalla del 70.º Aniversario de las Fuerzas Armadas de la URSS
Medalla Conmemorativa del 800.º Aniversario de Moscú
Medalla Conmemorativa del 1500.º Aniversario de Kiev
Medalla por Servicio Impecable de grado
Véase también
Galardonados dos veces con el título de Héroe de la Unión Soviética
Referencias
Bibliografía
Enlaces externos
Militares soviéticos de la Segunda Guerra Mundial
Militares de la Unión Soviética
Aviadores de la Unión Soviética
Nacidos en Volvogrado
Héroes de la Unión Soviética
Orden de Lenin
Orden de la Bandera Roja
Orden de la Estrella Roja
Orden de la Guerra Patria
Miembros del Partido Comunista de la Unión Soviética
Rusos del siglo XX
Fallecidos en Kiev
Aviadores de la Segunda Guerra Mundial | 31,460 |
https://sv.wikipedia.org/wiki/S%C3%B8ren%20Pape%20Poulsen | Wikipedia | Open Web | CC-By-SA | 2,023 | Søren Pape Poulsen | https://sv.wikipedia.org/w/index.php?title=Søren Pape Poulsen&action=history | Swedish | Spoken | 126 | 278 | Søren Pape Poulsen, född 31 december 1971 i Bjerringbro, är en dansk politiker och partiledare för De Konservative. Han är ledamot av Folketinget och före detta justitieminister i Danmark.
Pape Poulsen lade fram "Bandepakke 3", när han var justitieminister 2017. Bakgrunden var att gängvåldet i Köpenhamn ökat markant under 2015 och 2016.
Statsministerkandidat
På en presskonferens den 15 augusti 2022 annonserade Pape Poulsen, att han gärna ville vara statsminister efter det kommande val til Folketinget. Meddelandet kom efter en längre period efter Folketingsvalet 2019 med bra opinionssmätningar för Det Konservative Folkeparti, där de ofta hade fler sympatisörer än Venstre.
Källor
Levande personer
Män
Födda 1971
Personer från Viborg, Danmark
Folketingsledamöter från Det Konservative Folkeparti
Danmarks justitieministrar
Danska ministrar från Det Konservative Folkeparti
Danska politiker under 2000-talet | 25,032 |
https://ceb.wikipedia.org/wiki/Ottenhofen | Wikipedia | Open Web | CC-By-SA | 2,023 | Ottenhofen | https://ceb.wikipedia.org/w/index.php?title=Ottenhofen&action=history | Cebuano | Spoken | 35 | 96 | Ang Ottenhofen ngalan niining mga mosunod:
Alemanya
Ottenhofen (kapital sa munisipyo), Bavaria, Upper Bavaria,
Ottenhofen (lungsod), Baden-Württemberg Region, Karlsruhe Region,
Ottenhofen (munisipyo), Bavaria, Upper Bavaria,
Pagklaro paghimo ni bot 2016-01
Pagklaro paghimo ni bot Alemanya | 14,908 |
https://ca.wikipedia.org/wiki/Llista%20d%27asteroides%20%28168001-169000%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Llista d'asteroides (168001-169000) | https://ca.wikipedia.org/w/index.php?title=Llista d'asteroides (168001-169000)&action=history | Catalan | Spoken | 113 | 463 | Llista d'asteroides del 168001 al 169000, amb data de descoberta i descobridor. És un fragment de la llista d'asteroides completa. Als asteroides se'ls dona un número quan es confirma la seva òrbita, per tant apareixen llistats aproximadament segons la data de descobriment.
! colspan=5 style="background-color:silver;text-align:center;" id="001"|168001-168100 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="101"|168101-168200 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="201"|168201-168300 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="301"|168301-168400 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="401"|168401-168500 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="501"|168501-168600 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="601"|168601-168700 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="701"|168701-168800 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="801"|168801-168900 [ modifica]
|-
! colspan=5 style="background-color:silver;text-align:center;" id="901"|168901-169000 [ modifica]
|-
|} | 30,470 |
https://cs.wikipedia.org/wiki/Nazmi%20Avluca | Wikipedia | Open Web | CC-By-SA | 2,023 | Nazmi Avluca | https://cs.wikipedia.org/w/index.php?title=Nazmi Avluca&action=history | Czech | Spoken | 187 | 456 | Nazmi Avluca (* 14. listopadu 1976 Kargı, Turecko) je bývalý turecký zápasník klasik, bronzový olympijský medailista z roku 2008.
Sportovní kariéra
Zápasení se věnoval od útlého dětství. S klasickým stylem zápasení začínal ve 12 letech ve městě Bolu. Vrcholově se připravoval v hlavním městě Ankaře. V turecké seniorské reprezentaci se pohyboval od poloviny devadesátých let ve velterové váze do 76 (74) kg. V roce 1996 startoval na olympijských hrách v Atlantě a postoupil do třetího kola. V roce 2000 startoval na olympijských hrách v Sydney a nepostoupil ze základní skupiny přes Korejce Kim Čin-sua. Se změny váhových limitů od roku 2002 přešel do vyšší střední váhy do 84 kg, ve které byl první dva roky reprezentační dvojkou za Hamzou Yerlikayou a v roce 2004 nebyl nominován na olympijské hry v Athénách. V roce 2008 startoval na olympijských hrách v Pekingu a vybojoval bronzovou olympijskou medaili. V roce 2012 startoval na svých čtvrtých olympijských hrách v Londýně a nepřešel přes úvodní kolo.
Výsledky
Související články
Zápas v Turecku
Externí odkazy
Výsledky Nazmiho Avludži na uni-leipzig.de
Turečtí klasici
Turečtí bronzoví olympijští medailisté
Narození v roce 1976
Žijící lidé
Muži | 16,929 |
https://mg.wikipedia.org/wiki/New%20London%2C%20Minnesota | Wikipedia | Open Web | CC-By-SA | 2,023 | New London, Minnesota | https://mg.wikipedia.org/w/index.php?title=New London, Minnesota&action=history | Malagasy | Spoken | 45 | 141 | New London, Minnesota dia tanàna ao amin'ny faritany mizaka tenan'i Minnesota, ao Etazonia. Ny kaodim-paositra dia 56273..
Jeografia
Ny laharam-pehintaniny ary ny laharan-jarahasiny dia 45.2983333333 ary -94.945.
Ny faritr'ora dia GMT -6.
Jereo koa
Etazonia
Minnesota
Rohy ivelany
Tanàna ao amin'ny faritany mizaka tenan'i Minnesota | 39,061 |
https://ka.wikipedia.org/wiki/%E1%83%9E%E1%83%94%E1%83%9B%E1%83%91%E1%83%90 | Wikipedia | Open Web | CC-By-SA | 2,023 | პემბა | https://ka.wikipedia.org/w/index.php?title=პემბა&action=history | Georgian | Spoken | 192 | 1,251 | პემბა, ძველად პორტუ-ამელია () — ქალაქი მოზამბიკში. პემვა კაბუ-დელგადუს პროვინციის მთავარი სამრეწველო და ადმინისტრაციული ცენტრია. მოსახლეობა — 141 316 ადამიანი (2007 წლის აღწერის მონაცემები).
გეოგრაფია და ეკონომიკა
ქალაქი პემბა ინდოეთის ოკეანის მოზამბიკის სანაპიროების ჩრდილოეთით მდებარეობს, კაბუ-დელგადუს პროვინციაში, პემბის ყურეში მდებარე ნახევარკუნძულზე. მოსახლეობა ძირითადად შედგება მაკუას, მაკონდესა და მვანის ხალხებისგან.
პემბა იყოფა ორ ნაწილად: ძველი და ახალი ქალაქი. ძველი ქალაქი წარმოადგენს ტიპურ არაბულ-ტუზურ დასახლებას აღმოსავლეთის ბაზრითა (სუკი) და ვიწრო მრუდე ქუჩებით, რომლებიც გარშემო ბაობაბის ყანებითაა შემოსაზღვრული. ახალ ქალაქში პორტუგალიის კოლონიალური შენობა თანამედროვე ბეტონის სახლების გვერდით დგას.
ქალაქში განვითარებულია თევზჭერა და თევზების გადამამუშავებელი ინდუსტრია, ასევე ვაჭრობა მეზობელ ტანზანიასთან, რომლის ინტენსიური განვითარებაც მოსალოდნელია სასაზღვრო მდინარე რუვუმაზე მშენებარე ხიდის გახსნის შემდეგ. შესანიშნავი პლაჟებისა (Praia de Wimbe) და კარგად განვითარებული ინფრასტრუქტურის ხარჯზე სწრაფი ტემპით ვითარდება საერთაშორისო ტურიზმი.
ისტორია
აფრიკულ სანაპიროზე XIV საუკუნიდან მოყოლებული პემბა ცნობილია, როგორც სავაჭრო პუნქტი. XVII საუკუნიდან ის პორტუგალიური სავაჭრო ფაქტორიაა. 1904 წლიდან იღებს ქალაქის სტატუსს სახელით — პორტუ-ამელია — პორტუგალიის მაშინდელი დედოფლის პატივსაცემად. ამავე წელს პემბაში დამყარდა ანგლო-პორტუგალიური ნიასის კომპანიის (Companhia do Niassa) მმართველობა. 1843 წელს პემბის მიდამოებში მოხდა ადგილობრივი ტომების აჯანყება პორტუგალიის ბატონობის წინააღმდეგ.
დემოგრაფია
დაძმობილებული ქალაქები
პემბას მეგობრული ურთიერთობები აქვს შემდეგ ქალაქებთა:
იხილეთ აგრეთვე
მოზამბიკის ქალაქები
სქოლიო
მოზამბიკის ქალაქები
კაბუ-დელგადუს პროვინცია | 27,649 |
https://stackoverflow.com/questions/77835216 | StackExchange | Open Web | CC-By-SA | null | Stack Exchange | Umar Manzoor, Unmitigated, https://stackoverflow.com/users/1599011, https://stackoverflow.com/users/22121302, https://stackoverflow.com/users/9513184, mykaf | Wolof | Spoken | 520 | 1,273 | How to use classlist in React?
I'm trying to make a navigation bar change from desktop view to mobile view when the page gets resized. Right now I have the navbar code set up into 2 different components, one being the desktop view and one being the mobile view, each with their own respective styling. here is the code I have so far:
first nav bar:
const Nav1 = () => {
return (
<nav id="desktop-nav">
<div className="logo">Umar Manzoor</div>
<div>
<ul className="nav-links">
<li>
<a href="#about">About</a>
</li>
<li>
<a href="#experience">Experience</a>
</li>
<li>
<a href="#projects">Projects</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
</div>
</nav>
);
};
export default Nav1;
here is the second nav bar component
const Nav2 = () => {
const toggleMenu = () => {
const menu = document.querySelector(".menu-links");
const icon = document.querySelector(".lined-icon");
menu.classList.toggle("open");
icon.classList.toggle("open");
};
return (
<nav id="lined-nav">
<div className="logo">Umar Manzoor</div>
<div className="lined-menu">
<div className="lined-icon" onClick={toggleMenu()}>
<span></span>
<span></span>
<span></span>
</div>
<div className="menu-links">
<li>
<a href="#about" onClick={toggleMenu()}>
About
</a>
</li>
<li>
<a href="#experience" onClick={toggleMenu()}>
Experience
</a>
</li>
<li>
<a href="#projects" onClick={toggleMenu()}>
Projects
</a>
</li>
<li>
<a href="#contact" onClick={toggleMenu()}>
Contact
</a>
</li>
</div>
</div>
</nav>
);
};
export default Nav2;
and heres some css that goes with it:
@media screen and (max-width: 1100px) {
#desktop-nav {
display: none;
}
#lined-nav {
display: flex;
}
}
.lined-icon span {
width: 100%;
height: 2px;
background-color: black;
transition: all 0.3 ease-in-out;
}
.menu-links {
position: absolute;
top: 100;
right: 0;
background-color: white;
width: fit-content;
max-height: 0;
overflow: hidden;
transition: all 0.3 ease-in-out;
}
.menu-links a {
display: block;
padding: 10px;
text-align: center;
font-size: 1.5rem;
color: black;
text-decoration: none;
transition: all 0.3 ease-in-out;
}
.menu-links li {
list-style: none;
}
.menu-links.open {
max-height: 300px;
}
.lined-icon.open span:first-child {
transform: rotate(45deg) translate(10px, 5px);
}
.lined-icon.open span:nth-child(2) {
opacity: 0;
}
.lined-icon.open span:last-child {
transform: rotate(-45deg) translate(10px, -5px);
}
.lined-icon span:first-child {
transform: none;
}
.lined-icon span:first-child {
opacity: 1;
}
.lined-icon span:first-child {
transform: none;
}
I'm getting an error when using classlist to add "open" to the class name to differentiate which navbar to show. How can I get around this?
What is the exact error message? And where is the code that actually uses classList?
when I was debugging I took it out and just logged some stuff, I replaced the logs with how I previously had it. The classList is in the Nav2 component in the toggleMenu() function.
You still haven't included the actual error message; that's kind of instrumental in solving this.
From what I understand, not only is there is no need to use the javascript variable classList in React, but it is also not a good idea to directly modify the DOM when using React.
React holds references to elements on the page in-memory and makes the most efficient updates when it's told to. If you bypass React, it won't know about the changes you made.
I believe the creators of the React library want you to only manipulate the DOM through JSX. This article describes almost your exact use case and an approach to how you can use React's functionality: adding and removing a classList in react js
| 26,827 |
https://pl.wikipedia.org/wiki/Krynice%20%28Bia%C5%82oru%C5%9B%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Krynice (Białoruś) | https://pl.wikipedia.org/w/index.php?title=Krynice (Białoruś)&action=history | Polish | Spoken | 91 | 246 | Krynice, Kobylniki (, Krynicy, hist. , Kabylniki; , Krinicy) – wieś na Białorusi, w obwodzie grodzieńskim, w rejonie lidzkim, w sielsowiecie Dworzyszcze, nad Żyżmą.
Historia
W XIX i w początkach XX w. położone były w Rosji, w guberni wileńskiej, w powiecie lidzkim.
W dwudziestoleciu międzywojennym leżały w Polsce, w województwie nowogródzkim, w powiecie lidzkim, w gminie Żyrmuny. W 1921 miejscowość liczyła 177 mieszkańców, zamieszkałych w 39 budynkach, wyłącznie Polaków wyznania rzymskokatolickiego.
Po II wojnie światowej w granicach Związku Sowieckiego. Od 1991 w niepodległej Białorusi.
Uwagi
Przypisy
Bibliografia
Wsie w rejonie lidzkim | 12,486 |
https://ru.wikipedia.org/wiki/%D0%90%D1%80%D1%87%D0%B0%D1%80%20%28%D1%80%D0%B5%D0%BA%D0%B0%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Арчар (река) | https://ru.wikipedia.org/w/index.php?title=Арчар (река)&action=history | Russian | Spoken | 99 | 306 | Арча́р (, ) — река в Болгарии, правый приток нижнего Дуная, протекает по территории общин Макреш, Белоградчик, Видин и Димово в Видинской области на северо-западе страны.
Длина реки составляет 59,4 км, площадь водосборного бассейна — 365 км². Среднегодовой расход воды в верхней половине течения около села Рабиша — 0,70 м³/с.
Арчар начинается с восточных склонов горы Бабин-Нос на северо-западной окраине Стара-Планины в общине Макреш. В верхней половине течёт преимущественно на восток, потом — на северо-восток. Впадает в Дунай около северо-восточной окраины села Арчар в общине Димово.
Основной приток — Салашка.
Примечания
Притоки Дуная
Реки Болгарии
Водные объекты Видинской области | 49,755 |
https://en.wikipedia.org/wiki/New%20Town%20Market%20Place%2C%20Warsaw | Wikipedia | Open Web | CC-By-SA | 2,023 | New Town Market Place, Warsaw | https://en.wikipedia.org/w/index.php?title=New Town Market Place, Warsaw&action=history | English | Spoken | 300 | 398 | New Town Market Place () is the main square of the New Town of Warsaw, Poland.
It was formed before 1408, as the main square of the Warsaw New Town. It initially had a rectangular shape, with an area of 140 x 120 meters. In the 15th century, a wooden town hall was built in the center of the square and residential buildings were also constructed. In 1544 the square was damaged by fire, and the town hall was reconstructed in brick. The rest of the buildings remained wooden.
In 1656 the square was burned down by Swedes, during the Deluge. The reconstruction was slow, and the town hall was rebuilt again in 1680. In 1688 the Baroque Saint Kazimierz Church was built by Dutch architect Tylman van Gameren. In the second half of the 18th century, wooden residential buildings were replaced by bricked tenement houses. In 1785, the town hall was partially reconstructed and several shops were added to it. In 1818 the town hall was torn down, and the square gained its market character, which continued until 1878. Then, the buildings on the square were expanded and reconstructed to house growing number of craftsmen and workers. In 1932 a statue of Saint Klemens Hofbauer was placed in the square.
In World War II, during the Warsaw Uprising of 1944, the square was completely destroyed, 80% of houses were completely demolished, including the church. After the war, the square was reconstructed in the 18th-century style. The reconstruction lasted until 1955.
A 19th century well is located in the southern part of the square. The image of a girl with a unicorn, old symbol of the New Town, can be found on the top of its eclectic cast-iron pump.
See also
Old Town Market Place, Warsaw
References
Squares in Warsaw | 46,552 |
https://webmasters.stackexchange.com/questions/125359 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | closetnoc, https://webmasters.stackexchange.com/users/36029 | English | Spoken | 294 | 373 | Is adding my business link to local business directory/listing good or bad for SEO?
I'm wanting to boost search engine rankings for a business website that offers bootcamp fitness classes in a specific area of UK.
I'm aware that link building is a great way to improve search engine rankings, if not the best way, and have therefore thought about adding our link to local business directories to improve this.
However, I'm now also aware that search engines, in particular, Google, are now funny about building links with websites that have no relevance and can have a negative effect on our ranking.
As mentioned above, the business directories that we are looking to add our link to are in the same town as us or, at most, the same county.
Most of these directories are not relevant to our business with regards to the sport/fitness/bootcamp keywords but they are relevant to our business with regards to our location. However, some do have sections for 'Exercise Classes' and could be classed as relevant as their page title has 'Exercise Classes' written in it.
When Google says backlinks must have relevance, do they mean just our business sector or is location accepted as relevant too? Also, do they consider these business directories link farms/link factories?
Welcome to Webmasters!
First check the domain authority of the sites (business directories) from which you will get the backlinks.
If the indicator is good I would go for it. Being listed in business directories is something which is expected from local businesses so google should theoretically not punish webpages for doing that.
What you want to avoid are toxic backlinks. There are tools to check the toxicity of backlinks. You can read about this in several places e.g. Semrush blog
| 9,724 |
https://ar.wikipedia.org/wiki/%D8%B9%D9%84%D9%8A%20%D8%A7%D9%84%D9%85%D9%86%D8%B5%D9%88%D8%B1%D9%8A | Wikipedia | Open Web | CC-By-SA | 2,023 | علي المنصوري | https://ar.wikipedia.org/w/index.php?title=علي المنصوري&action=history | Arabic | Spoken | 491 | 1,456 | علي المنصوري شاعر شعبي عراقي من البصرة.
الولادة والدراسة
علي عبد الكريم بشارة المنصوري هو شاعر شعبي عراقي من جنوب العراق من محافظة البصرة، ولد في البصرة يوم 4 أيلول 1985 حاصل على شهادتين الأولى بكالوريوس من كلية العلوم جامعة البصرة والثانية بكالوريوس هندسة سوائل الحفر من جامعة تكساس موظف في شركة نفط البصرة بدأ بكتابة الشعر سنة 2009 وكانت بداياته في اتحاد الشعراء الشعبيين حيث اشترك في الكثير من المهرجانات الشعرية، ثم اشترك في عدة مسابقات اشهرها شاعر العراق الذي نال فيهِ المركز الأول على محافظة البصرة والتي عرضت على شاشة قناة البغدادية حيث كانت اسم القصيدة جرح الفراق.
أهم انجازاته
ألقى الشاعر علي المنصوري قصيدة ضد الطائفية في سنة 2017 حيث طرحت القصيدة في مهرجان كركوك ولقد نالت استحسان الوسط الفني والمجتمع الشعري حيث من خلال هذه القصيدة(أنا النخلة)، وفي عام 2019 فاز الشاعر علي المنصوري بجائزة أفضل شاعر شعبي في العراق من مجلة موازين حيث تعد القصيدة صاحبة الشهرة لعلي المنصوري قصيدة العنود.
ادخل علي المنصوري الدراما في القصيدة الشعرية (فيديو كليب) كما في قصيدة الأب ولهُ الكثير من الكليبات تحت عنوان رسائل اجتماعيه تطرق من خلالها إلى كيفية احترام المرور التي من خلالها كرم من وزارة الداخلية وقصيدة عامل النظافة، حيث كرم من خلالها من بلدية البصرة كما لهُ الكثير من القصائد السياسية عن ازمة المياه التي اجتاحت محافظة البصرة سنة 2018 وعمل في مجال الاعلام حيث كان بداية برامجة الشعرية في قناة الفلوجة تحت عنوان ليل ونجم، ومن بعدها برنامج العنود في قناة ديوان الفضائية ومن بعده برنامج ما مطروق في قناة آسيا.
ومن أهم الأحداث التي واجهت الشاعر علي المنصوري في المهرجانات الشعرية انه رفض القراءة في مهرجان كان فيه دعاية انتخابية لأحد السياسين.
ومن أهم البرامج الشعرية التي حصلت على ترند في موقع اليوتيوب التي استضاف فيها الاعلامي احمد البشير الشاعر علي المنصوري على قناة DW البشير شو اكس ويعد أيضا من البرامج المهمة في مسيرة الشاعر علي المنصوري برنامج كلمتين ونص حيث يعد من أهم البرامج الحوارية من تقديم حنين غانم.
كان آخر لقائاتهِ الشعرية في دولة الكويت في برنامج (ع السيف) من تقديم الاعلامية رهام حسن وبرنامج ديوانية شعراء النبط.
الميزات الفنية للشاعر
كتب علي المنصوري الشعر بنوعيهِ الشعبي والفصحى، وهو يكتب القصيدة باللغة الدارجة لأيمانه بأن القصيدة بلهجة بيئتهِ تصل إلى كل أطياف الشعب كما كتب القصيدة النبطية حيث تطرق في قصائدهِ إلى المفردة الفصيحة أو المفهمومة إلى كل من يتكلم اللغة العربية في مختلف أرجاء الوطن العربي كما كتب الأهزوجة الشعبية كما كتب في قصائدهِ العديد من المواضيع (الأم، الاب، الغزل، الوجان، العتب، الرثاء، الرجاء) لكنهُ يعتقد أن السبب الرئيسي من قصيدتهِ أن تكون بلسماً لجراحات الشعوب فهو مع الشعوب دائما كما في مقولتهِ التي دائما يرددها: (لو اختفى الحكام لعاش الشعوب بأمان وطمأنينة).
الإنتاج الشعري
له عدة قصائد منها:
الشامت
بنات البصرة
ماطاح الجمل
الريم
الهنوف
جواهر
العنود
شلال السوالف
انتهينا
أم شامة
القصيرة
أم غمازة
لا تتعجب
نسيناهم
مشتاقلكم
مراجع
أشخاص من البصرة
خريجو جامعة البصرة
شعراء بصريون
شعراء شعبيون عراقيون
شعراء عراقيون في القرن 21
مواليد 1985
شعراء بالعربية في القرن 20
شعراء بالعربية في القرن 21 | 1,193 |
https://de.wikipedia.org/wiki/Gaj%20%28S%C4%99popol%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Gaj (Sępopol) | https://de.wikipedia.org/w/index.php?title=Gaj (Sępopol)&action=history | German | Spoken | 366 | 805 | Gaj () ist ein Ort in der polnischen Woiwodschaft Ermland-Masuren. Er gehört zur Gmina Sępopol (Stadt- und Landgemeinde Schippenbeil) im Powiat Bartoszycki (Kreis Bartenstein).
Geographische Lage
Gaj liegt in der nördlichen Mitte der Woiwodschaft Ermland-Masuren, elf Kilometer südwestlich der – heute in der russischen Oblast Kaliningrad gelegenen – einstigen Kreisstadt Gerdauen () und auch elf Kilometer nordöstlich der jetzigen Kreismetropole Bartoszyce ().
Geschichte
Das Gründungsjahr von Grünhof ist nicht bekannt. Zu Beginn des 17. Jahrhunderts – so viel ist bekannt – erwarb Achatius von Kreytzen auf Peisten (polnisch Piasty Wielkie) Grünhof mitsamt Krug. Nach 1646 gelangte es in den Besitz von Wolf von Kreytzen auf Peisten und Sillginnen (polnisch Silginy). Bis ins 19. Jahrhundert blieb Grünhof in Beziehung zu Sillginnen. 1854 schließlich erbte Friedrich Graf von Egloffstein das Rittergut Sillginnen und damit auch Grünhof. In den Folgejahren bis 1945 war Grünhof im Eigentum der Familie Sucker.
Als 1874 der Amtsbezirk Woninkeim (polnisch Wanikajmy) im ostpreußischen Kreis Gerdauen errichtet wurde, wurde Grünhof ein Teil desselben. Die Einwohnerzahl des Gutsbezirks Grünhof belief sich im Jahre 1910 auf 126.
Aufgrund des Einmarsches der Roten Armee in Ostpreußen machte sich der Treck des Guts Grünhof auf die Flucht. In Westpreußen wurde er noch von den Sowjets überrollt, die Flüchtlinge mussten wieder nach Hause zurückkehren.
In Kriegsfolge kam 1945 das gesamte südliche Ostpreußen zu Polen. Grünhof erhielt die polnische Namensform „Gaj“ und ist heute eine Ortschaft im Verbund der Stadt- und Landgemeinde Sępopol (Schippenbeil) im Powiat Bartoszycki (Kreis Bartenstein), von 1975 bis 1998 der Woiwodschaft Olsztyn, seither der Woiwodschaft Ermland-Masuren zugehörig.
Kirche
Bis 1945 war Grünhof in die evangelische Kirche Laggarben (polnisch Garbno) in der Kirchenprovinz Ostpreußen der Kirche der Altpreußischen Union, außerdem in die römisch-katholische Kirche St. Bruno Insterburg () im Bistum Ermland eingepfarrt.
Heute gehört Gaj katholischerseits zur Pfarrei Lwowiec (Löwenstein) im Erzbistum Ermland, evangelischerseits zur Kirche in Barciany (Barten), einer Filialkirche der Pfarrei Kętrzyn (Rastenburg) in der Diözese Masuren der Evangelisch-Augsburgischen Kirche in Polen.
Verkehr
Gaj liegt an einer Nebenstraße, die von Melejdy (Mehleden) an der polnisch-russischen Staatsgrenze bis nach Smodajny (Schmodehnen) verläuft. Von Łoskajmy (Looskeim) führt eine Nebenstraße direkt nach Gaj.
Eine Bahnanbindung besteht nicht.
Weblinks
Bildarchiv Ostpreußen: Diashow Grünhof
Einzelhinweise
Ort der Woiwodschaft Ermland-Masuren
Gmina Sępopol | 38,632 |
https://ms.wikipedia.org/wiki/Kampung%20Pasir%2C%20Kuala%20Kangsar | Wikipedia | Open Web | CC-By-SA | 2,023 | Kampung Pasir, Kuala Kangsar | https://ms.wikipedia.org/w/index.php?title=Kampung Pasir, Kuala Kangsar&action=history | Malay | Spoken | 53 | 140 | Kampung Pasir merupakan sebuah kampung yang terletak di Kuala Kangsar, dalam negeri Perak, iaitu sebuah negeri di Malaysia. Kampung Pasir terletak di utara kampung Suak Larah.
Kemudahan asas
Pendidikan
Tempat beribadat
Poskod
Poskod yang digunakan di Kampung Pasir, Kuala Kangsar, Perak ialah 33010.
Rujukan
Pautan luar
Lokasi Kampung Pasir di Peta Google
Pasir | 28,366 |
https://el.wikipedia.org/wiki/%CE%A1%CE%AF%CE%B6%CF%89%CE%BC%CE%B1%20%CE%A4%CF%81%CE%B9%CE%BA%CE%AC%CE%BB%CF%89%CE%BD | Wikipedia | Open Web | CC-By-SA | 2,023 | Ρίζωμα Τρικάλων | https://el.wikipedia.org/w/index.php?title=Ρίζωμα Τρικάλων&action=history | Greek | Spoken | 261 | 814 | Το Ρίζωμα είναι χωριό του Νομού Τρικάλων, μέχρι το 1997 έδρα της ομώνυμης κοινότητας, από το 1997 έδρα του καποδιστριακού Δήμου Παραληθαίων και από το 2010 εντάχθηκε σύμφωνα με το Πρόγραμμα «Καλλικράτης» ως Τοπική Κοινότητα στο Δήμο Τρικκαίων. Απέχει από την πόλη των Τρικάλων περίπου 13 χιλιόμετρα.
Παλαιά ονομασία
Παλαιότερα το χωριό ονομαζόταν «Σκλάταινα», όνομα το οποίο προέρχεται από το σλαβικό Slatina. Με την παλιά ονομασία το χωριό αναφέρεται για πρώτη φορά σε ένα πατριαρχικό σιγίλλιο του έτους 1163 μ.Χ. Από τότε αρχίζει και επίσημα η ιστορία του. Ύστερα από κυβερνητική απόφαση για αποκάθαρση της ελληνικής επικράτειας από σλαβικά, τουρκικά και αλβανικά ονόματα οικισμών, το χωριό μετονομάσθηκε το 1927 σε Ρίζωμα.
Οικονομία
Οι κάτοικοι του χωριού ασχολούνταν αρχικά με την κτηνοτροφία. Στη συνέχεια ασχολούνταν παράλληλα με γεωργικές εργασίες (δημητριακά, όσπρια, αμπέλια και σκόρδα) και τη σηροτροφία (κουκούλια μεταξοσκωλήκων). Μετά από τη διανομή του αγροτικού κλήρου το 1929 οι κάτοικοι του χωριού εξειδικεύτηκαν στην καπνοκαλλιέργεια. Σήμερα, ύστερα από σχέδια της Κοινής Αγροτικής Πολιτικής της Ευρωπαϊκής Ένωσης για περιορισμό της παραγωγής καπνού, τα περισσότερα χωράφια έγιναν ελαιώνες.
Εκπαίδευση
Το Ρίζωμα έχει μακρά εκπαιδευτική παράδοση. Οι δημογραφικές εξελίξεις αλλά και η εκπαιδευτική πολιτική των τελευταίων ετών οδήγησαν στην υποβάθμιση της οργανικότητας του Δημοτικού Σχολείου σε τετραθέσιο, καθώς και στο κλείσιμο του Γυμνασίου.
Ιεροί Ναοί - Μονές
Στο χωριό υπάρχουν πολλές ενδιαφέρουσες μεταβυζαντινές εκκλησίες με θαυμαστή διακόσμηση.
Γνωστά πρόσωπα
Όσιος Φιλόθεος, δεύτερος κτήτορας της Μονής Αγίου Στεφάνου μετεώρων.
Παραπομπές
Πηγές
Αχιλ. Καψάλης & Στ. Λιούτας, Σκλάταινα Τρικάλων, ιστορία και σύγχρονη ζωή, Β΄ έκδοση, Θεσσαλονίκη, Κυριακίδης, 2014 (α΄ έκδ. 1997).
Χωριά του νομού Τρικάλων
Δήμος Τρικκαίων | 46,193 |
https://it.wikipedia.org/wiki/MIT%20Press | Wikipedia | Open Web | CC-By-SA | 2,023 | MIT Press | https://it.wikipedia.org/w/index.php?title=MIT Press&action=history | Italian | Spoken | 400 | 703 | The MIT Press è una casa editrice universitaria statunitense del Massachusetts Institute of Technology (MIT) con sede a Cambridge, in Massachusetts (Stati Uniti).
MIT Press è l'unico editore universitario del paese il cui catalogo è costituito da pubblicazioni scientifiche e tecnologiche. Pubblica circa 200 libri e 40 riviste all'anno e in tutta la sua storia ha stampato oltre 8000 volumi (dati 2006).
Storia
Le origini del MIT Press risalgono al 1926 quando il MIT pubblicò una serie di conferenze dal fisico tedesco Max Born, dal titolo Problems of Atomic Dynamics.
Nel 1932, fu formalmente istituito il Technology Press, su iniziativa di James Rhyne Killian, redattore di una rivista per i laureati del MIT, e divenuto poi direttore dell'università.
Nel 1937 la casa editrice stipulò un accordo con John Wiley & Sons, pubblicando 125 titoli fino al 1962, anno in cui l'associazione con l'editore Wiley si concluse.
Dopo la separazione la casa editrice prese il nome attuale, e da allora ha funzionato come una casa editrice indipendente.
All'inizio degli anni 1960 Muriel Cooper ha disegnato il logo dell'azienda.
Nel 1969 MIT Press ha aperto un ufficio in Europa.
Nel 2000 la MIT Press ha creato CogNet, una risorsa online per lo studio del cervello e delle scienze cognitive.
Nell'agosto del 2006 MIT Press aveva pubblicato 8000 titoli.
Attività
MIT Press pubblica essenzialmente titoli accademici in materia di arte e architettura, scienze cognitive, bioinformatica, informatica, economia, scienze ambientali, neuroscienze, nuovi media, e storia della scienza.
La MIT Press, oltre a essere il distributore di Zone Books e Semiotext(e), gestisce anche il MIT Press Bookstore, dove sono disponibili titoli fuori catalogo, e opere di altri editori accademici e commerciali. La libreria è situata nei pressi della stazione della metropolitana di Kendall Square, a Cambridge.
Periodici pubblicati
African Arts
Artificial Life
Asian Economic Papers
Biological Theory
Computational Linguistics
Computer Music Journal
Daedalus
Design Issues
Education Finance and Policy
Evolutionary Computation
Global Environmental Politics
Grey Room
Innovations
International Security
Journal of Cognitive Neuroscience
Journal of Cold War Studies
Journal of the European Economic Association
Journal of Interdisciplinary History
Leonardo
Leonardo Music Journal
Linguistic Inquiry
Neural Computation
The New England Quarterly
October
PAJ (Performing Arts Journal)
Perspectives on Science
Presence: Teleoperators & Virtual Environments
Quarterly Journal of Economics
TDR (The Drama Review)
The Review of Economics and Statistics
World Policy Journal
Note
Altri progetti
Collegamenti esterni
Case editrici universitarie
Massachusetts Institute of Technology
Case editrici statunitensi | 34,002 |
https://en.wikipedia.org/wiki/Luzern%20frank | Wikipedia | Open Web | CC-By-SA | 2,023 | Luzern frank | https://en.wikipedia.org/w/index.php?title=Luzern frank&action=history | English | Spoken | 146 | 215 | The Frank was the currency of the Swiss canton of Luzern between 1798 and 1850. It was subdivided into 10 Batzen, each of 10 Rappen or 20 Angster. It was worth th the French silver écu or 6.67 g fine silver.
The Frank was the currency of the Helvetic Republic from 1798, replacing the Gulden in Luzern. The Helvetian Republic ceased issuing coins in 1803 and Luzern once again issued coins its own coins, from 1803 to 1846.
Copper coins were issued in denominations of 1 Angster and 1 Rappen, together with billon and 1 Batzen, silver , 5 and 10 Batzen and 4 Franken and gold 10 and 20 Franken.
In 1850, the Swiss franc was introduced, with 1 Luzern Frank = 1.4597 Swiss francs.
References
External links
Modern obsolete currencies
Currencies of Switzerland
1803 establishments in Switzerland
1850 disestablishments in Switzerland
Canton of Lucerne | 18,783 |
https://robotics.stackexchange.com/questions/94088 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | English | Spoken | 159 | 296 | ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies
I'm trying to build the cartographer from this site https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html
when i ran rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y, this error pop up
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
cartographer_ros: No definition of [tf2_eigen] for OS version [buster]
How do i resolve this?
Thanks
Originally posted by qazqwert on ROS Answers with karma: 13 on 2019-12-11
Post score: 1
So what that means is there's no compiled version of tf2_eigen available on your OS, Buster (I know, obvious, but trying to start with parsing the statement).
So you need to compile that package from source on your (raspberry pi?) or contact maintainers to get a released version on that OS (which will be a longer process).
Originally posted by stevemacenski with karma: 8272 on 2019-12-11
This answer was ACCEPTED on the original site
Post score: 1
| 16,569 | |
https://no.wikipedia.org/wiki/Bija | Wikipedia | Open Web | CC-By-SA | 2,023 | Bija | https://no.wikipedia.org/w/index.php?title=Bija&action=history | Norwegian | Spoken | 101 | 209 | Bija (russisk: Бия) er ei elv i Altaj kraj og republikken Altaj i Russland. Ved Bijas samløp med Katun dannes elva Ob, en av de store elvene i Sibir. Bija er 301 km lang, med et nedbørfelt på . Elva begynner i Teletskojesjøen, og renner først mot nord og snur deretter gradvis mot vest til samløpet med Katun. Den fryser over i månedsskiftet november / desember og er islagt til vårløsningen starter i begynnelsen av april. Elva er seilbar opp til byen Bijsk.
De viktigste sideelvene er Pyzja, Sarykoksja og Lebed.
Eksterne lenker
Elver i Altaj kraj
Elver i republikken Altaj | 45,814 |
https://stackoverflow.com/questions/6235540 | StackExchange | Open Web | CC-By-SA | 2,011 | Stack Exchange | Hugo, José Luis Romero, Richard M, Shahla Khan, Soundarya Velugubantla, aster gebeyaw, https://stackoverflow.com/users/126033, https://stackoverflow.com/users/130886, https://stackoverflow.com/users/13531316, https://stackoverflow.com/users/13531317, https://stackoverflow.com/users/13531318, https://stackoverflow.com/users/13533047, https://stackoverflow.com/users/13565835, https://stackoverflow.com/users/776469, piyush.dubey, rzetterberg | English | Spoken | 282 | 655 | Wordpress Ajax request will not refresh
(sorry for not good english)
I have a problem on my wordpress theme (custom theme). I have a box in my sidebar with my last 5 tweets. This box is called with ajax but the content will not change if I add a tweet on twitter, even on refresh page.
The way i do:
In my main.js
jQuery.ajax({
type:'POST',
data:{action:'twitter_action', username:'xxxx'},
url: "http://www.ndwi.ch/wp-admin/admin-ajax.php",
success: function(value) {
jQuery("#lasttweets").html(value)
}
});
In function.php
add_action('wp_ajax_twitter_action', 'wp_echoTwitter');
add_action('wp_ajax_nopriv_twitter_action', 'wp_echoTwitter');
function wp_echoTwitter( ){
$username = $_POST['username'];
$numb = 6;
include_once(ABSPATH.WPINC.'/rss.php');
$tweet = fetch_rss("http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=" . $numb );
$text = '<ul class="twitter t' . time() . '">';
for($i=0; $i<$numb; $i++){
$text .= "<li>" . html_entity_decode( $tweet->items[$i]['atom_content'] ) . "</li>";
}
$text .= "</ul>";
die( $text );
}
Do I make something wrong ? Not a long time I work with wordpress.
Thanks in advance for your help.
For us to being able to help you better: 1. Give us the url to the twitter user which you have problems with. 2. Print out "$text" and show us the ouput. 3. Print out "value" in the ajax success function and show us the output.
When using the fetch_rss function (which is deprecated) Wordpress will cache the feed for one hour, which may be your problem.
Hello,I think you're right for the one hour cache with fetch_rss. Thank's for advice for deprecated function, i will use fetch_feed now.
The problem is solved for me. Thanks a lot.
Problem solved. Richard M said:
When using the fetch_rss function
(which is deprecated) Wordpress will
cache the feed for one hour, which may
be your problem.
The replacement for deprecated function is fetch_feed:
http://codex.wordpress.org/Function_Reference/fetch_feed
| 2,409 |
https://stackoverflow.com/questions/44486643 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | Andrew Leach, Bhas, Joris Meys, https://stackoverflow.com/users/1119964, https://stackoverflow.com/users/428790, https://stackoverflow.com/users/8145187 | English | Spoken | 592 | 1,087 | nleqslv memory use in R
I am having issues with iterations over nleqslv in R, in that the solver does not appear to clean up memory used in previous iterations. I've isolated the issue in a small sample of code:
library(nleqslv)
cons_ext_test <- function(x){
rows_x <- length(x)/2
x_1 <- x[1:rows_x]
x_2 <- x[(rows_x+1):(rows_x*2)]
eq1<- x_1-100
eq2<-x_2*10-40
return(c(eq1,eq2))
}
model_test <- function()
{
reserves<-(c(0:200)/200)^(2)*2000
lambda <- numeric(NROW(reserves))+5
res_ext <- pmin((reserves*.5),5)
x_test <- c(res_ext,lambda)
#print(x_test)
for(test_iter in c(1:1000))
nleqslv(x_test,cons_ext_test,jacobian=NULL)
i<- sort( sapply(ls(),function(x){object.size(get(x))}))
print(i[(NROW(i)-5):NROW(i)])
}
model_test()
When I run this over 1000 iterations, memory use ramps up to over 2 GB:
While running it with 10 iterations uses far less memory, only 92MB:
Running it once has my rsession with 62Mb of use, so growth in memory allocation scales with iterations.
Even after 1000 iterations, with 2+ GB of memory used by the R session, no large-sized objects are listed.
test_iter lambda res_ext reserves x_test
48 1648 1648 1648 3256
Any help would be much appreciated.
AJL
Should also mention that I can replicate this on a Mac, a Windows desktop and a Surface Pro.
Good catch. Even when assigning the result of the call to nleqslv, removing it and then calling the garbage collector, doesn't solve the issue. Calling the garbage collector after model_test() finished, does though. So I'm not sure nleqslv itself is the problem. R is notorious for its liberal use of memory. If you check memory.profile() you'll notice it is R reserving memory. The memory itself isn't filled. Before running gc(), there's about 770Mb actually used, the rest of the 2.4 Gb is just reserved.
Thanks! I dropped pryr into my code, and you can certainly see the memory use rising. GC() doesn't clean it up though, only an R restart seems to do it.
This is typically something you should have mailed the maintainer about. I doubt that nleqslv is to blame. The fortran code does not allocate memory. The encapsulating C code does and is quite careful about freeing memory. I will try to find out if nleqslv is to blame and if something has to be changed.
Thanks, I will do that. It may be a package interaction or something since colleagues on the same OS do not seem to have the same issue.
@Bhas I think too that this is more a consequence of how R deals with memory than anything else, but I'll check further.
@AndrewLeach If gc() (small letters) is not cleaning it up, then it might be a memory leak in the package itself. But that would seriously surprise me.
@Joris Meys: AndrewLeach has already contacted me and I have reproduced the issue with a small example. I'm not completely sure yet but I think that the default JIT level causes this. Using JIT level 0 seems to solve the problem. I'm waiting for a reply from Andrew. If it is the default JIT level then it may be a bug in R. Which can be reported.
@Bhas Yes, confirmed that the compiler fix seems to solve the problem. There seems to be a bit of a speed penalty, although I haven't fully tested that yet. Thanks to you both for attention to this.
@Joris Meys: The problem was a bug in the JIT executive. Problem has been solved as of R-3.4.-patched r72789.
@Bhas I've noticed on R-devel, thanks for the heads up.
I'm voting to close this question as off-topic because this is confirmed to be a bug in R, which is solved in R-devel (r72788) and R-patched release (r72789). See also https://stat.ethz.ch/pipermail/r-devel/2017-June/074430.html
| 17,515 |
https://ro.wikipedia.org/wiki/Katalin%20Jen%C5%91fi | Wikipedia | Open Web | CC-By-SA | 2,023 | Katalin Jenőfi | https://ro.wikipedia.org/w/index.php?title=Katalin Jenőfi&action=history | Romanian | Spoken | 398 | 861 | Katalin Jenőfi (n. 6 octombrie 1983, în Sárvár) este o handbalistă maghiară care joacă pentru clubul Sárvári Kinizsi SE pe postul de intermediar stânga. Jenőfi a fost în trecut componentă a echipei naționale pentru tineret a Ungariei, cu care a câștigat medalia de argint la Campionatul Mondial din 2003.
Biografie
Katalin Jenőfi a început să joace handbal la echipele de juniori ale Győri Graboplast ETO de unde, în 2002, a fost împrumutată un an la PEAC-Pikker NK. În 2003 a semnat un contract cu echipa Liss-HNKC SE din Hódmezővásárhely, unde a rămas până în 2008, când s-a transferat la formația românească HC Oțelul Galați.
În ianuarie 2009, în urma problemelor financiare ale clubului din Galați, handbalista s-a transferat la HC Dunărea Brăila, cu care a câștigat medalia de bronz în campionatul național. Jenőfi a rămas la Dunărea și în sezonul 2009–2010, iar cu cele 144 de goluri marcate a fost a 10-a cea mai bună marcatoare din campionatul românesc în acel an competițional.
În vara anului 2010 a revenit în Ungaria, la echipa Veszprém Barabás KC, iar în a doua jumătate a sezonului 2010–2011 a fost împrumutată la UKSE Szekszárd, unde a jucat și anul următor, de data aceasta legitimată la respectiva formație. În acel sezon, Jenőfi a fost a 8-a cea mai bună marcatoare din campionatul ungar, la egalitate cu Heidi Løke, cu un total de 122 de goluri înscrise.
În vara anului 2012, Katalin Jenőfi s-a transferat la echipa austriacă ZV Handball Wiener Neustadt, unde a jucat până în anul 2017, când s-a reîntors în Ungaria și a semnat un contract cu Sárvári Kinizsi SE, o echipă din orașul său natal care evoluează în Nemzeti Bajnokság II, liga a II-a ungară.
Palmares
Campionatul Mondial pentru Tineret::
Medalie de argint: 2003
Campionatul European pentru Tineret::
Medalie de argint: 2002
Cupa EHF::
Finalistă: 2002
Liga Națională::
Medalie de bronz: 2009
Distincții personale
Cel mai bun intermediar stânga de la turneul internațional organizat anual de Liss-HNKC: 2004
Cea mai bună handbalistă de la turneul internațional organizat anual de Liss-HNKC: 2004
Note
Legături externe
Katalin Jenőfi pe pagina web oficială a EHF
Katalin Jenőfi pe pagina web oficială a Federației Ungare de Handbal. Arhivat în 21 decembrie 2022, la archive.is
Jucătoare de handbal din Ungaria
Nașteri în 1983
Sportivi maghiari în viață
Oameni din Sárvár
Handbaliste ale Győri ETO KC
Handbaliști expatriați
Maghiari expatriați în România
Maghiari expatriați în Austria | 5,308 |
https://stackoverflow.com/questions/40366201 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Shane Wade, https://stackoverflow.com/users/1496715, https://stackoverflow.com/users/7101105, void | English | Spoken | 414 | 974 | How to correct data inside a loop in jquery
I have below code. when I click reply link, it will show a comment box.
I want 2 points.
or give me best way to do my work.
When 1 comment box open other must be hide.
when I click on send button correct value should send vie serialize values.
These are the codes
PHP code
<?PHP
for($i = 1; $i < 10; $i++)
{
?>
<div>comments text etc etc...</div>
<a href="" class="reply-comment"> Reply </a>
<div class="reply-comment-form" style="display:none;">
<form class="comment_form" method="post">
<textarea name="comment_box" rows="6" class="span10"></textarea> <br /><br />
<input type="button" onClick="send_comment()" class="btn btn-primary" value="send" />
</form>
</div>
<?PHP
}
?>
Jquery code
<script>
$(function(){
$('.reply-comment').on('click', function(e){
e.preventDefault();
$(this).next('.reply-comment-form').show();
});
});
function send_comment()
{
$.ajax({
type: "POST",
data : $('.comment_form').serialize(),
cache: false,
url: 'test.php',
success: function(data){
}
});
}
</script>
test.php file no need. I am checking values through firebug.
please help me to clarify this problem.
or give me best way to do my work.
I am stuck since 2 days.
Thank you for your valuable time.
I found a solution. @void helped me for this.
$(".test").on("click", function(){
var _data = $(this).parent().serialize();
$.ajax({
type: "POST",
data : _data,
cache: false,
url: 'test.php',
success: function(data){
}
});
});
Thanks!
For the first one
$('.reply-comment').on('click', function(e){
e.preventDefault();
// Hide others
$(".reply-comment-form").hide();
// Show the one which is required
$(this).next('.reply-comment-form').show();
});
And for second, do a .on("submit"... on the form and it will serialize the right input fields only.
UPDATE:
<form class="comment_form" method="post">
<textarea name="comment_box" rows="6" class="span10"></textarea> <br /><br />
// Change type to submit and remove onclick
<input type="submit" class="btn btn-primary" value="send" />
</form>
jQuery:
$(".comment_form").on("submit", function(e){
e.preventDefault(); // Here
var _data = $(this).serialize();
$.ajax({
type: "POST",
data : _data,
cache: false,
url: 'test.php',
success: function(data){
console.log(data);
}
});
});
Hi,
Now other boxes hide. but forms are working hidden. when I click submit button all form values send. so can you please tell me how can I use onSubmit function or can I disable other textares ?
when I use on submit function page will be reload. I want to do this through ajax, because of after that values retrieve as json. so can you tell me how to prevent that. I want fully ajax function. thanks for your time
Yes you should use e.preventDefault() see updated answer
Hi, I used on("click") instead of on submit. now it is works. but I want to send values when I click on submit button. not click on form
| 6,378 |
https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D1%85%D0%BC%D0%B0%D1%82%D0%B8%D1%81%D1%82%20%28%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D1%8F%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Шахматист (значения) | https://ru.wikipedia.org/w/index.php?title=Шахматист (значения)&action=history | Russian | Spoken | 41 | 135 | Шахмати́ст:
Шахматист — игрок в шахматы, любитель этой игры
«Шахматист» — наиболее известный рисунок из альбома Liber Amicorum, принадлежащий голландскому художнику Яну де Браю и изображающий игрока в редкую разновидность шахмат — курьерские шахматы.
Шахматист — французский художественный фильм 2019 года. | 24,901 |
https://ca.wikipedia.org/wiki/Tommy%20Karls | Wikipedia | Open Web | CC-By-SA | 2,023 | Tommy Karls | https://ca.wikipedia.org/w/index.php?title=Tommy Karls&action=history | Catalan | Spoken | 106 | 206 | és un piragüista suec, ja retirat, que va competir durant les dècades de 1980 i 1990.
El 1984 va prendre part en els Jocs Olímpics d'Estiu de Los Angeles, on va guanyar la medalla de plata en la prova del K-4 1.000 metres del programa de piragüisme. Formà equip amb Per-Inge Bengtsson, Lars-Erik Moberg i Thomas Ohlsson.
En el seu palmarès també destaca una medalla de plata al Campionat del Món en aigües tranquil·les de 1985 i una de bronze al Campionat del Món de piragüisme de marató de 1991.
Referències
Piragüistes suecs
Medallistes suecs als Jocs Olímpics d'estiu de 1984
Persones del Comtat de Södermanland | 44,494 |
https://ur.wikipedia.org/wiki/%D8%A2%D8%A6%DB%8C%20%D8%B3%DB%8C%20%D8%B3%DB%8C%20%DA%A9%DB%92%20%D8%A7%D8%B9%D8%B2%D8%A7%D8%B2%D8%A7%D8%AA | Wikipedia | Open Web | CC-By-SA | 2,023 | آئی سی سی کے اعزازات | https://ur.wikipedia.org/w/index.php?title=آئی سی سی کے اعزازات&action=history | Urdu | Spoken | 185 | 531 | آئی سی سی اعزازات بین الاقوامی کرکٹ کے لیے کھیلوں کے اعزازات کا ایک سالانہ مجموعہ ہیں، جو پچھلے 12 مہینوں کے بہترین بین الاقوامی کرکٹ کھلاڑیوں کو تسلیم کرتے ہیں اور ان کا اعزاز رکھتے ہیں۔ ایوارڈز کو بین الاقوامی کرکٹ کونسل (ICC) نے 2004ء میں متعارف کرایا تھا۔ 2009ء اور 2014ء کے درمیان اعزازات کو اسپانسرشپ وجوہات کی بناء پر ایل جی آئی سی سی اعزازات کے نام سے جانا جاتا تھا۔
آئی سی سی سال کا بہترین مرد کھلاڑی
آئی سی سی ٹیسٹ کرکٹ میں سال کا بہترین مرد بلے باز
آئی سی سی ایک روزہ کرکٹ میں سال کا بہترین مرد بلے باز
آئی سی سی ٹی/20 کرکٹ میں سال کا بہترین مرد بلے باز
آئی سی سی سال میں ابھرتے ہوئے بہترین کھلاڑی
آئی سی سی مہینے کا بہترین کھلاڑی
آئی سی سی مینز ایسوسی ایٹ سال کا بہترین کھلاڑی
آئی سی سی سال کا بہترین امپائر
آئی سی سی مینز سال کی بہترین ٹیسٹ ٹیم
آئی سی سی مینز ون ڈے ٹیم آف دی ایئر
حوالہ جات
انٹرنیشنل کرکٹ کونسل ایوارڈ اور درجہ بندیاں
کرکٹ اعزازات اور درجہ بندیاں | 29,411 |
https://fa.wikipedia.org/wiki/%D8%AD%D8%A7%D8%AC%DB%8C%E2%80%8C%D8%A2%D8%A8%D8%A7%D8%AF%20%28%D8%AE%D8%B1%D9%85%E2%80%8C%D8%A8%DB%8C%D8%AF%D8%8C%20%D8%AC%D9%86%D9%88%D8%A8%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | حاجیآباد (خرمبید، جنوب) | https://fa.wikipedia.org/w/index.php?title=حاجیآباد (خرمبید، جنوب)&action=history | Persian | Spoken | 30 | 99 | حاجیآباد یک روستا در ایران است که در دهستان خرمی در شهرستان خرمبید استان فارس واقع شدهاست.
جستارهای وابسته
فهرست شهرهای ایران
منابع
بازبینی گمر شهرهای ایران
روستاهای شهرستان خرمبید | 28,058 |
https://stackoverflow.com/questions/38785724 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Sundanese | Spoken | 100 | 348 | Android MultiSelectListPreference is crashing
I try to use MultiSelectListPreference in my android project.
I defined all settings as you can see:
<MultiSelectListPreference
android:key="key1"
android:title="title"
android:dialogTitle="title"
android:summary="dsfsdfsf"
android:entries="@array/entries"
android:entryValues="@array/entryValues"
android:persistent="true"
android:defaultValue="@array/defaults"/>
In strings.xml:
<string-array name="entries">
<item>Entry1</item>
<item>Entry2</item>
<item>Entry3</item>
</string-array>
<string-array name="entryValues">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string-array name="defaults" />
I get the Error message:
Caused by: java.lang.ClassCastException: java.lang.String cannot be
cast to java.util.Set
at
android.app.SharedPreferencesImpl.getStringSet(SharedPreferencesImpl.java:232)
What did i do wrong?
I solved it now. The code is correct. It was the data in the background.
As soon as i deleted all data of the app including the cache, All works very well.
| 43,412 | |
https://de.wikipedia.org/wiki/Joseph%20Clement%20Willging | Wikipedia | Open Web | CC-By-SA | 2,023 | Joseph Clement Willging | https://de.wikipedia.org/w/index.php?title=Joseph Clement Willging&action=history | German | Spoken | 120 | 257 | Joseph Clement Willging (* 6. September 1884 in Dubuque, Iowa, USA; † 3. März 1959) war ein US-amerikanischer Geistlicher und der erste Bischof von Pueblo.
Leben
Joseph Clement Willging empfing am 20. Juni 1908 das Sakrament der Priesterweihe für das Erzbistum Dubuque.
Am 6. Dezember 1941 ernannte ihn Papst Pius XII. zum ersten Bischof von Pueblo. Der Apostolische Delegat in den Vereinigten Staaten, Erzbischof Amleto Giovanni Cicognani, spendete ihm am 24. Februar 1942 die Bischofsweihe; Mitkonsekratoren waren der Bischof von Davenport, Henry Patrick Rohlman, und der Bischof von Helena, Joseph Michael Gilmore.
Weblinks
Römisch-katholischer Bischof (20. Jahrhundert)
Römisch-katholischer Theologe (20. Jahrhundert)
Person des Christentums (Colorado)
Person (Pueblo, Colorado)
Römisch-katholische Kirche in den Vereinigten Staaten
US-Amerikaner
Geboren 1884
Gestorben 1959
Mann | 31,412 |
https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%AF%E3%83%93%E3%83%AB%20%28%E3%83%9F%E3%82%B7%E3%82%B7%E3%83%83%E3%83%94%E5%B7%9E%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | スタークビル (ミシシッピ州) | https://ja.wikipedia.org/w/index.php?title=スタークビル (ミシシッピ州)&action=history | Japanese | Spoken | 87 | 3,771 | スタークビル()は、アメリカ合衆国ミシシッピ州の東部、オクティベハ郡の都市であり、同郡の郡庁所在地である。オクティベハ郡全体を含むスタークビル小都市圏の主要市である。2010年国勢調査での人口は23,888 人だった。
ミシシッピ州でゴールデン・トライアングルと呼ばれるコロンバス、ウェストポイントとスタークビルの3市で作る三角形に属しており、その所属するラウンズ郡、クレイ郡とオクティベハ郡が含まれている。
のキャンパスがスタークビルに接し、一部は市の東部に含まれている。2011年秋の時点でミシシッピ州立大学には2万人の学生、4,000人以上の大学院生、1,300人以上の教職員がいる。この大学はスタークビル市では最大の雇用主である。学生はマグノリア映画祭の聴衆となってきた。この祭は毎年2月に開催されており、州内では最古の映画祭である。スタークビルで開催され、ミシシッピ州立大学学生会に強く支持されているその他の主要な行事として、ダディ・グラス・パレード、コットン地区芸術祭、スーパー・ブルドッグ・ウィークエンド、オールドメイン音楽祭、ラグタイム&ジャズ音楽祭、ブルドッグ・バッシュがある。
歴史
スタークビルとなった地域には2,100年にわたって人が住み続けてきた。その2100年前とされる土器の破片などという形態で人工物が、スタークビルの東、ハーマン・マウンドとビレッジの遺跡で見つかっており、このアメリカ合衆国国家歴史登録財に指定される場所にはインディアン・マウンド・キャンプグラウンドからアクセスできる。アメリカ独立戦争の直前、この地域にはチョカマあるいはチャクチウマ族インディアンが住んでいたが、チョクトー族とチカソー族のあまり見られない同盟によって、その頃に滅ばされた。スタークビル地域の現在の町は、1830年、ダンシング・ラビット・クリークの条約で、オクティベハ郡にいたチョクトー族が地域の土地に対する権利主張を諦めた後で、開拓が始まった。ここには2つの大きな泉があったので、白人開拓者が惹きつけられてきた。町の南西に下見板を作る工場があり、このことで町は当初ボードタウンと呼ばれた。1835年、ボードタウンはオクティベハ郡の郡庁所在地とされ、町名は独立戦争の英雄ジョン・スターク将軍にちなんでスタークビルと改名された。
2006年3月21日、スタークビルは、レストランやバーを含め公共の屋内スペースでの禁煙を採用したことで、ミシシッピ州初の都市となった。この条例は2006年5月20日に有効となった。
地理
スタークビル市は (33.462471, -88.819990)に位置している。
アメリカ合衆国国勢調査局に拠れば、市域全面積は25.8平方マイル (66.9 km2)であり、このうち陸地25.7平方マイル (66.5 km2)、水域は0.2平方マイル (0.4 km2)で水域率は0.58%である。
アメリカ国道82号線とミシシッピ州道12号線および同25号線がスタークビル市内の幹線道である。最寄りの空港はゴールデン・トライアングル地域空港である。ジョージ・M・ブライアン・フィールドはスタークビルの一般用途空港となっている。この地域にはさらに民有の滑走路が幾つかある。
人口動態
以下は2000年の国勢調査による人口統計データである。
宗教
スタークビル市内には80か所の礼拝所があり、ほとんど全ての宗教が受け入れられている。これはが幅広い国から学生を受け入れていることが大きく影響している。2007年10月時点で、市民の約半数、49.74%が宗教との関わりを申告しており、その中でも41.59%がプロテスタントであるとしている。カトリック、ヒンドゥー教、モルモン教、イスラム教は小さな比率を占めており、バプテストが25%、メソジストが11%とそこそこの数字になっている。
芸術と文化
コットン地区
コットン地区はスタークビル市内の地域社会であり、世界でも初めてニューアーバニズムの開発が行われた場所である。開発業者で、この地域の多くの所有者かつ管理者だったダン・キャンプが設立した。コットン地区はギリシャ復古調に古典派やヴィクトリア調が組み合わされた建物が並ぶ。特徴ある多くの住宅に加えて、徒歩圏内には多くのレストランやバーがある。
政治
スタークビルはアメリカ合衆国下院ミシシッピ州第3選挙区に、また司法では州最高裁判所第3地区に属している。
教育
公立学校
スタークビル市の公共教育はスタークビル教育学区が管轄している。スタークビル高校の運動部はクラス6A、リージョン2に指定されている。そのイエロージャケット・フットボールチームは1981年以来、10の選手権に出場して州のチャンピオンに6度なった、州内でも成功しているチームである。最近では2015年のチャンピオンになった。
私立学校
スタークビル・アカデミー
スタークビル・クリスチャン学校
著名な出身者
クール・パパ・ベル、ニグロリーグで活躍した野球選手、アメリカ野球殿堂入り
フリオ・ボーボン、メジャーリーグベースボール選手、テキサス・レンジャーズ他
ハリー・バージェス、軍人、パナマ運河地帯総督(1928年-1932年)
ベイリー・ハウエル、カレッジとプロのバスケットボール選手、ボストン・セルティックス他、バスケットボール殿堂入り、スタークビル在住
ヘイズ・ジョーンズ、陸上競技選手、東京オリンピックの110mハードルで金メダル
トラビス・アウトロー、NBAバスケットボール選手、ポートランド・トレイルブレイザーズ他
ジェリー・ライス、NFLアメリカンフットボール選手、サンフランシスコ・フォーティナイナーズ他、プロフットボール殿堂入り
大衆文化の中で
1927年、著名パイロットのチャールズ・リンドバーグがグッゲンハイム・ツアーの間にスタークビル郊外に着陸を成功させ、メイベンの町の寮に宿泊した。後に『WE』と題した自叙伝でこの着陸のことを記した。
アメリカ合衆国の中でティーボールを発明したと主張する幾つかの場所の1つである。ティーボールは、1961年に、スタークビル・ロータリークラブの会員だったW・W・リトルジョンとクライド・ミューズ博士が普及させた。ミューズ博士はスタークビルの教育者でもあり、長年スタークビル高校の校長だった。野球やバスケットボールのコーチでも有名だった。その率いたチームは州のチャンピオンとなり、ルイス・マロリー、ジャッキー・ウォフォード、バリー・ウッド、カース・スミスなどが選手だった。町自体は南部の野球首都と考えられ、アメリカ野球殿堂入りしたクール・パパ・ベルの生誕地でもある。ミシシッピ州立大学の野球チームダイアモンド・ドッグスは、ネブラスカ州オマハで開催されるNCAAのカレッジ野球ワールドシリーズにこれまで9回出場した。
1965年5月11日、シンガーソングライターのジョニー・キャッシュが公然酩酊の容疑で逮捕され(ただしキャッシュは花を摘むように摘み出されたと書いている)、スタークビルの監獄に一晩留め置かれた。これが彼の持ち歌である「スタークビル市の監獄」(下記)のヒントになった。
この歌はアルバム「サン・クエンティンで」に収められた。
2007年11月2日から4日、ジョニー・キャッシュ花摘み祭がスタークビル市で開催された。そこで逮捕されてから40年以上が経っていた。この祭はキャッシュの人生と音楽を顕彰し、死後恩赦を象徴的に受けることになっており、毎年の行事になることが期待されている。この祭は、「ジョニー・キャッシュは7つの場所で逮捕されたが、それらの場所の中で1つのみについて歌を作った」という前提に基づいて、町に毎年開催することを促したロビー・ウォードによって始められた。
「スタークビル」という歌は、フォークデュオのインディゴ・ガールズが2002年に出したアルバム「Become You」の中にも収められている。
2007年の映画『ボラット 栄光ナル国家カザフスタンのためのアメリカ文化学習』は物議を醸したものだが、それに使われたミシシッピ州の地図にスタークビルが見られる。
スタークビルにあるミシシッピ・ホース・パークは全米トップ40に入るロデオの施設であり、北ミシシッピではトップクラスの観光地と見なされている。
スタークビルでは毎年2月にマグノリア独立映画祭が開催されている。独立系映画の祭として、州内最古のものである。
毎年4月の第3週末に開催されるコットン地区芸術祭は、州内でもトップクラスの芸術祭と考えられている。2008年には記録破りの25,000人近い観衆を集めた。参加者としては、雑誌の「ヨール・マガジン」や「サザン・リビング」、音響機器メーカーのピービー・エレクトロニクスの他、州内100人以上のトップ技能者や25のバンドが出ている。
ミシシッピ州では最大の屋外無料コンサートであるブルドッグ・バッシュもスタークビルで開催される。
ミシシッピ州立大学のキャンパスにはグラディス・ウェイド時計博物館があり、18世紀初期からの、大半はアメリカの掛け時計や腕時計の膨大なコレクションがある。400以上の掛け時計のコレクションは、この地域では随一のものである。
1999年から2006年まで放映されたNBCテレビのドラマ『ザ・ホワイトハウス』で、スタークビルが言及された。大統領補佐官のトビーが予算配分を説明し、ミシシッピ州スタークビルでの肥料取扱いに170万ドルを含むと言っている。
犯罪と犯罪者
悪名高いギャングのマシンガン・ケリーが2年間スタークビルに住み、に通っていた。1917年に農業を学ぶために入学した。ケリーはその始まりから貧乏学生と見なされ、身体衛生については彼として最高グレードの (C+) を与えられた。教授たちとは常に問題を起こし、与えられた罰点を働いて消すために学生時代の多くの時間が割かれた。
脚注
外部リンク
Official City of Starkville Website - 公式サイト
Greater Starkville Development Partnership (GSDP) Website
Starkville Daily News Website
Starkville Area Arts Council Website
ミシシッピ州の都市 | 27,573 |
https://id.wikipedia.org/wiki/Albrecht%20II%20dari%20Mei%C3%9Fen | Wikipedia | Open Web | CC-By-SA | 2,023 | Albrecht II dari Meißen | https://id.wikipedia.org/w/index.php?title=Albrecht II dari Meißen&action=history | Indonesian | Spoken | 78 | 184 | Albrecht II, yang Merosot (Bahasa Jerman: Albrecht II der Entartete) (1240 – 20 November 1314) merupakan seorang Markgraf Meißen, Landgraf Thüringen dan Comte Palatinus Sachsen. Ia berasal dari Wangsa Wettin.
Ia adalah putra sulung Heinrich III dari Meißen dan istri pertamanya, Konstanze dari Babenberg.
Albrecht meninggal pada tahun 1314 di Erfurt pada usia tujuh puluh empat tahun.
Lihat pula
Daftar Markgraf Meißen
Wangsa Wettin
Referensi
Markgraf Meissen
Penguasa Thüringen
Kelahiran 1240
Kematian 1314
Wangsa Wettin
Tokoh dari Meissen | 27,143 |
https://en.wikipedia.org/wiki/Society%20for%20Clinical%20Trials | Wikipedia | Open Web | CC-By-SA | 2,023 | Society for Clinical Trials | https://en.wikipedia.org/w/index.php?title=Society for Clinical Trials&action=history | English | Spoken | 290 | 450 | The Society for Clinical Trials (SCT) is an American professional organization in Philadelphia, Pennsylvania dedicated to advancing the science and practice of clinical trials. Established in 1978, SCT is an international organization with a membership of hundreds of individuals from academia, industry, government, and non-profit organizations. The society promotes the development and dissemination of knowledge related to the design, conduct, analysis, interpretation, and reporting of clinical trials.
The leadership structure of the Society for Clinical Trials comprises a president who holds office for a one-year term. Currently, Dixie Ecklund is serving as the president for the term of 2023-24.
History
The Society for Clinical Trials was formally established in September 1978 with the objective of advancing and facilitating the development and exchange of knowledge pertaining to the design and execution of clinical trials and research utilizing comparable methodologies. Commemorating its 40th anniversary, the society marked this significant milestone during its annual meeting held in New Orleans from May 19 to May 22, 2019.
David Sackett Trial of the Year Award
This award is given out each year to the randomized clinical trial that was published in the previous year and most effectively meets the following criteria: it contributes to the betterment of humanity, serves as the foundation for a significant and positive transformation in healthcare, showcases expertise in the respective subject matter, demonstrates excellence in methodology, prioritizes the well-being of study participants, and successfully overcomes challenges in implementation.
Presidents
Dixie Ecklund (2023-24)
Lehana Thabane (2022-2023)
Mithat Gönen (2021-2022)
Susan Halabi (2020-2021)
Dean Fergusson (2019-2020)
Sumithra Mandrekar (2018-2019)
Ted Karrison (2017-2018)
Domenic Reda (2016-2017)
Wendy Parulekar (2015-2016)
KyungMann Kim (2014-2015)
References
External links
Clinical trials
Organizations based in Philadelphia
Medical and health organizations
Professional associations
Scientific societies
Organizations established in 1978 | 9,990 |
https://stackoverflow.com/questions/71163321 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Andrej Kesely, https://stackoverflow.com/users/10035985, https://stackoverflow.com/users/18233539, user18233539 | English | Spoken | 244 | 633 | Pandas division of 2 Groupbys from 1 dataframe : unsupported operand type(
I'm new to pandas and I'm trying to mimic Excel.
So I want to:
1. Create a new column WA - which will be one SUMIF divided by Another.
In pandas I have tried:
df['WA']= df.groupby('Coin')['Price Paid (USDT)']/ df.groupby('Coin')['Amt Coin']
Coin
Coin Price (USDT)
Amt Coin
Price Paid (USDT)
BTC
42600.0
0.00117
49.842
BTC
42600.0
0.00117
49.842
ETH
4600.0
0.00117
49.842
But I get the following error...
TypeError: unsupported operand type(s) for /: 'SeriesGroupBy' and
'SeriesGroupBy'
SO in Excel it would be
=SUMIF(COIN, "BTC" or A2, Price Paid)/(SUMIF(COIN, "BTC"orA2,
Amt Coin))
Expected format
Coin
Coin Price (USDT)
Amt Coin
Price Paid (USDT)
VWAP
BTC
42600.0
0.00117
49.842
41300
BTC
40000.0
0.00117
49.842
41300
ETH
4600.0
0.00117
49.842
4600
Can you please edit your question and put there expected result?
Hi @AndrejKesely all done! Thanks so much for helping with the formatting.
From my understanding, you want to compute the weighted-average of Price Paid (USDT)/Amt Coin, by each coin.
You can do:
Sum the total Price Paid (USDT) and Amt Coin of each coin:
grp_wa = df.groupby('Coin').agg({'Price Paid (USDT)': 'sum', 'Amt Coin': 'sum'})
Then compute the VWAP:
grp_wa['VWAP'] = grp_wa['Price Paid (USDT)'] / grp_wa['Amt Coin']
You should have a table (GroupByObject) of each coin's VWAP in one row. Feel free to join it back to the original df.
note: I have not fully tested the code, but should be on the right track.
| 8,470 |
https://en.wikipedia.org/wiki/Sankt%20Andr%C3%A4-H%C3%B6ch | Wikipedia | Open Web | CC-By-SA | 2,023 | Sankt Andrä-Höch | https://en.wikipedia.org/w/index.php?title=Sankt Andrä-Höch&action=history | English | Spoken | 40 | 71 | Sankt Andrä-Höch is a municipality in the district of Leibnitz in the Austrian state of Styria.
Geography
Sankt Andrä-Höch lies about 35 km south of Graz and about 15 km west of Leibnitz.
References
Cities and towns in Leibnitz District | 47,794 |
https://cs.wikipedia.org/wiki/Seznam%20p%C5%99edstavitel%C5%AF%20m%C4%9Bstsk%C3%A9%20%C4%8D%C3%A1sti%20Brno-Kom%C3%ADn | Wikipedia | Open Web | CC-By-SA | 2,023 | Seznam představitelů městské části Brno-Komín | https://cs.wikipedia.org/w/index.php?title=Seznam představitelů městské části Brno-Komín&action=history | Czech | Spoken | 54 | 132 | Seznam představitelů městské části Brno-Komín.
Starostové do roku 1945
Roku 1849 se za 4060 zlatých, 26 krejcarů, vykoupili komínští z poddanosti. Jsou zvoleni první radní a starosta obce.
A v roce 1919 spolu s dalšími předměstími je Komín připojen k Velkému Brnu.
1907 – ?, Jan Plšek
Starostové po roce 1989
Reference
Komín
Brno-Komín | 29,529 |
https://stackoverflow.com/questions/57629812 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | English | Spoken | 231 | 627 | How to properly read multiple zlib streams from one base stream (Git Packfile) in NodeJS?
I'm creating a NodeJS module to interact with git repositories and I'm trying to read Packfiles coming from public git hostings like GitHub.
The problem is, Packfiles are made of many zlib streams but I can't figure out how to:
inflate (uncompress) the first zlib stream
do something with it
inflate the next zlib stream
etc.
Here is the minimal example:
// main.js
const zlib = require('zlib')
const Readable = require('stream').Readable;
function createZlibStream(count = 1) {
const s = new Readable();
s._read = () => {};
for (let i = 0; i < count; i++) {
s.push(zlib.deflateSync("stream" + i));
}
s.push(null);
return s;
}
function readZlibStream(stream) {
return new Promise(function(resolve, reject) {
var data = "",
zlibStream = zlib.createInflate();
stream
.pipe(zlibStream)
.on("data", chunk => {
data += chunk;
})
.on("end", () => {
stream.unpipe(zlibStream)
resolve(data);
})
});
}
var stream = createZlibStream(1)
readZlibStream(stream)
.then(console.log)
.catch(console.error)
That's cool to read 1 stream, but if you generate two streams, by replacing:
var stream = createZlibStream(1)
readZlibStream(stream)
.then(console.log)
.catch(console.error)
with:
var stream = createZlibStream(2)
readZlibStream(stream)
.then((data) => {
console.log(data)
readZlibStream(stream)
.then(console.log)
.catch(console.error)
})
.catch(console.error)
You'll get that output:
user@hostname:~/zlib-error$ node main.js
stream0
events.js:174
throw er; // Unhandled 'error' event
^
Error: unexpected end of file
at Zlib.zlibOnError [as onerror] (zlib.js:162:17)
Emitted 'error' event at:
at Zlib.zlibOnError [as onerror] (zlib.js:165:8)
| 15,795 | |
https://arz.wikipedia.org/wiki/%D8%A8%D8%A7%D8%B1%D8%A7%D8%AC%D9%88%D9%82 | Wikipedia | Open Web | CC-By-SA | 2,023 | باراجوق | https://arz.wikipedia.org/w/index.php?title=باراجوق&action=history | Egyptian Arabic | Spoken | 15 | 45 | باراجوق ( بالفارسى باراجوق ) قريه فى ايران.
لينكات برانيه
مصادر
تجمع سكان
قرى ايران | 32,427 |
https://ce.wikipedia.org/wiki/%D0%A1%D0%BE%D0%BB%D0%B8%D0%B2%D0%BE%20%D0%92%D0%BE%D0%BB%D1%82%D0%B0%20%28%D0%92%D0%B5%D1%80%D1%87%D0%B5%D0%BB%D0%B8%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Соливо Волта (Верчели) | https://ce.wikipedia.org/w/index.php?title=Соливо Волта (Верчели)&action=history | Chechen | Spoken | 96 | 260 | Соливо Волта () — Италин Пьемонт регионан коммунера эвла.
Географи
Климат
Кхузахь климат йу Лаьттайуккъера хӀордан, барамехь йекъа а, йовха, Ӏа шийла ца хуьйла.
Бахархой
Билгалдахарш
Литература
Gino Moliterno, ур. (2003). Encyclopedia of Contemporary Italian Culture. Routledge; Routledge World Reference. ISBN 0415285569.
Catherine B. Avery, ур. (1972). The New Century Italian Renaissance Encyclopedia. Simon & Schuster. ISBN 0136120512.
Итали // Итали — Кваркуш. — М. : Советская энциклопедия, 1973. — (Большая советская энциклопедия : [в 30 т.] / гл. ред. А. М. Прохоров ; 1969—1978, т. 11).
Пьемонт регионан нах беха меттигаш
Италин нах беха меттигаш | 24,638 |
https://stackoverflow.com/questions/47789957 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | English | Spoken | 35 | 47 | Customise firebase dashboard
Is it possible to change the metrics in the Firebase dashboard?
Some of the existing metrics are not relevant for us and we are missing some others where the data is available.
| 35,142 | |
https://lld.wikipedia.org/wiki/%C3%9Eyrill | Wikipedia | Open Web | CC-By-SA | 2,023 | Þyrill | https://lld.wikipedia.org/w/index.php?title=Þyrill&action=history | Ladin | Spoken | 18 | 46 | L Þyrill ie n crëp te l'Islanda. L à na autëza de metri.
Geografia
Referënzes
Crëp te l'Islanda | 2,097 |
https://superuser.com/questions/954608 | StackExchange | Open Web | CC-By-SA | 2,015 | Stack Exchange | Chris Herring, Omar Himada, https://superuser.com/users/121766, https://superuser.com/users/488687 | English | Spoken | 163 | 212 | Visual Studio 2013 lags after typing class in html file
Every time I type class in a html file in Visual Studio the app stops responding for a few seconds, presumably it's building the intellisense list of classes available. How can I disable this?
Strangely this is on a fresh install of VS2013 on a fresh install of win 10. It was not lagging like this when I was running under Win 8.1 even with a number of extensions running.
I discovered that this the auto-completion for CSS classes can be turned off by going to Tools->Options and in the Options dialog going to Text Editor->HTML->General and unchecking 'Auto list members' as shown in the screenshot below.
Thank you so much, this problem has been bugging me for months now (so much so that I would sometimes copy & paste CSS classes from notepad into visual studio just to avoid the lag).
great, happy this helped someone else. it was a huge annoyance
| 21,823 |
https://it.wikipedia.org/wiki/Michail%20Babi%C4%8Da%C5%AD | Wikipedia | Open Web | CC-By-SA | 2,023 | Michail Babičaŭ | https://it.wikipedia.org/w/index.php?title=Michail Babičaŭ&action=history | Italian | Spoken | 21 | 53 |
Carriera
Club
Ha giocato nella prima divisione dei campionati bielorusso e lettone.
Nazionale
Ha giocato nella nazionale bielorussa Under-21.
Collegamenti esterni | 29,607 |
https://sr.wikipedia.org/wiki/%D0%A4%D1%83%D0%B4%D0%B1%D0%B0%D0%BB%D1%81%D0%BA%D0%B0%20%D1%80%D0%B5%D0%BF%D1%80%D0%B5%D0%B7%D0%B5%D0%BD%D1%82%D0%B0%D1%86%D0%B8%D1%98%D0%B0%20%D0%9A%D1%83%D1%80%D0%B0%D1%81%D0%B0%D0%BE%D0%B0 | Wikipedia | Open Web | CC-By-SA | 2,023 | Фудбалска репрезентација Курасаоа | https://sr.wikipedia.org/w/index.php?title=Фудбалска репрезентација Курасаоа&action=history | Serbian | Spoken | 236 | 706 | Фудбалска репрезентација Курасаоа () је фудбалски тим који представља Курасао на међународним такмичењима под контролом Фудбалског савеза Курасаоа који се налази у оквиру Карипске фудбалске уније и Конкакаф-а. Такође је члан ФИФА.
Након уставне промене која је омогућила њеној претходници, (Колонији Курасао и зависним територијама), да постану јединствена конститутивна држава која се састоји од неколико острвских територија и постала призната као Холандски Антили а која се опет распала 2010. године, Курасао је играо под новим уставним статусом као засебна конститутивна држава од 2011.
И ФИФА и Конкакаф признају репрезентацију Курасао као директног и јединог наследника Фудбалске репрезентације Курасаоа (1921–1958) и Фудбалске репрезентације Холандских Антила.
Такмичарска достигнућа
Светско првенство
Све такмичарске утакмице које су се игране од 1921. до 1958. године биле су игране као Територија Курасао (која обухвата свих шест острва Холандских Антила). Од 1958. до 2010. године сви мечеви су играни под именом Холандски Антили, која је била наследница територије Курасао (која се још састојала од шест острва до 1986. године, када се Аруба одвојила). Све такмичарске утакмице после 2010. године играо је Курасао, који се састоји само од острвске државе. У оквиру новоформираног управног тела, Курасао се до сада такмичио само у квалификацијама за Светско првенство 2014, 2018. и 2022. године, квалификацијама за Куп Кариба 2012, Карипским куповима 2014. и 2017, Златним купом КОНКАКАФ 2017. и АБКС турниром.
Конкакафов златни куп
Куп Кариба
Референце
Спољашње везе
Информације на ФИФА
Курасао званична страница
Курасао
Репрезентација | 35,390 |
https://stackoverflow.com/questions/40427914 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | English | Spoken | 332 | 766 | How do I get the geo location for a browser not server website is on
OK, I have this script and it works but:
<?php
SESSION_START();
// access_token received from /oauth2/token call
// Assign it the properties of id (optional - id of target HTML element, from URL)
// and 'message' - the feedback message we want the user to see.
if (isset($_GET['wxurl'])) {
$wxURL = $_GET['wxurl'];
}
if ($wxURL === "autoip") {
//Get the IP of the location
$uri = curl_init("http://api.wunderground.com/api/<APIKEY>/geolookup/q/autoip.json");
} else if ($wxURL === "wxcity") {
if (isset($_GET['city']) && isset($_GET['state'])) {
$wxCity = $_GET['city'];
$wxState = $_GET['state'];
}
//Get the locations weather data
$uri = curl_init("http://api.wunderground.com/api/<APIKEY>/conditions/q/" . $wxState . "/" . $wxCity . ".json");
} else if ($wxURL === "freeJSON") {
//This gets the ACTUAL USERS location NOT that of the server **<--- WELL it's SUPPOSED to get the LOCATION of the user NOT the server**
$uri = curl_init("http://freegeoip.net/json/");
}
$ch = $uri; // URL of the call
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer $access_token"));
// execute the api call
$result = curl_exec($ch);
echo $result;
PS - I blocked my API key with weather underground because i'll get enormous hits. It's FREE so fill in your own key.
My problem: When I poll use my LOCALHOST, I get weather for my own CITY, but, when use the site on the server, it PULLS the data from the SERVER's LOCATION... So if I'm here on the west coast, the server is in Temple, PA.
How can I get the locale data for a customer when the code pulls the server data???
UPDATE: I found this: http://diveintohtml5.info/geolocation.html but what I get is: UNABLE TO GET YOUR LOCATION. That's because I have GEO LOC turned off in my browser but when I use the http://freegeoip.net/json this is what I get:
{
ip: "11.22.333.444",
country_code: "US",
country_name: "United States",
region_code: "WA",
region_name: "Washington",
city: "MT Vernon",
zip_code: "98273",
time_zone: "America/Los_Angeles",
latitude: 47.5614,
longitude: -123.7705,
metro_code: 985
}
So, Geolocation.js baffles me...
Thoughts?
| 16,850 | |
https://stackoverflow.com/questions/72940939 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Swedish | Spoken | 205 | 780 | Python error when adding a add_child in folium
I have the following script. However, I'm getting an error that points are the data I'm passing to the location parameter. When printing this, I'm getting what location generally receives.
Here is an example of the txt info: VOLCANX020,NUMBER,NAME,LOCATION,STATUS,ELEV,TYPE,TIMEFRAME,LAT,LON
509.000000000000000,1201-01=,Baker,US-Washington,Historical,3285.000000000000000,Stratovolcanoes,D3,48.7767982,-121.8109970
import folium
import pandas as pd
map = folium.Map(location=[38.58, -99.09], zoom_start=4, tiles = "Stamen Terrain")
# Reads the data
df_volcanos = pd.read_csv('Volcanoes.txt')
fg_volcanoes=folium.FeatureGroup(name="Volcanos Map")
fg_population=folium.FeatureGroup(name='Populations')
for index, data in df_volcanos.head(1).iterrows():
fg_volcanoes.add_child(folium.CircleMarker(location=data[['LAT','LON']].values,
radius=6,
popup=f"{data['ELEV']} mts",
fill_color='green' if data['ELEV'] < 1000 else 'orange' if data['ELEV'] < 3000 else 'red',
color="grey",
fill_opacity=1))
map.add_child(folium.LayerControl())
map.save('Map2.html')
My modification is to make the circle marker itself belong to a group and add that group to the map. Also, in the sequential processing of the data frame, I did not use indexes to specify rows, so I used .loc to limit the rows. At the same time, I also modified the row specification in the popup.
import folium
m = folium.Map(location=[38.58, -99.09], zoom_start=4, tiles="Stamen Terrain")
fg_volcanoes=folium.FeatureGroup(name="Volcanos Map")
fg_population=folium.FeatureGroup(name='Populations')
for index, data in df_volcanos.head(1).iterrows():
color = 'green' if df_volcanos.loc[index,'ELEV'] < 1000 else 'orange' if df_volcanos.loc[index, 'ELEV'] > 3000 else 'red'
#fg_volcanoes.add_child(
folium.CircleMarker(
location=df_volcanos[['LAT','LON']].values[0].tolist(),
radius=6,
popup=f"{df_volcanos.loc[index,'ELEV']} mts",
fill_color=color,
color="grey",
fill_opacity=1
).add_to(fg_volcanoes)
#)
fg_volcanoes.add_to(m)
m.add_child(folium.LayerControl())
#m.save('Map2.html')
m
| 31,381 | |
https://war.wikipedia.org/wiki/Pleurothallis%20paquishae | Wikipedia | Open Web | CC-By-SA | 2,023 | Pleurothallis paquishae | https://war.wikipedia.org/w/index.php?title=Pleurothallis paquishae&action=history | Waray | Spoken | 35 | 71 | An Pleurothallis paquishae in uska species han Liliopsida nga ginhulagway ni Carlyle August Luer. An Pleurothallis paquishae in nahilalakip ha genus nga Pleurothallis, ngan familia nga Orchidaceae. Waray hini subspecies nga nakalista.
Mga kasarigan
Pleurothallis | 15,280 |
https://war.wikipedia.org/wiki/Pleurothallis%20gomezii | Wikipedia | Open Web | CC-By-SA | 2,023 | Pleurothallis gomezii | https://war.wikipedia.org/w/index.php?title=Pleurothallis gomezii&action=history | Waray | Spoken | 38 | 76 | An Pleurothallis gomezii in uska species han Liliopsida nga ginhulagway ni Carlyle August Luer ngan Rodrigo Escobar. An Pleurothallis gomezii in nahilalakip ha genus nga Pleurothallis, ngan familia nga Orchidaceae. Waray hini subspecies nga nakalista.
Mga kasarigan
Pleurothallis | 15,622 |
https://uk.wikipedia.org/wiki/%D0%93%D1%83%D0%BC%D0%B5%D0%BD%D0%BD%D0%B5%20%28%D0%BE%D0%BA%D1%80%D1%83%D0%B3%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Гуменне (округ) | https://uk.wikipedia.org/w/index.php?title=Гуменне (округ)&action=history | Ukrainian | Spoken | 469 | 1,814 | Округ Гуменне () — округ () (район) Пряшівського краю в північно-східній частині Словаччини з адміністративним центром у місті Гуменне. На півночі межує з Меджилабірським округом, на північному сході з Польщею, на сході з Снинським округом, на півдні з Михалівським округом Кошицького краю, на заході з Врановським округом, на північному заході із Стропковським округом.
Населені пункти
На території Гуменського округу знаходиться 62 населених пунктів, в тому числі 1 місто: Гуменне та 1 військовий округ- Валашковці, села: Адідовце (Адидівці, Адидовце, Адидовце), Башковце, Бреков, Брестов, Чернина (Черніна), Дедачов (Дедачів), Ґрузовце (Грузовце), Ганковце, Гажин-над-Цірохоу (Гажин-над-Цирохою), Грабовець-над-Лабірцем (Грабовець-над-Лаборцом), Грубов, Гудцовце, Хлмець (Хлмец), Яблонь, Янковце, Ясенов, Камениця-над-Цірохоу (Камениця-над-Цирохою), Камєнка (Камьєнка), Карна, Кохановце, Кошаровце, Кошковце, Лацковце, Лєсковець (Льєсковець, Лєсковец), Любиша (Любіша), Лукачовце, Машківці, Модра-над-Цірохоу (Модра-над-Цирохою), Мислина (Мисліна), Нехваль-Полянка, Нижня Яблінка, Нижня Ситниця (Нижня Сітніця, Нижня Сітніца), Нижні Ладичковці (Ніжне Ладічковце), Оградзани, Пакостов (Пакостів), Папин, Порубка, Притуляни, Птичє (Птич'є, Птичьє), Рогожник (Рогожнік), Гуменський Рокитів (Рокитів коло Гуменного), Ровне, Руська Кайня, Руська Поруба, Словацька Волова (Словенска Волова), Словацьке Криве (Словенске Кріве), Сопковце (Сопківці), Топольовка, Турцовце (Турцівці), Удавське (Удавске), Вельополє (Вельопольє), Вітязовце (Витязовце, Витязівці), Вишня Яблінка, Вишня Ситниця (Вишня Сітніця, Вишня Сітніца), Вишні Ладичковці (Вишне Ладічковце), Вишній Грушов (Вишній Грушів, Вишни Грушов), Завада, Завадка, Збудське Длге (Збудське Довге, Збудске Длге), Зубне.
Українсько-русинська громада
Частина сільського населення цього округу, передусім із сіл Вишня Яблінка, Нижня Яблінка, Нехваль-Полянка, Зубне, Гуменський Рокитів, Машківці, Завада, Руська Поруба, Притуляни, Рогожник, Руська Кайня, а також нащадки переселенців із зниклого села Валашківці є україно-русинського походження, за віпосповідуванням греко-католики, або православні. Етнічно—мовний кордон Лемківщини до сих пір більш—менш стійкий, проходить двома лініями у північній частині округу. У північно—східному куті це лінія Зубне — Нехваль-Полянка — Нижня Яблінка — Рокитів із словацьким острівцем у Папині. Трохи південніше розташовані Машківці оточені словацьким або словакізованим середовищем. У північно—західному куті це лінія Руська Кайня — Руська Поруба — Притуляни — Рогожник.
Релігійний кордон трохи складніший, до вище наведених ліній біля села Руська Кайня прилягає Пакостов. У його частині Петрівці (), колись самостійному селі, у 1773—1902 з назвою Руські Петрівці () є греко-католицька церква. В іншій частині села, власне Пакостові, є ще римо-католицький костел. У селі Адідовце один храм використовують римо-католицька й греко-католицька громади. В інших селах Сопківці та Дедачів є лише греко—католицькі церкви. Сопківці є оточені селами з римо-католицькими костелами, дедачівський кадастр прилягає через гору до машківського. Село Топольовка має крім римо-католицького костела також греко-католицьку церкву, її збудували переселенці з Польщі.
Деякі карти до Лемківщини зараховують і села Папин та Брестов, однак без дослідження міграційних рухів та даних переписів населення або метрик таке твердження є однобоким та передчасним. У минулому, хоч на перехідний час, також інші села могли мати змішаний склад за релігійною, національною, мовною ознаками, як наприклад .
Статистичні дані (2001)
Національний склад:
Словаки 91,3 %
Українці/Русини 5,0 %
Роми 2,1 %
Чехи 0,5 %
Конфесійний склад::
Католики 70,5 %
Греко-католики 17,5 %
Православні 3,7 %
Лютерани 0,6 %
Примітки | 42,048 |
https://stackoverflow.com/questions/44479306 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | Brandon, Scott Marcus, https://stackoverflow.com/users/3384928, https://stackoverflow.com/users/5338581, https://stackoverflow.com/users/695364, user3384928 | English | Spoken | 525 | 855 | javascript executes only on page refresh - Squarespace site, NO Turbolinks involved
There are similar question titles on this site and I have read all of their solutions, but the problem was always related to Turbolinks or something additional. In this case, I'm using javascript/jQuery only, so those solutions are irrelevant.
I have written a simple script which finds the tallest container and then adjusts the rest of the containers in the block to be the same height as the tallest one. I applied this script to the Squarespace summary block so that all of the summary items in the same block are the same height.
I then added a conditional statement that would cause this functionality to be executed only at screen width of above 810px.
The outcome is that this script works exactly as it should but only when I get to the page directly or refresh the page. It does NOT work if I navigate to the page from another page.
$(function() {
if($(window).width() > 810){
var maxheight=-1;
$('#block-yui_3_17_2_25_1494432854570_9795 .summary-excerpt').each(function() {
if(maxheight < $(this).height())
{
maxheight = $(this).height();
}
});
$('#block-yui_3_17_2_25_1494432854570_9795 .summary-excerpt').each(function() {
$(this).height(maxheight);
});
}
});
Would really appreciate any ideas as I have looked into every question that was similar to mine and none of the solutions worked for me.
NOTE: I do not get an error. I placed an alert() right before the if statement and that confirmed that the function does not run when you navigate to the page from another page. I do, however, get an alert when I refresh the page, as expected.
I think you need to define "does not work". Do you get an error? Have you tried placing a console.log() statement just before the if statement to see if, in fact, the function is being called?
I do not get an error. I placed an alert() right before the if statement and that confirmed that the function does not run when you navigate to the page from another page. I do, of course, get an alert when I refresh the page.
In Squarespace, when your custom Javascript only works after a page refresh, it most likely has to do with Squarespace's AJAX loading:
Occasionally, Ajax may conflict with embedded custom code or anchor
links. Ajax can also interfere with site analytics, logging hits on
the first page only.
You may be able to disable AJAX for your template. Or, see the other approaches outlined here: JavaScript only being called once in Squarespace
Thanks so much Brandon, but I still haven't solved the problem. I tried using both window.Template.Constants.AJAXLOADER = false; and window.onload = function() {
this.AjaxLoader.prototype.initializeSqsBlocks = function () {
window.SQS.Lifecycle.init();
console.log( "Foo!" );
window.CUSTOM.YourCustomInitFunction();
}
}; in the Header code injection, but it had no effect. =(
Did you try first disabling AJAX altogether to verify that it is the problem? And did you also try this:
// do stuff
});``` as suggested in the answer linked to?
I finally found the option to disable AJAX loading in the style editor (it does not appear under "site:loading" like the instructions say) and now everything is working as it should. thanks so much.
| 4,710 |
https://ceb.wikipedia.org/wiki/Kramer-Berg | Wikipedia | Open Web | CC-By-SA | 2,023 | Kramer-Berg | https://ceb.wikipedia.org/w/index.php?title=Kramer-Berg&action=history | Cebuano | Spoken | 31 | 85 | Ang Kramer-Berg ngalan niining mga mosunod:
Alemanya
Krämer-Berg, bungtod, Lower Saxony,
Kramer-Berg (bungtod sa Alemanya, Thuringia),
Kramer-Berg (bungtod sa Alemanya, Saarland),
Pagklaro paghimo ni bot 2016-01
Pagklaro paghimo ni bot Alemanya | 46,820 |
https://simple.wikipedia.org/wiki/Jeff%20Saibene | Wikipedia | Open Web | CC-By-SA | 2,023 | Jeff Saibene | https://simple.wikipedia.org/w/index.php?title=Jeff Saibene&action=history | Simple English | Spoken | 236 | 387 | Jeff Saibene (born 13 September 1968) is a Luxembourgian former professional footballer.
Personal life
Saibene is a citizen of both Luxembourg and Switzerland and married with a Swiss wife. He is a fan of Hamburger SV.
Coaching career
Saibene was the manager of FC Aarau, in Switzerland and assistant to Allan Simonsen at the national team. He was formerly the assistant manager to Ryszard Komornicki at Aarau but was promoted in June 2009 when Komornicki left the club. He then managed Luxembourg U-21. He left his position in March 2011 to coach FC St. Gallen.
On 19 March 2017, he was hired as the new head coach of Arminia Bielefeld. He was sacked on 10 December 2018.
He was hired as the new head coach of FC Ingolstadt for the 2019–20 season. He was sacked on 9 March 2020.
On 2 October 2020, he was hired as head coach of 1. FC Kaiserslautern. He was sacked on 30 January 2021.
In June 2021, he was hired as head coach of Racing FC Union Luxembourg.
Honours
As player
Union Luxembourg
Luxembourg Cup: 1985–86
FC Aarau
Swiss National League A: 1992–93
As manager
St. Gallen
Swiss Challenge League: 2011–12
Racing Union
Luxembourg Cup: 2021–22
References
Other websites
Player profile – Standard Liège
1968 births
Living people
Luxembourgian footballers
Arminia Bielefeld managers
Association football midfielders
FC Aarau managers
FC Thun managers
FC St. Gallen managers
1. FC Kaiserslautern managers | 42,573 |
https://math.stackexchange.com/questions/4485034 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Community, Djamel Djamel, Gottfried Helms, John Omielan, Mike, Varun Vejalla, Will Jagy, https://math.stackexchange.com/users/-1, https://math.stackexchange.com/users/10400, https://math.stackexchange.com/users/1714, https://math.stackexchange.com/users/544150, https://math.stackexchange.com/users/595055, https://math.stackexchange.com/users/602049, https://math.stackexchange.com/users/807379 | English | Spoken | 599 | 1,375 | Solve the Diophantine equation $ (3^{n}-1)(3^{m}-1)=x^{r} $
Is there a solution other than solution
\begin{equation*}
(3^{2}-1)(3^{2}-1)=2^{6}=4^{3}
\end{equation*}
of the Diophantine equation
\begin{equation*}
(3^{n}-1)(3^{m}-1)=x^{r}
\end{equation*}
for positive integers $ n, m, x, r $ such as $ n, m, x \geq 2 $ and $ r \geq 3 $ ?
Looks interesting from here...where did this problem come from?
the diophantine equation
\begin{equation*}
(a^{n}-1)(b^{m}-1)=x^{r}
\end{equation*} and Catalan's conjecture
@DjamelDjamel Note that for any $n = m$, with $m \ge 2$, we have a solution of $x = 3^m - 1$ and $r = 2$, with this matching all of your conditions (as your solution shows for the case of $n = m = 2$). I assume you're looking for other solutions where $m \ne m$.
Yes, that's what I wanted
@DjamelDjamel I suggest you make that clear in your question text.
What have you tried?
I'd bet against any nontrivial, from Zsigmondy's theorem.
these ought to be relatively rare, by Zsigmondy. However, in that theorem, we are not told the exponent on the new prime. So, for example, $3^5 - 1 = 2 \cdot 11^2.$ The new prime, $11,$ is squared, and we find
$$ (3^2 - 1)(3^5 - 1) = 44^2 $$
Usually, a new prime is has exponent $1.$
Made a list, my program was able to completely factor and show the new prime(s) until $n$ became a prime over 35... I could do those in gp-pari
Sat Jul 2 17:56:42 PDT 2022
1 2 = 2
2 4 = 2^2
3 13 = 13
4 5 = 5
5 121 = 11^2
6 7 = 7
7 1093 = 1093
8 41 = 41
9 757 = 757
10 61 = 61
11 88573 = 23 3851
12 73 = 73
13 797161 = 797161
14 547 = 547
15 4561 = 4561
16 3281 = 17 193
17 64570081 = 1871 34511
18 703 = 19 37
19 581130733 = 1597 363889
20 1181 = 1181
21 368089 = 368089
22 44287 = 67 661
23 47071589413 = 47 1001523179
24 6481 = 6481
25 3501192601 = 8951 391151
26 398581 = 398581
27 387440173 = 109 433 8209
28 478297 = 29 16493
29 34315188682441 = 59 28537 20381027
30 8401 = 31 271
31 308836698141973 = 683 102673 4404047
32 21523361 = 21523361
33 2413941289 = 2413941289
34 32285041 = 103 307 1021
35 189150889201 = 71 2664097031
36 530713 = 530713
37 225141952945498681 = cdot mbox{BIG} = 13097927 17189128703
38 290565367 = 2851 101917
39 15040635637 = 313 6553 7333
40 42521761 = 42521761
41 18236498188585393201 = 83 cdot mbox{BIG} = 83 2526913 86950696619
42 97567 = 43 2269
43 164128483697268538813 = 431 cdot mbox{BIG} = 431 380808546861411923
44 3138105961 = 5501 570461
45 271983020401 = 181 1621 927001
We have also, that $1006003^2 \mid 3^{1006002}-1$. So one could try your idea with this number as well. Unfortunately there are manymanymany digits in the game ... :-) (I've tried factoring this at the "alpertron factoring" site https://www.alpertron.com.ar/ECM.HTM, but well ...)
Let $ d= \gcd(3^{n}-1; 3^{m}-1) $, so $ d = 3^{\gcd(n;m)}-1 $
solve the diophantine equation
\begin{equation}
(3^{n}-1)(3^{m}-1)=x^{2}
\end{equation}
equivalent solving the system a of two Diophantine equations as follows:
\begin{equation}
3^{n}-1=d \: \alpha^{2} \\
3^{m}-1= d \: \beta^{2}
\end{equation}
with $ \gcd(\alpha; \beta)= 1 $ and $ x= d \alpha \beta $.
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
| 44,647 |
https://azb.wikipedia.org/wiki/%DA%A9%D8%A6%DB%8C%D9%85%D9%84%D9%88%D9%88%D8%8C%20%D8%B1%D9%88%D8%B3%DB%8C%D9%87 | Wikipedia | Open Web | CC-By-SA | 2,023 | کئیملوو، روسیه | https://azb.wikipedia.org/w/index.php?title=کئیملوو، روسیه&action=history | South Azerbaijani | Spoken | 28 | 130 | کئیملوو، روسیه ( ) روسیه اؤلکهسینده یئر آلان بیر کند دیر و باشقیردیستاندا یئرلشیب. بۇ جومهوریتده باشقورت تورکلری ياشايير و دينی اينانجلارينا گؤره سونّو مۆسلماندیرلار.
قایناقلار
باشقیردیستان کندلری | 37,208 |
https://stackoverflow.com/questions/60911590 | StackExchange | Open Web | CC-By-SA | 2,020 | Stack Exchange | Iain Shelvington, Seaver Choy, https://stackoverflow.com/users/3996832, https://stackoverflow.com/users/548562 | English | Spoken | 381 | 809 | Multhreading with updates to MySQL
I need to evaluate around 80k rows of data every day at 11am, and I hope to accomplish it within a few minutes.
I used multithreading that uses select_for_update() of Django that gets one row at a time, updates it, and then gets a new row.
The problem is, there is an issue where the counter increases too fast having the assumption that there are times where the row gets evaluated twice.
Here is my current code block:
while True:
with transaction.atomic():
user_history = UserHistory.objects.select_for_update().filter(is_finished=False).first()
if user_history:
user = UserProfile.objects.filter(id=user_history.user_profile_id).first()
card_today = CardToday.objects.filter(id=user_history.card_today_id).first()
rewarded_value = 0
if user_history is item1:
if card_today.item1 > card_today.item2:
rewarded_value = card_today.item2/card_today.item1 + 1
elif user_history is item2:
if card_today.item2 > card_today.item1:
rewarded_value = card_today.item1/card_today.item2 + 1
user.coins += float(user.coins) + rewarded_value # the value increases too high here
user.save()
user_history.save()
else
break
This is the model for Card Today:
class CardToday(models.Model):
item1 = models.IntegerField(default=0)
item2 = models.IntegerField(default=0)
This is the model for User History:
class UserHistory(models.Model):
card_today = models.ForeignKey(CardToday, on_delete=models.CASCADE)
answer_item = models.ForeignKey(Item, on_delete=models.CASCADE)
is_finished = models.BooleanField(default=False) // checks whether the card has already been evaluated.
rewarded value's computation is as follows:
rewarded_value = majority/minority + 1
majority and minority switches depending on which item has a greater value.
Each user_history can only choose between item1 or item2.
After a certain amount of time has passed, the code will evaluate which item has been picked on a CardToday.
Is there a better way of accomplishing this?
The framework I'm using is Django, and I have a cron job running from the library django-cron.
What does doSomething do? If the output is possible to get as the result of a DB query you may be able to do the update in one query
@IainShelvington, I'll look into your idea, but updating the user table and updating the user_history table has to still be done separately right?
Yes, they have to be updated separately but it's possible that you only need 2 DB calls. Can you share what doSomething is doing?
@IainShelvington, I added the edit.
Can you share your models and the card_today_query_<x> and item<x> variables? It may be easier if you explain exactly what the purpose of this update is
@IainShelvington, Hi, I modified the post with your requested changes.
| 26,949 |
https://stackoverflow.com/questions/58475402 | StackExchange | Open Web | CC-By-SA | 2,019 | Stack Exchange | alekq, https://stackoverflow.com/users/11493867, https://stackoverflow.com/users/4581301, user4581301 | English | Spoken | 173 | 376 | c++ array of pointer to string and append() method
I want to have array of pointers to strings.
std::string *part [n];
I also have object witch has method that return string,
let's name it:
object1.getText();
when I want to get part of the string to array's element it's not a problem:
std::string h = object1.getText().substr(0,5)
array[0] = &h;
but how can I append some text to existing element?
something I've tried:
std::string hh = object1.getText().substr(6)
array[0].append(&hh);
didn't work.
Future bug: array[0] = &object1.getText().substr(0,5); the string returned by substr does not last long enough for a pointer to it to be meaningful.
std::string::append has no overload that accepts a pointer to a string. array[0].append(...) should be array[0]->append(...) because array [0] is a pointer. I recommend going over the section on pointer syntax in your text book again and working through some of the examples.
okey, my fault it's clear now, thank @user4581301
thank to @user4581301 , the solution is
std::string *part [n];
std::string h = object1.getText().substr(0,5)
array[0] = &h;
std::string hh = object1.getText().substr(6);
array[0]->append(hh);
| 26,356 |
https://ceb.wikipedia.org/wiki/Murrhardt | Wikipedia | Open Web | CC-By-SA | 2,023 | Murrhardt | https://ceb.wikipedia.org/w/index.php?title=Murrhardt&action=history | Cebuano | Spoken | 29 | 80 | Ang Murrhardt ngalan niining mga mosunod:
Alemanya
Murrhardt (lungsod), Baden-Württemberg Region, Regierungsbezirk Stuttgart,
Murrhardt (munisipyo), Baden-Württemberg Region, Regierungsbezirk Stuttgart,
Pagklaro paghimo ni bot 2016-01
Pagklaro paghimo ni bot Alemanya | 20,864 |
https://stackoverflow.com/questions/40441338 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Reeza, gdogg371, https://stackoverflow.com/users/1919583, https://stackoverflow.com/users/3045351 | English | Spoken | 158 | 224 | None SPD Cluster Tables in SAS 9?
I am trying to build a cluster table but have just discovered/realised that Proc SPDO is not present in Base SAS version 9 as so:
proc SPDO library = clusters;
cluster create mycluster
mem = member1;
mem = member2;
mem = member3;
...
quit;
Is there a way to build a cluster object using base libraries and tables in this version of SAS?
Thanks
Proc SPDO falls under the SAS Scalable Performance Server license. Do you have this specific product?
Hi there. No sadly not. I only have Base SAS version 9.0...
I'm going to assume you don't actually have 9.0 but 9.04? At any rate then you don't have access to the proc. what are you trying to accomplish? Perhaps theirs a workaround.
basically trying to build large tables of 100 million plus rows just using base sas 9 and no server and have reasonable response times when querying it.
| 44,528 |
https://nl.wikipedia.org/wiki/Langsprietpopulierensnuitkever | Wikipedia | Open Web | CC-By-SA | 2,023 | Langsprietpopulierensnuitkever | https://nl.wikipedia.org/w/index.php?title=Langsprietpopulierensnuitkever&action=history | Dutch | Spoken | 189 | 374 | De langsprietpopulierensnuitkever (Dorytomus longimanus) is een snuitkever uit de familie snuitkevers (Curculioninae). Waardplanten zijn de witte abeel (Populus alba), Populus x canadensis en de zwarte populier (Populus nigra).
Kenmerken
De kevers zijn 4,7 tot 7,5 millimeter lang. Ze zijn lichtbruin tot zwart van kleur en hebben dekschilden fijn gevlekt met zwart en een pronotum dat erg dicht en fijn gestippeld is. Beide lichaamsdelen zijn licht geschubd, zodat je de basiskleuring eronder nog kunt zien. De antennes, die een zeer dunne schacht hebben, en ook de poten zijn roestbruin gekleurd.
Hun slurf, die iets langer is dan hun hoofd en pronotum, is dun en naar beneden gebogen. Het middelste deel van de prothorax is fijn behaard. De mannetjes hebben, in tegenstelling tot de vrouwtjes, langere dijbenen op de voorpoten, die ook langer zijn in verhouding tot de andere dijen, waardoor de voorpoten het langste paar poten zijn. Hier dankt de soort ook zijn naam aan. Op de femora is ook een kleine, uitstekende tand te zien.
Levenswijze
De larven boren in de mannelijke katjes, die daardoor misvormd raken en voortijdig afvallen. De larve verpopt zich daarna in de grond.
Snuitkevers | 27,199 |
https://math.stackexchange.com/questions/685726 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Eric Stucky, https://math.stackexchange.com/users/122358, https://math.stackexchange.com/users/31888, user122358 | English | Spoken | 336 | 573 | Relationship between directional derivative and gradient in x, y and z
Can anybody explain the relationship between directional derivative and gradient?
What can I use the results of directional derivative and gradient for ?
If $f$ is differentiable at $x$, then the derivative in the direction $v$ (i.e. $v$ is a unit vector) is $\nabla f(x)v$.
Are you trying to explain directional derivative or gradient? I am sorry, if I am asking you without understanding your answer
The comment I gave above is a (partial) definition of the directional derivative, given the gradient. This was always the more useful version for me, since when you have an analytic form for a function, the partial derivatives are relatively easy to find, but the directional derivatives are quite difficult.
I think you are answering my question considering I understand partial derivative well. I am trying to understand why we need directional derivative and gradient. Can you further explain about my question? Thanks in advance.
I cannot. (That is why I only gave you a comment and not a full answer)
The directional derivative is defined as
$$f'(x;v)=\lim_{t>0,\,t\to 0} \frac{f(x+tv)-f(x)}{t}.$$
It can exist even if the function $f$ is not differentiable. If the directional derivative is actually linear in the direction $v$, $f'(x;v)=Av$, one can assign this linear function $A$ as the total derivative. However, $f$ is only (Frechet) differentiable in $x$ if
$$f(x+v)=f(x)+Av+o(\|v\|)$$
that is, if the approximation by the linearization is uniformly good over all directions. Then $A$ is also written as $f'(x)$ or $Df_x$ or similar.
Now where does the gradient enter? Of course with a scalar product. The derivative $f'(x)$ of a scalar function, i.e., its Jacobian, is covector, linear functional, or in cartesian space, a row vector. The gradient $∇f(x)$ is the vector (in cartesian space column vector) associated to that row vector via
$$\langle \nabla f(x),v\rangle=f'(x)v.$$
In the standard euclidean setting in cartesian space, this relation is simple transposition, $$\nabla f(x)=f'(x)^T,$$ in curved space with non-trivial metric tensors, the relation is more complicated.
| 34,967 |
https://ru.wikipedia.org/wiki/%D0%A1%D0%B5%D0%BB%D1%8C%D1%81%D0%BA%D0%BE%D0%B5%20%D0%BF%D0%BE%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%A8%D0%B5%D0%BB%D0%BE%D1%82%D1%81%D0%BA%D0%BE%D0%B5 | Wikipedia | Open Web | CC-By-SA | 2,023 | Сельское поселение Шелотское | https://ru.wikipedia.org/w/index.php?title=Сельское поселение Шелотское&action=history | Russian | Spoken | 383 | 1,069 | Сельское поселение Шелотское — сельское поселение в составе Верховажского района Вологодской области.
Центр — село Шелота.
По данным переписи 2010 года население — 466 человек.
География
Расположено на юго-западе района, в 60 км от районного центра. Граничит:
на севере с Липецким сельским поселением,
на юге и западе с Тотемским, Сямженским и Вожегодским районами.
История
Во второй половине XVII века Шелотский стан входил в состав Верховажской четверти.
В первой половине XIX века в Шелотскую волость Вельского уезда входили Двиницкое, Доровское, Жаровское, Жиховское, Липецкое, Шелотское сельские общества.
В 1918 году из Шелотской волости была выделена Двиницкая волость, в 1919 году — Жаровская.
В феврале 1924 года Шелотская волость вошла в Чушевице-Покровскую волость.
В июнь 1929 года в составе Няндомского округа Северного края был образован Верховажский район, в который вошли 23 сельсовета, в том числе Шелотский.
18 июля 1954 года в состав Шелотского сельсовета вошёл Доровский сельсовет, 26 мая 1960 года — Липецкий. 1 января 1991 года Липецкий сельсовет был восстановлен.
1 января 2006 года в соответствии с Федеральным законом № 131 «Об общих принципах организации местного самоуправления в Российской Федерации» Шелотский сельсовет преобразован в сельское поселение.
Экономика
На территории Шелотского сельского поселения работают Липецкое лесничество, отделение связи, пилорамы, крестьянские хозяйства, магазины.
Действуют Шелотская основная общеобразовательная школа, детский сад, культурно-досуговый центр, библиотека, Дом Ремёсел, фельдшерско-акушерский пункт, филиалы Дома детского творчества и детской спортивной школы.
Известные жители
На территории Шелотского сельсовета родились Герои Советского Союза Николай Евгеньевич Петухов и Павел Фёдорович Гущин. Деревня Макаровская — родина писателя Владимира Фёдоровича Тендрякова.
Достопримечательности
При Екатерине II в деревне Макаровская было начато строительство церкви. Она была освящена в 1798 году и получила название Троицкая. в 1937 году церковь была закрыта. Здание церкви сначала использовалось под склад, потом было частично разобрано. в 1990-е годы церковь начали реставрировать, в 1989 был восстановлен нижний этаж, в 2000 году — купола.
Главный праздник Шелоты — Троица. В рамках «Троицких гуляний» в 2008 году был открыт обновленный памятный знак В. Ф. Тендрякову. В 2009 году был установлен Поклонный крест церковносвященнослужителям Троицкой церкви.
Населённые пункты
В 1999 году был утверждён список населённых пунктов Вологодской области. С тех пор состав Шелотского сельсовета не изменялся.
В состав сельского поселения входят 23 населённых пункта, в том числе
22 деревни,
1 село.
Примечания
Ссылки
Шелотское сельское поселение на сайте администрации Верховажского района
Муниципальные образования Верховажского района
Сельские поселения Вологодской области | 40,338 |
https://stackoverflow.com/questions/66035618 | StackExchange | Open Web | CC-By-SA | 2,021 | Stack Exchange | English | Spoken | 165 | 434 | Is stateless usage of Camunda dmnEngine thread-safe?
I have a use case where I use Camunda (7.12) for a stateless DMN evaluation. So it's just a big DMN table used for mapping values. The application is written in Spring Boot in Kotlin and is exposed as a REST service.
The code looks like this:
companion object {
private const val DMN_NAME = "mappingRules.dmn"
private const val DECISION_NAME = "mappingRules"
}
val dmnEngine: DmnEngine
val dmnTableStream: InputStream
val dmnDecision: DmnDecision
init {
dmnEngine = DmnEngineConfiguration.createDefaultDmnEngineConfiguration().buildEngine()
dmnTableStream = MyMappingService::class.java.classLoader.getResourceAsStream(DMN_NAME)
dmnDecision = dmnEngine.parseDecision(DECISION_NAME, dmnTableStream)
}
fun mapValue(source: String) {
val decisionResult: DmnDecisionTableResult = dmnEngine
.evaluateDecisionTable(dmnDecision, Variables.createVariables()
.putValue("source", source)
)
return decisionResult.firstResult.getValue("target") as String
}
mapValue and then dmnEngine.evaluateDecisionTable may be executed by multiple threads concurrently, is this Camunda method thread-safe? I could not find the information in the official documentation about a usage of stateless DMN evaluation and thread safety.
According to an answer in the Camunda forums, both DmnEngine and DmnDecision are supposed to be thread-safe: https://forum.camunda.org/t/re-use-caching-of-dmn-objects-in-multi-threaded-application/1576/2
| 50,092 | |
https://ru.wikipedia.org/wiki/%D0%A3%D1%82%D0%B0%D0%B5%D0%B2%D0%BE | Wikipedia | Open Web | CC-By-SA | 2,023 | Утаево | https://ru.wikipedia.org/w/index.php?title=Утаево&action=history | Russian | Spoken | 105 | 320 | Утаево — деревня в Новосокольническом районе Псковской области России. Входит в состав Насвинской волости. Численность населения деревни по оценке на начало 2001 года составляла 50 жителей.
География
Расположена в юго-восточной части региона, в 33 км к северу от города Новосокольники и в 3 км к юго-западу от волостного центра, деревни Насва.
Климат
Климат умеренно-континентальный, в целом благоприятный для проживания населения и ведения сельскохозяйственного производства.
Население
Национальный состав
Согласно результатам переписи 2002 года, в национальной структуре населения русские составляли 98 % из 51 чел.
Инфраструктура
Личное подсобное хозяйство.
Транспорт
Просёлочные дороги с выездом на автодорогу 58К-251 Новосокольники — Фетинино — Насва.
Примечания
Населённые пункты Новосокольнического района | 49,438 |
https://es.wikipedia.org/wiki/Drag%20Race%20Holland | Wikipedia | Open Web | CC-By-SA | 2,023 | Drag Race Holland | https://es.wikipedia.org/w/index.php?title=Drag Race Holland&action=history | Spanish | Spoken | 468 | 846 | Drag Race Holland es un programa de telerrealidad neerlandés sobre drag queens basada en la serie estadounidense RuPaul's Drag Race. La serie se estrenó el 18 de septiembre de 2020 en Videoland. Envy Peru fue quien obtuvo el título de la primera súper estrella drag neerlandesa, mientras que Janey Jacké fue subcampeona.
Producción
El programa fue producido por Vincent TV y World of Wonder. El programa se emitió en la plataforma neerlandesa Videoland, un servicio de transmisión en línea propiedad de RTL, y en el resto del mundo en la plataforma WOW Presents Plus.
Es la quinta versión internacional de la franquicia Drag Race que se estrena, después de Drag Race Thailand (Tailandia), RuPaul's Drag Race UK (Reino Unido), The Switch Drag Race (Chile) y Canada's Drag Race (Canadá).
Jueces
El conductor y juez principal del programa es el presentador y estilista Fred van Leer. La diseñadora de moda Nikkie Plessen le acompaña como juez permanente, y la cantante Roxeanne Hazes, el diseñador de moda Claes Iversen, la humorista Sanne Wallis de Vries y el actor Rick Paul van Mulligen serán jueces rotatorios. Cada semana, el panel de jueces se completa con un juez invitado, entre otros, la maquilladora y vlogger NikkieTutorials, la modelo Loiza Lamers, la cantante Ryanne van Dorst, la drag queen Amber Vineyard, la personalidad de televisión Carlo Boszhard, la cantante Ruth Jacott, o la cantante Edsilia Rombley.
Primera temporada
Concursantes
Las drag queens que compitieron en la temporada 1 de Drag Race Holland son:
(La edad y nombre de los participantes registrados al momento de la filmación)
Tabla de eliminaciones
La concursanta gana RuPaul's Drag Race.
La concursante es finalista.
La concursante es eliminada en la final.
La concursante gana el reto.
La concursante recibe críticas positivas y estuvo a salvo.
La concursante no recibe críticas y estuvo a salvo.
La concursante recibe críticas negativas pero fue salvada finalmente.
La concursante es nominada para eliminación.
La concursante es eliminada.
La concursante fue votada por sus compañeras el título de Miss Simpatía fuera del programa.
Lip-syncs
La concursante fue eliminada después de su primer lipsync.
La concursante fue eliminada después de su segundo lipsync.
La concursante fue eliminada en el playback final, el cual fue realizado entre las dos finalistas.
Segunda temporada
Tabla de eliminaciones
La concursante gana RuPaul's Drag Race.
La concursante es finalista.
La concursante es eliminada en la final.
La concursante gana el reto.
La concursante recibe críticas positivas y estuvo a salvo.
La concursante no recibe críticas y estuvo a salvo.
La concursante recibe críticas negativas pero fue salvada finalmente.
La concursante es nominada para eliminación.
La concursante es eliminada.
La concursante fue votada por sus compañeras el título de Miss Simpatía fuera del programa.
Referencias
Enlaces externos
Drag Race Holland
Programas de televisión de los Países Bajos
LGBT en 2020 | 42,114 |
MuQ0p8uaJ24_1 | Youtube-Commons | Open Web | CC-By | null | Traffic is political! Modern vs organic streets and bicycle infrastructure design | None | English | Spoken | 1,378 | 1,527 | Hey guys today. I've just been reading this book this morning Time Innovation and Mobilities and It's really blown my mind about how traffic is really a political idea and not an engineering idea So here's what we'll do. We'll go for a bike ride and I will talk to you all about this book All right guys, so let's go for a ride. Here's a fun fact using a cell phone definitely against the law, but reading the book I Don't think so. So let's try and do this on the move So I think this book is really interesting. It talks about how the entire concept of traffic planning is based on very car-centric methods and that its view as a scientific and engineering technical endeavor instead of being viewed as a political endeavor and The fact that there's a lot of numbers and graphs really covers up the the idea that It's it has a political basis, but we've we've kind of framed it in a way So that traffic engineering appears to be value-free now Frank Peters Peter Frank Peters Then takes this idea and argues that there are two let's say contradicting or Or differing points of view when it comes to traffic and public space philosophy and how we design the streets So he argues that oh And I'm only able to do this because it's a three-wheel cargo bike. You can see that bright so He argues that there's on the one hand modernism, right coming from the tradition of the Corbusier of Frank Lloyd Wright and And this idea of traffic segregation Central to their designs I quote from page 132 Central to their designs was the ideal idea of zoning in which different urban functions such as working living Recreating and being in transit were segregated The Corbusier's design of an urban neighborhood consists of three systems of circulation constructed on three levels exemplifying the concept of zoning Now in this section on designing the traffic landscape He says the creation of material conditions for the intersection of traffic at different speeds is achieved by adjusting several elements That determine any given specific traffic scenario such as infrastructure urban layout and geography traffic designers Interesting the word designers and not engineer are used here that traffic designers work on a continuum of styles The ends of which he says are formed by two ideal types Ready for them. They're a modern so the Corbusier and and others and the other one being organic and Organic is is what he argues is Has become the Dutch approach since the 1970s at least in in in living neighborhoods Right, so he says what is the organic style the organic style is both older and also newer than the modern Whereas a modern style Attempted to solve the problem of intersecting speeds by preventing them from meeting in the first place The organic design style seeks to integrate traffic participants in this approach The traffic landscape has been designed in such a way that That differences in speed or minimized in practice. This means that Fast road users had to adapt to slow road users This approach is old in the sense that it entails a return to slow users Sorry, it returns to the kind of traffic landscape that existed before the introduction of motorized traffic So this is this would be if you're following the cycling research review series This would be referring back to the ideas of of Monterman the ideas of Hamilton Bailey on shared space and reflects a philosophy on And it's it's for this extent. Why do we even design for cars in the first place, right? So then he goes on to Describe one of these shared spaces Reconstruction of a central square in a city in the Netherlands from what was before a a Normal road street with segregations and it is now paved with red cobbles stones and nothing more Nothing less. No signs. No sidewalks. No bicycle lanes. Nothing. Not even the decorative railway sleepers Only when you look more closely. Do you see the design? elements that Steer the gaze an old man trudges diagonally across square A mother parks her car gets out and changes her kids trousers a truck gives priority to a group of cyclists Coming from the right in a cargo bike. Great. This is this is what this show should be so so then Peters talks about this idea of risk the relationality the section the relationality of time space and risk He writes the motorist driving at high speed in the city has little time to react To unexpected events such as the pedestrian who is suddenly crossing the street This means that certain skills and experience are needed to drive a car in urban traffic landscapes Car drivers are asked to prove that they possess such knowledge by carrying a driver's license The braking path is related to the speed of that the vehicle is going the faster the car The more meters away necessary to stop a car driving at 30 kilometers an hour while The energy is square velocity, right? Remember this the car driving at 30 kilometers an hour has a braking distance of 10 meters a car going at 50 kilometers an hour Needs 30 meters Braking distance can be calculated by taking the sum of the time an individual needs to react and the vehicle of a Specific mass moving at a certain speeds needs to come to a stop This means a car not only needs a right at the road right in front of it But that an even larger distance must be free in order to prevent collisions so it's not just the six square meters that car takes up, but it's also the the many many perhaps hundreds of square meters that's required in terms of road space to prevent a collision and in traffic engineering speak it's rather inoculus we call it clear zone or lane width and such but It's not so neutral because in an urban setting space is contested Peters goes on to talk about risk and this idea that that we are by managing speeds We are redistributing who bears the burden of the risk Thus speed is not only a quality of a vehicle but always presupposes a combination of skills technical characteristics of a car and An ordering of the traffic landscape in terms of the design and application of rules when different traffic Participants encounter each other An exchange of time space and risk takes place He argues that a pedestrian who walks calmly to the other side needs a certain amount of time Right if a car is approaching a pedestrian usually knows from the experience of the speed of the car And the braking distance that goes with it will leave if this Impending object will leave him or her enough time to reach the other side In this example the space of a street is thus Contested by two traffic participants the street constitutes part of the passage of the pedestrian and that of the car driver In the movements of both the pedestrians the car driver a Continuous exchange of time space is taking place the pedestrian must give Space to the car driver by either standing still or walking faster and the car Driver must give way to the pedestrian by braking the higher the speed of the car The more space is needed to look ahead To have enough time to react to unexpected situations Conversely, but as the pedestrian has a very short braking distance, but needs time to cross the street So in a way the pedestrian is much more agile The street is thus relational It is part of the movement of both the pedestrian and the car driver a street curves also illustrates the rationality of traffic space When a street has wide curves a car driver can take a quick turn left or right, but the pedestrian needs more time to cross the street So this is a distribution of space. The street is also a distribution of time Thirdly, another type of distribution is risk. | 36,256 |
https://stackoverflow.com/questions/49391699 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Paul R, https://stackoverflow.com/users/253056, https://stackoverflow.com/users/4056181, jmd_dk | English | Spoken | 1,006 | 1,579 | Reusing FFTW wisdom on clusters
I'm running distributed MPI programs on clusters using multiple nodes, where I make use of the MPI FFT's of FFTW. To save time I reuse wisdom from one run to the next. To generate this wisdom, FFTW experiments with a lot of different algorithms and what not for the given problem. I am worried that because I am working on a cluster, the best solution stored as wisdom for one set of CPUs/nodes may not be the best solution for some other set of CPUs/nodes performing the same task, and so I should not reuse wisdom unless I am running on exactly the same CPUs/nodes as the run where the wisdom was gathered.
Is this correct, or is the wisdom somehow completely indifferent to the physical hardware on which it is generated?
Wisdom is specific to a given hardware configuration. If the hardware is identical on all nodes then you can re-use wisdom, but if you have different configurations (CPU, clock speed, memory speed, cache size, etc) then the wisdom probably should not be re-used (unless the systems are very similar).
Most often I use similar nodes. What about the communication time between nodes? Surely that must depend hugely on what specific set of nodes my job gets assigned, due to the difference in cable lengths. That is, a job on node 0 and 1 may have different optimal wisdom compared to a job on node 2 and 3, even though all nodes are identical. Is this correct?
Oh - I just noticed that you're using the MPI build of FFTW - in that case I'm not sure. I only use the single-threaded non-MPI build, and all our nodes in any given system are identical. Wisdom is a low-level thing though - it's just about empirically choosing optimal butterflies for a given CPU and FFTW plan.
If your cluster is homogeneous, the saved fftw plans likely make sense, though the the way the processes are connected may affect optimal plans for mpi-related operations. But if your cluster is not homogeneous, saving the fftw plan can be suboptimal and problem related to load balance could proove hard to solve.
Taking a look at wisdom files produced by fftw and fftw_mpi for a 2D c2c transform, I can see additionnal lines likely related to phases like transposition where mpi communications are required, such as:
(fftw_mpi_transpose_pairwise_register 0 #x1040 #x1040 #x0 #x394c59f5 #xf7d5729e #xe8cf4383 #xce624769)
Indeed, there are different algorithms for transposing the 2D (or 3D) array: in the folder mpi of the source of fftw, files transpose-pairwise.c, transpose-alltoall.c and transpose-recurse.c implement these algorithms. As flags FFTW_MEASURE or FFTW_EXHAUSTIVE are set, these algorithms are run to select the fastest, as stated here. The result might depend on the topology of the network of processes (how many processes on each node? How these nodes are connected?). If the optimal plan depends on where the processes are running and on the network topology, using the wisdom utility will not be decisive. Otherwise, using the wisdom feature can save some time as the plan is built.
To test whether the optimal plan changed, you can perform a couple of runs and save the resulting plan in files: a reproductibility test!
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
fftw_mpi_gather_wisdom(MPI_COMM_WORLD);
if (rank == 0) fftw_export_wisdom_to_filename("wisdommpi.txt");
/* save the plan on each process ! Depending on the file system of the cluster, performing communications can be required */
char filename[42];
sprintf(filename, "wisdom%d.txt",rank);
fftw_export_wisdom_to_filename(filename);
Finally, to compare the produced wisdom files, try in a bash script:
for filename in wis*.txt; do
for filename2 in wis*.txt; do
echo "."
if grep -Fqvf "$filename" "$filename2"; then
echo "$filename"
echo "$filename2"
echo $"There are lines in file1 that don’t occur in file2."
fi
done
done
This script check that all lines in files are also present in the other files, following Check if all lines from one file are present somewhere in another file
On my personal computer, using mpirun -np 4 main, all wisdom files are identical except for a permutation of lines.
If the files are different from one run to another, it could be attributed to the communication pattern between processes... or sequential performance of dft for each process. The piece of code above save the optimal plan for each process. If lines related to sequential operations, without fftw_mpi in it, such as:
(fftw_codelet_n1fv_10_sse2 0 #x1440 #x1440 #x0 #xa9be7eee #x53354c26 #xc32b0044 #xb92f3bfd)
become different, it is a clue that the optimal sequential algorithm changes from one process to the other. In this case, the wall clock time of the sequential operations may also differ from one process to another. Hence, checking the load balance between processes could be instructive. As noticed in the documentation of FFTW about load balance:
Load balancing is especially difficult when you are parallelizing over heterogeneous machines; ... FFTW does not deal with this problem, however—it assumes that your processes run on hardware of comparable speed, and that the goal is therefore to divide the problem as equally as possible.
This assumption is consistent with the operation performed by fftw_mpi_gather_wisdom();
(If the plans created for the same problem by different processes are not the same, fftw_mpi_gather_wisdom will arbitrarily choose one of the plans.) Both of these functions may result in suboptimal plans for different processes if the processes are running on non-identical hardware...
The transpose operation in 2D and 3D fft requires a lot a communications: one of the implementation is a call to MPI_Alltoall involving almost the whole array. Hence, a good connectivity between nodes (infiniband...) can proove useful.
Let us know if you found different optimal plans from one run to another and how these plans differ!
Yes, be very careful in reusing wisdom, even across hardware that's almost the same. I found very suboptimal performance (like 2:1) in reusing wisdom between the Raspberry Pi 400 and the Pi 4, even though they are supposedly both 4 GB Pi4s. My units have a different SOC stepping, and there may be other architectural differences.
Only reuse wisdom between identical machines.
| 41,287 |
https://ar.wikipedia.org/wiki/%D9%86%D8%A7%D8%AF%D9%8A%D8%B1%D8%B9%D8%A8%D8%AF%20%D8%A7%D9%84%D8%B1%D8%AD%D9%85%D8%A7%D9%86%D9%88%D9%81 | Wikipedia | Open Web | CC-By-SA | 2,023 | ناديرعبد الرحمانوف | https://ar.wikipedia.org/w/index.php?title=ناديرعبد الرحمانوف&action=history | Arabic | Spoken | 207 | 706 | نادير قمبار أغلوعبد الرحمانوف – رسام، تم تكريمه بلقب فنان الشعب، حائز على جائزة حكومية في جمهورية أذربيجان الاشتراكية السوفيتية.
حياته
ولد ناديرعبد الرحمانوف في 5 ديسمبر عام 1925 في لاتشين. بعد دراسته الثانوية إلتحق مدرسة أذربيجان الحكومية للفنون إسمه عزيم عزيمزاده بين 1941-1944.
فدرس في معهد سانت بطرسبرغ للفنون الجميلة والنحت والعمارة بين 1947-1953.
إلى جانب نشاطه الإبداعي المكثف عمل ناديرعبد الرحمانوف كمعلم في مدرسة أذربيجان الحكومية للفنون فشارك في تنشئة جيل الفنانين الشباب في أذربيجان.
منذ 1954 درس في مدرسة أذربيجان الحكومية للفنون، و من 1984 بروفسور في جامعة أذربيجان الحكومية للثقافة والفنون، كان مديرا في الورشة الإبداعية في أكاديمة أذربيجان للفنون.
حصل على الألقاب الفخرية فنان الشعب في 1964، و تكريم الفنان في جمهورية أذربيجان في 1960.
توفى ناديرعبد الرحمانوف في 26 يوليو عام 2008.
جوائزه
وسام شارة الشرف - 6 سبتمر عام 1959
جائزة الحكومية في جمهورية أذربيجان الاشتراكية السوفيتية
مراجع
أذربيجانيون سوفيت
أشخاص من باكو
رسامو القرن 20
رسامو القرن 21
رسامو بورتريه
رسامو بورتريه أذربيجانيون
رسامو طبيعة
رسامون أذربيجانيون
رسامون أذربيجانيون في القرن 20
رسامون أذربيجانيون في القرن 21
رسامون سوفيت
سوفيت
عمارة مستقبلية جديدة
فنانون من باكو
مصممون أذربيجانيون
معماريون حسب الجنسية
منطقيون أذربيجانيون
مواليد 1925
نحاتون أذربيجانيون
نحاتون أذربيجانيون في القرن 20
نحاتون سوفيت
وفيات 2008
وفيات في باكو | 39,843 |
https://en.wikipedia.org/wiki/The%20Good%20Provider | Wikipedia | Open Web | CC-By-SA | 2,023 | The Good Provider | https://en.wikipedia.org/w/index.php?title=The Good Provider&action=history | English | Spoken | 524 | 746 | The Good Provider is a 1922 American silent drama film directed by Frank Borzage and written by Fannie Hurst and John Lynch. The film stars Vera Gordon, Dore Davidson, Miriam Battista, Vivienne Osborne, William Collier, Jr., John Roche, and Ora Jones. The film was released on April 2, 1922, by Paramount Pictures. It is not known whether the film currently survives.
Plot
As described in a film magazine, Julius Binswanger (Davidson) has at last managed to save enough to send for his wife Becky (Gordon) and two children Pearl (Battista as a child, Osborne when grown) and Izzy (Collier) who have spent their time since leaving their hovel in Russia in a place little better, the swarming tenements in the East Side of New York City. He meets them at the tiny train station in a little town about forty five minutes from the city, and they are overwhelmed by the home he has bought as a surprise, a rickety old home at the edge of the village, but still their very own home. Over the next few years Julius prospers.
Within ten years the traveling peddler's wagon of his has been replaced by a neat store on Main Street, and the home has been repaired and has an air of comfort and prosperity. Pearl has grown into womanhood and has a prospective lover in Max Teitlebaum (Roche), while Izzy is an up-to-date youth eager to have "his chance." He and his sister want to move back to New York City, but their father refuses. The mother is torn between her love for her husband and her desire to give their children "their chance." At last the old man, much against his will, yields and they move back into the city, renting their home. This move proves to be ruinous to the father, and he ends up bankrupt with his family knowing this truth. Pearl knows Max is planning to propose to her, but she demurs for her family. Julius feels he must make any sacrifice for those he loves. He has not been sleeping well, and takes the maximum dosage of two pills to assist in this. Becky discovers her husband just as he is about to take six of these pills, and this causes a readjustment for everyone. Max, as Pearl's fiance, insists on putting money into the business, and Izzy takes charge of the store. Julius returns to the little house he loves, and the final scenes show him and Becky comfortable and happy in their own home and Pearl and Max happily married.
Cast
Vera Gordon as Becky Binswanger
Dore Davidson as Julius Binswanger
Miriam Battista as Pearl Binswanger, as a child
Vivienne Osborne as Pearl Binswanger
William Collier, Jr. as Izzy Binswanger
John Roche as Max Teitlebaum
Ora Jones as Mrs. Teitlebaum
Eddie Phillips as Broadway Sport
Muriel Martin as Flapper
James Devine as Mr. Boggs
Blanche Craig as Mrs. Boggs
Margaret Severn as Specialty Dancer
References
External links
1922 films
1920s English-language films
Silent American drama films
1922 drama films
Paramount Pictures films
Films directed by Frank Borzage
American black-and-white films
American silent feature films
1920s American films | 28,150 |
https://stackoverflow.com/questions/53540285 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Flimm, Jeremy, Ted, ccprog, https://stackoverflow.com/users/247696, https://stackoverflow.com/users/2643479, https://stackoverflow.com/users/4996779, https://stackoverflow.com/users/9288348 | English | Spoken | 373 | 584 | How do I style an external SVG file, included in my HTML, with no symbol name?
I have an SVG file that looks like this (the value for the d attribute omitted for brevity):
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="..."/></svg>
I would like to embed this file in HTML (without including the SVG source inline). I know that there are multiple ways to do this, you can use <img src="file.svg">, <object data="file.svg"> and so forth. I want to be able to style this SVG file using CSS (in my case, to make colours match the colour of text in the HTML). I also don't want to use symbol names, since none of the SVG files at my disposal use symbols.
So far, I haven't found a solution that meets all three of these requirements. To re-iterate:
The HTML code needs to reference an external SVG file
It must be possible to style the SVG image using external CSS
It must not require that the SVG file have within it a symbol name.
If it's not possible, let me know, I'll accept that as an answer.
I think it should be possible cause when I try to do this with google dev tools I can select a path and give it fill: black; to make a path black. (I implemented the svg using ` ), I don't know how to style this with a css file tho
Would it be a solution to pack all SVG files together into one sprite sheet once, giving them Ids on the way? There are libraries like svg-sprite or webpack modules that can help with that.
It's not possible to style it without the svg somehow ending up inline. For a pre-packaged solution to inject external svg into your html, take a look at svg-inject
This should be possible if the SVG does not have a fill color defined in its code. I could be mistaken. Have you tried something like this?
HTML
<svg class="icon-1">
<use xlink:href="#icon-1"></use>
</svg>
CSS
.svg {
fill: red;
}
SOURCE:
https://css-tricks.com/svg-use-with-external-reference-take-2/
Isn't #icon-1 a symbol name? In my example, nothing in my SVG file is named icon-1. I'm looking for a solution where I don't have to modify the original SVG file.
| 19,075 |
https://stackoverflow.com/questions/21266078 | StackExchange | Open Web | CC-By-SA | 2,014 | Stack Exchange | Marc B, https://stackoverflow.com/users/118068, https://stackoverflow.com/users/3220454, rnewton | English | Spoken | 307 | 463 | PHP: Read file during upload
I'm adding a file upload API to a web app written in PHP. I am able to get download progress using PHP Session Upload Progress. The code I'm using is:
$key = ini_get("session.upload_progress.prefix") . $token;
if (!isset($_SESSION[$key])) {
return -1;
}
return round(($_SESSION[$key]['bytes_processed'] / $_SESSION[$key]['content_length']) * 100, 1);
Which works well. The $_SESSION array includes information about the files being uploaded using the token given. One of the keys is 'tmp_name', but in my testing, it is never populated with a value until the upload is completed. This suggests to me that the upload in progress only exists in memory and is written to /tmp (or wherever the upload directory is configured to) when the upload is complete.
So my question then: Is there a way to access the file during upload? I'm expecting only CSVs right now and I would like to read the first line (the column headers) before the upload is complete.
Alternatively, other language/library suggestions are welcome, but relying on html5 (without fallback), flash, silverlight or java is not preferred.
PHP's upload mechanisms are incredibly stupid. Yes, it buffers the file in ram during the upload, instead of streaming it to disk. This is why PHP's memory_limit has to be larger than upload_max_size - because the file gets buffered in ram during the upload.
That makes sense (and I agree, I hate PHP file uploads). I imagine that memory access would be unsafe at best and not allowed at worst.
yeah, it'd be doable, e.g via /proc access to the process image, but you'd have a very hard time figuring out exactly WHERE in the process's image that the upload data actually lives.
So that's a non-starter. I did find this which would work, but I would still need a fallback for the people stuck on old browsers.
| 24,349 |
https://stackoverflow.com/questions/19479343 | StackExchange | Open Web | CC-By-SA | 2,013 | Stack Exchange | Ankit P, Daniele Baggio, Olaf Kock, Pankaj Kathiriya, https://stackoverflow.com/users/13447, https://stackoverflow.com/users/2760939, https://stackoverflow.com/users/379902, https://stackoverflow.com/users/859518 | English | Spoken | 287 | 431 | Liferay add categories to artical hook
i tried too automaticaly add some categories to an newly created artical via hook. but i don't know which action i should hook into. I tried hook in to the AssetEntry Model actions, But it's a failure. Can anyone help me ?
You can override[using hook] JournalArticleLocalServiceImpl's addArticle method and add your logic to add categories to created Journal Article OR else you can have categories default selected by overriding jsp
You can also create ModelListener using hook for JournalArticle and on method onAfterCreate you can add logic to save categories for article
@PankajKathiriya ModelListeners should not be used for business logic (and I consider adding categories business logic). I agree with your first comment though - why not post it as an answer so it can be accepted?
Categories are populated through asset_categories_selector taglib UI for assets. html/taglib/ui/asset_categories_selector/page.jsp is where categories gets populated.
This is not the best place to do it. That jsp is for the taglib which it's used for all portal assets.
@Baxtheman I understand its not the best practice to modify the tld jsps. But in business requirement where you are using certain structure & template and you need to open web content form using this structure & template and have certain categories pre-populated by default. It such case we will be require to Modify it.
I enforce my opinion, this is not the right way to do it. Instead via hook you can customize ../portlet/journal/article/categorization.jsp. This is the place you have the control of web content categorization.
You can override[using hook] JournalArticleLocalServiceImpl's addArticle method and add your logic to add categories to created JournalArticle OR you can have categories default selected by overriding jsp[categorization.jsp] .
| 18,628 |
https://de.wikipedia.org/wiki/L%C3%A9once%20Verny | Wikipedia | Open Web | CC-By-SA | 2,023 | Léonce Verny | https://de.wikipedia.org/w/index.php?title=Léonce Verny&action=history | German | Spoken | 338 | 650 | François Léonce Verny (geboren 2. Dezember 1837 in Aubenas (Département Ardèche); gestorben 1. Mai 1908 ebenda) war ein französischer Ingenieur, der unter anderem den Bau des Marinearsenals von Yokosuka leitete und eine Reihe von Leuchttürmen zur Sicherung der Schifffahrt baute.
Leben und Werk
François Léonce Verny studierte in der Klasse von 1856 am Polytechnikum in Brest und wurde Schiffsingenieur. Er wurde von 1862 bis 1864 nach Ningbo und Shanghai in China geschickt, um den Bau von vier chinesischen Kanonenbooten und einer neuen Werft zu überwachen. In der Zeit war er auch als Vizekonsul von Frankreich in Ningbo tätig.
Verny kam auf Empfehlung des Generalkonsuls Léon Roches 1864 nach Japan. Er baute auf Wunsch des Shogunats das große Marinearsenal von Yokosuka, die erste moderne Werftanlage Japans. Er holte seinen Cousin ersten Grades, Émile de Montgolfier, als Sekretär nach Japan, der Hauptbuchhalter des Yokosuka-Arsenals wurde und der insbesondere dafür verantwortlich war, den Fortschritt der Arbeiten zu fotografieren. Verny leitete dieses Arsenal von 1866 bis 1875. Yokosuka wurde im Januar 1872 vom Kaiser Meiji eröffnet.
Verny gründete auch eine Schule für Ingenieure und eine Schule für Schiffsbau und leitete dann ein umfangreiches Programm zum Bau von Leuchttürmen, von denen die wichtigsten die Leuchttürme Kannonzaki und Jogashima am Eingang der Bucht von Tokio errichtet wurden. Der Leuchtturm von Shinagawa ist als Wichtiges Kulturgut Japans klassifiziert.
Kurz nach seiner Rückkehr aus Japan übernahm Verny im Januar 1877 die Leitung der Minen Roche-la-Molière und Firminy und blieb dort bis September 1895. Er war von 1881 bis 1900 Mitglied der Handelskammer von Saint-Étienne und wurde mit der Ehrenlegion ausgezeichnet.
Verny ist in Japan unvergessen: Ein Park in Yokosuka trägt seinen Namen, seine Statue steht immer noch am Hafen der Stadt, die sein Andenken jedes Jahr am 2. November feiert. Der schottische Ingenieur Richard Henry Brunton (1841–1901) setzte seine Arbeiten fort.
Bilder
Anmerkungen
Literatur
S. Noma (Hrsg.): Verny, François Léonce. In: Japan. An Illustrated Encyclopedia. Kodansha, 1993, ISBN 4-06-205938-X, S. 1673.
Weblinks
Erwähnung Léonce Verny in der Kotobank, japanisch
Ingenieur
Franzose
Geboren 1837
Gestorben 1908
Mann | 732 |
https://stackoverflow.com/questions/53561273 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | Chris, digital.aaron, https://stackoverflow.com/users/10708074, https://stackoverflow.com/users/1169697 | English | Spoken | 408 | 660 | SSIS ForEach From Variable Enumerator, list created with C# - The object in the variable does not contain an enumerator
I've been chipping away at refactoring an SSIS package that copies a pile of log files into a folder on our network, examines all of the files in the destination folder and then deletes any that have aged past our retention policy. It seems like it should all work but for the error above.
Outline:
Variable "dailyFilesToDelete" of type Object, populated by a script task inside a ForEach File Loop.
I simplified my code to add a single file that I created to test this new package with and try to get to the heart of the issue.
var fileListDelete = new List<string>();
fileListDelete.Add(@"Q:\xpcttvcpc_live_Full_201912050000.bak");
Dts.Variables["dailyFilesToDelete"].Value = fileListDelete.GetEnumerator();
Dts.TaskResult = (int)ScriptResults.Success;
The next step is the Foreach Loop that is failing.
Enumerator: Foreach From Variable Enumerator
Enumerator variable: User::dailyFilesToDelete
Variable mapping: User::deleteFileName
I suspect that the issue is with how I'm passing my list of strings into dailyFilesToDelete. I initially was passing in the List itself, and once I saw the "variable does not contain an enumerator" error I was sure that adding the GetEnumerator call would fix it.
It doesn't look like you're creating your enumerator correctly, but I only say that because I'm looking at C# examples online and they are quite different from what you're doing here. I am not a C# developer, but I found the following example pretty informative on how to create an enumerator in C#: https://dotnetcodr.com/2017/11/15/implementing-an-enumerator-for-a-custom-object-in-net-c-3/
Thanks, but that example has more to do with creating an enumerator for a custom object. I could create a class with a single string property and generate an enumerator out of it, but that seems like a bit of overkill. I'm pretty sure I've used this method in a C# app before with no problems. I'm sure that there's something much simpler that's wrong. Unfortunately setting a breakpoint inside any script task has stopped working for some reason, when I'm debugging now visual studio just blows right past those and only breaks on the pre/post execute points I set on tasks.
I believe your issue is assigning the enumerator result to the variable. Try it just as
Dts.Variables["dailyFilesToDelete"].Value = fileListDelete;
Behind the scenes, the SSIS Foreach Enumerator will call the Enumerator method to make the magic happen.
Thanks, that did it! I knew it had to be something about how SSIS was managing the variables.
| 4,472 |
https://stackoverflow.com/questions/44461747 | StackExchange | Open Web | CC-By-SA | 2,017 | Stack Exchange | English | Spoken | 308 | 427 | secure WebApi2 c#, Remote on-premise ADFS 3.00 and Javascript client
we have a c# webapi2 api that our javascript web app communicates with. They are both hosted from the same server under the same domain.
The web Api2 project was not set up with any authentication as it was discussed that the whole api and client might need to connect and authenticate with a remote on premise ADFS server.
It has been given that the JavaScript client and webApi must now authenticate with the remote 'on-premise' ADFS server (this ADFS server is a separate organisation and not on 'our-premise') .
They are using ADFS 3.00 set up on Windows server 2012 r2
So far we have the following information
ADFS server url.
from this, we can access
-ADFS fedration metadata xml
-their ADFS sign in page which we must use, and somehow redirect back to somewhere(javascript client or web api?)
I'm sure we can access more items from this ADFS server url - like authcode, token..etc from their server but not sure what is relevant or not.
I first of all want to know what should happen after a user authenticates via their ADFS sign in page. should the sign in page have a return url that hits our c# api with a token?
If so, how do we consume this token in the api call and read user information from it. The only claim we are looking for is the email address.
The api is a webapi2 in c#.
Any help or solutions would be greatly appreciated based on the current setup.
ADFS 3.0 is somewhat limited in its OAuth support - essentially Authorisation Code Grant with confidential client.
Good example here.
Note that your ADFS provider is going to have to configure this. In particular, the fact that the RP configuration is done via PowerShell.
"Add-ADFSClient"
| 2,098 | |
https://stackoverflow.com/questions/36337059 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Aniket Panjwani, Mason Wheeler, Sergio Polimante, Xiongbing Jin, Zeno, https://stackoverflow.com/users/2844866, https://stackoverflow.com/users/32914, https://stackoverflow.com/users/4190526, https://stackoverflow.com/users/5504733, https://stackoverflow.com/users/6140680, https://stackoverflow.com/users/8162546, taufikedys | English | Spoken | 1,175 | 2,960 | Can no Longer open Spyder IDE for Python Programming
I installed Python 3.4 on my Windows 7 laptop several months ago as part of Anaconda (https://www.continuum.io/downloads). My installation included the Spyder IDE, and I have successfully been using Spyder for Python programming.
However, since yesterday, I have been unable to open Spyder. I typically open Spyder via the Start Menu, but now, when I try to click on the Spyder icon in the Start Menu, I get no response. I then tried to go directly to the spyder.exe file in the Scripts folder in the directory where Anaconda is installed. When I clicked on this the first time, the following message flashed quickly and then disappeared:
Traceback (most recent call last):
File "C:\Users\Aniket\Anaconda3\Scripts\spyder-script.py". line 2, in <module>
start_app.main()
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\start_app.py", line 114, in main
from spyderlib import spyder
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\spyder.py", line 100 in <module>
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\qt\QtSvg.py", line 10 in <module>
from PyQt4.QtSvg import * # analysis:ignore
ImportError:DLL load failed: The specified module could not be found
I double-clicked on Spyder.exe a second time, and this time, received the following message:
kfile.py", line 146 in lock
symlinke(str(os.getpid()), self.name)
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\utils\external\lockfile.py", line 87, in symlink
os.rmdir(newlinkname)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Aniket\\.spyder2-py3\\spyder.lock.1459432906109.newlink'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Aniket\Anaconda3\Scripts\spyder-script.py". line 2, in <module>
start_app.main()
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\start_app.py", line 106, in main
from spyderlib import spyder
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\spyder.py", line 100 in <module>
File "C:\Users\Aniket\Anaconda3\lib\site-packages\spyderlib\qt\QtSvg.py", line 10 in <module>
from PyQt4.QtSvg import * # analysis:ignore
ImportError:DLL load failed: The specified module could not be found
Both of these messages flashed very quickly and then disappeared - I captured them by quickly pressing Print Screen when they appeared. It's not evident to me what the error messages imply, nor what would have caused this. It's possible that I closed Spyder while some function was running, or that Spyder crashed and caused some persistent error. Does anyone know how I can fix this?
Never heard of Spyder, but have you looked at PyScripter?
Nope, but I'll check it out. I'm probably going to look for a new IDE in the meantime while I try to get Spyder working.
I installed PyScripter. The Start Menu gives 3 options for PyScripter: 1) Pyscripter for Python 2.7 2) Pyscripter for Python 3.4 3) Pyscripter for Latest Python Version. The first and third open properly. The second gives me the following error message: Error 193: Could not Open Dll "python34.dll", and then "Python could not be properly initialized. We must quit"
Sounds like something's borked in your Python 3.4 install, then. At this point I would try uninstalling and reinstalling Python 3.4.
For a good python IDE, checkout PyCharm. https://www.jetbrains.com/pycharm/
I ran into the same issue. The following worked for me
Please close Spyder IDE, in Anaconda Prompt run
conda update spyder
then
spyder --reset
Restart Spyder
Under my case, I was able to get the spyder IDE launched again by running conda update spyder without spyder --reset.
I tried just updating it but got the same problem, after I reset it, it worked fine.
I had a similar problem of Spyder 2 not starting. My installation is part of Anaconda, on Win7 64-bit OS. I tried all the solutions outlined here and here, but they did not work for me. From the command line, I got the following error(s) when trying to reset spyder:
U:\>python -c "from spyderlib.spyder import main; main()" --reset
Traceback (most recent call last):
File "C:\Temp\pApps\Anaconda3\lib\site-packages\spyderlib\qt\__init__.py", line 48, in <module> from PySide import __version__ # analysis:ignore
ImportError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Temp\pApps\Anaconda3\lib\site-packages\spyderlib\requirements.py", line 40, in check_qt from spyderlib import qt File "C:\Temp\pApps\Anaconda3\lib\site-packages\spyderlib\qt\__init__.py", line 50, in <module>
raise ImportError("Spyder requires PySide or PyQt to be installed")
ImportError: Spyder requires PySide or PyQt to be installed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Temp\pApps\Anaconda3\lib\site-packages\spyderlib\spyder.py", line 48, in <module> requirements.check_qt()
File "C:\Temp\pApps\Anaconda3\lib\site-packages\spyderlib\requirements.py", line 50, in check_qt % (qt_infos['pyqt']+qt_infos['pyside']))
File "C:\Temp\pApps\Anaconda3\lib\site-packages\spyderlib\requirements.py", line 25, in show_warning
raise RuntimeError(message)
RuntimeError: Please check Spyder installation requirements:
PyQt4 4.6+ (or PySide 1.2.0+) is required.
What surprised me was that spyder worked fine till yesterday, and I just did a full update yesterday as follows:
conda update --all
So I again updated spyder today with the following:
conda update spyder
And the following package plan was presented to me:
The following packages will be UPDATED:
spyder: 2.3.7-py35_3 None://None/<unknown> --> 2.3.8-py35_1
spyder-app: 2.3.7-py35_0 --> 2.3.8-py35_0
The following packages will be DOWNGRADED due to dependency conflicts:
matplotlib: 1.5.3-np111py35_1 --> 1.5.1-np111py35_0
pyqt: 5.6.0-py35_0 --> 4.11.4-py35_7
qt: 5.6.0-vc14_0 [vc14] --> 4.8.7-vc14_9
[vc14]
qtconsole: 4.2.1-py35_2 --> 4.2.1-py35_0
After the update, spyder works fine now.
In essence, my problem was due to dependency conflicts.
Had the same exact problem as you a few days ago and reinstalling won't work so I went to:
C:\Users\'YourName'\\.spyder2-py3
delete every spyder, lock file/folder in it and relaunch.
I know this is an old thread but having just had the same problem an answer that worked for me from https://github.com/spyder-ide/spyder/issues/3005
My problem appeared to be that the status of spyder was still running so wouldn't open. To fix this you need to look for a directory called .spyder2 in your Users\ directory, then find a file called spyder.lock and remove it.
My solution:
I uninstalled Anaconda spyder
Removed all directories of it from
c: programs/
and c:users/Username/
and c:users/username/AppData/local
and c:users/username/AppData/
I downloaded a newer version of Anaconda Spyder and installed it.
It's all fine now.
You might get additional information if you run
from spyder.app import start
start.main()
as a python script. For example I got following output:
Traceback (most recent call last):
File "C:\python_env\workspace\TechDiff\src\demo.py", line 1, in <module>
from spyder.app import start
File "C:\python_env\App\WinPython\python-3.10.1.amd64\lib\site-packages\spyder\app\start.py", line 24, in <module>
from spyder.config.base import get_conf_path, running_in_mac_app
File "C:\python_env\App\WinPython\python-3.10.1.amd64\lib\site-packages\spyder\config\base.py", line 25, in <module>
from spyder.utils import encoding
File "C:\python_env\App\WinPython\python-3.10.1.amd64\lib\site-packages\spyder\utils\encoding.py", line 23, in <module>
from spyder.py3compat import (is_string, to_text_string, is_binary_string,
File "C:\python_env\App\WinPython\python-3.10.1.amd64\lib\site-packages\spyder\py3compat.py", line 77, in <module>
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (C:\python_env\App\WinPython\python-3.10.1.amd64\lib\collections\__init__.py)
=> Maybe for Python 3.10 the import of collections needs to be fixed.
=> Try to use 3.9
Spyder have lots of various issues. I found this solution works better as a general solution.
I've got exactly the same error messages before, and I fixed it by installing spyder again under anaconda:
conda install spyder
Well it says it is missing PyQt4.dll, which you can check by: searching pyqt4 in your anaconda3 directory.
There are several possibilities:
it is still in: ~\Anaconda3_x86\Library\plugins\designer
That would mean python can't find since it ain't searching in this directory, I highly doubt that possiblity, since that would mean you'd have tweaked some code.
it ain't anywhere
Maybe you or more likely one of your programs did deleted it per accident?
it isnt in: ~\Anaconda3_x86\Library\plugins\designer
I also doubt this possibilty since it would mean the file has been moved...
However you can fix that by reinstalling spyder as mentioned by xuwei.
| 3,978 |
https://stackoverflow.com/questions/73843217 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | Norwegian Nynorsk | Spoken | 241 | 633 | Pass type as parameter to controller and use it for xml deserialize
Hello I am currently stucking with the following problem.
I want to pass a type as parameter to controller and use it to deserialize a a xml string.
What I have tried looks like this
var typeAsString = typeof(List<ProjectReportDto>).GetType().FullName;
//... pass value to controller
// in the method I got the string
var type = Type.GetType(typeAsString );
var mySerializer = new XmlSerializer(type);
// I got a Exceptrion -> System.RuntimeType is inaccessible due to its protection level. Only public types can be processed.
Class ProjectReportDto
[Serializable]
public class ProjectReportDto
{
public string ShortName { get; set; }
public string LongName { get; set; }
public string Description { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string CustomerName { get; set; }
}
Xml string
<?xml version="1.0" encoding="UTF-16"?>
<ArrayOfProjectReportDto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProjectReportDto>
<ShortName>Piper .NET</ShortName>
<LongName>The new Internet</LongName>
<Description>awsome</Description>
<StartDate>2022-08-19T00:00:00</StartDate>
<EndDate>2023-02-25T00:00:00</EndDate>
</ProjectReportDto>
<ProjectReportDto>
<ShortName>Nucleus</ShortName>
<LongName>Nucleus Portal </LongName>
<Description>Make the world a better place </Description>
<StartDate>2022-08-19T00:00:00</StartDate>
<EndDate>2026-09-26T00:00:00</EndDate>
</ProjectReportDto>
</ArrayOfProjectReportDto
I have already searched for the problem but I did not found something that helped me. Maybe it is not possible to read a xml this way ?
You call variable.GetType() to get the type of the variable, but calling GetType() on the type itself will return "System.Runtime" which is inaccessible (not public).
Replace
var typeAsString = typeof(List<ProjectReportDto>).GetType().FullName;
With
var typeAsString = typeof(List<ProjectReportDto>).FullName;
| 12,357 | |
https://nl.wikipedia.org/wiki/Phrynidius%20singularis | Wikipedia | Open Web | CC-By-SA | 2,023 | Phrynidius singularis | https://nl.wikipedia.org/w/index.php?title=Phrynidius singularis&action=history | Dutch | Spoken | 29 | 55 | Phrynidius singularis is een keversoort uit de familie van de boktorren (Cerambycidae). De wetenschappelijke naam van de soort werd voor het eerst geldig gepubliceerd in 1880 door Bates.
Boktorren | 4,612 |
https://hu.wikipedia.org/wiki/Burius%20J%C3%A1nos%20%28egy%C3%A9rtelm%C5%B1s%C3%ADt%C5%91%20lap%29 | Wikipedia | Open Web | CC-By-SA | 2,023 | Burius János (egyértelműsítő lap) | https://hu.wikipedia.org/w/index.php?title=Burius János (egyértelműsítő lap)&action=history | Hungarian | Spoken | 11 | 38 | Burius János (1636–1689), lelkész
Burius János (1667–1712), lelkész, az előbbi fia | 30,590 |
https://math.stackexchange.com/questions/4485548 | StackExchange | Open Web | CC-By-SA | 2,022 | Stack Exchange | English | Spoken | 181 | 499 | Regular conditional probability of sum of Bernoulli random variables given zero set
I'm reading with Achim Klenkes Probability Theory (https://link.springer.com/book/10.1007/978-1-4471-5361-0) and try to understand regular conditional distributions. For this sake I'm trying to check the definition in this example:
Let X be uniformly distributed on $[0, 1]$ and given $X=x$ let $(Y_i)_{i=1}^n$ be independent Bernoulli-distributed with parameter $x$. Klenke states that the regular conditional distribution is $\kappa_{Y,X}(x,\cdot)= \mathbb{P}[Y \in \cdot | X=x] = (Ber(x))^{\otimes n}$ for almost all $x\in [0,1]$.
He defines a Markov kernel:
and the regular conditional distribution as:
Note that $A$ and $B$ switch the roles for some reason.
I think we chose $(E',\mathcal{E}')=([0,1],\mathcal{B}(\mathbb{R})|_{[0,1]})$ and $(E,\mathcal{E})=(\{1,...,n\},\mathcal{P}(\{1,...,n\}))$. Then we have to show that
$$\int_{\Omega} 1_{\{Y \in B\}} 1_A d\mathbb{P} = \int_{\Omega} \kappa_{Y,X}(\cdot,B) 1_A d\mathbb{P} \ \ (1)$$
for all $B = \{i\}, i =1,...,n$ and $A = \{X \in [0,t]\} \in \sigma(X)$ by generator argument? But I'm really confused how to plug $(Ber(x))^{\otimes n}$ and $\kappa_{Y,\sigma(X)}(X^{-1}(\omega),B)$ together such that the integration area is still $\Omega$. Could someone give me a hint how to proceed with the RHS of (1)?
| 43,302 | |
https://zh.wikipedia.org/wiki/%E5%A4%A9%E4%B8%BB%E6%95%99%E6%B1%B6%E8%90%8A%E5%AE%97%E5%BA%A7%E4%BB%A3%E7%89%A7%E5%8D%80 | Wikipedia | Open Web | CC-By-SA | 2,023 | 天主教汶萊宗座代牧區 | https://zh.wikipedia.org/w/index.php?title=天主教汶萊宗座代牧區&action=history | Chinese | Spoken | 15 | 217 | 天主教汶萊代牧區(Apostolicus Vicariatus Bruneiensis)是羅馬天主教的一個代牧區,包括汶萊全境。現任宗座代牧為沈高內略 (1997年起任監牧,2004年至今)。
歷史
1997年自天主教美里教區分出。2004年成為代牧區。
現況
有三個堂區,分別位於斯里巴加灣市、馬來奕和詩里亞,各有一名神父。2010年有信徒18,773名。
參考資料
外部链接
官方網頁
Catholic-Hierarchy
相关条目
亚洲天主教教区列表
文莱天主教教区 | 29,066 |
https://stackoverflow.com/questions/37932015 | StackExchange | Open Web | CC-By-SA | 2,016 | Stack Exchange | Dan, https://stackoverflow.com/users/2448918, https://stackoverflow.com/users/3683991, user3683991 | English | Spoken | 378 | 692 | How to make this Javascript function work for more elements
I have this 'building' feature I've been working on and I ran into a problem. When you push a certain button, a timer will be shown to the user. This actually works just fine. However, when another button of the same category is pushed, the timer will only show up for the first one
as you can see at this picture
All those buildings are being looped from the database.
Within this loop is the Javascript function that shows the timer. (Using Jquery countdown).
Is there anyone who could show me how to make this countdown timer loop correctly as well?
This is the timer part within the PHP loop:
<button class="btn btn-disabled" type="button">Workers are currently working on this property</button>
<span>Time untill completion: <span id="cd" data-countdown-id="<?php echo $userrow['building_id']; ?>" data-countdown="<?php echo $timedifference->format("%H:%I:%S"); ?>"></span> </span>
<script>
$(function createCountDown() {
var cd = document.getElementById("cd")
var countdown = cd.getAttribute("data-countdown")
var cdid = cd.getAttribute("data-countdown-id");
$('#buycd' + cdid).countdown({
until: countdown
});
});
</script>
<div id="buycd<?php echo $userrow['building_id']; ?>"></div>
If you need to see more of the code, please tell me.
PS: If I only start one timer, it works fine on any of them.
Do you have multiple elements with id="cd" ? Perhaps that should be a class?
Hmm now you mention it, yes. Those things get looped from my database.
Cool, so that should do it. Without more code thats about all I can say, but maybe you can go from there. using jquery consistently will make your life easier, instead of switching between jquery and plain js (imho).
Alright. But what would I do with this part then?
var cd = document.getElementById("cd");
You are using cd as the id, but from your comment, that is being applied to multiple elements. Elements must have unique ids (or no id). So you should use a class for this e.g. class="cd".
then you code looks like:
$(function createCountDown() {
$('.cd').each(function(){
var countdown = $(this).attr('data-countdown');
var cdid = $(this).attr('data-countdown-id');
$('#buycd' + cdid).countdown({
until: countdown
});
})
});
I didn't test that snippet... expect bugs :)
Oh god, this actually did the job! Thank you so much. I was told by someone to use the .each function earlier but couldn't get it to work properly.
Thanks!
| 19,820 |
https://sv.wikipedia.org/wiki/Kaktusuggla | Wikipedia | Open Web | CC-By-SA | 2,023 | Kaktusuggla | https://sv.wikipedia.org/w/index.php?title=Kaktusuggla&action=history | Swedish | Spoken | 263 | 640 | Kaktusuggla (Micrathene whitneyi) är världens minsta uggla som förekommer från sydvästra USA till centrala Mexiko.
Utseende och läten
Kaktusugglan är med kroppslängden 13–14 cm världens minsta uggla. Den urskiljer sig lätt från andra ugglor i sitt utbredningsområde på enbart storleken. I formen har den breda ungar och kort stjärt. Den är grå- och brunspräcklig med breda suddiga strimmor undertill och tydliga vita ögonbryn. Sången består serie med gnissliga visslingar, "pe pe pe pi pi pi pi pe pe pa". Även vassa skällande "peew" hörs.
Utbredning och systematik
Kaktusuggla placeras som enda art i släktet Micrathene. Den delas in i fyra underarter med följande utbredning:
Micrathene whitneyi whitneyi – förekommer i torra sydvästra USA och närliggande nordvästra Mexiko (Sonora)
Micrathene whitneyi idonea – förekommer från södra Texas (lägre Rio Grande-dalen) till centrala Mexiko
Micrathene whitneyi sanfordi – förekommer i södra Baja California
Micrathene whitneyi graysoni – utdöd, förekom tidigare på Socorroön (Revillagigedoöarna utanför västra Mexiko)
Levnadssätt
Kaktusugglan hittas i öppet och torrt skogslandskap och buskmarker. Den födosöker nattetid, huvudsakligen efter insekter. Fågeln häckar i maj–juni i USA, i Mexiko mellan mars och augusti. Nordliga populationer är flyttfåglar som lämnar häckningsområdena i mitten av oktober.
Status och hot
Arten har ett stort utbredningsområde och en stor population, men tros minska i antal, dock inte tillräckligt kraftigt för att den ska betraktas som hotad. Den Internationella naturvårdsunionen (IUCN) kategoriserar därför arten som livskraftig (LC).
Namn
Fågelns vetenskapliga artnamn hedrar Josiah Dwight Whitney (1819-1896), amerikansk geolog och upptäcktsresande.
Bildgalleri
Noter
Externa länkar
Bilder och filmer på Internet Bird Collection
Läten på xeno-canto.org
Ugglor
Fåglar i nearktiska regionen | 27,821 |
https://ca.wikipedia.org/wiki/Tauno%20Ilmoniemi | Wikipedia | Open Web | CC-By-SA | 2,023 | Tauno Ilmoniemi | https://ca.wikipedia.org/w/index.php?title=Tauno Ilmoniemi&action=history | Catalan | Spoken | 109 | 219 | Tauno Ilmoniemi, nascut Tauno Granit, (Comunitat rural de Kuopio, Savònia del Nord, 16 de maig de 1893 – Oulu, Ostrobòtnia del Nord, 21 de setembre de 1934) va ser un gimnasta i saltador finlandès que va competir a començaments del .
El 1912 va prendre part en els Jocs Olímpics d'Estocolm, on va guanyar la medalla de plata en el concurs per equips, sistema lliure del programa de gimnàstica. En aquests mateixos Jocs va disputar la prova de palanca alta del programa de salts, on quedà eliminat en sèries.
Referències
Medallistes finlandesos als Jocs Olímpics d'estiu de 1912
Gimnastes artístics finlandesos
Saltadors europeus
Persones de Kuopio
Morts a Finlàndia | 24,275 |
https://tpi.wikipedia.org/wiki/.aq | Wikipedia | Open Web | CC-By-SA | 2,023 | .aq | https://tpi.wikipedia.org/w/index.php?title=.aq&action=history | Tok Pisin | Spoken | 9 | 20 | .aq em i Intanet kod bilong kantri Antaktika.
aq | 19,593 |
https://math.stackexchange.com/questions/2608262 | StackExchange | Open Web | CC-By-SA | 2,018 | Stack Exchange | JacekDuszenko, Mariano Suárez-Álvarez, https://math.stackexchange.com/users/274, https://math.stackexchange.com/users/497132 | English | Spoken | 899 | 1,596 | How many bases are there in $\mathbf Z_5^4$
How many bases are there in $\mathbf Z_5^4$ ?
I've been asked to solve the above mentioned problem and had no clue how to do it. The only clear thing for me is that such base contains 4 vectors. Knowing that, I was able to count the total amount of sets which contain 4 vectors. Also I checked that we can obtain any element except 0 from $\mathbf Z_5$ by multiplying any other element by a certain scalar. For example $3*2=1$,
$3*4=2$ ,
$3*1=3$,
$3*3=4$,
$3*5=0$, in $\mathbf Z_5$.
A base is the largest, linearly independent subset of vectors from $\mathbf Z_5^4$,so
I know that I have to combinatorially find the number of those sets, but I've no clue how.
Hint: How many choices are there for the first element in an ordered basis $(v_1,v_2,v_3,v_4)$ of $Z_5^4$?
Suppose now that you pick one of the possible choices $v_1$. How many choices are there for $v_2$?
I think there are 4 choices for a first element (1, 2, 3, 4). Now for the second element also 4 choices. If we go along we have the amount of 4^4 bases. But of course there are more linearly independent subsets of 4 vectors
No, there are more than $4$ choices for the first vector in the basis.
Notice that $v_1$ is not an element of $Z_5$: it is an element of $Z_5^4$, that is, a vector.
Yes, you are right. Then there have to be three zeroes and one number. We can choose this number from 1-4 and we place this number on one among four places. So the number of vectors we can get is $4*4$? Where first "4" is the number of possible places and second "4" is the count of numbers we can use?
Why there have to be three zeroes and one number? Can't $(1,1,1,1)$ be the first vector in a basis?
By the way, why did you mark my answer as accepted? You clearly did not understand it! It is better to unmark it, so that other people are more motivated to provide altenative answers. Only accept a answer when you at least know what it is saying.
All right, now I think I sorted it out. So when I am choosing the first vector in my subset I can choose from $5^4 -1$ possibilities, because I can place any number on any position except having the case with four zeroes. And that's because this (0,0,0,0) vector multiplied by any non-zero λ from field over my space will make my vectors set linearly dependent automatically. Am I right? And now, when choosing next vector, I have to choose it to make my subset linearly independent with the first vector. Are those vectors dependent only if one vector is a multiple of another?
Yes. ${}{}{}{}$
Now, when I know the rule. For the first vector $5^4-1$. If my first vector is $(x_1,x_2,x_3,x_4)$ then i cannot choose vectors $2*(x_1,x_2,x_3,x_4)$, ...,$ 4(x_1,x_2,x_3,x_4)$ and knowing that vector $5(x_1,x_2,x_3,x_4)$ is a 0, i also cannot choose him. Then it gives me $5^4-1-4$ as a second option and so on continuing to the fourth vector the count of all possible vectors I can choose is $(5^4-1)*(5^4-1 -4) (5^4-1-4-4)(5^4-1-4-4-4)$. Am I right?
Nope. When you choose the third vector it is not enough that it is not a linear multiple of neither the first one or the second one: it cannot be a linear combination of them either.
OK, so let's say i have chosen 2 vectors already. Now their combination might be $λ_1 v_1 + λ_2 v_2$ where $λ_1$ and $λ_2$ can be any value from 0 to 4. Then it gives 25 possibilities, which is 5^2 so third vector can be chosen in $5^4-5^2$ ways. And last vector can be chosen in $5^4-5^3$ ways, because, analogously, combination of three vectors is $λ_1 v_1 + λ_2 v_2 + λ_3 v_3 $ where $λ_1$ and $λ_2$ and $λ_3$ can be any value from 0 to 4. Then there are $(5^4-1)*(5^4-5) (5^4-5^2)(5^4-5^3)$ bases in $Z_5^4$.
Well, that is the number of ordered bases and you wanted to count unordered bases.
As I am unsure about terminology, your advice is unclear to me. If we take an ordered basis $(v_1,v_2,v_3,v_4)$ then are exemplary unordered bases $(v_2,v_1,v_3,v_4) $, $(v_2,v_3,v_1,v_4)$ etc. ? Could you please give me an example of unordered base in $\mathbf Z_5^4$?
Well, a basis is a set of vectors, with no particular ordering. What you counted above are ordered sequences $(v_1,v_2,v_3,v_4)$ such that the set ${v_1,v_2,v_3,v_4}$ is a basis. As you can easily see, there are several such ordered sequences which give rise to the same set.
Then, as there are $4!$ possibilities to write down one set which consists of four elements, would I have to divide my result by $4!$ ?
Yes. That gives you the correct number. Cheers :-)
Thanks for help :)
You know how you create a basis in a vector space: choose one vector $v_1\ne 0$, then choose another vector $v_2\not\in span(v_1)$, then choose another vector $v_3\not\in span(v_1,v_2)$ etc.
In this case: in how many ways can $v_1$ can be chosen? Then, how many elements are in $span(v_1)$, and in how many ways can you choose $v_2$? Again, how many elements are in $span(v_1, v_2)$, and in how many ways can you choose $v_3$? Finally, do the same for $v_4$.
| 41,967 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.