In $(\mathbb{R},<)$ $D_{1}:=\{(x,y)\in\mathbb{R}\times\mathbb{R}|\,x<y\}  , D_{2}:=\{(x,y)\in\mathbb{R}\times\mathbb{R}|\,x=y\}  , D_{3}:=\{(x,y)\in\mathbb{R}\times\mathbb{R}|\,y<x\}   D_{4}:=\{(x,y)\in\mathbb{R}\times\mathbb{R}|\,x\neq y\},   D_{5}:=\{(x,y)\in\mathbb{R}\times\mathbb{R}|\,x\leq y\}  , D_{6}:=\{(x,y)\in\mathbb{R}\times\mathbb{R}|\,y\leq x\}  , D_{7}=\mathbb{R}\times\mathbb{R}$  , and $D_{8}:=\emptyset $  I want to Show none of else is definable in $(\mathbb R,<)$.  Using Hint:   . Using if h is an automorphism, then it preserves setwise,i.e. h[D]=D.   And hint also says, first check that if D   is definable in $\mathbb{R}\times\mathbb{R}$  , then for i=1,2,3  . $D\cap D_{i}\neq\emptyset$   iff $D_{i}\subseteq D$  And left hand side is done. The problem is r.h.s.   For doing $\Rightarrow $, I need an automorphism $h$ which preserves <  and for any $(x,y) \in D_i$, and for (a,b) in $D_i\cap D$,  $ (h(a),h(b))=(x,y)$ so that $D_i\subseteq D$. But I couldn't find such automorphism.

The problem says:  List all the definable subsets of $\mathbb R^2$ in ($\mathbb R$,<) with formulas.  And I found $x<y$, $y<x$ and $x=y$  are desired one. But, I want to say that any subset which could made up by them is also definable. For example, less than or equal to is also desired one, but I want to say that not just it is definable but it is definable since it is made by $x<y$, $y<x$ and $x=y$. I intuitively think that there're many definable sets like $\leq $ above. So, my question is that:   How can I express all of such definable sets by $x<y$, $y<x$ and $x=y$?


In rendered view(left) displays like how it should, however when rendered the reflection is clipped at the bottom(right). THe plane has a principled bsdf with 0 roughness and screen space refraction turned off. Screen space reflections are of course turned on, half res trace is turned off. I tried reducing edge fading to 0 but it didn't change anything. Anyone know how to fix this?

I started to work with EEVEE short time ago and I was amazed by the capabilities of this engine. However, I noticed something strange when I was rendering some tests. Some objects/reflections/shadows dissapear when they're off canvas. I imagine that maybe this is for save memory data, but it can be not suitable to some projects. To make my point graphical, I made a simple scene with simple objects. The main object is the sphere with a mirror-like shader. Out of focus there are different objects with different shaders. A yellow cone, a blue cylinder and a white cube light. But surprisingly, those objects dissapear when the composition is rendered. See the rendered animation below:  Notice that the blue cylinder is not even showing at all in the final render. And the blooming effect from the light cube also dies. I would like to improve this bahaviour and render the objects that are still out of canvas using EEVEE. Do I missing something like memory configuration or reflection/shadow tweaks? Is this caused by the EEVEE engine or by my GPU config (GTX1060)? Thank you in advance!


Would you please explain the difference between the following?     The average American city requires a prodigious amount of fish daily.     And:     An average American city requires a prodigious amount of fish daily.

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


For example: Read the Bible. I'm not talking about a specific Bible. Also reading a bible would mean any bible. Which is not what I wanna say Why can't we just skip the article and say. "Read bible"

I've been curious about this for a while.  Generally, one uses "the" if they mean a specific object ("The copy of Lord of the Rings I bought yesterday") instead of any object that fits a description ("I have a copy of Lord of the Rings").  However I've seen "the" used in some cases where the phrase doesn't refer to a specific object. I've noticed it mostly being about technology, such as "This game requires the Classic Controller" (seen on some Wii Virtual Console games). While saying "This game requires a Classic Controller" seems to be correct as well, using "the" doesn't feel wrong either.  The controller's page on Wikipedia also uses "the":   What is the rule that allows the use of "the" in this context?  I presume it has something to do with "Classic Controller" being a proper noun.


What means apt-get install -f  I've already checked install --help But there is no info about -f there.

I know that the -f means --fix-broken from the manual and that it attempts to fix problems with the packages, but what exactly does? How it decides how to fix the packages or if they need fixing and the method of fixing? And why sometimes it fails?


What is the condition for $Var(\sqrt{n}(\hat\theta-\theta))\to V$ as $n\to \infty$, where $V$ is the asymptotic variance of $\sqrt{n}(\hat\theta-\theta)$. That is $\sqrt{n}(\hat\theta-\theta))\to^D N(0,V)$.  I ask this since in general convergence in distribution does not imply convergence in moments.

From Casella's Statistical Inference:     Definition 10.1.7 For an estimator $T_n$, if $\lim_{n\to \infty} k_n Var T_n = \tau^2 < \infty$, where $\{k_n\}$ is a sequence of   constants, then $\tau^2$ is called the limiting variance or   limit of the variances of $T_n$.      Definition 10.1.9 For an estimator $T_n$, suppose that $k_n(T_n - \tau(\theta)) \to n(0, \sigma^2)$ in distribution. The parameter   $\sigma^2$ is called the asymptotic variance or variance of   the limit distribution of $T_n$.    I was wondering if both definitions depend on the choice of the sequence $k_n$, because I suspect for some choice of the sequence $k_n$, the convergence may fail, while for some other choice of the sequence $k_n$, the convergence may succeed. Then are the two definitions not well defined, because aren't they supposed to be not dependent on the choice of the sequence $k_n$?  For example, in , $\frac{1}{s_n} \sum_{i=1}^{n} (X_i - \mu_i) \ \xrightarrow{d}\ \mathcal{N}(0,\;1)$ where $ s_n^2 = \sum_{i=1}^n \sigma_i^2 $. According to the above definition of asymptotic variance, $T_n = \sum_{i=1}^n X_i$, $\tau(\theta) = \sum_{i=1}^n \mu_i$ (should \tau(\theta) be independent of sample size $n$?), and the asymptotic variance of $\sum_{i=1}^n X_i$ is $1$  (this is hard to believe, because the variance $\sigma_i^2$ of $X_i$ can be any as long as it is finite)? Can the limiting distribution in the definition of the asymptotic variance to be other  than a Normal distribution? When will the limiting variance and the asymptotic variance be the same?  Similarly but more generally,    how can we define limiting moments and asymptotic moments?  Is the limiting distribution in the definition of an asymptotic moment required to be a Normal distribution? When will the limiting moment and the asymptotic moment coincide?    For example, those two concepts for means: limiting mean and asymptotic mean?   Thanks and regards!


I am trying to solve the following proof and could use feedback on if I did it correctly and how to reduce the the second-to-the-last step to get to the last step     Use mathematical induction to show that  $$ \sum_{i=1}^{n} i \cdot i! = (n+1)! -1$$   This is my solution:  Proceed with induction. When $n=1$, the left-hand side reduces to 1 and the right-hand side becomes $2!-1 = 1$. Hence, the identity holds when $n=1$. Assume that the identity holds when $n=k$ for some integer $n \geq 1$. That is assume $$ \sum_{i=1}^{k} i \cdot i! = (k+1)!-1$$ For some integer $k \geq 1$, we want to show that the identity still holds for $n=k+1$. In other words, we want to show $$ \sum_{i=1}^{k+1} i \cdot i! = (k+2)!-1$$ From the induction hypothesis, we find $$ \sum_{i=1}^{k+1} i \cdot i! = \Bigg(\sum_{i=1}^{k} i \cdot i! \Bigg) + (k+1) \cdot (k+1)! $$ $$ \sum_{i=1}^{k+1} i \cdot i! = (k+1)! -1 + (k+1) \cdot (k+1)! $$   This is where I am stuck. I don't know how to reduce the previous step so that it looks like $$ \sum_{i=1}^{k+1} i \cdot i! = (k+2)! - 1 $$


Recently, I saw a bunch of images showing what a mod can do. I'm just wondering, what do the options mean?  For example, what's the difference between "destroy" and "delete" a user?  And what's annotate a user?  And how do you convert an answer to an edit?

Prompted by , it appears there are two methods of disabling user accounts permanently:  deleting and "destroying"   What are the differences between deleting and destroying a user? What determines which method is used?


So someone suggests a tag synonym. How does anyone else know about it? There is nothing on site which says when a suggestion has been made, so no-one knows. And if they don't know about it it can't be approved.  It would make so much more sense if these suggested synonyms appear in the suggested edits review queue. After all, tag wiki edits appear there.  Can this be done?

As per Robert Harvey's suggestion , lets have a review queue for tag synonyms.  It should be filtered so that users will only be shown what they can vote on.  This should help all those languishing tag synonyms.


I am testing the  website   I have found a issue on the site with searching. When I have entered very long values in the what and where textboxes, you end up at a blank screen   See these screenshots:  Search Page     Result Page     I know the URL is very long, but you need to check for this and display some message to the users if they enter wrong values in the search textbox.

I entered a URL with a very long parameter on Stack Exchange.  I have type this url    It shows a blank screen , does not shown any messages.    We need to show a “Page Not Found” message, same as what you did on other Stack Exchange pages.


I made a live usb with ubuntu on it. I can test ubuntu with it but if I want to install it onto the SAME usb stick it is not possible. How can I make a REAL installation of ubuntu onto an usb stick without requiring another usb stick? Is it possible to install ubuntu on the same usb stick you are running the live version on? If not can I somehow run it in a virtual machine with access to the usb stick and install it from there (I tried Linux live usb creator, but it didnt work). Or can I dual boot and then install on the usb stick and delete the linux partition afterwards? If there are other/better options please let me know.  Thank you for your help

I am running a live CD with Ubuntu 16.04 and I am trying to create a persistent image on a usb.  I have tried everything, but nothing is working.  I am on a Toshiba satellite c-50 b.   Please help, it is important.


Suppose I have two functions f1 and f2 that return a double and get the same input (a const reference to some kind of object).   These functions are designed in such a way that given an input x,  f1(x) <= f2(x)    should always hold.   When testing this assertion on a set of 1000 input instances, a small subset of instances fails. What's remarkable is that in all such cases f1(x) is greater than f2(x) by a delta that's less than      10^-13.  The following code sample is sketchy, but it should be enough for demonstration purposes:   const InputInstance x{...}; const double a{f1(x)}; const double b{f2(x)}; assert(a <= b);   In some other file, I have the functions f1 and f2 declared as follows:  const double f1(const InputInstance& x); const double f2(const InputInstance& x);   The following code       printf("FLT_RADIX = %d\n", FLT_RADIX); printf("DBL_DIG = %d\n", DBL_DIG); printf("DBL_MANT_DIG = %d\n", DBL_MANT_DIG);   prints:  FLT_RADIX = 2 DBL_DIG = 15 DBL_MANT_DIG = 53   on my system.  As far as I understand this correctly, I could expect the output doubles to coincide up to the 15th decimal. Right?  Should I avoid using the '<=' operator on doubles? Has the 13th decimal a meaning I'm not aware of, or should I stop complaining and look for a bug in my code ;-) ?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


My wife has an iPhone, she goes to hamburger and "create new label".  I have a Google pixel, I don't have this feature. Or do I, and I'm just being blind?

Gmail App in my Android device shows correctly all the labels that I created using Gmail through web interface.  Can I create new labels in Gmail on Android device using Gmail App?   Also, ideally, once I create these new labels in Gmail App, I obviously should be seeing the same in Web Interface of Gmail too (Sync!!).  Any ideas?


I recently decided to change my OS on my HP Stream 11 from windows 10 to Ubuntu. Upon installation, it was obvious that Ubuntu works faster, so I figured it was a good idea to keep it. Problem however, it does not  recognize my wifi. Also, the right click on the touch pad does not work. How can I fix that?    lspci -knn | grep Net -A3; rfkill list    02:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01) Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a] Kernel driver in use: wl Kernel modules: bcma, wl 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no   Thank you!

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 have an index.php where the user can reserve a lot. the button is from the other page 2dmap_func.php which then displayed inside the id "detalye" in index.php after ajax call was executed.      index.php
       2dmap_func.php   $sql = "SELECT * FROM lots WHERE link='$_POST[lot]'";   $result = $conn->query($sql); $row = $result->fetch_assoc();   $sql2 = "SELECT * FROM reservation WHERE lot='$_POST[lot]'";   $result1 = $conn->query($sql2);  echo '
LOT DETAILS

Block:
 '.$row['block'].' &bull;&nbsp;
Lot:
 '.$row['lot'].'

Type: '.$row['type'].'

North: '.$row['dimension_north'].'&bull;&nbsp;East: '.$row['dimension_east'].'&bull;&nbsp;West: '.$row['dimension_west'].'&bull;&nbsp;South: '.$row['dimension_south'].'

'.(($result1->num_rows < 1) ?'<button id="reserve">Reserve this Lot</button>':'This lot is currently not available for Reservation.').'

';

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Hint: To generate this number you could perform the experiment of tossing fair coin 10 times.    I guess we are supposed to use the normal approximation to binomial distribution. But I'm stuck after that. Can anyone help me?

How can I manually generate a random number from a given distribution, as for instance, 10 realisations from the standard normal distribution?


I have a IN clause query in which I pass this ID'S (10,19,23,24,28,33,45,46,1,4,7,8,12,16,18,22,29)  My query is,   SELECTpost_jobs.idFROMpost_jobsWHEREidIN(10,19,23,24,28,33,45,46,1,4,7,8,12,16,18,22,29)  It execute correctly and returns result first id likes 1 then 4 then 7 and so on...that is ascending order  My Need is to get first result of id 10 then 19 then 23 as the order of ID that I passed is there any way to get such type of result in output.

Is it possible to do a SELECT statement with a predetermined order, ie. selecting IDs 7,2,5,9 and 8 and returning them in that order, based on nothing more than the ID field?  Both these statements return them in the same order:   SELECT id FROM table WHERE id in (7,2,5,9,8)    SELECT id FROM table WHERE id in (8,2,5,9,7)


Alright so I got a Huawei Ascend Y530, and I live in the Netherlands, where literally no person ever uses an azerty keyboard. However, for some reason I can only get azerty when setting my keyboard to Dutch. It's annoying me to no end but I have no idea how to get alter the keyboard to suit my wishes.  Does anyone know how to change an azerty keyboard to qwerty without changing the language?

How can I set the keyboard and language in Android, and how can I add more languages to the device?


I'm having some problems specifying multiple.jar files when i compile my project. I'm almost certain that:  sudo javac -classpath .:../lib/*.jar server/*.java models/*.java authentication/*.java database/*.java   would work. Just as with the .java files. But it doesn't.  I just now realised that i have to specify each .jar as following:  sudo javac -classpath .:../lib/gson-2.2.4.jar:../lib/mysql-connector-java-5.1.26-bin.jar server/*.java models/*.java authentication/*.java database/*.java   So, do I really have to add a new .jar to my run.sh shell code each time i need a new .jar?  To sum the question:  -classpath .:../lib/gson-2.2.4.jar:../lib/mysql-connector-java-5.1.26-bin.jar   works.  -classpath .:../lib/*.jar   Does not, why?

Is there a way to include all the jar files within a directory in the classpath?  I'm trying java -classpath lib/*.jar:. my.package.Program and it is not able to find class files that are certainly in those jars.  Do I need to add each jar file to the classpath separately?


My MacBook Pro running on macOS Catalina is really slow and the kernel task is using 1000% of the CPU !!  I tried all the solutions suggested in . I still have the same problem.There is only one solution that I was not able to do exactly like it was mentioned, it is the one suggested by Victor Petterson in .  It involves removing the « model identifier ».plist file. I was not able to find the file with my model identifier so I removed all the files in : ../ACPI_SMC_PlatformPlugin.kext/Contents/Resources  After removing the .plist files I have restarted my MacBook and re-enabled the SIP. Now the files are removed and the kernel task still using 70% of the CPU with a maximum speed of fans.  Does anyone have the same problem and was able to find a solution to the kernel task issue which is different from the ones mentioned above ?

I have a Macbook Pro Retina with the following hardware:  Model Name: MacBook Pro Model Identifier:   MacBookPro11,1 Processor Name: Intel Core i5 Processor Speed:    2.4 GHz Number of Processors:   1 Total Number of Cores:  2 L2 Cache (per Core):    256 KB L3 Cache:   3 MB Memory: 8 GB Boot ROM Version:   MBP111.0138.B15   I recently updated to OS X El Capitan; I have had the same problem occur to me twice now and it's getting me mildly concerned.  I randomly have CPU usage spikes from kernel_task, the highest of which I have seen was 660% CPU. This is frankly an unacceptable and unnatural setting for my CPU (I typically have a total usage of about 2-3%). The highest I've screenshot is this:    The first time, I did not record what I had open. The next time, however, I was ready, and this is the exact list of what I had open:   Two YouTube video pages (using the processes Safari Networking with a max of about 44% CPU, typically stabilized at 8-10% and https://www.youtube.com, which got to around 51% CPU max, typically around 10-12%) Messenger. Doubtful that this had an effect, but, hey, you never know. Skype. This dude was running at a consistent 50% CPU usage.   It is worth noting that I had to close both YouTube windows to actually gain enough control of my computer to open Activity Monitor. None of the aforementioned processes were spiking, just kernel_task.  Also worth noting is my fans - the fans were on maximum, blowing cold air. Even though kernel_task was spinning at 660% CPU, there was no actual heat being produced, as far as I could see.  It's at this point where I force shut down the computer - I had about .5 frames per second (1 frame every 2 seconds, was looking at the clock) and was getting nowhere when it came to even attempting to fix it.  If there is a bug related to this that I have missed, or some wacky thing with OS X in general that I'm missing, please let me know, as this is extremely frustrating and more than a little disturbing.


Which form of this sentence is correct. "No one works as hard as him." Or should it be, "No one works hard as he."?

Consider the sentence "I can run faster than 15 miles per hour." Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time.  I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person.  I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that "him" is not a speed.  I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say "... faster than he can" or even "... faster than he can run?"  I am faster than him. – With "am" instead of "can run" it now seems slightly more correct. But is it?  I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, "I am faster than he is" or even "I am faster than he is fast." (Though I suppose that is a given since I could hardly properly compare to some other category as in "I am faster than he is smart.")  My speed is faster than his. – Hmm. This seems more proper as "my speed is greater than his."   So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article  may be of great interest to some readers!  Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inﬂectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic.


1. The Problem  After enabling Hibernate on my desktop with what was discussed in , for days, everything seemed fine. But then, out of nowhere and for no reason — it happens with or without pending OS updates —, my PC now sometimes wakes up out of Hibernate. I'm puzzled as to why this is happening.  2. What I've tried  So far, I've tried to change some less known configurations that seemed to solve the problem, but I'm afraid didn't:   Shutting down my wireless mouse (Logitech Master MX 2S) and keyboard (Logitech K780), and taking the USB receiver out (my PC doesn't have Bluetooth).   This was to make sure no accidental signal was coming in to the PC while I was away, and it didn't solve the problem.  Go to Change Automatic Maintenance Settings and disable Allow scheduled maintenance to wake up my computer at the scheduled time. Go to Change when the computer sleeps → Change advanced power settings → Sleep → Allow wake timers → disable this setting.   This is my last recent attempt. I haven't been able to confirm that it is the solution yet.    Does anyone know what is the root of this problem?

How do you stop a Windows 10 Desktop waking up from the sleeping/hibernated power state without user intervention?  For lots of users this won't be an issue but, if you sleep in the same room as your PC, then having your machine wake up at 3:30AM to download updates is irritating.


This is the header of my document \documentclass[12pt,a4paper]{report} \usepackage{import}  \usepackage[english]{babel} \usepackage[utf8]{inputenc} \textwidth=450pt\oddsidemargin=10pt  \usepackage{makeidx} \makeindex  \usepackage{graphicx} \usepackage{subcaption}  \setlength{\parindent}{1em} %indentazione paragrafo \setlength{\parskip}{0.5em} % spazio tra due paragrafi \renewcommand{\baselinestretch}{1.5} %interlinea  \usepackage{float}  \usepackage{enumitem}  \usepackage{csquotes} \usepackage[backend=biber, style=verbose-ibid, ibidpage=false]{biblatex} \bibliography{bibliography}  I'm using \autocite{} and biblatex package to cite into the footer page my references. But I'm in truble when I cite twice an article because into the footer appears the string "ibid".  How can I insert a cross-refence and avoid to have the "ibid" on the footer page ? Thanks

Biblatex is loaded as  \usepackage[style=numeric-comp,hyperref=true]{biblatex} \ExecuteBibliographyOptions{citetracker=true,sorting=none,firstinits=true}   I am looking for an if-command, which would do the same job as \ifciteseen does, but only for the current page.   The idea is to test if some source has been cited already on the current page and, depending on the result, change the citation. For instance, if I want to produce a footnote only upon the first citation on the current page, I could do  \ifciteseenONTHISPAGE {% yes, do nothing  } {% no, do smth  \noexpand\footnote[\thefield{labelnumber}]{%  \fullcite{\thefield{entrykey}}\addperiod}}}}   I am aware of \iffirstonpage and \ifsamepage but cannot figure out if they can be of any help here and how.


I have two Integer stacks StackA and  StackB.  StackA has the following values but StackB has no content.  StackA ----- [40] [11] [56] [10] [11] [56]   Now i need to copy distinct values from StackA to StackB.I tried this      public static void CopyDistinctValues(Stack<int> source, Stack<int> destination)     {         int[] numArray = source.ToArray();         for (int i = 0; i < numArray.Length; i++)         {             if (!destination.Contains(numArray[i]))             {                 destination.Push(numArray[i]);             }         }     }   and its working but i am not sure if its the best solution.  Is there a better way to do this or any built in method to achieve this?   It will be better if it can be done without using Array.

I have been working with a string[] array in C# that gets returned from a function call. I could possibly cast to a Generic collection, but I was wondering if there was a better way to do it, possibly by using a temp array.  What is the best way to remove duplicates from a C# array?


Say we have a simple circuit with three resistors in series, each of which have the same resistance. We also have a battery with a given constant potential difference hooked up in series with these resistors.  According to Ohms law and Kirchhoff's law, the current passing through each of the resistors will be    Determined by the sum of the resistances of the resistors  (V/(Total R) = I) Constant, as there is only a potential difference drop for each resistor in series.   So the amount of charge passing through each resistor is always constant, just like water flowing through pipes.  But the "pressure" on these electrons decreases- meaning that the amount of energy each electron has is reduced, part of their energy converted into energy for the element that the resistor represents to use (electrons doing work.)  So logically, this should mean that the speed of each electron is reduced, and that extra energy they once had in kinetic energy is the energy used on the element.   So if this is the case, how is it possible that Current stays constant? Yes, by the definition Q/t current is constant because the number of electrons passing through a point is the same, but by the more involved definition I=nqAV, current is reduced because the drift velocity must be reduced, or else no work could be performed.  Where is my intuition wrong?

I have been thinking about ways of teaching electronics and I'm wondering if the following is true...  For starters, when we talk about voltage as energy per unit charge, is this energy manifest simply as the kinetic energy of the electron?  So, all other things being equal, will the electrons coming out of a 4 volt battery will have twice the velocity of electrons coming out of a 1 volt battery because of ${1 \over 2}mv^2$?  This would seem to imply that the voltage drop across different parts of the circuit is essentially a comparison of the electron speeds at those points.  Furthermore doesn't this imply that the electrons are nearly halted by the time they reach the positive terminal of the battery? This makes intuitive sense to me, it seems pedagogically sound, and it provides an explanation for how electrons "know" to give up their energy across the circuit -- electrostatic repulsion communicates later resistances to earlier parts of the circuit.  How much of the above is correct? The one things that makes me suspicious is that, in this picture, electron density at the positive terminal of the battery is very high, and repulsive forces would prohibit this. On the other hand, if the Joules per Coulomb are not coming from kinetic energy, then what? The field? But wouldn't that just dissipate as light?  Something is wrong but I don't know what.


So far, my attempt of proof looks like this:  $\#G =45=3^2\times 5$, so:   By the 1st Sylow Theorem that G has p-subgroups of order 5, 9 and 3. By the 3rd theorem, the p-subgroups of order 5 and 9 have to be unique:  $$n_5 = 1 \text{ (mod } 5), n_5 |9 \implies n_5=1$$ The proof is analogous for $P_9$ and so they're both normal in G (by adding the 2nd Theorem, all the p-subgroups are conjugate and there can't be any conjugate of $P_5$ or $P_9$ that isn't the group itself, since we've already shown they're unique).   For every p-subgroup, we know it's center is not trivial, so $\#Z(G)>1$   Now, I'm having trouble linking the information about its p-subgroups to the equation: $$\#G = \# Z(G) + \sum_{i=1}^\infty[G:N(x_i)]$$  I feel like there's something quite obvious I'm missing but I can't put my finger on it.   I've looked into  post also, but the example they give has references to a "Corolary 15" to show that the center has either order 6 or 48, but the theorem isn't there so idk what theorem they're refering too.

I'm trying to understand the following proof from Dummit & Foote (pg. 137) which shows why a group of order 45 is abelian. I understand everything but the last two sentences. Why is it that $|G/C_G(P)|=1$? Also, is it always true that $G/Z(G)$ is abelian? Thank you!


Is a PhD student in Computer Science always expected to come up with new ideas or it is the responsibility of the adviser to provide some idea and guide the student to solve the problems in achieving that idea?  My PhD adviser wants me to give project ideas all by myself. He is not very good with new ideas and if he comes up with an idea he becomes the first author. So ideally to become a first author and complete my graduation, I've to find ideas all by myself and I don't get any useful suggestion from him either. I understand as a PhD student I should be able to find out problems but at the same time I expect some input from him. At least guide me to some specific direction or help me from a high level. Am I expecting too much or is my adviser's action appropriate? FYI, I'm at the end of my 2nd year and I've been working with him for 1 year. My major is Computer Science.

My question applies to Science, Technology, Engineering, and Math disciplines (STEM).   Q: By what process does a graduate student determine his or her research direction?  (Assume that the graduate student is in the first year and has no previous publications with this supervisor.)  I can imagine several scenarios:   The graduate student proposes a research topic and then their supervisor evaluates it for originality and feasibility. In this scenario, the graduate student has the foresight to know what research directions are promising and appropriate. The graduate student performs an extensive literature review. In this process, the student finds a challenging and/or interesting problem. (I am not sure how much effort this requires. I also don't know how to identify a problem as "interesting" or "challenging".) The supervisor comes up with an interesting research problem or question and then presents it to the graduate student. (This appears to be a common pattern, given the plethora of complaints that I see on-line about uninteresting research.)   I would especially like to see responses from professors who are supervisors and also from graduate students.


I've been a long-time Maya user, but with Blender's latest releases I'm trying really hard to jump ship. But, there are two features that I use all the time in my Maya workflow that I can't seem to replicate in Blender. Preventing negative scaling by default I use this all the time to align components. For example, if I have a couple of verts that I want to align, I'll set the pivot point (Or now, 3D cursor) to a spot that I want to align them to, and then scale them all along two axis. In Maya, they don't scale past the negative point by default, so it's really quick and easy with verts, faces, edged, all of it. In Blender, I can also scale them, but I then have to type 0 and select the two axis myself. This also works, but it's just not as fast, and it's just a pain to do every time. Is there a toggle or extension that could prevent negative values by default? Select back-facing geometry without entering X-ray mode Another thing I do all the time. I'll often drag to select verts or faces of a model, and in Maya, any components in my selection rectangle will be selected - Even ones that aren't visible to the current perspective. For example, if I'm modeling a door, and want to move the top of the frame down. I'd go into front-ortho mode, drag to select all the frame's top verts, and then move them down. But in Blender, I can't select the components behind other ones (blocked from my direct view) without being in X-ray mode, which makes it all a lot harder to see and manage. Having to toggle it constantly is frustrating and time consuming, and I was really hoping there's a way I can have it on by default. Sorry for the long-winded questions, but these are my only blockers from switching completely, and I'm pulling my hair out over here. Thanks in advance!

By default blender allows you to scale past 0 - how do I prevent this?  i.e. it's common in other 3D modelling software to resize a set of vertices against an axis to align them - however this isn't possible when negative scaling is enabled.


How could I install mpd 0.17 or even 0.16 on debian squeeze? It's been suggested to me that I should use backports, but I did not quite understand what I should do in case of unmet dependencies. For instance, mpd 0.17 exists on wheezy-backports but it depends on libraries that are a greater version than what is available in the squeeze repos. Should I install every dependency one-by-one from the ready packages on the backports (if they exist)? Or should I install them from the wheezy repos?  My sources.list file is:  #  # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130824-13:07]/ squeeze main non-free  # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130824-13:07]/ squeeze main non-free  deb http://ftp.gr.debian.org/debian/ squeeze main deb-src http://ftp.gr.debian.org/debian/ squeeze main  deb http://security.debian.org/ squeeze/updates main non-free deb-src http://security.debian.org/ squeeze/updates main non-free  # squeeze-updates, previously known as 'volatile' deb http://ftp.gr.debian.org/debian/ squeeze-updates main non-free deb-src http://ftp.gr.debian.org/debian/ squeeze-updates main non-free  # backports deb http://ftp.gr.debian.org/debian wheezy-backports main contrib non-free deb http://ftp.gr.debian.org/debian wheezy main contrib non-free deb http://backports.debian.org/debian-backports/ squeeze-backports main contrib non-free   EDIT: I couldn't get the sources with apt-get source mpd=0.17.6-1~bpo70+1. apt was giving me this error:   E: Ignore unavailable version '0.17.6-1~bpo70+1' of package 'mpd'  E: Unable to find a source package for mpd   apt-cache showsrc mpd returned the only the squeeze version.  EDIT 2:  Trying to install version 0.16 from wheezy. I got the sources but when I ran debuild -uc -us it gave me errors about unmet dependecies. Building the deps with apt-get build-deps mpd=0.16.7-2 returned that it required libmp3lame0 (= 1:3.99.5), and I have 3.98.4+repack2-3~bpo60+1.

Suppose I want a more recent version of software than is available for my current version of an operating system, what can I do?  Cases to consider:   There are semiofficial/official sources of additional packages available for that version of the OS. E.g. backports.org for Debian or PPAs for Ubuntu. There are no more recent versions of the package available for that version of the OS, but there are more recent versions available for more recent versions of the OS. This is the standard case for backporting. There are no packaged versions of more recent versions of the software available. Options available are to package the more recent version.     Per  this is intended as a place to put canonical answers for the following. Answers should probably be made community wiki.


I'm trying to refer to some tables in the appendix of my paper, the following command have been used to number the tables as A1, A2 etc.:  \setcounter{table}{0} \renewcommand{\thetable}{A\arabic{table}}   but when I use the \ref command for cross reference, It only shows table A, not Table A1 as I wanted, will someone help figure out why the reference goes wrong?  I'm using the IEEETran class, and whit the following code:  \appendix \setcounter{table}{0} \renewcommand{\thetable}{A\arabic{table}}   some text here and refer to Table \ref{tab:app-flexible}.   \begin{table}[!htbp] \centering \begin{threeparttable} \label{tab:app-flexible} \caption{Parameters balabala} \begin{tabular}{cccc} \toprule table contents... \bottomrule \end{tabular} \end{threeparttable} \end{table}

\documentclass{article} \usepackage{algorithm}  \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document}   With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1).  Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or "??" to appear, rather than the previous environment or reference-able entity being used.


I am trying to convert database column that is stored in utf8_unicode_ci collation to hindi characters.   For example:  à¤¦à¥à¤ƒà¤– à¤•à¤¾ à¤…à¤§à¤¿à¤•à¤¾à¤°- Quiz 1  This is not showing in hindi language, I even added <meta charset="utf-8"> after  tag. But still it displays the same.  In my previous website it was working fine, but when I imported data to my new website the characters are not being displayed as expected.   Then after some research, I found out some PHP functions as below      echo iconv('UTF-8', 'ISO-8859-1', $utf8);    echo "
";    echo mb_convert_encoding($utf8, 'ISO-8859-1', 'UTF-8');    echo "
";   iconv displayed Error iconv(): Detected an illegal character in input string and  mb_convert_encoding outputs ?? ? ??- Quiz 1  The expected results for the above string is =  दुःख का अधिकार- Quiz 1  ANSWER  After all the help I got the solution, I changed old database charset to UTF-8 using this   UPDATE quiz_question SET question_desc = CONVERT( CONVERT( CONVERT( question_desc USING latin1 ) USING BINARY ) USING UTF8 )

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


When is it possible to find a function $f(x)$ that satisfies $f(f(x))=g(x)$ given a function $g(x)$

I'd like to characterise the functions that ‘have square roots’ in the function composition sense. That is, can a given function $f$ be written as $f = g \circ g$ (where $\circ$ is function composition)?  For instance, the function $f(x) = x+10$ has a square root $g(x) = x+5$.  Similarly, the function $f(x) = 9x$ has a square root $g(x) = 3x$.  I don't know if the function $f(x) = x^2 + 1$ has a square root, but I couldn't think of any.  Is there a way to determine which functions have square roots? To keep things simpler, I'd be happy just to consider functions $f: \mathbb R \to \mathbb R$.


I want to split a string with Tabstops. What is the correct char[] equivalent for usage with   Split.(char[] x, int i)

I'm building an application where I should capture several values and build a text with them: Name, Age, etc.   The output will be a plain text into a TextBox.  I am trying to make those information appear in kind of columns, therefore I am trying to separate them with tab to make it clearer.  For example, instead of having:  Ann 26 Sarah 29 Paul 45   I would like it to show as:  Ann tab 26 Sarah tab 29 Paul tab 45  Any tip on how to insert the tabs into my text?


I am a 16 year old boy from Austria which want`s to start developing apps for ubuntu (mobile). Are there some links for a newbie like me? ^^   Sorry if I am new. Just wanna try to develop and take a deeper look into Ubuntu.  Cheers Elias

I am interested in trying the new Ubuntu for phones OS development. (I am not an Ubuntu developer, I am new to Ubuntu. Impressed by the Ubuntu Touch preview, I got interested in learning how to develop for it).  Where can I start with it? I can't find any guidance on the Ubuntu site.


indicates the WD edition of Acronis True Image will not be a bootable drive. How might a cloned drive (MBR partition table, not GPT, since original created with Windows 7) imaged with this app be made bootable?  Note: Had  solved the problem according to its original poster, I would think that a reasonable solution. When I read it before posting, I saw it did not, and had multiple contradictory answers, therefore, since there's no canonical answer, don't believe this is a duplicate.

My SSD died yesterday. I have made regular backups using Acronis True Image Home. I've restored the image onto a new SSD which I have purchased and installed. I have verified it is there. It also contains that small hidden partition at the front of the disk.  However, for some reason, the system will not boot that disk.  I have used a Win 7 System Repair Disk, which I previously made, to try and "repair" the problem - to no avail.  How can I get my system (tower, not laptop) to boot this new SSD that contains my restored Win 7 installation?


I'm trying to discover when to use a function defined inside a variable as opposed to just a standalone function. Take the two tests below:    // test 1 function testFn(t) {   console.log(t); }  for (let i = 0; i < 5; i++) {   testFn(i); }  // test 2 var testFn2 = function _test(t) {   console.log(t); } for (let i = 0; i < 10; i++) {   testFn2(i); }     The first test just uses a standalone function, whereas the second function uses a variable for the function. In what cases would I want to use one against the other? Could someone provide some clarification and advice here? Are both my functions correct in the above code?  Thanks for any help

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


How to find the sum of combinatorial summation of the following series, where $C(n, k)$ denotes the number of combinations of $n$ given $k$ are the same?  $$\sum_{k=0}^{n/2} C(n-k, k)$$  Need help on this.

The binomial sum   $$s_n=\binom{n+1}{0}+\binom{n}{1}+\binom{n-1}{2}+\cdots$$   satisfies the Fibonacci relation.   I failed to prove that $\binom{n-k+1}{k}=\binom{n-k}{k}+\binom{n-k-1}{k}$... Any hints or suggestions?


It's possible to install the Ubuntu SDK for Ubuntu 16.04? I'm following the instructions:   and this line it's giving me the following error  sudo apt update && sudo apt install ubuntu-sdk  W: Error de GPG: http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_15.10  Release: Las firmas siguientes no se pudieron verificar porque su clave pública no está disponible: NO_PUBKEY 1BE1E8D7A2B5E9D5 E: El repositorio «http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_15.10  Release» no está firmado. N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión. N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.   Any idea why is this error happening?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


I'm compiling and linking my code with g++. I created a generic TimeSpan<T> class and now I am instantiating it in TimeMachine.cpp. Here is that class:  #include <iostream> #include "TimeSpan.h" using namespace std;  int main() {     TimeSpan<int> t;     return 0; }   When I run g++ --std=c++14 TimeMachine.cpp I get the error message:  Undefined symbols for architecture x86_64:   "TimeSpan<int>::TimeSpan()", referenced from:       _main in TimeMachine.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   Yet in TimeSpan.h, I defined the TimeSpan() symbol. Please help.  Edit: here's TimeSpan.h:  #ifndef CSS342LAB1_TIMESPAN_H #define CSS342LAB1_TIMESPAN_H  #include <iostream> using namespace std;  template<class T> class TimeSpan {     friend ostream& operator <<(ostream &outStream, const TimeSpan &duration);     friend istream& operator >>(istream &inStream, TimeSpan &duration);  public:     //     // Constructors and destructors      TimeSpan();     TimeSpan(T seconds);     TimeSpan(T minutes, T seconds);     TimeSpan(T hours, T minutes, T seconds);     //~TimeSpan();     //     //getters and setters     int getHours() const;     int getMinutes() const;     int getSeconds() const;     bool setTime(int hours, int minutes, int seconds);     //     // operator overload     bool operator==(const TimeSpan &duration) const;     bool operator!=(const TimeSpan &duration) const;      friend ostream& operator <<(ostream &outStream, const TimeSpan &duration);     friend istream& operator >>(istream &inStream, TimeSpan &duration); private:     int seconds;     int minutes;     int hours; };  #endif //CSS342LAB1_TIMESPAN_H

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I tried to resize the partition using GParted, and it didnt work because it's being used by system.     Someone said that i need to do the GParted in a live CD, so i made a Ubuntu Installer into a USB using rufus. I also changed the boot priority in BIOS to boot the USB stick first. But i am unable to enter the live CD installer. It just keep appear the grub menu which show which OS should i use, Ubuntu or Windows.  How could i resize the ubuntu partition in proper way ?  EDIT  I got this when try to enter UEFI: USB using teh ESC key.    EDIT 2  I tried the duplicated question's answer but it turns to be like this

I had Ubuntu (150 gb) and zorin os (150 gb). In a hard drive of 320 gb, then using the Disks utilty of Zorin OS 9 which I'm running, tried to delete the Ubuntu one, because I will stay only with Zorin.  Then I noticed that is not so simple. And now that "free space 152 gb" shows as unallocated. My attempts for doing something about that from Zorin failed, I guess because can't do much with the HDD as I'm using an OS running on it right? So even gparted couldn't help.  How do I make a gparted USB bootable? Is that the way to go to boot and resize partition to use that unallocated space?  Can someone point me in the right direction, in a step by step guide?   I'm 100% stuck. Made the USB bootable with unetbootin, downloaded the gparted iso, but when I reboot and enter the BIOS, when pick the usb I get "The system found unauthorized changes on firmware, operating system or uefi drivers", and that's all, no joy,  no gparted resizing my partions or merging the unallocated space...  Tried booting with linux mint from bootable usb, and running gparted, but in that case I can't to anything with unallocated space either. I can only resize    The dev/sda1 can be shrinked only... I'd like to have a 294 gb hd instead... the unallocated simply doesn't show any options or commands (all grayed out)  If I enter any number on dev/sda1 in "free space preceding" (or following), that is substracted from "new size"....  After doing a `mount´ in terminal I see this:  /dev/sda1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/cgroup type tmpfs (rw) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) none on /sys/fs/pstore type pstore (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=fernando) /dev/sdb1 on /media/fernando/MULTIBOOT type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)   I guess what I need is to delete the sda2 partition, how do I do that?


"Two shuffled decks are laid out one beneath another...what is the expected number of matches" (match is same rank and suit)  Part where i am stuck-  Does the probability at each draw for a match stays same equal to 1/52. Shouldnt the probability of a match on the second draw be 1/51 if there was a match on the first draw   and 1/50 if there wasnt a match on the first draw  How does one go from here to computing the expected value  Edit:  looking to understand why Expected value at ith draw is always same at 1/52...to me it looks like the probability at ith draw would depend on previous draws

Completely shuffle and then lay out a full deck of 52 cards in a single row (i.e. single row 52 columns). Do the same thing with a second deck of playing cards and place this deck in the second row(also has 52 columns). What is the expected total number of matches in all the columns?   A match means that the top card and the bottom card in the column are the same (same rank and suit).  I was trying to solve it by brute force but seems like it's not that easy to me.


I am attempting to implement some small generic data structures as review and to learn more c++, but am running into problems with getting my basic template class to compile. Header file: template <class T> class ArrayList {     public:          ArrayList(T dataToAdd[]); };  C++ file: #include <iostream> #include "arrayList.hpp"  template <class T> ArrayList<T>::ArrayList(T dataToAdd[]) {     std::cout << "ArrayList constructor" << std::endl; }  main.cpp: #include <iostream> #include "arrayList.hpp"  int main(int argc, const char* argv[]) {      int data[3] = {1, 2, 3};      ArrayList<int> testList(data);      return 0; }    I am thinking that the problem has to do with the array being passed into the constructor in main.cpp, as when I removed all parameters (from header, implementation, and actually calling the constructor) the program compiled fine. The error I am receiving: /usr/bin/ld: /tmp/cc5ra82s.o: in function `main': main.cpp:(.text+0x46): undefined reference to `ArrayList<int>::ArrayList(int*)' collect2: error: ld returned 1 exit status


I heard "That" should be used after superlative adjectives and other determiners like all, same, any, none, nothing, only, everything little, much and no.  But in this sentence     Those who wish to raise the dignity of human life should try to give   civilization that star, to equip the world with the only vision which   can save it from ill will and the crazy competitions which lead   thereto.   In this sentence, I think we should use the relative pronoun 'that' instead of 'which'.  Is 'the sentence above' grammatically incorrect?

When is it appropriate to use that as opposed to which with relative clauses?


Using his sharp ear to guide himself, the little cat walked gently across the unstable roof of the inn to the window where the conversation was closer.  Even with the window closed, it was clearly the refined voice of the Marquis's right hand.  He was commanding two rough men, probably two quarrelsome mercenaries, to engage the noble soldier in a street fight, so they could later accuse him of starting such fight and ... Oh no! another cat is in the roof, and is approaching hostile!  Clare opened her eyes.  She was in the ground floor of the inn, pretending to be a simple customer – I have to dismiss my poor familiar before the cats start a fight and alert the men that someone could be listening to them – but she can't even see her familiar from there.    Some effects, spells and even some magic objects can be dismissed using an Action, a Bonus Action or other.  But which range and requirements does the Dismiss action have?   Lots of them (Dragon Wings, Disguise Self and others) have a range of 'Self', so the range of the Dismiss action doesn't seem to be a problem. But can you dismiss them being Prone, Restrained, Grappled or when you are trying to be discrete? Does the Dismiss Action have Verbal, Somatic or Material Components? Others, like Find Familiar or Mage Armor, create an effect that can be very far before ending.  Do you have to see the effect to dismiss them? Is there any limit on the range? If the effect was created by a magic item by itself (not merely giving you the ability to cast a spell), like Instant Fortress, do you have to be in possession of, touching, or near the magic item to dismiss it?  Extra: Is putting a familiar into a dimensional pocket is comparable with the Dismiss action?

Does going outside the range of the spell or breaking line of sight between the caster and target break concentration or otherwise affect control over the spell?  For example, a Heat Metal spell has a range of 60 ft. If I cast the Heat Metal spell on a an armored foe, and that foe runs outside the range of the spell (60 ft), or around the corner, does that break concentration and end the spell? Heat Metal also allows you to use a bonus action to cause the 2d8 of damage — would exercising that option be prevented by being out of range or line of sight?


I'm trying to fix an old laptop. The CD-ROM drive can only read CDs and I have only Ubuntu server 11.04 on a CD. I wasn't able to boot from USB.   So I installed Ubuntu server 11.04 on the machine and now i'm trying to make it up-to-date with the latest version of ubuntu. However, when I write do-release-upgrade I get that there is no new release!  I couldn't find ubuntu-desktop when I tried to install it with apt-get. Any solutions please?

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I ask because my front tire's inner tube got torn and I needed to replace it.  It was 26 x 1.95 as well and I bought a 26 inch bike tube and it was too big -- inflated it would hang 2 inches off the rim and would not fit within the tread/tire part itself, and I am certain it's a 26 inch tire.

My tire wall tells me that my tires are 26 x 1.95. I bought a 26 x 1.75-2.15 inner tube. When I change the inner tube, though, the tube is bigger than the wheel by two inches. How do I determine inner tube size? Or am I just doing this wrong?


I downloaded the Steam .deb file from the official website, but after installing it with:  sudo dpkg -i steam_latest.deb   I have found that upon trying to launch it with:  steam   I now get this error:  Running Steam on ubuntu 16.10 64-bit STEAM_RUNTIME is enabled automatically /bin/bash: /home/<username>/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash) grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc awk: /home/<username>/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /lib/x86_64-linux-gnu/libreadline.so.7) Installing breakpad exception handler for appid(steam)/version(1476379980) libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast   Initially it asked me to just install some dependencies (the drivers it is complaining about now I guess) and it installed Steam with the usual window and everything but then told me that there as a fatal error and that it had to close. This was because I didn't install the dependencies as it launched an untrusted window asking for my password, however after the installation of Steam I did install the dependencies it requested.  However now it just gives me the error above, I have tried purging it and reinstalling it many times but now it doesn't even try to download Steam in the usual way with the little Steam window, now it just gives me that error.  I am running Ubuntu GNOME 16.10 with GNOME 3.22, what do I do to fix the problem and be able to install and launch Steam successfully?  Also, I would prefer to install it from the official source rather than from the universe repository as I don't know how well this is maintained.

Actually I have installed the new Ubuntu 15.04 64bit, and when I'm trying to install Steam on it, there is a problem. In fact I have downloaded the deb package from steam website, installed it and when I start it nothing happens. I tried to start it from terminal and what I've got  $ steam Running Steam on ubuntu 15.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0_client) libGL error: unable to load driver: r600_dri.so libGL error: driver pointer missing libGL error: failed to load driver: r600 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast


I am still learning Java. I have this XML string-array list:  <string-array name="CountryCodes" >  <item>93,AF, Afganistan</item>  <item>355,AL, Albania</item>  <item>213,DZ, Algeria</item> </string-array>   I am using an Arrayadapter to add this array to a spinner like this:  String [] countries = this.getResources().getStringArray(R.array.CountryCodes);           ArrayAdapter<String> adapter =  new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, countries);         adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);           mCountries.setAdapter(adapter);   This works just fine, no problems with the XML, but what I really want to do is to display only the country in the spinner and then display the corresponding digits in a separate Edittext .  I know I have to use the split() method to remove the ",". but once I have the individual string element (example "93,AF, Afganistan")   How do I    get just the country name keep the country name in sync with the corresponding digits

I need to read smallish (few MB at the most, UTF-8 encoded) XML files, rummage around looking at various elements and attributes, perhaps modify a few and write the XML back out again to disk (preferably with nice, indented formatting).  What would be the best XML parser for my needs?  There are lots to choose from.  Some I'm aware of are:            And of course the one in the JDK (I'm using Java 6).  I'm familiar with Xerces but find it clunky.  Recommendations?


How to prove that: $\lim_{n \rightarrow\infty} e^{-n}\sum_{k=0}^{n}\frac{n^k}{k!} = \frac{1}{2}$  It's about the Normal Approximation to Poisson distribution. But it only calculates part of the Poisson distribution (only under expectation).  When we try to prove Normal distribution is an approximation of Poisson we use Characteristic Function. But I cannot use it here (because it's only part of a distribution).

I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it.


I have a list of list something like this:  l=[[1,2,3],[1,2,3],[1,2,3]]  l1,l2,l3 = [],[],[] for i in xrange(0,len(l)):     l1.append(l[i][0])     l2.append(l[i][1])     l3.append(l[i][2])   So that I will get:  l1=[1,1,1] l2=[2,2,2] l3=[3,3,3]   I am interested in finding a better way of doing this. For example, if I were to add more values (l4, l5 ... etc.) could I find a way that would make it more dynamic rather than having to keep adding lists. Is there a way to map this somehow to give me something like:  new_l=[[1,1,1],[2,2,2],[3,3,3]]   Note: it is the positions that matter, these values were just used for simplicity.

I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item.  For example:  original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... result = (['a', 'b', 'c', 'd'], [1, 2, 3, 4])   Is there a builtin function that does that?


I have a function that one of the arguments is an string that has space separated words. E.g. "foo bar ccc" I think this kind of string can be treated as an "array" and loop over each word. My question is if I need to pass this as an argument to a function can it be the first argument or will it create issues? I tried it as a first argument and it works but I am not sure if there are any pitfalls I need to watch out

Consider I have a very large array $large_list, is there a way to write a function that will take the array as an argument? For example:  echo_idx_array () {     arr="$1"     idx="$2"      echo "${arr[$idx]}" }   What is the usual strategy to do something like that? I tried giving the variable $large_list but it was empty.  I am willing to modify the function to adapt it to any change in the argument list.  For the record, I am using ksh88, and I am looking for answers as portable as can be.    EDIT: So far the best I could come up with is to loop through the array and send each element as an argument to the function. This seems incredibly ugly and error-prone, not to mention that it is bound to hit some limit quickly. Here's what I did:  foo () {     echo $* }  cmd="foo " while [[ $i -lt $MAX_ARR_SIZE ]]; do     cmd="$cmd ${large_list[$i]}"     ((i=i+1)) done  eval $cmd   Isn't there something better to do?


I am in Object Mode and still unable to apply modifiers. the buttons are gone... what am I missing?

Why I can't apply mirror modifier? Here's screen


A function $f$ with the argument $x$ is commonly written $f_x : A\to B, x\mapsto f(x)$, or $f_x : \mathbb{R} \to \mathbb{R}, x\mapsto x^2$, but say I don't want to specify the argument, how would I write this ? $f : \cdot\to\cdot, \mapsto ^2$ seems unnatural.

I understand that  of a function, but while I can easily see how to apply this convention to work with functions instead of numbers in some circumstances, e.g.,  $$\sin(x)\text{ becomes } \sin\text{,}$$ $$\cos(x)\text{ becomes } \cos\text{, and}$$ $$g(x)\text{ becomes } g\text{,}$$ it isn't clear to me how to to express the functions corresponding to the numbers $$x^{2}\text{, or}$$ $$2\cdot x\text{.}$$  Short of defining new symbols, like $S$ or $I$ (which I've seen for the function corresponding to $x \mapsto x$), can one say things like $$\left(\cdot\right)^{2}\text{ for }x^{2}\text{, or}$$ $$2\cdot \left(\cdot\right)\text{ or }2\left(\cdot\right)\text{ or }2\cdot\text{ for }2\cdot x\text{?}$$  What is the general idiom for expressing such functions concisely?


So I am trying to learn how to pass standard out and standard err to various areas.  Let's say I have a folder with here.txt alone.  So if I do  ls here.txt not-here.txt  1>out  2>&1   Since here.txt is present I'll have some output to direct to the file out but since not-here.txt is not present, an error will get sent through standard error, which I am redirecting to standard out with 2>&1.  However, why doesn't this work:  ls here.txt not-here.txt 2>&1 1>out   It seems to only work if I do the redirection after the standard out instruction? Why?

I was trying to redirect both stdout and stderr to a file today, and I came across this:  <command> > file.txt 2>&1   This apparently redirects stderr to stdout first, and then the resulting stdout is redirected to file.txt.  However, why isn't the order <command> 2>&1 > file.txt? One would naturally read this as (assuming execution from left to right) the command being executed first, the stderr being redirected to stdout and then, the resulting stdout being written to file.txt. But the above only redirects stderr to the screen.  How does the shell interpret both the commands?


I wanna insert only a left bar like \left | without the closing right bar.  Why? I want to use it as separator of calculation hints.  $a * b = c | :b\\ a = \frac{c}{b}$  and so on.   It must be a left bar and not only | or \vert so that it is scaled in height.

I have a very long equation that must be separated into two lines, and it has several pairs of nesting \left \right delimiters. Unfortunately, it seems that they need to be on the same line in order for them to work.  Also I'm using the align environment because I need the aligning functionality. Is there a way to have the size of delimiters automatically adjusted over multiple lines?


We're looking for a chassis with 45-60 bays for SAS/SATA disks and we found some 60-bay enclosures at ~ $11000 (see  and  for example - there are others as well).  However we found  which have 45 bays (or 36 bays as server chassis) for $1700.  We think that the price difference is way too big (the price/bay is more than triple). Why is this?  I do NOT ask why the SAS enclosures are so expensive but why are so big differences between the prices of the SAS enclosures of different kinds. I think that's a different question from .

I will begin by stating that I do not believe this is a duplicate of .  My question is specifically about SAS drive enclosures, and justifying their expense.  Examples of the types of enclosures I'm referring to are:    HP D2700  Dell MD1220 IBM EXP3524   Each of the above is a 2U direct attached external SAS drive enclosure, with space for around 24 X 2.5" drives.  I'm talking about the bare enclosure, not the drives.  I am aware of the difference between enterprise class hard drives and consumer class.  As an example of "ball-park" prices, the HP D2700 (25 X 2.5" drives) is currently around $1750 without any drives (checked Dec 2012 on Amazon US).  A low end HP DL360 server is around $2000, and that contains CPU, RAM, motherboard, SAS RAID controller, networking, and slots for 8 X 2.5" drives.  When presenting clients or management with a breakdown of costs for a proposed server with storage, it seems odd that the enclosure is a significant item, given that it is essentially passive (unless I am mistaken).  My questions are:   Have I misunderstood the components of a SAS drive enclosure?  Isn't it just a passive enclosure with a power supply, SAS cabling, and space for lots of drives? Why is the cost seemingly so expensive, especially when compared to a server.  Given all the components that an enclosure does not have (motherboard, CPU, RAM, networking, video) I would expect an enclosure to be significantly less expensive.   Currently our strategy when making server recommendations to our clients is to avoid recommending an external drive enclosure because of the price of the enclosures.  However, assuming one cannot physically fit enough drives into the base server, and the client does not have a SAN or NAS available, then an enclosure is a sensible option.  It would be nice to be able to explain to the client why the enclosure costs as much as it does.


I want to check if $2021m-1$ is a perfect square. Let's suppose that it is. Then there is an interger n such that $$n^2=2021m-1\Rightarrow n^2=43\cdot 47m-1$$ How can we continue?

Assume: $p$ is a prime that satisfies $p \equiv 3 \pmod 4$  Show: $x^{2} \equiv -1 \pmod p$ has no solutions $\forall x \in \mathbb{Z}$.  I know this problem has something to do with Fermat's Little Theorem, that $a^{p-1} \equiv 1\pmod p$. I tried to do a proof by contradiction, assuming the conclusion and showing some contradiction but just ran into a wall. Any help would be greatly appreciated.


Why only a specific branch of a inverse trigonometric functions is called principal value branch? For example in questions like  this- what will be the value of the function sin^-1(sinx), if x lies in certain branch? -we try to modify the concerned branch into principal branch and find the value of sin^-1(sinx). Why principal branch is so unique?

Why do we choose $[-\pi/2,\pi/2]$ as the domain restriction for $\sin(x)$ when determining $\arcsin(x)$, clearly other restrictions are possible, which also yield a 1-1 function (like $[\pi/2,3\pi/2]$). No pre-calculus book I have seen goes beyond saying that this choice is completely arbitrary. However, I have noticed that every domain restriction for inverse trig functions contains the whole first quadrant in its entirety (with the exception of x values where there are vertical asymptopes). I think these domain restrictions we choose are the only possible choices to get a 1-1 function on a domain that includes "effectively" the whole first quadrant. Is this the reason why we choose these domain restrictions? Are there other reasons why these domain restrictions are more natural than others that would yield a 1-1 function?


Hi i want underling like   how can i add underline like this in Windows Phone 8.1 universal app  I have tried the below solution but seems that it dosent work on wp8.1  <Border BorderBrush="DeepSkyBlue" BorderThickness="0,0,0,1">     <!-- your text --> </Border>

How do I include text decorations such as Underline, Strikethrough etc in a Style definition:  <Style x:Key="UnderlinedLabel">      <Setter Property="Control.FontFamily" Value="Trebuchet MS" />      <Setter Property="Control.FontSize" Value="14" />      <!-- Next line fails -->      <Setter Property="Control.TextDecorations" Value="Underline" /> </Style>   I'm familiar with using the following XAML to underline text:  <TextBlock>    <Underline>        Underlined text    </Underline> </TextBlock>   However text decoration is just another style, I want to be able to define it declaritively like FontWeight, FontSize etc.  [Update]  I was applying this style to a Label control.  This was my main problem.  It appears you can't underline text in a Label.  Change to a TextBlock (thanks gix) and all is well.


I have learnt that the means of a convergent sequence also converges. However, I am wondering whether can we say the means of a bounded sequence converge? or any other counterexample?     Let $(a_n)_{n\in\mathbb N}$ be a bounded sequence. Then $\displaystyle \overline a_n=\sum_{k=1}^n \frac{a_k}n$ converges?   The following is my thinking so far. As $(a_n)_{n\in\mathbb N}$ be a bounded sequence, $\displaystyle \overline a_n$ is bounded as well, if it is monotonic then it converges. But $\displaystyle \overline a_n$ is not always monotonic.  I also tried Cauchy criterion, but it is massy to deal with averages.

Is there a bounded real-valued sequence with divergent Cesaro means (i.e. not Cesaro summable)?  More specifically, is there a bounded sequence $\{w_k\}\in l^\infty$ such that $$\lim_{M\rightarrow\infty} \frac{\sum_{k=1}^M w_k}{M}$$ does not exist?  I encountered this problem while studying the limit of average payoffs criterion for ranking payoff sequences in infinitely repeated games.


I have this HW where I have to calculate the $74$th derivative of $f(x)=\ln(1+x)\arctan(x)$ at $x=0$. I have no Idea where to begin with. Someone in previous post suggested using Taylor, but I can't because we haven't learned it yet

I have this HW where I have to calculate the $74$th derivative of $f(x)=\ln(1+x)\arctan(x)$ at $x=0$. And it made me think, maybe I can say (about $\arctan(x)$ at $x=0$) that there is no limit for the second derivative, therefore, there are no derivatives of degree grater then $2$. Am I right?


No ground wire for the 3 prong recept. Tester says open ground. I need to ground all the recepts in my house to pass inspection. What is the best and low cost fix? Thanks

I'm not sure what to do here. I just moved into a building and my outlets are all 2 prong outlets. Here is what I know of for sure:   All the outlets are 2 prong outlets The bathroom outlet has the red/black reset/test switch. I'm guessing that means that the building is grounded? The building is off of power lines (not underground)   My fear is blowing my electronics. I am not sure what to do here to properly protect my electronics. I'm hoping that my outlets are grounded-ready or the such, but how can I know? What do I do here?


How am I able to format TeX without using the command? I know I can use \TeX and it'll do it automatically but I'd like to do it manually for other stuff.

I wanted to know how is the \LaTeXe symbol () made, I mean, the command definition of superscripts and subscripts on the "L", "A"... letters.


I'm trying to find the name of a book I read in the early-to-mid '90's, from my school's library (in Canada, should that help). I'm pretty sure it was a young adult novel.  From what I can remember, it involved a youth (I think a boy) becoming disillusioned with his primitive village and its superstitious people, and setting out on a journey, beyond the boundaries of his village (which were marked by metal stakes with coloured stripes or ribbons) into the wilderness beyond. He eventually discovers a cave, which turns out to be a man-made structure.  Here is a list of points I remember:   Rural village, superstitious/fearful elders imposing many taboos on the people, including one against leaving. Our protagonist, a young man (or woman) leaves village against elders' wishes, and it is implied that he wouldn't be welcome to return again. The village boundary is marked with a metal pole (which is unusual as the villagers don't have metal of it's quality) with a coloured ribbon or stripe on it. I have vague memory of the character fighting his way upstream along a cliffside during his journey.

I read a series of books written in English (possibly a trilogy) in the early 1980s and was hoping to find them again for my children. The details I remember are:   It was set on a planet and spanned many, many years over the course of the books There was a sort of 'housekeeper/protector' robot that featured in all of them but was slightly the worse for wear by the end One of the books had a young dark-skinned boy who made the hike up to the house where the robot was, and someone made reference to the fact that his dark skin protected him from the incredibly fierce sun found in the higher regions of the planet.


I am working on a legacy database. The primary key is clustered varchar(128) and the table contains a high volume of data.  Does it necessarily help performance if I change the clustered PK to nonclustered?  Changing the table to a heap would at least it prevent more data fragmentation after inserting any new rows (to the best of my knowledge - I am not a DBA). I also have similar problem with uniqueidentifier primary keys here.

While creating a test database for another question I asked earlier, I remembered about a Primary Key being able to be declared NONCLUSTERED  When would you use a NONCLUSTERED primary key as opposed to a CLUSTERED primary key?  Thanks in advance


According to one , "to this day" means:     up to now : continuing until today     But according to some other , "to this day" means:       even now, after a very long time   The first definition suggests a period of time, but the second suggests a point in time.  Is one of them wrong?  Example Usage:      They started appearing even before his death on 17 August 1786, and they still crop up to this day.

I have a question about the phrase "to this day": (from Frederick the Great by Giles MacDonogh)        They started appearing even before his death on 17 August 1786, and they still crop up to this day.   Should "to this day" be read in the sense of "to a point in time" ("he worked from 1 pm to midnight") or "at a point in time" ("at this moment")?


When one inserts:  \begin{figure}   \includegraphics"{picture.pdf}   \caption{Figure caption in English} \end{figure}   The figure caption starts with the word "Figure". How can I change the word "Figure", e.g. in another language?

I'd like to modify the names used to typeset some of my document elements. For example, the caption of figure floats should change from "Figure" to "Fig.", and my \tableofcontents sectioning heading shouldn't read "Contents", but "Table of Contents". How can I do that?  \documentclass{article} % \usepackage[english]{babel} \begin{document} \tableofcontents \section{foo} \begin{figure}[h] \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure} \end{document}


I've got form in Django: class NewsletterForm(forms.Form):     first_name=forms.CharField(max_length=50,required=True,label='Twoje imię:')     email=forms.EmailField(required=True,label='Twój email:')   Now there is logic part: def subscribe2newsletter(request):     if request.method == 'POST':          form = NewsletterForm(request.POST)         if form.is_valid():             cd = form.cleaned_data       else:         form = NewsletterForm()         categories = get_categories_with_subcategories()           return render(request, 'subscribe2newsletter.html',               {                   'form': form,                   'sent': sent,                   'categories': categories               }               )  And view part: <form method="post">         {#            {{ form.as_p }}#}         {% csrf_token %}
             {{ form.first_name.errors }}             Twoje imię:             {{ form.first_name }}

             {{ form.email.errors }}             Adres email:             {{ form.email }}
         <input type="submit" value="Zatwierdź"/>     </form>  My problem is - how to set default value for form from logic part? I've tested construction like: form = NewsletterForm() form.first_name='some value'  but it doesn't work. Input field on view is still empty. How to fill it inside subscribe2newsletter function?

I have a Model as follows:  class TankJournal(models.Model):     user = models.ForeignKey(User)     tank = models.ForeignKey(TankProfile)     ts = models.IntegerField(max_length=15)     title = models.CharField(max_length=50)     body = models.TextField()   I also have a model form for the above model as follows:  class JournalForm(ModelForm):     tank = forms.IntegerField(widget=forms.HiddenInput())       class Meta:         model = TankJournal         exclude = ('user','ts')   I want to know how to set the default value for that tank hidden field. Here is my function to show/save the form so far:  def addJournal(request, id=0):     if not request.user.is_authenticated():         return HttpResponseRedirect('/')      # checking if they own the tank     from django.contrib.auth.models import User     user = User.objects.get(pk=request.session['id'])      if request.method == 'POST':         form = JournalForm(request.POST)         if form.is_valid():             obj = form.save(commit=False)              # setting the user and ts             from time import time             obj.ts = int(time())             obj.user = user              obj.tank = TankProfile.objects.get(pk=form.cleaned_data['tank_id'])              # saving the test             obj.save()      else:         form = JournalForm()      try:         tank = TankProfile.objects.get(user=user, id=id)     except TankProfile.DoesNotExist:         return HttpResponseRedirect('/error/')


As you can see in the picture below, I have a table that doesn't look so great and that's because am unable to figure out how to change the veritical alignment on the text in the table. For example, I want the start and the caret symbols to be vertically center aligned in the table so it looks more polished and clean.  Am using   \begin{table}[H] \begin{tabular}{|l|l|} \end{tabular} \end{table}

I have a simple table as follows:  \begin{table*}     \centering     \begin{tabular}{|l|c|c|c|c|p{2in}|}     ...     ...     \end{tabular}     \caption{The factors the camera solver depends on to evaluate the rules.}     \label{table:factors} \end{table*}   How is it possible to vertically-center the text of the cells?


I have to server:    1.Server_A with Oracle 12c  2.Server_B with SQL Server 2014  I want these servers see each other, though I can SELECT anything I want in Server_A from Server_B and vice versa.  I only want SELECT queries (no possibility to run INSERT, UPDATE, INSERT queries), and also if possible EXECUTE any procedures.

I have two servers (both servers are on Windows OS):   Server_A running Oracle 12c Server_B running SQL Server 2014   I want these servers to be able to see each other, so I can SELECT anything I want in Server_A from Server_B and vice versa.  I only want the ability to run SELECT queries (not INSERT, UPDATE, DELETE or any DDL queries), and also if possible to EXECUTE procedures.  What options or technologies we have for achieving this issue and which one is better?    Tell me if any software I have to install or any configuration have to be set on each of servers. I appreciate explaining the instructions step by step.


I was trying to install WINE, and I didn't know how to correctly click OK on the licence window that came out, and I ended up 'x'ing out of it.  Now I'm stuck in the ttf-mscorefonts-installer fault. My software centre just crashes as soon as I open it.   I keep getting   E: The package ttf-mscorefonts-installer needs to be reinstalled, but I can't find an archive for it.   I can't seem to purge it, or reinstall it.

Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits.


We run a fairly large game server hosting company with about 60 machines running Server 2008, and DDoS attacks something we have been dealing with for a long time. Unfortunately, due to the prices of the market, there is no way that us or any other company could feasibly put hardware firewalls in all of our datacenters.  Our course of action has always been to just contact the datacenter, and they null route the IP address/Port for 24 hours. This of course is a very unappealing way of dealing with the issue, especially for our clients.  From what I understand, a software Firewall will only complicate the issues of a DDoS attack. I have read some about hardening the TCP/IP stack, but it sounds like there isn't much that can be done from Server 2008 to help with this.  Is there anything we can do?

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


After activating the Statistics option it shows the total polycount in the viewport. is there any way to see individual objects' polycount? I was wondering is there any way where I can see separately after clicking individual objects polycount. I would like to know is there any option to see how many vertex and faces are on my individual models.

How to show the polycount statistics (faces, tris, etc) of selected objects in object mode? The bar on the bottom of screen shows polycount of the whole scene:    I know I can switch to edit mode and select the whole object to view its polycount, but there are two problems: 1) what if I want to know the combined polycount of two or more objects? 2) When there is a Decimate Modified applied, edit mode doesn't have the information of final result.


I get this error:  ! Improper \prevdepth. \newpage ...everypar {}\fi \par \ifdim \prevdepth                                                    >\z@ \vskip -\ifdim \prevd... l.17 \include{base_var}  ? ^D ! Emergency stop.   With file test.tex being:      \documentclass[a4paper]{article}                                  \usepackage{float}                                                % For \midrule                                                   \usepackage{booktabs}                                             \begin{document}                                                  \begin{table}[H]                                                 \centering                                                        \begin{tabular}{lccccc}                                           \hline                                                            \include{base_var}                                                 \end{tabular}                                                     \caption{Co-variance matrix of variables.}                       \label{table_base_var}                                           \end{table}                                                       \end{document}    and base_var.tex:              &         esg&        esge&        esgs&        esgg&       \_cons\\    \midrule                                                     esg         &    1.89e+07&    1.73e+07&    1.89e+07&    1.97e+07&    363792.8\\ esge        &    1.73e+07&    1.66e+07&    1.75e+07&    1.75e+07&    328833.6\\ esgs        &    1.89e+07&    1.75e+07&    1.92e+07&    1.94e+07&    365736.2\\ esgg        &    1.97e+07&    1.75e+07&    1.94e+07&    2.11e+07&    379999.8\\ \_cons      &    363792.8&    328833.6&    365736.2&    379999.8&        7147\\   However, if I inline the included file manually, it works. Odd. I don't know what causes it, nor how to work around or fix it. The data file is generated from Stata.  I encountered this in Overleaf first where the compile times out (and here reproduced on my Mac).  Any idea how to fix this?

There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?


I have been working on a project for indoor navigation.  I made the floorplan of the building and road-map for routing purposes as shp files (using JOSM, making GeoJSON and then converting to shp file using )  Then using POST GIS ShapeFile Loader (of pgAdmin III) I imported road-map(route.shp) to the database.  In QGIS, i was able to use the shortest path plugin to do the routing   //////////////////////////////////////////////////////////////////////////////////////////  EDITED  ////////////////////////////////////////////////////////////////////////////////////////// The following are screen shots of route     The following are screen shots of route_vertices_pgr     When I tried to use the pgrouting plugin of QGIS , I got the below error   What am I doing wrong?

Thats my . I loaded this to PostgreSQL DB using PostGIS shape file loader. I ran pgr_anlayzeGraph() on it and found it had a lot of isolated segments.  Next I ran pgr_nodeNetwork() to create a new table 'ways_ways'. I made the topology  for it and ran the following query in Qgis sql window.   SELECT * FROM ways_ways JOIN (SELECT seq, id1 AS node, id2 AS edge, cost FROM  pgr_astar('SELECT id, source, target, cost, x1, y1, x2, y2 FROM ways_ways',  1, 108, false, false) )AS route ON ways_ways.id = route.node;   Given below are the screenshots: Original floorplan and the prescribed route  query ouput   Clearly , I don't have a continuous output. I ran pgr_analyseGraph on ways_ways to find that it has no more isolated segments . It has 51 deadends, which is acceptable.   Did I miss any step in pgrouting? Is there anyway to see which node has id 1 and id 108 in qgis?  i ran the same query in another map(which i downloaded) and got output for all possible source and target ids. So how can i create a way(a route) that is completely noded?


As I was reading Charles Dickens' Oliver Twist, I noticed some irregularities in the spelling choices. Specifically, in several words beginning with a v, Dickens switched them out with a w. Here are some examples:  1. Vicious- Wicious     "this is them wicious paupers!"   2. Vulgar- Wulgar     "if I thought as any one of 'em had dared to lift his wulgar eyes to that lovely countenance--"   3. Vile- Wile     "Say it again, you wile, owdacious fellow!"   My question is the following: is this some archaic form of spelling? When did it fall out of style, and how did it originate?

In Dickens' Pickwick Papers, there's a character "Sam Weller". Weller's dialogue is written somewhat phonetically, I presume, but I'm struggling to understand what accent Dickens is trying to portray. The main peculiarities of Weller's speech are using "v" where there should be a "w" and a "w" when there should be a "v". For example, he says "wery" instead of "very" and "avay" instead of "away". Weller is supposed to be from London, but this doesn't seem like any kind of London accent I've heard. Is this a particular archaic accent?  More importantly, what is Dickens telling us about Sam Weller by having him speak like this?


I have a number of client repositories in Subversion that are now being changed to git. The client does not care about the change history, so what I'd like to do is:   Import/ convert using Bitbucket Initialize a git repository in the current svn-controlled folder Start using git   Is this possible? Is it going to be a giant pain? The only real reason it matters is because I'd like to do this on the servers as well to avoid having to create a new project on each server and re-point the Apache/ Nginx/ etc configuration files.

I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like:  SVN repository in: svn://myserver/path/to/svn/repos  Git repository in: git://myserver/path/to/git/repos  git-do-the-magic-svn-import-with-history \ svn://myserver/path/to/svn/repos \ git://myserver/path/to/git/repos   I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.


The question I have is, what conditions must satisfy an external force dependent on velocity so it can be a part of the lagrangian and Euler-Lagrange equations are still true.

I'm currently working through the book Heisenberg's Quantum Mechanics (Razavy, 2010), and am reading the chapter on classical mechanics. I'm interested in part of their derivative of a generalized Lorentz force via a velocity-dependent potential.   I understand the generalized force   $$F_i = -\frac{\partial V}{\partial x_i} + \frac{d}{dt}\left(\frac{\partial V}{\partial v_i}\right)$$  that they derive from a Lagrangian of the form $L = \frac{1}{2}m|\vec v|^2 - V(\vec r,\vec v,t)$.  However, in the next (critical) step of the derivation, the author cites a theorem from Helmholtz saying      ...according to Helmholtz, for the existence of the Lagrangian, such a generalized force can be at most a linear function of acceleration, and it must satisfy the Helmholtz identities.   The three Helmholtz identities are then listed as:  $$\frac{\partial F_i}{\partial \dot{v_j}} = \frac{\partial F_j}{\partial \dot{v_i}},$$  $$\frac{\partial F_i}{\partial v_j} +  \frac{\partial F_j}{\partial v_i} = \frac{d}{dt}\left(\frac{\partial F_i}{\partial \dot{v_j}} +  \frac{\partial F_j}{\partial \dot{v_i}}\right),$$  $$\frac{\partial F_i}{\partial x_j} -  \frac{\partial F_j}{\partial x_i} = \frac{1}{2}\frac{d}{dt}\left(\frac{\partial F_i}{\partial v_j} - \frac{\partial F_j}{\partial v_i}\right).$$  I'm trying to understand where this theorem comes from. Razavy cited a 1887 paper by Helmholtz. I was able to find , but it is in German, so I could not verify whether or not it proved the theorem. Additionally, I could not find it in any recent literature. I searched online and in Goldstein's Classical Mechanics.   The only similar concept that I can find is in the  where we have three equations known as Helmholtz conditions. Are these two concepts one in the same? If so, how should I interpret the function $\Phi$ and the matrix $g_{ij}$ that appear in the Helmholtz conditions I found online?   If the cited theorem from Razavy does not relate from the inverse Lagrangian problem, could I have some help finding the right direction?


I am an Indian. I wanted to stay in Spain for one month, but by mistake my bookings were for 20 days only, so accordingly the Spainish Embassy has allowed me only 20 days.    How can I extend my visa, or can I apply online in any other nearby European countries?

My daughter applied at the Italian Consulate in Philadelphia, and they gave her two entries for 20 days (we thought it was for 20 days each entry). She was in Italy 12 days, then went to England for 1 week and flew to Venice to take a 10-day cruise. She couldn't make it because they said she has only 8 remaining days, but she still has a land tour already paid this week.  What can she do? Can she extend the Schengen visa for 12 more days? Right now, she is in Madrid, but next week she has to fly from Barcelona to Paris to start with the tour. What would happen if she decides to take the tour with the expired visa? She is a US permanent resident.


Having trouble trying to understand how to tackle this question.  $19^{16} \mod{20413}$. When approaching this question I understand the steps involved such as $19^{16} / 20413 = 1.413028039\cdot10^{16}$. However not sure what to subtract this answer to achieve a $0$ before the decimal point in order to multiply by $20413$ to get the answer. From the answer sheet the intended answer is $11546$.  Appreciate the help.

I came upon an interesting way to relatively quickly compute modular exponentiation with large numbers. However, I do not fully understand it and was hoping for a better explanation.  The method basically states if you have $x^y \bmod N$, it can be computed by repeatedly multiplying by $x$ modulo $N$:  $$x \bmod N \rightarrow x^2 \bmod N \rightarrow x^4 \bmod N \rightarrow x^8 \bmod N \rightarrow \ldots \rightarrow x^{2[\log y]} \bmod N$$  This is supposed to calculate in $\mathcal{O}(\log_2 N)$ time.  An example is given:  $$x^{25} = x^{11001_2} = x^{10000_2} * x^{1000_2} * x^{1_2} = x^{16} * x^8 * x^1$$  I don't really understand how this is faster. Aren't you just doing the same thing? You're just breaking down the exponents into representations of base $2$. Also where does $x^{2[\log y]}$ come from? If you're breaking it down into exponents of two where does a logarithm come from? (Aren't logs representations of numbers in exponents of $10$?)  I'm sorry if this appears to be a really stupid question - I have minimal knowledge in math.  Also, I wasn't sure if this belongs here or on stack exchange, so give me the word and I'll move it.