I am trying to make a multi-language website with fully translated content. And the thing is I am not sure about the URL for the homepage.   So the structure I am planning to prepare right now is using just the URL (like example.com/) for the English version and /de, /jp or /tr subfolders for the other language versions.   Would that be useful or should I use /en subfolder for the English version? If so, what kind of the homepage would you suggest (for example.com/), just a page with language selector or IP-based redirecting?
I have a website running in English and Japanese and the default language is Japanese.  What are the advantages of one over the other solution:   Solution 1. When accessing example.com, you will see only Japanese. When accessing example.com/en, you will see only English. Solution 2. When you access example.com, it will redirect you to example.com/ja, where you will see only Japanese. English site is still example.com/en.
Catching access violation exceptions? Example  int *ptr; *ptr = 1000;   can I catch memory access violation exception using standard C++ without using any microsoft specific. Multiple Author and email with location? I am trying to add multiple Author with their email and location but not working.  I am trying to get something like this     first_person^1 , second person^2, third_person^3            {1^mail, 2^mail, 3^mail}@gmail.com                   institution name                      location How are the AES S-Boxes calculated? I'm trying to understand how the AES S-Boxes are calculated. I understand how the multiplicative inverse is calculated over $GF(2^8)$, but I'm confused by the description of the affine transformation. I haven't been able to Google a good explanation of how the S-Box values are calculated. Can someone explain how this works, starting after the calculation of the multiplicative inverse? I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel. Is it shell portable to run a command on the same line after variable assignment? Does umount calls sync to complete any pending writes We have BBB based custom board with kernel 3.12 running on it.  I have doubt regarding umount and &amp; sync.  Lets say a script is umounting a partition, Does it require to run sync command before umount to complete pending writes. ? Line numbering paragraph oriented? I'm using the lineno package with the pagewise option but I need a way to get the numbering restart every paragraph break. I need a general solution to pass to the latex command, e.g.:  latex "\AtBeginDocument{\RequirePackage[pagewise]{lineno}\linenumbers}\input{mydocument.tex}"   I read the lineno manual but the package does not provide this feature. Is there any trick to do that? Running tcpdump starts ssh flood I have runtime Linux running in a PLC. My development machine is running Ubuntu 14.04. The PLC and the development machine are connected through a five port switch. I ssh to PLC from my development machine to transfer executable of a networking application that I develop on my development machine.   I run tcpdump on PLC to debug the kind of packets my network application is receiving BUT as soon as I start tcpdump, there starts a flood of ssh sync and acks back and forth from my ubuntu machine to the PLC. The LED lights of ethernet controller of PLC as well on the switch start blinking rapidly. The flood overwhelms the PLC and it almost dies down while all other packets get dropped. It feels like a DOS attack whenever I run tcpdump but as soon as I stop tcpdump, everything calms down and gets back to the normal.   I would like know remedy on this problem and why it happens?     Any help would be appreciated. How to disable "time travel" entirely? Why was the universe in an extraordinarily low-entropy state right after the big bang? Let me start by saying that I have no scientific background whatsoever. I am very interested in science though and I'm currently enjoying Brian Greene's The Fabric of the Cosmos. I'm at chapter 7 and so far I understand most of general ideas he has talked about. Or at least, I think I understand them :-)  There is however one part, at the end of chapter 6 that I can't grasp.  It is about entropy and the state of the universe a few minutes after the big bang.  On page 171 he says:     Our most refined theories of the origin of the universe -our most refined cosmological theories- tell us that by the time the universe was a couple of minutes old, it was filled with a nearly uniform hot gas composed of roughly 75 percent hydrogen, 23 percent helium, and small amounts of deuterium and lithium. The essential point is that this gas filling the universe had extraordinarily low entropy.   And on page 173-174:     We have now come to the place where the buck finally stops. The ultimate source of order, of low entropy, must be the big bang itself. In its earliest moments, rather than being filled with gargantuan containers of entropy such as black holes, as we would expect from probabilistic considerations, for some reason the nascent universe was filled with a hot,   uniform, gaseous mixture of hydrogen and helium. Although this configuration has high entropy when densities are so low that we can ignore gravity, the situation is otherwise when gravity can't be ignored; then, such a uniform gas has extremely low entropy. In comparison with black holes, the diffuse, nearly uniform gas was in an extraordinarily low-entropy state.   In the first part of the chapter Brian Greene explains the concept of entropy with tossing the 693 pages of War and Peace in the air.  At first, the pages are ordered. The specific order they are in make sense and are required to recognize the pages as a readable book called War and Peace. This is low entropy. It is very highly ordered and there is no chaos.  Now, when you throw the pages in the air, let them fall and then pick them up one by one and put them on top of each other, the chances you get the exact same order as the initial state are extremely small. The chance you get another order (no matter what order, just not the one from the beginning) is extremely big. When the pages are in the wrong order, there is high entropy and a high amount of chaos. The pages are not ordered and when they are not ordered you would not notice the difference between one unordered state and another one.  However, should you swap two pages in the ordered, low entropy version, you would notice the difference.  So I understand low entropy as a highly ordered state with low chaos in which a reordering of the elements would be noticeable.  I hope I'm still correct here :-)  Now, what I don't understand is how a uniform mixture of hydrogen and helium can by highly ordered? I'd say you wouldn't notice it if some particles traded places. I'd say that a uniform mixture is actually in a state of high entropy because you wouldn't notice it if you swapped some hydrogen atoms.  Brian Greene explains this would indeed be the case when gravity plays no important role, but that things change when gravity does play a role; and in the universe right after the big bang, gravity plays a big role.  Is that because a reordering of the particles would change the effects of gravity? Or is there something else that I'm missing here? How can I control the name of generic WCF return types? I've got a WCF Web Service method whose prototype is:  [OperationContract] Response&lt;List&lt;Customer&gt;&gt; GetCustomers();   When I add the service reference to a client, Visual Studio (2005) creates a type called "ResponseOfArrayOfCustomerrleXg3IC" that is a wrapper for "Response&lt;List&lt;Customer>>".  Is there any way I can control the wrapper name?  ResponseOfArrayOfCustomerrleXg3IC doesn't sound very appealing... Why don't we have a theory of everything? What is currently stopping us from having a theory of everything? i.e. what mathematical barriers, or others, are stopping us from unifying GR and QM? I have read that string theory is a means to unify both, so in this case, is it a lack of evidence stopping us, but is the theory mathematically sound? How to remove Windows 10 from Windows Boot Manager after uninstalling it? I installed Windows 7 on one partition and formatted the other where I had Windows 10 installed leaving only that one Windows 7 OS on my drive, but I still have two OSs offered in Windows Boot Manager. What is even weirder is that their names are reversed, when I choose Windows 10, it's Windows 7 that gets loaded. What does a "< <(...)" redirection mean? I've seen that rvm (ruby version manager) is installed using the following command:  bash &lt; &lt;(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )   So as I understand we get the script content and pass it to the bash (I believe &lt; &lt; and &lt;&lt; is the same thing?) I am interested in the &lt; &lt; part, found following description on the net:     &lt;&lt; token    Means use the current input stream as STDIN for the program until token is seen.    This is somehow not clear for me, can someone make an example or explain it in more simple way? If $a$ divides $bc$ and $\gcd(a,b) = d$ then $\frac a d$ divides c I'm trying to prove that if $a$ divides $bc$ and $\gcd(a,b) = d$ then $\frac a d$ divides c. I tried using Bezout identity but couldn't get anywhere. I have a wireless Access point which is connected to internet and the same being accessing by 2 system, one on windows XP and the other on Ubuntu.  Please let me know if it is possible to access the c:\ d:\ or any drives on windows xp machine directly from ubuntu system ?  I have tried doing this with 2 windows xp system but not sure how to do this from ubuntu.  Any help regarding the same is highly appreciated. (reason to do so is to access files in windows xp machine)  -Thanks &amp; regards, Manju How to calculate overlap between empirical probability densities? I'm looking for a method to calculate the area of overlap between two kernel density estimates in R, as a measure of similarity between two samples. To clarify, in the following example, I would need to quantify the area of the purplish overlapping region:  library(ggplot2) set.seed(1234) d &lt;- data.frame(variable=c(rep("a", 50), rep("b", 30)), value=c(rnorm(50), runif(30, 0, 3))) ggplot(d, aes(value, fill=variable)) + geom_density(alpha=.4, color=NA)     A similar question was discussed , the difference being that I need to do this for arbitrary empirical data rather than predefined normal distributions. The overlap package addresses this question, but apparently only for timestamp data, which doesn't work for me. The Bray-Curtis index (as implemented in vegan package's vegdist(method="bray") function) also seems relevant but again for somewhat different data.  I'm interested in both the theoretical approach and the R functions I might employ to implement it. Profile picture cannot have transparent background How do I log in to my personal Windows 10 using a FIDO2 key? I'd like to user a FIDO2 key to log into Windows 10. There are various guides explaining how to add a key to a Microsoft web account, or to Windows 10 sign in options, but neither result in showing up as an option when I try logging into Windows.  How can I configure windows to use my FIDO2 key to log in? how to Query parent to child I have process in salesforce in such a way opportunity we can relate this opportunity to this lookup field parent_opportunity__c . Which relates opportunity to other parent opportunity.  I want to write a query parent to child :  select id,(select id from opportunity where parent_opportunity__c!=null) from opportunity where parent_opportunity__c=null   I have worked with different scenarios i cant able to crack it  select id,name,(select id,name from parent_opportunity__r) from opportunity this is showing error and   select id,name,(select id,name from opportunity) from parent_opportunity__c this is also error