Unable to remove old kernel's to free up space on /boot

sudo apt-get purge linux-image-x.x.x-x-generic does not work  Unable to install anything as in synaptics, because there is no space on boot.  I get a message that boot has 0 bytes available.  After reading certain posts about this, I tried removing some of the old kernels, but each time I try, I get an error message saying that I should run apt-get -f install  When I try to run that, it says, I don't have enough space to run that command:  userone@userone:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED   linux-image-extra-4.4.0-98-generic 0 to upgrade, 0 to newly install, 1 to remove and 28 not to upgrade. 3 not fully installed or removed. After this operation, 153 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 476523 files and directories currently installed.) Removing linux-image-extra-4.4.0-98-generic (4.4.0-98.121) ... depmod: FATAL: could not load /boot/System.map-4.4.0-98-generic: No such file or directory run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic Error! Your kernel headers for kernel 4.4.0-98-generic cannot be found. Please install the linux-headers-4.4.0-98-generic package, or use the --kernelsourcedir option to tell DKMS where it's located Error! Your kernel headers for kernel 4.4.0-98-generic cannot be found. Please install the linux-headers-4.4.0-98-generic package, or use the --kernelsourcedir option to tell DKMS where it's located Error! Your kernel headers for kernel 4.4.0-98-generic cannot be found. Please install the linux-headers-4.4.0-98-generic package, or use the --kernelsourcedir option to tell DKMS where it's located run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic update-initramfs: Generating /boot/initrd.img-4.4.0-98-generic WARNING: missing /lib/modules/4.4.0-98-generic Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/4.4.0-98-generic: No such file or directory depmod: FATAL: could not search modules: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_sLktUc/lib/modules/4.4.0-98-generic/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_sLktUc/lib/modules/4.4.0-98-generic/modules.builtin: No such file or directory  gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.4.0-98-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-extra-4.4.0-98-generic (--remove):  subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing:  linux-image-extra-4.4.0-98-generic E: Sub-process /usr/bin/dpkg returned an error code (1) userone@userone:~$ ×   Any idea how to fix this issue?


I am building a java server that needs to scale. One of the servlets will be serving images stored in Amazon S3.  Recently under load, I ran out of memory in my VM and it was after I added the code to serve the images so I'm pretty sure that streaming larger servlet responses is causing my troubles.  My question is : is there any best practice in how to code a java servlet to stream a large (>200k) response back to a browser when read from a database or other cloud storage?  I've considered writing the file to a local temp drive and then spawning another thread to handle the streaming so that the tomcat servlet thread can be re-used. This seems like it would be io heavy.  Any thoughts would be appreciated. Thanks.


iOS: Your passcode is required to enable Touch ID

Occasionally, when unlocking my iPhone or iPad, I get the following message:     Your passcode is required to enable Touch ID   Now this is not after a number of failed attempts or turning the device off. The device was used within the last 12 hours. Two of the devices are less than 2 months old, and one is a year old. Everything is up to date. It appears to be happening more-or-less at random.  Does anybody know why this message might appear?


The association bonus should be adequate for downvoting

I was reading an answer on a SE site where I wasn't yet registered. It was unhelpful, so I register to downvote the answer. I couldn't, because you need 125 reputation to downvote.  The association bonus should be adequate for this privilege, so I'm asking to either lower the reputation requirement to 100, or up the association bonus to 125.


could someone please explain how the enhanced for loop in the code below would look if it was represented by a standard for loop? ex for(int loop = 0; loop < ____; loop++) etc. I am trying to understand what the enhanced for loop does but want to see how it is represented in a standard for loop. public static void main(String[] args) {     // get the list of each winning team by year     ArrayList<String> allWinners = readAndPopulateWinnersList();     int startYear = 1956;     for(String teams : allWinners) {         System.out.println(startYear++ + " : " + teams);     }          }


Proper way to execute a script on system startup?

As of Ubuntu 12.04, what is the proper/clean way to make the system execute a script upon boot? (not upon user login) e.g. running a daemon.


I know that like is a preposition but why not using it as conjunction?  Examples:        It's as if I'm walking on air   It's like I'm walking on air      What is the difference?


I want to be able to ask a question by sending an email to some special email address for Stack Overflow. I have found this convenient in other situations like Google Groups, blogging, and Facebook walls, and it seems that technically it shouldn't be too hard to do.  Does this feature exist already? I'm kind of afraid to ask for features as some of them get downvoted simply since users think they are not neccessary (and not because the post is bad).


When is it OK to create a custom table for a plugin?

A while ago I wrote a question asking about .   The recommendation that I received at the time was that I should avoid using the WP attachment metadata because it cannot be quickly queried for. Instead, what was recommended (and what I opted to implement) was to store all of the values in an array within an option. This works, but the design of the thing makes me want to cry. It goes agains every fiber of my being which says, "that should be its own table!" See what I mean:   So my question is, under what circumstances should a WP developer consider creating a custom table to support their plugin? I know that custom tables are generally frowned upon, but I feel like what I'm currently doing is an abomination and really would like to achieve my plugin's needs in a cleaner way.  My thinking with a custom table is that not only would it clean up this design disaster, but I would also have a higher degree of control over how and when values are loaded from the DB rather than just pulling EVERYTHING out before being able to do anything intelligent with the data. Additionally, unlike the current solution, a custom table would scale -- the current solution most definitely does NOT scale.


Encrypting a JPG, where the output is a scrambled JPG

Is there an algorithm or program that can take an image, be encrypted, still be opened by an image viewer, but is restored when decrypted?  Basically I want the ability to secure images but still have them seen as "image files".


How To Curve Road Without Array Modifier?

Ok so I have road and I would like to curve it smoothly without using arrays. I have it subdivided. Any ideas of how should I do it? Check the image below of my road and below that image you will see copy from internet of how I want it to look like:    Internet copy:    P.S. I forgot to say that I would like to do something so the road wouldn't have a lot of subdivision. What I mean is that I want it to be 1 solid road without any pieces that it is made up with. Because each time I upload it to software one of the faces goes invisible.


What is the canonical name for domain names with extra parts?

I am confused about domain names (I think)  I call these things, i.e. names you can buy, 'domain names'  bbc.co.uk google.com   I call these things, i.e. extensions of names 'host names'  www.bbc.co.uk mail.yahoo.com arts.mit.edu hello.there.example.com   Is this naming scheme correct? Are there official definitions of these?  In particular, what are each of the texts between the dots called (i.e. the name for "www", "bbc", "edu", "example")?


The new version of the android app 1.0.68 has a serious problem.  I can look at my first site just fine (say ask ubuntu for example).  When I go back to the main page/intro screen, it looks fine too.  When I touch a 2nd group (android enthusiasts for example) I get the list of questions displayed OK.  But when I touch a question, I get the main page/intro screen mixed up with the question screen, and the app crashes.  I reverted to version 1.0.63 and it works fine.  Android 4.2.2


Is the Hamiltonian fully defined by a quantum state (vector)?

From what I have read, the evolution of a quantum state is determined by the Hamiltonian (Schrodinger equation). However, I'm trying to understand if the Hamiltonian itself can be fully derived from the quantum state, or if it needs to be defined externally. From my understanding, the Hamiltonian includes information about the potential energy (when particles are interacting, etc), and that the laws of physics are actually "embedded" in the Hamiltonian, and not in the actual state vector. Is this correct, or does the state vector itself contain information about all the laws of physics? I hope my question is clear... Thanks!


I am trying to sublist an list which contains long.  a = [ -846930886, -1714636915, 424238335, -1649760492] print(a[2:1])   This returns []. What's happening? I could find only this way of sub listing.


In Jordan Peele's  we see that the Tethered plan a revolt, rise above ground and start murdering everyone in sight and then they form a line by holding hand in hand.   What was the purpose of that?


tabularx add vertical border line in merged cell

I'd like to draw vertical border lines in merged cells, but now merged cells do not have any vertical border line.  How can I add lines?  \begin{table}[htbp] \centering \caption{policy} \label{tab:mutationoperators} \begin{center} \begin{tabularx}{\textwidth}{|c|L|} \hline ope                 & Description               \\ \hline \multicolumn{2}{l}{Category1 }               \\\hline   d                       &       d                    \\\hline \multicolumn{2}{l}{Category2}                \\\hline                      f    &         f                  \\\hline                        f  &         f                  \\\hline \multicolumn{2}{l}{Category3}                \\\hline                      f    &       f                    \\\hline                       f   &        f                   \\\hline \multicolumn{2}{l}{Category4}              \\\hline                    f      &        f                   \\\hline                    f      &        f                   \\\hline                     f     &        f                   \\\hline \multicolumn{2}{l}{Category5} \\\hline                      f    &       f                    \\\hline                      f    &        f                  \\ \hline \end{tabularx} \end{center} \end{table}


Spectral radii and norms of similar elements in a C*-algebra: $\|bab^{-1}\|<1$ if $b=(\sum_{n=0}^\infty (a^*)^n a^n)^{1/2}$

Let $A$ be a unital $C^*$-algebra and $a\in A$ such that $r(a) < 1$. Define b  = $(\sum_{n=0}^\infty (a^*)^n a^n)^{1/2}$. We can prove that $b\geq e$ and that $b$ is invertible. I want to show $\| b a b^{-1} \| < 1$.   From the definition of $b$ we see that $a^* b^2 a = b^2-e$ and we know $r(bab^{-1}) = r(a) <1$.   So it suffices to prove $r(b a b^{-1}) = \| b a b^{-1} \|$. It can follow from the fact $c = ba b^{-1}$ is a normal element... I don't know how to prove it (I have tried to compare $c^* c$ and $c c^*$...).    Context: The question appears in Murphy's book, page 74.   I have managed to prove the first part. The second part of the question is to prove $$r(a)= \inf_{c\in Inv(A)}\{\|cac^{-1} \| \}$$ It's easy to see $$r(a) \leq \inf_{c\in Inv(A)}\{\|cac^{-1} \| \}$$ But I can't prove $$r(a) \geq \inf_{c\in Inv(A)}\{\|cac^{-1} \| \}$$ If we have had $r(a) = \|b a b^{-1} \|$ then it was obvious... But this is not true, so how we can prove this inequality?


I want to write a function that returns the nearest next power of 2 number. For example if my input is 789, the output should be 1024. Is there any way of achieving this without using any loops but just using some bitwise operators?


Show that if n divides a single Fibonacci number., then it will divide infinitely many Fibonacci numbers.

Show that if n divides a single Fibonacci number, then it will divide infinitely many Fibonacci numbers.


What constitutes a legal block in volleyball in regard to it not counting as the first hit?

Today in a match the setter set the ball too low for me to spike it, so I just dinked it over.  The bottom of the ball was lower than the top of the net at the point where I made contact.  When the defender made contact, again, the bottom of the ball was lower than the top of the net (the top of the ball was over the top of the net though).  I felt that this wasn't technically a block and that he shouldn't have been allowed to hit it a second time, but I wasn't sure so I just let it go.  Was this a legal block or should it have been our point when he hit it a second time in a row?  Edit:  I don't think I was clear about the part where, after I hit the ball, the ball travelled over the net onto the other team's side of the court.  The other player did not reach over the net so there is no issue there.  It's just an issue of whether or not their first contact was a block or a hit.  I believe it was not a block but I can't find a specific ruling to address it.


Path bar missing in file dialog after running software updater for Ubuntu 17.04

After running software updater, the path bar in the file dialog (for example the one you get when choosing Open File in in Google Chrome or Firefox) is missing. This is frustrating since it's no longer possible to copy a path from the terminal (for example) and paste it into the file dialog. Here is a screenshot of the dialog:     How can I get back the path bar?


Sort dictionary values into descending order

My task:   Get string from user Find out how many times each character in the string repeats find the two characters that repeat the least adding their frequency and add them together with the sum of their frequencies  Add this new sum back into the list, wherever it will now go, higher up repeat theses steps, until you have a huffman tree!   My code:  class Program {     static void Main(string[] args)     {         HuffmanTree.GetValue();     } }  class HuffmanTree {     public static void GetValue()      {         Console.WriteLine("Write a string to be encoded"); //Here we are asking the user to input a string         string encodeme = Console.ReadLine(); // here the user inputs their string, which gets declared as the variable "encodeme"          Dictionary<char, int> timesRepeated = new Dictionary<char, int>();          foreach (char ch in encodeme.Replace(" ", string.Empty))         {             if (timesRepeated.ContainsKey(ch))             {                 timesRepeated[ch] = timesRepeated[ch] + 1;             }             else             {                 timesRepeated.Add(ch, 1);             }         }          foreach (var item in timesRepeated.Keys)         {             Console.WriteLine(item + " : " + timesRepeated[item]);         }          Console.ReadKey();     } }  class Node {  }   So I am trying to sort the dictionary values "times repeated" into descending order so that when it prints out the amount of times that characters are repeated, it show these values in descending order.   For example if I inputted the string "BOOOM"  O = 3 B = 1 M = 1   At the moment it says:  B = 1 O = 3 M = 1   I am not sure how to do this!!!


Can I use Mending in the Broken Bones of a Skeleton that just died?

The mending Cantrip says:  This spell repairs a single break or tear in an object you touch, such as a broken chain link, two halves of a broken key, a torn cloak, or a leaking wineskin. As long as the break or tear is no larger than 1 foot in any dimension, you mend it, leaving no trace of the former damage. This spell can physically repair a magic item or construct, but the spell can't restore magic to such an object.  I see no reason why this shouldn’t be allowed to repair breaks in bones of a corpse, as corpses in 5E are objects. Is there something I’m missing as to why this wouldn’t be allowed or is my understanding correct? I do understand that this may be a RAW vs RAI issue, but I’m asking for the RAW answer not the RAI answer.


Windows does not boot when using UEFI boot mode

I have installed a fresh version of Windows 10 while the boot mode was legacy mode in the BIOS. When I change it to UEFI Windows does not boot anymore.   How can I use UEFI mode?


Primaries should select the top 8 candidates

When an election gets more than 10 nominations, primaries are held to select the top candidates. Currently, primaries select the top 10 nominations so that no election will have you choosing among more than 10 candidates, but that can be awkward when you are asked to pick the top 10 candidates... . Spending three days throwing out one candidate sound both awkward and a waste of time. I think it would make more sense if primaries were still triggered upon reaching 11 nominations, but then they should pick the top (say) 8 candidates. This would make primaries always meaningful (cutting down on the amount of choices to the most prominent/popular choices) but never awkward (you'd always prune at least a few people, and not just one or two).  As proof, I ran the elections of Stack Overflow, Programmers, Super User and Gaming, with and without the users that came up 9th and 10th at the primaries. The differences are negligible. Methodology The full ordering of the candidates can be obtained by running the elections with 1, 2, ..., 10 seats. The 4th place candidate is the one that wasn't elected with 3 seats but is elected with 4. To simulate what would happen when the 9th and 10th users in the primaries (marked yellow in the tables) would have been excluded in the elections, I used the "Withdraw candidates" option of OpenSTV, so that any preference for the two users is discarded correctly and the relevant ballots are updated correctly. Results In no cases was the ordering of the remaining candidates changed by this, and only 50 votes from Stack Overflow (out of 4,269) were completely removed as the result of ignoring the bottom two candidates. I think it is fair to conclude that running an election with 8 or 10 candidates makes no practical difference. Data porn


How to fix 'Attempt to invoke virtual method 'android.support.v4.app.p android.support.v4.app.k.a()' on a null object reference'

I am getting this crash from multiple users when trying to get fragment manager. Any idea why the crash?   @Override  public void onNoInternetError() {    Log.i("base", "no internet error!");    final FragmentTransaction ft = getFragmentManager().beginTransaction();    final NoInternetFragment fragment = new NoInternetFragment();    ft.replace(R.id.content_frame, fragment, "noInternetFragment");    ft.addToBackStack(null);    ft.commit();   Error  Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.p android.support.v4.app.k.a()' on a null object reference        at com.abc.abc.fragments.ABCFragmentBase$1.onNoInternetError(ABCFragmentBase.java:112)        at com.abc.abc.ui.components.NoInternetListener.showNoInternetFragment(NoInternetListener.java:14)        at com.abc.abc.ServerManager.handleFailure(ServerManager.java:1875)        at com.abc.abc.ServerManager.access$100(ServerManager.java:54)        at com.abc.abc.ServerManager$33.onFailure(ServerManager.java:1220)        at com.abc.sdk.JsonObjectRequest.deliverError(JsonObjectRequest.java:70)        at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:108)        at android.os.Handler.handleCallback(Handler.java:789)        at android.os.Handler.dispatchMessage(Handler.java:98)        at android.os.Looper.loop(Looper.java:164)        at android.app.ActivityThread.main(ActivityThread.java:6944)        at java.lang.reflect.Method.invoke(Method.java)        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)


What option(s) would you use to sort a file named foo in place, that is replacing the original file with the sorted version?

I have this homework question. I looked at the man page for sort and I believe the answer is -o, --output=FILE Is that correct?  It is a Fedora server.  We're supposed to look on man pages, if there is no man page related to the subject than use an info page. If no info page exists either than use the internet.


How to find $\lim_{n\to\infty}\sum_{k=1}^n \arcsin\frac{k}{n^2}$?

$$\lim_{n\to\infty}\sum_{k=1}^n \arcsin\frac{k}{n^2}$$ Any hints on how to approach this problem in the first place? The answer should be $\frac12$.  I tried transforming it so I can use a Riemann sum, but it doesn't seem correct.


Limit definition of a derivative in a word problem about a ball/velocity.

I have a few of the problems like the one below to solve this week for homework. If someone could give me some help on this one, it would greatly help in getting me started on knowing how to solve the rest of them. Thanks for any help in advance. Love this site.     When throwing a softball directly upward from a height of $5$ ft with an initial velocity of $50$ ft/sec, the height of the softball after $t$ seconds is given by $h(t) = -16t^2+50t+5$ (until the ball hits the ground).   A) Using the limit definition of the derivative, find the velocity $h'(t)$.  B) When is $h'(t) > 0$ and when is $h'(t) < 0$?


Existence of a ring homomorphism implies characteristic divisibility

Let $A$ and $B$ be rings having respective characteristics $n$ and $k.$ Show that if there exists a ring homomorphism $f : A \to B$, then $k$ divides $n$. I don't know how to start this problem. If someone has tips, I would appreciate it.


I am doing these kinds of revision on my own. And I have read some of the similar posts here and learned some techniques in doing it. However, when I was doing this question, I have trouble figuring out the divisibility of $5$. For 13, it is obvious that $n^{13} \equiv n( \text{mod} 13)$. For 7, factorize as $n(n^6 + 1)(n^6-1)$. The second parenthesis is divisible by $7$ by the same theorem. For 3, further factorization becomes $n(n^6+1)(n^2-1)(n^4+n^2+1)=(n^6+1)(n^3-n)(n^4+n^2+1)$. The middle part is divisible by $3$. For 2, when n is odd, the outcome is even; when n is even, the outcome is even.  However, for 5, I am trying to find something like $n^5-n$ or $n^4-1$ in the factorization process. But I can't find it. My careless mistake?? Or this has a special method to duel with. Thank you.


Rounding numbers in a table / Truncating text in table

Is it possible to have automatic rounding of numbers in a table?  Say that I have this, made in the usual way with a tabular environment:  pi  | 3.14592654 e   | 2.7182818284 phi | 1.6180339887   Can I control how many significant digits are shown without truncating the numbers manually myself?   So for example, if I need four significant digits, the numbers should appear as  pi  | 3.1459 e   | 2.7183 phi | 1.6180   Bonus points for actually rounding the numbers according to the usual rules without simply truncating them.    I understand this is probably non-trivial, so here's a relaxed version that will also work in my circumstances (all numbers have one and the same precision and character count):  (How) Can I control how many characters are rendered in a column of a table?  So if I define the text in the columns as:  \begin{tabular} % some black magic column definition    text & alongword\\    text & anotherlongword\\    text & morelongwords\\ \end{tabular}   I'd like to get something like:  text along text anoth text morel   I know there are non-TeX ways to do this, and I will probably resolve to writing a script if all else fails, but I'm curious whether there's a way to do it solely with TeX & friends.


Is $\sqrt[3]{2}$ contained in $\mathbb{Q}(\zeta_n)$?

Is $\sqrt[3]{2}$ contained in $\mathbb{Q}(\zeta_n)$ for some $n$, where $\zeta_n=e^{2\pi i/n}$?   I think the answer is no, but I can't give a full proof. Assume the contrary, we then have $\mathbb{Q}(\sqrt[3]{2}) \subset \mathbb{Q}(\zeta_n)$, can I say $\mathbb{Q}(\zeta_n)/ \mathbb{Q}$ is a cyclic extension but $\mathbb{Q}(\sqrt[3]{2}) / \mathbb{Q}$ is not, so this is a contradiction?


$|x_{n+1} - x_n | \le C|x_n - x_{n-1}|$ (show that $x_n$ is Cauchy)

Let$\{x_n\}$ be a sequence such that there exists a $0<C<1$ such that    $$|x_{n+1} - x_n | \le C|x_n - x_{n-1}|.$$   Prove that $\{x_n\}$ is Cauchy. Hint: You can freely use the formula (for $C \not=1$)    $$1+C+C^2+...+ C^n = \frac{1-C^{n+1}}{1-C}.$$   Let $x_n - x_{n-1} = y_n$. Then, $\frac{|y_{n+1}|}{|y_n|}\le C < 1$. This implies that $y_n$ converges to $0$ by ratio test. I also have the theorem that $y_n$ converges iff $y_n$ is Cauchy. But, I think that this does not mean $x_n$ is Cauchy. Could you give me some help? How can I use the hint given?


Finding a 2x2 Matrix raised to the power of 1000

Let $A= \pmatrix{1&4\\ 3&2}$. Find $A^{1000}$.  Does this problem have to do with eigenvalues or is there another formula that is specific to 2x2 matrices?


Why don't new sites appear on the reputation tab of my network profile?

I am a participant on , which . As of writing, I have ~1800 rep on Lifehacks.SE. However, on , Lifehacks.SE is not seen in the graph. On , which , I have a mere ~350 rep, but that is shown in the reputation graph. Since Q&A from private beta sites show on my network profile, why doesn't reputation?


How can I run a game with some players online and others at the table

A member of our group moved cross-country, and we'd like to include him in some of our games.  Is it feasible to play a game with some players at the table and another online? If so, how do I, as the GM, ensure everyone feels fully included and can see everything they need to see?  Or is it just easier to move the game to online-only, so everyone is interacting digitally?  Unless there is a particular feature that makes this sort of hybrid party more doable, I can refer to the many good discussions here and on other sites about roleplaying online and different software solutions. I'm more interested in pitfalls to avoid, story telling techniques, and the overall feasibility.


If you or somebody you know ... are/is ...?

What is the correct grammar for a sentence such as the following:  "If you or somebody you know is an experienced such-and-such, please contact us."  Vs.:  "If you or somebody you know are an experienced such-and-such, please contact us."  I primarily want to know which of "are" or "is" is the appropriate verb.  My hunch is that "you or somebody you know" can be substituted by a plural pronoun, which makes the verb "are"; but I am thrown off by "if somebody you know are" (which is wrong, I think - or at least it sounds wrong), and I don't know what the rule is.  There is also the rule that  - choose a verb as if one of the options was chosen. However, "you or somebody you know" is two singular options, but "are" is used with singular "you" while "is" is used with other singular subjects, and so they conflict. That's where my confusion lies (or is my confusion deeper -- are "you" and "somebody" actually subtly plural here?)


If gravitation causes constant acceleration why moon does not fall into earth?

If moon travels with constant speed in one direction and earth gravitation causes constant acceleration in perpendicular direction why moon does not eventually fall into earth? I mean if gravitation causes moon to fall faster each second (10m/s2) shouldn't after time velocity toward earth be big enough to cause it to fall ?


I'm playing with a trigger exercise, that consists of creating a trigger to create 10 Opportunities whenever a account with more than 100 employees are created. I made the following: trigger AccountTrigger on Account (after insert) {     List<Contact> Contacts = new List<Contact>();     for (Account acct : Trigger.new){                for(integer i = 0; i < 2; i++){             Contact cont    = new Contact();             cont.LastName   = acct.Name+ i;             cont.AccountId  = acct.Id;             Contacts.add(cont);         }         insert Contacts;      if (acct.NumberOfEmployees > 99){         List<Opportunity> Opportunities = new List<Opportunity>();         for(integer i = 0; i < 10; i++){             Opportunity opp = new Opportunity();             opp.Name        = acct.Name + i;             opp.CloseDate   = system.today()+ 30;             opp.StageName   = 'Open';             opp.AccountId   = acct.Id;             Opportunities.add(opp);         }         insert Opportunities;     }                      }  }   And I'm getting the following error: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATES_DETECTED, Use one of these records?:  I didn't created any, or changed the dupe rule of account neither Opportuinities. Can you help me understand what kind of error is this? And how can I change the trigger to workaround it? Thanks in advance!!


This code work on api 23 but in api 27 does not. It shows me this message:   Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference   Can someone please help?  I can't solve this. I am stuck over 1 week now.  the code is:  public class AdapterMenuList extends BaseAdapter {      private Activity activity;      public AdapterMenuList(Activity act) {         this.activity = act;     }      public int getCount() {         return ActivityMenuList.Menu_ID.size();     }      public Object getItem(int position) {         return position;     }      public long getItemId(int position) {         return position;     }      public View getView(int position, View convertView, ViewGroup parent) {          ViewHolder holder;          if(convertView == null){             LayoutInflater inflater = (LayoutInflater) activity                     .getSystemService(Context.LAYOUT_INFLATER_SERVICE);             convertView = inflater.inflate(R.layout.lsv_item_menu_list, null);             holder = new ViewHolder();              convertView.setTag(holder);         }else{             holder = (ViewHolder) convertView.getTag();         }          holder.nameProduct = convertView.findViewById(R.id.nameProduct);         holder.price50Text = convertView.findViewById(R.id.price50Text);         holder.price100Text = convertView.findViewById(R.id.price100Text);         holder.imgThumb = convertView.findViewById(R.id.imgThumb);          holder.nameProduct.setText(ActivityMenuList.Menu_name.get(position));         if(ActivityMenuList.Category_ID == 1 ){             holder.price50Text.setText("Pret 50 Tb: "+ActivityMenuList.Menu_price50.get(position)+" "+ActivityMenuList.Currency);             holder.price100Text.setText("Pret 100 Tb: "+ActivityMenuList.Menu_price100.get(position)+" "+ActivityMenuList.Currency);         }else{             holder.price50Text.setText("Pret: "+ActivityMenuList.Menu_price50.get(position)+" "+ActivityMenuList.Currency);             holder.price100Text.setVisibility(View.GONE);         }         Picasso.with(activity).load(Config.ADMIN_PANEL_URL+"/"+ActivityMenuList.Menu_image.get(position)).placeholder(R.drawable.loading).into(holder.imgThumb);          return convertView;     }      static class ViewHolder {         TextView nameProduct, price50Text, price100Text;         ImageView imgThumb;     }   }


What happens if you cast magic missile at an illusion?

From a comment on one of my answers: "An illusion isn't a creature so Magic Missile can't target it. RAW doesn't say what happens if you try to cast a spell with an improper target but the ."  This is weird and surprising.  I would have expected that, if a wizard tries to cast a spell with an invalid target, the spell would be lost.  (Side question: if a wizard is worried about mimics, can the wizard attempt to cast magic missile on furniture, knowing the spell will usually not be lost?)  The link above goes to a tweet which goes to another tweet which goes to a WotC page which goes to a 90-minute podcast.  Has anyone got a better source for this answer?


How to autostart a task at system start up i.e. myprogram.bin with admin rights?  Regards


Using AJAX to get SharePoint group user names?

Very often Ajax is used to get list items, delete them, update them etc.  I want to know how I can use ajax to get the usernames of a specific SharePoint group. (Just printing them on the console is enough for me)  This is what I've got, but it doesn't work out, because it tells me The property "results" of an undefined or null reference could not be called. What am I doing wrong? I tried using DOM Explorer to look up the HTML as well and I was able to figure out in which div the username was written, but don't know what to write in the code.  function getSPGroupUserInfos() {      NWF$.ajax({             url: "sites/bm/_layouts/15/people.aspx?MembershipGroupId=9",             type: "GET",             headers:                {                    "Accept": "application/json;odata=verbose"                },             success: function (data, status, xhr) {                 console.log("dataresults: " + data.d.results);                 var dataresults = data.d.results;                 for (var i = 0; i < dataresults.length; i++) {                 console.log("User Title - " + dataresults[i].Title);                 }             },             error: function (xhr, status, error) {                 console.log("Failed");             }         }); }


Android- how can I convert android.net.Uri object to java.net.URI object?

I am trying to get a FileInputStream object on an image that the user selects from the picture gallery. This is the android URI returned by android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI  content://media/external/images/media/3   When I try to construct a java URI object from this object, I get an IllegalArgumentException with the exception description Expected file scheme in URI: content://media/external/images/media/3 whereas the android URI shows the scheme as content  Update: Never found a solution for the original question. But if you want the byte stream of an image in the pictures gallery, this piece of code will do that.  Bitmap bitmap = Media.getBitmap(getContentResolver(), imageUri); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 40, bytes); ByteArrayInputStream fileInputStream = new ByteArrayInputStream(bytes.toByteArray());


I can't connect to internet without using my VPN with Ubuntu 16.04 LTS

I am new to Linux. I was thinking that I had trouble with the wifi driver until I found out that I could connect to the web when I use a VPN. My Internet was working fine until today. I need to be able to connect to the web without using a VPN.  The messages I get are below:  Firefox can’t find the server at www.google.com.   On the terminal:  $ uname -a   Linux MisterX 4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux  $ ping google.com ping: unknown host google.com  $ dig google.com   ; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com ;; global options: +cmd ;; connection timed out; no servers could be reached  $ ping ping 216.58.208.78 PING 216.58.208.78 (216.58.208.78) 56(84) bytes of data. 64 bytes from 216.58.208.78: icmp_seq=1 ttl=48 time=230 ms 64 bytes from 216.58.208.78: icmp_seq=2 ttl=48 time=226 ms 64 bytes from 216.58.208.78: icmp_seq=3 ttl=48 time=249 ms 64 bytes from 216.58.208.78: icmp_seq=4 ttl=48 time=224 ms ^C --- 216.58.208.78 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 224.005/232.736/249.737/10.094 ms  $ dig 216.58.208.78 ; <<>> DiG 9.10.3-P4-Ubuntu <<>> 216.58.208.78 ;; global options: +cmd ;; connection timed out; no servers could be reached  $ sudo nano /etc/nsswitch.conf passwd:         compat group:          compat shadow:         compat gshadow:        files  hosts:          files mdns4_minimal [NOTFOUND=return] dns networks:       files  protocols:      db files services:       db files ethers:         db files rpc:            db files  netgroup:       nis   I have tried:  $ sudo /etc/init.d/network-manager restart [ ok ] Restarting network-manager (via systemctl): network-manager.service.


The prompt is: Solve $au_x + bu_y = f(x,y)$, where $f(x,y)$ is a given function. If $a \neq 0$, write the solution in the form $u(x,y) = (a^2+b^2)^{-1/2}\int_L fds + g(bx-ay)$, where $g$ is an arbitrary function of one variable, L is the characteristic line segment from the y axis to the point (x,y), and the integral is a line integral. (Hint: Use the coordinate method.)    My attempt at a solution:  I changed variables to  $w = ax + by$  $e = bx - ay$ Now $ u_x = au_{w}+ bu_{e}$ and $u_y = bu_w-au_e$  so the PDE becomes $(a^2+b^2)u_w = f(x,y)$. Integrating both sides gives you $u = g(e) + \dfrac{\int{f}dw}{(a^2+b^2)}$  I am just having trouble getting from $\int{f}(a^2+b^2)^{-1}dw$ to $(a^2+b^2)^{-1/2}\int_L fds$  If I understand correctly, converting the integral to a line integral over the characteristic curve will introduce a factor of $(a^2+b^2)$, but I am new to PDE and I do not really know how to change the integral in $w$ to a line integral over the characteristic curve in $ds$.


Where did the First Order get its financing?

In the original trilogy the Galactic Empire was built upon the Republic, so the newly created Imperial Military had all the Republic's immense resources and finances to completely reform army and navy, to be able to produce high-end machinery (like Star Destroyers or AT-ATs) and even to build two Death Stars.  But the First Order doesn't seem to have such a big industrial power behind it, yet somehow it manages to be able to train a considerable number of troops from an early age (which would require having large boarding schools and quite a lot of money and time to train the boys properly), to afford at least one Star Destroyer-class ship with a trained crew, a fleet of advanced TIE-fighters and even to be able to convert a whole planet into a Death Star III. All that is just impossible for a small "order", even if it may be founded on the remains of scattered Imperial Military. So the question is - are there any explanations as to where does the funding come from?  Are there any major corporations or even whole sectors of the galaxy who sympathize the cause and are ready to finance the Order?


I compiled the following file (through MiKTeX which I have just updated all files), and I do not get the junk.pdf file inserted.  \documentclass{report} \usepackage{pdfpages} \begin{document} qwe \includepdf[pages=-]{./junk.pdf} \end{document}   The .log and junk.pdf file are there: ;   OK, yes it works with pdflatex, but I have to use latex->dvips->ps2pdf because of other constraints insertion of EPS figures). Beside, I do not know how to use the suggested lastpage option.  Using \includepdf[nup=2x2,frame,pages={1-13}]{./junk.pdf} I do correctly get 5 pages which should have included junk.pdf, but I get blank pages with a black dot in the center.


Multiple Nested IF formula receive Error: Syntax error. Extra ','

I'm trying to write a multiple nested if formula but keep receiving the following error.   Error: Syntax error. Extra ','  IF((TODAY() > CloseDate && TEXT(StageName)='Donation Likely'),TRUE),    IF((TODAY() > CloseDate && TEXT(StageName)='Donation Prospecting'),TRUE), IF((TEXT(StageName) <> 'Donation Likely'||TEXT( StageName ) <> 'Donation  Prospecting'|| TODAY() < CloseDate,FALSE)


I have a "Canon Pixma MX925" printer and run Ubuntu 16.04 on my computer.  How can I install and use this printer?


Hi I am trying to import a height-map and create a 3d model of it, but when I import it the resolution of it is very low. I've seen it done in youtube videos and it seems I am doing the exact same, but their image imports at a much higher resolution and therefore they get much more detail in their model. My heightmap is 2017x2017 pixels. Anyone knows why this is happening?  I am very new to blender. I added a plane, a subdivision surface and a displace modifier


I searched my Linux box and saw this typedef:  typedef __time_t time_t;   But I could not find the __time_t  definition.


Is $R=K[\![x^3,x^2y,xy^2,y^3]\!]$ a Gorenstein ring?

Let $K$ be a field and $R=K[\![x^3,x^2y,xy^2,y^3]\!]$ the ring of formal power series. Is  $R$ a Gorenstein ring?  $R$ is Cohen-Macaulay of dimension 2.   So, I have to check if $Ext^2_{K}(K,R)=K.$


What could be taking up 100GB+ storage in Other or how to find what is?

What could be taking up 100GB+ of storage in "Other" section? How can I find out? How can I reduce it? I ended up removing a lot of unused SDKs and cachces under ~/Library but even then that was only a few GBs as much of the web searches pointed to this dir.


I've just returned from a trip.  One of the locations was very dark site. I took a photo with 4 minutes exposure for the foreground. The photo came out unusable. There are so many red, green, and white hot pixels. It's beyond photoshop clean up.  Is there a way to photograph such a dark foreground without getting hot pixels? I've heard that stacking multiple photos with lower (relatively) ISO + 30 sec shutter speed might work. How does that work and are there any other ways to prevent hot pixels other than using a film camera?


Is Deadpool from the movie the same character as Wade in X-Men Origins Wolverine?

Is the character played by Ryan Reynolds (Wade Wilson) in X-Men Origins: Wolverine the same as the character played by Ryan Reynolds in the upcoming movie Deadpool?  Or is the X-Men Origins: Wolverine movie set in a different universe than the Deadpool movie [The Marvel Cinematic Universe vs. The X-Men Cinematic Universe]?


When I run this command:  https_proxy=http://myproxy.com/ aws [aws-param]   the proxy is picked up by the aws command line tool.   However - when I do this:  https_proxy=http://myproxy.com/  aws [aws-param]   the aws command doesn't pick up the proxy.   To me, they're the same from a unix point of view. Is this something about the way python reads environment variables?  My question is: Why does an inline variable definition work but a previous line does not for an aws command?


How do I make a multiline equation but giving this only one equation number

I want all these three equations to be known as (1). Not (1), (2), (3).  \documentclass[11pt]{article}   \usepackage{fancyhdr, lastpage} \renewcommand{\headrulewidth}{0pt} \pagestyle{fancy} \fancyhf{} \fancyfoot[C]{{\thepage} of \pageref{LastPage}}  \usepackage{amsmath} \usepackage[T1]{fontenc} \usepackage{booktabs, caption} \usepackage{tabularx} \DeclareMathOperator*{\plim}{plim} \usepackage{threeparttable} \usepackage{booktabs} \usepackage{dcolumn} \usepackage{pdflscape} \usepackage{longtable} \usepackage{threeparttablex} \usepackage{lipsum}  \begin{document}   \begin{align} E[y_i |z_i] &= \beta +\alpha E[d_i |z_i] + E[u_i |z_i] \\  &= \beta+\alpha P(z_i) +E(u_i) \\  &= E[y_i|P(z_i)]  \end{align}  \end{document}


How do you filter only the numbers of a string?  Example Pseudo Code: number = $("thumb32").filternumbers() number = 32


I'm not sure the above sentence is true, but I read it ,  and  that quantile loss function percentile 0.5 is MAE(mean absolute error), Is it true(Yes or No)? and How?


How do I give JavaScript variables data from ASP.NET variables?

I have created a SCORM API for our LMS and right now I am using hard coded userID and courseID variables (variables that reference things in the database). I need to pass the real userID and courseID instead of using hard coded ones. I know the userID is stored in the session and the courseID is passed over from the launch page.  How do I get these into JavaScript so I can include them in my calls to the .ashx that handles the SCORM calls?


Is fractional scaling ( ) available in 18.04 LTS yet? I am waiting until this is available before I install.


I have stereo differential (meaning each left and right speaker have 2 wires) headphones. The specs say that impedance of headphones is 8 ohms. I need to drive this headphones with a dac with built-in headphone driver.    All the dac chips i have searched (from analog devices(adau1772) and asahi kasei(ak4373) )  which can drive differential left and right channels have mentioned in datasheets that this chip can drive 16,24 and 32 ohm headphones. I cant find a dac or audio codec which says it can drive 8 ohm headphones. My questions are : 1) can i be wrong in understanding the specs of differential stereo headphones? Can two 8 ohm speakers add up impedance to 16 ohms? 2) if we assume that headphones impedance is 8 ohms, what will happen if I drive this headphones with chip whose datasheet says it supports minimum headphones impedance of 16 ohms? 3) can you suggest any dac or audio codec chip which can drive 8 ohm differential headphones?


Justification of the log transformation of independent variables

I have used the following negtaive binomial model: p3<-glm(formula = Infected ~ log(1 + PopDensity) + log(1 + GDPPPP)+ LifeExpectancy,family=negative.binomial(1),maxit=10000,data=df)  How can I justify the following questions?  What is the rationale behind the explanatory variables,  log(1+Popdensity), log(1+GDPPPP)? Why do we need such unusual transformation for those variables?  What is the problem if we use Popdensity and GDPPPP as covariates?   My intention was to use log transformation because I had some countries like India with high population density. Some countries had very low population density. I don't know how to justify this log transformation. I appreciate your suggestions! Thanks!


Bash printf sequence with interactive input

In bash how to get printf take input interactively to print a sequence. I have tried the following: read x; read y; printf '%s\n' {"$x".."$y"..5} 0 40 {0..40..5}  whence I am trying to get the output like this: printf '%s\n' {0..40..5} 0 5 10 15 20 25 30 35 40


Login to Stack Exchange account doesn't use HTTPS/SSL?

I have created a Stack Exchange account and have found that the login page does not use HTTPS/SSL.  I do not like to login without this protection, so is there a way to log in with HTTPS/SSL?


ziping all files in a folder without all directories

I used  this command to zip all files in a folder : zip -r fixedrom.zip /sdcard/dbtools/zipfix/fix/ ;  It works fine but the zip should be like this : Meta-inf  Recovery System Boot.IMG Etc...  But after unziping  its like this Sdcard>dbtools>zipfix>fix>(and files and folders above ) How to fix this ? Thanks in advance


I can not edit my own comment which is 20 minutes old

I can not Edit my comment which was posted 20 minutes ago. I can only delete it.  If I add a new comment I can delete or edit it.  Is this a bug or feature? I don't see why someone should not be able to edit his/her own comments.  I usually double check my posts before I put a comment or an answer but I would like to correct a possible typo to keep the posts clean.


Doesn't the Big Bang negate the law of conservation of matter?

I was watching Hawking (2004 film) and in the movie, Hawking has a sudden insight that all the matter and energy observed in the known universe may, in fact, have sprung out from nothing (singularity) during the Big Bang event—an insight which later on goes to become the main subject of his thesis.  But this completely flies in the face of the laws of conservation of matter and energy. What gives?


$\textbf{Question:}$ Let $f:\mathbb{R}\to\mathbb{R}$ be a twice differentiable function such that $$\frac{1}{2y}\int_{x-y}^{x+y}f(t)dt=f(x)$$ holds for every $x\in\mathbb{R}$ and $y>0$. Show that there exists $a,b\in\mathbb{R}$ such that $f(x)=ax+b$ for all $x\in\mathbb{R}$.   $\textbf{My solution:}$ It is given that $$f(x)=\frac{1}{2y}\int_{x-y}^{x+y}f(t)dt \hspace{0.5cm}...(1)$$ for every $x\in\mathbb{R}$ and $y>0$.   This also implies that $$2y.f(x)=\int_{x-y}^{x+y}f(t)dt \hspace{0.5cm}...(2)$$ for every $x\in\mathbb{R}$ and $y>0$.  Differentiating $(1)$ with respect to $x$ (by Leibnitz Rule), we have $$f'(x)=\frac{1}{2y}\left(f(x+y)-f(x-y)\right)$$ $$\implies 2y.f'(x)=f(x+y)-f(x-y)\hspace{0.5cm}...(3)$$ for every $x\in\mathbb{R}$ and $y>0$.   Differentiating $(2)$ with respect to $y$ (by Leibnitz Rule), we have $$2f(x)=f(x+y)+f(x-y)\hspace{0.5 cm}...(4)$$ for every $x\in\mathbb{R}$ and $y>0$.   Adding $(3)$ and $(4)$ and dividing both sides of the equality by $2$ we have $$f(x)+yf'(x)=f(x+y)$$ $$\implies f'(x)=\frac{f(x+y)-f(x)}{y}\hspace{0.5cm}...(5)$$ for every $x\in\mathbb{R}$ and $y>0$.   Again differentiating $(3)$ with respect to $x$ we have $$2y.f''(x)=f'(x+y)-f'(x+y)\hspace{0.5cm}...(6)$$ for every $x\in\mathbb{R}$ and $y>0$.   Now, by differentiating $(3)$ with respect to $y$ we have $$2f'(x)=f'(x+y)+f'(x-y)\hspace{0.5cm}...(7)$$ for every $x\in\mathbb{R}$ and $y>0$.   Adding $(5)$ and $(6)$ and dividing both sides of the equality by $2$ we have $$f'(x)+yf''(x)=f'(x+y)$$ $$\implies f''(x)=\frac{f'(x+y)-f'(x)}{y}\hspace{0.5cm}...(8)$$ for every $x\in\mathbb{R}$ and $y>0$.   Now let us take any $x=x_1\in\mathbb{R}$. Then by $(5)$ we have $$f'(x_1)=\frac{f(x_1+y)-f(x_1)}{y}, \forall y>0.$$   Now let us take any $y=y_1>0$. Then by applying MVT to the function $f$ on the interval $[x_1,x_1+y_1]$ we can conclude that $\exists c_1\in(x_1,x_1+y_1)$ such that $$f'(c_1)=\frac{f(x_1+y_1)-f(x_1)}{y_1}$$ $$\implies f'(x_1)=f'(c_1).$$   Again by applying MVT to the function $f'$ on the interval $[c_1,x_1]$ we can conclude that $\exists c_2\in(c_1,x_1)$ such that $$f''(c_2)=\frac{f'(x_1)-f'(c_1)}{x_1-c_1}=0$$ $$\implies f''(c_2)=0.$$   This implies by $(8)$ we can conclude that $f'(c_2)=f'(c_2+y), \forall y>0$.   Now by $(7)$ we have $$2f'(c_2)=2f'(c_2+y)=f'(c_2+y)+f'(c_2-y)$$ $$\implies f'(c_2+y)=f'(c_2-y)$$ $$\implies f'(c_2-y)=f"(c_2+y)=f'(c_2), \forall y>0.$$   Thus we have $f'(x)=f'(c_2)=c, \forall x\in\mathbb{R}.$   Thus we can conclude that $f$ is linear, which implies that, $\exists a,b\in\mathbb{R}$ such that $f(x)=ax+b, \forall x\in\mathbb{R}$.   Is there a better and shorter solution to this problem?


How do yo convert this 2014-11-03 17:01:37 into Unix Timestamp? Is there a method that I can use.


How can I blend grass LOD's smoothly in unity, similar to the method in BOTW?

. I tried to imitate the LOD effect in unity using crossfade LOD but . I've done some research into the subject but can't seem to find anything about blending foliage in this way so I'm looking for advice. Thanks so much!


vertices a great distance, only hold down ctrl they move slower

Vertices only move when I hold down the ctrl key, otherwise they move a great distance.


Formula for OLS slope coefficients with K regressors?

Does anyone know if there's a general expression for the jth slope coefficient from a multiple regression with K independent variables, in terms of variances and covariances? Obviously, the expressions in the case where K=1 and K=2 are straightforward, but is there a more general expression?  And yes, I know how to find the betas using matrix algebra ... but that's not appropriate in the context I'm looking at.


I'm following instructions on Mikogo website , but it doesn't work. ./mikogo doing nothing. Please, help.


I am following the instructions here to upgrade Ubuntu from 17.10 to 18.04. But when I run update-manager -d I get errors:     No protocol specified Unable to init server: Could not connect:   Connection refused No protocol specified Unable to init server: Could   not connect: Connection refused No protocol specified Unable to init   server: Could not connect: Connection refused      (update-manager:7789): Gtk-WARNING **: cannot open display: :0


Ceasar Cipher method of decryption isn't working and is printing nothing

I am very new to programming and can't figure out the issue with my Cesar cipher my method for encryption works fine but my method for decryption is not working.  Main class  package com.company;  import java.util.Scanner;  public class Main {     public ceasarCipher ceasarCipher;      public static void main(String[] args) {          com.company.ceasarCipher utilityClass = new ceasarCipher();         int inShift;         String inString;         String encryptedString = "";          Scanner sca = new Scanner(System.in);          System.out.println("Please enter a string to encrypt");         inString = sca.nextLine();          System.out.println("=======================================================================================");         System.out.println("In this program");         System.out.println("Press 1 to encrypt your string by shifting it forward a certain amount");         System.out.println("Press 2 to decipher your string by shifting it backwards a certain amount");         System.out.println("Press 3 to give you all possible combinations of the shift in order to decipher");         System.out.println("Press 4 to exit the program");         System.out.println("=======================================================================================");          while(!sca.hasNext("x") && !sca.hasNext("X")){              int userInput;             userInput = sca.nextInt();              switch (userInput){                  case 1:                     System.out.println("Please enter the amount greater than 0 that you would like your String to be shifted forwards in order to encrypt it");                     inShift = sca.nextInt();                     System.out.println(utilityClass.ccEncrypt(inShift,inString));                 case 2:                     System.out.println("Please enter the amount greater than 0 that you would like your String to be shifted backwards in order to decipher it");                     inShift = sca.nextInt();                     System.out.println(utilityClass.ccDecipher(inShift,encryptedString));             }         }     } }   Subclass with methods  package com.company;  /**  * Created by Jake on 14/04/2017.  */ public class ceasarCipher {      private int maxVal = 26;      //private int inShift;     //private String inString;     private String letters = "abcdefghijklmnopqrstuvwxyz";      //-----------------------------------------------------------     public String ccEncrypt (int inShift, String inString) {          String encryptedString = "";         char modulo;         int pos;          inString = inString.toLowerCase();          for (int i = 0; i < inString.length(); i++) {              pos = letters.indexOf(inString.charAt(i));              modulo = this.letters.charAt((pos + inShift) % maxVal);              encryptedString += modulo;         }         return encryptedString;     }     //----------------------------------------------------------------------      public String ccDecipher (int inShift, String encryptedString) {          String decipheredString = "";         char modulo;         int pos;          for (int i = encryptedString.length() - 1; i >= 0; i--) {              pos = letters.indexOf(encryptedString.charAt(i));              modulo = this.letters.charAt((pos - inShift) % maxVal);              decipheredString += modulo;         }         return decipheredString;     }     // -----------------------------------------------------------------------      public void ccDecipherAll (String inString){      } }


sed to replace a word from a file with the contents of another file?

I have two files file1 & file2.  Contents of file1:  Text1 Text2 Text3   Contents of file2:  Sample1  Sample2 Sample3   I would like to replace the word Text1 from file1 with the contents of file2. I already tried the below commands:  sed -i 's/Text1/r file2/g' file1 sed -e 's/Text1/`cat file1`/' < file2   Neither of which worked, what am I missing?


Generally finding a Residue of a function with $n^{th}$ order pole is done with  \begin{equation}\label{eq:1} Res(f(z),z_0) = \dfrac{1}{(n-1)!} \lim_{z \to z_0} \dfrac{d^{n-1}}{dz^{n-1}} (z-z_0)^n f(z) \end{equation}  For poles of $1^{st}$ order it's simply $ Res(f(z),z_0) =\lim_{z \to z_0}  (z-z_0) f(z) $. This can be written as $ Res(f(z),z_0) = \dfrac{g(z_0)}{h'(z_0)}$ if the original function was in the shape $\dfrac{g(z)}{h(z)}$  Now. I am looking for such an expression of $2^{nd}$ order poles. For the $1^{st}$ order case because $h(z)$ has zeros of 1st order so $h(z)$ can be written as $h(z)=h(z)-h(z_0)$ and $h(z_0)=0$.So it all falls on the same place and gives you the simplified equation for residue. But for $2^{nd}$ order pole there is much complication, i.e there is additional derivative term and I can't simplify.


If acceleration $a = v\cdot\frac{\mathrm dv}{\mathrm dx}$ , then why isn't acceleration always zero when velocity is zero?

We know that,  $$\begin{align} a&=\frac{\mathrm dv}{\mathrm dt}\\[3pt] &=\frac{\mathrm dv}{\mathrm dx}\cdot\frac{\mathrm dx}{\mathrm dt}\\[3pt] &=v\cdot~\frac{\mathrm dv}{\mathrm dx} \end{align}$$  According to this equation, whenever velocity is $0$, acceleration becomes $0$ as well.   However, we know that this is not always the case.   For example, when we throw a ball upwards, at its maximum height, its velocity becomes $0$ but the acceleration is non-zero ($g$ downwards).  Can someone please help me understand what is wrong in my approach?


Prove that $\gcd(3^n-2,2^n-3)=1$ if and only if $\gcd(6^n-4,2^n-3)=1$ where $n$ is a natural number.   I was thinking of using something with the Euclidean algorithm, but I still don't see how to take into account the fact that the gcd is $1$. We know that $3 \nmid 3^n-2$ and both $3^n-2$ and $2^n-3$ are odd, so that may help.


Why R is not significant (and very low), while all predictors are significant?

I used a network logistic regression to regress five predictors against a dependent. They are all significant, instead the R is not significant and it's even very low. I can understand that it may be low because I need to add predictors but I cannot explain why it's not significant. Do you have any idea about?


Using simple quotes "" instead of \text{}

Is there a way to use newcommand or some other nice technique to transform any occurence of  "bla"   in math mode into  \text{bla}   The reason I ask is because it is easy, and doesn't interrupt the flow of reading the (La)TeX code as much.  I would like to keep Xe(La)TeX's nice quote behavior (ie it can use the regular "" instead of backticks to quote some text outside math mode).


How does RNA transcription determine which half of the DNA to use?

I feel that I might have a complete misunderstanding here. If DNA has two strands, how does the machinery of RNA transcription determine which one to transcribe?


Usage of articles before the noun 'hospital'

Swan provides the following examples (Second editions/unit 134/2):     Will you come and visit me in hospital when I have my operation?   According to , hospital is a singular count noun, so we should use an article before one. But we didn't. Why?


Why don't DSLR camera specifications include a zoom ratio (e.g. 3x zoom) like compact cameras?

For example, there is no mention of the zoom .  I'm guessing that it's specified in some other specification.  If so, what do I look at and how do I compute the zoom from it?  I've looked at a few SLRs and none of them say the zoom.  Why do other cameras tell you and these don't (or at least why is the way the information is presented different)?


I like using an empty with an image as a refrence, but the images display blurry when zoomed in.  Ideally, I would like it to look crisp like this:  Is there something in the user preferences or somewhere else to do this?


If I pass an object to a constructor and then modify that object, will it modify the original? Why?

If I have a class that looks like this: class Web {     WebDriver driver;           public Web(WebDriver driver) {         this.driver = driver;     } }  will this.driver used throughout the Web class affect the original driver that was passed in? I need them to both reference the same object.


I've just seen the following sentence on a band's biography:     Had it not been for a studio theft, the band might never have made that song.   Then I was wondering if I can change this sentence to:     If it were not for a studio theft, the band might never have made that song.   Is the second sentence correct? Are they interchangeable?   Thanks in advance.


Artifacts at particular edges after Subdivision modifier

So, the problem is basically visible at the pictures. The edges (the vertical one at the corner and the horizontal one going all the way to the back) seem "pinched" after adding subdivision surface modifier. What's strange is that the vertical one starts to behave abnormally in 1/3, where it connects to the horizontal one.   As you can see there is no such problem at the back with the vertical edges, however the horizontal edge is still wrong.   I've tried creating loop cuts to make the bent more round (as it is at the back) and make the vertical edge look better, but nothing really changed. I've also tried the loopcuts to fix the horizontal one with the same effect (or lack of any). I've read that weighted edge creases might help, but I'm not sure where and how to apply them in my case. Thanks in advance to anyone trying to help me. I'm still a noob in 3D modelling, so go easy on me :D


How do I find flights that avoid US airspace?

Persons on the US no-fly list are not only unable to fly to the US (obviously), but to board a flight which might enter US airspace e.g. in an emergency. Is there any way or online resource to find out which flight paths particular flights use, and which flight paths have or do not have the potential to be redirected to US airspace?   Edit for clarification: Thank you all for the resources. I am specifically looking for flights (or information on flights) which will not enter US airspace including (to the extent foreseeable) on an emergency basis. I am assuming that whether or not a flight will or might enter US airspace is foreseeable and part of the organization of commercial flight-paths?


conjugate prior for exponential distribution

If there is an exponential distribution  $$p(x | \theta) = \theta\,e^{-x\theta}\mathbb{I}_{x>0}\, ,$$  what is a good conjugate prior? Also, will the posterior mean is a convex combination of prior and MLE


Options to show images when on the console

When I am on the console (the tty, the virtual terminal, which you reach with Ctrl+Alt+F1-6, not a terminal emulator), what options do I have to view images, tiff, whatever that's not text?


Which is more natural and why: 'knocking on the door' or 'knocking at the door'?  And which is grammatically correct?


Execute a Java program from our Java program

I used   Runtime.getRuntime().exec("_____")   but it throws a IOException as below:  java.io.IOException: CreateProcess: c:/ error=5   at java.lang.Win32Process.create(Native Method)   at java.lang.Win32Process.<init>(Win32Process.java:63)   at java.lang.Runtime.execInternal(Native Method   I don't know whether I have the problem with specifying the path or something else. Can anyone please help me with the code.


Linear Regression and correlation - Avgerages VS Raw Data

I faced the following problem: I took a raw-data with two variables: x - independent variable, ranges between 1-5. y - dependent variable, boolean variable 0, 1. Got the following density plot, and performed Linear Regression: percentages under each accumulation represent the % of dots in a specific accumulation out of all the dots in the same x value. Sum of percentage of a specific x value is 100%.  The R - squared is about 0. However, if I calculate the average of each x value (which is the % between each accumulation where y = 1 actually) I got the following:  R Squared about 1 !! It also affect Pearson correlation coefficient ofcourse. Can you help me to solve the discrepancy please ? By definition, linear regression describes the mean of each x value, so if the averages so fit linear line, why the R squared of the first plot is so low ?


Which audio and video codecs are natively supported by Windows 7?

At work we have a creative group which produces videos that our sales team uses for powerpoint decks, client presentations, etc.  The creative group is mac-based so they produce quicktime files which are unplayable on a Windows PC unless you install Quicktime (which we don't, by default).  Quicktime files also don't work very well when you try to embed them into a powerpoint presentation.  We're tired of dealing with video compatibility issues so we want to tell the creative group to produce videos in a more compatible format, but I'm not sure what that should be.  I don't really want to tell them to produce windows media video files because that isn't the most compatible format outside Windows.  Is there a generic format that Windows 7 can play without the need for any additional software?  I was thinking h264 or something similar, but had a tough time finding a definitive list of what Windows supports.  What I'm really asking is what would be the best video codec and container that's compatible with Windows 7 out of the box and also compatible with the largest number of other systems?


How to write below textheight and above footer

MCQ Paper is mentioned below (Thanks to Erik) ;   \documentclass[addpoints,answers,10pt]{exam} \setlength\textheight{15cm} \setlength{\footskip}{8.5cm}  \providecommand{\myquestion}{% \question  Question text  \begin{choices} \choice First choice \choice Second choice \choice Third choice \choice Fourth choice \end{choices} \medskip } \begin{document} \begin{questions} \myquestion \myquestion \myquestion \myquestion \myquestion \myquestion \myquestion \myquestion \myquestion  \end{questions} \end{document}   I want to add heading "Space for rough work" and Horizontal Line as mentioned in the diagram below (Highlighted in RED color).     Kindly advise?


I have given a regex   let reg = new RegExp("^[-]?[0-9]*.?[0-9]{1,4}$"); console.log(reg.test("45-45")); //true console.log(reg.test("sd545")); //true console.log(reg.test("5*45")); //true      Expected behavior if any string or speial char it should through error   the above all console should through false What i am doing wrong?


What are drawbacks or disadvantages of singleton pattern?

The  is a fully paid up member of the 's , but it lately seems rather orphaned by the developer world. I still use quite a lot of singletons, especially for , and while you have to be a bit careful about multithreading issues (like any class actually), I fail to see why they are so awful.  Stack Overflow especially seems to assume that everyone agrees that Singletons are evil. Why?  Please support your answers with "facts, references, or specific expertise"


I was wondering if you could help me out with the phrase "Authenticity guarantee". Is it proper English to use this?   Would  "Authentic guarantee" or "Authenticity guaranteed" be more correct?


Iam running Ubuntu Server 14.10 in Oracle VM VirtualBox. Whenever i start the VirtualBox, it changes IP address. To run putty or WinScp, i had to check everytime. Is there any way to assign a static IP so that i need not login to check IP everytime i start the VirtualBox


Series of natural numbers which has all same digits

For which $x$ exists sum $1 + 2 + 3 + \ldots + n$, where $n > 3$, which has notation $xxx\ldots x$?   In other words, I am looking for a sum of natural numbers which gives a result which has all same digits, e.g. $5555555$ or $22222222222222222$, or whatever else.  How to find this series and how to proof it for all possible series?  I have found the following examples:   $1 + 2 + 3 + \ldots + 10 = 55$ $1 + 2 + 3 + \ldots + 11 = 66$ $1 + 2 + 3 + \ldots + 36 = 666$     And what about next series which ends with (different) repeating $x$? Hot to find and proof it?


Is there a term for words that are sounded out initialisms?

The words "okay" and "emcee" seem to both be somewhat widely accepted (at least, I can find both in several dictionaries). But it seems to be agreed that these are simply sounded-out spellings of the initialisms "O.K." and "M.C." respectively.  Are there any other words like this, and is there a general term for them?


How should required field validation be handled visually?  Note: assume asterisk is red  *Name:[_______________]   or  Name:*[_______________]   or  Name: [_______________]*   or  Name: [____red bg____  ]  or  Name(<- font color red): [_______________]  or  You tell me a better way!


Different Dll Checksum when build source code on different PC

i have an asp.net webform (C#) project but when i try to build and compile project on two pc (same source code) result binary in bin are different,  Visual Studio 2015 and same publish profile settings  how we can explain why same source code make different output binary on checksum?  also i read:


What filesystem should I choose for an SSD?

I am going to set up a new Linux system on the SSD drive. Does the filesystem choice make a difference for them? Should I go with the default ext4, maybe try XFS, or does it just not matter?


If $\wp(u) = \wp(v)$, then $u-v$ or $u+v$ is a period of $\wp$

The Weierstrass $\wp$ function with an associated lattice $L$ is given by the following equation for $z \notin L:$ $$ \wp(z)=\frac{1}{z^{2}}+\sum_{\omega \in L \backslash\{0\}}\left[\frac{1}{(z-\omega)^{2}}+\frac{1}{\omega^{2}}\right]. $$ What we want to show that $\wp(u) = \wp(v)$ if and only if $u-v$ or $u+v$ is a period of $\wp$. My attempt: ($\Leftarrow$): If $u-v$ is a period of $\wp$, then $\wp((u-v)+z)=\wp(z)$. In particular, we have that $$\wp(u)=\wp((u-v)+v)=\wp(v).$$ Similarly, If $u+v$ is a period of $\wp$, then $\wp((u+v)+z)=\wp(z)$. In particular, we have that $$\wp(u)=\wp((u+v)-v)=\wp(-v)=\wp(v),$$ since $\wp$ is an even funciton. ($\Rightarrow$): Is there any idea to show this direction?


How to print the incremented value by 0.1 using c?

I am trying to print the incremented values up to the given number by (0.1). I am getting two inputs x and y and then I am trying to print the values from x to y incremented by 0.1, but i am facing the problem. Below is my code. Thanks in advance.  #include<stdio.h> int main() { float x,y,i; scanf("%f %f\n",&x,&y); for(i=x;i<=y;)  {   printf("%.1f ",i);   i=i+0.1;  }   Input:  9.4 10.2  Output:     9.4 9.5 9.6 9.7 9.8 9.9 10.0 10.1   Expected Output:     9.4 9.5 9.6 9.7 9.8 9.9 10.0 10.1 10.2


How to say that any group of order $pqr$ is cyclic with a provided relation between $p$, $q$, $r$, where they are all distinct primes.

I have given that, let $G$ be a group of order $455$. Then I have to show that $G$ is cyclic. Then by using Sylow-theorems it can be solved. But my question is, is there any method to see quickly that a group of order $pqr$ with a relation between them, where all of $p$, $q$, $r$ are distinct primes, is cyclic. Just like a group of order $pq$ is cyclic if $q>p$ and $p$ does not divide $q-1$. For example, any group of order $15$ is cyclic just from the above argument. Here $455=5.7.13$. So is there any simple way to say $G$ is cyclic?


how did zamasu comeback inthe future when burees killed him in dragon ball super

ok heres where im confused at so ho did zamasu come back if burees kill him and dont yall remember after grand master zeno destroyed the comos and goku and everybody came back and when came back burees said ill go kill your zamasu aka trunks zamasu before he go crazy or whatever and truks went back home so how did he com back


How many $m\times n$ tables are there if they are subject to the following two conditions?    In each cell of the table we have $1$ or $-1$. The product of all the cells in any given row and the product of all cells in any given column equals $-1$.    I already know if Parity of $m$ and $n$ are different there is no such a table. what is the answer in general?


Does my husband need a visa for a layover in Turkey?

My husband is a national citizen of Nigeria. He has a 5 year permanent permit to live in Lithuania. We are planning to fly to Nigeria through Istanbul and the time between flights is more than 15 hours. We would get a hotel from Turkish airlines. Does my husband need a visa while in Turkey?


Does transportation really make a sound in-universe?

The various technologies featured in Star Trek make a variety of sounds, not all of which are diegetic.  For example, exterior shots in space battle scenes commonly show phasers and photon torpedoes making noise, but sound does not travel through space.  These non-diegetic sounds are played solely for the benefit of the television audience; either they have no in-universe source at all, or else they have an in-universe source that would not normally be audible from the point of view of the camera (and thus to any characters present in the shot).  My question concerns the very conspicuous sound that accompanies the use of the transporter.  Is this sound diegetic or non-diegetic?  That is, do we have any on-screen evidence that the characters in the show can hear things materializing and dematerializing?  For example, have any characters actually commented on the noise? Have any of them tried to secretly transport themselves to or away from a remote location, out of view of any observers who happen to be present, only to be given away by the sound of their de- or rematerialization?  Note that I'm not asking whether the transporter device itself makes noise.  I rather suspect that it does (and that this is what the TV audience hears, even if it's not present in the shot), so let's confine on-screen evidence to the depictions of the remote end of the transportation rather than to the transporter room.  (Note 1: There was , but that question and its answers take it as a given that the sound is diegetic.  Here I am essentially questioning the entire premise of the previous question.)  (Note 2: I'm most interested in the Federation transportation technology of TNG/DS9/Voyager-era Star Trek, but would also accept evidence concerning the transportation technology of other major races and other time periods.)


Limits not showing properly when placed in a fraction

I am trying to apply a limit law in which the limit is distributed to both the numerator and the denominator. However, the \lim_{x\to \infty} does not render properly when I place it in a fraction (\frac{\lim_{x\to \infty}}{\lim_{x\to \infty}}). The _{x\to \infty} part shows up next to the lim.   Any help would be greatly appreciated.


I am trying to calculate the limit of  $$\lim_{n \to \infty} \frac{(2n-1)!}{(2n+1)!}$$  and I am stuck. I tried n division but that didn't work. Any help is appreciated


Python __import__ is only giving me top level module

I'm doing   module = __import__("client.elements.gui.button", globals(), locals(), [], 0)   But it's only returning client.  What is my problem?


Non-pae plus unstable Intel display driver

I have three (Pentium M) laptops. They are all in a good physical state and work perfectly well, so I have no reason to stop using them  When I first attempted to update to 12.04 the installation failed, reporting that the processor did not support pae. This led me to ask the original version of this question. This did not solve my problem, the question was marked as 'asked before' and not answered. None of the 'asked before' answers solved my problem so I was left with laptops I could not update.  As I can't actually add my own answer to this question due to it being labelled as 'asked before' (even though this variation of the pae question had not been asked), so I will answer it by editing the question.  I did some research on the Pentium M and discovered that it DOES in fact support pae despite the installation not finding it. The solution to my problem was to use the 'forcepae' boot option. From 14.04 onwards I believe this problem has been fixed in the installation.


Relation between real roots of a polynomial and real roots of its derivative

I have this question which popped in my mind while solving questions of maxima and minima. First Case:Let $f(x)$ be an $n$ degree polynomial which has $r$ real roots. Using this can we say anything about the number of real roots of $f'(x)$?  Second Case:Suppose, $f(x)$ has all  $n$ real roots. Then will all of its derivatives also have all real roots?  Also, if any of its derivatives do not have all real roots, then will $f(x)$ also have not all real roots? If the above is true then what about its converse?  Comment Case:For the third case:Suppose f'(x) is a 5 degree polynomial with 3 real roots.Then f(x) will be a 6 degree polynomial.(correct me if I am wrong).What are the possible no. of roots that f(x) can have(3,4,5 etc.?).Basically I am asking for an example.Also it would be great if you follow all cases with an example like in the 4th case.


Speeding up the mouse wheel in Ubuntu 18.04

I find I have to scroll a lot to move the text of my page compared to Windows where I can choose the speed of the mouse wheel.   Does Ubuntu have a similar utility and if so how can I access it?


I want to set the background color for a text correctly using CSS. It does not react as I expect

I set a background color for a text but it got set to the whole line in front. I just want it to be set for the text. This is what is happening-  But I just want it to be the background of 'Something' and not the entire line. Please help me.


How do I clone an Ubuntu system to a new machine?

I have an Ubuntu system with a large project, many small projects, and (of course) loads of packages and libraries.  If I buy a new computer and want to replicate all of this, how do I do it?  I presume installing Ubuntu on the new machine and then copying the file tree from some point down will fail since the new machine will have it's own way of viewing things, understanding of how things are tied together, etc., and just replacing the new file tree starting with root with a copy from the old machine is an idiotic idea.


Does passive need direct object or indirect object of a verb

Here My Question is about direct object or indirect object of a verb when using passive form not abut "happened". Can't we use the passive form if we don't have direct or indirect object.  This was happened to me. This was happened 7 years back. I was kissed by her.(correct)  Adding: I'm trying to tell one incident:  This has happened to me when I was about 18 years old.  or  This happened to me when I was about 18 years old.


For  I had to change the opening angle bracket to &lt;. Is this a bug, or established expectation?


How to view users logged in since last 5 minutes in linux command line?

I am fairly new to linux and trying to learn the terminal commands.  I want to see the list of users who logged in since last 5 minutes.  I searched the internet but almost every place solution uses a shell-script. But I want to see this using just a command.  I tried  last -t -5min   Is it right? I cannot know for sure since I am the only user on my system.


How to distinguish between post and get type of ajax from server-side PHP

I am trying to avoid the ajax url called while page load so that I can maintain of log of posted data from ajax only.  if ($this->_request->isXmlHttpRequest()){   # do the code }


Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several specific files from this folder, by name, and copy them to another folder, using the terminal, without copying them individually?


Will Winterbash promote mass spamming due to its short time frame?

Is there any concern that , due to their time-limited nature, will encourage mass spamming of posts? Cosmopolitan, for example, can only be achieved by posting to Meta. There are over one million users on Stack Overflow who may want this hat, and have only until January 4th to get it, and their only means of doing so is to invent some reason to post to Meta.


How do I efficiently filter computed values within a Python list comprehension?

The Python list comprehension syntax makes it easy to filter values within a comprehension.  For example:  result = [x**2 for x in mylist if type(x) is int]   Will return a list of the squares of integers in mylist.  However, what if the test involves some (costly) computation and you want to filter on the result?  One option is:  result = [expensive(x) for x in mylist if expensive(x)]   This will result in a list of non-"false" expensive(x) values, however expensive() is called twice for each x.  Is there a comprehension syntax that allows you to do this test while only calling expensive once per x?


Jquery Dialog not working on image click

Workflow: Passing JSON to angular scope and using ng-repeat in the View to display it.  Using following function to show dialog on click of elements of a particular class.   $(function () {         $("#dialog").dialog({             autoOpen: false,             show: {                 effect: "blind",                 duration: 1000             },             hide: {                 effect: "explode",                 duration: 1000             }         });          $(".opener").on("click", function () {             $("#dialog").dialog("open");         });     });      $(function () {         $("#imagePopup").dialog({             autoOpen: false,             show: {                 effect: "blind",                 duration: 1000             },             hide: {                 effect: "explode",                 duration: 1000             }         });   Want it to get triggered on click of a particular class.
             @*                 {{ item.CreatorID}}             	*@                              {{item.ItemName}}             	                              {{item.CreatorName}}             	                              {{item.Length}}             	                              {{item.Width}}             	                              {{item.Price}}             	                              {{item.ItemDescription}}             	                              {{item.Quantity}}

     <button class="opener">Opener</button>     <button class="opener">Opener11</button>

Sample text

   Here when I am clicking on Button Opener& Opener11 popup appears but not on the click of
 which has the same class(inside ng-repeat).   Can anyone tell me if i'm missing anything?


Is this ring an integral domain? Prove or give a counterexample

I need to either prove this is an integral domain or give a counterexample.  I have yet to find a counterexample, but can't seem to prove it on my own.  Would love any advice/help! Thank you!


I installed Ubuntu (14.04) on my Windows 8.1 (4 Go RAM, 64 bits) by means of a bootable USB. After having partitioned the HDD, the installation was successful.   However, I had an issue to boot into Ubuntu, so I decided to uninstall it by means of a software (that I discovered on youtube) I tried to doing so, but it  got worse, as after trying to reboot my Lap, a black screen shows 'grub>'.  So, now, each time I try to get into my Windows 8.1, I have to enter a specific script and then my laptop boots normally.   How shall I proceed to uninstall the Ubuntu boot loader?


Review first post / late answers: show other answers as well

when I am reviewing an answer, I only see the answer to be reviewed and the corresponding question.   If the answer actually answers the question - at least to some extent - then I have to look at other answers to see if it is not a duplicate. This is sometimes problematic, especially when using a smartphone...    For convenience, I would suggest one of the following:    Show all the answers in review mode,  Introduce a "show other answers" button,  Show at least accepted answer - if any.     (The last option would not quite solve the problem, though)


Is there any bibliography style can give me more brief author text?

My problem now is in my thesis on the References part some references it take to much lines because i refer some papers from CERN, RHIC (so much authors per paper may be more that twenty, that too much) can you suggest me to some bibliography style that can make     I. Arsene and I.G. Bearden and D. Beavis and C. Besliu and B. Budick   and H. Bøggild and C. Chasman and C.H. Christensen and P. Christiansen   and J. Cibor and R. Debbe and E. Enger and J.J. Gaardhøje and M.   Germinario and O. Hansen and A. Holm and A.K. Holme and K. Hagel and   H. Ito and E. Jakobsen and A. Jipa and F. Jundt and J.I. Jørdre and   C.E. Jørgensen and R. Karabowicz and E.J. Kim and T. Kozik and T.M.   Larsen and J.H. Lee and Y.K. Lee and S. Lindahl and G. Løvhøiden and   Z. Majka and A. Makeev and M. Mikelsen and M.J. Murray and J. Natowitz   and B. Neumann and B.S. Nielsen and D. Ouerdane and R. Płaneta and F.   Rami and C. Ristea and O. Ristea and D. Röhrich and B.H. Samset and D.   Sandberg and S.J. Sanders and R.A. Scheetz and P. Staszel and T.S.   Tveter and F. Videbæk and R. Wada and Z. Yin and I.S. Zgura   might be to      I. Arsene and I.G. Bearden and D. Beavis and C. Besliu et al.   on my references page?


Is there a way to get this information? I hit my Iron Golem by accident and then found out, that they do not regain health.  PS: I know that mods could do that, but I don't want to use mods for this. If it is not possible in vanilla-survival, I just rather accept it.


Further question about the difference between "having a hard time Verb+ing" and "having a hard time to Verb"

This question was once raised by Jirei and answered by MSalters already at the link below.  I, however,  would like to raise the same question once again because the "having a hard(or difficult/tough/good/bad etc.) time to Verb" structure can also be seen even in some of well-known prestigious media although not very often, and the answer given in the post at the above link does not clarify that point. Please refer to the below links for some examples. TIME Magazine  "North Korea will have a difficult time to make this power transition."   Newsweek  If you are having a difficult time to save despite budgeting, here's what we recommend:   The New York Times  "The Greeks certainly will have a difficult time to explain the deal to their voters," Mr. Schäuble said.   BBC  The 23-year-old from County Down is passionate about encouraging others who are having a difficult time to speak out and get the help they need.   I now understand that "having a hard time Verb+ing" structure is a lot more common than "having a hard time to Verb" format, but as you can see above, the latter sentence construction is also quoted in some well-known news media, so I just wonder if it is not a matter of right or wrong, but just a matter of naturalness or awkwardness depending on where you are from or what industry you are in?


I'm trying to use an image as a background for Beamer presentation according to  post.  However, I do not want the image spanning the entire background. Thus, I'm doing something like:  \usebackgroundtemplate{% \centering \hspace{4.5cm} \includegraphics[width=1.5in]{image.jpeg} }   The \hspace command works, but \vspace does not work. Basically, I'm trying to get the image to be at the center of the page. Any ideas on how this can be done?


How to convert one language to another language?

.NET says it supports 44 languages.for example i write the code in C# in execution time it converted in to IL and again coverted in to Machine language.is there any chance to get VB Code when iam compile the C# code. IS THERE ANY CHANCE


How to use two prefixes "comma" "and" stem in two situations

My native language is Dutch. We have a subtle, but useful way of combining the ingredients: Prefix (+ comma) + and + Prefix + stem. However, I do not know whether the same rules apply in the English language, e.g.:   "Copper-, and iron-based materials" This means two or more materials. One or more based on copper, and at least another one based on steel, or vice versa.  "Copper- and iron-based materials" This indicates multiple materials composed of copper and iron.  Thus the comma makes the difference. Furthermore, the hyphen is necessary. And last but not least: "copper-based materials and iron-based materials" does not make useful use of the rules of language.  So what are the rules?  Thank you,   Max


Can I use a single resistor for multiple LED with different +ve sources?

In the photo below I would like to use a single resistor after the LEDs, instead of having individual resistors before the LEDs. Is this problematic? Will it work?


Getting the desktop environment from zorin os 11 on ubuntu/other ubuntu based distros?

Trying to get the desktop environment from Zorin os 11 on ubuntu/other ubuntu based distros?


Run .sh with Desktop entry without closing terminal

Here is my desktop entry to run "PRGM.sh"  [Desktop Entry] Encoding=UTF-8 Name=PRGM Comment=Launch PRGM Exec=gksu /home/markku/PRGM.sh Icon=utilities-terminal Type=Application Terminal=true   The program runs in terminal and at the end outputs a code I want to check. But the desktop entry runs the program in terminal and closes when it finishes so can't check the code. How can I modify the desktop entry to not close the terminal after execution? (It is required to use gksu)


Test for a player who isn't wearing a helmet? [1.12.2]

I'm trying to set the score 'ToxicJungleSafe' to 0 if a player isn't wearing a helmet in 1.12.2.  So far I have tried using ArmorItems tag, as well as Inventory tag. minecraft:air doesn't seem to work either.


What causes this behavioural difference between C and JavaScript?

Given the C code below:  int nSum       = 0; // pNumber is 9109190866037 int nDigits    = strlen(pNumber); int nParity    = (nDigits-1) % 2; char cDigit[2] = "\0"; for (int i = nDigits; i > 0 ; i--) {   cDigit[0]  = pNumber[i-1];   int nDigit = atoi(cDigit);    if (nParity == i % 2) {     nDigit = nDigit * 2;   }    nSum += nDigit/10;   nSum += nDigit%10;   printf("NUMBER: %d\n", nSum); }   Outputs:  NUMBER: 13 NUMBER: 13 NUMBER: 16 NUMBER: 22 NUMBER: 29 NUMBER: 29 NUMBER: 38 NUMBER: 39 NUMBER: 48 NUMBER: 48 NUMBER: 50 NUMBER: 59 NUMBER: 59   And this JavaScript code (written in TypeScript, so there actually is typing involved here as well, but it is mostly inferred):  let nSum = 0; let nDigits = partialIdNumber.length; let nParity = (nDigits - 1) % 2; let cDigit = "\0"; for (let i = nDigits; i > 0; i--) {    cDigit = partialIdNumber[i - 1];   let nDigit = parseInt(cDigit);    if (nParity == i % 2) {     nDigit  = nDigit * 2;   }   nSum += nDigit / 10;   nSum += nDigit % 10;   console.log("NUMBER: %d", nSum); }   Outputs:  NUMBER: 14.3 NUMBER: 14.3 NUMBER: 17.5 NUMBER: 24.1 NUMBER: 31.700000000000003 NUMBER: 31.700000000000003 NUMBER: 41.5 NUMBER: 42.6 NUMBER: 52.4 NUMBER: 52.4 NUMBER: 54.6 NUMBER: 64.5   NOTE: Both these implementations are the same, just different languages.  The C code produces the expected results and JavaScript doesn't.  Questions   What assumptions does JavaScript make in order to produce that output? What part of my JavaScript code would I have to change to produce the desired output?


Can not access website on a local network, but can access from outside

At home I used an old PC and setup a Ubuntu 16.04 with functional Nginx server. I am hosting a website which can be reached from outside when I am not home, i.e. not using my home WiFi:    Interestingly, when I am connected to VPN (given by my company), even being home and using my home WiFi the website can be reached.  Unfortunately when I am home, i.e. I am using my home WiFi then the website is not reachable. The router that I am using is Bell Home Hub 3000 and I properly setup port forwarding (saying properly since the website is functional). Previously I did the same thing with Rogers WiFi router and it was working just fine from home or from outside. But since I moved to Bell and used Bell Home Hub 3000 the problem started.  Thank you so much for your help to understand the reason why I am not able to reach the local server/website while being on local WiFi.  Advanced tools and settings:    Port forwarding:


What is the physics meaning of the "trace" (Tr) and how we can calculate it? $$ Z=tr\left \{ e^{\left ( -H \right )} \right \} $$ Where Z is the partition function .


Enable Hibernate option on setting menu in Ubuntu 14.04

How to enable the hibernation option on system menu in Ubuntu 14.04 just like windows.


How do I skip grub and boot directly to Ubuntu 20.04?

This is not a duplicate of  -- that question deals with a dual-boot situation.  I have a completely stock install of Ubuntu 20.04 (on a Thinkpad p1 gen 2) on my main hard drive / boot device, and no other operating systems. When I power on the laptop and do nothing else, it boots to a grub menu, where the default option is to boot Ubuntu. I would like to skip the grub menu and boot Ubuntu directly. My (stock) /etc/default/grub file looks like: # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""


Where is the current desktop background stored

In which file would the desktop background be stored, I have checked desktop.ini, but that only shows two dll files in C:/windows/system32/ I'm using windows 10. Any help is appreciated!


Some years ago I switched from Windows to Ubuntu. Now Ubuntu 14.04 is installed on my Acer TravelMate 5742G with:   Intel Core i5-460M Nvidia GeForce Gt 420M and Nvidia binary driver version 331.38 15.6 HD (1366x768)   When I used Windows and had to present something in front of some people I mirrored the display of my laptop and the projector. This was really helpful because in most cases the display of the projector was behind me. Unfortunately, this is not possible with Ubuntu anymore. I tried it with various projectors and displays that worked with Windows before.  In cases the resoultion of both screens did not match Windows cutted my screen and added two black bar to the sides of my laptop display. Is it possible to add this very nice feature to Ubuntu? Maybe I should add that Ubuntu offers only one resolution for my laptop display.  Update 1:  Here is an image of my screen setting (in German, but the buttons are still the same):


Symbology based on related table ArcMap10.5

I have a parcels layer and related table of water meters. I did labeling of water meters IDs and I pulled it from the related table through the script.  Can I symbolize polygons based on related table records?  So far I was able to do that through joining tables, but it is not ideal for the end user they do not want those tables together.   I read it is possible in ArcGIS Online, but I am working in ArcMap 10.5.


Predict decay chain of a radioactive element

I know there are tables of decay chain of radioactive elements. Is there a way to predict the whole chain from the first radioactive element?


There are may ways to initialize a variable for eg string varName; and so on. But what is the different between var appWindow = new AppWindow(); and AppWindow appWindow = new AppWindow();  Are they the same?   Can anyone please explain me the reason as I am foreign for c#.  Thanks


Catalan numbers: bijection between applications of a binary operator and Dyck words.

The  lists various combinatorial objects that are described by them. I posit that there might be bijections between these various combinatorial objects. For some of them (like Dyck paths, correctly matched parentheses and paths from the bottom left to top right of a $2n \times 2n$ grid) they are quite obvious.   I was then trying to find a bijection between the number of Dyck words and the number of ways of associating $n$ applications of a binary operator to $n+1$ items (third one on the list). I attempted to do this for a simple case ($n=3$ which is the example provided in the Wikipedia article). However, couldn't find one after multiple hours. Is it reasonable to expect such a bijection will exist? If so, how do we go about finding it?    EDIT: In addition to the very nice answer by @Marc, the following page also helped me see the bijection:   "Let $P$ be the Dyck path and $f(P)$ be the binary tree. If you go up in the Dyck path, create a left child. Otherwise, go up one vertex until creating a new right child is possible and create one."    Here is one of my attempts:   Number of Dyck words with length $2 \times 3$ is $\frac{6 \choose 3}{4} = 5$. They are:  hhhttt; hhthtt; hhttht; hthhtt; hththt  And the number of applications of a binary operator among $3+1=4$ factors is:  ((ab)c)d;     (a(bc))d;     (ab)(cd);     a((bc)d);     a(b(cd))  Both combinatorial objects have been arranged in a way that there is some kind of ordering between them. For the Dyck words for example, if h equals +1 and t equals -1, then the order is lexicographical from the left to the right of the cumulative score along the sequence.   Now, the first and last characters of the Dyck words are always h and t respectively. So, we can ignore them. We are left with:  hhtt; htht; htth; thht; thth  I tried to start from the left of the sequence abcd and if I see 'h', merge the character with the one to its right. This approach didn't produce a valid mapping from the third Dyck word to the third binary operator precedence order.


performed c++-like unsigned integer computation on java

In C++, we can perform uint64_t integer computation, by using the natural overflow of the uint64_t we can implement several hashing function. But when I try to implement the same hash(using C++ overflow of uint64_t) on java, I find that java does not provide C++-like unsigned integer addition and multiplication, is there any solution?