Using a variadic template method of a template class inside a variadic template function

The following code will not compile in either intel or gcc. The crux of the problem appears to be that a static method variadic template of a template class called with a parameter pack expansion is considered bad syntax on the first pass of the compiler.  template<typename T> class foo { public:     template <bool do_other_thing_too, typename... ArgTypes>     static T doThing(ArgTypes... args)     {         std::vector<T> outs = { args... };         T out = 0;         for (auto V : outs) out += V;         // the actual code involves templates using SFINAE, and so must either         // be in this template's parameters or be copied, once for each value          // of the bool         if (do_other_thing_too)         {             out *= 1.5;         }         return out;     } };  struct bar {     int data = 3;     template<bool do_other_thing_too = true, typename T, typename...ArgTypes>     T& doThings(T& out, ArgTypes... args)     {         //the line of the code causing the problem         out = foo<T>::doThing<do_other_thing_too>(data, args...);         return out;     } };  int main() {     bar george;     int a = 0;     george.doThings(a, 12, 10.4, 3.2f, 4ll, 2l);     return 0; }   It gives the following errors in gcc:  Test.cpp:27:61: error: expected ')' before '...' token          out = foo<T>::doThing<do_other_thing_too>(data, args...);                                                              ^ Test.cpp:27:65: error: parameter packs not expanded with '...':          out = foo<T>::doThing<do_other_thing_too>(data, args...);                                                                  ^ Test.cpp:27:65: note:         'args'   I have done a decent bit of fiddling with the code, it will not happen if foo's T parameter is folded into foo::doThing's template i.e.  class foo { public:     template <typename T, bool do_other_thing_too, typename... ArgTypes>     static T doThing(ArgTypes... args)   Also, there is no problem with calling foo<int>::doThing<true>(3, 12, 10.4, 3.2f, 4ll, 2l) directly but neither option is available in the code that spawned this. I have a solution to the problem in the short term do_other_thing_too can be a template parameter in bar, passed by value to foo, and then I can if/else to shove it back into the template that actually needs it, but that is kinda ugly, and I really want to know what is actually causing the problem here.  relevant TLDR on the one this is a 'duplicate' of: It is possible for template syntax to be ambiguous   foo<T>::doThing<do_other_thing_too>(data, args...);   could be referencing a value doThing that is being checked for being less than do_other_thing_too But if you change it to  foo<T>::template doThing<do_other_thing_too>(data, args...);   it knows it is a function


Want to start cycling, is this a good bike

I have been riding on a cheap bike from Argos but I want to start doing it a bit more properly. Where I live, there are a fair few cycle paths, etc which aren't very flat. There's a lot of tree roots, pot holes etc.   Also, as I'm a bit of a novice, I can't ride on the road properly. So I want to be able to hop onto and off curbs.  My goal is to compete in a 100 mile race next year. I have been looking at bikes, what do you guys think of this one:    Will this be a good bike to get?


Show that a finite group of even order that has a cyclic Sylow $2-$ subgroup is not simple.   Attempt:  Since $G$ has a Sylow $2$ subgroup so $|G|=2^km$ .  I don't know how to use the fact that the  Sylow $2-$ subgroup is cyclic.  Please give some hints.


How to prove that the equation $x^5-1102x^4-2015x=0$ has at least three real roots?

I've already used the Intermediate Value Theorem to show that there is at least one real root. $f(1)=-3116<0$ $f(-1)=912>0$ Using IVT to $N=0,$ there exists $c \in (-1,1)\;$ such that $\;f(c)=0.$ I can use Rolle's Theorem to show that there is at least $2$ real roots, but how do I show that the equation has at least three real roots?


Can I create a new keyboard layout or add Unicode characters to my current keyboard layout in Ubuntu? I have found something called  (Keyboard Mapping for Linux), however, I could not install it because I could not find the package ibus-kmfl.  Is there maybe an easier way create a new keyboard layout? Something as easy as the ?


Why do luatex and lualatex commands work differently?

As written in the page below, lualatex seems to be a symbolic link or an lias to luatex.   However, they don't work the same way. lualatex compiles latex format documents while luatex compiles plain tex documents.  This means they are not the same 'UNIX executable' or lualatex isn't just an alias of luatex. Why do they work differently?  Thank you in advance.


I want to know how to remove certain elements from an array

In this program I want to be able to remove the minimum and maximum values from the array but I don't know how to do it.  public class Average {    public static void main (String [ ] args)    {      double [] weights = {39.5, 34.8, 22.6, 38.7, 25.4, 30.1, 41.8, 33.6, 26.2, 27.3};     double minimum = Integer.MAX_VALUE;     double maximum = Integer.MIN_VALUE;      for(int i = 0; i < weights.length; i++){         if(minimum > weights [i])             minimum = weights[i];     }      for(int i = 0; i < weights.length; i++){         if(maximum < weights [i])             maximum = weights[i];     }   }  }


What's wrong with 'Bananas are unable to grow in cold countries'?

I have an English exam coming up where I will be pointing out the mistakes in sentences and explaining them. One of the example questions we got was 'Bananas are unable to grow in cold countries'. However I don't really see the mistake here. I was thinking it might be the 'unable', but I can't find a proper explanation why that would be wrong. Is there someone here who knows what the mistake is and who could give an explanation?


"You cannot vote for yourself"... so why give me the option?

One thing that irks me is redundant controls. For example, there was a game I used to play that had a "disable IP check" option, but if you enabled it without Game Operator permission then you would be permanently banned. I have no idea why they couldn't just give the GO that option instead of giving people a "ban me now" button...  Anyway, back to SO. Since a user cannot vote on their own questions or answers, what is the point of the arrows being there? It seems wasteful to have buttons that I cannot use (and it's annoying when I accidentally click them when trying to expand my vote score, but that's probably just me), and I think they should be removed.


Help in understanding the proof of Mersenne Prime

Problem: $$\text{ If } 2^{n} - 1 \text{ is prime then n is prime}$$  Proof 1: $$\text{If } n = kl \text{ with } 2 \leq k, l < n \text{ then } (2^{k} - 1)|(2^{n} - 1). \text{ Hence if } 2^{n} - 1 \text{ is prime, n must be prime }$$    Proof 2: Using the identity: $$2^{n} - 1 = ( 2 - 1 )( 2^{k-1} + 2^{k-2} + ... + 1 )$$  $$\text{ Let }n = rs, \text{ then } 2^{n} - 1 = ( 2^{r} - 1 )( 2^{r(s-1)} + 2^{r(s-2)} + ... + 1 )$$  $$\text{ However each factor on the right exceeds 1 contradicting with the fact that } 2^{n} - 1 \text{ is prime }$$  Hence, n is prime.  Proof 1: I have no idea what the author's purpose.     Proof 2: I understood a little bit. Can anyone help me explain why n must be prime? I am totally lost with the above proofs. If we let $ n = rs $, then what can we say about $n$ with $2^{n} - 1$ is prime?


How to parse JSON encoded array in jQuery?

I had a list 'result' in controller and I converted this list to json using below code.    JavaScriptSerializer jss = new JavaScriptSerializer();             string output = jss.Serialize(result);   .Now I need to parse the Json result in jQuery.for that I put var model = @Html.Raw(Json.Encode(Model)) in javascript and I got model as :  ContentEncoding: null ContentType: null Data: "[{"type":"Size","ID":16,"title":"10X20","value":null,"isDefault":true,"Rate":0,"Product_ID":42,"Parent_ID":0},{"type":"Size","ID":17,"title":"10X18","value":null,"isDefault":false,"Rate":0,"Product_ID":42,"Parent_ID":0},{"type":"Size","ID":18,"title":"10X15","value":null,"isDefault":false,"Rate":0,"Product_ID":42,"Parent_ID":0}]" JsonRequestBehavior: 1 MaxJsonLength: null RecursionLimit: null


Review counts in top-bar and /review don't match

So far, I thought that the number shown in the orange box in the top-bar was the number of items available for review. However, when I acually visit /review, the numbers don't match:    Note that top-bar shows 15 items (?) but the queues only add up to 8.  Since I can't think of a reason for this being by design (which, as experience shows, is not a good indicator for "this is not an SE feature) I'm tentatively labelling this a (UI) bug.


Page Not Found for anonymous (clear cache fixes it)

I'm getting reports from users that clicking a link gives them Page Not Found.   These are anonymous users. Page caching is turned on (but not aggressive) I log in, the page works.  I log out, the page does not work. Three reports of unrelated pages in the past week (but all were different node types) Clearing All Caches fixes it. I could be wrong about this (because I didn't think to check until after I cleared caches), but I think it's returning error 406 in Recent Log Entries.   How can I begin to troubleshoot this?


How to split a string of address and fetching city , state, country and zip code?

eg. JBB Inc. Headquarters 20 West RiverCenter Blvd Covington KY 41011 USA


Infinite Closed Discrete Subset of a Normal non-compact Space

I need to prove that given a space $X$ that is normal and not compact, there exists an infinite closed set $S \subseteq X$ that is discrete. (where singletons are open in the subspace topology)


Area of a cyclic polygon maximum when it is a regular polygon

My question: Let $n$ points $A_1, A_2,\ldots,A_n$ lie on given circle then show that $\operatorname{Area}(A_1A_2\cdots A_n)$ maximum when $A_1A_2\cdots A_n$ is an $n$-regular polygon.


Set title for each terminal tab in gnome-terminal using a bash script

I'm using Ubuntu 16.04  I want to open multiple terminal tabs, run commands and set title. I can open multiple tabs with this command:  gnome-terminal --tab -e "command1" --tab -e "command2"   but cannot use --title option as it is not available in this version.   I know mate-terminal can do this, but I want to use gnome-terminal.   I've applied solution posted  and it worked but when i run  gnome-terminal --tab -e "bash -c 'set-title 99;ping 192.168.7.99'"   It shows:  bash: set-title: command not found PING 192.168.7.99 (192.168.7.99) 56(84) bytes of data. 64 bytes from 192.168.7.99: icmp_seq=1 ttl=128 time=0.425 ms 64 bytes from 192.168.7.99: icmp_seq=2 ttl=128 time=0.353 ms 64 bytes from 192.168.7.99: icmp_seq=3 ttl=128 time=0.335 ms   I also applied   I've also read this post  but the accepted answer did not solve my issue in 16.04 os or gnome-terminal version 3.18.3 and other solution provides to use other terminal xterm and I want to use gnome-terminal.


Lightning component access in public community (no authentication)

I have added a Lightning component to a VF page and the lightning component is displaying fine when I access the VF page. But If I set this VF page as the community home page and try to access this without any authentication then the page fails to load the Lightning component. If I were to access the community with authentication then it works fine.   Any ideas on how to get this working?  Lightning component:  <aura:component implements="forceCommunity:availableForAllPageTypes" access="GLOBAL" >     This is a component </aura:component>   Lightning App:  <aura:application extends="ltng:outApp" access="GLOBAL" implements="forceCommunity:availableForAllPageTypes">     <aura:dependency resource="c:communityComponent"/> </aura:application>   VF Page:  <apex:page >     <apex:includeLightning />    <div id="lightning"/>   <script >       //inject the lightning component.       $Lightning.use("c:communityApp", function() {           $Lightning.createComponent("c:communityComponent",{},"lightning", function(cmp) {               console.log('inside the component',cmp);           });         });   </script> </apex:page>   Error in the browser console:


Why doesn't nuetron-neutron bound state exist?

For parallel spins, our instructor told us that it is because of pauli exclusion principle. Here is my doubt : if total spin is 1. That means spin part of wavefunction is symmetric, but if the spatial part of the wave function is anti-symmetric , the overall state will be anti-symmetric, which is good. How does then pauli exclusion principle rule out this possibility? Please, clarify.


Should the number "0" be pronounced "zero" or "oh"?

I have often heard people say 101, as one-zero-one, and also as one-oh-one. Which is correct, and why? Does the difference between British English and American English have to do something with it?


Can quantum computers put computer security in jeopardy?

There are many articles about quantum computers describing how powerful they are in computing and that they can solve very complicated equations in a short time. One of the biggest security measures that provide safety for computer security is that sometimes it takes years to break a piece of encrypted data.  Will this safety remain after a quantum computing revolution? The question is:   Can they do such complicated computing? Is it possible quantum computers put computer security in jeopardy?


Always considered antimater as negative mass so: $$m1=10kg(matter)$$ $$m2=-10kg(antimater)$$ $$displacement=r=10m$$ $$gravity =\frac{Gm1m2}{r^2}=-1N<0!HOW?$$


I found a couple examples with that word:     The song feels apropos to a midnight jaunt      Clothes that are apropos to the occasion   I'm interested in can we use that following the verb of action. For instance, if I want to express something like the following:  My frined come to my house and bring some candies with him. Could I say It's apropos that you bought the candies, I just have made a tea.


Did J. R. R. Tolkien actually use to say that "Middle-earth was really the ancient history of the real planet Earth"?

There was the also the fact that Tolkien, in later years, apparently gave up the conceit that Middle-earth was really the ancient history of the real planet Earth.   This was said in a comment/answer on SE. I had never heard of this before. Is it true? Did he mean that Silmarillion is literally the Bible of this world? Or did he just mean that in this fictional fantasy world/dimension, it is referring to our planet?


How to set environment without sourcing .bash_profile myself every time?

When I restart Ubuntu 14.04, environment variables are set back to default and I have to run source .bash_profile every time which is very annoying. I generally keep my environment vars in .bash_profile in home directory which is at /home/buraktas. This the text of the file:  ### export JAVA_HOME variable export JAVA_HOME=/usr/local/dev/jdk1.8.0_20 export PATH=$PATH:$JAVA_HOME/bin  ### export M2_HOME export M2_HOME=/usr/local/dev/maven export PATH=$PATH:$M2_HOME/bin  ### export SCALA_HOME export SCALA_HOME=/usr/local/dev/scala-2.11.2 export PATH=$PATH:$SCALA_HOME/bin   I will appreciate any kind of response.


I'm currently trying to do some basic cleaning on a pdf so I can convert it to ePub for use on my e-reader. All I'm doing is removing page numbers (easy) and footnotes (stumped so far). Basically, I'd like an expression that finds the tag pattern at the beginning of every footnote ( <bar> followed by a newline, a number, and either a letter or a quotation mark), selects the pattern and everything after it until it reaches the
 tag at the beginning of the next page. Here's some sample text: The phantoms, for so they then seemed, were flitting on the other side of
 the deck, and, with a noiseless celerity, were casting loose the tackles and bands
 of the boat which swung there. This boat had always been deemed one of the spare boats
 technically called the captain’s, on account of its hanging from the starboard quarter.
 The figure that now stood by its bows was tall and swart, with one white tooth
 evilly protruding from its steel-like lips.

 1 "Hardly" had they pulled out from under the ship’s lee, when a
 fourth keel, coming from the windward side, pulled round under the stern,
 and showed the five strangers
 127

  Since all of the footnotes are formatted this way, I want to select every group of lines that begin with
 (note the space) and end with the
 tag. This is my first time really trying to use regex, so I've tried to hack together some attempts at solutions:  \s
\n\d+\s[a-zA-Z“].*: This correctly selects
 and the first line of the footnote, but stops at the break. \s
\n\d+\s[a-zA-Z“].*\n.*\n.*\n.*\n.*\n.* selects the correct number of lines, but this will obviously only work for footnotes that happen to have three lines of text.  \s
\n\d+\s[a-zA-Z“]((.*\n)*)
 starts at the correct place at the first footnote, but then ends up selecting the entirety of the rest of the document. My interpretation of this expression is "start with
, a number followed by a space followed by a letter or quotation mark, then select everything including newlines until you reach
."  \s
\n\d+\s[a-zA-Z“]((?:.*\r?\n?)*)
\n same idea as (2), with the same result, though I am not familiar enough with regex to quite understand what is going on with this one.   Basically, my problem is that my expressions either exclude newlines (and ignores the end pattern) or it include every newline and returns the entirety of the text (and obviously still ignores the ending pattern. How do I get it to return just the text between the patterns, including the newlines?


Let I, J, K be three ideals in a commutative ring R with unity.    If R is ring of integers then above equation holds.    I know the equation do not hold for arbitrary ring.  Can you give me an example of a Ring R where the equation does not hold?   Note that There is famous modular law.  I am not  saying that.  In modular law there is a condition I contains J or K.  Here I omit that condition  Thanks....


How to find the matrix representation of an operator from its action on a basis?

First, I apologize if something is poorly written but English is not my first language. I know that these exercises have been solved in . But I do not agree. Inner product and concrete vectors are used and I think that this question has to be solved only with information we have from the beginning of chapter 2 until the exercise. So I think we only have to use eq. 2.12 in this way: if we write $\left|0\right>=\left|v_{0}\right>$ and $\left|1\right>=\left|v_{1}\right>$ and we use them as input and output basis, we can write (2.12) as $A\left|v_{j}\right> = \sum_{i} A_{ij} \left|v_{i}\right>$; so, $A\left|v_{0}\right> = A_{00}\left|v_{0}\right> + A_{10}\left|v_{1}\right> = \left|v_{1}\right> \Rightarrow A_{00}=0; A_{10}=1$ $A\left|v_{1}\right> = A_{01}\left|v_{0}\right> + A_{11}\left|v_{1}\right> = \left|v_{0}\right> \Rightarrow A_{01}=1; A_{11}=0$ $$ A = \begin{bmatrix} 0 & 1\\ 1 & 0 \end{bmatrix} $$ As we can see I don't use concrete basis vectors and this works for basis $\begin{pmatrix}0 \\1 \end{pmatrix}$ and $\begin{pmatrix}1 \\0 \end{pmatrix}$. But not with basis like $\frac{1}{\sqrt{2}}\begin{pmatrix}1 \\1 \end{pmatrix}$ and $\frac{1}{\sqrt{2}}\begin{pmatrix}1 \\-1 \end{pmatrix}$. My feeling was that this solution doesn't depend on the basis but it does. So why?


Decomposition of finitely generated graded modules over PID

I found this decomposition theorem used in a paper I'm reading, but it isn't referenced and I can't seem to find it in any of the books I have:  Every graded module $M$ over a graded PID decomposes uniquely into the form $$({\bigoplus\limits_{i=1}^n \Sigma^{\alpha_i}D}) \oplus ({\bigoplus\limits_{j=1}^m \Sigma^{\gamma_j}D/d_jD})$$ where $d_j \in D$ are homogenous elements so that $d_j\mid d_{j+1}, \alpha_i, \gamma_j \in\mathbb Z$, and $\Sigma^\alpha$ denotes an $\alpha$-shift upward in grading.  Now, it looks like a regular decomposition theorem for modules over PIDs but I am having trouble understanding this "$\alpha$-shift upward". Could you point me in a direction of a text were this is proved? An example would be great, but I suppose this is too much to ask.


Stack Exchange Site for Deciding Where to Post Questions

Is there a Stack Exchange site where users post their questions not to get answers or to get up voted or down voted for quality, but to decide on which site to post their questions? If not, does anybody else think that a site like this should be created? Up votes and down votes could be allotted for how obvious the correct site to post to is. For example, a question that obviously asks about why their code is broken would be sent to SO possibly with down votes. However, a question that spans both programming and academia where it is unclear which subject is dominant, could get up votes for its complexity and deserving to be asked.   Is helping to decide where questions go a function of Meta Stack Exchange or should another site be created?  Are there any negatives to creating a site like this?


In the 125th paragraph of "The Gay Science", Nietzsche announces the death of God but I have some doubts. Why God is dead? What is the reason of it? And why did Nietzsche announce it in front of an atheistic public?


I've been offered a "weekly allowance" he's asking for my bank login to do mobile check  deposits. I know it's probably a scam but i created a completely new bank account. I know my information is on there but is it any safer? Can he still pull information like my social from the account?


How can I secure my PHP queries against SQL injection without using PDO or prepared statements?

i want to secure my sql queries without pdo or prepare statement can this function do ?  function sql_escape($string) {     $string =   iconv(mb_detect_encoding($string),'UTF-8//IGNORE',$string);     $string =   addslashes($string);     $string =   preg_replace('/[\x00-\x1F\x80-\xFF\0xB4\0x60\0x96\0x97\0x95\0x94\0x93\0x92\0x91\0x84\0x82\0x3B\0x8A]/', '', $string);     $string =   addslashes($string);     return $string; }


Trying to install Skype using   I get this error on running reload cache (step 2 1st part):  W: GPG error: https://repo.skype.com/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1F3045A5DF7587C3 W: The repository 'https:repo.skype.com/deb stable InRelease' is not signed.   How can I fix it?


Does changing versions of a third party jar require recompiling of my code?

This may seem like a silly question but before I go shooting my mouth off in a team meeting I want to absolutely certain that I understand things correctly.  I have a Java application that references a third party jar file.  My code only uses their interfaces.  If the third party gives me a different version of their jar file and I simply replace the old jar with the new do I need to recompile my application?  Is this still true if the interface method signature contains one of their classes, e.g.  public void thirdPartyMethod(ThirdPartyEvent e);   It is my understanding that unless the interface has changed I do not have to recompile.  Even if the ThirdPartyEvent class is changed (new methods added) I still do not have to recompile unless I want to access those new methods.  Is my understanding correct?  Thanks in advance.  EDIT: This question can be closed it is a duplicate.  Didn't see it when I did a search - don't know how I could of missed it...  BTW It was not clearly stated in my question but the API has not changed - the interfaces are the same.  FINAL EDIT: I do want to note though that there are times when deploying an new version of a third party jar is far easier than deploying an entire re-compiled application...  As a matter of practice I do routinely re-compile, there is absolutely no harm in doing so. However, where I work there is a complete lack of understanding on how Java Interfaces work.  Everyone was worried that the new third party implementation has changed and our application would not work anymore.  I told them that would only happen if the third party changed the API or gave us a broken jar.  Anyway long story short, I thought that if I could show that you could replace the jar and not recompile that would illustrate (at least in part) how interfaces work.  I have emailed links to this post, the duplicate and Mik378's included link in the hopes that it will finally sink in...


Understanding Probability Density Functions

I am having trouble understanding probability density functions. What exactly is a probability density function? Does it give you the probability of a value occurring?  See my MATLAB code below:  x = randn(1000,1); % generates 1000 numbers from the standard normal distribution y = normpdf(x,0,1);   So what y tells me is basically what is the probability of an element in X occurring right? No, it is basically the f(x) value for x, for the Gaussian Density function right?  In this  (wikipedia), it says:     In probability theory, a probability density function (PDF), or   density of a continuous random variable, is a function that describes   the relative likelihood for this random variable to take on a given   value. The probability of the random variable falling within a   particular range of values is given by the integral of this variable’s   density over that range—that is, it is given by the area under the   density function but above the horizontal axis and between the lowest   and greatest values of the range.   So what is the difference of the relative likelihood vs probability?   Also if somebody wants to accurately calculate the probability of a random variable, then he can just take a really small integral area right (close to zero)?


What is the difference between "data mining" and "data analytics"? Are both things the same technically?


I got this javaScript test but I can´t explain why the console give the answer it is giving. Can anyone explain this?   const obj1 = { c: 'c' }; const obj2 = { a: 1, b: [1], c: obj1 }; const obj3 = { a: 1, b: [1], c: obj1 };  console.log(obj2 === obj3); console.log(obj2.a === obj3.a); console.log(obj2.b === obj3.b); console.log(obj2.c === obj3.c);    Output false   true   false   true


Dual Boot UEFI Windows 10 removes Grub Bootloader

After installing Xubuntu (I have done this several times with several releases: LTS 14.04 and LTS 16.04), all works great: I get GRUB with Xubuntu and Windows options. The problem comes when I boot to Windows. Next time i restart, Windows boots directly.  Grub bootloader is no longer available on UEFI menu and efibootmgr only shows Windows Boot Loader. I have tried plenty of solutions: disabling CSM, disable fast Startup, disabling secureboot, clean installs, installing windows first and then ubuntu, installing ubuntu then windows, using boot-repair, even removing CMOS battery, updating my UEFI, etc, etc, etc.  The only solution i don't want to use is bcdedit. I did this once and worked, but i messed up ubuntu and ended loosing Windows Boot Loader and reinstalling Windows. I prefer sticking with a virtual machine rather than using bcdedit.  My motherboard is an Asrock B75 Pro3, which supports UEFI. I'm installing both systems in an SSD (i have 2 HHD but i'm not using them for installation). I installed both systems from USB (using UEFI boot option).  What I have done last:  Fast startup disable (boot on UEFI and Windows), secureboot enable, CSM disable, UEFI boot from USB (both on Windows and Ubuntu), Ubuntu installed first using FAT32 partition with boot and ESP flags for installing GRUB.  Before boot-repair:  xubuntu@xubuntu:~$ sudo efibootmgr -v BootCurrent: 0005 Timeout: 1 seconds BootOrder: 0002,0005 Boot0002* Windows Boot Manager  HD(1,GPT,beaa7fdc-aa2d-45de-9ca4-97e5e193f466,0x800,0x96000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...h................ Boot0005* UEFI: JetFlashTranscend 8GB 1100  PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(3,0)/HD(1,MBR,0x24,0x38,0xeb3fc8)AMBO   The boot-repair summary .  After boot-repair:  sudo efibootmgr -v BootCurrent: 0005 Timeout: 1 seconds BootOrder: 0000,0002,0005 Boot0002* Windows Boot Manager  HD(1,GPT,beaa7fdc-aa2d-45de-9ca4-97e5e193f466,0x800,0x96000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...h................ Boot0005* UEFI: JetFlashTranscend 8GB 1100  PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(3,0)/HD(1,MBR,0x24,0x38,0xeb3fc8)AMBO   After booting to Xubuntu:  sergio@SERGIOLINUXPC:~$ efibootmgr  BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0000,0005 Boot0000* ubuntu Boot0005* UEFI: JetFlashTranscend 8GB 1100   Result: I still get GRUB.  After booting Windows:  BootCurrent: 0005 Timeout: 1 seconds BootOrder: 0001,0005 Boot0001* Windows Boot Manager Boot0005* UEFI: JetFlashTranscend 8GB 1100   Result: I lose GRUB.  I did a dual boot UEFI in another computer of mine and I had no problems.  One of the many solutions I tried .  I got the same problem than , but removing fast startup doesn't show Grub bootloader again, neither on UEFI, neither on efibootmgr.  Thanks for you time and sorry for my english


Should I add a redundant "Cancel" option?

The user starts an action, and, afterwards, the system determines that some special condition is present which warrants further confirmation from the user:         – Wireframes created with   In the example above, "No" would do exactly the same as "Cancel". Should the "Cancel" button still be present?  My reason not to include it: It would be redundant and users would wonder about the difference between "No" and "Cancel".  My reason to include it: It allows an "easy way out" for the user: "I don't want to read, think about, and understand the evil scary message box; please just pretend I didn't start the action at all."  Note: I do appreciate alternative suggestions (such as a completely different message box design), but I would also appreciate feedback on which one of those two options is preferred (for example, in situations where the UI library offers limited options).


Looking for surrealist/ridicule book about a boy with a wingsuit

I've been looking for the name of that book for a time now, I remember it to be quite funny. Here is what I remember about it:   I read it in French. I remember that it was a book for kids (from 8 to 12 years old I think) It was read to me when I was little by my mother (so I read it between 2005-2010) The main protagonist was a boy who lived in some kind of sewer system or underground, he goes to the surface at the start of the book. I think he had a family member living with him, possibly his grandpa. There is a city on the surface, I think the boy went there to scavenge/steal supplies or other stuff. He used some kind of handmade wingsuit to hover from roof to roof. I don't remember if he could properly fly with it. I remember that cheese was seen as a very valuable ressource. There was a ridicule/surrealist feel to the story. There were water cows. Actual cows that lived in the water. Not manatees. There were walking cheese roulette which were hunted, I think there is a hunting scene at the start of the book. I think that the boy witnessing the scene put him into trouble. This would also explain why cheese was so valuable I think there was some kind of cult/scientist which created a large abominations using cheese. I remember that the main character spends some time with talking pirate rats. The talking pirate rats own a laundry business on a ship. The rat's captain is elected democratically each year or so. I think the protagonist and the rats overthrow the cult at some point but one of the rats falls into a pool of cheese which makes him grow into some kind of severely obese rat, like really big. To save the obese thing, they huddle him onto their boats and then, using some kind of tool, they pump the fat/flesh/cheese out of the rat and send it into ladies's butts. (They also launched some kind of operation to make big butts popular.)


Need help remembering sci-fi movie from the 90s maybe where someone is sabotaging the crew

I saw this movie years ago and can't quite remember it. All I remember is there was a crew trapped in space and they're trying to survive but someone on the crew is sabotaging them. The drinking water gets poisoned so they have to drink their own urine. There's a man with a leg injury that he can't tell is getting really infected and bad because the saboteur gave him these injections that numb his leg.  That's pretty much all I can remember, so if anyone can help me with the title somehow, that would be amazing. Thanks!


Why electrons can't radiate in their atoms' orbits?

It's an old-new question (I found only one similar question with unsatisfactory (for me) answer: )  It's strange for me how all books simply pass by such an important question, and mentioning strange and mathematically unsupported reasons such as:   orbits are stationary (while as I know this is just idealization, there is no stationary orbits in reality even for Hydrogen)  electrons are actually not localized due to uncertainty principle, thus they have no acceleration (while obviously in a non-spherically symmetric orbits a kind of "charge acceleration distribution" always exist) vacuum fluctuations play a major role (according to QED).   I'm not interested in how Bohr or Schroedinger explained it, I want to see a rigorous proof with QM, QED or maybe even the standard model as whole. I would like to see how this question was closed.


Can I redefine a command to contain itself?

I'd like to "add to" an existing command by writing something like  \renewcommand{\somecommand}{\begin{something}\somecommand\end{something}}   but (not surprisingly) I get errors about being "too deeply nested".  Is there a way to take an existing command, add to it (by appending or prepending additional commands or text), and then have that "augmented" command replace the existing command?


This is normally what I see when flagging a post:   Which then provides the following options:    I have come across this problem before. Where I have wanted to flag a question, as not belonging here, but only have limited options.    When this happens, I use a custom flag and write in the reason, but am not happy doing so.  Is this a bug?   What is the best thing to do?


I am not sure what difference there is between   This is the first time I've lost my passport. This is a first time I've lost my passport.   Would appreciate your explanation.


Arduino driving mosfets powered by a single source

I am attempting to test discharge of a large battery pack. I am trying to set up an arduino that controls the discharge by using a bank of 75W bulbs. I have set up my system like shown in the picture. The issue is that the second I turned on the mosfets with the Arduino the first mosfet blew fairly quickly. In my mind this set up should work, but its oviously not...what am I doing wrong? I'm using some spare FQPF20N60 mosfets I had. From what I can tell the Vgs(th) on this mosfet is 5V and is well under the Vgs which is 10V.


The following code is just been used as an example but i can't seem to get it to work. Getting the error 'System.Array' does not contain a definition for 'Remove  and no extension method 'Remove' accepting a first argument of 'System.Array' could be found.  int[] a = [1,2,3,4,5] a = a.Remove(4)   The examples that ive seen removes the 4 from the list meaning a then = [1,2,3,5]  What is going wrong here?


VLC 3 looks "old"/"unstyled" after installation with snap. Here is a screenshot As you can see the buttons are kind of unstyled.


Is there a way to add footnotes to footnotes?

Well, the title basically explaines my problem: Adding footnotes inside footnotes doesn't seem to work... Can you help me?


INSERT INTO FoodLog (Person,Food,ServingSize,Date,Meal) VALUES ('John','Cheerios',2,'1-APR-2014','Breakfast') ('John','TBoneSteak',1,'2-APR-2014','Lunch')   In this code, the first line of code works just fine, but when I type up the second line of code with the same person name, it doesn't accept it.    This is the error that I receive:     Msg 102, Level 15, State 1, Line 5   Incorrect syntax near 'John'.


I want to know a user friendly company email such as:   support@example.com | Doesn't address sales/business enquiries business@example.com | Too specific  billing@example.com | Too specific hello@example.com | Human-like and friendly (probably not usable for things like email confirmation emails & notifications) myname@example.com | Too many emails to my personal email.   Is it possible to combine all the above in a single email or would I have to use multiple emails? (obviously my own personal company email but besides that)  Notes:   I need to send user registration confirmation emails, notifications, support emails, sales emails, business partnership emails, marketing emails + more   What emails would you suggest and which ones for what?


Find value of a line integral using Stokes' theorem

Given a vector field  $\vec A = y\vec i + z\vec j + x\vec k$ Use Stokes' formula to calculate the line integral $\oint\limits_C {\vec Ad\vec r} $ in here, $C$ is a circle ${x^2} + {y^2} + {z^2} = {a^2}$ intersects $x + y + z = 0$


error "pointer hDs is NULL in GDAL GetProjectionRef" when using gdal_rasterize

I want to convert a .shp to .tif. So I find the tool gdal_rasterize may help. But when I input the file it always meet this error:  pointer hDs is NULL in GDAL GetProjectionRef    I have tried different versions of GDAL(1.11.0 and 2.1.0),same error. The test data is from   1)Is this wrong because of the data?or the wrong syntax?  2)What is the correct syntax for using gdal_rasterize()?  3)Is there a better way to convert shp to png(or tif)?coding by myself is ok but I use Java.


Ability to insert information in more than one language

I have translated all my careers info to German because I primary target companies in Germany (or Swiss). But I would like to be able to apply to remote jobs in English speaking countries as well.  So I would like to be able to give the text in two languages, without having to put one underneath the other in the same field.


Show that $\frac{1}{x-a}+\frac{1}{x-b}+\frac{1}{x-c} =0$ has only two real roots

I need help proving that the next equation has only two roots (under $\mathbb R$)   $$\frac{1}{x-a}+\frac{1}{x-b}+\frac{1}{x-c} =0$$   $$a\lt b\lt c$$    Here is what I tried:  If I define a function $f(x)=\frac{1}{x-a}+\frac{1}{x-b}+\frac{1}{x-c}$ I could show that this is a continuous function and for different values I get positive  or negative values and by the continuity it will be equal 0 exactly twice.  Maybe it has something to do with the function derivative?  Any ideas?


What happens to the energy of photons when two light waves with plane wavefront interferes destructively?

When I began learning about optical interference, I came to know about destructive interference in which light waves cancel each other.  How the energy is still conserved ?  I found that the conservation is not disturbed and the photon emission is stopped instantaneously. How can the electron know what to do, whether to return to ground state giving back energy in the form of photons or to undergo other phenomenon like electron scattering...  Consider two laser sources emitting laser undergo perfect destructive interference after a distance d by means of a mirror. Then the light from both the laser goes uninterfered up to distance d. How can the energy be conserved?


How do I figure out which file system a given file/directory is located on?  (For example, I would like to know if the file/directory is a temporary file in RAM, or if it's stored on disk. And what mount point it corresponds to, if any. Etc.)


I have downloaded the app "Pokemon Go" but it seems to be in Japanese I don't speak Japanese and do not know how to solve this problem !! Can somebody pls help me I am dying to play the game


I'm a beginner in libgdx, and I'm trying to create my first game. It's pretty simple, circles are falling from the top and sides of the screen, and the user needs to "blow" them before they touch the ground. It is a single screen game, where the world isn't moving, like Tetris.  My problem is that I'm having bad time understanding what viewports should I use, and when.   So, what viewport should I use for this type of game, without generating black bars or stretching the graphics? Will it be possible to check the screen width and height, and act accordingly? let's say the screen is 400x800, can I save it in the code and just spawn the circles out of the screen?  Again, I don't want my graphics to be stretched, since the circles will look weird.  Thanks.


Evaluate the integral,   $$ \int_{0}^{1} \ln(x)\ln(1-x)\,dx$$   I solved this problem, by writing power series and then calculating the series and found the answer to be $ 2 -\zeta(2) $, but I don't think that it is best solution to this problem.   I want to know if it can be solved by any other nice/elegant method.


How can one variable-args function call another?

Say you have 2 functions:  void func(int x,int y,...) {  //do stuff } void func2(int x,...) {  func(x,123,...); }   How can you make this work, e.g pass the arg-list to the other function?  EDIT: this is a , can someone merge them or whatever?


How do I make a folder whose contents are just a reference to another a folder?

I have a folder, x, whose path I don't want to touch, but I want to have a reference to all of the content within x so that I can upload it to github from a different path. How can I make a new folder, y, that holds in memory a reference to x? I plan on only modifying things in folder x, not folder y; folder y just reading the contents of folder x.


Can the GRE Sub in Psychology compensate for my low GPA?

I am a psychology student. My GPA is quite low: 3.6 for first 3 years but 2.8 for last 3 years ( I spent 6 years in undergrad because I transferred and lost 2 years of credits). However, I will have a publication in psychology and strong letters of recommendation from professors. The low GPA is my major weakness... I am wondering if a good score in GRE sub (like 95 percentile and above) would compensate for my GPA?  Thanks in advance!


if the Joker is always 3rd card. I say there is joker every 3 cards.  Now if I want to use it with phrase after X cards.   Should I say:     A. There is always one joker after 3 cards.       B. There is always one joker after 2 cards.   So the joker arrives always after 2 or 3 cards if it is every 3 cards? Can you please explain? Thank you very much


I just purchased .  I'll be installing it in my RV.  Current will be supplied by a 12VDC to 120VAC, 3000W inverter.  I'll be using Single-Pole Type BR breakers.  Here's a picture of the box:    My current understanding is that I must install a grounding bar to the box.  This is my current understanding of how to connect the breaker to the main supply.:    Here is my understanding of how I would wire in new circuits:    Does this look right?  I would really appreciate your help -- I've been beating myself over the head about this.


Introduce flags for comments that half-answer a question

Comments are just for requesting clarification and arguing with people, right? ;)  Yet lately I'm seeing this more and more often (no data available; sorry to pick you specifically, Barry):    What happens is that someone FGITWs a mini-answer as a comment on the question, diluting the value of the actual answers. Sometimes no answers appear at all, and the OP's question has been answered by a comment. So then what?  It breaks the whole Q&A model by turning questions into flat forum posts or chatroom messages. Stack Exchange was invented to get away from this messy model and instead create a system of Questions and Answers. Period.   I don't have time to write a full answer now Okay, write it later! I will never have time to write a full answer Okay, well, don't then. Let someone else do it. I'm not sure enough about my suggestion to write it as an answer Then posting it at all could be damaging to the OP. Watch other answers, learn a bit, then post an answer later if you feel you're surer about your idea. I just want to give the OP a hint Invite him/her/it to a chatroom. I don't want the rep from an answer Give it away in bounties to answers elsewhere that you feel are outstanding. The question is off-topic so I don't want to post an answer and get berated If the question is off-topic then it is off-topic. It should not be answered at all. Writing an answer in comments both enables the naughty OP and creates a spasmic mess of anti-Q&A, surely the antithesis of Stack Exchange.   As of 2019, this behaviour is extremely widespread. I often see more answers-in-comments than answers in the actual answer section. Have we all forgotten why Stack Overflow was created? Have we forgotten the very purpose of a strict, peer-reviewed Q&A format? Are we all that desperate to "help", even on what we deem to be off-topic or trivial questions, that we are willing to sacrifice everything valuable about this site that set it apart from the others?  Fortunately, other network websites have started taking this seriously. Picking just two examples off the top of my head,  and  moderators routinely remove answers-in-comments and remind people to stop posting them. Even on SO we have "avoid answering in comments" under the "add a comment" tooltip, but this goes completely ignored and flags (last time I dared attempt one, anyway) are not only rejected but also discouraged.  I'd like us to start being firmer about this on Stack Overflow. Perhaps a special flagging reason for comments? Although I'm loathe to begin removing "useful content", this is not the correct place for them. At all!


Does the photon have a rest mass equal to $E/c^2$, where $E =$ photon energy?

When a photon is emitted, does the rest mass of the emitting body decrease by $E/c^2$ wherein E =photon energy? If yes, does the photon have a rest mass equal to $E/c^2$?


It seems everybody and his cat has a smartphone today. (I'm guilty too.) My son will probably demand his own phone somewhere between the age of 7 and 12. I know I can't compare to when I was a kid because the world is completely different today. So how can I decide?     When should kids get their own cellphone? What factors are relevant for the decision? Smartphone, or plain cellphone? Why?


Can one use ridge regression to test hypotheses?

Are the parameters (the beta's) that result from a ridge regression interpretable as we normally do with canonical linear regression? Can I use them to test hypothesis? Or is ridge regression something that can be used only for Machine Learning (i.e. prediction) tasks?


Is the origin of the Night King in Game of Thrones consistent with the books?

PLEASE NOTE: This question is not a dupe, because it takes into account more information from the latest episode of Game of Thrones.    Game of Thrones season 6, episode 5 ("The Door") revealed to us how the Night King was created:       The Children of the Forest somehow weaponized him (an ordinary man) by pinning him to a Weirwood Tree and stabbing him with some kind of magical stone dagger. Hence, he was created as a weapon to stop the Andals and First Men from taking any more land from the Children.But in the books, the Night's King is transformed after making love to a mysterious woman with pale skin and blue eyes.   So I ask: is the HBO series' take on the Night King’s origin story now completely deviating from the books, or is there still a connection between what we saw in episode 5 and the theories/information already extracted/interpolated from the books?


How to prove that upper limit of $\cos (x^2)-\cos (x+1)^2$ is $2$.   Can anyone show proof of this?


Terrible Lag with similar vertice count as project that runs fine

I have two blend files, both have around 170k vertices, but for some reason one works perfectly fine when modeling, while the other one has massive lag. For example I try to move a small part of an object and it takes 2-4 seconds for movement to even start and is then extremly choppy. What could the reason for this be? Both were edited in a similar way. -Catmull-Clark 2 levels Subdivision -Sculpting The only difference I can think of is that on the one that lags did I manually subdivide a specific, a bit larger area again to get better details, but the vertice amounts are still in the same. Could that be the reason? If so, is there a way to fix this without loosing (too much) details?


How to find the shortest word on a text file

So i have all these words in a text file:  dfasdfasdf adsgad fghjast hdasfh adfhadfn   And i have to display the number of chars of the smallest word without using the 'awk' and 'sed' commands... I have tried all variants of wc but it works with the full text file and not only line per line.   Edit: I apologize for not giving more details on the subject. I am learning Shell basics and have not started programming on Linux yet. The point on this exercise that i Have is to show in the screen how many characters that the shortest word has. To this point I have only learned the commands tr, cp, cut, sort, head, tail, grep, find,wc... So I can't use awk/sed/any other command that I have learned on the internet or programming on this...


Here's my code:  using System; using System.Text; using System.IO; using System.Text.RegularExpressions; namespace ConsoleApplication33 {     class Program     {         static void Main(string[] args)         {             string line = "\"aaaaa\"" + "aaaaa" + "\"aaaaa\"" + "aaaaa" + "\"aaaaa\"";             line = Regex.Replace(line, "\".+\"", "");             Console.WriteLine(line);             Console.Read();         }     } }   I want get rid of "aaaaa" and keepaaaaa.  So with this string I should get aaaaaaaaaa.  But with the code I get nothing.  So how can I fix this?


Do universities hire graduates from lesser universities

Recently, someone analyzed  and found that over half of the professors at the top 51 universities graduated from a top 10 university.  have also brought this up. From my personal observations, most schools do hire graduates from better ranked schools.  Is this because of the competitive job market? We have so many good applicants, we have to narrow it down some how! Or is it simply that these schools produce the most PhDs? Has this always been the case? How rare are exceptions to this? I know of a few people who graduated from a top 75 school and got hired at a top 50 school. But what about bigger gaps? The top 10 schools seem to just swap graduates, do they ever hire from a 50+ ranked school?  Update 2018: I have accepted a tenure-track position at a top 75 department at an R1 university immediately after graduating from an unranked department at an R2 university. It does happen! This may or may not generalize to other fields and countries.


Prove that if $n$ is composite, then $(n-1)! \equiv 0 \pmod n$

This theorem is the converse of Wilson's theorem:     If $n$ is composite and $n>4$, then $(n-1)! \equiv 0 \pmod n$   The question holds up for all the composites I have tried but I'm struggling to form a proof for all composites greater than $4$.


Find the remainder when $10^{400}$ is divided by 199?

I am trying to solve a problem   Find the remainder when the $10^{400}$ is divided  by 199?  I tried it by breaking $10^{400}$ to $1000^{133}*10$ .  And when 1000 is divided by 199 remainder is 5.  So finally we have to find a remainder of :  $5^{133}*10$   But from here I could not find anything so that it can be reduced to smaller numbers.  How can I achieve this?  Is there is any special defined way to solve this type of problem where denominator is a big prime number?  Thanks in advance.


Is agreement required between subject and prepositional phrase?

Which is correct (and have you got a source)?  "Animals store vitamin C in their liver."  "Animals store vitamin C in their livers."


how can i recover to my last folder crushed by the installation of new ubuntu

i install a new operating system Ubuntu in my computer.During the installation i choose to crush the last system.i forget to copy and save all my web project before install the new system     opt/lampp   please somebody can help me how to find my folder project.thank


70s(?) movie with abandoned spaceship, onboard computer can answer simple questions, talks about "warning the bridge" when asked elaborate questions

I am looking for a movie, problably from the 1970s, where a couple boards a deserted spaceship. When using the onboard computer terminals, the computer answers a few simple questions but on more elaborate questions crashes repeating the phrase "warn the bridge".   I saw this movie when I was a kid but I only caught the first few minutes. It seemed interesting enough (for a 10 year old, that is...).


Re-Install Ubuntu After sda3_crypt pswd forget

I've a problem.. I've installed Ubuntu after I had officially the Windows 10 OS. However it is asking me  the sda3_crypt password that I forgot... Is it possible to bypass and change this key ? Or is it possible to reinstall Ubuntu or delete all the new OS and reinstall Ubuntu ? Thanks


How to recover after i execute :git reset --hard HEAD

I made a terrible mistake and execute "git reset --hard HEAD", all day's the local modification lost, how can i recover it?   Thanks millions


What is the Total Reputation field on Area51?

What does the total reputation field on Area51 represent?  It's obviously not the total of the user's reputation on the various sites, as that is the number listed as user reputation.


Find X/Y of an HTML element with JavaScript

How can I find the XY coordinates of an HTML element (DIV) from JavaScript if they were not explicitly set?


How can I change format of number's axis on pgfplots

I want to change format of x or y number in green box of below graph .


How to calculate decimal factorials, like $0.78!$

When I enter $0.78!$ in Google, it gives me $0.926227306$. I do understand that $n! = 1\cdot2\cdot3 \cdots(n-1)\cdot n$, but not when $n$ is a decimal.  I also have seen that $0.5!=\frac12\sqrt{\pi}$.  Can anyone explain me how to calculate decimal factorials? Thanks a lot!


How can I copy files from one server to another using scp or sftp in shell script?

I am currently creating a script where I want to copy files from one server to another using either scp or sftp; the thing I'm confused with is authentication.  If I use scp then how will I give the password?


Why my below code of String Comparison is not showing what i am expecting in java

if("String ".intern().trim()=="String"){     System.out.println("Equals"); }else{     System.out.println("Unequal"); }   above code is showing Unequal. I don't understand why? Can someone explain it?


Does a US Citizen need a visa to enter as a tourist to the UK for 6 months?

Everything I've seen points to no (and I would love that to be true since applying for a visa online costs money) but I'm worried about getting refused due to the length of time I wish to stay, which is 6 months.  I went to university in the UK on a Tier 4 visa, but have never just been a tourist which is what I would like to do now. Since graduating, I have started working but am underwhelmed and would love to travel again. My original plan was Australia but now I would like to see the rest of the UK as well beforehand.  If I arrived with the following, would I be refused entry simply for not applying online?: an approved Australian work & holiday visa, a mini itinerary, bank statements for the last 6 months.


linux how to cd to parent folder if navigated through a symlink

I have following symlink in my home directory.  lrwxrwxrwx 1 mtk mtk   43 Aug  8 20:35 tripple-bit -> /media/mtk/study/Collage/docs   I use the symlink to navigate to the docs folder directly. But now, while being in docs folder, I want to move to it's parent directory i.e. /media/mtk/study/Collage in this case.   How can I achieve this?  On giving cd .., it comes back to the home directory and not the parent directory.


What kernel version comes with Ubuntu 11.04?


Each finite field has a primitive element

I'm reading David R. Finston and Patrick J. Morandi's book  and in section 7.2 page 109 it mentions     It’s true that every finite field has a primitive element. However, the   proof of this fact involves more complicated ideas that we will   consider, so we do not give the proof.   I understand some proof might be hard, based on more complex concepts, but leaving this dangling it’s a bit itchy .. May I ask where can I find a relative simple proof?


Find the three roots of the equation $\left(z+1\right)^3=-1$

Give your answers in the form $x+ iy$, where $x\in \mathbb{R}\:and\:y\in \mathbb{R}$.   I suspect I'll have to use de Moivre's theorem to solve this, but I don't know how to factor in the $+1$, because increasing the real part of a complex number by one doesn't necessarily increase its modulus by one. I know that one of the roots will be $-2$, by inspection, but that's about it.


.DS_Store Removal permanent way of stopping it's creation on Mojave

As a developer, I'm routinely making folders on my Mac running Mojave for testing purposes, my localhost server or for transfer to VPS or other hosting. In principal I'd rather not have .DS_Store altogether, but if the computer wants to have them, I don't mind.    However, is there a way to permanently stop them from being created in a particular dir and subdirs?    I'm aware , but I need to be more selective than an all or none solution. Ideally I can suppress these both on local filesystems as well as remote, but if anyone can help with preventing some of these and allowing others, I would be grateful.  This question is to address Mojave and newer OS only and to address a more fine grained control or to confirm that this is impossible.


Can you illusion a window out of a solid wall?

Right now I'm designing a dungeon that is actually a ruined castle, but with illusion magic it appears to be restored to its original shape. One of the key parts I need is a window, which is actually an illusion, on a real, solid wall.  The party only needs to be able to look through this wall - so whether it's a glass window or (hollow?) window does not matter - while in a moment later, the illusion will be dispelled and the solid wall will be revealed.     What method can be used to achieve this kind of illusion: a see-thru window on a solid wall?      I'm aware I can just make the effect up, but I prefer a spell castable by a PC (or magic item) because this will serve as some sort of a memorial of a PC.    This does not strictly need to be an illusion, although I strongly preferred it to be one. I only need that, when the effect is active, it shows what's behind the wall. When the effect is inactive, it shows what's on the wall.  Maybe some sort of 'glow in the dark' ink, but this actually shows what's behind the wall.  If the method needs a certain interpretation over a rule or description, as long it does not stretch too much from RAW, I'm fine.


Program Modified Hard Disk Icons in My Computer in Windows 7?

Well I installed hard disk sentinel and it changed my drive icons to this. (Didn't like it enough when it would keep adding itself as a startup program whenever I opened it, but my regular SMART reader, thought it was malfunctioning, needed to see if a different reader would read more.)    Uninstalling the program didn't restore original icons. Re-installing, then running the uninstaller as admin and killing explorer.exe before starting the process did not help either. Right clicking the drive into properties and doing restore default icon does not do anything either. In "Save-As" dialogue boxes, the drives show up with no icon.   Anyone know how programs change the default icon for things in My Computer?


Programs doesn't conntect to the internet without Fiddler

There was a time when I was using Fiddler very often for development puproses. At some point I stopped and realized that some programs doesn't conntect to the internet when fiddler is off. At the time it was only Visual Studio, I couldn't look for NuGet packages, my Resharper subscription was not able to verify itself. Few months later I've installed Discord and there is also the problem. when I start Discord it checks for updates, and when there is no Fiddler open, it will fail to communicate. I have uninstalled Fiddler thinking that this will help, but it didn't. Is there some sort of setting I have changed and don't remember or what could be possibly wrong with my OS that this is happening? I am running Windows 7 SP 1 x64.


What is the "single equation" in string theory that's an inch long?

Michio Kaku, famous theoretical physicist claims to be one of the founders of string field theory and to have contributed a equation that's "no bigger than your thumb" that ties general relativity and quantum field theory together. What is this equation I keep hearing about and why is it important?


String Manipulation insert a character every 4th character

In Android if I have an edit text and the user entered 123456789012, how could I get the program to insert a dash every 4th character. ie: 1234-5678-9012?  I guess you need to say something along the lines of:-  a=Characters 1~4, b=Characters 5~8, c=Characters 9-12, Result = a + "-" + b + "-" + c. But I am unsure of how that would look in Android.  Many thanks for any help.


14.04 upgrade not appearing on update manager

I have 12.04 lts with all software up to date and "notify me of new long term support versions" selected on settings, but there's no mention of 14.04. "There are no updates to install" is the persistent message. I have tried both the main server and the uk one, but to no avail. Am I missing something obvious?


How do i restore my usb's space back to 32 GB

Recently i created a bootable windows installer using RUFUS. after doing it i saw that it is now 29.4 GB, how can i restore it back to 32 GB?


Is there a way to show the sum of any different square root of prime numbers is irrational? For example, $$\sqrt2+\sqrt3+\sqrt5 +\sqrt7+\sqrt{11}+\sqrt{13}+\sqrt{17}+\sqrt{19}$$ should be a irrational number.   One approach I used is to let the sum be a solution of an even polynomial  $f(x)$with integer coefficients and prove by induction that by adding another $\sqrt{p_{k+1}}$.  The new polynomial can be written as $$f(x+\sqrt{p_{k+1}})f(x-\sqrt{p_{k+1}})$$  where $$f(x+-\sqrt{p_{k+1}})=P(x)+- Q(x)\sqrt{p_{k+1}},$$  where $P(x)$ is an even plynomial and $Q(x)$  is an odd polynomial.  The new polynomial can be written as $$P^{2}(x)- Q^{2}(x)p_{k+1}.$$  Assume it has a rational solution $a$, we must have$$P(a)=Q(a)=0.$$  My calculation stopped here since I can't find any contradiction result from this. Can anyone continue this proof, or has other better way to solve this? Thanks!


How do I perform a JAVA callback between classes?

I am coming from JavaScript, in which callbacks are pretty easy. I am trying to implement them into JAVA, without success.  I have a Parent class:  import java.net.Socket; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors;  public class Server {     ExecutorService workers = Executors.newFixedThreadPool(10);     private ServerConnections serverConnectionHandler;      public Server(int _address) {         System.out.println("Starting Server...");         serverConnectionHandler = new ServerConnections(_address);          serverConnectionHandler.newConnection = function(Socket _socket) {             System.out.println("A function of my child class was called.");         };          workers.execute(serverConnectionHandler);          System.out.println("Do something else...");     } }   Then I have a child class, that is called from the parent:  import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.logging.Level; import java.util.logging.Logger;  public class ServerConnections implements Runnable {     private int serverPort;     private ServerSocket mainSocket;      public ServerConnections(int _serverPort) {         serverPort = _serverPort;     }      @Override     public void run() {         System.out.println("Starting Server Thread...");          try {             mainSocket = new ServerSocket(serverPort);              while (true) {                 newConnection(mainSocket.accept());             }         } catch (IOException ex) {             Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);         }     }      public void newConnection(Socket _socket) {      } }   What is the right way of implementing the  serverConnectionHandler.newConnection = function(Socket _socket) {     System.out.println("A function of my child class was called."); };   part, in the Parent class, which is clearly not correct?


What is the maximum number of Simulacra I can have?

Simulacrum seems like a powerful spell; I assume that the duplicate gets all my known spells and spell slots due to this part of the description:  Otherwise, the illusion uses all the statistics of the creature it duplicates  So let us assume that I have all the material components (which are very expensive). If I cast Simulacrum, have the duplicate cast Simulacrum and continue doing that, what would my limit be? Would my limit be how many times I can halve my health?:  It appears to be the same as the original, but it has half the creature’s hit point maximum  If not, what is the maximum number of duplicates I can create with Simulacrum? I know if I cast Simulacrum more than once, then the illusion disappears, but I believe having the copy cast the spell itself will bypass this.


How to realize a camera that is following the player

I want to create a simple space game, like Asteroids. Unlike Asteroids, the map is supposed to be larger than what the player can see:   The grey part is what the player can see in the game window, to see the rest of the level he needs to move his spaceship. When his spaceship reaches the borders eventually, the camera is supposed to stop and not move any further. Thus, the spaceship wouldn't be central anymore.  I am using libgdx and have no idea how to do this.


Let $(a,b)$ and $(c,d)$ be intervals in $\Bbb R$, and find an injective and surjective function from $(a,b)$ to $(c,d)$

So here is this question I got stuck on:  Let $(a,b)$, $(c,d)$ be intervals (not sure if that's the correct term) on $\Bbb R$, so that $a<b$, $c<d$. Find an injective and surjective function $f:(a,b)\rightarrow(c,d)$.   Thanks in advance!   P.S. I get these question a lot. Is that some way of thinking, or some general method I should follow to make these question easier for me to solve?


Books automatically deletes my books when offline, and when there is enough space on device

There is something strange going on with Books on iPad and iPhone. It keeps deleting some books locally, keeping them in the cloud.  It's frustrating because it happens when I'm offline and I simply lose the access to them.  Why is this happening at all? And how can I stop it?  I enabled syncing things over iCloud Drive and everything, but I can't see an option to disable such optimizations.    PS: the same thing happens with Photos, Numbers and Pages. The Photos app has an optimize storage option. But there doesn’t seem to be such an option for Books, Numbers and Pages.   A clear example: just a few hours I was reading a book on Books, I took a nap, and when I opened the Books app, the book was not available offline anymore. Since I don’t have internet right now, it’s simply impossible to access the document.


I find pretty irritating dealing with Telegram under Ubuntu. I run 18.04.1, I guess I picked the official Telegram client from Ubuntu Software... for a start, there a two clients in there. One from the Ubuntu store does not auto-update and the other does not recognize your theme/icon set/shell (see screenshot)...    Then you have as well the tar.xz on the official Telegram website that creates a double entry in the Show Applications menu and lives in your home folder for whatever reason. I believe there are also some esoteric unofficial clients you can find around.  So, it's a mess. I just want an official client who blends in well with your theme and auto updates itself to the latest version. Something normal, really. Anyone has some clues? Thanks!


My comment `code block` was not converted properly, is this a bug?

In my comment here:    I needed to have a : symbol with a leading space, but I couldn't figure out how to get it.  And for some reason it converts differently in this question to how it would in a comment - as you can see, in the comment box ` :` wasn't turned into code block at all.  Is it impossible, by design, to have leading or trailing space in a codeblock?


Differentiable bijection $f:\mathbb{R} \to \mathbb{R}$ with nonzero derivative whose inverse is not differentiable

I had an exam today, and I was asked about the inverse function theorem, and the exact conditions and statement (as stated in Mathematical Analysis by VA Zorich): Let $X, Y \subset \mathbb{R}$ be open sets and let the functions $f: X \to Y$ and $f^{-1}: Y \to X$ be mutually inverse and continuous at points $x_{0} \in X$ and $y_{0}=f(x_{0})$, respectively. If $f$ is differentiable at $x_{0}$ and $f'(x_{0}) \neq 0$, then $f^{-1}$ is also differentiable at $y_{0}$  and its derivative is $$(f^{-1})'(y_{0})=(f'(x_{0}))^{-1}=\frac{1}{f'(x_{0})}.$$  Then I was asked to come up with an example which would show that the condition that $f^{-1}$ be continuous at $y_{0}$ is not redundant, i.e. that there exists a differentiable bijection $f: \mathbb{R} \to \mathbb{R}$ such that $f'(x) \neq 0$ for all $x \in \mathbb{R}$, but whose inverse $f^{-1}$ is non-differentiable at some point $y_{0} \in \mathbb{R}$ (my professor stated that both the domain and range are $\mathbb{R}$, but I'd be open to any example whose domain/range are open subsets of $\mathbb{R}$). I couldn't come up with an answer on the spot, so I was left with a homework assignment, which I'm shamelessly asking for help with here.  Here are some examples that almost, but don't quite fit the bill:   $f(x)=x^3, f:\mathbb{R} \to \mathbb{R}$, whose inverse $f^{-1}(y)=\sqrt[3]y$ is not differentiable at $0$, but the problem is that $f'(0)=0$. If $f'(x) \neq 0$ were removed as a conditions, many counterexamples could be easily found, because any bijection $f$ whose derivative is zero at $x$ implies that $f^{-1}$ is not differentiable at $f(x)$. An example which is possibly closer to what I'm looking for is the one found in the answer of , which fits the bill completely except for the domain/range, because $f^{-1}$ is not continuous at 1, let alone differentiable, but its domain is not an open or connected set, so it wouldn't be easy to extend its domain to $\mathbb{R}$ and still keep all of its properties.   I'm aware that the inverse $f^{-1}$ of a continuous bijection $f$ defined on an interval ($\mathbb{R}$ in this case) is also continuous, so the "pathological inverse" that I'm looking for is continuous (unlike example 2), but not differentiable (i.e. "spiky") at a point, even though $f$ isn't "spiky" anywhere.


I never had to test an application with Page Object Model, so trying to study up on that. Questions:   Is it true that it is only used when you need to enter different sets of data into the same edit field multiple times? Is it true that in fact there are more applications that don't use POM than applications that do? Do I understand it right that POM can be implemented without Page Factory and if so, when is it worth using Page Factory?


Note: This post is not for the faint of heart. In this post, a pluralization bug will be discussed. If you are allergic to these types of bugs, turn back now. Neither I nor me am responsible for any injuries caused by reactions to this post.   I was looking through the , and noticed this in the sidebar:    Pretty self-explanatory. Very, very minor, but quite annoying once you notice it.


Virtual function behavior on statically declared objects

Consider the following code:  class A { public:     virtual void hello() { std::cout << "Hello from A" << std::endl; }     void hi() { std::cout << "Hi from A" << std::endl; } };  class B : public A { public:     void hello() { std::cout << "Hello from B" << std::endl; }     void hi() { std::cout << "Hi from B" << std::endl; } };  int main() {     A foo = B();     foo.hello();    // prints "Hello from A"     foo.hi();       // prints "Hi from A";      A *bar = new B();     bar->hello();   // prints "Hello from B"     bar->hi();      // prints "Hi from A" }   I'm aware that since hello() is declared as a virtual function in class A, any object of class B should have overridden behavior. However, why doesn't the object foo call the overridden hello()?  In other words, in what ways are the two object construction methods different? A foo = B(); v/s A *bar = new B()?  Thanks!


Gmail Filter for Empty/Missing/Blank/Null Subject field

Does anybody know how to configure this filter in Gmail?  I've tried various things like just having quotes, (no subject), subject:(no subject), etc.  I realized that doesn't work because when you look at the headers of an email with "no subject" in the subject line, the actual subject header line is completely missing.  I even exported a filter, edited the xml, then re-imported it taking out any characters from within the value='' line. doesn't work either.


Check if Sequence is Graphic: 8, 8, 7, 7, 6, 6, 4, 3, 2, 1, 1, 1

This is part of my Discrete Math homework and I have no idea how to solve this.  I am given this sequence: $8, 8, 7, 7, 6, 6, 4, 3, 2, 1, 1, 1 $  I have to check whether it is graphic or not.   How do I go on about doing that? Haven't done anything like this before so I'm a bit puzzled. I'm not sure how to solve this, do I have to plot this sequence or what?


Disable CTRL + ALT + [LETTER] to produce accented variations

After an unknown config change, CTRL + ALT + [LETTER] has started producing common accented versions of [LETTER]. I'm not a big fan of this arrangement, seeing as I've memorized all my favourite ALT + [NUMPAD SEQUENCE] references and was used to using CTRL + ALT + [LETTER] for various other application-specific commands in my text editor.   suggests that this has something to do with a switch to an 'international keyboard', and says this can be removed in the control panel or toggled by hitting ALT + SHIFT, but I can't get my system to confirm this, and the solutions (or close approximations thereof) don't work.  Specifically, I've been to Control Panel\Clock, Language, and Region\Language\Advanced settings and switched the override for default input method from 'language list' to English and I've been to Control Panel\Clock, Language, and Region\Language\Language options and made sure that I only have my one input method UK — as opposed to international. Other than that I'm not quite sure where to look. Any ideas?


Portal users cannot own partner accounts with Customer community plus License

We have 2 profile for eg. ABC and XYZ which are of Customer community plus License. I want to create a contact from a custom object[It has a lookup to contact] from profile ABC using standard oob functionality in the community template - Customer Account Portal Template.  Error - "Portal users cannot own partner accounts"  I am getting this error. Is there any way to avoid it.   I have also tried to change the owner of the contact as below from process builder.   Please suggest what I am missing here.


How do I get my vector logos to look super sharp on the web?

I do a lot of work with Illustrator, but I've never been super happy with how my work looks on our website. I've tried various techniques - saving from Illustrator, and opening in Photoshop and saving - but I'm still missing something.  Ed. The logo was only ever supplied as AI. I get the same slightly fuzzy result whether I'm saving for web & devices from Illustrator, or taking the vector into Photoshop. I tend to scale in Illustrator to the required size, and then save for web (inc type optimised - there's text in the logo).


Is it good practice to make the constructor throw an exception?

Is it a good practice to make the constructor throw an exception? For example I have a class Person and I have age as its only attribute. Now I provide the class as  class Person{   int age;   Person(int age) throws Exception{    if (age<0)        throw new Exception("invalid age");    this.age = age;   }    public void setAge(int age) throws Exception{   if (age<0)        throw new Exception("invalid age");    this.age = age;   } }


$$\sum_{n=1}^\infty \frac{n}{3^n}$$  How do you find the sum?  I don't know how to start this problem and no other website I found talks about a problem like this.


I have a Linq to objects statement   var confirm = from l in lines.Lines   where (l.LineNumber == startline.LineNumber) || (l.LineNumber == endline.LineNumber)   select l;   The confirm object is returning an 'Object Null or Not A Reference' at at System.Linq.Enumerable.WhereListIterator`1.MoveNext()  If the result of the query was empty, it would just return an empty enumerator. I know for a fact that there are no null objects in the statement. Is it possible to step through the LINQ statement to see where it is falling over?  EDIT When I said I know for a fact that there are no null objects it turns out I was lying :[, but the question remains, though I am asuming the answer will be 'you can't really'  LINQPad is a good idea, I used it to teach myself LINQ, but I may start looking at it again as a debug / slash and burn style tool


Sometimes the output of ps -p $$ shows the absolute path to the currently-running zsh,  % ps -p $$   PID TTY           TIME CMD  1027 ttys005    0:00.11 /usr/local/bin/zsh   but not always:  % ps -p $$   PID TTY           TIME CMD  1507 ttys003    0:00.07 zsh -fl   What is a consistent way to get the path to the currently-running zsh?  EDIT (clarification): I'm interested in how to do this primarily in Darwin and Linux, but also in NetBSD.


Is it possible to create a MySQL database from Java?  I have only seen connection URLs examples like this where the database name is specified in the URL:   String url="jdbc:mysql://localhost:3306/test";  Connection con = DriverManager.getConnection( url, "cb0", "xxx" );   How can I create a MySQL database when I only have a login name and password?


Will my luggage be delivered to final destination?

Tonight I will be leaving Rome to go to Boston, with a stop in Frankfurt. Both legs are operated by Lufthansa, and I already checked-in online and have both boarding passes, but will my checked-in baggage be directly delivered to Boston after I leave it at a drop-off counter or will I have to check it in again at Frankfurt?


I want to reset Ubuntu. I have searched it on Google many times and I am new to Ubuntu so I am wondering how to reset it without too much complication. I have only Ubuntu on my PC i don't have windows 7/8/10 so i can't dual boot  I want to completely delete everything and have it start like it did when it was originally installed. Completely erase everything and restart, reinstall, and reconfigure Ubuntu.


temporal Anti-badges with negative side effects to discourage bad behaviour

The idea is to "award" temporal anti-badges for bad behaviour, which will be removed when some kind of penance has been done. [edit One could even include side effect which activate some constraints.] I'll post some examples as answers, feel free to add more.  edit Jeff replied        I think this may be fine for training a dog who actually should accept you as alpha male and desire your attention, however some people behave "wrong" not because they want attention but simply because a) they don't know better or b) they are indeed mischievous. While group a) should be easily correctable, group b) will take being ignored as sign that they are free to cause <dramatization> havoc </dramatization> as much as they desire. Certainly, they can get banned for that, but anti-badges would at least provide means to put someone on parole.  Consider this suggestion as user-ban's little brother


Concat all strings inside a List using LINQ

Is there any easy LINQ expression to concatenate my entire List<string> collection items to a single string with a delimiter character?  What if the collection is of custom objects instead of string? Imagine I need to concatenate on object.Name.


Prove that for a polynomial function $f$ if $f(x) \geq 0$ for all $x$, then $f(x) + f'(x) + \cdots + f^{(n)} (x) \geq 0$

Prove that for a polynomial function $f$ with degree $n$ if $f(x) \geq 0$ for all $x$, then $f(x) + f'(x) + \cdots + f^{(n)} (x) \geq 0$.  Give me some hints for this and please explain to me how you have come to those hints.


Comments turned off, but 'Leave a reply' link still there

On my site, commenting is not enabled.  But at the top of each blog post (except for one, strangely), there's a 'Leave a reply' link.   (the link doesn't do anything -- but the words 'leave a reply' sitting there obviously make it look like you can leave a reply...)  I don't see any 'discussion module' in my edit-post page.  Here's an example page with a 'Leave a reply' link, just under the post title:    I'm on Mac Chrome -- in case it's a small browser-related bug...


I found 11 questions like this on gamingSE already, but none of them have proper and up-to-date answers. So I'm creating this Q&A:  How do you either activate a command x seconds/minutes/hours/… in the future or every x seconds/minutes/… in a loop?  Repeating command blocks and ticking functions execute 20 times per second, redstone is  in many situations and most of the extremely fancy solutions, like falling blocks in cobwebs, have broken over time or are needlessly complicated.


I want to edit my crontab file to schedule a script. Where do I find it?


How can we solve the diophantine equation?

How can we find all the primitive solutions of the diophantine equation $x^2+3y^2=z^2$ ?   Some solutions are $(\pm n , 0 , \pm n)$ for $n\in \mathbb{N}$. How can we find also the other ones?


How to hide the arguments sent to the executable from ps

I've written a script that uses ps -G <groupid> -o uid,cmd to log the commands that a certain group of the users of a system run in time. What I want to know is whether it's possible for the users to hide what they are doing from my script. And how can they do that if so. Please note that my users are not in sudo group. So they can't use prctl; I need another option that doesn't require administrative privileges I thought wrapping my code in a function and setting an alias for it and calling that alias would hide my script but it doesn't seem to work. So is there anyway to hide the code from ps? Here is an MVC of my code to show why I think the alias trick does not work: #!/bin/bash foo(){     sleep 3      ps -G 1,2,3 -o uid,cmd -H } alias bar='foo' while true do     sleep 1     ${BASH_ALIASES[bar]}     echo 1  done  And here is a summary of the related parts of what I get as the result: myid -bash                             (Reasonable) myid /bin/bash ./myscript.sh           (Reasonable) myid /bin/bash ./mysctipt.sh           (I don't care but I wonder why it's appearing twice!) myid ps -G 1,2,3 -o uid,cmd -H         (What I don't want to be viewable) myid sshd: myusername@pts/9            (Reasonable)  Please note that there was some indention in the output (due to -H option in ps) that I removed and the indentions of the duplicate line was different. From this I've concluded that making alias etc does not work. By does not work I mean that my users can't make alias for their commands and run those commands and hide their commands this way. Because if they could my ps command for which I had set an alias in my script shouldn't have appeared in the result. So here is the question in simple words: Is there anyway for the non-sudo users of my system to run some scripts in a way that I won't be able to notice using the ps command. p.s. Please note that I'm aware of the pam methods for logging and stuff. I just want to see if this method works. p.s.s. I pointed out the alias method because a friend told me this will work but it didn't. So I already explained that it doesn't seem to work to prevent people from coming and giving that as an answer. request!!! Can someone please explain to my why my question is closed as being an exact duplicate of another question while The answers in the mentioned question does not solve my problem at all!??


Exception When Adding an Object to a Documentum DfCheckOutOperation

I'm trying to write a Documentum DFC executable that will check out an object from a given docbase. I've been able to establish a session with the docbase,  retrieve the object to be checked out and verify that it is not already checked out. But when I try to add the object to the DfCheckoutOperation in the following code  IDfCheckoutOperation checkoutOperation = new DfCheckoutOperation(); checkoutOperation.add(objToCheckOut);   I get a NullPointerException; here's the stacktrace:  Exception in thread "main" java.lang.NullPointerException     at com.documentum.operations.impl.OperationNodeTreeBuilder.populate(OperationNodeTreeBuilder.java:549)     at com.documentum.operations.impl.OperationNodeTreeBuilder.add(OperationNodeTreeBuilder.java:65)     at com.documentum.operations.DfOperation.add(DfOperation.java:324)   What am I doing wrong? Note: Neither object reference is null, so this is not the typical NullPointerException scenario, i.e., this is not a duplicate question


New member unable to comment, answer gets deleted catch 22

Possible Duplicate:          I'm a new user and would like to help answer a question (). Ideally I would like to post a comment to ask some clarifying questions, but I'm unable to as my reputation is still at 1 as a 'newbie'. In my eagerness to help, I posted an 'answer' with my questions and a suggestion I thought would be helpful. It got a few upvotes but was then deleted by a moderator - which I now realise was probably inevitable given I was asking clarifying questions. I really want to help answer the question, but it feels like I'm in a catch 22 situation - what's the best way for me to still contribute to the question?


I just wrote  in an ELL chat room. But looking at it (or more accurately, listening to my "inner voice" trying to "read it aloud"), I find it bothers me a lot.  A quick check on Google Books finds a claimed 432 written instances of , and 910 instances of , which suggests a significant minority of writers don't have a problem with the fact that the two different read's don't sound the same.  When I check the same construction with other verbs that don't have the same written form for past participle and present tense, it seems people nearly always include both (e.g. :1230, :8; :357, :7).  I'm not usually a big fan of "grammatical rules", but it seems to me there "ought" to be a rule that you shouldn't delete one instance of the verb unless it's "the same" as the one you're keeping. And it also seems to me that since language is primarily spoken, "the same" ought to mean "sounds the same when spoken", not "looks the same when written".  Can anyone who knows more than me about formal rules of grammar settle this one?    As an aside, offhand I can't think of any verb where the past participle and present tense sound the same but are written differently (maybe there aren't any), but would deletion be okay in that case?


Is there a way in Google Docs to automatically update the date in a header of the page, so that whenever I print the document it will have today's date?


Does the standard normal distribution have a heavy right tail? How to prove it? Does the standard log-normal distribution have a heavy right tail? How to prove it? Thanks!


Google cache is not showing up for a page despite trying twice to use the fetch and render tool

I did Fetch and Render twice on a particular page but the cached version of the page is still not showing up on Google.  I did a Fetch and Render on other posts on the site and they all showed cached versions within 24 hrs.  Haven't tried doing any change on the above post so not sure if Google is really crawling the page.


Let $f(t)=t \sin \frac 1 t$ if $0 < t \le 1$, and $f(t)=0$ if $t = 0$.  Consider the curve $\gamma$ with parametric representation $\phi : [0, 1] → \mathbb{R}^2$ defined by $\phi(t) = (t,f (t))$. Prove that $\gamma$ is a continuous curve which is not rectifiable.  for continuity, do I just show that $t\sin\frac{1}{t}$ is continuous on the interval given? To prove it is not rectifiable, I have to show that length of $\phi$ is infinite. Do I show the integral of the derivative of $t \sin \frac 1 t$ is infinite?


Does a chatroom get frozen even if feeds post messages?

Let's say, there's a chatroom and no user is active. But, RSS/Atom feeds keep posting messages in it.  Would the chatroom get frozen?


Rotation and Scale have suddenly stopped working?

I was working quickly, (making mistakes), and suddenly rotation and scale transforms stopped working. I think I hit some shortcut or button by accident. Translate still works though. I checked that the transforms weren't locked and such, to no avail. What could be the cause?


How can I add a second or 3rd custom url under on site ( and ) When clicking the button to add a custom url I don't have an option to choose the mysite.secure.salesforce.com domain.  I'm trying to avoid adding multiple sites just to have /pageone and /pagetwo


How can I determine if the same user is registering again in my application?

So, here is what I need to do. I have a web application we have developed with Laravel 4, where people register to gain access to. I use their email as their username.  Here is the catch though. We award our users points for using the website, but we have a daily cap of those points, and if user goes over the daily limit, they are capped and can't receive points no more. The problem is that, we don't want the same user to register multiple times with multiple email addresses and avoid the cap in that way.   I've thought of using cookies for this, but cookies can easily be deleted. I've also thought of using their IP address, but Ip addresses change, and sometimes different users can have the same IP address. So, I am looking for a more fool proof solution. Any ideas are appreciated.   Thanks!


The following two lines give me different results with respect to spacing:  \noindent\makebox[\parindent]{?} Blabla  \noindent\makebox[\parindent]{?}Blabla   The second case is what I want: no space is added between the end of the box and the next letter. However, this piece of code is part of a customized command of mine (to give a simplified example: \newcommand{\myBox}{\noindent\makebox[\parindent]{?}}) and I cannot seem to avoid this extra space after using my customized command.  Does anyone have a solution to this problem?  Thanks in advance!


Is pairwise distance matrix useful to k-means?

The k-means implemented in scikit-learn precomputes distances but I don't how these distances are used. In its standard version, k-means is known to compute only the distances between the points and the centers. I am wondering if a pariwise distance matrix is useful to k-means.  Thank you for your help.


How to calculate $\lim\limits_{x\to\infty} \frac{\log(x!)}{x\log(x)}$. Assume base $e$ (so $\ln)$.   My attempt:  $$\lim_{x\to\infty} \frac{\log(x!)}{x\log(x)}=\lim_{x\to\infty}\frac{\log(1\cdot 2\cdot 3\cdots x)}{x\log x}=\lim_{x\to\infty}\frac{\log(ax)}{x\log x}, a\gt 0$$  Applying LH rule:  $$\lim_{x\to\infty} \frac{\frac{1}{x}}{\log(x)+1}=\lim_{x\to\infty}\frac{1}{x(\log(x)+1)}=0$$  Wolfram tells me the answer is $1$. Where is my mistake?


When to use Universe or universe?  I'm editing a document where it is "The Creator of the universe". Is it correct?


Using a bézier curve to raise/lower height of vertices?

I would like to be able to modify the height of vertices on a plane using a bézier curve. I sculpted a example of what I would like to do:    For my case, I would need the deformation to be somewhat smooth (i.e. the change in height is greatest at points closest to the curve, and then dampening off as they are further away, until they are far enough that they are not changed at all).   Is there any way to achieve this?  I have tried going a different route, using the curve + array modifier but I end up with undesired results .  I am comfortable with trying to write a custom script if needed; but was wondering if there is already a built-in method or known plugin that does this?


I'm doing some css for my form that looks like:  <sf:form>      <table>         ...      </table> </sf:form>   (according to Spring framework form tag)  I want to select this form and can't do it in traditional way:  sf:form {       property: value;  }   because of the colon interpreted by css.  I know that I can add an identifier to my form, such as id or class to select it, but also it's interesting for me if there is a way to do it with some css trick. Maybe, taking the parent element of a table tag will take care of it? The sf:form could be taken as parent of a table by:  sf:form>table   But here we have this annoying colon again.   So, can I take a table parent tag without specifying the sf:form one? Or, maybe, there are another ways of dealing with such elements as colon that breaks the structure of a tag in the css case?


How do you get a non-italic pound sign? (£)


Trying to volunteer as a research assistant post-Master's and not having any success so far

I'm an MS in CompSci grad who wants to do a PhD someday. The one thing I don't have from my time in undergrad and MS is significant research experience. Of course, I did undergrad research but was never published in any papers. I make a lot as a professional and want to volunteer(read, free) part-time doing research for a professor or lab post-graduation, but I have no idea how to approach this or even find interest amongst professors or labs. Any ideas?  Edit: Undiagnosed disability crippled my undergraduate performance. I was unmedicated, untreated, and had no idea on how to cope. I really managed to redeem myself through my graduate performance and am basically looking for a second chance. If anyone has disability-specific resources as well, that would be great.


There was an Asia Minor and an Asia Major located in modern-day Iraq.      We use "an" when the word is starting with a, e, i, o, u. (e.g. an elephant) Second rule is if the word pronounced directly a, e, i, o, u we cannot use "an". (eg. a unicorn)  Asia in this case starts with a, and is pronounced directly as a.


Got a virus that every once in a while opens a new tab in any browser. It does so even while I am watching video on YouTube - it just goes ahead and opens up a new tab with some page from the internet. It is quite annoying. Is there any way to get rid of it?


How to typeset piecewise-defined functions?

I am attempting to write out the basic process for finding the absolute value of some number.  In ASCII, this is what I am attempting to write.  |X| = {         x  if x > 0         0  if x = 0         -x if x < 0       }   This is what I have so far.  \begin{equation} \left|x\right| = \biggl\{ x\ if\ x > 0 \biggr\} \end{equation}   I cannot figure out how to add the vertical spacing to allow the other two lines.


Is it a good way to use an auto increment integer field as the primary key?

In database design, is it a good way to use an auto-increment integer field as the primary key?  For Example, I have a tenant table, tenant_id is unique. In this case, do I need a auto_increment key?  What the benefits of the auto_increment primary key and when to use it?  Thank you.


I'm using libSVM for binary classification and my training data is very unbalanced (-1:90%, +1:10%). According to libSVM's documentation, it's better to set different penalties for positive and negative classes. For example, the SVM problem is:  $\min\limits_{w,b,\xi}  \frac{1}{2}{\bf w^Tw} + C^+\sum\limits_{y_i=1} \xi_i + C^-\sum\limits_{y_i=-1} \xi_i$    My question is which penalty should be larger and why. Thanks


How to derive Poisson distribution from gamma distribution?

Let $T_1, T_2, \dots$ be iid sequence of exponential random variables with parameter $\lambda$. The sum $S_n = T_1 + T_2 + \dots + T_n$ is a Gamma distribution. Now as I understand the Poisson distribution is defined by $N_t$ as follows:  $$N_t = \max\{k: S_k \le t\}$$  How do I formally show that $N_t$ is a Poisson random variable?   Any suggestions appreciated. I tried to work out a number of proofs but cannot get to the final equation.  References


This may be a dumb question but I really need to find a solution for it. This is my code:  public static <J> J[]fromJson(Class<?> classType, String fileLocation){     try {         Gson gson = new Gson();          J[] data = (J[]) gson.fromJson(new FileReader(fileLocation), classType[].class);          return (J[]) data;      } catch (Exception oe) {         System.err.println("Exception: " + oe.getMessage());         return null;     }   But Java does not allow the decalration as classType[].class (5th line). and I need to call my function as fromJson(People.class,"file.json"). I try to be generic with this method, so I can use the same method for different class types that I need from the Json file.   Can someone show me what I did wrong ? Thank you very much.


Is this usage wrong? A: "What do you want to do in your free time?" B: "I would like to see my parents in my free time"

Longman  defines would as,  6. "would like" is used to say that someone wants something or wants to do something My parents would like to meet you.  But this English teacher said in a  "would like" should be used in specific situation (right-now need). So, I would say "would like" is a formal form of "want" but only for "wanting something in a specific situation" See scenario 1,  A: What do you want to do in your free time? (general "want") B: I would like to see my parents in my free time. (this sentence sounds very wrong to me though I am not a native speaker)  B needs to say: I want to see my parents in my free time. See scenario 2,  A: What do you want to do now? (specific "want", a "want it right now") B: I would like to see my parents right now. (this sentence is fine & sounds more formal than "I want to see...")  So, I would like to ask users, if the following usage is wrong.  A: What do you want to do in your free time? B: I would like to see my parents in my free time


I am writing an Article in LaTeX.  Please suggest me how to create a highlight boxes like the ones shown below in LaTeX: