TLS 1.2 backwards compatibility.

Question: The question is that, what if the client only supports TLS 1.1 and the server has TLS1.2 or SSL 3.0 enabled.  Will it then go back to SSL 3.0 because the server doesn't have TLS 1.1 enabled?
Comment: SSL 3.0 could be configured as a fallback. The client can also give up and echo ERR_SSL_VERSION_OR_CIPHER_MISMATCH (or friends)
Comment: Think of supported TLS versions as a bitmask. AND the bitmask of the client and the server and the highest bit set (corresponding to the most modern version) will work. Eg if the server only has TLS 1.2 and SSL 3.0 and the client only TLS 1.1, the connection will fail.
Answer: In the SSL/TLS handshake, things go thus: the client sends a maximum supported version; then the server chooses the version that will be used, and sends it to the client.
The server, by definition, won't choose a protocol version that it does not support. The server will try to select a version that it supports and that is also supported by the client; however, the server has only partial information about what the client supports, since it only received a "maximum supported version". If the client says "up to TLS 1.1", then the server knows that the client supports TLS 1.1 (or least claims to) but not TLS 1.2; whether the client would support/accept TLS 1.0 or older protocol versions is unknown to the server at that point.
In your envisioned situation, if the server supports only TLS 1.2 and SSL 3.0, then it will select only TLS 1.2 or SSL 3.0. If the client says "I support up to TLS 1.1", then the server will not select TLS 1.2 (since, at this point, the server knows that the client does not support it); therefore, it will choose SSL 3.0, which is its only other choice. The client, upon receiving that answer from the server, may very well say "SSL 3.0? What sort of antique server is that? Why not flint stone tools while we're at it?" and refuse to communicate any further.
Basically, for the handshake to succeed, there must be a protocol version that both client and server support. If the client supports only TLS 1.1, and the server supports only TLS 1.2 and SSL 3.0, then there is no common protocol version, and communications won't happen.

Now there may be weird situations in which client and server fail to notice that they do have a version that they both support. For instance, the client, for some reason, supports TLS 1.0 and 1.2, but not TLS 1.1; and the server supports TLS 1.0 and 1.1, but not TLS 1.2. In such a situation, the client will claim to support "up to TLS 1.2", and the server, who knows only TLS 1.0 and 1.1, will choose TLS 1.1, that the client will reject.
In practice, such situations do not occur, because implementations don't have "holes" in the range of protocol versions that they support. If a client or server supports versions X and Y, then it will also support all versions between X and Y. It makes very little sense to support TLS 1.0 and TLS 1.2 but not TLS 1.1.
Comment: The Oracle/OpenJDK implementation JSSE, although it _defaults_ to a sane version range, can easily be set by careless code or config to have such 'holes' with troublesome results as described. (IBM Java has different cryptoproviders and I don't know if the same is true there.) Also there was an informal custom to put minimum version in record-header (versus maximum in ClientHello body) which is codified as MAY-but-no-guarantees in rfc5246 E.1.
Comment: apache allows settings holes: http://httpd.apache.org/docs/current/mod/mod_ssl.html#sslprotocol nginx also allows setting holes: http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_protocols

TLS 1.2 backwards compatibility.


High Level Elementary Statistics Textbook

Question: I am looking for an elementary statistics book, that contains topics such as descriptive statistics, sampling distributions of the mean and variance, etc. However, despite my interest in basic topics, I am looking for a book that teaches it in a high level, for example: when discussing the why the variance includes a squared difference from the mean and not absolute value, I am looking for a mathematical explanation (the problem with the derivative), or, a loss function explanation. In other words, I am looking for an elementary statistics book for mathematicians or statisticians, and not just a textbook. Can you please recommend me of such books, if exist? Thank you.
Comment: You may have different needs to the thread proposed as a duplicate, but on their face the two threads look very similar (both seeking elementary statistics texts for someone coming from a mathematically strong background). It might be worth editing your question to make clear why your needs are different, if you do not feel that that thread is relevant to your case too.
Comment: Have you checked: http://stats.stackexchange.com/questions/tagged/references ?
Comment: I have already posted a recommendation for Kiefer's monograph at http://stats.stackexchange.com/a/66059/919 and so will not repeat it here.  The mathematical level is not high--it assumes only elementary calculus and a little linear algebra--but the *conceptual* level is extremely high.  Reading it might help you refocus your interests a little, too: away from technical mathematical issues like differentiability and towards fundamental statistical issues such as comparing risk functions.
Comment: Have a look at this (and the links it contains):   http://math.stackexchange.com/questions/735075/statistics-primer-for-the-unwary-mathematician/791826#791826
Answer:
The best one (subjective, in my opinion) will be introduction to statistical reasoning by Gary Smith. This book is worth its weight in gold for elementary statistics and is filled with tons of real world examples and stories.
Slightly more academic but nonetheless good starting point will be introduction to probability and statistics by Sheldon Ross.


What are the shops with high level items in Skyrim?

Question: I am now at level 32 in the game, and all the items that I can buy from the shops seem like too basic compared to what I find in the dungeons. Are there any special shops with very powerful items that I could have missed?
Answer: Vendors level their inventory as your level increases - and monsters get harder or become different.  Harder monsters. Harder dragons. The loot you get from dungeons gets better.
Everything levels up with you.
Answer: A unique merchant, added by the Dragonborn DLC, is the Dremora Merchant. According to the UESP wiki's "Dremora Merchant" article, "At higher levels, he is the best constant source of Daedric items".
Since Daedric items can be hard to come by, it might be worth transacting with this merchant if you're at a high enough level. Since this guy can be summoned almost anywhere, it is easier to buy and sell items from him.
Answer: In my expirience (lvl 46, only been to around 4 cities and done quests) the vendor you sell most to, gets better items.
At least the smith next to my house seems to have better items than most other vendors I've found (esp. compared to the guy at the Skyforge). It could just be a coincidence, but I'd like to think that vendors you traded more with, got better and better items.
Comment: He's known for his steel -- Skyforge steel is better than normal steel.
Comment: The guy at the Skyforge is different. Most other vendors will have leveled loot. It has nothing to do with who you sell to. I see just as much nice stuff in Solitude where I just arrived as in Whiterun, where I sold nearly everything for over 30 levels.
Comment: @agf Ah ok, I just thought that your trading with them had some influence on it, but if the Skyforge guy is different, I guess not... though I find it strange as the Skyforge guy is held in high regard throughout Skyrim (or at least often mentioned by the other blacksmiths).
Answer: I am level 51 and the best things in game I bought in Whiterun and made them better by my character. Other good things I got through quests or made them by myself smithing and evolving magically. An ebony greatsword goes from 37 damage to 87 through smithing at about 160 mostly due to selfcreated items and then I add two magic effects. Things like these can not be bought like the Nightingale Bow. Other best things you can get from  Daedra or Dragon Priests.
Answer: Not sure, i know for a fact that some vendors upgrade their item lists as you go deeper trough the quest line, happened to me several times in the Circle of Mages.


Can you survive the Hardcore Spike in Candy box 2 thats at the end of the game?

Question: I "cheated" on "the computer" for a bunch of Pains au chocolat.Then I traded a bunch of them in at the wishing well and got 5200 health.I had enchanted knight armor, unicorn horn, and my inventory was full except for one slot.I tried the "Hardcore level" in "the Arena" and the second I touched a spike , I died.Is it possible to survive these?
Answer: No, it is meant to be impossible to survive the spikes, but the actual level is winnable.
Answer: It can't be beat. I tried for years. There is no method to win the spike level in arcade. Just like there is no way to get to the end of the pier. Sharks and sea snakes just keep coming. I've tried it for 5 years and can't win these two things.


Can we use both Column and Row transformations simultaneously when finding inverse of a matrix using elementary transformation method?

Question: I have seen many times that people find inverse of a matrix using elementary transformations. But they perform the operations only on the rows. Can we perform the operations on the column also? If Yes, can we do both row and column transformations together?
Answer: No we cannot.
Doing an elementary row transformation to a matrix $M$ is the same thing as multiplying $M$ by some matrix $R$ on the left; doing column transformation is multiplying $M$ by some matrix $C$ on the right. Thus, by a sequence of row transformations you obtain a matrix of the form $SM$, where $S$ is the matrix you obtain by executing the same sequence of row transformations on the identity matrix $E$ (analogously for column transformations). Thus, once via row transformations from initial matrix $M$ you get $E$, you actually get an equality $$SM = E,$$
where $S$ is obtained as described above. That is why this method of finding an inverse via row transformations works.
Now, if in the process you also did column transformations, you would get an equality of the form $$SMT = E,$$
where S is the matrix you get from identity matrix by executing all row transformations, and $T$ is what you get by executing all column transformations.
You still get a valid equality, but it does not give you an inverse to your matrix $M$.
Answer: It is possible to adapt the usual method as follows: write your matrix $M$ besides an identity matrix and above another identity matrix, such as
$$
\matrix{
\pmatrix{
a & b & c \cr d&e&f\cr h&i&j
}
&
\pmatrix{
1&0&0\cr 0&1&0\cr 0&0&1
}
\cr\cr
\pmatrix{
1&0&0\cr 0&1&0\cr 0&0&1
}
}
$$
Then, every time you do a row operation, make sure to apply it to the long row across $M$ and the identity matrix to the right of $M$.  On the other hand, when
you do a column operation, make sure to apply it to the long column across $M$ and the identity matrix below. When you are done, that is, when you have transformed $M$ into the identity matrix and are left with
$$
\matrix{I&S\cr T}
$$
then $M^{-1}=TS$.


For Pokemon Go, the near by pokemon box doesn't update. Just stays the same. Everywhere

Question: The small grey box in the bottom right corner of the screen doesn't accurately show near by pokemon. There could be an eevee in my front yard, and after walking a mile, it still shows the eevee in the box. No new pokemon show up either. I've tried deleting and redownloading the app, checking settings, and restarting my phone. I tried talking with support from the company and they won't respond. Is anyone else having this issue? Does anyone know how to fix it?
Answer: The only solution I've found so far is to close the application completely and relaunch it. This problem extends to Pokéstops not refreshing until you've moved far away enough and restarted your application.
Reinstalling the game will not solve the problem, personally I've reinstalled the game over 10 times and had it run from both my SD card and Device Storage.
Running on Samsung S4 Android Lollipop 5.0.1
Answer: I've experienced some errors with this as well - it's probably related to the server issues they've had this week. Thus there isn't really a fix.
Answer: This appears to be a bug, it seems that old entries remain in the nearby box. It makes it incredibly difficult to use the footprints to find nearby Pokemon.
The solution to this would be to restart the app. After logging in the nearby box should be refreshed and work correctly for a little bit. When hunting a rare Pokemon, I refresh the app constantly just to make sure it's correctly updated.
The other thing that could happen is that you can't log in for a period of time or get the "servers are busy" error. Then you will just have to try again later.


Eclipse Android - Logcat Clearing too Fast

Question: I have been using Eclipse for Android (most up to date version), for a while with no problems with the Logcat. For an unknown reason, Logcat is no longer retaining the debug messages. Logcat is getting cleared in about 5 seconds . Is there any way to prevent the auto-clearing of Logcat messages? Otherwise I am unable to read the messages.
Answer: Change your LogCat buffer length:
Window / Preferences / Android / LogCat / Maximum number of LogCat messages in buffer _
Set it to 0 for unlimited size (thanks to the commenter below)
Comment: Just thought I'd add, by setting to 0, on Mac Eclipse it doesn't help. the size is still cut after small amount. I had to set mine to a large number such as 500000
Comment: Hmm... using Eclipse Kepler on Mac, it goes unlimited (or at least very high) when set to 0.
Comment: Where can I find those settings on Android Studio?
Comment: Eclipse Mars on Mac looks like it limits to 5000 if the buffer size is set to 0.
Answer: Its happens when there is too many logcat rows. It automatically delete all after reaching maximum number defined in preferences (5000 rows by default in Eclipse), both filtered and not filtered rows.
Fortunetly, you can change maximum number in:
Window > Preferences > Android > LogCat > Maximum number of LogCat messages in buffer
I have the same problem, but only with Sony Xperia C and Android 4.2.2. Every phone have different level of logging.
Answer: You can use breakpoints where you print the messages and debug them by F6/F8 keys after that. So you can see all the messages by step.


Using OpenGL's Frame Buffer Objects (FBOs) for Image Manipulation?

Question: I've read that FBOs can be used for fast image manipulation using the OpenGL drawing actions. Does anyone know the basics of how to do this? or has some very simple example code illustrating it?
Answer: Framebuffer Objects (FBO) are just a basic tool that cannot be used to manipulate images directly. If you know how to render your image manipulations in OpenGL to the screen, you can then use FBOs to render them off-screen. So they are in fact useful for this task, since you are not limited by the resolution of your screen and don't have to distract the user with thousands of flashing images. However, the manipulation itself happens in OpenGL, probably in the fragment shader.
Visit to the OpenGL forum to get some advice how to start with OpenGL basics. They also have quite a few links to sample code.
Answer: Before you can use FBOs for image manipulation you need to know how to handle OpenGL, as a FBO can simply be used as a render target (output buffer for rendering operations). Once you're fluent with OpenGL and probably know how to do shader programming, you can do virtually everything with images in an FBO, and do it extremely fast.
A simpler approach might be to employ CUDA (NVidia) or Stream Computing (ATI) to harness a GPU's power for image manipulation, because these APIs are much closer to regular array-based C++ programming. Image manipulation may be somewhat slower that way than with OpenGL, but still way faster than with traditional CPU driven code.


Linux Mint reboot freeze

Question: I have almost succeeded with a USB dual boot installation of Linux Mint 19.2 on a Win 10 laptop.
I am a Linux virgin, so have followed the instructions in a "monkey-see, monkey-do" method. This served me well right through to the end of the installation in a live session. After receiving a completion message, I was invited to reboot, at which point the system froze.
Any pointers welcome, but please assume (correctly) that I have no functioning knowledge of Linux. Baby step by baby step please.
Comment: Ook; we were all primates once. A common issue is a corrupted ISO file. Did you use a checksum to verify the ISO you downloaded, following https://linuxmint.com/verify.php ? Did you download a 32-bit or 64-bit version? Did you download the edition with Cinnamon, xfce, or MATE? Please click [edit] to reply; please do not click Add Comment, but instead use [edit].
Comment: Some graphics cards don't work well with the open-source driver present in Linux Mint, but there's a work-around. Before you start, though, please go to Windows, open a Command Prompt Window, and run `wmic computersystem get manufacturer,model,systemtype` then collect that information, and add it to your original question so we can see what kind of PC you have.
Answer: Reboot the PC, select booting from the version of Mint you installed, and hold SHIFT to force the boot menu of GRUB to appear. Then, replace quiet where it appears in the commands for the first item in the GRUB menu with nomodeset, and then continue with booting. Here are two videos; the first is for the EFI/UEFI boot configuration most common with Windows 10, and the second is for the MBR boot process from Windows 7.
Once you get past that problem, you can install the drivers for your PC's video adapter.

Linux Mint reboot freeze


How do I remove an article from Scopus indexing?

Question: Due to some technical mistakes, I removed my published article from a journal. But the article was already indexed by Scopus. I need to remove the article from Scopus indexing database as well. Could I get some guidance in this regard?
Comment: What do you mean technical mistake? Do you mean that a retraction was issued?
Answer: I would suggest you contact them directly
And explain why they should remove the article, with actual proof that it's no longer available in the journal in question.


Going from Sweden to the US with a London layover, can I take a bouquet of roses?

Question: On the second of November I'm going from Sweden to the USA with a stopover in London. I'm planning on bringing a cut roses bouquet with me and wonder if that's possible or will there be any problems?
Comment: This is a great question and a great addition to the site.  I don't understand why someone answered and two people upvoted the answer, without anyone upvoting the question before me.
Comment: @phoog sorry, I sometimes forget that...
Answer: If you do it properly, yes.
When traveling,  assume anything that can contain bugs should be reported to the Customs Authorities.
Flowers- Bring flowers into the United States

Can I bring cut flowers for myself or significant other?
Most cut flowers are able to enter the United States. However, they must be declared and able to be inspected by an Agriculture Specialist. If the plant material is found to be propagatable or bug and disease agents are present the plant material will be seized and denied entry.


How to transfer a save in candy box 1 from the iPad to the PC?

Question: I took some advice from someone and I can't figure out how to transfer a save from my iPad to my PC to beat the hell level.
Answer: From your ipad, on the main page, click the save button and take note of the given code.
Then browse to: http://candies.aniwey.net/index.php?pass=[your_code] -- where you replace the the insides of the brackets with the code you received.
e.g. http://candies.aniwey.net/index.php?pass=12345


In Boruto, are there other people with Karmas?

Question: I've been watching Boruto and the way people get Karmas. There are other strong villages: have they not been attacked? And, if they have defeated them, are there any other Karmas besides Boruto's and Kawaki's?
Answer: There are only 4 people with the Karma
(Kāma) seal that we know as of yet :-

Kawaki
Boruto
Jigen
Code

You can find the wiki source for the above claims here
It is currently unknown if any other person has this seal.
Out of the above 4 people the only Code has a White Karma(Kāma) seal on him. Rest all have Black Karma(Kāma) seal on them. While Jigen having passed away, we can assume that only 3 people currently have Karma.

Due to Isshiki leaving his body, and having little to no chakra at
all, he passed away.

Kawaki had also lost his Karma(Kāma) but regained it later. Below is a reference from the wiki :-

By the improper resurrection of Isshiki, Kawaki's being has mostly
been written into Isshiki's likeness. This forced resurrection of
Isshiki also resulted Kawaki's Kāma being erased. Later however, he
was branded with another Kāma.

Also there is no known instance of people with Karma(Kāma) seal attacking the other villages. The leaf was attacked only because they have 2 people with Karma(Kāma) in their village - Kawaki and Boruto respectively.
Answer: Yes, there are other people with Karma.
All four introductions to the Karma have included the following characters:

Jigen / Isshiki Otsutsuki
Kawaki
Boruto Uzumaki
... and Code.

Some of them had different ways of getting the Karma, for example, Boruto got his after defeating Momoshiki Otsutsuki with his father-son Giant Rasengan. Kawaki, on the other hand, got his through scientific experiments (through Amado) / Jigen's chakra. Code got his the same way as Kawaki, though his was a white Karma and was a non-vessel weapon.
There are no other known characters to possess a Karma other than the four mentioned, but some have lost theirs:

Jigen lost his after being killed by Koji Kashin.
... and Kawaki had lost his by a Karma safety feature after Isshiki was forced to resurrect through Jigen's body, which, of course, limited his lifespan to about two days. (Until shortened by Naruto's Baryon Mode.)

Which leaves only Code (White, non-vessel Karma) and Boruto to currently be the only characters shown to possess any form of the Karma. Villages were not really intended to be attacked by Otsutsuki, but to just fulfill their goal of planting the Divine Tree, which would require a living Otsutsuki, which the Leaf Village sort of possesses, because of Boruto's Karma.


What happens if there is stoppage of play after a tied T20 International match and super over is not possible?

Question: Let's say, the two innings are completed with scores level. Normally, a super over would decide the winner but if there is, say, a rain interruption and the super over cannot be completed, how is the match awarded?
Comment: In [IPL](http://www.iplt20.com/about/2016/match-playing-conditions/26/law-21-the-result), for group stages,

1 point per team taking part in any match with no result or any match which is tied (where it was not possible to complete a Super Over at the end of play or where the Super Over itself is tied).

Not sure about T20 international.
Comment: What playing conditions are in effect?
Comment: A downvote? I updated the question to indicate an international match.
Answer: The number of runs scored by boundaries comes into the effect.. The team which scored most runs from boundaries will win the match.
Even if both of them are same then runs from sixes are given preference.
If still they are equal... then i guess may be number of wickets are considered or both teams are declared winners
Comment: Welcome to SE.Sport. Could you please add any (official) references to your answer?
Comment: @Ale The answer i have given is purely on my knowledge of cricket. I can't exactly give you the perfect rule because... it depends on the tournament you are playing... rules change from IPL to ICC. Also leagues like BBL , CPL, BPL, PSL also follow their own rules. I can only give you the rules if you mention the tournament.
Comment: So that means your answer needs to be updated with the rules you're discussing. That's why we ask for references, to ensure answers are of the highest quality possible.


What's going on with \\[this sequence\\] invoking MathJax?

Question: Exempt-Medic noticed in this answer that the following sequence invokes MathJax: \\[MathJax!\\]
See it here in action: \[MathJax!\]
Our configuration ever since our original request to enable it was supposed to be \$this\$ for inline MathJax (\$this\$) and $$this$$ for blocks, but above \\[this\\] also invokes a block.
What's going on that \\[...\\] is invoking MathJax as well? Is it supposed to be doing that? Is this a bug or an expected feature?
Answer: According to this meta.se answer, \\[ ... \\] is one of the syntaxes used for "display style" math mode, the same environment as $$ ...  $$.


What are the different Sampradayas under the "Shanmatha" branches?

Question: Like the various Vaishnava Sampradayas, what are the major disciplic lines for the other 5 sects: Shaiva, Shakta, Ganapatya, Kaumara, and Saura?
Comment: to clarify, by disciplic lines do you mean sri-vaishnava, gaudiya etc. ?
Comment: Yes sir, that's what I meant. They are also known by the siddhantas... Vishistadvaita, dvaita, dvaitadvaita, shuddhadvaita, acintya bhedabheda etc. But more importantly each have a proper guru parampara listed. I have heard about such differentiation in siddhanta with Saivas but haven't seen or read much for the other mathas. Hence the question.
Comment: They do have the lineage stemming from Adi Shankara.. But I do not know of any specific lineages...
Answer: Following are the Sampradays that I know of:
Vaishnava: Rudra, Kaumara, Sri, Brahma and others like Samartha, Varkari
Shaiva: Siddhanta, Pratyabhijna, Natha, Veera
Shakta: Srikula, Kalikula
Ganapatya: Morya Gosavi
Not sure about Saura.


IE8 issue with loading FLASH. SWF loads and renders correctly on initial load, but on any subsequent refresh it fails to load

Question: I need some help? Anyone experience this problem before with IE8 FLASH bug? Can not get this to work on all subsequent refresh to the flash. I have a flash piece which simply renders only on the first initial load. After that, if i refresh or visit the page, it does not load correctly. It seems I am having this problem with the swf only on subsequent loading of the page or whenever a refresh happens. Can you offer any ideas or services to help?
Comment: is this flash piece an animated swf with last frame blank?
Answer: I have seen, on a number of occasions, issues like this occurring due to logical errors with pre-loaders.
Do you have a pre-loader?
If you do, how is it determining if the movie is loaded? Are you expecting a particular event to fire, which might have fired before you listen for it? Can you test to see if the movie is already loaded, before going into the preloader?
Hopefully you have a preloader... otherwise this answer is useless.


Windows 10 update from 1703 to 1803 (skip 1709) offline

Question: After searching alot i was unable to find a proper solution.
My situation is something like this.
I am on build 1703 (15063.674) and i want to upgrade it to 1803. Skipping version 1709.
I want to do this offline as i have limited data. I have enough data to download builds but windows update is slow (stops for no reason sometimes) and doesn't manage data well. So the only option left to me is offline.
Tried windows 10 update assistant but it gets stuck mid-way and fails to resume. My bad luck is a major ongoing factor.
I can download from Microsoft catalogue.
Do i have to first install cumulative updates for 1703?
After that direct update to 1803?
Sorry for all the trouble.
Just guide me into the general direction.
Thanks
Comment: You can use Windows Media Creator to make an installation USB, boot from it and update.
Comment: update to Windows 10 1803 and skip 1709 can achieve through using an available Windows 10 1803 ISO disk, Download from Microsoft website to a USB disk, and install it again. As your last time use Windows update assistent fail, we should turn off antivirus temporarily and check again. As antivirus software will prevent to replace some system components.
Answer: This is possible, in fact you can go from any build specifically to the latest.
All you need to do is download the Media Creation Tool and run it on a pc with sufficient bandwidth. It will then ask you if you want to update the current pc, or that you want to create an offline installer. You select the offline installer. You can then save it to an .ISO file or write it directly to a USB stick that can be booted from. If you have that stick ready, using the USB stick method is recommended.
After the stick has been downloaded, this becomes your installation medium for that specific version of windows. From any version of windows, you can upgrade to this version using that usb stick, although you cannot downgrade from a later version of windows to this version.
If your computer does not already have windows, you can boot from the stick to install a fresh copy of windows, directly to this version. But you mentioned you already have windows installed.
In that case, from within windows, plug in the usb stick. Browse the stick and launch setup (if it doesn't already launch by itself). It will ask you if you want to upgrade windows to the version that is on the stick and keep your files and everything in tact.
Sidenote, the USB stick can be used to troubleshoot pc's from which windows can't boot anymore.
Comment: No, the download cannot be resumed. It will fail and you have to do it again which will start from the beginning.
Comment: If download gets stuck or i cross my data limit can it be resumed?
Comment: @AlkeshLabana , I don't think so for the Media Creation Tool specifically.  There may be other ways of getting the ISO with resume possible.  For instance, I used to be able to download ISOs from Microsoft Volume Licensing through my company.  I don't suggest torrenting it because there's no guarantee that the file you get is the real thing.
Answer: I suggest finding a place where you can get unlimited data.  A friend with a dedicated Internet line, for instance.  In the USA, public libraries, coffeeshops, hotels, and many other places often have free wifi.  You can use the Media Creation Tool there to save the ISO, and then burn it to a DVD or thumb drive at your leisure.  Alternately, you can just run Windows Update normally while present in the free spot.
Comment: I got my windows through a retailer. And it's volume licence copy under him that's why if i install any other iso it might not work (might get "activate windows"). So trying to go through  Microsoft catalogue. I might give media creation a try tomorrow.
Comment: @AlkeshLabana if you have windows installed and you perform an upgrade, it doesn't really matter what ISO you have, as long as it is the same version, and it will upgrade and keep your license key in tact. A reinstall should do the same as long as it is the same version.


Using Edge Chromium for SharePoint

Question: We have a SharePoint 2019 on premise system. We've encountered an issue where emails always download instead of opening automatically in Outlook when using Edge Chromium  All other document types in system (word, Excel and TXT) open in the default client application. When I try an another browser like Firefox emails do open in Outlook automatically. This seems to suggest there is nothing with configuration or settings of our SharePoint system but a problem with Edge Chromium itself. The organization I work for seems keen to use Edge Chromium as its default browser. I was wondering if there is a way to get around the problem. Nothing I have tried within Edge Chromium settings stops the downloading of emails. So I'm beginning to wonder if we need to dump it for another browser. Any advise/help would be greatly appreciated.
Comment: What file extension do the emails use?  *.eml or *.msg
Answer: I could reproduce your issue in Chrome and Edge, in addition, this works on IE.

There is no OOB way to prevent Chrome and Edge downloading email files first.
As a workaround, after downloading the file, we could set "always open files of this type" option to automatically Open Downloads in outlook client as shown below:

If this is not feasible for you, we suggest you switch to another browser that supports this feature.

Using Edge Chromium for SharePoint


Mac Pro cd drive stuck open

Question: I just got a brand new mac pro. I opened the cd drive with the eject button on the keyboard, and then went to close it the same way, the cd drive goes in, but the metal gate doesn't come back up. What can i do?
Answer: It's likely the case will have to be replaced. I've fixed this before by lightly tapping on the area below the gate, but it's a recurring thing.
You can also slide the optical drive housing out and take a look at the mechanism that raises and lowers the gate. Try manually pulling it up and down a few times.
Answer: I got it fixed by inserting a needle in the case's holes right underneath the lid. Keep pushing it up while holding the lid with a slight press, repeat the process and keep switching the holes all the way up!
EDIT:
I made a quick video tutorial for easier explanation.
https://youtu.be/PWO96pk1gOs
Answer: You have a couple options, depending on how stuck it is....
Tap the Hinges
I had this problem, too. I was able to fix the problem by pushing on the hinges, as shown below. In the image, you can see the cover hidden behind the outer "mesh" of the case, below the CD tray opening. It is supposed to snap back up from there when the CD tray hits those little hinges. Sometimes it gets gummed up, and it just needs to be nudged a bit to snap back up.

Open and Clean the Case
If you are unable to nudge it out of place, it's likely really stuck. You'd probably want to remove it from the case and examine it. It might need cleaning: either blowing dust away with compressed air or gentle scrubbing with a toothbrush. If it's oily or sticky, you might want to use a tiny bit of warm water, even less soap, and scrub gently with a toothbrush or paper towel (let it dry completely before connecting it to power!). You might find that the spring mechanism is broken or missing, in which case you'd need to replace those parts.
Professional Help!
If you are unable to fix it, you can bring it your local Apple Store or authorized retail/repair center and see if they can fix it.

Mac Pro cd drive stuck open


Computing a matrix element with the Wigner-Eckart-theorem

Question: I learned about the Wigner-Eckart theorem and want to apply it to the following matrix element
\begin{equation}
\langle j \, m | r_kr_l | j' \, m'\rangle.
\end{equation}
I know this can be done by writing the involved tensor operator as a sum of irreducible tensors
\begin{equation}
r_kr_l = \left(\frac{1}{3}\delta_{kl}\vec{r}^2\right) + \left(r_kr_l - \frac{1}{3}\delta_{kl}\vec{r}^2\right)
\end{equation}
which leads to
\begin{align}
\langle j \, m | r_kr_l | j' \, m'\rangle &= \langle j \, m | \frac{1}{3}\delta_{kl}\vec{r}^2 | j' \, m'\rangle + \langle j \, m | r_kr_l - \frac{1}{3}\delta_{kl}\vec{r}^2 | j' \, m'\rangle\\
&= \frac{1}{3}\lambda(j)\delta_{jj'}\delta_{mm'}\delta_{kl} + \langle j \, m | r_kr_l - \frac{1}{3}\delta_{kl}\vec{r}^2 | j' \, m'\rangle,
\end{align}
as $\vec{r}^2$ is a scalar. But I don't know how to proceed. How can I compute the second matrix element? Do I have to write the tensor in spherical coordinates so that I can apply Wigner-Eckart theorem to $Y_l^m(\vartheta,\phi)$ here?
Comment: do $k,l$ run over $x,y,z$?
Comment: Why don't you just compute the matrix element directly?
Comment: @InertialObserver: Yes, the index denotes cartesian components. Regarding the direct computation: I wanted to deepen my understanding for the theorem, but if there is a way to compute this element directly, I would also be interested in that.
Answer: I am assuming here that with $r_i$ you mean the Cartesian components of the position operator.
In general the decomposition of $u_i \, v_j$, with $\vec{u}$ and $\vec{v}$ vectors, includes an additional antisymetric component $\frac{1}{2} \left(u_i \, v_j - u_j \, v_i\right)$ with 3 additional DOFs. In this case we don't have to worry about that.
Writing everything explicitly in terms of spherical harmonics reveals that the job is not fully done by just splitting this object in the trace and the traceless symmetric component. A bit of algebra leads us to
\begin{equation}
r_i \, r_j \, = \, \frac{\sqrt{4 \pi}}{3} \, Y^{m=0}_{l=0} \, r^2 \, \delta_{ij} \, + \,r^2 \, S_{ij} \, ,
\end{equation}
with
\begin{equation}
S = \begin{bmatrix}
    -\frac{2}{3}\sqrt{\frac{\pi}{5}} Y^{m=0}_{l=2} + 4 \sqrt{\frac{\pi}{30}} \mathrm{Re}\left[Y^{m=2}_{l=2}\right] & 4 \sqrt{\frac{\pi}{30}} \mathrm{Im}\left[Y^{m=2}_{l=2}\right] & - 2 \sqrt{\frac{2\pi}{15}} \mathrm{Re}\left[Y^{m=1}_{l=2}\right] \\
    4 \sqrt{\frac{\pi}{30}} \mathrm{Im}\left[Y^{m=2}_{l=2}\right] & -\frac{2}{3}\sqrt{\frac{\pi}{5}} Y^{m=0}_{l=2} - 4 \sqrt{\frac{\pi}{30}} \mathrm{Re}\left[Y^{m=2}_{l=2}\right] & - 2 \sqrt{\frac{2\pi}{15}} \mathrm{Im}\left[Y^{m=1}_{l=2}\right] \\
    - 2 \sqrt{\frac{2\pi}{15}} \mathrm{Re}\left[Y^{m=1}_{l=2}\right] & - 2 \sqrt{\frac{2\pi}{15}} \mathrm{Im}\left[Y^{m=1}_{l=2}\right] & \frac{4}{3}\sqrt{\frac{\pi}{5}} Y^{m=0}_{l=2}
\end{bmatrix} .
\end{equation}
This shows that the traceless symmetric part contains only components of a rank 2 spherical tensor. But the relation between Cartesian and Spherical components certainly mixes distinct values of $m$ for a specific Cartesian component. In particular, the real and imaginary parts of spherical harmonics will always mix $Y^{l=l_i}_{m=|m_i|}$ and $Y^{l=l_i}_{m=-|m_i|}$.
We see here that when it comes to applying the Wigner-Eckart theorem to a Cartesian tensor like this, we may be able to establish the rank $l$ of the distinct pieces directly and deduce the contribution to the matrix element that depends solely on $l$. On the other hand, like $S$, each piece clearly contains different irreducible components with different $m$'s in (generically) non-trivial combinations and the Wigner-Eckart formula depends on $m$ via a Clebsch-Gordan coefficient. Hence, in order to write the full explicit result, including the $m$ dependent CG coefficient, we would have to go through each irreducible term in each Cartesian component.
It should be mentioned that here we had the advantage of having the position vector directly involved and we were able to write things in terms of the Spherical Harmonics. In general, the relation between irreducible Spherical components and (products of) general Cartesian vectors can be computed as an extrapolation of the one you find for spherical harmonics (see section 3.10 Tensor Operators in Sakurai's Modern Quantum Mechanics, revised edition).
Finally, after you are done with the decomposition, you are free to use the Wigner-Eckart theorem in its general form to compute the matrix elements. Or, alternatively, look directly at the integrals which end up having integrands with 3 spherical harmonics. For these, there is a formula (eq 3.7.73 in Sakurai's book), which is nothing but an explicit application of the Wigner-Eckart theorem.
Comment: First of all, it became clear to me how to write the tensor in spherical harmonics. But I do not understand what you mean by "$m$ still appears in the formular". Is it not the general case that the Clebsch-Gordan coefficients in the Wigner-Eckart theorem depend on $m$? For the following computation: Is it true that I have to compute the six independent components of the tensor separately (i.e. $xx$, $xy$, $xz$,...) and can use Wigner-Eckart for the matrix element $\langle j\, m | Y_l^m | j'\, m'\rangle$ afterwards?
Comment: Oh maybe the context in which I wrote this was not clear. I don't think that we disagree. I simply meant to say that we know $S$ only has $l=2$ components (even before computing the matrix $S$ explicitly) and so the part of the WE formula that depends only on $l$ can be deduced directly. On the other hand, $S$ clearly contains different irreducible components with different $m$'s. Hence, in order to write the full explicit result, including the $m$ dependent CG coefficient, we would have to go term by term.
Comment: So you mean that because we know $S$ is traceless and symmetric, we can deduce that it transforms like $Y_2^m$? Is the "part of the WE formula that depends only on $l$" the reduced matrix element?
Comment: Yes, I mean the reduced matrix element. We know the $S$ is $l=2$ because the decomposition of the tensor product of 2 Cartesian vectors is fairly well known: with 1 DOF in a scalar, 3 DOFs in a "vector" (anti-simmetric piece) and 5 DOFs in the traceless symmetric part. These numbers match the values of $2l+1$ for $l=0,1,2$ and add up to $1+3+5=3^2$. This analysis can be done to tensor products of higher rank.


Pen display stylus points at both monitors, not just the pen display

Question: Just tried connecting a Gaomon PD2200 pen display to my Debian-based x64 system, and it almost completely works right away: the display shows up as a second monitor, and the stylus moves the mouse.
Unfortunately, the stylus moves over both monitors: if I set up my primary monitor to be above the pen display, then moving the stylus to the bottom of the pen display moves the mouse to the bottom of the pen display as it should, but moving the stylus to the top of the pen display moves the mouse to the top of my primary monitor. The mouse pointer is only under the stylus when the stylus is in the bottom right hand corner.
What I'd like is to associate the input device with the monitor somehow, so X knows that all coordinates from the stylus should be mapped to mouse positions within this secondary monitor. But I can't figure out how to control this; the "Graphics Tablet" setting just says "No tablet detected", and I can't find anything relevant in the "Display" or "Mouse and Touchpad" settings.
Does the setting I want exist? What are some useful search terms for this? I'm happy to make like it's 1997 and get down and dirty with the xorg.conf file.
Answer: I'm not sure what the long-term solution is, but for now I fixed it as follows:
xinput --list --long # to find the name of the input device
xrandr # to find the name of the monitor
xinput --map-to-output 17 DP-7 # map input device 17 to monitor DP-7


Cardinality of the set of non isomorphic structures of fixed cardinality

Question: Let $L$, be a language and $\alpha$ be a cardinal; let $\Gamma:= \{\text{set of  non isomorphic $L$ structures, having cardinality $\alpha$}\}$. Prove that $\operatorname{Card}(\Gamma)\leq 2^{\alpha\cup \operatorname{Card}(L)}$.
My idea was to show that there is an injective map from $\Gamma$, to the set of functions from $\alpha\cup \operatorname{Card}(L)$ to $2$, but i can't find the way to define it.
Answer: HINT: An upper bound on $\operatorname{Card}(\Gamma)$ is the number of distinct $L$-structures with underlying set $\alpha$. Each such structure is defined by its interpretation, which is a function
$$\iota:L\to\alpha\cup\bigcup_{n\ge 1}\wp(\alpha^n)\;:$$
constant symbols are sent to elements of $\alpha$, unary predicate symbols to elements of $\wp(\alpha)$, and so on.


What's grammatically wrong with this sentence?

Question: What is wrong with 'I do have two brothers.' ? I'm doing English grammar exercise and I think that's a correct sentence. But it isn't.
Answer: It would be helpful if you could give more information about the exercise and the context of the statement. Is it a multiple-choice or a gap-fill, for example?
Anyway, in the context of giving general information to a new acquaintance about you and your family, the sentence is ungrammatical:

I come from Thailand. I live in Bangkok. I have two brothers. I like classical music. ...

None of these simple present tense sentences are formed with the auxiliary "do". The auxiliary is only needed in negative statements and questions:

I do not have any brothers.
Do you have any brothers?

However, there are contexts in which the auxiliary "do" is indeed used in simple present statements. One such context is to contradict a statement or assumption made by your speaking partner. Assume that she does not know you very well and says:

If you had two brothers like me, you would know ... .

To contradict her assumption, you would say:

I do have two brothers,

stressing the word do. This and similar uses of an otherwise unnecessary auxiliary is often called "emphatic". There is more information here: http://www.michellehenry.fr/emphasize.htm


Clear cookies on iPhone 6+

Question: How do I clear cookies on my iPhone 6+?
I cannot complete an assignment for business.
My company instructed me to clear cookies in order
for it to operate correctly.
So, how do I accomplish this task?
Answer: Navigate to Settings > Safari. Then scroll down and click the Clear History and Website Data button. This clears history and cookies
If you dont want to clear history, and just cookies then do the following:

Press Settings on the Home screen.
Scroll down to Safari. Press Safari.
Scroll down to Advanced. Press Advanced.
Press Website Data.
Press Edit.
Press the red circle with the minus sign next to the cookie you want to delete.
Press Delete.
Repeat step 7 until you've cleared all the cookies you want to delete, then press Done.

Clear cookies on iPhone 6+


Fullscreen App(s) In Splitscreen

Question: How can I use a fullscreen app (specifically a Keynote presentation) while displaying another app (specifically a movie) simultaneously?
Answer: Unfortunately, you can't.
Apple's splitscreen simply doesn't currently support that. Unless the app specifically supports it's fullscreen mode in splitscreen, only the windowed mode will work (if it's supported there.)
With that said, you can export a Keynote presentation to another format like QuickTime which supports splitscreen playback. You can then run this in a window with a splitscreen, and the relevant other app (such as the movie) on the other side.

Fullscreen App(s) In Splitscreen


Conditions for $\lim_{n\to\infty} f_n(X_n) = f(X)$ where $X_n, X$ is random variables

Question: Let $(X_n)_{n\in\mathbb{N}}$ be a sequence of real valued random variables converging to random variable $X$ with probability one. Let $f_n:\mathbb{R}\to\mathbb{R}$ be a sequence of continuous functions converging to $f$. What conditions are required for
$$
\lim_{n\to\infty} f_n(X_n) = f(\lim_{n\to\infty} X) = f(X)
$$
to hold? Is it sufficient that $f_n$ converges pointwise to $f$?
Comment: Continuity of $f$ is sufficient.
Comment: Thank you Sarastro. You have answered my original question. How about my new/modified question where we have a sequence of converging functions $f_n$?
Answer: For this result you need uniformly convergence of the $f_n$.
Let's show this first:
So assume $f_n \to f$ uniformly hence it holds $$\parallel f_n - f\parallel_\infty \to 0$$ and $f$ is continuous as the uniform limit of continuous functions so it follows:
$$\begin{align*}|f_n(X_n) - f(X)| &= |f_n(X_n) - f(X_n) + f(X_n) - f(X)| \\&\le |f_n(X_n) - f(X_n)| + |f(X_n) - f(X)| \\&\le \parallel f_n - f\parallel_\infty + |f(X_n) - f(X)|\end{align*}$$
And by taking $\lim_\limits{n\to\infty}$ on both sides we get $$\lim_{n\to\infty} |f_n(X_n) - f(X)| = 0$$ what's equivalent to $$f_n(X_n) \to f(X)$$
That we need uniform convergence you can see if you consider: $$f_n(x) = -(nx-1)\cdot 1_\left[0,\frac{1}{n}\right]$$ and $$X_n \equiv \frac{1}{n}$$
Then $$f_n(x) \to f(x) = \begin{cases} 1, &x=0 \\ 0 & x\not=0\end{cases}$$ point-wise but not uniformly and $$X_n \to X \equiv 0$$ but $$\lim_{n\to\infty} f_n(X_n) = \lim_{n\to\infty} 0 = 0 \not= 1 = f(0) = f(X)$$
Comment: @iwanttolearn: Pointwise convergence is definitely **NOT** enough. Consider the sequence of functions $f_n(x)=\max\{0,1-|nx-1|\}$. This converges pointwise to $0$ which is continuous, however $f_n(1/n)=1$ even though $1/n \to 0$. In fact, uniform convergence is both necessary and sufficient.
Comment: Thank you very much Gono. I agree that uniform convergence is sufficient but I don't think it is necessary. I think that as long as $f$ is continuous then pointwise convergence of $f_n$ is enough. From your second inequality, if $f$ is continuous and $f_n$ converges to it pointwise, then $|f_n(X_n) - f(X_n)| \to 0$ with probability one. No?
Comment: @Shalop: I see. Thank you.
Comment: I think compact convergence (uniform convergence on all compact sets) is sufficient. We know that on any sample path $w$ from the set of non-zero probability paths, $X_n(w)$ converges to $X(w)$ and so the set $(X_n(w))_{n\in\mathbb{N}}$ is bounded.  Therefore $|f_n(X_n(w)) - f(X_n(w))| \to 0$. Thoughts?
Comment: If you do the proof $\omega$-wise this should work. But your statement
"on any sample path $\omega$ from the set of non-zero probability paths"
is not very useful… there are sequences of r.v. where each path has zero probability… but actually this doesn't matter if you do your proof $\omega$-wise on the set where the almost sure convergence $X_n \to X$ holds.
Comment: I understand. Thank you Gono.


What is the difference between "boasting" and "bragging" and how do you use them in everyday conversation?

Question: In our everyday conversation how we can use these two words "boast" and "brag" and which one of them is taken in a negative sense?.Need some examples to differentiate between these two.
Comment: They are synonyms, but 'boast' is used more for the future and 'brag' for the past.  "He boasted that he would be rich"; "He bragged that he was rich".  There are some idiomatic preferences: "boast of", "brag about":  "He boasted of his abilities"; "He bragged about his abilities".
Comment: @amI examples are very clear to understand the difference
Answer: I really can't see a difference between the two, other than how they sound, and how they relate to various other words:

boast (n) | boast (v) | boastful (adj)
brag (n) | brag (v) | braggart (someone who excessively brags) | braggadocio (excessively boastful behavior, often considered to be mere artifice)

Even the dictionary uses one to define the other, so I would consider them more or less perfect synonyms.
Note: @aml suggests that "boast" is used more often for future accomplishments, and "brag" for past accomplishments, but I don't agree.  I can't think of of a single context where one couldn't be swapped for the other:

He boasted/bragged of his wealth
He boasted/bragged that he would be rich someday.


Can I assign one of my publicly available IP address to my AWS instance?

Question: I would like to be able to use one of my publicly accessible ip addresses directly with my aws cloud instance. Is there a way I can assign or transfer one of my ip address to aws? My ARIN registry shows I have a block of usable addresses.
Answer: AWS does support Bring Your Own IP.  You need to establish authority over the address space using RPKI to do it.  Once you've done so, you can complete the remaining steps using the AWS CLI / API.
Comment: As always with BGP announcements, *The most specific IPv4 address range that you can bring is /24.*
Answer: As a potential alternative to that, if you have some kind of connection to AWS from where you're currently using your ARIN-assigned block, such as via a site-to-site tunnel or Direct Connect circuit, you could use one of your available ARIN IP addresses and NAT it to one of the AWS hosts' private IP addresses rather than having a public IP address assigned directly by AWS.
You would also need to either set the default route on the shared route table to go back over the tunnel so you don't create an asymmetrical route, or you could create a separate route table just for that VM and set the default route accordingly without affecting the routes your other VMs use.
It could be a bit messy to maintain if you do this all for multiple VMs, and you would have the potential bottleneck of the connections going through wherever your ARIN block is in use at, but it's your call.


Partial Order Fulfillment

Question: Is it possible to fulfil orders partially? For instance when only two of four products are in stock, would it be possible to ship the two items immediately?
Answer: There is nothing stopping you from shipping what you want whenever, but there is no way to mark a line item as shipped. You would need to have custom fields on your order to track partial shipments, and if you wanted, a 'partially shipped' order status to be able to easily see partially shipped orders in the order index page.
Answer: To expand on Luke's answer a bit...
We have implemented our own, pretty decent partial order fulfillment system.  In essence it is a matrix field (actually might be a SuperTable, but same same really) - on its own tab on the order, and a bunch of code that listens to onOrderSaveHandler.
It's super custom to our own processes so I haven't cleaned it up or made it a released plugin, I'm just presenting it here for info and inspiration (feel free to ask any questions though!).
It looks like this:

There are a bunch of different events that trigger different order statuses and emails, depending on what is chosen.

There is a simple a tick-box system that lets you nominate what specific products are being updated in this update.  (Tick-boxes built with lj_dynamicfields plugin - https://github.com/lewisjenkins/craft-lj-dynamicfields).
So, basically each time an order is saved, we check if there are any new events (and each time an event is added we increment a counter in the db to keep track of this).  If there are, we then action the event.  The processing is pretty complex and unique to us, but it does things like build tracking emails for shipments if needed, or trigger refund stuff, or raise/add to a ticket in our customer helpdesk system (we use Freshdesk) if we need to communicate anything more complex than a basic shipment or whatever.
Each update is saved to the order, so the matrix itself is both the entry mechanism for updates, and forms a log of events on the order (they are time/dated of course).
When the order is finalised, i.e. the last thing is sent or cancelled or whatever, the processor sends the last update and ticks the 'complete' box and the order is marked as complete in commerce.
Here's an example from a real order - in this case it's a one item order, but the system is fine with single or many items orders of course.

It works really well for us.
It could be improved further (and I might do this when I port it to Commerce 2) - by having an individual status field for each item within the order, and separating out back end notes from customer notes (we only have customer notes here, order notes are currently elsewhere).
Also, we have a separate system for just throwing in a tracking number without these events if the order is just fulfilled immediately from stock (as most are of course - on that first Notes & Simple Shipping tab..) - so these 'In Progress Events' are only used for  more complex things when really needed, and default order processing is kept as simple as possible.
I will say the integration to a ticketing system is a bit genius and really a whole big thing in and of itself that we use extensively elsewhere - it makes for a really easy to track order communication system...and is tied to the order status (ticket is closed when order is, etc) - but the basic connection is just one field with a ticket ID, if one has been created.
Of course, to make all this really work, you also need all your email templates, and of course templates for your customer to see all this in their account etc., assuming you are going the accounts route.  It IS a fair chunk of work, but it has an absolutely massive impact on our efficiency - we spend just seconds on things that used to take minutes, with hand drafted emails etc etc - it's a major time (and thus money) saver.  I reckon we save an hour a day with it, on average.

Partial Order Fulfillment


Famous examples of one mic drum recording in pop/rock music?

Question: I have read here that the drums in Led Zeppelin's "When The Levee Breaks" were recorded with only two microphones.
But are there also famous examples of pop/rock songs, where the drums were recorded using only one microphone?
Comment: There are many examples of songs with one mic on the whole orchestra. Anything before about 1950 would probably qualify.
Comment: You're absolutely right. I was actually thinking of pop/rock examples. I shall clarify my question.
Comment: The Beatles famously had to order specially, a second mic for the kit - but I have that only anecdotally, so can't make an answer.
Comment: depends on what you mean by "pop/rock". a lot of black metal recordings, and other genres that tend towards lo-fi aesthetics, have the entire band on one microphone; theyre stretching the definition of "pop", but theyre pretty clearly "rock" recordings in at least one sense of the word.
Answer: Thinking in logic steps..One Mic drum technique was a really "cheap" technique for late 60's & early 70's . The music business was at its best so why not spare another Mic in there.
So as far as famous pop/rock songs (or examples) i think that it could only be used as an effect cause big studios = famous tracks.
So , two? yea , a lot .. One? hmmm.
The only reason someone would record a drum kit or even a full band with a single Mic (in the 60's - 70's era) would be because he couldn't afford more. It wasn't exactly the time of stray bootlegs or published demos that got famous hand by hand. At that time if you had something good , you were in a good studio.
On the other hand , there were a lot 1 source drum printing(2+ mics into 1 mono track) which someone could argue its similar to a single Mic setup , but if you are only after the "famous 1 Mic 60's - 70's pop/rock songs' this part doesn't interest you.
Your best bet is going back to old soul & R&B records as this guy here says:Gabriel Roth - Minimalist Engineering (still not pop/rock but close :D)
P.S.: This is not a reference answer , it's based on my own extensive research on production and recording techniques in the older eras.


How to perform a segue that is not related to user input in iOS 5?

Question: Consider a view with a button. We can drag a connection from this button to some other view controller, create a segue in IB and we are happy. What if I need a segue that is performed upon some event, say, network progress, and that is unrelated to any user actions? For now I'm placing a button, drag a segue from this button, hide the button, assign an identifier to a segue and somewhere in the code i perform this segue. However, I think that placing a dummy button is not a right way. Possibly I'm missing something using storyboards, could you please help me to understand this?
Answer: Create your segue by ctrl dragging from your view controller to your next view.
Then to call your segue, call:
[self performSegueWithIdentifier: @"SegueToScene1" sender: self];
Make sure you give your segue a name in the storyboard.
Comment: Ctrl-dragging from the view controller to the next view was the missing piece, thanks!
Answer: You can use performSegueWithIdentifier: method to force the transition to a new view, based on some criteria.  When you call this, it will also automatically call prepareForSegue: (which is usually called when the storyboard is about to transition to a new view).
I wrote a post about controlling pushing views here which should cover most of what you're talking about.


What to do when your manager keeps adding

Question: This happens all the time. I have a project that has a deadline. Let's take an example we're the project is to be completed by the end of this month.  Yet my manager who has not gone to any of the meetings or enolved in the project likes to add to the project and expects it to be done while keeping the deadline. This has typically meant that I work on those items on my own time. How do I handle this? I'm working more than 40 hours a week and he know this yet it seems like it doesn't matter. Any suggestions?
Comment: Tell him to be more engaged frankly. He is a stakeholder too and therefore he needs to be involved all the meetings. As Project Manager, he is accountable for the whole project according to best practices. Request him kindly for the Scope & Schedule baseline of the project. If scope change because he added more items, then request an extension of the deadline. If he does not have skills, you make issue log and a change log. Measure the impacts and estimated time for the added items. That way you will be covered at some point. If no change from him over the time, then change job.
Comment: I'm not sure this is really a project management question. What is your role? What is the project framework? If this is really assigned tasks rather than a project in the.PM sense, it probably belongs on Workplace SE instead.
Comment: Thanks, Maximus.  That's some good advice
Comment: I know this is not a project management advice per se. But in general, never ever work extra hours unless not working turns into priority 1 incident or lost customer. So, major bug before release? Sure, work and fix and ensure that team knows that it is a one time thing. Unable to finish the work on time? Go home, finish it next day.

Managers will be happy to pile up more work if you keep lapping it up. Don't do that to yourself. At worse, you will have to look for a new job, which won't be a problem considering even your manager understands your talent.
Answer: What you need to do is some Project Management.
Start with a Task List - a simple Excel Sheet will do. or use an online tracking system like Trello. You need a few columns:

Priority - a numbered list where the top item is always #1, the second #2, etc.
Task - a short description
Duration - how long it'll take. If you standardize to hours or days, you can total the column so you can see when the project will end. (Based on x hours/days per week, and some a formula).
For whom - who asked for it
Status - one of: not started, in progress, in testing. (You can add done and move those to a separate list or move them to the bottom)

Now, every time your boss asks you to add an item to the list, you ask him where to put it - before or after which item in the list, and inform him of the new deadline this causes.
treat it as a zero-sum game. IOW, you no longer work more than 40 hours per week, so something else will have to change; either remove an existing task or move the deadline.
Comment: Thats a gread idea.  Thank you


Security after landing in Frankfurt airport

Question: I was recently flying from the US to India via Frankfurt. After landing in Frankfurt airport, I was allowed to proceed to my gate to board my next flight. However, on the way back, all passengers on my flight were required to go through security again even though we landed in the international area. What's the reason for doing so? Is this standard procedure when landing in Frankfurt or any Schengen airport from a non-US/EU country?
Comment: Can you clarify where you went through the additional security check?  Was it before you were able to enter the departure terminal, or was it after you were already inside the departure terminal, but before you were able to access the area of that terminal where your gate was?  (Both are possible, but the reasons for each will be different)
Comment: It was after I was inside the departure terminal, but before being able to access the gate.
Comment: In that case, the correct answer is the one from Ozzy - this is a US-specific requirement. If the security was to get into the departure terminal itself, then mlc's answer is correct.
Answer: The EU has a program called "one-stop security", where some countries' aviation security practices are recognized as equivalent to EU standards, so passengers on flights arriving from those countries do not have to clear security again when connecting at an EU airport. Those countries are

the United States of America
Canada
Montenegro
Faroe Islands, in regard to Vagar airport
Greenland, in regard to Kangerlussuaq airport
Guernsey
Jersey
Isle of Man
Singapore

However, implementation of this can in practice be mixed, and some passengers on some flights at some EU airports from some one-stop countries may be subject to security re-screening anyway.
Comment: That's certainly not happening at CDG
Comment: In the case of Frankfurt the problem is the terminal layout. Depending on where your inbound and outbound flights dock you may need to re clear security, but not always.
Answer: This is a requirement for US-inbound flights. DHS outlines this reasoning:

....Secretary of Homeland Security John Kelly has determined it is necessary to implement enhanced security measures for all commercial flights to the United States.  These measures, both seen and unseen, include enhanced screening of passengers and electronic devices as well as heightened security standards for aircraft and airports.

Countries: 105
Airports: 280 (approximate number as it will vary based on seasonal airports)
Total airlines: 180
Average daily flights: 2,100
Passengers: 325,000 average daily passengers

See the link here
Comment: @gerrit, presumably means unseen _by the passengers under surveillance_, not unseen by security personnel.
Comment: Unseen security measures?  What is the point of security measures if nobody sees the result of the measurement?
Comment: @gerrit I never said it made sense haha, but it answers the question. Gotta love the US.
Answer: That's unfortunately normal. By default all connecting passengers have to go through security and plenty of airports do this for everyone regardless of where you come from (London (LHR), Paris (CDG), Doha (DOH), etc.)
Some airports can choose to skip security if the incoming flight is from a "good" country (which is determined by a variety of criteria). Frankfurt, Vienna, Tokyo Narita, etc. are examples of that.
You can never predict with certainty what's going to happen. We flew EWR<->CGK through Tokyo. On the outbound we just walked from the plane into the Terminal. On the return flight last week we had a totally different experience: First they deplaned all passengers that were entering Japan and held everyone else back on the plane. Only after this we were allowed to get off the plane only to be greeted by a very long security line. I'm fairly sure some people missed their connection that day. No idea why they did that.
Comment: Sometimes it depends not only on the country of origin of the flight, but also the specific airport of origin, the airline, or even the specific flight. The rule may also be different between different airports in the same country.


Ubuntu is so SLOW

Question: I installed Ubuntu (12.4, I think) on my Acer Aspire One netbook because Win7 was so slow and I'd heard great things about Ubuntu.  Win7 was slow but Ubuntu is glacial, every program takes an age to load and every action is painfully slow.
What can be done to get it running at a decent speed?  I'm sure this is not how it is supposed to run.
Comment: Could you please add more details about your hardware? It may be an issue with a particular component (e.g. a missing graphic card driver), but we need to know at least what version of Aspire One you use.
Comment: Can you add information since your question does not say the type of hardware you have, what real version you did install (guessing does not help), how did you install it, etc..
Answer: Acer Aspire is Listed in the "Ubuntu Desktop certified hardware"
http://www.ubuntu.com/certification/desktop/make/Acer/?category=Desktop&category=Laptop&category=Netbook
Please give detail of your model and hardware, and also if you are yousing WUBI ,VM or separate install
I have installed Ubuntu 11.10 on my acer aspire one and it ran pretty good. Although there were problem with full screen flash and online games.
I have now switched to Lubuntu on my machine. Which is running very fast.
Comment: +1 for Lubuntu.  I installed Lubuntu 13.10 on my Acer Aspire One and it performs much better.  To get the correct graphics driver installed I also had to [do this](http://unix.stackexchange.com/questions/27918/getting-opengl-to-work-under-ubuntu#answer-27932) but now it even runs Minecraft at a reasonable speed.
Answer: Maybe you haven't install the proprietary graphic driver.  Ubuntu offers a free driver for your graphics card, but free drivers cannot be 100% perfect because it is written by the open source community who don't necessarily have all of the information about the graphics controllers that the manufacturers do.
So first go to the Dash (the huge Ubuntu icon on the top-left corner) and search for "jockey".  After it finishes searching for drivers, find the graphics card driver(nVIDIA or ATI/AMD) and install it.  Reboot and Ubuntu should be much faster.

Ubuntu is so SLOW


Does vi6 exist?

Question: My textbook "Harmony and voice leading 4th edition" (by Aldwell/Schachter) says that vi6 chords do not exist and that any such chord should be seen as a tonic chord with a non chord tone. Yet here in this exercise from the same book I am supposed to harmomize a chord which seems to me to be a VI6. What is this chord if not a VI6?
Comment: Does your textbook argue that vi6 does not exist or only VI6 (or bVI6) does not exist?
Comment: VI6 nor vi6 exist... if by bVI you mean the bVI borrowed from a parallel minor key then I dont know as I am not in that chapter yet
Answer: Have you discussed tonicization or modulation yet? I would argue that this chord here is a tonicization of G. Instead of this being a VI6 in E, it's really functioning as a IV6 in G. Looking at the bigger picture, the end of m. 5 begins a prolonged dominant in G: the last beat of m. 5 is a V chord, then m. 6 has a IV6 that moves through a V65 to I of G.
One could also view this as a "common-chord modulation" (or "pivot-chord modulation"), in which a chord in the first key is also a chord, typically a predominant, in the new key. In this reading the downbeat of m. 5 is a i chord in E minor, but it's also understood as a vi chord in G major.
Comment: Aaaa yes.. I get it now. Ok so that is actually a iv6 chord... sneaky that.
Answer: For a start, that isn't a vi6 in E minor, it's a IV6 in G. Like @Richard said.
But, more generally, vi6 exists the same way an augmented 7th interval exists.  A valid theoretical concept, but you're going to have to show me an example where it sounds and acts that way!
Comment: Please could you show an example?

Does vi6 exist?


optimization equation Newton Method, Gradient descent, momentum. How do we use for proper?

Question: Newton Method is an optimization equation to find minimum point better than Gradient descent. Now we use momentum with gradient for smoothly. Why don't we use the Newton method?
Answer: Newton's method involves the calculation of the inverse of Hessian matrix, which is far too expensive to calculate in many cases in deep learning. That is why other approximation methods are preferred.


WordPress with .tel domains, is it possible?

Question: Is it possible to host a WordPress site with .tel domain. When I checked for .tel extension website, all the site's are similar in design.
Answer: Domains and hosting are separate things.
You buy a domain (.tel for example). You point it to hosting.
What you put on your hosting is entirely up to you - so long as your hosting allows you to install WordPress (99% of them will) you are fine.
You could even point your domain to a wordpress.com site if you already have it hosted on a free service.
Comment: I undeleted my answer because I looked into it further. Apparently you're not actually able to do this. The `TELNIC` has an editor that you use with your domain, it's not so much that you can use normal DNS and hosting with it from what I can tell. But I'm not going to buy a `.tel` just to try it.
Answer: I contacted 101domain.com, where there is an ".tel Web Hosting Service". In the support email, they say, "The .TEL registry requires all domains to use their specific DNS servers, which means that you cannot modify DNS records."
So, if you cannot modify the DNS records, you cannot use your own hosting service or use WordPress.
Answer: It is possible since 2017. See here:

As of March 13, 2017, previous DNS restrictions have been lifted by the registry, allowing .TEL registrants the freedom to choose how to use and host their .TEL domain names.

Standard websites are configured with Telhosting now. They are still available, but optional.
Answer: You can host any type site with .tel TLD, assuming you have the domain and an hosting space.
Comment: This is incorrect. You cannot host a domain on a `.tel` domain; all domains under that TLD are forced to point to a server operated by the registry. It's pretty useless.
Answer: UPDATE:
While my original answer keeps being the official explanation, I just got my hosting to add my .tel domain as a regular one. I tested everything and works as any other domain; created subdomains and all. My take is that, either over time hosting companys gave up on inforcing the original behaviour of .tel domains, or that some companys don't really care that much about the planned restriction on .tel domains.
In case anyone is interested my .tel hosting is in DreamHost and, though their control panel prevents you from adding a .tel domain, it doesn't say it can't be done, only that you can't add it through their panel because it is a "protected domain name"; but support added the domain name through their backoffice  to the panel, no questions asked, and it justs behaves like a normal hosting.
So: Is it possible to host a WordPress site with .tel domain? Yes, I'm doing it.
MY ORIGINAL ANSWER:

.tel domains are an exception to the rule. They are special TLDs. You can not point them to any server, create subdomains, etc. The "website" will be stored as data in a dns record. It seemed an interesting idea when it was created, but it has ended up being useless. As of today (they keep disappearing) this an example of what one looks like http://midmichigan.tel/.
From Wikipedia:

In contrast to other top-level domains, tel information is stored
  directly within the Domain Name System (DNS), within the actual domain
  name record, as opposed to the DNS simply returning details (such as
  IP addresses) of the machines on which information can be found. For
  example, users who register a .tel domain using Telnic name servers
  cannot create a type A Resource Record with the IP address of their
  own host. A user who wants to host a web site or run an own web server
  has to set own or providers' name servers [sic].
Answer: To directly answer your question, YES. a .tel domain is just like a .com or .org like anyone else uses. The extension/suffix does not affect what you can host on the site (Unless you use a .edu you have to be a registered educational institute, or a .xxx domain which is targeted towards adult websites. There are some similar cases. Please read the first few paragraphs here: http://en.wikipedia.org/wiki/.tel and you will see that while you may technically host anything you want (generally available) it's targeted toward communications and directory websites.
A domain name, hosting, and a website are three separate entities. If a domain NAME is available and you choose to purchase it (lease) then you will point it to the servers that HOST your WEBSITE. A web HOST just serves the pages (WordPress?) and your WEBSITE is the files being served.
What "sites" are similar in design? The .tel registrars? That's alright, you only use their sites to rent the DOMAIN. Please clarify your question.
Comment: When i Google for .TEl domains i can't even see a single domain in search list. And all the domain name's have similar template and hosted in Telnic Registry itself. http://www.telnic.org/telforyou-landing.html
Comment: @DOCTYPE - I can register one from a registrar just like any other domain, you're looking in the wrong place. The TELNIC does not actually sell the domains, they authorize the resellers to do so. https://www.webnames.ca/3step/buy/TelDomainSearch.aspx?domain=doctype.tel Also see the terms: https://www.webnames.ca/content/webnames/webnames_AcceptableUsePolicy_terms.asp
Comment: @DOCTYPE - And a quote from the TEL FAQ site: `"Those who already have a website can use .TEL to point to their current site. This method usually gives a search engine ranking boost to the website being linked to from their .TEL."`


Pork sausage patties in a crockpot overnight

Question: Is it safe to store a crockpot full of freshly cooked pork sausage breakfast patties overnight?  set on Warm. ? Also do you think this will make them "dry" to eat in the morning?  If it's safe, do you know any tips for making them keep their taste/texture ?
Answer: It really depends on how warm the warm setting keeps the food. If it's over 60 degrees Celsius, you should be fine, but for something like pork I would want it to be considerably over that temperature to be on the safe side, and then you're into cooking territory rather than 'keeping warm' territory.
You are probably better off cooking the patties, storing them in the fridge, and reheating them, wrapped in foil, hard and fast in the oven, if you're looking for a quick, convenient way to serve them first thing.


Debug Configurations java.lang.NullPointerException error

Question: Wow, this is a doozie.  Basically I opened Eclipse today to test an Android App that I've been working on and receive this popup error when I attempt to run the app, or edit the Debug Configurations:
"An error has occured. See error log for more details. java.lang.NullPointerException".  Any suggestions are appreciated!  Thanks!
Answer: You should look at Eclipse logs first. The workspace log is located in *workspace_dir*/.metadata/.log
Answer: What you need to do is run DDMS and look at the trace stack. It should show you what line the null pointer is at. Make sure there is a real value for all variables, and if you need help, post the code and line it's at, and we'll see what we can do.
Answer: Checking the Project Properties, I was receiving this error:
<code>Could not find C:\......\android-sdk-windows\platform-tools\adb.exe!
</code>
This had to do with the 2.3 SDK update. Checking for updates fixed the issue, as the new ADT plugin knows where to find apt and adb.  Problem Solved!


How to show Google Review in Google Search Result?

Question: Any one know how to do this? What I mean is Review box at the right hand side:
Answer: This is known as the Google Knowledge Graph and Google will decide what information to show here from businesses listed in Google Local/Google+ (Google Places), data submitted to Freebase and often entries from Wikipedia.
Comment: What qualifies a business to be placed there?
Comment: Google's discretion usually based on whether the search query carries enough volume to warrant placement.
Answer: To get your Google+ Local box (that is where the data is coming from), Google needs to recognise the search term as your brand being searched. That is pretty much the only time it will come up there, as far as I know.


Find which ends of cat5e cables belong together

Question: I recently moved into a new house and there are cat5e sockets in each room which go through the ceiling into a media room. In some places in the rooms there are cat5e cables which do not have a connector. There are also cables with no connector in the media room, which lead into the ceiling. I suppose these are ends of connected cables. I'm very interested in connecting one of these unterminated cables in the rooms to the media room. Is there an easy way to check which of the ends in the media room is connected to the end in the place I'm interested in? Unfortunately there are dozens of these cables in the media room, so I really don't want to add a connector to all of them just to test this. Especially since I have never added a connector to a cat5e cable, so  I probably will be super slow... unfortunately there are no labels whatsoever on the cables.
Comment: Put ends on them. It's a good skill to have. Then use a tester.
Comment: You might not get that lucky, but have a look for sharpie markings on the cable jackets, as opposed to proper labels which you looked for already and did not find.
Comment: Keep in mind that people can use cables for unexpected and sometimes inappropriate applications . I was surprised to see a bunch of CAT6 in the crawlspace with no sockets in the house - turns out someone ganged 2 pairs into one conductor and used CAT6 for low volt DC lighting. Now thats on the TODO list to rewire....
Comment: @J... So it was **YOU** :) :). One of the benefits, I find, of application appropriate parts is that if you follow directions, you get a compliant system. Terminating 8wires to 2 wires can be done in many different ways, most of them are not appropriate, some of them may be nominally OK. Using PoE would be the commercial solution , but even then it is rated to only 60W on 4 pairs.
Comment: @J... Heh...yeah but those are just expensive testers
Comment: @gnicko Or, without a tester, if you have two laptops, or one laptop and a router/switch (or two switches, even) you can plug one in at one end and test at the other.  If you see lights on the ports they're connected.  Without ends you don't need a battery or expensive tone generators - just strip one pair and short it.  You can then test the other ends to see which one has a shorted pair with nothing but a continuity tester.
Comment: @crasic I've recycled old CAT cable for low voltage installations like that.  There's no real harm in it as long as the cable is a sensible size for the load and the workmanship is good.  Voltage drop will sink the circuit before you can put enough power into it to worry about heat or fire, and CAT cabling can normally carry PoE power anyway so it's not like it's fundamentally a dumb idea.  Better than throwing it in the garbage and making waste for nothing.
Comment: @crasic Yes, hence my caveats about workmanship and load calculations.  It can be done well or it can be done poorly.  It's not a bad idea by default, is all.
Comment: @gnicko Multifunction devices ;)
Comment: @crasic I loved to do that. I used to abuse old Ethernet cables for mostly anything. Wiring a doorbell (now you got spare connections for adding a light later), audio, anything. Once tied a couple of ducts together with a piece of spare cable that was unfit for any other duty. Last one was temporary, others were used for years.
Answer: Yes there are specialized tools for that. Search for "tone generator and probe" or "wire tracer" or similar phrases. (image credit: grainger.com, fiberoptics4sale.com)

However, you can almost as easily use less-specialized tools such as an ohmmeter or volt meter. You might make yourself an adapter consisting of a wall jack with pigtail wires hanging off it, or a cut-off patch cable and a coupler, so that you can easily and non-destructively convert an already-terminated end into bare wire ends.
At the far end of the cable pick a pair of wires, for example the brown and white/brown, and short them together. Then go to the media room where all the cable ends are found. Open up each cable, strip the ends of the chosen pair of wires, and measure resistance between the two. Most likely the resistance will be infinite, meaning the cable you're testing is not the one you're hunting for, or else the resistance will be low (say under 50 ohms) indicating that you've probably found the cable you were hunting for. When you find a candidate, un-short the far end and confirm the resistance goes infinite to be sure.
A similar process could be employed with a volt meter and a battery if an ohmmeter were unavailable.
Terminating all those cables really might not be such a bad idea. Consider the time it'll take to do all that opening of cables and stripping of ends. Now consider if that time were instead invested to put on the 8P8C/RJ45 connector on each of those cables, or to punch the cables down onto a patch panel. The first few will be slow but you'll gain confidence and speed quickly. With terminations on the cables the process of testing which one is which becomes a quick plug-and-check operation. That could still be done with a meter, but with terminations on the cables you also open up the possibility of using a cable tester to simultaneously identify which is which and also confirm it is wired properly and ready to use. Simple cable testers like the one pictured below may only check that the conductors are in the correct sequence; more expensive models can test the electrical quality of a cable. (image: mscdirect.com)
Comment: To avoid falsely identifying damaged cables, I connect a 1k resistor using a terminal block. A multimeter readily distinguishes this from other possible conditions.
Comment: I agree with the final point - go ahead and put ends on all the cables. At some point you, or the next owner, or one of your (future?) kids, will want to use another one of those cables. May as well be ready now. Saves having to drag out all the tools again in the future and relearn how to do it.
Comment: The battery method has the advantage that it will not falsely identify damaged cables. The ohm meter method has the advantage that you can wire different patterns on the end of each cable and then make all the measurements.
Comment: With a decent multimeter, you can connect different resistors  such as 1K2, 1K5, 1K8, 2K2 across different pairs of wires (not wires in the same twisted pair)  and thereby diagnose mis-terminated cables including reversed pairs  from the other end, by seeing what is connected to what with what resistance. But the simple cable tester is quite cheap and a lot easier to use.
Comment: The other advantage of a tone source over other methods, is that you can wave the receiver at a mid-point on the cable and hear the warbling tone.   You can identify a cable from within a bundle, without access to the end.
Answer: There's a good answer already for use of technology, both low and high.
If there's enough cable to see what directions the foot markings are going, and they only used one box of cable, you can also deduce likely cables to check by what their foot markings are. i.e. if your desired cable has 602 ft marked near the end, and you find 600 ft marked 2 feet closer to the ceiling entry, your media room cable is going to be 500-something ft, and you might even be able to guess at the something by how far it is from the room you want. In any case, it will be the one closest to 600 of what you find there (so if you find 580 and 560, 580 is the one to check first.)
This can be harder if they used more than one box of cable, but that's rare for home jobs with the cables not labeled. Pros bring multiple boxes, but pros also label cables, almost universally. Homeowners tend to get one box and are more likely to feel sure they will remember which one is which.
Network cable in the US comes 1000ft per box and is foot labeled every two feet from 1000 to 0 (probably marked in meters every meter if not in the US.) There's a whole bunch of info that's the same every 2 feet, and the number of feet left in the box, which changes.
Again, people do the darnedest things, but in general I'd expect the numbers to go down towards the media room, as in my example, as it makes the most sense to leave the box of cable in the room where all the cables go, and pull out of it to each room, rather than move the box around to each room and pull back towards the media room.
Comment: I can confirm that at-least some pull boxes are marked in meters outside of USA, the ones i've looked closely at had some large offset ( eg I just saw "048591m")  so boxes from the same pallet will probably  have non-overlapping ranges.  it still comes in a 1000 foot box but we call it 305m (well there maybe 8 inches extra, I have not checked)
Comment: Meters/feet can count up or down when pulled from the box. I have seen both.
Answer: You could stick a patch panel in the media room to make a tidy job of it.
Then get a toner (even a cheapo one from eBay) you can then connect it to the panel and tone the other ends to identify them.
Then label them up and fit keystones to them ones you want to use. Way less faff than crimping rj45's on.
Comment: Cindy? Who is that?
Comment: Punching down to a block is so much easier than putting ends on. If I don't have one, I'll punch down into a jack and use a patch cable.
Comment: There are a large number of heffalump traps you can fall into if you choose to put plugs on the ends of solid-core cable, starting with buying the wrong plugs or being sold the wrong plugs by a vendor who doesn't appreciate that not all plugs are equal. Use punch-down, seconded.
Comment: Solid core fails quickly when flexed - which is why we have stranded core flyleads and patch leads.  In-wall cabling can be sold core, but your exposed wiring should be stranded.
Comment: @RibaldEddie my phone keyboard hates me
Corrected now
Answer: If you apply a low ac voltage to one of the cables, you could probably pinpoint it using a cheap and simple wire tester that relies on magnetic fields (the pens that light up when in proximity to a live wire). Required voltage to give a reading you probably need to test, but I'm assuming it would give a reading at 24v already. Needs to be ac though, I think.
Another option would be to use re-usable connectors. Some keystone are reusable, so one connector on the cable you want to find, then move around the reusable one in the media room and either use an rj45 cable tester or you can plug devices into each end.
If you are fine with cutting and peeling two wires in the cable, a simple volt meter and a battery, then a multimeter/voltmeter is all you need as well.
Comment: All of these have been covered in other answers.


AJAX load a dynamic page into a div

Question: A client needs the url to stay the same on a wordpress website.
So after trying several solutions I think the best way will be through AJAX with the <code>.load</code> method.
So down the side of a page there are navigation items controlled by the WordPress engine taking you through to another page.
Is it possible to intercept the outgoing link and load it into a div on the page without having to modify the anchor tags?
Answer: This plugin should do what you are looking for:
http://wordpress.org/plugins/ajaxify-wordpress-site/
http://www.swook.net/p/jquery-ajaxify-plugin.html

AJAX load a dynamic page into a div


Probability of a fair sequence of tosses ending on two successive tails given the first toss was a head?

Question: Suppose a coin is tossed repeatedly until either two successive heads appear or two successive tails appear. Then, assume that the first coin toss results in a head. I would like to find the probability of this tossing ending on two successive tails. One way I know of doing this is by creating a Markov chain and then doing first step analysis. I was wondering if there was perhaps an easier way to do this type of problem using some other principles. thank you.
Comment: I assume it is fair, as did @lulu, but I suppose it isn't specified and hence should remain arbitrary.
Comment: Sorry, forgot to mention that the coin is fair, thanks!
Comment: @David How do you know it is fair?
Answer: Let $p$ be the probability you want.
Look at the possible sequences of three tosses (including the initial $H$).  We have $\{HH*,HTT,HTH\}$  Conditional on the first being $H$, the probability of $HH*$ is $\frac 12$, and the probability of the other two are each $\frac 14$.  The first is a win for $H$, the second is a win for $T$, and the third restarts the game.  Thus $$p=\frac 12\times 0+\frac 14 \times 1 +\frac 14\times p\implies p=\frac 13$$
Note:  if you want to allow for a weighted coin, the same calculation works but we need to correct for those initial probabilities.  Thus assume that the coin comes up $H$ with probability $\phi$.  Then $HH*$ has probability $\phi$, $HTT$ has probability $(1-\phi)^2$, and $HTH$ has probability $(1-\phi)\phi$.  So the recursion is now $$p=\phi \times 0+ (1-\phi)^2 \times 1 + (1-\phi)\phi \times p\implies p=\frac {(1-\phi)^2}{1-(1-\phi)\phi}$$  Comparison shows that this matches the result obtained by looking at infinite sums, as in the posted solution of @BCLC (with different notation, unfortunately).
Comment: (i'll read later so assuming this is right) how elegant!
Answer: Let $p$ be the probability of heads.
It seems to me that we have the following possible scenarios with the following probabilities:
HH --> $p^2$
H T HH --> $p(1-p)p^2$
H T HT HH --> $p(1-p)[p(1-p)]p^2$
H T HT HT HH --> $p(1-p)[p(1-p)]^2p^2$
H T HT HT ... HT HH --> $p(1-p)[p(1-p)]^np^2$
H TT --> $p(1-p)^2$
H TH TT --> $p[(1-p)(p)](1-p)^2$
H TH TH TT --> $p[(1-p)(p)]^2(1-p)^2$
H TH TH ... TH TT --> $p[(1-p)(p)]^n(1-p)^2$
So we have:
$$P(H...TT) = \sum_{n=0}^{\infty} p[(1-p)(p)]^n(1-p)^2$$
$$ = p(1-p)^2 \sum_{n=0}^{\infty} [(1-p)(p)]^n$$
$$ = p(1-p)^2 \frac{1}{1-(1-p)(p)}$$
If we have $p=1/2$, then $P(H...TT) = 1/6$.
Similarly $P(H...HH or HH) = 1/3$
Of course $P(T) = 1/2$.
Check if it adds up: $P(T) + P(H...HH or HH) + P(H...TT) = 1/6 + 1/3 + 1/2 = 1$.

Just realised (before lulu pointed out) that I didn't condition on $H...$ so just divide all (or most? eg $P(T)$?) above by p or something. Anyway:
$P(T|H...) = 0$
$P(H...HH or HH|H...) = \frac{1/3}{1/2} = 2/3$
$P(H...TT|H...) = \frac{1/6}{1/2} = 1/3$.
Check if it adds up: $P(T|H...) + P(H...HH or HH|H...) + P(H...TT|H...) = 0 + 2/3 + 1/3 = 1$.
Comment: Note:  you should not be factoring in the probability that the first one comes up $H$, that is a given of the problem.  Thus the factor of $p$ in your final answer shouldn't be there, and if $p=\frac 12$ the answer is $\frac 13$, not $\frac 16$.
Comment: @lulu Oh yeah, noticed that. Edited. Thanks


How to get a challenge from Bugdroid in Fruit Ninja?

Question: Is there a way to get a Bugdroid challenge whenever I want in Fruit Ninja? Bugdroid provides a 1000 Starfruit reward, so it is an easier way to earn Starfruit than Zen Mode, advertisements, or daily challenges.
Answer: I'm pretty sure it's just random.
I haven't been able to make out any pattern in when the challenges happen, and I've also gotten challenged right after opening the app before. Just immediately, before I'd even played a round of anything, which makes me think that you can't trigger the encounter.
If you could, it'd probably be too easy to earn Starfruit. Once you've learned Bugdroid's pattern by heart, there's really no way you will ever lose.


How can I -abort ./bitcoind -reindex-chainstate?

Question: I made files re-accessible. Now we could return to a later, already synchronized state with the files. I tried to put ./bitcoind -reindex-chainstate=0, also in a bitcoin.conf, also directly calling the conf. It goes on reindexing the chainstate.
Answer: -reindex-chainstate is an instant operation: it wipes a the chainstate (UTXO) database. It is performed at startup whenever the -reindex-chainstate command-line option, or the reindex-chainstate=1 config file parameter is provided. It cannot be interrupted, but it is so fast this is rarely a concern. It's equivalent to emptying the chainstate/ directory by hand, FWIW.
Whenever the chainstate is behind the blockchain (i.e., you have blocks in your blocks/ directory which haven't been processed yet), the missing blocks will automatically be processed. This will typically happen after a -reindex or -reindex-chainstate, but it can happen outside of those too. E.g. when you wipe the chainstate/ directory yourself, or maybe if restore it to an older backup without making the equivalent restoration of the blocks/ directory.
The naming of these options is somewhat confusing, because what they trigger isn't the actual reindexing, but just the wiping that preceeds it; the reindex is automatic, and progressive (it will continue where it left off if you shutdown and start again, unless you specify the reindex option again at startup; in that case, it is wiped again and you'll start over again).
FWIW, any option, including these, can be disabled using the "no" variant (-noreindex-chainstate here) or passing 0 (-reindex-chainstate=0). But, as explained, that just disables the wiping; it cannot undo a wipe, and thus cannot "abort" the reindexing, as Bitcoin Core cannot proceed without first processing all the blocks it has.
Answer: In -help, -reindex-chainstate doesn't advertise to be an assignable [string typed] argument.
This means it is a boolean argument.
Don't assign it zero. Remove it completely.
Cheers!

Non assignable argument, boolean:
  -reindex-chainstate
       Rebuild chain state from the currently indexed blocks. When in pruning
       mode or if blocks on disk might be corrupted, use full -reindex
       instead.

Assignable argument, type string, not boolean:
  -settings=<file>
       Specify path to dynamic settings data file. Can be disabled with
       -nosettings. File is written at runtime and not meant to be
       edited by users (use bitcoin.conf instead for custom settings).
       Relative paths will be prefixed by datadir location. (default:
       settings.json)

Comment: removing lets it go on reindexing
Comment: let it reindex completely, then command it to close normally, let it finish normally; then try again and it shouldn't reindex
Comment: It does. Even after switching to ´-reindex´ and ´bitcoin-cli stop´.
Comment: It's impossible to abort reindexing, because it is an instant operation. Passing `-reindex` or `-reindex-chainstate` wipes certain parts of the database, at startup. The actual reindexing is what follows: the process of rebuilding the databases. Bitcoind cannot operate without those databases.
Comment: seems to be right description according to src/init.cpp "// This is a no-op if we cleared the coinsviewdb with -reindex or -reindex-chainstate". Post it as a main answer?
Dbs are supposed to be edited finely record by record, and this measure would have been of help.
Comment: This answer is also factually wrong; see my own answer.
Comment: @PieterWuille I just read, there is missing detail here, but I see nothing wrong.
Comment: You're saying that setting it to zero doesn't work; that's false. `-reindex-chainstate=0` is exactly the same as not setting it at all, and is the opposite from `-reindex-chainstate` or `-reindex-chainstate=1`.
Comment: Yeah, it is a boolean argument. If it is assignable is only because Bitcoin accidentally wrongly made boolean arguments assignable.