index
int64
0
1.03k
original
stringlengths
12
7.84k
translated
stringlengths
11
7.53k
original_reply
stringlengths
15
17.7k
translated_reply
stringlengths
12
11k
100
The following article from CNN describes a Michigan police officer being put on administrative leave for having KKK material at his home: https://www.cnn.com/2019/08/10/us/michigan-officer-placed-on-leave-kkk-document-house/index.html. The materials were discovered while a potential buyer was touring his house. Althou...
CNN'den aşağıdaki makale, evinde KKK materyali bulundurduğu için Michigan'dan bir polis memurunun idari izne çıkarıldığını anlatıyor: https://www.cnn.com/2019/08/10/us/michigan-officer-placed-on-leave-kkk-document-house/index.html. Materyaller, potansiyel bir alıcının evini gezerken keşfedildi. KKK'yı şiddetle kınamama...
In general, employers in the United States are free to fire you for your speech. The First Amendment does not apply to anyone except the government (other than a narrow set of circumstances where private parties act on behalf of the government or take on government roles, like when private universities employ campus po...
Genel olarak, Amerika Birleşik Devletleri'ndeki işverenler sizi konuşmanız nedeniyle işten çıkarmakta özgürdür. Birinci Değişiklik, hükümet dışındaki hiç kimseye uygulanmaz (özel tarafların hükümet adına hareket ettiği veya üniversite polislerini işe alan özel üniversiteler gibi hükümet rollerini üstlendiği dar bir dur...
101
What does strength refer to in mathematics? Is it a formal idea?
Matematikte kuvvet neyi ifade eder? Bu resmi bir fikir midir?
Suppose you have a theorem that says "If $X$, then $Y$." There are two ways to strengthen such a theorem: * Assume less. If you can reduce the number of hypotheses, but still prove the same conclusion, then you have proved a more "powerful" result (in the sense that it applies in more situations). * Prove more. If ...
"Eğer $X$ ise, o zaman $Y$" diyen bir teoreminiz olduğunu varsayalım. Böyle bir teoremi güçlendirmenin iki yolu vardır: * Daha az varsayım. Hipotezlerin sayısını azaltabilir, ancak yine de aynı sonucu kanıtlayabilirseniz, daha "güçlü" bir sonuç kanıtlamış olursunuz (daha fazla durumda uygulanabilir anlamında). * Daha ...
102
Does vegetarianism affect life expectancy? Is an average vegetarian supposed to live longer just because of their diet?
Vejetaryenlik yaşam süresini etkiliyor mu? Ortalama bir vejetaryen sadece beslenme şekli nedeniyle daha uzun yaşar mı?
Yes, according to a paper by the American Society for Clinical Nutrition. > Results: Our review of the 6 studies found the following trends: 1) a very low meat intake was associated with a significant decrease in risk of death in 4 studies, a nonsignificant decrease in risk of death in the fifth study, and virtually n...
Evet, Amerikan Klinik Beslenme Derneği'nin bir makalesine göre. > Sonuçlar: 6 çalışmanın incelemesinde şu eğilimler bulunmuştur: 1) çok düşük et tüketimi 4 çalışmada ölüm riskinde önemli bir azalma ile ilişkilendirilmiştir, beşinci çalışmada ölüm riskinde önemsiz bir azalma ve altıncı çalışmada neredeyse hiç ilişki bu...
103
What is the difference between an object and a companion object in a class in kotlin? Example: ```class MyClass { object Holder { //something } companion object { //something } } ``` I already read that companion object shall be used, if the containing parameters/methods are closely rela...
Kotlin'de bir sınıftaki nesne ve arkadaş nesne arasındaki fark nedir? Örnek: ```class MyClass { object Holder { //bir şey } companion object { //bir şey } } ``` İçeren parametrelerin/yöntemlerin sınıfıyla yakından ilişkili olması durumunda arkadaş nesnenin kullanılması gerektiğini zaten ...
There are two different types of ```object``` uses, expression and declaration. Object Expression An object expression can be used when a class needs slight modification, but it's not necessary to create an entirely new subclass for it. Anonymous inner classes are a good example of this. ```button.setOnClickListener(o...
```object``` kullanımının iki farklı türü vardır, ifade ve bildirim. Nesne İfadesi Bir sınıfın küçük bir değişikliğe ihtiyacı olduğunda ancak bunun için tamamen yeni bir alt sınıf oluşturmanın gerekli olmadığı durumlarda nesne ifadesi kullanılabilir. Anonim iç sınıflar bunun iyi bir örneğidir. ```button.setOnClickListe...
104
I've rooted my phone. Now what? What do I gain from rooting?
Telefonumu rootladım. Şimdi ne olacak? Rootlamadan ne kazanırım?
In few words, rooting an Android system means overcome the limitations that were imposed over it by the manufacturer. People may want that for different reasons, but the main one is freedom. Having a rooted phone means you've got all the control over your device. The main reason people root phones is to install a cust...
Kısaca, bir Android sistemi köklendirmek, üretici tarafından uygulanan sınırlamaların üstesinden gelmek anlamına gelir. İnsanlar bunu farklı nedenlerle isteyebilir, ancak ana neden özgürlüktür. Köklendirilmiş bir telefona sahip olmak, cihazınız üzerinde tam kontrole sahip olduğunuz anlamına gelir. İnsanların telefonla...
105
Is there a better way to determine whether a variable in ```Pandas``` and/or ```NumPy``` is ```numeric``` or not ? I have a self defined ```dictionary``` with ```dtypes``` as keys and ```numeric``` / ```not``` as values.
```Pandas``` ve/veya ```NumPy```'deki bir değişkenin ```sayısal``` olup olmadığını belirlemenin daha iyi bir yolu var mı? ```dtypes```'ları anahtarlar ve ```sayısal``` / ```değil```'i değerler olarak içeren kendi tanımladığım bir ```sözlük``` var.
You can use ```np.issubdtype``` to check if the dtype is a sub dtype of ```np.number```. Examples: ```np.issubdtype(arr.dtype, np.number) # where arr is a numpy array np.issubdtype(df['X'].dtype, np.number) # where df['X'] is a pandas Series ``` This works for numpy's dtypes but fails for pandas specific types like p...
```np.issubdtype```'ı, dtype'ın ```np.number```'ın bir alt dtype'ı olup olmadığını kontrol etmek için kullanabilirsiniz. Örnekler: ```np.issubdtype(arr.dtype, np.number) # burada arr bir numpy dizisidir np.issubdtype(df['X'].dtype, np.number) # burada df['X'] bir pandas Serisidir ``` Bu, numpy'ın dtype'ları için çalı...
106
I've come across the polynomial algorithm that solves 2SAT. I've found it boggling that 2SAT is in P where all (or many others) of the SAT instances are NP-Complete. What makes this problem different? What makes it so easy (NL-Complete - even easier than P)?
2SAT'yi çözen polinom algoritmasıyla karşılaştım. 2SAT'nin P'de olması beni şaşırttı çünkü SAT örneklerinin tamamı (veya birçoğu) NP-Tamam'dır. Bu problemi farklı kılan nedir? Onu bu kadar kolay (NL-Tamam - P'den bile kolay) yapan nedir?
Here is a further intuitive and unpretentious explanation along the lines of MGwynne's answer. With $2$-SAT, you can only express implications of the form $a \Rightarrow b$, where $a$ and $b$ are literals. More precisely, every $2$-clause $l_1 \lor l_2$ can be understood as a pair of implications: $\lnot l_1 \Rightarro...
İşte MGwynne'in cevabı doğrultusunda daha sezgisel ve iddiasız bir açıklama. $2$-SAT ile yalnızca $a$ ve $b$ değişkenlerinin olduğu $a \Rightarrow b$ biçimindeki çıkarımları ifade edebilirsiniz. Daha kesin olarak, her $2$-madde $l_1 \lor l_2$ bir çift çıkarım olarak anlaşılabilir: $\lnot l_1 \Rightarrow l_2$ ve $\lnot...
107
Why isn't Sectumsempra an Unforgivable Curse?
Sectumsempra neden Affedilmez Bir Lanet değil?
Not many people knew Sectumsempra - they'd need to know it exists to ban it. Severus Snape invented Sectumsempra while at Hogwarts, and wrote it down in his Potions book. He doesn't seem to have told many people about it, it's possible he didn't tell anyone at all. “Harry was about to put his book away again when he ...
Sectumsempra'yı pek çok kişi bilmiyordu; yasaklamak için varlığını bilmeleri gerekirdi. Severus Snape, Sectumsempra'yı Hogwarts'tayken icat etti ve İksirler kitabına yazdı. Görünüşe göre pek çok kişiye bundan bahsetmemiş, hatta hiç kimseye söylememiş olması da mümkün. "Harry kitabını tekrar kaldırmak üzereyken bir say...
108
How can I add a delay to a program in C#?
C# içinde bir programa gecikme nasıl ekleyebilirim?
Use a timer with an interval set to 2–3 seconds. You have three different options to choose from, depending on which type of application you're writing: * ```System.Timers.Timer``` * ```System.Windows.Forms.Timer``` * ```System.Threading.Timer``` Don't use ```Thread.Sleep``` if your application need to process any in...
2-3 saniyelik bir aralık ayarlanmış bir zamanlayıcı kullanın. Yazdığınız uygulama türüne bağlı olarak aralarından seçim yapabileceğiniz üç farklı seçeneğiniz vardır: * ```System.Timers.Timer``` * ```System.Windows.Forms.Timer``` * ```System.Threading.Timer``` Uygulamanızın aynı anda o iş parçacığında herhangi bir gir...
109
I'm trying to write a Bash script that will overwrite an existing directory. I have a directory ```foo/``` and I am trying to overwrite ```bar/``` with it. But when I do this: ```cp -Rf foo/ bar/ ``` a new ```bar/foo/``` directory is created. I don't want that. There are two files in ```foo/```; ```a``` and ```b```. Th...
Mevcut bir dizini üzerine yazacak bir Bash betiği yazmaya çalışıyorum. ```foo/``` dizinim var ve ```bar/``` dizinini onunla üzerine yazmaya çalışıyorum. Ancak bunu yaptığımda: ```cp -Rf foo/ bar/ ``` yeni bir ```bar/foo/``` dizini oluşturuluyor. Bunu istemiyorum. ```foo/``` dizininde ```a``` ve ```b``` adında iki dosya...
If you want to ensure ```bar/``` ends up identical to ```foo/```, use ```rsync``` instead: ```rsync -a --delete foo/ bar/ ``` If just a few things have changed, this will execute much faster than removing and re-copying the whole directory. * ```-a``` is 'archive mode', which copies faithfully files in ```foo/``` to `...
```bar/```'ın ```foo/``` ile aynı olmasını sağlamak istiyorsanız bunun yerine ```rsync``` kullanın: ```rsync -a --delete foo/ bar/ ``` Sadece birkaç şey değiştiyse, bu tüm dizini kaldırıp yeniden kopyalamaktan çok daha hızlı çalışacaktır. * ```-a```, ```foo/``` içindeki dosyaları ```bar/```'a sadakatle kopyalayan 'arş...
110
Is there a particular reason the elves die off so fast? After the first war against Sauron, I recall the elves being decimated, to the point that they're almost useless army-wise in the trilogy. But I'm guessing men suffered equal or greater losses as well. Anyways, other races just seem much more capable of repopulati...
Elflerin bu kadar hızlı ölmesinin özel bir nedeni var mı? Sauron'a karşı ilk savaştan sonra, elflerin neredeyse onursuz bir ordu haline geldikleri noktaya kadar azaldığını hatırlıyorum. Ama sanırım insanlar da eşit veya daha fazla kayıp yaşadı. Her neyse, diğer ırklar yeniden çoğalmada daha yetenekli görünüyor, oysa in...
Tolkien himself addresses this in an essay called "Laws and Customs Among the Eldar". There are essentially two problems: * Elvish libido diminishes over time. Contrary to popular belief (and outward appearance, from a human perspective), Elves do age; and as they get older, they get less interested in procr...
Tolkien'in kendisi bunu "Eldarlar Arasındaki Yasalar ve Gelenekler" adlı bir denemede ele alır. Esasen iki sorun vardır: * Elf libidosu zamanla azalır. Yaygın inanışın (ve insan bakış açısından dış görünüşün) aksine Elfler yaşlanır; ve yaşlandıkça üremeye daha az ilgi duyarlar. * Çocuk sahibi olmak yorucu bir iştir. E...
111
Reasons for being vegetarian or vegan other than ethical reasons?
Etik nedenler dışında vejetaryen veya vegan olmanın nedenleri?
There are multiple reasons why people are/become Vegetarian/Vegan apart from ethics, including but not limited to * Religion/Culture - most of the worlds Vegetarians reside in India, mainly due to culture/personal beliefs but often interlinked with some of their major religions (Hinduism/Sikhism/Jainism etc) which pro...
İnsanların etik nedenlerin dışında vejetaryen/vegan olmasının/olmalarının birden fazla nedeni vardır, bunlar şunları içerir ancak bunlarla sınırlı değildir: * Din/Kültür - Dünyadaki vejetaryenlerin çoğu Hindistan'da yaşamaktadır, bunun başlıca nedeni kültür/kişisel inançlardır ancak genellikle diyetlerini teşvik eden ...
112
My mom has a green card that expires 2028 but has been out of the US in the UK for over a year due to COVID travel restrictions. Can she enter now?
Annem 2028'de süresi dolacak bir yeşil karta sahip ancak COVID seyahat kısıtlamaları nedeniyle bir yıldan fazla süredir İngiltere'de ABD dışında. Şimdi girebilir mi?
Assuming she doesn't have a valid Re-entry Permit, she technically doesn't have one of the accepted documents for entry of a returning immigrant, as listed in 8 CFR 211.1(a). A green card is not one of the accepted documents after an absence of more than 1 year, and she doesn't have any of the other documents, like a R...
Geçerli bir Yeniden Giriş İzni olmadığını varsayarsak, teknik olarak 8 CFR 211.1(a)'da listelendiği gibi geri dönen bir göçmenin girişine izin verilen kabul edilen belgelerden birine sahip değildir. 1 yıldan fazla bir süre uzak kaldıktan sonra yeşil kart kabul edilen belgelerden biri değildir ve Yeniden Giriş İzni veya...
113
What is the LXX and why is it so noteworthy that there is a Greek translation of the OT? Wouldn't it be better to directly reference manuscripts in the original languages?
LXX nedir ve Eski Ahit'in bir Yunanca çevirisinin olması neden bu kadar dikkate değerdir? İlk dillerindeki el yazmalarına doğrudan atıfta bulunmak daha iyi olmaz mıydı?
Before 1947, a good case could be made that the Septuagint represented a more ancient tradition than the Masoretic versions of the Tanakh. Since the Septuagint was produced before 132 BCE (and probably in the 3rd century BCE) and the earliest known Masoretic manuscripts date to the 10th century CE, the Greek translati...
1947'den önce, Septuagint'in Tanah'ın Masoretik versiyonlarından daha eski bir geleneği temsil ettiği iyi bir argüman sunulabilirdi. Septuagint'in MÖ 132'den önce (ve muhtemelen MÖ 3. yüzyılda) oluşturulduğu ve en eski bilinen Masoretik el yazmalarının MS 10. yüzyıla tarihlenmesine rağmen, Yunanca çeviri metinlerin Kut...
114
I have to disable inputs at first and then on click of a link to enable them. This is what I have tried so far, but it doesn't work. HTML: ``` ``` jQuery: ```$("#edit").click(function(event){ event.preventDefault(); $('.inputDisabled').removeAttr("disabled") }); ``` This shows me ```true``` and then ```false``` ...
İlk önce girdileri devre dışı bırakmam ve ardından bunları etkinleştirmek için bir bağlantıya tıklamam gerekiyor. Şimdiye kadar denediğim şey bu, ancak işe yaramıyor. HTML: ``` ``` jQuery: ```$("#edit").click(function(event){ event.preventDefault(); $('.inputDisabled').removeAttr("disabled") }); ``` Bu bana önce...
Always use the ```prop()``` method to enable or disable elements when using jQuery (see below for why). In your case, it would be: ```$("#edit").click(function(event){ event.preventDefault(); $('.inputDisabled').prop("disabled", false); // Element(s) are now enabled. }); ``` jsFiddle example h...
jQuery kullanırken öğeleri etkinleştirmek veya devre dışı bırakmak için her zaman ```prop()``` yöntemini kullanın (nedenini aşağıda bulabilirsiniz). Sizin durumunuzda şöyle olurdu: ```$("#edit").click(function(event){ event.preventDefault(); $('.inputDisabled').prop("disabled", false); // Öğel...
115
I'm no expert in darkroom photography, but it seems a little odd that there is a type of light that doesn't affect film or developing paper etc. So why is a dark-room safelight safe?
Karanlık oda fotoğrafçılığı konusunda uzman değilim ama filmi veya banyo kağıdını vb. etkilemeyen bir ışık türünün olması biraz tuhaf görünüyor. Peki neden karanlık oda güvenli ışığı güvenlidir?
Photo films and papers are made from salts of silver that naturally only darken when exposed to violet or blue light. In the early days of photography, this was all that was available. Therefore these films and papers are able to be handled under any light source that does not radiate blue light. By the way, the violet...
Fotoğraf filmleri ve kağıtları, doğal olarak yalnızca mor veya mavi ışığa maruz kaldıklarında koyulaşan gümüş tuzlarından yapılır. Fotoğrafçılığın ilk günlerinde, mevcut olan tek şey buydu. Bu nedenle bu filmler ve kağıtlar, mavi ışık yaymayan herhangi bir ışık kaynağı altında işlenebilir. Bu arada, ışığın mor ve mavi ...
116
With the command: ```ls -la * ``` I can list all my symbolic links. How can I remove all symbolic links which are linked to a special folder? For example: In my directory ```usr/local/bin``` I have the following entries: ```lrwxrwxrwx 1 root root 50 Apr 22 14:52 allneeded -> /usr/local/texlive/2011/bin/x86_64-linux/al...
Şu komutla: ```ls -la * ``` Tüm sembolik bağlantılarımı listeleyebilirim. Özel bir klasöre bağlı olan tüm sembolik bağlantıları nasıl kaldırabilirim? Örneğin: ```usr/local/bin``` dizinimde şu girdiler var: ```lrwxrwxrwx 1 root root 50 Apr 22 14:52 allneeded -> /usr/local/texlive/2011/bin/x86_64-linux/allneeded lrwxrwxr...
Please make sure to read the alternative answer. It's even more to the point although not voted as high at this point. You can use this to delete all symbolic links: ```find -type l -delete ``` with modern ```find``` versions. On older find versions it may have to be: ```find -type l -exec rm {} \; # or find -type l -e...
Lütfen alternatif cevabı okuduğunuzdan emin olun. Şu anda çok fazla oy almamış olsa da daha da konuya uygun. Tüm sembolik bağlantıları silmek için bunu kullanabilirsiniz: ```find -type l -delete ``` modern ```find``` sürümleriyle. Daha eski find sürümlerinde şu şekilde olması gerekebilir: ```find -type l -exec rm {} \;...
117
Did Aztecs know how many continents there are on earth?
Aztekler dünyada kaç kıta olduğunu biliyor muydu?
Do you know how many continents there are on Earth? Is Europe a separate continent from Asia? Is Australia the biggest island or the smallest continent? Is Antarctica an ice-locked archipelago or a continent? Are the Americas one continent or two? (All of those questions can be answered reasonably either way.) The se...
Dünya'da kaç kıta olduğunu biliyor musunuz? Avrupa, Asya'dan ayrı bir kıta mıdır? Avustralya en büyük ada mı yoksa en küçük kıta mıdır? Antarktika buzla kaplı bir takımada mı yoksa bir kıta mıdır? Amerika kıtaları bir kıta mı yoksa iki kıta mıdır? (Tüm bu sorular makul bir şekilde her iki şekilde de cevaplanabilir.) A...
118
What did the Soviet Union and Russia bring to the ISS?
Sovyetler Birliği ve Rusya ISS'ye ne getirdi?
Initially, everything. The ISS started out as Mir-2 with some extra modules added soon afterwards. Then lots more over the next 10 years. The initial modules, Zarya and Zvezda, which housed living quarters, reboost, attitude control, solar power, life support, and docking modules. Each additional component and module m...
Başlangıçta her şey. ISS, Mir-2 olarak başladı ve kısa süre sonra bazı ek modüller eklendi. Sonraki 10 yıl boyunca çok daha fazlası. Yaşam alanları, yeniden hızlandırma, tutum kontrolü, güneş enerjisi, yaşam desteği ve yerleştirme modüllerini barındıran ilk modüller Zarya ve Zvezda. Her ek bileşen ve modül sistemi daha...
119
What utility can move my Windows boot partition over to another hard drive? My preference is that it would be really easy. * Boot into Windows * Pick drive to move * Pick target drive * It copies everything over, and reboots to the correct partition.
Windows önyükleme bölümümü başka bir sabit sürücüye taşıyabilecek hangi yardımcı program? Tercihim gerçekten kolay olması yönünde. * Windows'u başlat * Taşınacak sürücüyü seç * Hedef sürücüyü seç * Her şeyi kopyalar ve doğru bölüme yeniden başlatır.
## DriveImage XML DriveImage XML will do the job. It runs from within Windows and it can copy directly from drive to drive. A lot of people rave about it after good experiences with the software. DriveImage XML is an easy to use and reliable program for imaging and backing up partitions and logical drives. Image cre...
## DriveImage XML DriveImage XML işi halleder. Windows içinden çalışır ve doğrudan sürücüden sürücüye kopyalayabilir. Birçok kişi yazılımla iyi deneyimler yaşadıktan sonra bundan övgüyle bahsediyor. DriveImage XML, bölümleri ve mantıksal sürücüleri görüntülemek ve yedeklemek için kullanımı kolay ve güvenilir bir progr...
120
What's the difference between ASCII and Unicode?
ASCII ve Unicode arasındaki fark nedir?
ASCII has 128 code points, 0 through 127. It can fit in a single 8-bit byte, the values 128 through 255 tended to be used for other characters. With incompatible choices, causing the code page disaster. Text encoded in one code page cannot be read correctly by a program that assumes or guessed at another code page. ...
ASCII'nin 0'dan 127'ye kadar 128 kod noktası vardır. Tek bir 8 bitlik bayta sığabilir, 128'den 255'e kadar olan değerler diğer karakterler için kullanılma eğilimindeydi. Uyumsuz seçimlerle kod sayfası felaketine neden oldu. Bir kod sayfasında kodlanan metin, başka bir kod sayfasını varsayan veya tahmin eden bir program...
121
Reasons why healthy people would intentionally want to get infected?
Sağlıklı insanların neden kasıtlı olarak enfekte olmak istediklerinin nedenleri?
Because some self-proclaimed health guru claims that it's good for you to have that disease. The miracle-virus causes your body to absorb free cosmic energies. Your constantly raising body temperature is proof that it works. The headache you feel is because your brain is reconfiguring itself to become more effective. ...
Çünkü kendini sağlık gurusu ilan eden bazı kişiler bu hastalığa yakalanmanın sizin için iyi olduğunu iddia ediyor. Mucize virüs, vücudunuzun serbest kozmik enerjileri emmesine neden olur. Sürekli yükselen vücut ısınız bunun işe yaradığının kanıtıdır. Hissettiğiniz baş ağrısı, beyninizin daha etkili hale gelmek için ke...
122
In The Avengers, the Council contacted Nick Fury and supposedly, they want to nuke Manhattan. Nick didn't agree so they contacted a S.H.I.E.L.D. operative to nuke Manhattan. When they found out that an unauthorized jet was trying to fly, Nick grabbed a rocket launcher and fired it at the jet, which was a decoy and the ...
Avengers'ta Konsey, Nick Fury ile iletişime geçti ve Manhattan'ı nükleer silahla vurmak istediklerini söyledi. Nick kabul etmeyince Manhattan'ı nükleer silahla vurmak için bir S.H.I.E.L.D. ajanıyla iletişime geçtiler. Yetkisiz bir jetin uçmaya çalıştığını öğrendiklerinde Nick bir roketatar kaptı ve jete ateş etti, anca...
If that was the real plane carrying a nuke enough to level Manhattan, wouldn't the nuke explode and destroy the base along with them if he fired a rocket launcher at it? No. Detonating a modern nuclear device is, in fact, incredibly difficult and merely shooting down the aircraft carrying it would not be sufficient. ...
Manhattan'ı yerle bir edecek kadar nükleer silah taşıyan gerçek uçak buysa, ona roketatarla ateş etmesi durumunda nükleer silah patlamaz mı ve üssü de onlarla birlikte yok etmez mi? Hayır. Modern bir nükleer cihazı patlatmak aslında inanılmaz derecede zordur ve onu taşıyan uçağı sadece düşürmek yeterli olmaz. Aslında,...
123
Since I created my repository it appears that the tags I have been creating are not pushed to the repository. When I do ```git tag``` on the local directory all the tags are present, but when I logon to the remote repository and do a ```git tag```, only the first few show up. What could the problem be?.
Depoyu oluşturduğumdan beri oluşturduğum etiketlerin depoya yüklenmediği anlaşılıyor. Yerel dizinde ```git tag``` yaptığımda tüm etiketler mevcut, ancak uzak depoya giriş yaptığımda ve ```git tag``` yaptığımda yalnızca ilk birkaç etiket görünüyor. Sorun ne olabilir?
In default git remote configuration you have to push tags explicitly (while they are fetched automatically together with commits they point to). You need to use ``` $ git push <remote> tag <tagname> ``` to push a single tag, ``` $ git push <remote> --tags ``` to push all tags (or ```git push --tags``` to push to defau...
Varsayılan git uzaktan yapılandırmasında etiketleri açıkça itmeniz gerekir (otomatik olarak işaret ettikleri commit'lerle birlikte alındıklarında). Tek bir etiketi itmek için kullanmanız gerekir ``` $ git push <uzaktan> etiket <etiket adı> ``` tüm etiketleri itmek için (veya varsayılan uzaktan, genellikle ```origin```...
124
How do I add Git submodule to a sub-directory?
Git alt modülünü bir alt dizine nasıl eklerim?
You go into ~/.janus and run: ```git submodule add <git@github ...> snipmate-snippets/snippets/``` If you need more information about submodules (or git in general) ProGit is pretty useful.
~/.janus'a gidin ve çalıştırın: ```git submodule add <git@github ...> snipmate-snippets/snippets/``` Alt modüller (veya genel olarak git) hakkında daha fazla bilgiye ihtiyacınız varsa ProGit oldukça kullanışlıdır.
125
Given that Kohn-Sham DFT is strictly a ground-state method (at 0 K), how is it sufficient to describe materials in real-life applications?
Kohn-Sham DFT'nin kesinlikle bir temel durum yöntemi (0 K'de) olduğu göz önüne alındığında, gerçek yaşam uygulamalarındaki malzemeleri tanımlamak için nasıl yeterlidir?
These are a few extra points to complement Andrew Rosen's comprehensive response: * To be absolutely clear, typical DFT calculations are not performed at 0K, a better description of what happens is that they are performed "for a static crystal". Static crystal means that the atoms are fixed at their crystallographic p...
İşte Andrew Rosen'in kapsamlı cevabını tamamlayan birkaç ek nokta: * Kesinlikle açık olmak gerekirse, tipik DFT hesaplamaları 0K'de yapılmaz, olan bitenin daha iyi bir açıklaması "statik bir kristal için" yapıldıklarıdır. Statik kristal, atomların kristalografik konumlarında sabitlendiği anlamına gelir (tipik bir DFT ...
126
I don't really get the difference between gain and volume boost. So if I understand correctly, gain directly boosts a signal from a line or input while volume handles the output. Volume isn't really for boosting either. Would this mean, in most settings, getting 'close to' as much gain as possible without any hiss/bac...
Gain ve ses yükseltme arasındaki farkı tam olarak anlamıyorum. Dolayısıyla doğru anladıysam, gain doğrudan bir hat veya girdiden gelen bir sinyali yükseltirken ses çıkışı işler. Ses yükseltme de yükseltme için değildir. Bu, çoğu durumda, tıslama/arka plan gürültüsü olmadan mümkün olduğunca fazla gain elde etmenin idea...
Here's a brief overview to get you started. Hopefully this helps! * 'Gain' controls are typically used to get a good input level. So for example if you had a microphone with a very low output signal, you would boost the gain to get a better level into your mixing desk or audio interface. If you had a synthesizer plugg...
İşte başlamanız için kısa bir genel bakış. Umarım yardımcı olur! * 'Gain' kontrolleri genellikle iyi bir giriş seviyesi elde etmek için kullanılır. Yani örneğin çok düşük bir çıkış sinyaline sahip bir mikrofonunuz varsa, miksaj masanıza veya ses arayüzünüze daha iyi bir seviye elde etmek için gain'i yükseltirsiniz. Ta...
127
I recently had someone claim (on an unrelated SE site I won't link to) that it is the responsibility of a player to correctly identify their hand, that what you &quot;call&quot; your hand determines the winner: For example, you have an Ace, King, Queen, Jack, and Ten. You call your hand and say, &quot;I have a Straigh...
Yakın zamanda biri (bağlantısını vermeyeceğim alakasız bir SE sitesinde) bir oyuncunun elini doğru bir şekilde tanımlamasının kendi sorumluluğu olduğunu, elinize "ne dediğinizin" kazananı belirlediğini iddia etti: Örneğin, bir As, Papaz, Kız, Vale ve On'unuz var. Elinizi çağırıp "Straight'im var!" diyorsunuz. Ama bu s...
Casinos in the US generally have the "cards speak" rule. That is, when a hand is properly tabled--exposed to everyone at showdown--it is the responsibility of all players, the dealer, floormen, and anyone else present to see that the pot is awarded to the best hand shown, regardless of what the players might say. Some...
ABD'deki casinolar genellikle "kartlar konuşur" kuralına sahiptir. Yani, bir el düzgün bir şekilde masaya konduğunda (açılışta herkese gösterildiğinde), oyuncuların, krupiyenin, salon görevlilerinin ve orada bulunan diğer herkesin, oyuncuların ne söylediğine bakılmaksızın, potun gösterilen en iyi ele verilmesini sağlam...
128
How to get the first item from an associative PHP array?
Bir PHP ilişkisel dizisinden ilk öğeyi nasıl alabilirim?
PHP If you don't know enough about the array (you're not sure whether the first key is foo or bar) then the array might well also be, maybe, empty. So it would be best to check, especially if there is the chance that the returned value might be the boolean FALSE: ```$value = empty($arr) ? $default : reset($arr); ``` T...
PHP Dizi hakkında yeterince bilginiz yoksa (ilk anahtarın foo mu yoksa bar mı olduğundan emin değilseniz), dizi muhtemelen boş olabilir. Bu nedenle, özellikle döndürülen değerin boolean FALSE olma ihtimali varsa kontrol etmek en iyisidir: ```$value = empty($arr) ? $default : reset($arr); ``` Yukarıdaki kod ```reset``` ...
129
Why do people write #!/usr/bin/env python on the first line of a Python script?
İnsanlar neden bir Python betiğinin ilk satırına #!/usr/bin/env python yazarlar?
In order to run the python script, we need to tell the shell three things: * That the file is a script * Which interpreter we want to execute the script * The path of said interpreter The shebang ```#!``` accomplishes (1.). The shebang begins with a ```#``` because the ```#``` character is a comment marker in many sc...
Python betiğini çalıştırmak için kabuğa üç şey söylememiz gerekir: * Dosyanın bir betik olduğunu * Betiği çalıştırmak istediğimiz yorumlayıcıyı * Söz konusu yorumlayıcının yolunu Shebang ```#!``` (1.)'i gerçekleştirir. Shebang ```#``` ile başlar çünkü ```#``` karakteri birçok betik dilinde yorum işaretidir. Bu nedenl...
130
Nowadays each graphic card has some driver in operating system that translates some (typically) standard API such as OpenGL, so that programmers use some standardized API code to tell graphics cards how and what they want to render. (Actually that's already a bit hard-core most programmers really use various game engin...
Günümüzde her grafik kartının işletim sisteminde, OpenGL gibi bazı (genellikle) standart API'leri çeviren bir sürücü vardır, böylece programcılar grafik kartlarına nasıl ve neyi işlemek istediklerini söylemek için bazı standartlaştırılmış API kodları kullanırlar. (Aslında bu biraz zorlu bir iştir, çoğu programcı bunu o...
> Did every programmer of every game implemented all possible various API's that old graphic cards supported? Yes - but it went even deeper than that. Early graphics cards had virtually no callable code associated with them at all, the concept of "drivers" had not quite become a reality yet. There was the concept of a...
Herhangi bir oyunun her programcısı, eski grafik kartlarının desteklediği tüm olası çeşitli API'ları uyguladı mı? Evet - ancak bundan daha da derine indi. İlk grafik kartlarının neredeyse hiç çağrılabilir kodu yoktu, "sürücüler" kavramı henüz tam olarak bir gerçeklik haline gelmemişti. ```INT 10h``` BIOS video hizmetl...
131
Why is it "behead" and not "dehead"?
Neden "behead" ve "dehead" değil?
We didn’t use de-head because we already had a verb behead by the time we started using de- to create verbs: behead was a verb in Old English, behéafdian. So behead was already used long before the de- privative prefix came to be used productively in English. That didn’t happen until Modern English with a few product...
Başını kesmek için de- ön ekini kullanmadık çünkü de- ön ekini kullanarak fiil oluşturmaya başladığımızda zaten behead fiilimiz vardı: behead, Eski İngilizcede behéafdian şeklinde bir fiildi. Yani behead, de- olumsuzluk ön eki İngilizcede üretken bir şekilde kullanılmaya başlamadan çok önce kullanılıyordu. Bu, Modern ...
132
Why do many vinyl albums of classical music have Sides 1 / 4 on the first record and 2 / 3 on the second? An example of this is the RCA Red Seal recording of Beethoven's 9th Symphony by the Boston Symphony Orchestra.
Neden birçok klasik müzik vinil albümünün ilk plağında 1/4, ikinci plağında ise 2/3 tarafları vardır? Bunun bir örneği, Boston Senfoni Orkestrası tarafından icra edilen Beethoven'ın 9. Senfonisi'nin RCA Red Seal kaydıdır.
Many phonographs were able to play multiple records in sequence with a mechanism that would hold one or more records on the turntable, and one or more additional records elevated on the center post. At the end of one record, the mechanism sensed the tone arm reaching close to the center of the record, and then lifted i...
Birçok fonograf, pikapta bir veya daha fazla plak tutan ve orta direğe bir veya daha fazla ek plak yükselten bir mekanizma ile sırayla birden fazla plak çalabiliyordu. Bir plağın sonunda, mekanizma ton kolunun plağın merkezine yaklaştığını algıladı ve ardından onu kaldırdı, plağın kenarının ötesine çekti. Sistem daha s...
133
Why isn't the market dropping like a stone with all the bad news?
Tüm bu kötü haberlerle piyasa neden taş gibi düşmüyor?
Market reactions to information are not always timely, proportional, or rational. We don't know the full impact of our current situation; we're feeling it out. * Some people (bulls), believe that the initial dip was an over-reaction, that the government response will prevent further decline, and/or that things will g...
Piyasaların bilgiye tepkileri her zaman zamanında, orantılı veya rasyonel olmayabilir. Mevcut durumumuzun tam etkisini bilmiyoruz; bunu hissediyoruz. * Bazı insanlar (boğalar), ilk düşüşün aşırı bir tepki olduğuna, hükümetin tepkisinin daha fazla düşüşü önleyeceğine ve/veya işlerin oldukça hızlı bir şekilde normale dö...
134
What are Null Pointer Exceptions (```java.lang.NullPointerException```) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Null Pointer İstisnaları (```java.lang.NullPointerException```) nedir ve bunlara ne sebep olur? İstisnanın programın erken sonlanmasına neden olmasını durdurmak için nedenini belirlemek için hangi yöntemler/araçlar kullanılabilir?
There are two overarching types of variables in Java: 1. Primitives: variables that contain data. If you want to manipulate the data in a primitive variable you can manipulate that variable directly. By convention primitive types start with a lowercase letter. For example variables of type `int` or `char` are primitiv...
Java'da iki genel değişken türü vardır: 1. İlkel Değişkenler: Veri içeren değişkenler. Bir ilkel değişkendeki verileri işlemek istiyorsanız, bu değişkeni doğrudan işleyebilirsiniz. Geleneksel olarak ilkel türler küçük harfle başlar. Örneğin `int` veya `char` türündeki değişkenler ilkeldir. 2. Referanslar: Bir `Nesne`...
135
In Raiders of the Lost Ark, at the Ark opening ceremony the Nazi troops brings the Ark of the Covenant to the top of the mountain as Belloq said something before opening the Ark. Then they took the sand from the Ark and suddenly spirits coming out from the Ark and they're all killed (except Indy and Marion) by the free...
Kayıp Ark Avcıları'nda, Sandığın açılış töreninde Nazi birlikleri Sandığı dağın tepesine getirirken Belloq Sandığı açmadan önce bir şeyler söyledi. Sonra Sandıktan kum aldılar ve aniden Sandıktan ruhlar çıkmaya başladı ve Sandıktan çıkan serbest ruhlar tarafından hepsi öldürüldü (Indy ve Marion hariç). Bu sırada Indy, ...
There was a deleted scene that explained it: A plot element involving the Ark of the Covenant was cut from the film and is only hinted at during the finale when the Ark is opened. Basically, there were 2 rules about the Ark not mentioned in the final cut of the film: * If you touch the Ark, you die * If y...
Bunu açıklayan silinmiş bir sahne vardı: Ahit Sandığı'nı içeren bir olay örgüsü filmden çıkarıldı ve sadece finalde Sandık açıldığında ima edildi. Temel olarak, filmin son halinde bahsedilmeyen Sandık hakkında 2 kural vardı: * Sandığa dokunursan ölürsün * Sandık açıldığında ona bakarsan ölürsün Bu ilk olarak Indy ve...
136
What is likely to happen when you plug two ends of a network cable to a single switch/router? Will this create problems on the network, or just be ignored?
Bir ağ kablosunun iki ucunu tek bir anahtar/yönlendiriciye taktığınızda ne olması muhtemeldir? Bu ağda sorunlara neden olur mu yoksa sadece göz ardı mı edilir?
It depends on the router/switch. If it's "Managed" - Like decent Netgear, Cisco or HP Procurve, or has STP (Spanning Tree Protocol) or one of its variants enabled, there's a few seconds of absolute insanity, then the switch realises that there's a loop in the network topology, and blocks one of the ports. (I've only ...
Bu yönlendirici/anahtara bağlıdır. "Yönetilen" ise - Netgear, Cisco veya HP Procurve gibi iyi bir cihazsa veya STP (Spanning Tree Protocol) veya varyantlarından biri etkinleştirilmişse, birkaç saniyelik tam bir çılgınlık olur, ardından anahtar ağ topolojisinde bir döngü olduğunu fark eder ve bağlantı noktalarından biri...
137
What command do I use to find the size of all the files (recursively) in a Linux or Mac OS X directory?
Linux veya Mac OS X dizinindeki tüm dosyaların boyutunu (yinelemeli olarak) bulmak için hangi komutu kullanırım?
The BSD version of ```du``` used in OS X reports size with 512-byte blocks -- the sizes are essentially rounded up to the next 512-byte value. This tells you the space on disk, which is larger than the amount of data. If you have a lot of small files, the difference can be large. Here's an example. This is the value wi...
OS X'te kullanılan ```du```'nun BSD sürümü boyutu 512 baytlık bloklarla bildirir -- boyutlar esasen bir sonraki 512 baytlık değere yuvarlanır. Bu size diskteki alanı söyler, bu da veri miktarından daha büyüktür. Çok sayıda küçük dosyanız varsa, fark büyük olabilir. İşte bir örnek. Bu, normal ```du``` ile elde edilen de...
138
I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e. ```MyClass *m = (MyClass *)ptr; ``` all over the place, but there seem to be two other types of casts, and I don't know the difference. What's the...
Yaklaşık yirmi yıldır C ve C++ kodu yazıyorum, ancak bu dillerin hiç anlamadığım bir yönü var. Açıkçası her yerde normal dönüşümleri kullandım, yani ```MyClass *m = (MyClass *)ptr; ``` Ancak iki tür dönüşüm daha varmış gibi görünüyor ve farkını bilmiyorum. Aşağıdaki kod satırları arasındaki fark nedir? ```MyClass *m = ...
## static_cast `static_cast` is used for cases where you basically want to reverse an implicit conversion, with a few restrictions and additions. `static_cast` performs no runtime checks. This should be used if you know that you refer to an object of a specific type, and thus a check would be unnecessary. Here is an e...
## static_cast `static_cast` birkaç kısıtlama ve eklemeyle örtük dönüşümü tersine çevirmek istediğiniz durumlarda kullanılır. `static_cast` çalışma zamanı denetimi yapmaz. Bu, belirli bir türdeki bir nesneye başvurduğunuzu bildiğinizde ve bu nedenle bir denetimin gereksiz olacağı durumlarda kullanılmalıdır. İşte bir ö...
139
Why don't toilets use saltwater?
Neden tuvaletler tuzlu su kullanmaz?
The main answer is logistical. Building a network of pipes to convey water to houses is a major effort, and most places where that's been done found it extremely expensive. Providing a second set of pipes to bring salt water to houses would probably cost about the same. Except that cities go to considerable lengths to ...
Ana cevap lojistiktir. Evlere su taşımak için boru ağı kurmak büyük bir çabadır ve bunu yapan çoğu yer bunu son derece pahalı bulmuştur. Evlere tuzlu su getirmek için ikinci bir boru seti sağlamak muhtemelen aynı maliyete mal olacaktır. Şehirler, pompalama için çok fazla enerji kullanmak zorunda kalmamak için su rezerv...
140
How do I modify fields inside the new PostgreSQL JSON datatype?
Yeni PostgreSQL JSON veri türü içindeki alanları nasıl değiştiririm?
With Postgresql 9.5 it can be done by following- ```UPDATE test SET data = data - 'a' || '{"a":5}' WHERE data->>'b' = '2'; ``` OR ```UPDATE test SET data = jsonb_set(data, '{a}', '5'::jsonb); ``` Somebody asked how to update many fields in jsonb value at once. Suppose we create a table: ```CREATE TABLE testjsonb ( id ...
Postgresql 9.5 ile aşağıdakileri uygulayarak yapılabilir- ```UPDATE test SET data = data - 'a' || '{"a":5}' WHERE data->>'b' = '2'; ``` VEYA ```UPDATE test SET data = jsonb_set(data, '{a}', '5'::jsonb); ``` Birisi jsonb değerindeki birçok alanı bir kerede nasıl güncelleyeceğini sordu. Bir tablo oluşturacağımızı varsay...
141
I find that the survivability and general performance of my party increases massively from levels 1 to 2. At times, level 1 feels like a completely different game from level 2. However, I can't fathom how or why. I think that the availability of healing has something to do with it. From a mechanical perspective, is the...
Partimdeki hayatta kalma ve genel performansın 1. seviyeden 2. seviyeye kadar büyük ölçüde arttığını görüyorum. Bazen 1. seviye, 2. seviyeden tamamen farklı bir oyun gibi hissettiriyor. Ancak nasıl veya neden olduğunu anlayamıyorum. Bunun iyileştirme olanaklarıyla bir ilgisi olduğunu düşünüyorum. Mekanik bir bakış açıs...
Welcome to Rusty Dagger Shanktown! What you have noticed is very widely commented upon—1st level is often called “rusty dagger shanktown.” It’s hyper-lethal, rather than the kind of heroic fantasy Dungeons & Dragons pitches itself as. It is very, very difficult for 1st-level PCs to actually really adventure at all. Man...
Rusty Dagger Shanktown'a hoş geldiniz! Fark ettiğiniz şey çok yaygın bir şekilde yorumlanıyor—1. seviye genellikle "rusty dagger shanktown" olarak adlandırılıyor. Kahramanca fantezi Dungeons & Dragons'un kendini sunduğu türden ziyade aşırı ölümcül. 1. seviye PC'lerin gerçekten maceraya atılması çok, çok zor. Birçok, bi...
142
In my table view I have to scroll to the top. But I cannot guarantee that the first object is going to be section 0, row 0. May be that my table view will start from section number 5. So I get an exception, when I call: ```[mainTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPositio...
Tablo görünümümde en üste kaydırmam gerekiyor. Ancak ilk nesnenin 0. bölüm, 0. satır olacağını garanti edemem. Belki de tablo görünümüm 5. bölüm numarasından başlayacaktır. Bu nedenle şu çağrıyı yaptığımda bir istisna alıyorum: ```[mainTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrol...
Possible Actions: 1 ```func scrollToFirstRow() { let indexPath = NSIndexPath(forRow: 0, inSection: 0) self.tableView.scrollToRowAtIndexPath(indexPath, atScrollPosition: .Top, animated: true) } ``` 2 ```func scrollToLastRow() { let indexPath = NSIndexPath(forRow: objects.count - 1, inSection: 0) se...
Olası Eylemler: 1 ```func scrollToFirstRow() { let indexPath = NSIndexPath(forRow: 0, inSection: 0) self.tableView.scrollToRowAtIndexPath(indexPath, atScrollPosition: .Top, animated: true) } ``` 2 ```func scrollToLastRow() { let indexPath = NSIndexPath(forRow: objects.count - 1, inSection: 0) self.table...
143
While in Phd I developed a lot of code that I want to turn into start-up. Can I do this?
Doktora yaparken başlangıç ​​aşamasına dönüştürmek istediğim birçok kod geliştirdim. Bunu yapabilir miyim?
I'm not aware of any blanket prohibition, anywhere, that say that you can't use code developed during a PhD for a commercial venture - but most Universities in the US will have some kind of intellectual property agreement in place to state what the process is for doing this. You will need to check with officials at you...
Hiçbir yerde, doktora sırasında geliştirilen kodun ticari bir girişim için kullanılamayacağını söyleyen genel bir yasağın olduğunun farkında değilim - ancak ABD'deki çoğu üniversitede bunu yapmak için bir tür fikri mülkiyet anlaşması olacaktır. Hangi anlaşmalara tabi olduğunuzu görmek için üniversitenizdeki yetkililerl...
144
I have heard multiple times in photography, the words Bokeh, and Gaussian Blur. To me, it seems that the words are used almost interchangeably, but in some instances, I have heard them contrasted. What's the difference, and what are the definitions of each of them?
Fotoğrafçılıkta Bokeh ve Gauss Bulanıklığı kelimelerini birçok kez duydum. Bana göre bu kelimeler neredeyse birbirinin yerine kullanılsa da bazı durumlarda zıt anlamlı olarak kullanıldıklarını duydum. Aralarındaki fark nedir ve her birinin tanımı nedir?
Bokeh is specifically the out-of-focus areas of an image. Gaussian blur is an algorithm to fog selected image areas, to hide details or make them look out of focus. The main differences: * bokeh is created optically, gaussian blur in post-production; * in bokeh, the amount of how wide an out-of-focus point will be sme...
Bokeh, özellikle bir görüntünün odak dışı alanlarıdır. Gauss bulanıklığı, ayrıntıları gizlemek veya odak dışı görünmelerini sağlamak için seçili görüntü alanlarını buğulamak için kullanılan bir algoritmadır. Temel farklar: * bokeh optik olarak oluşturulur, Gauss bulanıklığı ise son yapımda; * bokeh'te, odak dışı bir ...
145
In 1969, NASA not only went to the moon, but broadcast the whole thing live on TV. How did they achieve the TV broadcast? What technology did they need to use to send a video and audio signal from the moon to earth? Was there much of a lag?
1969'da NASA sadece aya gitmekle kalmadı, aynı zamanda tüm olayı canlı olarak televizyonda yayınladı. TV yayınını nasıl başardılar? Ay'dan Dünya'ya bir video ve ses sinyali göndermek için hangi teknolojiyi kullanmaları gerekiyordu? Çok fazla gecikme var mıydı?
Apollo 11 mission had two modules * Lunar module - which descent to moon carrying two astronauts * command / service module- CSM was designed to return astronauts from the lunar surface on a direct-descent mission to earth and splash down. Direct telecast from the Command service module is not possible but CSM stored...
Apollo 11 görevinde iki modül vardı * Ay modülü - iki astronot taşıyan aya iniş * komuta/hizmet modülü - CSM, astronotları doğrudan iniş göreviyle ay yüzeyinden Dünya'ya döndürmek ve suya inmek üzere tasarlanmıştı. Komuta hizmet modülünden doğrudan yayın mümkün değildi ancak CSM, LM tarafından iletilen konuşmaların k...
146
Why does "elite" rhyme with "beet" rather than "bite"?
"Elite" neden "bite" yerine "beet" ile kafiyelidir?
This has everything to do with the following: * The language of origin of the word and * The point at which the word entered the English language. The reason that the words &quot;light&quot; and &quot;might&quot; and &quot;site&quot; have a diphthong is because they were present in spoken English during the Great Vow...
Bunun aşağıdakilerle her şeyi var: * Kelimenin köken dili ve * Kelimenin İngilizceye girdiği nokta. "Light" ve "might" ve "site" kelimelerinin çift ünlü içermesinin nedeni, 1400'lerde başlayan ve birkaç yüz yıl süren Büyük Ünlü Kayması sırasında konuşulan İngilizcede bulunmalarıdır. Yani İngilizceye çoktan girmiş ola...
147
A lot of ShaderToy demos share the Ray Marching algorithm to render the scene, but they are often written with a very compact style and i can't find any straightforward examples or explanation. So what is Ray Marching? Some comments suggests that it is a variation of Sphere Tracing. What are the computational advantage...
Birçok ShaderToy demosu sahneyi işlemek için Ray Marching algoritmasını paylaşır, ancak bunlar genellikle çok sıkıştırılmış bir tarzda yazılır ve herhangi bir anlaşılır örnek veya açıklama bulamadım. Peki Ray Marching nedir? Bazı yorumlar bunun Sphere Tracing'in bir varyasyonu olduğunu öne sürüyor. Böyle bir yaklaşımın...
## TL;DR They belong to the same family of solvers, where sphere tracing is one method of ray marching, which is the family name. ## Raymarching a definition Raymarching is a technique a bit like traditional raytracing where the surface function is not easy to solve (or impossible without numeric iterative methods). I...
## TL;DR Aynı çözücü ailesine aittirler, burada küre izleme, aile adı olan ışın yürütmenin bir yöntemidir. ## Işın yürütme tanımı Işın yürütme, yüzey işlevinin çözülmesinin kolay olmadığı (veya sayısal yinelemeli yöntemler olmadan imkansız olduğu) geleneksel ışın izleme gibi bir tekniktir. Işın izlemede yalnızca ışın ...
148
Is martial arts training 'inadequate' for the real world?
Dövüş sanatları eğitimi gerçek dünya için 'yetersiz' mi?
Yes, depending on your definitions of martial arts, inadequate, and real world. No, depending on your definitions of martial arts, inadequate, and real world. Surviving an attack (or combat) is all about stacking the deck in your favour: martial arts (arts of Mars, the God of War) do help, so do guns, team mates, arti...
Evet, dövüş sanatları, yetersiz ve gerçek dünya tanımlarınıza bağlı olarak. Hayır, dövüş sanatları, yetersiz ve gerçek dünya tanımlarınıza bağlı olarak. Bir saldırıdan (veya çatışmadan) sağ çıkmak, desteyi sizin lehinize yığmakla ilgilidir: dövüş sanatları (Savaş Tanrısı Mars'ın sanatları) yardımcı olur, silahlar, tak...
149
Make a single page landscape in Google Documents
Google Dokümanlar'da tek sayfalık bir manzara yapın
Currently a single Google Document can only be either Landscape or Portrait not both. Changing page orientation is done by selecting File and then Page setup. It is currently recommended to separate the Landscape and Portrait pages into different documents. A good place to get more information that might help is at Go...
Şu anda tek bir Google Dokümanı yalnızca Yatay veya Dikey olabilir, her ikisi birden olamaz. Sayfa yönünü değiştirmek için Dosya ve ardından Sayfa düzeni seçilir. Şu anda Yatay ve Dikey sayfaları farklı belgelere ayırmanız önerilir. Daha fazla bilgi alabileceğiniz iyi bir yer Google Ürün Forumları'dır. Ek bir seçenek...
150
PHP is writing this error in the logs: "Notice: Use of undefined constant". Error in logs: ```PHP Notice: Use of undefined constant department - assumed 'department' (line 5) PHP Notice: Use of undefined constant name - assumed 'name' (line 6) PHP Notice: Use of undefined constant email - assumed 'email' (line 7) PH...
PHP günlüklerde şu hatayı yazıyor: "Uyarı: Tanımlanmamış sabitin kullanımı". Günlüklerdeki hata: ```PHP Uyarı: Tanımlanmamış sabitin kullanımı - 'department' varsayıldı (satır 5) PHP Uyarısı: Tanımlanmamış sabitin kullanımı - 'name' varsayıldı (satır 6) PHP Uyarısı: Tanımlanmamış sabitin kullanımı - 'email' varsayıldı ...
The error message is due to the unfortunate fact that PHP will implicitly declare an unknown token as a constant string of the same name. That is, it's trying to interpret this (note the missing quote marks): ```$_POST[department] ``` The only valid way this would be valid syntax in PHP is if there was previously a co...
Hata mesajı, PHP'nin bilinmeyen bir belirteci aynı adlı sabit bir dize olarak örtük olarak bildireceği talihsiz gerçeklikten kaynaklanmaktadır. Yani, bunu yorumlamaya çalışıyor (tırnak işaretlerinin eksik olduğuna dikkat edin): ```$_POST[department] ``` PHP'de bunun geçerli söz dizimi olmasının tek geçerli yolu, daha ö...
151
I'm from a very rural area and love to garden, however, for work I just moved into an apartment in the city. I miss being able to grow vegetables and so I attempted to start some leaf lettuce indoors, however, almost every plant died quickly. I'm just curious, does anyone have experience growing vegetables indoors? Wha...
Çok kırsal bir bölgeden geliyorum ve bahçecilik yapmayı çok seviyorum, ancak iş için şehre bir daireye taşındım. Sebze yetiştiremediğim için özlüyorum ve bu yüzden iç mekanda yaprak marul yetiştirmeye çalıştım, ancak hemen hemen her bitki hızla öldü. Sadece merak ediyorum, iç mekanda sebze yetiştirme konusunda deneyimi...
Indoor gardening is a bit more difficult then the regular outdoor gardening, there are several factors but in most cases it boils down to: Temperature, Humidity, Light, The air in your apartment. You didn't mention exactly where your dying plants are being placed. Do you have a fan within the apartment? Plants need ...
Kapalı alanda bahçe işleri, normal açık hava bahçeciliğinden biraz daha zordur, bunun birkaç nedeni vardır ancak çoğu durumda şunlara indirgenebilir: Sıcaklık, Nem, Işık, Dairenizdeki hava. Ölen bitkilerinizin tam olarak nereye yerleştirildiğinden bahsetmediniz. Dairenizde bir vantilatör var mı? Bitkilerin havaya ihti...
152
What are the advantages of studying words by their frequency?
Kelimeleri sıklıklarına göre çalışmanın avantajları nelerdir?
The main advantage is that by learning higher frequency words, you get a greater "bang for your buck" - that is, if you know the most frequent words of the language, you'll be able to understand more of the words you encounter, and therefore you gain the greatest benefit by studying those frequent words first. Accordin...
En büyük avantaj, daha yüksek frekanslı kelimeleri öğrenerek "paranızın karşılığını daha fazla almanızdır" - yani, dilin en sık kullanılan kelimelerini biliyorsanız, karşılaştığınız kelimelerin daha fazlasını anlayabileceksiniz ve bu nedenle öncelikle bu sık kullanılan kelimeleri çalışarak en büyük faydayı elde edersin...
153
I have heard many people saying, “Hah! I beat Stockfish,” and one saying, “I am the best chess player ever! I beat Stockfish.” So I wonder if it is possible, just to know whether I should try to beat it. I tried to play it once; I barely played 25 moves.
Birçok kişinin "Hah! Stockfish'i yendim" dediğini ve birinin de "Ben gelmiş geçmiş en iyi satranç oyuncusuyum! Stockfish'i yendim" dediğini duydum. Bu yüzden denemeye değer mi diye merak ediyorum. Bir kez oynamayı denedim; zar zor 25 hamle yaptım.
The answer is that they either played it on some very handicapped mode, they took back A LOT of moves, or they are probably lying. Stockfish 11 is currently rated about 3607, and that is in standard chess. Computer programs are typically even HARDER to beat for humans at even faster controls. There is a reason elite ...
Cevap ya çok engelli bir modda oynadıkları, bir sürü hamle geri aldıkları ya da muhtemelen yalan söyledikleridir. Stockfish 11 şu anda yaklaşık 3607 puan aldı ve bu standart satrançta. Bilgisayar programlarının insanları daha hızlı kontrollerde bile yenmesi daha ZORDUR. Seçkin insanların uzun süredir bilgisayarlara k...
154
How to decrypt Jenkins passwords from credentials.xml?
Jenkins şifreleri credentials.xml'den nasıl çözülür?
There is a `hudson.util.Secret.decrypt()` function which can be used for this, so: 1. In Jenkins, go to: `/script` page. 2. Run the following command: ```println(hudson.util.Secret.decrypt("{XXX=}")) ``` or ``` println(hudson.util.Secret.fromString("{XXX=}").getPlainText()) ``` where `{XXX=}` is your encrypted passwor...
Bunun için kullanılabilecek bir `hudson.util.Secret.decrypt()` fonksiyonu vardır, bu nedenle: 1. Jenkins'te şuraya gidin: `/script` sayfası. 2. Aşağıdaki komutu çalıştırın: ```println(hudson.util.Secret.decrypt("{XXX=}")) ``` veya ``` println(hudson.util.Secret.fromString("{XXX=}").getPlainText()) ``` burada `{XXX=}` ...
155
I'm pretty disappointed with my horse. He wasn't cheap -- 1000g -- but he just doesn't seem that fast. To make things worse, he's a bit of a wolf magnet and every time I get attacked I have to tediously dismount, blast the wolf, and then remount. Is the speed of a horse actually significantly faster than normal runni...
Atımdan oldukça hayal kırıklığına uğradım. Ucuz değildi -- 1000g -- ama o kadar da hızlı görünmüyor. İşleri daha da kötüleştirmek için, o biraz kurt mıknatısı ve her saldırıya uğradığımda sıkıcı bir şekilde inmek, kurdu patlatmak ve sonra tekrar binmek zorunda kalıyorum. Bir atın hızı gerçekten normal koşu hızından öne...
Don't forget that you can sprint with a horse. It might be that you know that you can sprint on your character, but not on your horse. Please note that your horse is also able to sprint using stamina. You can do this using the default Alt key. Horses are indeed faster, transportation was simplified. Since Oblivion, th...
Bir atla koşabileceğinizi unutmayın. Karakterinizle koşabileceğinizi biliyor olabilirsiniz ancak atınızla koşamayacağınızı düşünebilirsiniz. Lütfen atınızın da dayanıklılık kullanarak koşabileceğini unutmayın. Bunu varsayılan Alt tuşunu kullanarak yapabilirsiniz. Atlar gerçekten daha hızlıdır, ulaşım kolaylaştırılmışt...
156
Other than rust, corrosion, and other reactions with air that would make the use of a metal unfavorable, how do different metals affect the performance? Let's give Yagi an example: Let's say I use 4 different metals for the directors , reflector, and driven element. One antenna made out of copper, one made out of alumi...
Paslanma, korozyon ve havadaki diğer reaksiyonlar bir metalin kullanımını elverişsiz kılacak olsa da, farklı metaller performansı nasıl etkiler? Yagi'ye bir örnek verelim: Direktörler, reflektör ve tahrikli eleman için 4 farklı metal kullandığımı varsayalım. Bir anten bakırdan, biri alüminyumdan ve biri daha yüksek dir...
Considering just electrical properties, the most significant parameter for your selection of antenna conductor is resistance. You want to keep the resistance to a minimum, because when current flows through a resistance, the electrical power is converted to heat, according to Joule heating: $$ P = I^2 R $$ Any energy y...
Sadece elektriksel özellikleri göz önünde bulundurduğumuzda, anten iletkeni seçiminiz için en önemli parametre dirençtir. Direnci minimumda tutmak istersiniz çünkü akım bir dirençten geçtiğinde, Joule ısınmasına göre elektrik gücü ısıya dönüşür: $$ P = I^2 R $$ Isı yapmak için kullandığınız her enerji, elektromanyetik ...
157
Windows in its earliest days was simply a shell that ran on top of MS-DOS, which means that Windows 3.1 itself was actually just a standard MS-DOS application like any other. Yet, MS-DOS is not a multitasking operating system, and at the same time, Windows applications were compiled native-code binaries that ran withou...
Windows'un ilk günlerinde, MS-DOS'un üzerinde çalışan basit bir kabuktu, yani Windows 3.1'in kendisi aslında diğerleri gibi standart bir MS-DOS uygulamasıydı. Yine de MS-DOS çoklu görev işletim sistemi değildir ve aynı zamanda Windows uygulamaları, yönetilen bir ortam olmadan çalışan yerel kod ikili dosyaları olarak de...
For Win16 programs, Windows implemented co-operative multitasking. Its implementation was based upon the &quot;message loop&quot; architecture of every Windows program. The duty of every program was to endlessly run in a loop in which a call to the ```GetMessage``` function was performed. This function call looks whet...
Win16 programları için Windows, işbirlikçi çoklu görevlendirme uyguladı. Uygulaması, her Windows programının "mesaj döngüsü" mimarisine dayanıyordu. Her programın görevi, ```GetMessage``` fonksiyonuna bir çağrı yapılan bir döngüde sonsuz bir şekilde çalışmasıydı. Bu fonksiyon çağrısı, bu işleme ait bir mesajın kuyrukt...
158
I'm working on 2 different branches: release and development. I noticed I still need to integrate some changes that were committed to the release branch back into the development branch. The problem is I don't need all of the commit, only some hunks in certain files, so a simple ```git cherry-pick bc66559 ``` does...
2 farklı dal üzerinde çalışıyorum: sürüm ve geliştirme. Sürüm dalına eklenen bazı değişiklikleri geliştirme dalına geri entegre etmem gerektiğini fark ettim. Sorun şu ki tüm commit'lere değil, yalnızca belirli dosyalardaki bazı hunlara ihtiyacım var, bu nedenle basit bir ```git cherry-pick bc66559 ``` işe yaramaz. ```g...
The core thing you're going to want here is ```git add -p``` (```-p``` is a synonym for ```--patch```). This provides an interactive way to add in content, letting you decide whether each hunk should go in or not, and even letting you manually edit the patch if necessary. To use it in combination with cherry-pick: ```g...
Burada isteyeceğiniz temel şey ```git add -p```'dir (```-p```, ```--patch```'in eş anlamlısıdır). Bu, içeriği eklemek için etkileşimli bir yol sağlar, her bir parçanın girip girmeyeceğine karar vermenize ve gerekirse yamayı manuel olarak düzenlemenize olanak tanır. Cherry-pick ile birlikte kullanmak için: ```git cherry...
159
In Civilization V, you attain a cultural victory by accumulating enough culture to purchase at least 36 social policies, and then building a wonder. The catch is that the more cities you build, the more culture you need to generate before you hit the next "plateau" of culture. What is the ideal number of cities for a c...
Civilization V'te, en az 36 sosyal politika satın alacak kadar kültür biriktirerek ve ardından bir harikayı inşa ederek kültürel bir zafere ulaşırsınız. İşin püf noktası, ne kadar çok şehir inşa ederseniz, bir sonraki kültür "platforma" ulaşmadan önce o kadar fazla kültür üretmeniz gerektiğidir. Kültürel bir zafer için...
The question you're really asking is &quot;When does the combined culture / turn of an additional city outstrip the increase in social policy cost incurred by founding that city?&quot; The short answer is... We know that adding another city increases the culture costs by approximately 30% of the base cost (that of 1 ci...
Asıl sorduğun soru şu: "Ek bir şehrin getirdiği kültür/tur, o şehri kurmanın getirdiği sosyal politika maliyetindeki artışı ne zaman aşar?" Kısa cevap şu... Başka bir şehir eklemenin kültür maliyetlerini yaklaşık %30 oranında (1 şehrin maliyetinin) artırdığını biliyoruz. Bu nedenle: Yeni şehir nedeniyle maksimum potans...
160
How to find if a customer is logged in or not in Magento 2. If the customer is logged in then how to get customer data from a session?
Magento 2'de bir müşterinin giriş yapıp yapmadığını nasıl bulabilirim? Müşteri giriş yapmışsa, bir oturumdan müşteri verileri nasıl alınır?
It is possible via ```Magento\Framework\App\Http\Context``` or via ```Magento\Customer\Model\Session```. However, the result may be different: * HTTP context is initialized earlier than the customer session (but it does not matter since both are initialized in action controllers) * When the ```PageCache``` module is o...
```Magento\Framework\App\Http\Context``` veya ```Magento\Customer\Model\Session``` üzerinden mümkündür. Ancak sonuç farklı olabilir: * HTTP bağlamı, müşteri oturumundan daha önce başlatılır (ancak her ikisi de eylem denetleyicilerinde başlatıldığı için önemli değildir) * ```PageCache``` modülü açıkken (muhtemelen her ...
161
I have a 9 year old daughter that has expressed some interest in manga, but I'm having trouble locating series that are appropriate for her age. No one at our local bookstore could offer any advice. Is there a kid-friendly imprint or other resource I could use to help her find something appropriate? My preference is fo...
9 yaşında bir kızım var ve mangaya ilgi duyduğunu söyledi ancak yaşına uygun serileri bulmakta zorlanıyorum. Yerel kitapçımızda kimse bana tavsiyede bulunamadı. Çocuklara uygun bir baskı veya ona uygun bir şey bulmasına yardımcı olabilecek başka bir kaynak var mı? Fiziksel kitapları tercih ederim ancak dijital seçenekl...
The content deemed acceptable for Japanese children generally differs from the concept in other countries; manga contains all genres of stories, so one cannot responsibly presume that just because a title was marketed at Japanese kids, that you would likewise consider it appropriate for your kid of the same age. As on...
Genellikle Japon çocukları için kabul edilebilir görülen içerik, diğer ülkelerdeki kavramdan farklılık gösterir; mangalar her türden hikaye içerir, bu nedenle bir başlığın Japon çocuklarına pazarlanmış olması, aynı yaştaki çocuğunuz için de uygun olduğunu sorumsuzca varsayamazsınız. Bir örnek olarak: Popüler kız seris...
162
I'm looking for a precise piece of information in a database which I have no knowledge about. The database is on a separate machine, but I can log into it, and launch a ```psql``` command line, with administrator rights. It's a third-party product, and they are slow to answer questions. I know the data is inside that d...
Hiçbir bilgim olmayan bir veritabanında kesin bir bilgi parçası arıyorum. Veritabanı ayrı bir makinede, ancak yönetici haklarıyla oturum açabilir ve bir ```psql``` komut satırı başlatabilirim. Bu üçüncü taraf bir ürün ve soruları cevaplamakta yavaşlar. Verilerin o veritabanının içinde olduğunu biliyorum, bu yüzden bira...
The information schema is the slow and sure way: it is standardized and largely portable to other databases that support it. And it will keep working across major versions. However, views in the information schema often join many tables from the system catalogs to meet a strictly standardized format - many of which are...
Bilgi şeması yavaş ve emin bir yoldur: standartlaştırılmıştır ve büyük ölçüde bunu destekleyen diğer veritabanlarına taşınabilir. Ve büyük sürümler arasında çalışmaya devam edecektir. Ancak, bilgi şemasındaki görünümler genellikle kesinlikle standartlaştırılmış bir formatı karşılamak için sistem kataloglarından birçok ...
163
I am using Visual Studio Code and have a fairly common project structure: ```├── client/ │ ├── tsconfig.json ├── shared/ ├── server/ │ ├── tsconfig.json ├── project.json ``` The two tsconfig files have different settings (e.g. the one under ```client/``` targets ES5, the one under ```server/``` targets ES6). Note t...
Visual Studio Code kullanıyorum ve oldukça yaygın bir proje yapısına sahibim: ```├── client/ │ ├── tsconfig.json ├── shared/ ├── server/ │ ├── tsconfig.json ├── project.json ``` İki tsconfig dosyasının farklı ayarları var (örneğin ```client/``` altındaki ES5'i hedefler, ```server/``` altındaki ES6'yı hedefler). Kök...
These days it is much easier as vscode has better support for this. You can use this directory structure so all the code is independent: ```├── frontend/ │ ├── src/ │ │ ├── │ ├── package.json │ ├── tsconfig.json ├── shared/ │ ├── package.json ├── backend/ │ ├── src/ │ │ ├── │ ├── package.json │ ...
Günümüzde vscode'nin bu konuda daha iyi desteği olduğu için çok daha kolay. Tüm kodun bağımsız olması için bu dizin yapısını kullanabilirsiniz: ```├── frontend/ │ ├── src/ │ │ ├── │ ├── package.json │ ├── tsconfig.json ├── shared/ │ ├── package.json ├── backend/ │ ├── src/ │ │ ├── │ ├── package.js...
164
I have the following method to save an Object to a file: ```// Save an object out to the disk public static void SerializeObject(this T toSerialize, String filename) { XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType()); TextWriter textWriter = new StreamWriter(filename); xmlSerializer.Se...
Bir Nesneyi bir dosyaya kaydetmek için şu yönteme sahibim: ``` // Bir nesneyi diske kaydet public static void SerializeObject(this T toSerialize, String filename) { XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType()); TextWriter textWriter = new StreamWriter(filename); xmlSerializer.Seria...
Use a `StringWriter` instead of a `StreamWriter`: ``` public static string SerializeObject<T>(this T toSerialize) { XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType()); using(StringWriter textWriter = new StringWriter()) { xmlSerializer.Serialize(textWriter, toSerialize); ...
`StreamWriter` yerine `StringWriter` kullanın: ``` public static string SerializeObject<T>(this T toSerialize) { XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType()); using(StringWriter textWriter = new StringWriter()) { xmlSerializer.Serialize(textWriter, toSerialize); r...
165
I have a problem with the embedded bitcode term. What is embedded bitcode? When to enable, ```ENABLE_BITCODE``` in new Xcode? What happens to the binary when enabled, ```ENABLE_BITCODE``` in Xcode 7?
Gömülü bit kodu terimiyle ilgili bir sorunum var. Gömülü bit kodu nedir? Yeni Xcode'da ```ENABLE_BITCODE``` ne zaman etkinleştirilir? Xcode 7'de ```ENABLE_BITCODE``` etkinleştirildiğinde ikili dosyaya ne olur?
> What is embedded bitcode? According to docs: > Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to subm...
> Gömülü bit kodu nedir? Belgelere göre: > Bit kodu, derlenmiş bir programın ara temsilidir. iTunes Connect'e yüklediğiniz ve bit kodu içeren uygulamalar, App Store'da derlenecek ve bağlanacaktır. Bit kodunu eklemek, Apple'ın uygulamanızın ikili dosyasını gelecekte, uygulamanızın yeni bir sürümünü mağazaya göndermeniz...
166
In Dupire's local volatility model, the volatility is is a deterministic function of the underlying price and time, chosen to match observed European option prices. To be more specific, given a smooth surface $(K,T)\mapsto C(K,T)$ where K is the strike and T is time to maturity. Dupire equation implies that there exits...
Dupire'in yerel volatilite modelinde, volatilite, gözlemlenen Avrupa opsiyon fiyatlarına uyacak şekilde seçilen, altında yatan fiyatın ve zamanın deterministik bir fonksiyonudur. Daha spesifik olmak gerekirse, K'nın vade ve T'nin vadeye kadar geçen süre olduğu $(K,T)\mapsto C(K,T)$ düzgün bir yüzey verildiğinde. Dupire...
A general model (with continuous paths) can be written $$ \frac{dS_t}{S_t} = r_t dt + \sigma_t dW_t^S $$ where the short rate $r_t$ and spot volatility $\sigma_t$ are stochastic processes. In the Black-Scholes model both $r$ and $\sigma$ are deterministic functions of time (even constant in the original model). This...
Sürekli yollarla genel bir model şu şekilde yazılabilir: $$ \frac{dS_t}{S_t} = r_t dt + \sigma_t dW_t^S $$ burada kısa oran $r_t$ ve spot volatilitesi $\sigma_t$ stokastik süreçlerdir. Black-Scholes modelinde hem $r$ hem de $\sigma$ zamanın deterministik fonksiyonlarıdır (orijinal modelde sabit bile). Bu, herhangi bi...
167
Can you explain why we need a large number of trees in random forest when the number of predictors is large? How can we determine the optimal number of trees?
Tahmin edicilerin sayısı fazla olduğunda neden rastgele ormanda çok sayıda ağaca ihtiyaç duyduğumuzu açıklayabilir misiniz? En uygun ağaç sayısını nasıl belirleyebiliriz?
Random forest uses bagging (picking a sample of observations rather than all of them) and random subspace method (picking a sample of features rather than all of them, in other words - attribute bagging) to grow a tree. If the number of observations is large, but the number of trees is too small, then some observations...
Rastgele orman, bir ağaç büyütmek için bagging (tüm gözlemler yerine bir gözlem örneği seçme) ve rastgele alt uzay yöntemi (tüm özellikler yerine bir özellik örneği seçme, başka bir deyişle - özellik bagging) kullanır. Gözlem sayısı fazla ancak ağaç sayısı çok azsa, bazı gözlemler yalnızca bir kez veya hiç tahmin edilm...
168
I believe artificial intelligence (AI) term is overused nowadays. For example, people see that something is self-moving and they call it AI, even if it's on autopilot (like cars or planes) or there is some simple algorithm behind it. What are the minimum general requirements so that we can say something is AI?
Yapay zeka (YZ) teriminin günümüzde aşırı kullanıldığını düşünüyorum. Örneğin, insanlar bir şeyin kendi kendine hareket ettiğini görüyor ve otopilot (araba veya uçak gibi) olsa bile veya arkasında basit bir algoritma olsa bile buna YZ diyorlar. Bir şeyin YZ olduğunu söyleyebilmemiz için minimum genel gereksinimler nele...
It's true that the term has become a buzzword, and is now widely used to a point of confusion - however if you look at the definition provided by Stuart Russell and Peter Norvig, they write it as follows: > We define AI as the study of agents that receive percepts from the environment and perform actions. Each such ag...
Terimin bir moda sözcük haline geldiği ve artık kafa karışıklığına yol açacak kadar yaygın olarak kullanıldığı doğru - ancak Stuart Russell ve Peter Norvig'in sağladığı tanıma bakarsanız, bunu şu şekilde yazarlar: > AI'yı çevreden algılar alan ve eylemler gerçekleştiren ajanların çalışması olarak tanımlıyoruz. Bu tür ...
169
I have some questions regarding the usage and significance of the ```synchronized``` keyword. * What is the significance of the ```synchronized``` keyword? * When should methods be ```synchronized```? * What does it mean programmatically and logically?
```synchronized``` anahtar kelimesinin kullanımı ve önemi hakkında bazı sorularım var. * ```synchronized``` anahtar kelimesinin önemi nedir? * Hangi durumlarda metotlar ```synchronized``` olmalıdır? * Programatik ve mantıksal olarak ne anlama gelir?
The ```synchronized``` keyword is all about different threads reading and writing to the same variables, objects and resources. This is not a trivial topic in Java, but here is a quote from Sun: > ```synchronized``` methods enable a simple strategy for preventing thread interference and memory consistency errors: if a...
```synchronized``` anahtar sözcüğü, farklı iş parçacıklarının aynı değişkenleri, nesneleri ve kaynakları okuması ve yazmasıyla ilgilidir. Bu, Java'da önemsiz bir konu değildir, ancak işte Sun'dan bir alıntı: > ```synchronized``` yöntemleri, iş parçacığı karışmasını ve bellek tutarlılığı hatalarını önlemek için basit b...
170
I am using the ```$http``` service of AngularJS to make an Ajax request. How can a spinner GIF (or another type of busy indicator) be shown while the Ajax request is executing?
Ajax isteği yaparken AngularJS'nin ```$http``` servisini kullanıyorum. Ajax isteği yürütülürken bir spinner GIF'i (veya başka bir tür meşgul göstergesi) nasıl gösterilebilir?
This really depends on your specific use case, but a simple way would follow a pattern like this: ``` .controller('MainCtrl', function ( $scope, myService ) { $scope.loading = true; myService.get().then( function ( response ) { $scope.items = response.data; }, function ( response ) { // TODO: handle the ...
Bu gerçekten özel kullanım durumunuza bağlıdır, ancak basit bir yol şu kalıbı izler: ``` .controller('MainCtrl', function ( $scope, myService ) { $scope.loading = true; myService.get().then( function ( response ) { $scope.items = response.data; }, function ( response ) { // TODO: hatayı bir şekilde yönet...
171
Let's say that we have a gaseous or liquidus compound (I don't know if elements or compounds make a difference, take this as a thought experiment), and we have a tungsten or steel block that's 5cm (or less, you choose) thick. Is there any physical method for that gas or liquid to pass through that thick heavy metal blo...
Diyelim ki gaz halinde veya sıvı halde bir bileşiğimiz var (elementlerin veya bileşiklerin bir fark yaratıp yaratmadığını bilmiyorum, bunu bir düşünce deneyi olarak alın) ve 5 cm (veya daha az, siz seçin) kalınlığında bir tungsten veya çelik bloğumuz var. Bu gazın veya sıvının bu kalın ağır metal bloktan geçmesi için h...
Yes, some gases can diffuse into and through metal. It is the bane of the high-vacuum engineer's life. Hydrogen is the worst because it tends to dissociate into atoms at the surface and the nucleus, a single proton, can then leave its electron behind and wander through the metal lattice until it picks up another electr...
Evet, bazı gazlar metalin içine ve içinden yayılabilir. Bu, yüksek vakum mühendisinin hayatının belasıdır. Hidrojen en kötüsüdür çünkü yüzeyde ve çekirdekte atomlara ayrılma eğilimindedir ve tek bir proton olan çekirdek daha sonra elektronunu geride bırakabilir ve başka bir elektronu alana kadar metal kafes içinde dola...
172
Once, I boarded a plane, went to my designated seat and tried to put my bag in the overhead bin. However, it was full, and other adjacent overhead bins were full too. Because I had a seat next to the emergency exit, which I paid for, I had to hand over my bag to someone else in order to take off. Do I have any rights ...
Bir keresinde uçağa bindim, belirlenen koltuğuma gittim ve çantamı üstteki bölmeye koymaya çalıştım. Ancak doluydu ve diğer bitişik üst bölmeler de doluydu. Ücreti karşılığında aldığım acil çıkışın yanındaki bir koltukta oturduğum için, kalkış için çantamı başka birine vermek zorunda kaldım. Koltuğumun üzerindeki üst b...
You have no right to the bin above your seat. For those exit rows where you cannot put anything beneath the seat in front of you, flight attendants will generally try to help find some space somewhere for at least your small personal item, but any passenger may be required to check their bags rather than put them in th...
Koltuğunuzun üzerindeki bölmeye eşya koyma hakkınız yoktur. Önünüzdeki koltuğun altına hiçbir şey koyamayacağınız çıkış sıralarında, uçuş görevlileri genellikle en azından küçük kişisel eşyalarınız için bir yer bulmanıza yardımcı olmaya çalışırlar ancak herhangi bir yolcunun eşyalarını baş üstü bölmeye koymak yerine te...
173
The Canon EF 40mm f/2.8 has a designation of STM on the lens. What does this mean? What are the advantages of having it and does it replace an older technology?
Canon EF 40mm f/2.8 lensinde STM ifadesi yer alıyor. Bu ne anlama geliyor? Bu özelliğin avantajları nelerdir ve eski bir teknolojiyi değiştiriyor mu?
STM stands for Stepper Motor and is a applied to a new range of Canon lenses which feature a new design of focus motors which, along with a new iris mechanism are designed to eliminate (auditory) noise during video recording. Canon haven't revealed any information about how the new design works but it's probably the s...
STM, Stepper Motor'un kısaltmasıdır ve video kaydı sırasında (işitsel) gürültüyü ortadan kaldırmak için tasarlanmış yeni bir iris mekanizmasıyla birlikte yeni bir odak motoru tasarımına sahip yeni bir Canon lens serisi için uygulanmıştır. Canon, yeni tasarımın nasıl çalıştığına dair herhangi bir bilgi açıklamadı ancak ...
174
I'm trying to set get id of all elements in an ```HTMLCollectionOf```. I wrote the following code: ```var list = document.getElementsByClassName("events"); console.log(list[0].id); for (key in list) { console.log(key.id); } ``` But I got the following output in console: ```event1 undefined ``` which is not what I e...
```HTMLCollectionOf``` içindeki tüm elemanların id'sini almaya çalışıyorum. Aşağıdaki kodu yazdım: ```var list = document.getElementsByClassName("events"); console.log(list[0].id); for (key in list) { console.log(key.id); } ``` Ancak konsolda aşağıdaki çıktıyı aldım: ```event1 undefined ``` Bu beklediğim şey değil....
You can't use ```for```/```in``` on ```NodeList```s or ```HTMLCollection```s. However, you can use some ```Array.prototype``` methods, as long as you ```.call()``` them and pass in the ```NodeList``` or ```HTMLCollection``` as ```this```. So consider the following as an alternative to jfriend00's ```for``` loop: ```var...
```for```/```in```'i ```NodeList```'lerde veya ```HTMLCollection```'larda kullanamazsınız. Ancak, ```.call()```'u kullanıp ```NodeList``` veya ```HTMLCollection```'ı ```this``` olarak geçirdiğiniz sürece bazı ```Array.prototype``` yöntemlerini kullanabilirsiniz. Bu nedenle, jfriend00'un ```for``` döngüsüne alternatif o...
175
I am 21 years old and living in a large city in Germany where smalltalk in local markets is not a common thing. A new cashier joined my local food shop. She’s always at the checkout and never doing stuff like sorting products or cleaning the floor where I could actually ask her out. I am quite new to relationships, but...
21 yaşındayım ve Almanya'nın yerel marketlerde küçük sohbetlerin yaygın olmadığı büyük bir şehrinde yaşıyorum. Yerel marketçime yeni bir kasiyer geldi. Her zaman kasada oluyor ve ürün ayırma veya yerleri temizleme gibi işleri yapmıyor, bu yüzden ona çıkma teklif edemiyorum. İlişkiler konusunda oldukça yeniyim ama bana ...
Asking her out directly seems like a bad idea. Instead, in these situations, I've found something that works much better for both of you. During your conversation with her, mention some place you're planning to be in the future so she can find you there if she chooses. For example: &quot;I like to grab lunch here befor...
Ona doğrudan çıkma teklif etmek kötü bir fikir gibi görünüyor. Bunun yerine, bu gibi durumlarda, ikiniz için de çok daha iyi işe yarayan bir şey buldum. Onunla konuşurken, gelecekte bulunmayı planladığınız bir yerden bahsedin, böylece isterse sizi orada bulabilsin. Örneğin: "[Keyif Aldığınız Halka Açık Etkinlik]'e gitm...
176
You start with the number 1536. Your mission is to get to 1 in as few steps as possible. At each step, you may either multiply or divide the number you have, by either 2 or 3; but, only if the result is a whole number whose first digit is 1, 3, 4, or 9. That is all.
1536 sayısıyla başlıyorsunuz. Göreviniz olabildiğince az adımda 1'e ulaşmak. Her adımda, sahip olduğunuz sayıyı 2 veya 3 ile çarpabilir veya bölebilirsiniz; ancak, yalnızca sonuç ilk hanesi 1, 3, 4 veya 9 olan bir tam sayıysa. Hepsi bu.
As Jo has already shown, this can be accomplished in 28 steps. This is minimal, and it can be proven. To help visualize this problem, we can imagine: A two-dimensional grid/chart where each point is a number of the form $3^x2^y$, with $(x,y)$ as the relevant co-ordinates. We want to find a path from $(1,9)...
Jo'nun daha önce gösterdiği gibi, bu 28 adımda gerçekleştirilebilir. Bu minimumdur ve kanıtlanabilir. Bu problemi görselleştirmeye yardımcı olmak için şunları hayal edebiliriz: Her noktanın $3^x2^y$ biçiminde bir sayı olduğu iki boyutlu bir ızgara/tablo, $(x,y)$ ilgili koordinatlar olarak. $(1,9)$'dan $(0,...
177
I want to create a simple bit of JS code that creates an image element in the background and doesn't display anything. The image element will call a tracking URL (such as Omniture) and needs to be simple and robust and work in IE 6 = ```var oImg = document.createElement("img"); oImg.setAttribute('src', 'http://www.test...
Arka planda bir görüntü öğesi oluşturan ve hiçbir şey göstermeyen basit bir JS kodu parçası oluşturmak istiyorum. Görüntü öğesi bir izleme URL'sini (Omniture gibi) çağıracak ve basit, sağlam olmalı ve IE 6'da çalışmalıdır = ```var oImg = document.createElement("img"); oImg.setAttribute('src', 'http://www.testtrackingli...
```oImg.setAttribute('width', '1px'); ``` ```px``` is for CSS only. Use either: ```oImg.width = '1'; ``` to set a width through HTML, or: ```oImg.style.width = '1px'; ``` to set it through CSS. Note that old versions of IE don't create a proper image with ```document.createElement()```, and old versions of KHTML don't ...
```oImg.setAttribute('width', '1px'); ``` ```px``` yalnızca CSS içindir. Aşağıdakilerden birini kullanın: ```oImg.width = '1'; ``` HTML üzerinden bir genişlik ayarlamak için veya: ```oImg.style.width = '1px'; ``` CSS üzerinden ayarlamak için. Eski IE sürümlerinin ```document.createElement()``` ile düzgün bir resim oluş...
178
Why is %s better than + for concatenation in python?
Python'da birleştirme için %s, + 'dan neden daha iyidir?
There are several benefits of using ```%s``` over ```+``` for string concatenation in Python: * Readability. The format string syntax is more readable, as it separates style from the data. Also, in Python, ```%s``` syntax will automatically coerce any non ```str``` types to ```str```; while concatenation only works wit...
Python'da dize birleştirme için ```+``` yerine ```%s``` kullanmanın birkaç faydası vardır: * Okunabilirlik. Biçim dizesi sözdizimi, stili verilerden ayırdığı için daha okunabilirdir. Ayrıca, Python'da ```%s``` sözdizimi, ```str``` olmayan tüm türleri otomatik olarak ```str```'ye dönüştürür; birleştirme yalnızca ```str`...
179
I had an interview with an employer working on a software-based vehicle solution. Before going further in the interview process, he gave me a task to find out if a potential customer (automotive OEMs) is interested. My question is, how can I approach a potential customer and arrange some time together to present to the...
Yazılım tabanlı bir araç çözümü üzerinde çalışan bir işverenle görüşme yaptım. Görüşme sürecine daha fazla ilerlemeden önce, potansiyel bir müşterinin (otomotiv OEM'leri) ilgilenip ilgilenmediğini öğrenmek için bana bir görev verdi. Sorunum şu ki, potansiyel bir müşteriye nasıl yaklaşabilirim ve onlara çözümü sunmak iç...
Run (and run fast) - here are just a few points to consider: * That's a very unorthodox task for somebody still in the interviewing stage. * How you going to present a solution you aren't familiar with? * Since you aren't an employee of said company yet you have no grounds to represent them or even hustle their produc...
Koşun (ve hızlı koşun) - işte dikkate alınması gereken birkaç nokta: * Bu, hala görüşme aşamasında olan biri için çok alışılmadık bir görev. * Bilmediğiniz bir çözümü nasıl sunacaksınız? * Henüz söz konusu şirketin bir çalışanı olmadığınız için onları temsil etmek veya ürünlerini satmak için hiçbir nedeniniz yok. * He...
180
When an expendable booster rocket stage nears the end of its burn, does the guidance computer shut the engine(s) off at a certain velocity/altitude for the mission, or does the stage completely exhaust its propellants?
Harcanabilir bir destek roketi aşaması yanmasının sonuna yaklaştığında, kılavuz bilgisayar görevin belirli bir hız/irtifasında motoru(motorları) kapatır mı yoksa aşama iticilerini tamamen tüketir mi?
First stages are generally run to depletion (though not complete depletion). First stage ascents often use a preprogrammed, open loop guidance system to get out of the atmosphere with a good chunk of downrange velocity. Because winds aloft and other factors may vary, first stage performance also varies somewhat. Upper ...
İlk aşamalar genellikle tükenmeye kadar çalıştırılır (ancak tamamen tükenmez). İlk aşama yükselişleri genellikle atmosferden iyi bir miktar aşağı doğru hızla çıkmak için önceden programlanmış, açık döngü bir kılavuz sistem kullanır. Yukarıdaki rüzgarlar ve diğer faktörler değişebileceğinden, ilk aşama performansı da bi...
181
Is &quot;ima&quot; an informal spelling of &quot;I must&quot;? MegaCharizardZord Replying to @nytimes about COVID-19 vaccine: i just hope when i take it don't die lol. i trust the government in Canada, but if I do get something ima sue the shit out of em lol. Source: Twitter
"ima" "I must" ifadesinin gayri resmi bir yazımı mı? MegaCharizardZord, @nytimes'a COVID-19 aşısı hakkında yanıt veriyor: Umarım aşıyı olduğumda ölmem lol. Kanada hükümetine güveniyorum ama bir şey olursa onları dava ederim lol. Kaynak: Twitter
Ima is an informal contraction of I'm going to when it's used in going-to future construction - not in sentences like I'm going to London etc. It's also written i'ma or imma in informal conversations. How did I'm going to come to be pronounced/spelt that way? In casual speech, we tend to drop consonants that require mo...
Ima, gelecek zaman yapısında kullanıldığında I'm going to'nun gayriresmi bir kısaltmasıdır - I'm going to London vb. cümlelerde değil. Gayriresmi konuşmalarda i'ma veya imma olarak da yazılır. I'm going to nasıl o şekilde telaffuz edilir/yazılır hale geldi? Rahat konuşmalarda, telaffuzu kolaylaştırmak için telaffuzu da...
182
How to prevent "Delhi Belly" from eating/drinking locally?
Yerel yemek/içecek tüketerek "Delhi Karnı"nın önüne nasıl geçilir?
Basically, you can't. The world is full of gastrointestinal (GI) diseases, even in developed, First World nations. There are some decent steps to trying to minimize your exposure: * Properly cooked foods. Everything heated to a proper internal temperature (depends on the dish, check the USDA's site for guidelines), no...
Temel olarak, yapamazsınız. Dünya, gelişmiş, Birinci Dünya ülkelerinde bile gastrointestinal (GI) hastalıklarla doludur. Maruziyetinizi en aza indirmeye çalışmak için bazı iyi adımlar vardır: * Uygun şekilde pişmiş yiyecekler. Uygun bir iç sıcaklığa kadar ısıtılmış her şey (yemeğe bağlıdır, yönergeler için USDA'nın si...
183
I'm working at my first programming job. My boss is a very smart software engineer, and I feel like I have very little to offer compared to him. Problem is, he is always busy, and needs someone to help him out. I feel like I'm not good enough, but I still want to succeed. I want to be a great programmer. What can I do ...
İlk programlama işimde çalışıyorum. Patronum çok zeki bir yazılım mühendisi ve ona kıyasla sunabileceğim çok az şeyim varmış gibi hissediyorum. Sorun şu ki, o her zaman meşgul ve kendisine yardım edecek birine ihtiyacı var. Yeterince iyi olmadığımı hissediyorum ama yine de başarılı olmak istiyorum. Harika bir programcı...
Remember the scene in Aladdin where Aladdin wants to impress Jasmine, and the genie tells him he'd do better to just focus on being himself? Same principle here. If the boss is that much better than you and you know it, he probably knows it too. He isn't expecting any great feats of programming rock-stardom out of you...
Aladdin'de Aladdin'in Jasmine'i etkilemek istediği ve cinin ona sadece kendisi olmaya odaklanmasının daha iyi olacağını söylediği sahneyi hatırlayın. Burada da aynı prensip geçerli. Eğer patron sizden çok daha iyiyse ve siz de bunu biliyorsanız, o da muhtemelen bunu biliyordur. Sizden rock yıldızı programlama harikalar...
184
Can I pass variables to a GNU Makefile as command line arguments? In other words, I want to pass some arguments which will eventually become variables in the Makefile.
Bir GNU Makefile'a komut satırı argümanları olarak değişkenler geçirebilir miyim? Başka bir deyişle, Makefile'da değişken haline gelecek bazı argümanlar geçirmek istiyorum.
You have several options to set up variables from outside your makefile: * From environment - each environment variable is transformed into a makefile variable with the same name and value. You may also want to set ```-e``` option (aka ```--environments-override```) on, and your environment variables will override ass...
Make dosyanızın dışından değişkenler ayarlamak için çeşitli seçenekleriniz vardır: * Ortamdan - her ortam değişkeni, aynı ad ve değere sahip bir makefile değişkenine dönüştürülür. ```-e``` seçeneğini (diğer adıyla ```--environments-override```) de açmak isteyebilirsiniz ve ortam değişkenleriniz, makefile'a yapılan ata...
185
I have noticed that some games quote the requirement for "pixel shader 3.0 or better". What is a pixel shader and is it some software requirements or hardware requirements?
Bazı oyunların "pixel shader 3.0 veya daha iyisi" gereksinimini belirttiğini fark ettim. Pixel shader nedir ve bu bir yazılım gereksinimi mi yoksa donanım gereksinimi mi?
Simple answer Pixel shaders are tiny programs that can do operations on a single pixel on the screen, as opposed to geometry shaders and vertex shaders which work on the geometrical primitives (triangles) that make up everything you see on the screen. The most common use for pixel shaders is 'shading', approximation to...
Basit cevap Piksel gölgelendiricileri, ekranda gördüğünüz her şeyi oluşturan geometrik ilkel (üçgenler) üzerinde çalışan geometri gölgelendiricilerinin ve tepe noktası gölgelendiricilerinin aksine, ekrandaki tek bir piksel üzerinde işlemler yapabilen küçük programlardır. Piksel gölgelendiricilerinin en yaygın kullanımı...
186
Red light facing forwards? It was nighttime in Manhattan. Isn't more always better when it comes to being seen?
Öne bakan kırmızı ışık? Manhattan'da gece vaktiydi. Görünür olmak söz konusu olduğunda daha fazlası her zaman daha iyi değil midir?
No. You should always ride with a white light facing forward and a red light facing backwards. If you want additional illumination, you can add multiple white/red lights in the appropriate direction. Amber/yellow lights can be used facing any direction for additional visibility. The first reason is that it's the law: ...
Hayır. Her zaman öne bakan beyaz bir ışık ve arkaya bakan kırmızı bir ışıkla sürmelisiniz. Ek aydınlatma istiyorsanız, uygun yöne birden fazla beyaz/kırmızı ışık ekleyebilirsiniz. Ek görünürlük için kehribar/sarı ışıklar herhangi bir yöne bakacak şekilde kullanılabilir. İlk neden bunun yasa olmasıdır: (a) Gün batımınd...
187
If water is not a good conductor, why are we advised to avoid water near electricity (no wet hands near circuits etc.)?
Su iyi bir iletken değilse, neden elektrik yakınında sudan kaçınmamız öneriliyor (devrelerin yakınında ıslak eller vb.)?
&quot;Pure&quot; water is a very poor conductor (resistivity is actually used as a measure of purity). &quot;Real&quot; water is not pure - it contains electrolytes and is quite conductive. Also - when your skin is wet, its resistivity is significantly lower. For example - &quot;pure&quot; water has a resistivity of (a...
"Saf" su çok zayıf bir iletkendir (direnç aslında saflığın bir ölçüsü olarak kullanılır). "Gerçek" su saf değildir - elektrolitler içerir ve oldukça iletkendir. Ayrıca - cildiniz ıslak olduğunda, direnci önemli ölçüde düşüktür. Örneğin - "saf" suyun direnci (yaklaşık) 18,2 MΩ·cm'dir. 10 ppm çözünmüş NaCl ile ("çok iyi ...
188
What is the difference between cohesion and coupling? How can coupling and cohesion lead to either good or poor software design? What are some examples that outline the difference between the two, and their impact on overall code quality?
Kohezyon ve bağımlılık arasındaki fark nedir? Bağımlılık ve kohezyon nasıl iyi veya kötü yazılım tasarımına yol açabilir? İkisi arasındaki farkı ve genel kod kalitesi üzerindeki etkilerini özetleyen bazı örnekler nelerdir?
Cohesion refers to what the class (or module) can do. Low cohesion would mean that the class does a great variety of actions - it is broad, unfocused on what it should do. High cohesion means that the class is focused on what it should be doing, i.e. only methods relating to the intention of the class. Example of Low C...
Bağlantı, sınıfın (veya modülün) ne yapabileceğini ifade eder. Düşük bağlantı, sınıfın çok çeşitli eylemler yaptığı anlamına gelir - geniştir, ne yapması gerektiğine odaklanmamıştır. Yüksek bağlantı, sınıfın ne yapması gerektiğine odaklandığı anlamına gelir, yani yalnızca sınıfın amacıyla ilgili yöntemler. Düşük Bağlan...
189
Can Romex (NM-B) cable be run through conduit?
Romex (NM-B) kablosu borudan geçirilebilir mi?
Yes, NM (Romex) cable can be in conduit. In fact, National Electrical Code (NEC() calls for it to be in conduit, when protection from physical damage is required. But it really isn't worth it. ## It's a nightmare to pull NM (Romex) is already solid wire except in the large sizes, and now you have 3-4 wires bound toget...
Evet, NM (Romex) kablosu boru içinde olabilir. Aslında, Ulusal Elektrik Kodu (NEC), fiziksel hasara karşı koruma gerektiğinde boru içinde olmasını gerektirir. Ancak buna gerçekten değmez. ## Çekmesi bir kabustur NM (Romex) zaten büyük boyutlar hariç katı bir teldir ve şimdi birbirine bağlı 3-4 teliniz var. Bunu yaklaş...
190
Let's say I have a function which takes an ```std::function```: ```void callFunction(std::function x) { x(); } ``` Should I pass ```x``` by const-reference instead?: ```void callFunction(const std::function& x) { x(); } ``` Does the answer to this question change depending on what the function does with it? For...
Bir ```std::function``` alan bir fonksiyonum olduğunu varsayalım: ```void callFunction(std::function x) { x(); } ``` ```x```'i bunun yerine sabit referansla geçirmeli miyim?: ```void callFunction(const std::function& x) { x(); } ``` Bu sorunun cevabı, fonksiyonun onunla ne yaptığına bağlı olarak değişir mi? Örn...
If you want performance, pass by value if you are storing it. Suppose you have a function called "run this in the UI thread". ```std::future run_in_ui_thread( std::function ) ``` which runs some code in the "ui" thread, then signals the ```future``` when done. (Useful in UI frameworks where the UI thread is where you...
Performans istiyorsanız, saklıyorsanız değer olarak geçirin. "Bunu UI iş parçacığında çalıştır" adında bir fonksiyonunuz olduğunu varsayalım. ```std::future run_in_ui_thread( std::function ) ``` Bu, "UI" iş parçacığında bazı kodları çalıştırır ve bittiğinde ```future```'ı işaret eder. (UI öğeleriyle uğraşmanız gereken...
191
I have an Eloquent model which has a related model: ```public function option() { return $this->hasOne('RepairOption', 'repair_item_id'); } public function setOptionArrayAttribute($values) { $this->option->update($values); } ``` When I create the model, it does not necessarily have a related model. When I updat...
İlişkili bir modeli olan bir Eloquent modelim var: ```public function option() { return $this->hasOne('RepairOption', 'repair_item_id'); } public function setOptionArrayAttribute($values) { $this->option->update($values); } ``` Modeli oluşturduğumda, mutlaka ilişkili bir modeli olmayabilir. Güncellediğimde, bir...
A Relation object passes unknown method calls through to an Eloquent query Builder, which is set up to only select the related objects. That Builder in turn passes unknown method calls through to its underlying query Builder. This means you can use the ```exists()``` or ```count()``` methods directly from a relation ob...
Bir Relation nesnesi bilinmeyen metot çağrılarını, yalnızca ilgili nesneleri seçmek üzere ayarlanmış bir Eloquent sorgu Oluşturucusuna iletir. Bu Oluşturucu da bilinmeyen metot çağrılarını kendi altındaki sorgu Oluşturucusuna iletir. Bu, ```exists()``` veya ```count()``` metotlarını doğrudan bir relation nesnesinden ku...
192
NASA is hiring a new 'planetary protection officer' to defend Earth from alien matter, and the pay is a six-figure salary: as much as $187,000 a year. When we are not sure whether aliens exist, why are we still hiring staff for protecting Earth? I do understand we have to take precautions. But when we don't have any pr...
NASA, Dünya'yı uzaylı maddelerden korumak için yeni bir 'gezegen koruma görevlisi' işe alıyor ve maaşı altı haneli: yılda 187.000 dolar kadar. Uzaylıların varlığından emin olmadığımız halde, neden hâlâ Dünya'yı korumak için personel işe alıyoruz? Önlem almamız gerektiğini anlıyorum. Ancak hiçbir kanıtımız yokken neden ...
You're observing shamefully bad journalism. The &quot;protect Earth from aliens&quot; bullet point in the &quot;Highlights&quot; section of the article was put there by an editor who either ignorantly or willfully distorted the actual role of the Planetary Protection Officer. The first paragraph of the story gets a lit...
Utanç verici derecede kötü gazetecilik örneği görüyorsunuz. Makalenin "Önemli Noktalar" bölümündeki "Dünyayı uzaylılardan koru" madde işareti, Gezegensel Koruma Görevlisinin gerçek rolünü bilmeyerek veya kasıtlı olarak çarpıtan bir editör tarafından eklenmiştir. Hikayenin ilk paragrafı biraz daha yaklaşıyor: "Gezegens...
193
Traditional advice for making megadungeons in older versions of D&D is in addition to any rooms with Monsters, Treasure, Traps, or "Tricks", there should also be at least 50 to 60 percent "Empty" rooms, which contain nothing overtly threatening or valuable. Now, there's several arguments for including these empty room...
D&D'nin eski sürümlerinde megadanjonlar yapmaya yönelik geleneksel tavsiye, Canavarlar, Hazine, Tuzaklar veya "Hileler" içeren odalara ek olarak, açıkça tehditkar veya değerli hiçbir şey içermeyen en az %50 ila %60 oranında "Boş" oda olması gerektiğidir. Şimdi, bu boş odaları dahil etmenin kabul ettiğim birkaç argümanı...
By definition, nothing's going to happen in an empty room (though see below). There are no hidden doors to find, no puzzles to solve, no enemies to fight. So what's their purpose? ## Bringing the dungeon to life While all the orcs may sit around in a guard room waiting for PCs to show up, where do they sleep, what do ...
Tanımı gereği, boş bir odada hiçbir şey olmayacaktır (aşağıya bakın). Bulunacak gizli kapılar, çözülecek bulmacalar, savaşacak düşmanlar yoktur. Peki amaçları nedir? ## Zindanı hayata geçirmek Tüm orklar bir muhafız odasında oturup oyuncuların gelmesini beklerken, nerede uyurlar, ne yerler, çöplerine ne olur? Zindanı ...
194
Laravel - Eloquent "Has", "With", "WhereHas" - What do they mean? explain in the context of an example
Laravel - Eloquent "Has", "With", "WhereHas" - Ne Anlama Geliyorlar? Bir örnek bağlamında açıklayın
With ```with()``` is for eager loading. That basically means, along the main model, Laravel will preload the relationship(s) you specify. This is especially helpful if you have a collection of models and you want to load a relation for all of them. Because with eager loading you run only one additional DB query instead...
With ```with()``` istekli yükleme içindir. Bu temelde, ana model boyunca Laravel'in belirttiğiniz ilişki(leri) önceden yükleyeceği anlamına gelir. Bu, özellikle bir model koleksiyonunuz varsa ve hepsi için bir ilişki yüklemek istiyorsanız faydalıdır. Çünkü istekli yüklemeyle koleksiyondaki her model için bir tane yerin...
195
What are some of the advantages of using one over the other?
Birini diğerine tercih etmenin bazı avantajları nelerdir?
ASP.NET Web Forms and MVC are two web frameworks developed by Microsoft - they are both good choices. Neither of the web frameworks are to be replaced by the other nor are there plans to have them 'merged' into a single framework. Continued support and development are done in parallel by Microsoft and neither will be...
ASP.NET Web Forms ve MVC, Microsoft tarafından geliştirilen iki web çerçevesidir; ikisi de iyi seçimlerdir. Web çerçevelerinden hiçbiri diğerinin yerini almayacak veya tek bir çerçevede "birleştirilmesi" planlanmamaktadır. Microsoft tarafından paralel olarak sürekli destek ve geliştirme yapılmakta ve hiçbirinin "ortada...
196
What factors determine the maximum altitude for a plane? Is it limited by wing design, engine thrust, and so on? Is there a formula by which one can calculate the maximum altitude a plane can reach?
Bir uçak için maksimum irtifayı belirleyen faktörler nelerdir? Kanat tasarımı, motor gücü vb. ile sınırlı mıdır? Bir uçağın ulaşabileceği maksimum irtifayı hesaplamak için bir formül var mı?
The higher you get, the lower the density of the air becomes. This lower density results in a lower lift being generated for the same airspeed and angle of attack. Effectively, the higher you fly the higher your minimum speed becomes. So while climbing, your speed needs to increase to compensate for the lower air densi...
Yükseldikçe havanın yoğunluğu azalır. Bu düşük yoğunluk, aynı hava hızı ve hücum açısı için daha düşük bir kaldırma kuvveti üretilmesiyle sonuçlanır. Etkili bir şekilde, ne kadar yükselirseniz minimum hızınız o kadar artar. Bu nedenle tırmanırken, daha düşük hava yoğunluğunu telafi etmek için hızınızın artması gerekir....
197
Why did the Typescript folks create the ```infer``` keyword? According to the documents, this is an example of how you would use it: ```type ReturnType = T extends (...args: any[]) => infer R ? R : any; ``` I don't understand why this is needed. Why can't it just be: ```type ReturnType = T extends (...args: any[]) => R...
Typescript geliştiricileri neden ```infer``` anahtar kelimesini oluşturdu? Belgelere göre, bu anahtar kelimenin nasıl kullanılacağına dair bir örnek şu şekildedir: ```type ReturnType = T extends (...args: any[]) => infer R ? R : any; ``` Bunun neden gerekli olduğunu anlamıyorum. Neden şu şekilde olamaz: ```type ReturnT...
With ```infer```, the compiler ensures that you have declared all type variables explicitly: ```type MyType = T extends infer R ? R : never; type T1 = MyType // T1 is { b: string; } ``` Here we declare a new type variable ```R``` in ```MyType```, which gets inferred from ```T```. (Note, that ```infer``` is always used ...
```infer``` ile derleyici, tüm tür değişkenlerini açıkça bildirdiğinizden emin olur: ```type MyType = T extends infer R ? R : never; type T1 = MyType // T1 { b: string; }'dir ``` Burada ```MyType``` içinde ```T```'den çıkarılan yeni bir tür değişkeni ```R``` bildiriyoruz. (```infer```'in her zaman koşullu bir türün ```...
198
Which is more widely supported: ```window.onload``` or ```document.onload```?
Hangisi daha yaygın olarak desteklenir: ```window.onload``` veya ```document.onload```?
When do they fire? ```window.onload``` * By default, it is fired when the entire page loads, including its content (images, CSS, scripts, etc.). In some browsers it now takes over the role of ```document.onload``` and fires when the DOM is ready as well. ```document.onload``` * It is called when the DOM is ready whi...
Ne zaman tetiklenirler? ```window.onload``` * Varsayılan olarak, içeriği (resimler, CSS, komut dosyaları vb.) dahil olmak üzere tüm sayfa yüklendiğinde tetiklenir. Bazı tarayıcılarda artık ```document.onload``` rolünü üstlenir ve DOM hazır olduğunda da tetiklenir. ```document.onload``` * DOM hazır olduğunda çağrılır...
199
I was surprised to learn that Puerto Ricans, despite living in a US territory, were not entitled to vote in the presidential elections. I was even more surprised to learn that US citizens are allowed to vote for president from anywhere in the world - EXCEPT if they happen to live in Puerto Rico. What is the legal/polit...
Puerto Ricalıların, bir ABD bölgesinde yaşamalarına rağmen başkanlık seçimlerinde oy kullanma hakkına sahip olmadıklarını öğrenince şaşırdım. ABD vatandaşlarının dünyanın herhangi bir yerinden başkan için oy kullanmalarına izin verildiğini öğrenince daha da şaşırdım - Puerto Rico'da yaşamaları HARİÇ. Bunun arkasındaki ...
This is a peculiarity as a result of the federal nature of the USA and the exceptional position of Puerto Rico as a territory but not a state. Within the States and Territories of the USA, your voting rights depend on residence. If you leave the States and Territories your voting rights depend on former residence or ...
Bu, ABD'nin federal yapısının ve Porto Riko'nun bir eyalet değil, bir bölge olarak istisnai konumunun bir sonucu olarak ortaya çıkan bir tuhaflıktır. ABD'nin eyaletleri ve bölgelerinde oy kullanma hakkınız ikametgâha bağlıdır. Eyaletleri ve bölgeleri terk ederseniz oy kullanma hakkınız eski ikametgâha veya mirasa bağlı...