Is there a simple way to obtain the name of a class in c# including template parameters?  I.E  Print( new List<int>{ 100, 1001});    Produce one of the following outputs:  List<int> List<Int32> System.Collections.Generics.List<System.Int32>   one of the first 2 is preferrable, but Type.FullName is not a viable option. It is ways too verbose.  Too verbose result that is unwanted.  System.Collections.Generic.List`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=235hosehoue5h]]   Note I'm asking just for a shortcut if it exists. I'm no asking for a full implementation of such feature.

Sometimes I need to access some servers running Linux (or maybe another Unix-like SO), but I don't know how to verify which  is in use on the server (there are times that even the "responsible" person for the server doesn't know).   Is there an easy and reliable way to discover that, one that is uniform and consistent across all of them?


What exactly does wave particle duality mean does it mean that an electron is a particle which is moving like a wave or does it mean that an electron and a photon is neither a wave nor a particle and something completely different or is it as if it’s sometimes a wave and the other times a particle or if it’s both simultaneously? Similarly for photons. (Is it like mass is nothing but compactly packed energy and similarly for energy, as in $E=mc^2$, which is described by wave particle duality as in the answer to the first question?)  Based on what have we got the two ideas of wave and particle? That is, how have we-on what basis, classified the behaviour of matter and energy as wave and particle? (Like we have classified matter into solid, liquid, gas, Bose-Einstein condensate and plasma based broadly on the inter particle forces of attraction, how is matter packed, the relative energies etc.)

I often hear about the wave-particle duality, and how particles exhibit properties of both particles and waves. However, I wonder, is this actually a duality? At the most fundamental level, we 'know' that everything is made up out of particles, whether those are photons, electrons, or maybe even strings. That light for example, also shows wave-like properties, why does that even matter? Don't we know that everything is made up of particles? In other words, wasn't Young wrong and Newton right, instead of them both being right?


I have been learning about the cardinality of Real numbers and it got me thinking. Since the cardinality of real numbers is uncountable and is the same as the cardinality of real numbers in the interval $(0,1)$ or for that matter any given interval. So my question is how small this interval can get and still retain the same cardinality. Does $[0, \epsilon)$ have some cardinality as real numbers as epsilon gets smaller and smaller. It is trivial to see that in the limiting case, the set contains only one element. So the question is how small can epsilon get before the cardinality of the set $[0, \epsilon)$ gets smaller than that of Real numbers.

Construct a bijection between $[a,b)$ to $(0,1)$   I'll be using a technique that builds the function in steps from one interval to the next:  $[a,b)\overset{x-a+1}\to[1,b-a+1)\overset{\frac 1 {x+1}}\to(0,1)$  Now composing the function from the end to the beginning: $f(x)=\frac 1 {1+()}=\frac 1 {1+(x-a+1)}=\frac 1 {x-a+2}$  Now since all the operations were linear we have a bijection, but is it right?  EDIT:  $[a,b)\overset{x-a}\to[0,b-a)\overset{\frac x {b-a}, x\neq0 , 0.5, x=0}\to(0,1)$  $f(x)=\begin{cases}  \frac {(x-a)} {b-a} &x\neq0 \\ 0.5  &x=0\end {cases}$


I am trying to identify an icon on my kids phone. I noticed it and I am unfamiliar so I am a little nervous. It was a notification icon so I don't know what the app itself is. The icon is essentially a lowercase "a" in the exact font that this message is in with a curved line below it that resembles the mouth of a smiley face. Thanks in advance

I'm concerned about an app on my child's phone. I saw an app icon in the notification area that looked strange (Andy Android head, slightly tilted as its icon).  How can I find out what app it is from just having seen that icon in the notification bar?


Which is correct:     With whom are you going to the park?   or     Who are you going to the park with?   There is also another confusing part of something similar. Example;     This note comes from Bob. He wanted to give it to you. Excuse me. I   didn't hear the name. You said the note comes from who?   or      ... the note comes from whom?

Many times, I've been asked the difference between "who" and "whom". I myself know the difference, but it is hard to explain to others. What is the easiest way to explain it to those with a basic understanding of English? A mnemonic (if possible) would help.


All too often I see questions getting closed by direct moderator action for "Unclear what you're asking", when it's obvious that English is not the asker's native language.  In many of those cases, with about 30 seconds of thought and careful interpretation, I'm able to figure out what the user is trying to ask and make an edit to clarify it on their behalf.  Often I can summarize the intent of the question in just one or two sentences.  I don't think I have any magical translation superpowers, so if I can do that, it follows that others can too.  But for some reason they hit the Close button instead.  So I guess I'm asking if mods can just take a little more time before hitting the Close button, and at least make an effort to interpret the question first (or give the community a chance to do so - often this happens within 5 minutes after the question has been asked).  I know that sometimes it's hopeless, and I'm not saying bad questions should get a free pass just because the asker isn't a native English speaker.  But we need to understand that not everyone is fluent in English and have a little patience with them.  Asking them to clarify the question often won't help, because they've already expressed it as clearly as they are able within the confines of their limited grasp of the language.  A question that shows thought and an attempt to solve the problem shouldn't be closed simply because of the author's lack of English skills.  The edit button is there for a reason.  Whenever I make an edit to clarify a question like that, I put my attempted translation at the top, then leave the original wording below in case I got it wrong and someone else (or the OP) has a different interpretation.  I clearly mark my translation and the original question so it's obvious which is which.  I rarely spend more then a minute on this, but by the time I've finished editing the question I find that it's already been closed, and now the OP can't get the answers they're looking for until (and unless) the question gets reopened (which often doesn't happen, or by the time it gets reopened the OP has already given up in frustration).  Slow down and think before hitting that Close button.  Try to interpret the question first, and submit an edit to help clarify it if you can.  If you can't, wait a while to give the community a chance to do it - someone else might have better interpretive skills than you do.  If a day goes by and the question still hasn't gotten a better translation, THEN consider the Close button.  But consider it carefully - don't use it unless it's absolutely necessary.

Let's say that there is a question asked in a bad manner, in a way that the question is missing. For example the user shows the code and doesn't explain very well which is the problem.    Usually someone starts digging in the OP mind posting comments and asking him for details. It may happen that the question gets edited and the OP edits it to a valid question.    Do you usually give the OP time to edit the question or you immediately vote to close it?


So, I want to prove that a family of functions, $f_n$, which is univalent on the unit disk for all $n$ where $f_n(0)=0$ and $f_n'(0)=1$ is a normal family.  So far, and using "Fundamental Normality Test", this is what I have: If you reduce the disk to a subdisk not containing the origin, this family omits $-1$ (by construction) and $0$. Thus the family is a normal family on this subdisk.   Now I should somehow extend this to the unit disk by the maximum principle, and is where I am having trouble.   So my real question is, "how do I extend the normality of the subdisk to the unit disk?"

Prove that:  The family of $S$ of univalent functions on the unit disc with f(0)=0, f'(0)=1 is a normal family.  I'm pretty sure i have to do it with Zalcmans Lemma:  a family of analytic functions on the unit disc with f(0)=0 are not normal if and only if there exists: (1) a sequence $(z_n)$ converging to $z_\infty$ (2)a sequence of positive reals $(p_n)$ convering to zero (3) a sequence of functions in the family such that $f_n(z_n+p_nx)-f_n(z_n)$ converge on compact subsets to the entire identity function.  I know there are more complicated ways to treat the problem, but it is not supposed to be solved with advanced theory like the growth theorem/distortion theorem.  Please be so kind not to post a solution right away, but instead hint me how to solve the problem. Thank you very much for your time.


I'm building a reyclerView that loads images into the titleChild. I uploaded test_image into res/drawable but I keep seeing null object reference at  titleChildViewHolder.option1.setImageResource(R.drawable.test_image); titleChildViewHolder.option2.setImageResource(R.drawable.test_image);

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


In the US, we have 4 options for cellular plans (AT&T, Verizon, T-Mobile & Sprint).  To get a comparison, who are the top 3-4 companies that I have to choose from in London? and which one has the largest coverage outside of London i.e. Verizon has the largest coverage in the US?

I will travel from USA to London in Aug. I want to buy an iPad in USA which will work with a data sim card, which I assume to be available in London.  Questions:    Which type of iPad has the highest probability of working with a data sim card bought in London? Also, once I land in London with my iPad, what would be an optimal type of data sim card?   I hope to find people who are walking around in London now with a data sim card in their iPad. I'd like to find out how happy they are with the service and any pitfalls which might await me.  I have studied ; it told me to contact my carrier, so I called T-Mobile USA and found them not to be knowledgeable. I spent lots of time on their site and talking to phone support. Also I tried contacting T-Mobile UK via their website and gave up after it seemed they want me to have a UK phone to set up an account.


I am trying to get some dream jobs, e.g. plumber, I choose build specific floor, and go services, there is no plumber floor available!  Do I need a certain tower height? or a certain populace or something? or are the available floors I can build randomly assigned daily to my list?

I really really want a specific floor () in my Tiny Tower.  How does the game decide which exact business will go into the "Creative" floor?  Do I have to meet requirements (such as tower height) to unlock certain floors?


I'm trying to use Thunderbird again, but I can't make it use Firefox to open links. I'm using KDE and Firefox is my default browser. I tried the network.protocol-handler method but it doesn't work.

I want to be able to click links in Thunderbird emails and have them open in Chromium (package name chromium-browser). Instead, they open in Firefox.  I have tried the following:   xfce preferred applications (Chromium is not listed, so I had to hunt down the executable) -- next time I run chromium, it complains that it is no longer the default browser. Telling Chromium to set itself as the default browser. Thunderbird opens links in Firefox. update-alternatives. It's already listed as an alternative at the same priority as Firefox. The "open web browser" app menu item opens Chromium. Thunderbird opens links in Firefox.   I have looked through the entire preferences gui in Thunderbird (but not the advanced config editor yet) and seen nothing that mentions what browser to open links in.  Please note that this is not Google Chrome.


I'm trying to compute $\displaystyle \int_{-\infty}^\infty \frac{e^{ax}}{1+e^x}dx$, $(0<a<1)$ Let $f$ denote the integrand.  I'm using the rectangular contour given by the following curves: $c_1: z(t) = R+it, t \in [0, 2\pi]$ $c_2: z(t) = -t+2\pi i, t \in [-R, R]$ $c_3: z(t) = -R + i (2\pi - t), t \in [0, 2\pi]$ $c_4: z(t) = t, t \in [-R, R]$    There is one singularity within the contour, at $z = \pi i$. Expanding out the denominator as a power series shows that it's a simple pole, and allows us to evaluate the residue as $\displaystyle \lim_{z \rightarrow \pi i} f(z)(z-\pi i) = - e^{a \pi i}$    This is computed by expanding $1+e^z$ as a Taylor series around $\pi i$. The first coefficient will be 0, and the second will be $-1$. The rest will have orders of $(z - \pi i)$ greater than 1, and will thus vanish when we take the limit.  So the integral over the entire contour is $- 2\pi i e^{a \pi i}$    An easy enough estimate on the $c_1$ shows that the integral vanishes as $R \rightarrow \infty$. With a variable change, c_3 is the same as c_1 and also vanishes. $c_4$ becomes the integral we want when we take a limit. $c_2$ becomes $c_4$ with a constant:    \begin{align*} \int_{c_2} f(z)dz &= \int_{-R}^{R} \frac{e^{-at}e^{a 2\pi i}}{1+e^{-t}e^{2\pi i}}dt \\ &= e^{a 2 \pi i}\int_{-R}^{R} \frac{e^{-at}}{1+e^{-t}}dt \\ &=e^{a 2 \pi i}\int_{R}^{-R} - \frac{e^{au}}{1+e^{u}}du \ \ \ (u = -t, du = -dt)   \\ &= e^{a 2 \pi i}\int_{-R}^{R} \frac{e^{au}}{1+e^{u}}du \\ &= e^{a 2 \pi i} I(R) \end{align*}    Where $I(R)$ is the line integral over $c_4$. Putting it all together and taking the limit gives us $\displaystyle \lim_{R \rightarrow \infty} I(R) = \frac{- 2\pi i e^{a \pi i}}{(1 + e^{a 2 \pi i}) }$    But this can't be the value of the integral, because it's a real-valued function integrated over $R$. I can't figure out where I'm going wrong. Note that I've avoided posting all the details of my solution since this is from a current problem set for a class on complex analysis.

I'm self studying complex analysis. I've encountered the following integral:  $$\int_{- \infty}^{+ \infty} \frac{e^{ax}}{1+e^x} dx \text{ with } a \in \mathbb{R},\  0 \lt a \lt 1. $$  I've done the substitution $e^x = y$. What kind of contour can I use in this case ?


I tried using 10^6 by 10^6 array ,it is giving me segmentation fault

Is there a max length for an array in C++?  Is it a C++ limit or does it depend on my machine? Is it tweakable? Does it depend on the type the array is made of?  Can I break that limit somehow or do I have to search for a better way of storing information? And what should be the simplest way?  What I have to do is storing long long int on an array, I'm working in a Linux environment. My question is: what do I have to do if I need to store an array of N long long integers with N > 10 digits?  I need this because I'm writing some cryptographic algorithm (as for example the p-Pollard) for school, and hit this wall of integers and length of arrays representation.


Why is there no article (a or the) in front of "President"? Is the title grammatically correct?   to Gawker.com

I read news on the BBC (on its website) this morning. When I was reading the news I noticed the definite article the was missing in a sentence. As per my opinion, the reporter missed the article the. But I also thought that the reporter also had some point as he did not use the article there. So I just wanted to confirm so landed here to get some help on it.     On the website:      It also proclaimed the group's leader, XYZ  (name), as caliph and   "leader for Muslims everywhere".      As per my opinion it should have been:      It also proclaimed the group's leader, XYZ  (name), as the caliph and   "leader for Muslims everywhere".   Source link:


Given the recurrence relation $x_{n+1}=x_n-x_{n}^2$ with $x_1=1/2$, evaluate $$\lim_{n \to \infty} x_n$$ And $$\lim_{n \to \infty} nx_n$$ My attempt is this: $x_2=1/4$, $x_3=3/16$, $x_4=39/256$; the sequence seems to be decreasing, and by the recurrence I notice that $x_{n+1}=x_n-x_n^2 \leq x_n$ so it is decreasing.  Then it has a limit $L$ and by the recurrence it must be $L=L-L^2\Leftrightarrow L=0$; hence $$\lim_{n \to \infty} x_n =L=0$$ Don't know what to do for the second limit, because just evaluating it gives an indeterminate form $\infty\cdot0$.  Thanks.

$n\in N,   a_{n+1} = a_n  (1 - a_n)$ , $0 < a_0 < 1$. Prove that $\lim\limits_{n\to\infty} a_n\cdot n = 1$. I proved that $\lim\limits_{n\to\infty} a_n = 0$ and that $a_n$ is strictly decreasing. I tried Cezaro Stolz but didn't get anywhere. Thanks in advance.


I've done a few basic boards and I've decided to try my hand at a basic Raspberry Pi Compute Module board. From the :     The USB port (Pins USB DP and USB DM) must be routed as 90 ohm differential PCB traces   Similar notes exist for other devices but USB is the one I'm most interested in. I understand how routing a matched impedance differential pair works but I've never encountered the need for a specific resistance value for the traces. So my question is...  Considering there is a relatively short distance between the pin and the USB transceiver chip, how do I design for a specific resistance? Is it acceptable to add a resistor in line with the PCB trace to tune this, or must it be done in copper? Is the impedance value supposed to be derived solely by adjusting the trace width/length?

This is an attempt to craft a good general question and answer for a topic that's been asked before, but only in specific situations.    Could you describe what I need to know, prior to laying out a PCB board for a differential signal pair with a specified "differential impedance"?  Differential pairs are used for various high speed serial buses, including USB, MIPI, RS-422, RS-485, PCI Express, DisplayPort, LVDS, HDMI and more.  What's the definition of "differential impedance"? On a PCB board, do I need to twist or alternate the wires, as is done for differential pairs in a cable?  Is the impedance of each length matched trace half the "differential impedance", or is it more complicated that that?  How close must length matching be, given the maximum signal frequency?  References that may be of help:


I have a simple compressor which converts a file to .zip . How can I find out the compression speed in order to print the speed ?  This is my compressor:  public class Compressor {     private static byte[] buffer = new byte[1024];      public static void compress(FileInputStream file) throws IOException {         FileOutputStream fos = new FileOutputStream("compressedFile.zip");         ZipOutputStream zos = new ZipOutputStream(fos);         ZipEntry zipEntry = new ZipEntry("file.txt");          zos.putNextEntry(zipEntry);          int len;         while ((len = file.read(buffer)) > 0) {             zos.write(buffer, 0, len);         }          file.close();         zos.closeEntry();         zos.close();          System.out.println("Done");     } }

How do I get a method's execution time?   Is there a Timer utility class for things like timing how long a task takes, etc?     Most of the searches on Google return results for timers that schedule threads and tasks, which is not what I want.


Hello people I have a problem using parameters in threads. The problem is that I put an object List<object> as a parameter for a thread array in a foreach loop iterating a list of Lists (List<List<Object>>), and sometimes  it duplicates the parameter (i already check that there is not a duplicate object before i put it in a thread). My code is something like this. Does anyone have an idea what is wrong?. Thanks in advance  foreach (List<object> list2 in list1) {      threads[i] = new Thread(() =>DoWork(list2, nRetorno));     threads[i].Name = "thread " + i;     threads[i].Start();     Thread.Sleep(5);     i++; }

In the two following snippets, is the first one safe or must you do the second one?  By safe I mean is each thread guaranteed to call the method on the Foo from the same loop iteration in which the thread was created?  Or must you copy the reference to a new variable "local" to each iteration of the loop?  var threads = new List<Thread>(); foreach (Foo f in ListOfFoo) {           Thread thread = new Thread(() => f.DoSomething());     threads.Add(thread);     thread.Start(); }   -  var threads = new List<Thread>(); foreach (Foo f in ListOfFoo) {           Foo f2 = f;     Thread thread = new Thread(() => f2.DoSomething());     threads.Add(thread);     thread.Start(); }   Update: As pointed out in Jon Skeet's answer, this doesn't have anything specifically to do with threading.


I have this book about Java and it is telling me if I use relational operators for objects such as strings it will turn out as false. Even if two strings have the same literal value. I tested this, yet true was printed. Could someone explain why this is?  String y = "Not null"; String x = "Not null";              if(x == y)                 System.out.println("True");

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


It has been said that everyone lives by selling something.  Can I substitute the bold part with "it is said"? I think since it is kinda like a saying, using present simple is more appropriate. However, I also think "it is said" can also mean this sentence was said before, and the impact on the present is that now people generally accept that, which sounds like the function of present perfect. And present perfect I think carry the implication that people may or may not say this anymore as an impact of someone saying it in the past.

It has been said that everyone lives by selling something.  Can I substitute the bold part with "it is said"? I think since it is kinda like a saying, using present simple is more appropriate. But I also feel "it is said" can also mean this sentence was said before, and the impact on the present is that now people generally accept that. And present perfect I think carry the implication that people now may or may not say this anymore.


I am trying to allow my Windows 10 virtual machine access to my USB devices. This seems pretty straightforward, according to . I need to install the Guest additions which I did by clicking Devices in the Virtual machine > Insert guest additions cd > and then double clicking it in file explorer and going through the install wizard. However, When I go to the USB settings and try and check "Enable USB 2.0 (EHCI) Controller" I get an error message  Invalid settings detected USB Page: USB 2.0 is currently enabled for this virtual machine. However this requires the Oracle VM VirtualBox Extension Pack to be installed. Please install the Extension Pack from the VirtualBox download site or disable USB 2.0 to be able to start the machine.  Easy enough, I head on over to  and download the 4.3.36 extension pack. Then install it with: sudo vboxmanage extpack install --replace ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-4.3.36-105129.vbox-extpack this says it installs successfully. I restart VirtualBox andddd... I still have the error about invalid settings detected and am unable to use a USB within windows. I've done quite a bit of searching on this issue and pretty much everything says I need to either install the guest additions cd or install the extension pack, both of which have already been done.

I want to use my flashdrive in Windows XP, which I am currently running in Virtualbox, but when I open up the settings to enable usb usage, I get an error: Failed to access the USB subsystem. VirtualBox is not currently allowed to access USB devices.  You can change this by adding your user to the 'vboxusers' group.  Please see the user manual for a more detailed explanation   Result Code:  NS_ERROR_FAILURE (0x00004005) Component:  Host Interface:  IHost {30678943-32df-4830-b413-931b25ac86a0} Callee:  IMachine {22781af3-1c96-4126-9edf-67a020e0e858}  Does anyone know how to fix this!?


I have a raspberry pi 3b+ and am unable to change/give permissions to an external hard disk I've connected to it. A similar question is:  Also I've mounted the disk by:  I've mounted my hard disk in much the same way. But this is a different case and I'm a beginner so I don't understand most of it. I've mounted the disk as exfat. The folder I want to chown is nextcloud and if I do ls -al I get the following drwxrwxrwx 1 root root 8388608 Jul 27 19:09 nextcloud  Just as in his case, my folder is also located in /media/USBHDD1/shares I'n currently using sudo chown pi /media/USBHDDD1/shares/nextcloud but I'm not permitted to do so. Also and chmod commands don't do anything. I don't get an error, but the permissions aren't changed either. I don't know what to do to change the permissions. If I run /media $  grep USBHDD1 /etc/mtab it returns: /dev/sda2 /media/USBHDD1 fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0 This also occurs when I try to change the permissions of the folder. Any sort of assistance would be greatly appreciated. The output of my mount command is: /dev/sda1 on /media/pi/01D64154A003CBF0 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,uhelper=udisks2) I also tried to change my fstab and add uid and gid, no luck. I understand you cant change permissions with exfat. Which file system should I use?

I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is:  rwxrwxrwx 1 root root 131072 Jan  1  1970 hdd   I am mounting it via fstab config:  /dev/sda1 /mnt/hdd exfat-fuse defaults 0 0   I am trying to assign the owner of that drive to www-data via that command:   root@owncloud:/mnt# chown -R www-data:www-data hdd   and it says I don't have permission to do that.  mount command output:  /dev/sda1 on /mnt/hdd type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)


Prove that an even dimensional Real Projective space is not orientable.

Q: Show that $\mathbb {RP}^n$ is not orientable for $n$ even.  First I looked at the definition for orientability for manifolds of higher degree than 2, because for surfaces I know the definition with the Möbius strip.     A n-dimensional manifold is non-orientable if it contains a homeomorphic image of the space formed by taking the direct product of a (n-1)-dimensional ball B and the unit interval [0,1] and gluing the ball B×{0} at one end to the ball B×{1} at other end with a single reflection.   The projective space can be seen as $\mathbb S^n/\mathbb Z_2$ or $\mathbb D^n$ with antipodal points identified on the boundary.  I have looked at other similar questions like   In that thread someone states that the antipodal map is orientation preserving if $n$ is odd and reversing when $n$ is even. Why is this? Intuitively the antipodal map can be constructed by combining $n+1$ reflections in the hyperspaces $x_i=0$ and if $n$ is odd $n+1$ is even and combining an even amount of reflections is orientation preserving and the other way around for $n$ even and $n+1$ odd. I need a hint for a rigorous proof.  Also after I establish this for myself, I need to show that in  $\mathbb D^n$  with n even and with antipodal points identified on the boundary the higher dimensional analogue of Möbius strip, which has just one reflection, can be embedded.   The subset to which it would be homeomorphic is obvious, but I would like a hint in showing that the the different reflections yield the same space.


I have read this article:   But I'm not 100% clear if moving my subdomain website into a subdirectory on the main domain would change anything related to SEO.  I inherited this structure:   Informational site related to our specific industry lives at: http://example.com StoreFront where we sell product related to our industry lives at: http://store.example.com   The informational site gives a lot of good information on how to use the products we sell. The storefront is primarily used for the ecommerce function of selling the products, but there is a lot of info specific to the products on that site.   Question: Is our main domain http://example.com getting page rank credit for the product info contained at http://store.example.com? Would there be a benefit to changing the structure?

If I have example.com, and blog.example.com, do search engines see those as one site or two? Will using subdomains hurt SEO? I have some technical reasons why I can't use example.com/blog.


Let $X$ be a topological space, for $n \geq 1$ we define     $F_n(X) = \lbrace{ (x_1,...,x_n) \in X^n | x_i \neq x_j for i \neq j \rbrace} $ the configuration space of n points of X.  My question is about the path-connected components of $F_n(\mathbb{R}^d)$.  I know that :   1- for $n=1$, $F_1(X) = X$ and hence $\pi_0(F_1(\mathbb{R}^d)) = \pi_0(\mathbb{R}^d) = \lbrace \mathbb{R}^d \rbrace \: \forall d \geq 1  $  2- $\forall n \geq 1$, $F_n(\mathbb{R}) = \bigcup \lbrace x_i < x_j \: or \: x_i > x_j \: | \: \forall \: 0 \leq i,j \geq n \rbrace $  Hence $\pi_0(F_n(\mathbb{R})) =   \lbrace x_i < x_j \: or \: x_i > x_j \: | \: \forall \: 0 \leq i,j \geq n \rbrace   $  I am unable to see how the path-connected componnents of $F_n(\mathbb{R}^d$) look like for all $n \geq 1$ and for all $d \geq 1$...

This is a homework question. $d,n\ge 2$.  Let $L=\{(x_1,...,x_n)\in (\mathbb{R}^d)^n: x_i\in \mathbb{R}^d,  x_i\ne x_j \forall i\ne j\}$.   I tend to think it is not path connected because if you assume $d=1$, this is the case. But I cannot prove for $d\ge 2$.  Any help will be appreciated! :)


(source: )    I want to know why operating systems require us to shut down using an option. Why can't I just power off with a mechanical switch?  Will I damage the hardware or corrupt my data if I constantly shut down a computer without using the OS option?  To clarify: I want to use a Intel Compute Stick as a media player connected to a projector, so it will be controlled by an electrical switch. Computer will only have the video running and won't be installed programs. The computer won't have internet access.

It is now in the general knowledge that one should not shut down a computer using its power switch. But why is that exactly? Is it a myth that stuck from past architectures?  Is it solely to prevent corruption of data that's being written at the time of shutting down (bonus: how can it be corrupted exactly?)? I'm pretty sure hard drives' reading tips don't crash on the disk anymore when powered down (or I would be out of HDDs by now).  More precisely, does power cycling a computer with its power switch makes it wear out quicker or even become damaged in any way, and why (hardware only)?


So I have a table which uses multi-column headers and it seems to work great except for one thing. When I render the document, there are some missing vertical lines in the table header and I can't figure out why they are missing. My code:  \begin{center} \begin{tabular}{| c | c | c : c | c : c : c |}     \hline     Input & Stage 1 & \multicolumn{2}{c}{Stage 2} & \multicolumn{3}{c}{Stage 3} \\      \hline     1 & 1 & 1 & 1 & 1 & 1 & 1 \\     4 & 4 & 4 & 4 & 4 & 2 & 2 \\     7 & 7 & 7 & 5 & 3 & 3 & 3 \\     5 & 5 & 5 & 7 & 2 & 4 & 4 \\     3 & 3 & 8 & 8 & 8 & 5 & 5 \\     6 & 6 & 6 & 6 & 6 & 6 & 6 \\     8 & 8 & 3 & 3 & 5 & 8 & 7 \\     2 & 2 & 2 & 2 & 7 & 7 & 8 \\ \hline \end{tabular} \end{center}    I'm using the tabularx package and arydshln for the dotted lines.   When I render it it looks like this:    Thanks!

The code  \documentclass[a4paper]{article} \usepackage{multirow} \begin{document}  \begin{tabular}{|l|l|l|l|l|l|l|}   \hline   \multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & \multicolumn{5}{c}{Bits per     channel} \\       \cline{3-7}   & & 1 & 2 & 4 & 8 & 16 \\       \hline \end{tabular}  \end{document}   Results in the table    How may I fix this code so that a vertical line is also added after "Bits per channel"?


I am currently reading a math paper, and one of the variables has this sort of hat on it:  I have tried to find its code using detexify and by looking at several manuals, but I was unable to do so. Can anyone please tell me what the code is for this type of hat is? Thank you very much.

In my long document I, sadly, have to use several accents to denote different kinds of symbols. Currently, I use primes ($x'$), hat, tilde, and overline. In addition I use two colored symbols (red colored tilde and blue $\prescript\ulcorner$), as I need further distinguishment.  Now I'd like to have no colors in my document, while I still have at least six different ways to differentiate certain symbols.  Which alternatives could I use that are easy to recognize and 'stand out', while they are different to prime/hat/tilde/overline?  EDIT: The reader should be able to see the kind of accent used even if the symbol in question is in a sub-script (possibly even a sub-sub-script).


After doing a WFS request, I have fetched all GeoJSON objects and fill in a list. My goal is to zoom specified GeoJSON in fetched all GeoJSON using OpenLayers 3.  In the below code inside the showFeatureByID function, I have reached specified GeoJSON by clicking, after this, I would like to zoom in on map using OpenLayers.  map.on('singleclick', function(evt) {      var view = map.getView();     var viewResolution = view.getResolution();     var source = untiled.get('visible') ? untiled.getSource() : tiled.getSource();     var url = source.getGetFeatureInfoUrl(         evt.coordinate, viewResolution, view.getProjection(),         {'INFO_FORMAT': 'application/json', 'FEATURE_COUNT': 50});      if (url) {         //url includes getFeatureInfo request string and use x,y values on map to find clicked object.         // do wms getFeatureInfo request.         loadDoc(url);         interval1 = setInterval(function () {             if (featureData.status == true) {                 fillDataView(featureData.data[0]);                 showFeatureByID(featureData.data[0]["ID"]);                 clearInterval(interval1);             }         }, 100);     } });   var featureData; var allGeoJSONFeatures={};  function loadDoc(url) {     featureData={status:false,data:[]};     var xhttp = new XMLHttpRequest();     xhttp.onreadystatechange = function() {         if (this.readyState == 4 && this.status == 200) {               var jsonObject=JSON.parse(this.response);               for(i in jsonObject){                  var val = jsonObject[i];                  if(i == "features"){                      for(j in val){                          var geojsonx = val[j];                          var properties = geojsonx.properties;                          featureData.data.push(properties);                      }                  }              }             if(featureData.data.length>0){                 featureData.status=true;             }         }     };     xhttp.open("GET", url, true);     xhttp.send(); }   function getAllGeoJSON() {     var xhttp = new XMLHttpRequest();     xhttp.onreadystatechange = function() {         if (this.readyState == 4 && this.status == 200) {             var jsonObject=JSON.parse(this.response);             var json = jsonObject.features;             for(i in json){                 var id = json[i].properties.ID;                 allGeoJSONFeatures["p"+id] = json[i];             }          }     };     xhttp.open("GET", "http://ip:host/geoserver/xxx/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=BaskentGaz:M_DIZAYN_VANA&outputFormat=application%2Fjson", true);     xhttp.send(); }   function showFeatureByID(id) {      var geojson = allGeoJSONFeatures["p"+id];     alert(geojson.toString());  }

I have an ol.source.ServerVector with several polygons drawn as features.  I'd like for the map to zoom to the extent of the selected polygon upon selection, but I'm hitting a wall.  I was able to find this post that helped with zooming to all of the features in the source, but not the selected feature specifically    var extent = source.getExtent(); map.getView().fitExtent(extent,map.getSize());   That works great to zoom to all of my polygons, but I can't seem to find any way to only use the selected feature's extent.


So I want to ask is there any rules for choosing the two primes that's used to generaten in RSA? I mean clearly you can't choose 2 and another super big number, so I want to ask is there any restrictions like those two primes must >=2^(key_length-2) or something like that? (Supposing RSA is also using the first but to identify positive/negative.)  Also is there a restriction that requires n be bigger than a number, or otherwise you can also fill 0s at the beginning of a number and let it matches the bit length.   Or is there anything that though isn't consider as restrictions, but are recommended and been used in most situations?

What is the currently industry-standard algorithm used to generate large prime numbers to be used in RSA encryption?  I'm aware that I can find any number of articles on the Internet that explain how the RSA algorithm works to encrypt and decrypt messages, but I can't seem to find any article that explains the algorithm used to generate the p and q large and distinct prime numbers that are used in that algorithm.


Which are the steps to install MySQL in Ubuntu 14.04 (Trusty Tahr)?

I just installed Ubuntu 12.10 (amd64), and want to install a recent version of MySQL 5.6.  If possible, I would like to install (not upgrade) it the "Debian Way' (i.e., using apt-get or dpkg).


I use KOMA-Script's scrartcl document class. I'd like the sections of the article to be numbered starting from zero. How can this be achieved? ( claims that KOMA-Script has a built-in feature for this.)

\documentclass[11pt,a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage{lipsum}     \usepackage{tocloft}     \begin{document}      \tableofcontents     \thispagestyle{empty}         \newpage      \section{Preface} %want section number to be 0     \thispagestyle{empty}         \pagenumbering{roman}     \lipsum[1-3]     \newpage      \section{Start From Here}     \lipsum[1-5]      \section{And So On...}     \lipsum[1-5]     \end{document}      How do I get section numbering to start at 0?   Edit: I know I can do \section*{Preface}, but that removes it from the ToC, which isn't what I want.


Assuming that I've already cooked the poultry (or eggs) to recommended temperatures - does it need to be refrigerated immediately, or is it safe to eat if it's been left at room temperature overnight?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I would like to convert all geoTIFF in a directory in ASCII with the use of a command like gdal_translate -of GTiff... in OSGeo4W Shell.  Is this possible?

Could you please correct my batch command?   I had 100 img images which need to be converted into 8 unsigned bit format for further use in TIMESAT.   mkdir test for %%f in (*.img) do gdal_translate -of ENVI -scale -1 1 1 255 -a_nodata 0 -co INTERLEAVE=BSQ "%%f" test/%%f.dat


This is my code:  import math  n=100  prime=[] [prime.append(i) for i in range(2,n)] i=2  """for i in range(2,int(math.sqrt(n))):""" while i*i <= n:     for j in range(2,n+1):         if i * j in prime:             prime.remove(i*j)     i +=1  print(prime)   Now this works, but when I changed n from 100 to 10000 it blows. How can I fasten it or should I use generator way? Thank you.

Could someone please tell me what I'm doing wrong with this code? It is just printing 'count' anyway.  I just want a very simple prime generator (nothing fancy).   import math  def main():     count = 3     one = 1     while one == 1:         for x in range(2, int(math.sqrt(count) + 1)):             if count % x == 0:                  continue             if count % x != 0:                 print count          count += 1


Assuming the spacetime principle, if the space is modified the time does too. So if the velocity in the space is increase, does the time slow down? What happens if the speed is the speed of light, does the time stops?

I read with interest about Einstein's Theory of Relativity and his proposition about the speed of light being the universal speed limit.    So, if I were to travel in a spacecraft at (practically) the speed of light, would I freeze and stop moving?  Would the universe around me freeze and stop moving?  Who would the time stop for?


I am working in blender and planning to create a character where the hair changes from black to white. I want to make an animated video which shows the change happens from the beginning of the hair, gradually to the end. I took the idea from the Disney animated movie, Tangled, when Rapunzel’s hair glows in a gradual way.Thanks for every help;))

At some point (not right away), I'll be wanting to make a character model which has multicolor hair.  Namely, it will be one color closer to the roots, and another color closer to the tips.  Is there any way to do this in blender?  I would be using Cycles for this.


The story I remember and am trying to find: Humans had expanded out into the galaxy. Another race of aliens saw humans making their way towards their sector of space and feared us. That race was not a warring society and didn't have war ships or war strategies in their culture, only a lot of science. So they developed a bomb that could travel through time and space back to Earth millions of years before humans evolved and destroy the planet, therefore eliminating the threat. The bombs, for whatever reason, had to contain a living creature to make course adjustments and time adjustments and to detonate the bomb at the right time. So the aliens genetically engineered a small creature with one arm, one eye, and no legs and placed it into the bomb to do the work. Then they sent dozens of these bombs back through time and space. The story also tells of the journey the bombs took and what happened when they reached our solar system. The story was part of a sci-fi collection anthology. One of the other stories in the book was called Juggernaut by A. E. van Vogt about an indestructible metal ingot that was put on earth which eventually ended all wars as the metal passed on its properties to any other metal in touched. I recently found this story in a book called A Treasury of Science Fiction, but still no luck finding the alien bombs story.

I'm pretty sure the title was "T".  It's about an alien race at war with humans. They decide to end the human race by destroying Earth before humans evolve. They send some humans through space and back in time to do the job.  I think the humans have single letter names (A, B, C, etc) They have raised/cloned the humans just for the job and to save space in their ships they have only a head, a body and one arm. Most don't make it.   The aliens don't know that there were 2 more planets in the past and they count the planets in from Pluto. One human hits a planet and completely destroys it and T hits a glancing blow and just breaks up his target forming the asteroid belt.


Which one would be better for Question A?   B1 or B2? Are both grammatical?        A: Do you love it that he will resign?     B1: Yes, I love it.   B2: Yes, I love the situation.        Which one would be better for Question C?   D1 or D2? Are both grammatical?        C: Did Rumor have it that he will resign?     D1: Yes, Rumor had it.   D2: Yes, Rumor had the situation.

Q1. Are those 8 sentences grammatical ones? or if not could you tell me? Q2. Why do we use 1 instead of 3?  It seems both are similar but is there any meaning difference or any purpose?   I love it that he will resign. I love it he will resign. I love that he will resign. I love he will resign. Rumor had it that he will resign. Rumor had it he will resign. Rumor had he will resign. Rumor had that he will resign.   With the verb love, for me as second language learner, sentence (1) can be paraphrased as I love the situation(=the fact) that he will resign. While, when it comes to the verb had, the sentence, Rumor had the situation(=the fact) that he will resign., sounds bad.


I wonder how the circuit of a typical 5V phone charger looks like. In the figure given below, I sketched how I imagine it. Using this setup, could I control the current drawn by the phone by selecting different resistors, or would it catch fire?

I have studied that there is a transformer which steps down the ac voltage after then bridge rectifier to convert into ac to dc and then given to filter, this is what I have learnt in books, but when I open a mobile charger I couldn't figure it out how it actually works?


The title says it, where should one ask about the correct Stack Exchange website to ask their question if they aren't sure?  For example, I want to discuss why it is a popular opinion that North-Koreans would eat grass, when it would make much more sense for starving people to eat insects. Or, I want to ask about instant and painless suicide devices that would erase any trace of a human DNA, and current death penalty technology, or I want to ID a painting from a tattoo, etc.  So, where to ask "where to ask"?

If I have a specific question I want to ask about, but I don't know which Stack Exchange site would be on topic for asking that question, where can I ask where to ask that question?  Is there any generic place where we can ask for advice? Is it here?  This is not about a specific question but in general.  For example: "Where should I ask for advice about fishing?", or if I need to know where I should ask "What would be the best fishing rod to fish for salmon?" (regardless of how good/bad these examples are)


Normally there is an SSH client that connects to an SSH server. The client then places commands that are executed on the server. Now, is there a way to do it the other way around? So that the client connects to the server, but the server also connects to the client and is able to execute commands on the client. Is that possible?  The reason I am looking for this is that I have two servers (A and B) in two different networks, both networks connected to the Internet. Server A can be accessed through port forwarding, but server B cannot. Since server A does all the work I'd like server B to connect to server A and just do whatever server A wants it to do.  Are reverse connections like this possible? Or maybe bidirectional SSH connections?  EDIT:  As an example I'd like to do the following. Being on server A and knowing that server B is SSH-connected to me, I'd like to connect to connect to server B and place a command like  echo "This is test content." > /home/myuser/mytestfile`   After that I'd like to find a file   /home/myuser/mytestfile   in server B.

My ISP does not allow me to have a static IP address. As such I am unable to remotely SSH in my home machine. Is there a way I could SSH from my home machine to a server and SSH into the server from my remote laptop and bridge the two connections?  Cheers!


Hello    I have a sample and I want to test if it is drawn from a discrete distribution (Binomal for example), I read that the KS test is more used, but as you know, the KS test can only be used for continious distribution.     I found a paper that solve this issue, the only problem is it's applicable only when the sample size is less then 30 ( and my sample size is greater than 30). Does anyone know how to perform the test? Thank you :)

I have a sample from a discrete distribution as such:   Type:          0   1   2   3   4   5     Occurrences:  88  12  52  43  21   5   My task is to test whether or not a Binomial Distribution (n=5,p) fits this data.   I understand that I'm meant to use hypothesis testing, and that the chi-square test is a staple for this sort of task. I looked at  but I'm still not sure how to set up the test. How do I do this?


I'll be landing at Roissy (Charles de Gaulle) airport in Paris at 9:40 tomorrow (a Saturday) and leaving on another flight from Orly at 13:35 (latest check-in 13:15). That gives about 3.5 hours, including getting off the plane, collecting bags, getting out of the airport, delays, and so on.  What are my options for transferring between airports?  How long do they take and how much do they cost?  Do you think there's enough time to pop out somewhere in the city for a quick coffee and baguette or to sit in a park? Where?

Paris has 3 airports (Orly, Roissy, Beauvais), what are the options to go to or to come from there?  (There is also Vatry (XCR) but there is very few flights and i see the shuttle system is currently off.)


We know that there is a natural isomorphsm between $$V^*\otimes W \text{ and } Hom(V,W)$$ whenever either $V$ or $W$ is finite dimensional. (We also know that there always exists a linear map from  $$V^*\otimes W \rightarrow Hom(V,W)$$ regardless of their dimension.  I am looking for an explicit example why such isomorphism does not exist if both are infinite dimensional. I am not sure how important this fact is, but I am merely asking out of curiosity.

It's well known that $U^*\otimes V\cong L(U,V)$ for finite dimensional spaces. However, why people say that $U^*\otimes V$ is not isomorphic to $L(U,V)$ for infinite dimensional spaces and many books don't say anything related to this?


I have the code:  \documentclass{article}                                                                                \usepackage[utf8]{inputenc}                                                                                \usepackage{pgf-pie}                                                                                \begin{document}                                                                                \begin{tikzpicture}                                                                                \pie[text=,before number=, after number=,color={blue!33.33, blue!33.33, white!33.33}]                                                                                {33.33, 33.33, 33.33}                                                                                \end{tikzpicture}                                                                                \end{document}         which produces the output    How can I hide the numbers (33.33)?

EDIT The accepted answer completely solves my immediate problem, but for more detailed analysis of the underlying issue please refer to answer by cfr. Basically, pstricks and pdfTex don't mix well.  I have a beamer presentation with a lot of pie charts. I use pgf-pie package because it is easy and (mostly) does what I need. I have one particular pie-chart that should have no labels at all. I have tried adding  /tikz/nodes={text opacity=0,overlay}   to the code following advice found here.    \documentclass{standalone} \usepackage{pgf-pie} \begin{document}  \begin{tikzpicture} \pie [explode=0.1, color={blue!70, green!80, red, yellow} ,/tikz /nodes={text opacity=0,overlay}]{10/, 20/, 30/, 40/} \end{tikzpicture} \end{document}   Now, the strange thing is, the code works well in the example above (standalone class). However, it doesn't seem to do anything inside a beamer presentation, i.e. the labels still show. It seems that there is some sort of package conflict. How could I enable this to work in the beamer presentation? I know there are other ways to produce this but pgf-pie is quite handy otherwise.  \documentclass[12pt,compress]{beamer} \usetheme{Warsaw}  \setbeamertemplate{navigation symbols}{}%remove navigation symbols \setbeamercolor{alerted text}{fg=magenta}  %\usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{wasysym} \usepackage{multicol} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{xcolor} %\usepackage{iwona} \usepackage{wrapfig} \input{FactorTree} \usepackage{pstricks} \usetikzlibrary{matrix} \usepackage{tkz-euclide} \usetkzobj[all] \usepackage{xlop} \usepackage{tcolorbox} \usepackage{pgfplots} \usepackage{pgf-pie} \usepackage[makeroom]{cancel} \input{longdiv}


Inspired by today's post in MSE:  my numerical experiments at Mathematica throw up: $$2^{-x}\sum_{k=0}^{\infty} {x \choose k} =1, x\in R^{+},$$ fairly accurately. When $x$ is positive integer it is the well known identity. However for real positive values it is surprising ! Even if $x$ is non-real such that $\Re(x) >0$, it seems to hold fairly accurately. Any comment, Reference of proof is welcome.

Trying to calculate $2^k$ by hand for $k\in[0,1]$, it's tempting to use the Taylor expansion of $x^k$ around $x=1$, to get: $$2^k = 1^k + \frac{k (1)^{k-1}}{1!} + \frac{k(k-1) (1)^{k-2}}{2!} + \ldots =1+k +\frac{k(k-1)}{2!}+\ldots =\sum_{n=0}^\infty\binom{k}{n}$$ Unfortunately, $2$ lies exactly on the the radius of convergence $r = 1$, so in theory this may not converge.   Can we prove this converges to the correct value for all $k$? Numerically it does seem to. What can be said about the rate of convergence? It seems quite slow. Can we bound the convergence?


Yes, we all know that there are many questions asked that met the requirements for closing the question as stated here:   I agreed that some questions are totally "off topic".  But in some very rare cases, even though the question totally fits the requirements for closing or the definition of "off-topic", the question has a very high value as the answers gathered will truly benefit all the developers.  And sometimes, a closed question continues to receive lots of votes, or is highly upvoted already.  The number of votes these questions have already speaks for itself - it is a highly valuable question even if it is off-topic.  Closing a highly upvoted question makes no sense.  So, can we have another option for "voting for exception".  Lets say, maybe at 20 votes or 35 votes.  Example:

I frequently come across a really useful answer on StackOverflow which has been closed because it doesn't match the Q&A format.  Examples include  ,  ,   ,  and there are others.  Where should this information be exchanged if it's not on stackoverflow?  It seems the moderators are often somewhat overzealous...  ---edit  When I say best, I mean they are informative and useful for someone who's looking for an answer to them.  Even if they do become a bit of a discussion, I value other people's opinions on the relative merits of the different JPA frameworks.  I come here looking to choose one and the answer helps me.  So what if it's not a definitive answer?  ---edit  I don't care how popular a question is, nor how interesting it is.  Users are interested in stuff that's useful to them.  Plenty of those were useful (as judged by the upvotes on the answers: 'This answer is useful'), but closed because they didn't have a definitive answer, as far as I can tell.  ---edit  Seems I'm not the first person to think this: there are various similar questions to mine like this one:   In it the user lists lots of other useful questions which have been closed:                    So isn't there a place on stackoverflow for these questions?  A discussion section, maybe?


Some Citations in my file are undefined, even tough they are within my .bib-file. I can't find any error.   Here my logfile:      \documentclass[a4paper,11pt]{article} \usepackage[left=2.5cm,right=3cm,top=2.5cm,bottom=2.5cm]{geometry} \usepackage[onehalfspacing]{setspace}  \usepackage[backend=bibtex, style=authoryear-ibid, natbib=true,doi=false,isbn=false,url=false]{biblatex} \addbibresource{literatur.bib}   \begin{document}   This citation works perfect: \citep{Arthur.}  (Most of my citation work)  This citation does not work: \citep{.Foucault 1980}    \end{document}   And here is part of my .bib-file:  @book{.Foucault 1980,  author = {Foucault, Michel},  year = {1980},  title = {Power/knowledge: Selected interviews and other writings 1972 - 1977},  keywords = {Politische Philosophie},  address = {New York},  publisher = {{Vintage Books}},  isbn = {039473954X} }  @article{Arthur.,  author = {Arthur, Paige},  year = {2009},  title = {How {\textquotedbl}Transition{\textquotedbl} Reshaped Human Rights: A Conceptual History of Transitional Justice},  pages = {321--367},  volume = {2009},  number = {31 (2)},  journal = {Human Rights Quarterly} }   I know this one , who states that the user should compile properly:  latex bibtex latex latex  Clearly, this is not my problem, as some of the citations in my .bib-file work, while others don't. I also visited this one: , who couldn't solve my problem either.   Any suggestions? I really can't see the problem. I have around 80 citations, and from them about 15 just don't work.  Thanks for any help

Can I have a bibtex entry with space in its key reference? Like below:  @article{Author 2000,   title={Boring book},   author={Boring Guy},   journal={Boring Subject},   year={2000},   publisher={Bororing Pub.} }   So my tex source can look like this and be recognized:  ...the subject was well studied in \cite{Author 2000}.   Currently, if I run bibtex in this way I get an error:  White space in argument---line 67 of file file.aux  : \citation{Author  :                2000}   I understand what is the problem in this error, and I realise I can fix it going to my entries and changing it to an entry without the spacing. However, I was wondering if there was another solution.  Can I cite references containing spacing? Like \cite{Author 2000}


Looking for an old sci-fi short story where the side with the most advanced technology loses because of unexpected side effects of their high tech.  The story is told from the perspective of the losing side who claim that they lost because they kept inventing superior technology. For example, they create better FTL ships but after they are in service for a while they warp and become useless.

I am looking for help to point me out at a very old novel (likely from the '60s) about two empires at interstellar war. When it comes to starships, one is technologically very advanced, and the other has very low and inefficient technology.  The highly advanced empire has apparently strong chances to win the war, in particular considering a new technology they were developing. I remember the technology to work like this: consider the space as a flat surface, and on this surface, a disk around the spaceship. When the technology was turned on, this disk was stretched out, as made of rubber, so that it produced a cone, with the tip being the spaceship. The spaceship was therefore teleported 10 parsec away (if I remember correctly), but retained all the connections to the original position. If the spaceship moved, the cone moved as well. This allowed to move in position among enemy ships completely unnoticed, by stretching while afar, then moving in the proper position 10 parsecs away, then destretching.  Despite this technology, the empire lost the war because of delays. It's a perfect example of how having a disruptive technology does not guarantee to win against the competitors.  I am trying to find out the author and name of this novel, hopefully with the date of publication and in which journal/magazine.


The electrons in an atom have a certain configuration and we can predict in which space the electrons can be present of a certain energy level (s-orbitals have a sphere-shape,....).  Recently I read that there are  for nuclei: special configurations of the nuclei that makes them more stable (the magic numbers are 2, 8, 20, 28, 34, 50, 82, and 126) - so there are definitely  in a nucleus. I was wondering : do the neutrons and protons form certain geometric structures in these sub-shells of the nucleus?  Or are they all stacked closely on each other?

I was wondering this: suppose you have two oxygen atoms. They will both have 8 protons and 8 neutrons in the nucleus (at least if they are the most common isotope). Now, will all those particles be arranged in the same way in both atoms? If they are, why would that be, and if not, does that affect the element's properties in any way?  But then I also thought that maybe the uncertainty principle doesn't let us even ask this question. Maybe you can't tell the particles' positions so accurately, so all you can say is that you have 8 protons and 8 neutrons all together in a small space.  So, which one is it? Can we even tell where all the particles are, and if we can, does it matter exactly how they are arranged?


I have the following problem to solve      If $a_1, a_2, ... , a_n$ are disitinct integers. Show that    ${(x - a_1)}^2{(x - a_2)}^2 \; \cdots \; {(x - a_n)}^2 + 1$ is irreducible   over $\mathbb{Z}$.   This is my attempt at the proof:  We know as a consequence of the Fundamental Theorem of Algebra that any polynomial $p(x)$ can be written as $p(x) = \beta(x - \alpha_1)(x - \alpha_2)\cdots (x - \alpha_k)$ where $\alpha_i \in \mathbb{C}$ are zeros of $p(x)$.    So if $p(x) = {(x - a_1)}^2{(x - a_2)}^2 \; \cdots \; {(x - a_n)}^2 + 1$ be written as $p(x) = \beta(x - \alpha_1)(x - \alpha_2)\cdots (x - \alpha_k)$ then by the remainder theorem we need $p(\alpha_i) = 0$ for $1 \le i \le k$. So $p(\alpha_i) = {(\alpha_i - a_1)}^2{(\alpha_i - a_2)}^2 \; \cdots \; {(\alpha_i - a_n)}^2 + 1$.  Now two cases arise:    If $\alpha_i \in \mathbb{R}$ then obviously for $j$, $1 \le j \le n$ we have ${(\alpha_i - a_j)}^2 \ge 0$ so overall $p(\alpha_i) \ge 1$. Thus $p(x)$ is irreducible.  If $\alpha \in \mathbb{C} \setminus \mathbb{R}$.  I don't know how to proceed for this case. I thought that both the imaginary and real parts should be equal to $0$ but I don't know how to prove it. Can anyone help me with this part? .   Define $z_k = {(\alpha - a_k)}^2 = |z_k|e^{i \theta_k}$. Assume $\alpha$ is a complex root of $p(x)$ then $p(\alpha) = 0$, i.e,   $$ z_1z_2 \; \cdots \; z_n + 1 =0 $$  Now applying the complex conjugate operator on both sides we get   $$ \bar{z_1} \bar{z_2} \; \cdots \; \bar{z_n} + 1 = 0$$  Now equating these two equations and noting that $\bar{z_k} = |z_k|e^{-i \theta_k}$ we get   $$z_1z_2 \; \cdots \; z_n = \bar{z_1} \bar{z_2} \; \cdots \; \bar{z_n}$$ $$ \implies |z_1||z_2|...|z_n|e^{i(\theta _1 + \theta _2 + \dots + \theta_n)} = |z_1||z_2|...|z_n|e^{-i(\theta _1 + \theta _2 + \dots + \theta_n)}$$  $$ \implies e^{2i(\theta _1 + \theta _2 + \dots + \theta_n)} = 1$$ $$ \implies \theta _1 + \theta _2 + \dots + \theta_n = 0$$  Now consider $$p(\alpha) = z_1z_2 \; \cdots \; z_n + 1 = |z_1||z_2|...|z_n|e^{i(\theta _1 + \theta _2 + \dots + \theta_n)} = |z_1||z_2|...|z_n|e^{i(0)} = |z_1||z_2|...|z_n|$$  But $|z_1||z_2|...|z_n| > 0$ so overall we get $p(\alpha) > 1$ and this contradicts our assumption and our proof is complete.   I am new to solving these types of problems, so I would like to know whether my proof is correct.   P.S I had seen a  to this. But in that, the solution uses Gauss's lemma which I haven't studied yet and presumably in my book this problem is meant to be solved without using Gauss's lemma.

Suppose that $a_1,a_2, \cdots, a_n$ are $n$ different integers. Then $[(x-a_1)(x-a_2) \cdots (x-a_n)]^2 +1$ is irreducible over $\mathbb Q$.   I've no idea why it is true. Thanks very much.


Some text editors (emacs, vim, etc) have an "autoindent" feature, where you can select the entire code and indent it perfectly (e.g. by pressing Tab for emacs, or = for vim).  Since there is an abundance of badly formatted code in SO, would it be possible to have a feature where you select the entire code and press a button to auto-indent it?  This wouldn't work for whitespace-sensitive languages like Python, but for languages that are more free-form (C, Java, etc), this would be pretty convenient.

Often I see code blocks pasted into questions with no formatting, or terrible formatting.  It's sometimes quite a chore to fix these: you have to either manually space out each line, or paste the code into an IDE, format it there, and paste it back.  Could we have a button/function where you could highlight a code block, and it would turn this:  foreach (var i in stuff) { if (i==1) { Whatever(); } }   into this:  foreach (var i in stuff) {   if (i==1) {     Whatever();   } }   I realise the function would have to work differently based on the language in the code block. Perhaps  it could use the same rules as the prettify code.  Also, it wouldn't be a big deal if it gets the language wrong and breaks the code, since you can always just ctrl+z.


Given function $$g(u) = (Au)^T(Au)$$ where $u \in \mathbb{R}^{n}$ and $A$ is a matrix of dimension $n \times n$, find the gradient $\nabla g(u)$.   I tried to expand everything and got that  $$\frac{\partial g}{\partial u_k} = 2\sum_{i=1}^{n}(A_{i1}u_1+A_{i2}u_2+\cdots +A_{in}u_n)A_{ik}$$  but I am not sure how to convert this expression into a matrix representation of the gradient of $g$. Any hints will be much appreciated.

It's stated that the gradient of:  $$\frac{1}{2}x^TAx - b^Tx +c$$  is   $$\frac{1}{2}A^Tx + \frac{1}{2}Ax - b$$  How do you grind out this equation? Or specifically, how do you get from $x^TAx$ to $A^Tx + Ax$?


When I go to a site I haven't joined, I can see my personal Stack Exchange SiteSwitcher™, inbox, and reputation dropdown. However, I can't see my (or any, for that matter) Winter Bash dropdown:    Could it be put there?

If you click on the Stack Exchange menu or the inbox menu or the achievements/reputation menu, you can then move the mouse between those three menus without any additional clicks.  This behaviour does not appear to be applying to the Winterbash menu (or the "help" menu for that matter, but that's on the other side of the bar).  Could we get this sorted, since otherwise the behaviour is a little inconsistent, with extra clicking on a menu bar where in all other circumstances clicking would close the menu!


On Windows I have a DLL that we made ourselves which among other loads another DLL. The problem is that when using the DLL in Matlab with loadlibrary, calllib and unloadlibrary everything is fine.   In Python I tried to use ctypes and cffi, both with same results. I can load the DLL and call functions, but I cannot exit again. Python hangs, and I have to end the task from the Task Manager.  With ctypes I have tried to call   import _ctypes _ctypes.FreeLibrary(lib._handle)   as suggested here  with no effect. Further, I tried to call explicit function to unload the other DLL.  Can anyone give a hint or solution to why it will not unload/hangs?

I'm using ctypes to load a DLL in Python.  This works great.  Now we'd like to be able to reload that DLL at runtime.    The straightforward approach would seem to be: 1. Unload DLL 2. Load DLL  Unfortunately I'm not sure what the correct way to unload the DLL is.  _ctypes.FreeLibrary is available, but private.  Is there some other way to unload the DLL?


$ cat Makefile clean:     find . -print0 | grep -z pattern | tee >\(tr '\0' '\n' > /dev/tty\) | xargs -0 rm $ make clean /bin/sh: /dev/tty): Permission denied   Previous question:

I often find  syntax very helpful, e.g. process substitution like in diff <(sort file1) <(sort file2).  Is it possible to use such Bash commands in a Makefile? I'm thinking of something like this:  file-differences:     diff <(sort file1) <(sort file2) > $@   In my GNU Make 3.80 this will give an error since it uses the shell instead of bash to execute the commands.


I have an error while running my c++ code using mingw in windows 10. The error is something like this : the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library ----a.exe  I have no idea how to resolve that. I tried to google it but i could not find any solution.  Edit 1: I noticed that programs in a particular folder are not working. For other folders it is working fine.  Edit 2: I reinstalled MingW. But I am getting the error whenever i am using string data type in c++.

I've been getting this undefined symbol building with this command line:  $ gcc test.cpp Undefined symbols:   "___gxx_personality_v0", referenced from:   etc...   test.cpp is simple and should build fine.  What is the deal?


For many years i have been wondering about this. When a car stars moving the wheels seem to work normally but as the car speeds up, the wheels seem to roll backwards. Of course that does not happen in all cars, so i am guessing it depends from the type of the rims, right?  So,  why do car wheels seem to roll backwards after some specific speed?

When a car is about to stop, the speed of its wheel reduces. Why do we see or feel that the wheel of the car is moving in the opposite direction?  This can also be observed of a fan at home.  So why is it?


I have read the following posts which didn't answered my questions: -  -  - and much more...  The server setup was this: - the Ubuntu server was after a router (Cisco EA6500) and didn't had port forward (uPNP is enabled). - the stupidest idea was to have a user called user with password user.  Today I entered on the php webeditor which connects by ssh and didn't accepted the password. I found out that the server might have been hacked.  I found the followings: - all the server files timestamps are changed to my last login date (today) - there was one cronjob /dev/shm/-   /.ICE-UNIX/update >/dev/null 2>&1  - there was an error on ubuntu start-up that said "error variable ROOT isn't set"  What I did: - recover password by recovery console - setting up a  which got  to get into ssh.    Questions: - How do i know what has been changed? - How did they get in if there was no ssh port exposure?     Later Edit:   They have left the logs intact and I found out that  and changed the   password. There were a lot of ssh login tries over the past weeks. I   have reinstalled the system, moved the port, installed a firewall and   I'm inspectting the router. It definitely has security holes. Thank   you all!

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


I'm wondering if there is a clear proof of "a reversible process is always quasi-static". I really don't know whether this generally accepted idea is based on the strict mathematical proof or an intuition from experiences.  Could you give me some comments about this?  It looked  gives the answers but I think this answer is still statements rather than the proof.

Do we have any proof that  are always  or is it just a fact that hasn't been violated  till date? If there is a proof then please provide a link.


Use a random number function to randomly generate 10 integers between 0 and 99 with 0 and 99 included

I need to generate random numbers within a specified interval, [max;min].  Also, the random numbers should be uniformly distributed over the interval, not located to a particular point.  Currenly I am generating as:  for(int i=0; i<6; i++) {     DWORD random = rand()%(max-min+1) + min; }   From my tests, random numbers are generated around one point only.  Example min = 3604607; max = 7654607;   Random numbers generated:  3631594 3609293 3630000 3628441 3636376 3621404   From answers below: OK, RAND_MAX is 32767. I am on C++ Windows platform. Is there any other method to generate random numbers with a uniform distribution?


Pretty common issue, I found many answers and could not figure it out (new linux user here and most things assume some background). Wifi worked while I was installing the OS. I opted for the LTS 20.04.2.0 I have Ethernet cable and connection is established. I ran 'sudo apt-get install --reinstall bcmwl-kernel-source' and got the following: Reading package lists... Done Building dependency tree Reading state information... Done Reinstallation of bcmwl-kernel-source is not possible, it cannot be downloaded. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I tried 'sudo apt install dkms' and got this: Reading package lists... Done Building dependency tree Reading state information... Done dkms is already the newest version (2.8.1-5ubuntu1). dkms set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I also checked if the adapter is soft or hard switched off, it wasn't. this must be a driver issue. I pretty much just want to download the needed package and install it, but I have no clue how to know which one Final note: I did notice that the .iso file had amd64 at the end and I am using an intel processor. Though I think that this is not the problem since wifi worked perfectly while installing the OS from a USB

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I am currently preparing the presentation for my internship evaluation. As a French student evaluated by researchers that may or may not speak French, I would like to maintain two versions of my presentation, in French and in English.  I could just create two separate files but I am pretty sure that maintaining both of them would be complicated and that I would most likely forget to port corrections from any version to the other one as well. Thus, my preferred option would be to keep them in the same file (files, in fact: I have taken the habit of having separate files for each section of my documents and \include them all in at the end).  Here is a MWE showing how I managed to do it :  \documentclass{beamer}   \usepackage[T1]{fontenc} \usepackage[english, french]{babel} \usepackage{etoolbox} \usepackage{blindtext}  %\includeonlylecture{english} %\includeonlylecture{french}  \newcommand{\switch}[1]{%Use with "french" or "english" to switch between languages %Security check \ifstrequal{#1}{french}% {}% {\ifstrequal{#1}{english}%     {}%     {\PackageError{switch}{Invalid input}{Received "#1" instead of "french" or "english"}}% } \lecture{#1}{#1} \selectlanguage{#1} \ifstrequal{#1}{french}%     {%     \title{French title}     }%     {\ifstrequal{#1}{english}%         {%         \title{English title}         }%         {}%     } }  \begin{document}  \switch{english} \begin{frame} \titlepage \end{frame}  \switch{french} \begin{frame} \titlepage \end{frame}  \switch{english} \begin{frame}{English frame} \blindtext \end{frame}  \switch{french} \begin{frame}{French frame} \blindtext \end{frame}  \end{document}   By using \switch with english or french and selecting the desired output language with \includeonlylecture, I managed to only output the corresponding half of the document.  I felt the need to redefine the title at each switch because the theme I use, JuanLesPins, shows the last title specified at the top of each slide.  My question is: is there a cleaner way to do what I'm trying to do, i.e. preparing two consecutive versions of each slide in two different languages and only output one of them?

I have a beamer presentation of which I have two language versions (german and english), more languages are upcoming. I keep both versions in one source and select the one to typeset with the comment package. But this gives me only a presentation with one language.   Can I create a presentation with multiple languages that allows me to switch between them on the fly (either per presentation or per slide)?


I am trying to make a registration form in Java that accepts a string in the form of: ok@ok.ok, right now, I have -   (email.matches("[^a-zA-Z0-9]+")   which I need it to also accept @, _,-,. symbols but am unsure how to add it into the regex shown earlier.   As well as this I am aware that there is a way to separate to accept an amount of characters, and then read a specific symbol, (in my case it would be "@" and "." for the email) but am unable to implement it, something along the lines of   (email.matches("[^a-zA-Z0-9]{1-99}[1][@][^a-zA-Z0-9]{1-99}[1][.][^a-zA-Z0-9]+")   Thanks

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


Why does this code  int[] a = {     0,     1,     1_0,     0_1,     1_0_0,     0_1_0,     0_0_1 };  System.out.println(Arrays.toString(a));   yield this output [0, 1, 10, 1, 100, 8, 1] ?  Why is there an 8 in the output? Do underscores add some secret functionality?

This prints 83  System.out.println(0123)   However this prints 123  System.out.println(123)   Why does it work that way?


I need to parse an html so any one tell me how to do this in objective-c?

Can anyone recommend a C or Objective-C library for HTML parsing? It needs to handle messy HTML code that won't quite validate.  Does such a library exist, or am I better off just trying to use regular expressions?


I'm trying to do a regular expression match with special characters in it, such as "/", ".", and "-".  This is the string:  17440 root      20   0 3645m 452m  12m S  152 11.8 347:32.04 test/1/02.3_4-6    But the following code does not seem to match at the end with :  m=re.search(r"(?P<pid>\d+) +(?P<user>\w+) +(?P<pr>[\w-]+) +(?P<ni>[\w-]+) +(?P<virt>\w+) +(?P<res>\w+) +(?P<shr>\w+) +(?P<st>\w) +(?P<cpu>\d+) +(?P<mem>\d.+) +(?P<time>[0-9:.]+) +(?P<proc_name>[\w-/.]+)", line)   Do I need backslash before the special characters, such as "/" and "."?  Thanks!

I want to use input from a user as a regex pattern for a search over some text.  It works, but how I can handle cases where user puts characters that have meaning in regex? For example, the user wants to search for Word (s): regex engine will take the (s) as a group.  I want it to treat it like a string "(s)" .  I can run replace on user input and replace the ( with \( and the ) with \) but the problem is I will need to do replace for every possible regex symbol. Do you know some better way ?


I found this line in a sql code:  @../../sql_scripts/create_tables.sql   What does it do? I know that @@file.sql means that file.sql is run and @ could be used when we want to supply parameter values later, but here I have @ followed by a filename. I know that there is a similar question but it covers only @ in queries.

I was browsing through the questions and noticed this:  SELECT prodid, issue FROM Sales  WHERE custid = @custid  AND datesold = SELECT MAX(datesold)               FROM Sales s               WHERE s.prodid = Sales.prodid                   AND s.issue = Sales.issue                   AND s.custid = @custid   I was wondering what the "@" does in front of custID?  Is it just a way of referencing the custID from the table being selected?


I wanted to install Ubuntu alongside Windows 10 as dual boot. But after installing Ubuntu in grub menu, I can't find Windows 10 and I don't have any access on my hard drive even on Ubuntu. I can not unmount it. I have tried many commands on terminal but I couldn't fix Windows and I have not access to anything on my laptop. And also for installing some apps via terminal it says can't locate this app.

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


What does this symbol (the $\infty$-like symbol but without the right arc) mean? (Marked by red arrow below)  What does it say about the prior distribution?

I am a computer scientist, and one of my professors today used the symbol $\propto$. I tried to search that using google, but it returns no results, and I do not even know its name.  So, I would like to ask, what does the operator $\propto$ mean? What is its name, and how is it used?


I am trying to call a custom form in a block. The form is written in my custom module. I tried different ways to call the form, but not getting the form.   Here is the syntax, I last tried.   $form = drupal_get_form('my_custom_form'); print drupal_render($form);  //my_custom_form is my form_id   (or)  drupal_render(drupal_get_form('my_custom_form'));   Here is the link I found a similar question, but didn't get the correct solution for my question.

I'm using drupal_get_form('event_signup_form') to embed my custom form inside a block. The form is being rendered as intended, but submitting the form triggers nothing.  The form function itself is called event_signup_form($form, &$form_state) and the submit function is called event_signup_form_submit($form, &$form_state) but it's not being called.  I am using  to show the form:  function event_block_view($delta = '') { $blocks = array(); if ($delta ...) { $blocks['content'] = drupal_render(drupal_get_form('event_signup_form')); } }   I managed to get this working - here is how (stub):  function hook_block_view($delta = '') { $blocks['content'] = drupal_render(drupal_get_form('event_signup_form')); }  function event_signup_form() { // Register form submit handler, same goes for validation handler $form['#submit'][] = 'event_signup_form_submit';  return $form; }  function event_signup_form_submit($form, &$form_state) { // This is now triggered }


What I'm trying to say is, I have this wordpress site called www.mysite.com which is a one pager site that only contains static pages and I want to install a new wordpress installation called shop and use it as an ecommerce page. So it will be called www.mysite.com/shop and shop will be a completely different installation. Is this possible and How am I going to do this?  and on the nav bar I'll have something like, Home - About Us - Contact - Shop.  and Shop will automatically direct to the new installation?

I have a website that is powered by WordPress, e.g. example.com. I would like to install a separate WordPress installation with a separate database, themes, etc in a subdirectory on my website though, for example on example.com/blog.   Will this cause problems with displaying both installations properly? For example if I try to go to example.com/blog or example.com/blog/post will this cause installation A to throw up a 401 error since it didn't find a page within the original example.com WP installation?


Can I sell properties to a player while I have to pay another player?  I was wondering if I land on a player's building and I have to pay him or her but I don't have money, however I have a property that another player would like to buy. Can I sell it to this player?

I play with some serious board gamers, but we have neglected Monopoly for a number of years, so our knowledge is mostly based on high school & house rules.  We played last week and enjoyed it, but there was a piece of contention. There are times where we decide that we don't like one of our friends for some reason and don't want them to win (i.e. we landed on their property a bunch, or they refused to make a deal, etc.).  So when player 1 has some property and player 2 lands on it and cannot pay the rent their assets (houses/hotels get liquidated), their property gets transferred to the other player. (Please correct me if I'm wrong.) In this case, though, player 3 "traded" the amount of money owing for a piece of property (way overpaid). In this case they did it so that player 1 would not get the properties. Player 2 had no chance of winning the game (all properties mortgaged, no cash to speak of and many of the other properties with 3+ houses/hotels on them).  To summarize: Is it OK for a third player to purchase/trade property or cash to/from a player who is about to lose?


I've started learning Java and I was wondering the difference between:   public static void main (String [] args) {}    and   public static void main (String args[]) {}   As you can see they look almost exactly the same but my question here is, should the '[]' be before the args or after the args? I have a Java beginners guide and it shows me examples with the '[]' after the args. I would be grateful if someone could tell me the correct way.  Thanks!.

I have recently been thinking about the difference between the two ways of defining an array:   int[] array int array[]   Is there a difference?


I want to install Ubuntu 17.10 32-bit on my ASUS laptop, but when I tried to download it I got these two screens. Note that these screenshots were taken on my Windows 10 desktop. Is there any other way to install Ubuntu 17.10 32-bit?   Edit: I'm sorry everyone I should've explained myself clearer last night. The thing was, I've read the news about no 32-bit support on omgubuntu site, but it said there that you can still download it. Then I was looking for something familiar I skimmed 64-bit variants for obvious reasons and server because it was vague to me. So I checked to netboot, I saw a tree file and I was like - that's what I need, apparently I just need to download all of those files to the usb and that's it but some of them were like blanks I mean I clicked them but they weren't downloading. So I checked the installation guide - but it lead to 404 mistake so my question was how to make that netboot? Also I'm using Windows 10 on my desktop to download 17.10 to burn USB-stick that I can use to my old laptop on which it ran Windows 7 poorly so I thought of trying Ubuntu Gnome 17.10 because it's new and I wondered if it would run smoothly or not since the change of Unity. I get it that the lightest distros like Xubuntu will be more effective but I kind of dig it to the Ubuntu design. So that's it probably.   Ubuntu 17.10 (Artful Aardvark) Netboot   404 Not Found

The new 17.10 only has 64 bit ISOs. However 32 bit is still supported, there just are no live ISOs for it.  I have a 32 bit machine with WIFI, and I need to install from a USB disk. I tried the "mini.iso" but it doesn't have WIFI support.  What options do I have?  (PS I don't want another distro, and I can't use ethernet for installation, must be WIFI).


Is it the airport security at the country you flying from? I highly doubt it because I have been to countries where it's so corrupted that you buy the airport officials for the price of a dinner.   Is it the aircrew' responsibility? Again I don't think they care much - unless there is severe punishments - in corrupted third world countries.   I have been personally in a situation when an officer at a certain airport insisted on examining my British passport before he allowed me to move to the gate because I refused to slip him a $100 note. I was travelling to the UK yet I have another passport which is valid and it is issued by the country I was flying from, which means he had no reason whatsoever - nor I think he cared - to examine my British passport to check if it's valid.  Edit to summarize it, I want to expose as little as possible of information about my dual nationality. For that I need to know whom I am obligated to show my passport(s)

My daughter bought a ticket for a flight with a layover in Emirates (from Dallas, Texas to India). She had a stop of 48 hours in Dubai. When she was checking in in Dubai for Delhi, she was informed that her visa for India has expired in 2012. Did Emirates not have an obligation to check the visa for India before selling a ticket?


Running df -h returns:  Filesystem      Size  Used Avail Use% Mounted on /dev/sda1       3.9G  3.7G  1.8M 100% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev            2.0G  4.0K  2.0G   1% /dev tmpfs           396M  880K  395M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G   76K  2.0G   1% /run/shm none            100M   48K  100M   1% /run/user   For some reason Ubuntu says I only have 4GB hard drive space, but in VirtualBox, under Storage > Controller: SATA it says I have Ubuntu.vdi (Normal, 11.72 GB).  I've tried running resize2fs as well, and it returns:  sudo resize2fs /dev/sda1 resize2fs 1.42.9 (4-Feb-2014) The filesystem is already 1048320 blocks long.  Nothing to do!   Running fdisk returns:  sudo fdisk -l  Disk /dev/sda: 12.6 GB, 12582912000 bytes 255 heads, 63 sectors/track, 1529 cylinders, total 24576000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000ac43a     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048     8388607     4193280   83  Linux /dev/sda2         8390654    16775167     4192257    5  Extended /dev/sda5         8390656    16775167     4192256   82  Linux swap / Solaris   How do I increase disk space of my VM?

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.  Is there an easy way to increase it to, say, 20 GB?  I can't see any obvious option in VirtualBox settings.    The suggestion below gives this error  wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000 VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp     Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in, was successful.  But now I can't boot the virtual machine, I get this worrying screen:    By the way, it says FATAL: Could not read from the boot medium!  System halted.    The vdi must be reattached to the VM after VBoxManage command.  Further, the partition will need to be resized from WITHIN windows, because you will have this empty space:    I was able to resize the partition easily using a bit of freeware called .


The profile pictures on the  have always looked awfully blurry. why is that?  I'm not sure if it's a bug or intentionally done  As  :     They're 16 x 16 pixel images, shown at 30 x 30 px   That's why it's blurred, so, why are we using 16x16 images? :/  Some Examples:

Noticed in my  that the avatars of the Top Network Askers are blurry.  Quick check showed it's because SE is requesting the 16x16 thumbnail, while having 30x30 size of the image itself, which cause the image to stretch.  Changing the requested image to 32x32 makes the avatars more clear, e.g.  vs   Live demo. Nick looks like this at the moment:        Changing to  32x32 will make it much better:


When I convert a PDF created in MiKTeX to plain text, all diacritics are at the wrong place. I need to send my thesis to online antiplagiator checking page.  Example:     pr´ce a diskusia mˆˇu tvorit aj jednu y y y a oz samostatn´ ˇast a spoloˇne   How can I fix it?  Ok, here is some working example:  \documentclass[12pt, oneside]{book} \usepackage[T1]{fontenc} % <---- Like this? \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[slovak]{babel} \linespread{1.2}  \begin{document}      ľščťžýáíéäúôň %these are some misbehave characters  \end{document}

One frequent aspect of pdflatex output that could be improved is to what extent one can select text output from the generated pdf-file and copy-and-paste it. This is essentially an issue of having the right output encoding. There are at least two important aspects to this:   In the ideal case, Unicode would be the output encoding. Ligature glyphs (such as ﬁ) are ideally de-ligated in the output (here: "fi").   It seems that output encodings are specified through the fontenc package. What is the range of possible output encodings, and most importantly: Is there a way to specify a Unicode output encoding and one that deals with ligatures in the intended way?  (Note: It is important to distinguish output from input encodings. How to use different input encodings in LaTeX has been documented widely. My understanding is that this is best handled by the inputenx package, as it supersedes the inputenc package.)    Quick guide to the solutions: The information in the answers and answer threads is a bit distributed, so here the short summary: one approach is to use \input glyphtounicode together with \pdfgentounicode=1; the other approach is to use cmap/mmap.  Addendum: Sometimes one will need to load the package accsupp and enclose one's macro definition in \BeginAccSupp{method=hex,unicode,ActualText=<codepoint>}[...]\EndAccSupp{} to generate a specific code point. See the caveat about non-BMP code points  and the fix (starting from accsupp version v0.4, 2012/11/18) , which provides the new unichar package option.


I started playing Candybox 2 and I was really getting into it, it was hard to make things out but I went along with it, then I saw these pictures where the lines where perfectly matched and easy to see detail and I think my view is messed up some how...  What others seem to see:   What I see:   I really wanna play this game, but it is far too hard to see anything...

Nothing looks right in the ASCII art.  It looks wrong and nothing is proportional, how do I fix this? I have tried fiddling with my font size, but nothing still looks right!


Was the ‑e at the end of bye deliberately added in order to distinguish it from the word by?  Did they do that so that that way, even though the two words sound the same, they look different when written and you’d be able to tell which is which when you read them?   Is that kind of thing something that English has done in the past, changed their spellings so that words that sounds alike are written differently?

I've heard that goodbye comes from God be with you.  Is that true?  If so how did it become good?  Did goodbye always have the same meaning it has now?