What would cause a form's 'insert into' code to only save to the database 80% of the time?

This shelter's website I've recently taken over has a form that inserts into a database. But it's been reported that it is only saving some of the submissions, not all, to the database. I can't find anything consistent between the submissions that have failed (the visitors emailed their info in).  Things I've tried and other notes:   I thought it might be a char limit on a column but I confirmed they're all TEXT types and max submission was 3 sentences. I checked for reserved words and didn't see any being used Form does sometimes save just fine. Estimate about 1 in 5 fail. I went thru all other posts on this site noting this error but none of the accepted solutions fixed the problem for me I can recreate the error every time I try to resubmit one of the submissions that failed but I can also submit my own with test values and it saves to the database just fine. I researched the possibility of a column rejecting a special character like an apostrophe but came up with nothing solid. There is nothing unique about the data being submitted outside of a couple fields being 3 sentences long. The form submits to a php file with the code noted below. It's not on the form page itself.   This is the error that comes up when it does fail: Error adding application: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near  Here's my code:    $link = mysqli_connect('localhost', 'oursite_main', 'password'); if (!$link) {   die('Could not connect to database:' .mysql_error()); }   if (!mysqli_select_db($link, 'oursite_application')) {   $output = 'unable to locate the application database.';   include 'output.html.php';   exit(); }  $age = implode(', ',$_POST['age']);    $sql = "INSERT INTO adoption (name,address,city,phone,email,dog,sex,age,details,setting,home,permission,wkhours,time,family,pets,livestock,ydsize,fencing,livingqtrs,vet,activities,experience,whybc,greatdog, lookingfor,shelter,ifyes,helpfulinfo,status,year) VALUES('$_POST[name]', '$_POST[address]' , '$_POST[city]' , '$_POST[phone]' , '$_POST[email]'  ,'$_POST[dog]' , '$_POST[sex]' , '$age' , '$_POST[details]' , '$_POST[setting]' , '$_POST[home]' , '$_POST[permission]' , '$_POST[wkhours]' , '$_POST[time]' , '$_POST[family]' , '$_POST[pets]' , '$_POST[livestock]' , '$_POST[ydsize]' , '$_POST[fencing]' , '$_POST[livingqtrs]' , '$_POST[vet]' , '$_POST[activities]' , '$_POST[experience]' , '$_POST[whybc]' , '$_POST[greatdog]' , '$_POST[lookingfor]' , '$_POST[shelter]' , '$_POST[ifyes]' , '$_POST[helpfulinfo]' , '$_POST[status]', '$_POST[year]')";


The reputation system on Meta Stack Overflow is somewhat weird to understand

After spending some time on Meta Stack Overflow, I realized the voting system here is . The votes are used for agreement or disagreement toward the question/request and the answer itself instead of quality. However, by downvoting a post, it will also decrease one's reputation at the same time, which will result in a lost of privileges such as downvoting other's post. This behavior of the system seems to tie "how many people agree to you" and "what you can do" together. It is basically saying if many users do not agree to you, you will not be able to express your opinion and disagree with other's idea. I don't see any logical relation between these two. Furthermore, .  Voting up or down does not affect reputation. You are now free to vote purely based on post content, without worrying about how your vote might positively or negatively affect someone’s reputation score.  This makes sense because why on earth would reputation be tied with expressing opinion? Jon Seigel in  offered an "explanation" on why the rep system on meta SO shouldn't be changed:  ... there is a penalty for downvoting, but you get upvoted more here, too, so you have more rep to work with.  This clearly does not explain why downvoting causes a decrease in reputation. In the Stack Exchange system, reputation is an numeric indicator of how trusty and experienced a user is. So does this mean a person with more people agreeing is way more "trusty" than another person with people disagree his questions even though it is a completely good question? Clearly there is something wrong with the system in meta SO, and I believe that it should be modified to remove the rep decrease when voted down, for both voter and poster.


In programming terminology, what do you call the difference between these instructions:

PHP: strpos($haystack, $needle);  and  Python: haystack.find(needle)  It seems like python uses the latter method more often, and PHP the former. But is there a name for these two ways of doing it? I'm looking for the name of the style of programming.  Is it correct to call the one procedural and the other object-oriented programming? Or is that simplifying matters?


Is there any downfall in importing a whole library in java

Is there a downside to doing this:  import java.util.*;   rather than importing a specific part:  import java.util.Stack;   Does it take more time to build for example?


Integrate $ I(t)=\int_0^\infty \left( \frac{\sin tx}{x} \right)^n\,\mathrm d x$

How to integrate the following: $$ I(t)=\int_0^\infty \left( \frac{\sin tx}{x}  \right)^n\,\mathrm d x$$  I tried to using the Laplace transform:  \begin{align} \mathcal{L}\left[I(t)\right]=\int_0^\infty \mathcal L\left[\left( \frac{\sin tx}{x}  \right)^n\right]\,\mathrm d x \end{align}  but I don't know what to do then.


Can I implement ridge regression in terms of OLS regression? Is it even possible?  I am interested because scikit-learn supports non-negative least squares (NNLS), but not non-negative ridge regression. So, I'd like to transform my data as to be able to call the underlying NNLS function, but achieve ridge regression functionality.


What is the pythonic way of generating an oAuth token?

For this example I will use shipstation's , but this question applies to any api using oAuth tokens.     The ShipStation API uses Basic HTTP authentication. The Authorization header is constructed as follows:         Username (API_KEY) and password (API_SECRET) are combined into a string "username:password"   The resulting string is then encoded using the RFC2045-MIME variant of Base64, except not limited to 76 char/line   The authorization method and a space i.e. "Basic " is then put before the encoded string.         For example, if the API_KEY given is 'ShipStation' and the API_SECRET is 'Rocks' then the header is formed as follows:      Authorization: Basic U2hpcFN0YXRpb246Um9ja3M=   Easy right?  My first attempt:  import base64 KEY = 'ShipStation' SECRET = 'Rocks'  AUTH = bytes(str(KEY) + ':' + str(SECRET), encoding='utf-8') TOKEN = base64.b64encode(AUTH)  AUTH_TOKEN = 'Basic ' + str(TOKEN) print(AUTH_TOKEN) # Basic b'U2hpcFN0YXRpb246Um9ja3M='   As you can see, the AUTH_TOKEN I made has an additional b' at the beginning and ' at the end, which causes a 401 when you send the request.  Here is my fix to this:  import base64 KEY = 'ShipStation' SECRET = 'Rocks'  AUTH = bytes(str(KEY) + ':' + str(SECRET), encoding='utf-8') TOKEN = str(base64.b64encode(AUTH))  AUTH_TOKEN = 'Basic ' + TOKEN[2:len(TOKEN)-1] print(AUTH_TOKEN) # Basic U2hpcFN0YXRpb246Um9ja3M=   While the above code works, this is clearly not the way it was intended to be done. (I assume?)  TLDR;  What is the pythonic way of turning the TOKEN in the example above into the proper format?


How to get size of a block special file?

I need to be able to determine the size of a block special file.  For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a storage device.)    Rationale:  I can store information in the device with:   echo "12345" >/dev/sda  # needs to be run as root   (Don't run that command by the way... unless you don't care about your data.)  However, I need to know how much data I can store on the device and I don't know how to do that.


Lagrangian for the motion in a null geodesic

The motion of a photon in the gravitational field is described by a simple condition: the four vector has zero norm. My question is: is it possible to derive this dynamic from a Lagrangian? I was thinking to use the usual action but I have realized very soon that it applies only for massive particles.


How to get WiFi not working on Dell Inspiron 15R 5520 notebook?

Issuing lspci -vnn gave me this (relevant) output:  08:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)   I don't know how to proceed in order to get it working. Help on this is appreciated.


I have installed Ubuntu 20.04, but the wifi interface is hard blocked. I tried to install firmware-b43-installer and to insert the brcm80211 module manually but no luck. Is there a known solution for this?  $ rfkill list all 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: yes  $ sudo lshw -C network *-network DISABLED    description: Wireless interface    product: BCM4313 802.11bgn Wireless Network Adapter    vendor: Broadcom Inc. and subsidiaries    physical id: 0    bus info: pci@0000:04:00.0    logical name: wlp4s0b1    version: 01    serial: 70:f1:a1:ca:27:b5    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=brcmsmac driverversion=5.4.0-31-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11    resources: irq:17 memory:f0300000-f0303fff  $ lspci -knn | grep Net -A3; rfkill list 04:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)     Subsystem: Dell Inspiron M5010 / XPS 8300 [1028:0010]     Kernel modules: bcma, wl 05:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8152 v1.1 Fast Ethernet [1969:2060] (rev c1)


If $X$ and $Y$ are both independent from $\mathscr {F}$, is $f(X,Y)$ also independent from $\mathscr{F}$?

Let $X$ and $Y$ are random variables and they are both independent from the $\sigma$-algebra $\mathscr F$. Given a Borel measurable function $f(x,y)$, is $f(X,Y)$ also independent from $\mathscr F$?  I guess it is right, but actually not quite sure. Here is what I do:  Let $A$ be a Borel set, then $B = \{ f(X,Y) \in A \}$ is also a Borel set. I consider the case where $B = B_1 \times B_2$ is a rectangular area. Then given $E \in \mathscr{F}$, $P(\{f(X,Y)\in A \}\cap E) = P((\{ X \in B_1\} \cap E) \cap (\{Y \in B_2\} \cap E))$. It seems I cannot proceed any more. And I even get skeptical whether it is right.  Any help is appreciated!


I have a laptop with Debian on it, and I am going to sell this laptop.   Would it suffice to erase the Debian installation before selling it to completely clean up my laptop from my personal data, and if yes how can I uninstall Debian (so that there isn't any operating system on the laptop)?


Why doesn't my Invisibility work in Skyrim?

I usually play in third-person and when I activate my invisibility, I seem invisible, but when I start to move around, I become visible again (and become invisible again when stopped). Yet it always seems that NPCs can still see me. Guards will say something along the lines of 'Are you trying to hide?' when I am invisible.  I've tried everything. Save and reload doesn't work, multiple different potions didn't work. I even have the power 'Embrace of the Shadows' and that doesn't work. I've been wondering if it is my armor or weapons, so I took those off. Nothing. I tried muffling my footsteps. Nothing. I tried having no carry weight. Nothing. I am completely unable to go invisible. Guards and enemies attack me on sight, and this is becoming a real annoyance.   Is there any way to fix my problem, and does anyone know why it was caused?


Why is the noun 'salary' singular in this sentence?

I've found this sentence in a dictionary (LDOCE5), so I assume it is correct. But I can't understand why the noun salary is singular although it has a plural form. Could you explain it to me?  The sentence:  Research indicates that over 81% of teachers are dissatisfied with their salary.   EDIT:  As you pointed out there are several similar questions in this topic ( , ). I found  answer the most fitting that claims that teachers should have salaries in my sentence. But  answer implies that Robusto's answer is just a rule of thumb. So I can't find the explicit answer  in the referred questions, I can only guess.  Is there a general rule that clarifies my sentence and the quoted answers?


My F3 button doesn't work in Minecraft and no I don't want to brighten me screen but the F3 button is used for opening the coordinates and a lot of other things but for some reason I press the button to do but it brightens the screen instead.


Do you have any idea how I can get the cumulative distribution function (CDF) for inverse-normal (Gauusian) distribution? Modeler 18.2 doesn't have that specific function, and I need it to calculate a Vasicek test.


has provided examples on the word "next".   Why is "the" omitted in      "What do you think you'll be doing this time next year?"   while next day is preceded by "the" in      "We had a dreadful argument, but he phoned me the next day (= the day after) to apologize."   Do we include "the" before "next"?


How to apply VAR model for a I(1) and other I(0) variable? Objective is to forecast

I am modeling liquidity variable, real money growth with real asset price returns. The former is I(1) and the latter is I(0). The objective is to see the predictive power and forecast. However, can we apply VAR if both the variables have a different order of integration?  Will using I(0) against differenced I(1) series be a correct approach? especially keeping in mind I need to check forecast power through rolling window and then forecast further?


Why do members of the dark side seldom say "May the force be with you/us" to each other?

The phrase "May the force be with you" does not exclusively belong to the Jedi. But members of the dark side seem to be reluctant in saying "May the force be with you/us" to each other. Why? Don't they want the force to be with them?


Find the maximum value of $ f(x) = \int^{x}_{0} \sqrt{(x^2-x)^2+y^4}~dy$

Find the maximum value of $f(x)$ when $0 \leq x \leq 1$ and $$ f(x) = \int^{x}_{0} \sqrt{(x^2-x)^2+y^4}~dy$$   I'm guessing that the Fundamental Theorem of Calculus can't be used because the integrand is a function of $x$.  Any help would be greatly appreciated.


I have this equation-->  There is a T like symbol, what is it called and how to write that in latex?


Why are the Hairs of the particle settings under my icing?

Hey Guys, im just about to do an Youtube tutorial from Blenderguru. The Tutorial is about placing Random Particles on the Icing of an Donut. Somehow when I click on the Particlesettings of the Icing and select Hair, the hairs are not like in the Tutorial they are just under the Icing. I dont know what to do, i would be very gratefull for some help.


Outdent all lines except first line | first line spacing word-like!

How can one create a single first line indent?  The idea is to produce the same exact effect as the Microsoft Word "First line indent":    That produces an output, such as:   Side-note: the purpose is not to indent the paragraph, but rather make the extended line (big sentence - not new line) start before the normal (not indented) first line. That is to say, how can one outdent all lines except the first one (including a section, subsection, etc)?  Thanks in advance!


There is a website called CodeFights, and they have a challenge which has caused me a little bit of a problem.  Here is my code:  boolean checkPalindrome(String inputString) { String[] inputStringArray = inputString.split("");      String reverseInputString = "";      for (int x = inputString.length() - 1; x >= 0; x = x - 1) {         reverseInputString = reverseInputString + inputStringArray[x];     }      System.out.println(reverseInputString); // for debugging purposes only      System.out.println(inputString); // for debugging purposes only       if (reverseInputString == inputString) {         return true;     } else {         return false;     } }   The weird stuff:   Let's say that inputString equals aba. Then System.out.println(reverseInputString); and System.out.println(inputString); are both going to print out aba, which is just what I want. However, my if statement is going to return false, and I don't have a single clue why it is always happening.   I mean literally, I've tried everything in my knowledge to debug my humble "application", but nada; it doesn't seem to show any sign of working properly. It might very well be that the solution is quite easy, in which case I apologise for even asking this question, however, I've only been learning Java for 3 days, which is not a long period of time.  I am looking forward to reading your ideas and opinion on this matter.  Thank you for your help :)


I'm using the backref package within the hyperref package:  \usepackage[backref]{hyperref}   I get the following result:  Philip Hall. On representatives of subsets. Journal of the LMS, 10, 1935. 3.2, 4.1   where 3.2 and 4.1 are hyperlinks to sections in which this bibliographic entry is referenced. Is it possible to get pages instead of sections?


I installed ubuntu 14.04 LTS and ran the command:  sudo apt-get update   it gives the following error:  Err http://in.archive.ubuntu.com trusty InRelease  Err http://in.archive.ubuntu.com trusty-updates InRelease  Err http://in.archive.ubuntu.com trusty-backports InRelease  Err http://security.ubuntu.com trusty-security InRelease  Err http://archive.canonical.com trusty InRelease  Err http://extras.ubuntu.com trusty InRelease  Err http://in.archive.ubuntu.com trusty Release.gpg   Could not resolve 'in.archive.ubuntu.com' Err http://in.archive.ubuntu.com trusty-updates Release.gpg   Could not resolve 'in.archive.ubuntu.com' Err http://security.ubuntu.com trusty-security Release.gpg   Could not resolve 'security.ubuntu.com' Err http://archive.canonical.com trusty Release.gpg   Could not resolve 'archive.canonical.com' Err http://extras.ubuntu.com trusty Release.gpg   Could not resolve 'extras.ubuntu.com' Err http://in.archive.ubuntu.com trusty-backports Release.gpg   Could not resolve 'in.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease    W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'in.archive.ubuntu.com'  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'in.archive.ubuntu.com'  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'in.archive.ubuntu.com'  W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com'  W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'archive.canonical.com'  W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'extras.ubuntu.com'  W: Some index files failed to download. They have been ignored, or old ones used instead. now what should i do now?


Work for a company in a different country while on tourist visa in Australia?

I'm on an Australian PR and plan on getting married next year. We will then apply for an offshore Partner visa. While that gets processed (which could take between a year to 2years), she can apply for a tourist visa and come to Australia. So can my wife continue to work for her company while she will be on a tourist visa in Australia ? The company is in a different country and she will be paid in that country's bank account. Note: She has no plans of working for an Australian company until her partner visa is approved. EDIT I've already read this question and it has nothing to do with Australia


Does any finite L-Structure has its k-catecory theory? (where k is of course the structure's cardinality)

How to show that for any finite language L and finite L-structure A, there is an L-sentence b, such that for all L-structure B, $B\models b \iff B\cong A$? I searched for many first-order logic notes but didn't find anything to make this seems solvable.


Determining: $\lim_{n\rightarrow \infty}e^{-n}\sum_{k=n}^\infty n^k/k!$

What is the value of $\lim_{n\rightarrow \infty}e^{-n}\sum_{k=n}^\infty n^k/k!$ ?  I have tried initially but could not proceed any further. What I have tried is:  $$\lim_{n\rightarrow \infty}e^{-n}\sum_{k=n}^\infty{n^k \over k!}\\ =\lim_{n\rightarrow \infty}e^{-n}\left[e^n-\sum_{k=0}^{n-1}{n^k \over k!}\right]$$  I got no clue after this. I am not sure if how that limit can be be determined.  Any kind of help will be welcome.


Completely confused with this new feature snap. I know this might be detailed question-answer but I need to know some info regarding it.   I have read that new application format, snap which can be installed by default in the latest long-term support release alongside traditional deb packages. So, Does it mean are there packages with .snap extension like .deb? Then, How to install?   The user can use newer versions of apps on older versions of Ubuntu without forsaking the stability of your entire system.  Is this the only difference between deb and snap? Does it only exist to LTS version or for non-LTS too?   With this, it is also said that Creating snaps is simplified for developers with the introduction of a new tool called “snapcraft” to easily build and package applications from source and existing deb packages. Is it useful to desktop user or only for developers ?


A problem in real valued function on compact set.

If $f$ be a real valued continuous function defined on $[0,2]$ such that $f(0)=f(2),$ then prove that there exist a $ x \in [0,1]$ such that $f(x)=f(x+1).$   I tried in the following way,  Since $f$ is continuous and $f(0)=f(2)$, any line parallel to $x-$axis meets $f$ at least two points. Is this the correct way?   How to proceed further?  Thanks in advance...


Sort an array based on values from another array in php

I have one multidimensional array and another array.I need to sort multidimensional array by another array value.  Array([0] => 7[1] => 6 [2] => 5[3] => 4)   Using the above array value need to sort the below array by this value [Outlets][id].both array need to use only values of array. multiarray should sort like this ie,..([Outlets][id] => 7,[Outlets][id] => 6,[Outlets][id] => 5,[Outlets][id] => 4)    Array   ( [0] => Array     (         [Outlets] => Array             (   [id] => 4                 [name] => Chef Bakers, Bellandur                 [image] => chefbakers.jpg                 [partner_categories_id] => 5             )          [Localities] => Array             ([name] => Bellandur Gate (Nr Total Mall))     ) [1] => Array     (         [Outlets] => Array             (   [id] => 7                 [name] => Homechefs - Rajasthani breakfast, Sarjapur                 [image] => 1413881493hoechefs.jpg                 [partner_categories_id] => 4             )        [Localities] => Array             ([name] => Iblur Jn (Near Suncity))     ) [3] => Array     ( [Outlets] => Array             (   [id] => 6                 [name] => Meat Mart, Sarjapur                 [image] => 1414651527meatmart.jpg                 [partner_categories_id] => 3             )         [Localities] => Array([name] => Bellandur Gate (Nr Total Mall))     ) [4] => Array     (    [Outlets] => Array             (  [id] => 5                 [name] => Veggiez, Sarjapur                 [image] => 1413881741veg.jpg                 [partner_categories_id] => 6             )         [Localities] => Array([name] => Iblur Jn (Near Suncity))       ) )   please can you help? I haven't seen same ans here. ps:sorry for my bad english  I have fixed:         $s=$sortvalue_array;        $res=$Multidimentional_array;        $new=array();         foreach($res as $r)          {          $a=array_search($r['Outlets']['id'],$s);           $new[$a]=$r;          }        ksort($new);        print_r($new);


Proving an complex operator is self-adjoint

Let V be a finite dim complex inner product space. Let T be a linear operator on V. Prove that T is self-adjoint if and only if $\langle T\alpha,\alpha\rangle$ is real $\forall \alpha \in V$. The first direction is trivial, if we assume T is self-adjoint then $\langle T\alpha,\alpha\rangle = \langle \alpha,T\alpha\rangle=\overline{\langle T\alpha,\alpha\rangle}$ So it has to be real. But I have no clue on how to start the other direction? Where would I start?


How to get the total value from a textbox array?

Here is my initial code: Where I can add textbox by clicking the add button.      The problem is, it can't get the value from the added textbox only the 1st available textbox. How can i get the value from the added textbox?  here is the first row that is already available.
             1	             <input type="text" name="details[]" size="68">	             <input type="text" name="qty[]">	             <input type="text" name="unitprice[]">	             <input class ="txt" type="text" name="totalamount[]">
   And here is my script for getting and sum up the value from the textbox.               Thanks in advance!


Join two strings into a callable string 'moduleA' + 'func1' into moduleA.func1()

I got this:  tu = ("func1", "func2", "func3")  And with the operation I am looking for I would get this for the first string:  moduleA.func1()  I know how to concatenate strings, but is there a way to join into a callable string?


Which preposition comes in the phrase "assistant professor in English"

Which preposition should I use in the sentence "He is an assistant professor in English" or should i use "He is an assistant professor of English"?


Why can't I travel onwards if my bag wasn't going to make the flight?

I was flying KLM from the UK to the USA with a short layover in Amsterdam.  Because of delays in the UK, I almost missed my flight.  The flight attendant told me my bag wasn't going to make it, but if I walk fast, my gate is just two over.  When I got to the gate, they had already closed the doors, but the counter was opened - I mentioned that my bag was not going to make it, but that's okay.  She said, "hold on," got onto her walkie-talkie, and said,  "Yep, that's what I thought: you can't fly if your bag's not going."  I originally thought that it might be a security concern, but that doesn't really make any sense.  Why can't I travel if my luggage doesn't make the connection?  EDIT: I should clarify that I have no beef with KLM - they treated my overnight in Amsterdam professionally and helpfully; I'm just curious what the reason would be.


Let $\phi: G \to GL(\mathbb{R}^n)$ be a homomorphism, $G$ finite. Prove that there is a positive-definite matrix $M$ such that $\phi(g)^tM \phi(g) =M$ $\forall g \in G $.   This looks really interesting. Any idea is appreciated.


Is it possible to get a random number in the node editor?

Is it possible to generate a random number for use in the node editor?  I am aware of the Object Info node, but I want a random number which I have more control over. Ideally I could change it with some sort of "seed" vale and be able to define limits for maximum and minimum values.  How is this possible?


Where is the Microsoft HTML (CHM) Help Viewer stored?

Sometime ago I messed with opening chm files. I set a pdf viewer as the default app for viewing chm files and now I want the Microsoft HTML help Viewer to be set as default chm viewer. The problem is Im not able to find the app either in the System32 folder or in the Windows folder. If somebody can tell me where exactly the Microsoft HTML Help Viewer is stored it would be of great help. Thank you.


How to define lighter/darker color from already defined color in TeX?

I am new in TeX, so question may be little silly.  Is any chance to use already defined color to define new color which will be darkner or lighter? I want to use only TeX. So i have defined color like this:  \def\mainColor{\pdfliteral{0.1 0.5 1 rg}}   How i define new color (lighter) from this color?


Is anyone else experiencing random times where the CSS styling disappears on any SO site?

Currently I am posting this on a page without any CSS style. Anyone else experiencing this?  I am using Firefox 3.5.2 and have tried refreshing (CTRL + F5) multiple times, even closing the browser. I do have Stylish installed and was using it to create a Hot Dog Stand theme, but it was inactive when this happened.  Screenshot:


css how to force to ul,ol to show numbers or disc, after reset the list style.?

I had reset my css with a reset css (likely normal) but recently im using a wysiwyg plugint (textarea plugin) and everytime I insert an ul or ol list the disc or numbers dont appear, because the list-style:none; I have added a new div surrounding the textarea and making in the css file something like  .divsurrondig ul{list-type:disc; border:1px solid red;}   the red color appear everytime I insert a new list with the widget but no! bullet appear, do you know how can I reset the list style for show the bullets/numbers?


How do per-site Metas differ from Meta Stack Exchange, and where should I go to ask my question?

How do per-site metas, such as Meta Writers Stack Exchange or Meta Stack Overflow differ from the general Meta Stack Exchange?  Where should I go to ask my question?


how to draw a flow chart In latex with a figure

I need some suggestions for drawing flowchart for my process. The whole process is divided into three modules   Module 1 Random: The inputs to this module are two scalars $m$ and $n$. It outputs to matrices $\mathbf{A}$ and $\mathbf{B}$.  Module 2 Deterministic: The input here is a range of angle $\theta$. It outputs two vectors $\mathbf{x}$ and $\mathbf{y}$ computed from a fixed relationship involving $\theta$  Module 3: It combines $\mathbf{A},\mathbf{B},\mathbf{x},\mathbf{y}$ according to a known relationship.   My question is    I want have three separate boxes for these the modules. Module 1 and 2 are drawn in parallel in top half of chart. Module 3 that goes in bottom half extends from southwest corner to module 1 to southeast corner of module 2. Since within each module module I need to show its internal process, I want to have a flexible code so that change in one does not effect other blocks. In Module 2, I want to draw a circle showing $\theta$ (like below)     Which tool should I be using to draw this flowchart?


Predictive Accuracy formula in Excel or R

I have posted this question, not sure how to move that question to this stats.stackexchange.com.    Recently, I have built a model and I have the output similar to this below. The output is in the Excel. I am trying to understand if prediction error can be calculated in the Excel? For example, could I write a formula (RMSE, SSE, MSE) in excel to determine the predictive accuracy for the table below?   Basically, can I calculate the prediction error for the predicted sales given actual sales? pred_minus_acutal and (predicted - actual)/actual are just scenarios I tried. That may not be right way to get the prediction error.  I am not sure if these ideas are right either. Thanks!  customer id    predicted_sales     actual_sales 1A              100                 150 2A              200                 100 3A              300                 256 1B              100                 300 4B              400                 390 6B              500                 502


c# Call generic method dynamically with reflection, which has a same method sign,non-generic version in the method table

Say I have a class like this:  public class MyTestClass<T> {      public void DoSomething(object o)     {         Logger.Debug("Non-generic version called.");     }      public void DoSomething(T o)     {         Logger.Debug("Generic version called.");     }      public void DoOtherThing(object o)     {           Logger.Debug("DoOtherThing called.");     } }   If I create an instance with type:MyTestClass<Object>, I can get "DoOtherThing" method use following code:  var t = typeof(MyTestClass<object>); var doOtherThingMethod = t.GetMethod("DoOtherThing");   but there are two method named "DoSomeThing"，how could I call its generic version using reflection?   To describe my question clearly，I give the following example.  public void TestGenericClass() {     var o = new MyTestClass<object>();     var t = o.GetType();      var methodInfos = t.GetMethods();      //GetMethod will throw System.Reflection.AmbiguousMatchException here: Ambiguous matching in method resolution.     var m = t.GetMethod("DoSomething");      //there are two MethodInfo in methods.     var methods = t.GetMethods("DoSomething");      var m1 = methods[0];     var m2 = methods[1];  }   The question is, which one is the method using generic type, m1 or m2?


Regressing the "fixed effect" on time invariant characteristics. Is it possible?

I would like to use estimations of "fixed effect" from my panel data model as a dependent variable and study whether this depends on time invariant characteristics.  I've not been able to find an article, text-book, etc., using this methodology which makes me think that there might be something precluding one to make such estimation.  If you have some idea on why this is not feasible, or instead, you know some article treating this I would really appreciate if you let me know.  Thanks in advance.


I'm a complete novice to GIS and just began an Introductory course. I am having an issue when I try to access the Symbology tab on a layer. Specifically, when I click on the 'Categories' field and 'Unique Values' subfield, ArcMap crashes and comes up with a report window to send to ESRI. The message is      ArcGIS for Desktop has encountered a serious application error and is   unable to continue.   What could be the problem?


Did not receive site association bonus (+100 rep)

I'm a long time user with more than 1500 rep on the main site I visit. I have recently joined the physical fitness beta site and .   I believe this is a bug in the beta portion of the site. I have gotten the association bonus on all other sites I have joined.


I have a very long table that cannot be displayed on the page because it is too long and the right hand side of the table has been cutoff.  How can I modify the \begin{center} to something else so that the whole table will flushright or flushright?  \begin{widetext} \begin{center} \begin{table} [!h] \begin{tabular}{|c||c|c|} \hline $\omega$ &  $S$  & Induced   \\[0mm]  \hline \hline \end{tabular} \caption{ The shorthand of ... } \label{} \end{table} \end{center} \end{widetext}


In Beamer, how can one have strikethrough text in the author setting (defined by a command) in the preamble?

I have some beamer slides for which many commands are defined in the preamble before the document environment. The author setting is defined by an author variable which contains strikethrough text provided by the package ulem. The author setting is defined using this variable in the preamble for technical reasons.  \documentclass{beamer} % strikethrough     \usepackage[normalem]{ulem}  \newcommand{\authorSpecification}{     \sout{G.~Aad et.~al.} }  \title{title} %\author{test} \author{\authorSpecification} \date{\today}  \begin{document}  \frame{\titlepage}  \end{document}   When I try to compile this, I am presented with the following error:  ! Argument of \UL@word has an extra }. <inserted text>                  \par  l.11 \author{\authorSpecification}   How can I fix this?


Google keeps refreshing itself constantly in Chrome

When searching for anything in Google, it keeps refreshing itself; or, rather, it keeps redirecting itself between the url variants https://www.google.hu/search?q=<query>&cad=h and https://www.google.hu/#newwindow=1&q=<query>. It just keeps ping-ponging between these, like in an old-fashioned redirect loop, except it never ends.  Needless to say, it's very annoying.  This is happening using Google Chrome 48.0.2564.71 beta 64 bit, on a Lubuntu installation, with 16 GB of memory (and no history of RAM troubles). Tried to install a stable version over it (though not --purge-ing the original, so with the same settings) and the same thing happened. No other pages show this behaviour.  Tried to clear browsing history, cookies and cache: it did help, but only for two searches, then the issue resurfaced. Things work fine in Incognito mode or when I'm not logged in to my Google account.  Looking around on the internet yielded  and variants, which describe a bug about Chrome keeping refreshing every page, which sounds similar, but isn't the same. 'Instant search' was alread disabled.  Now, I realize the problem would perhaps go away if I deleted every little piece of Chrome from the computer, but I'm not sure, and if possible I'd like to keep my various settings. Does anyone have an idea as to how to achieve that?


What causes the pagebreak for chapters and how do I disable it?

I'm using the documentclass ttthesis based on book from . I really like it, but I don't want to have a new page for each chapter. Sadly every approach I tried failed, and now I noticed it's because there is no clearpage or cleardoublepage at the chapters (that's why redefining or ignoring these like described in all answers regarding this topic didn't work out).  Here is the part that redefines the chapters (not my code, just a snippet from the template):  \newlength{\chapnolen} \newlength{\chapparlen} \newsavebox{\chapno} %% Kein ``Kapitel'' bei Kapitelüberschrift % \renewcommand{\@chapapp}{} allein reicht nicht! %% \chapter{...} \renewcommand{\@makechapterhead}[1]{%   \vspace*{0.2\textheight}%   %\hrule   \vskip 15\p@   {\parindent \z@ \raggedright \normalfont     \ifnum \c@secnumdepth >\m@ne       \if@mainmatter         \savebox{\chapno}{\chapterheadfont\huge\bfseries \thechapter.}         \settowidth{\chapnolen}{\usebox{\chapno}}         \parbox[t]{\chapnolen}{\usebox{\chapno}}\nobreak\leavevmode %        \par\nobreak %        \vskip 20\p@       \fi     \fi     \interlinepenalty\@MM     \setlength{\chapparlen}{\textwidth}     \addtolength{\chapparlen}{-1.0\chapnolen}     \addtolength{\chapparlen}{-2ex}     \leavevmode\nobreak     \parbox[t]{\chapparlen}{\raggedright\chapterheadfont\huge \bfseries #1\par\nobreak}     %\the\textwidth     %\the\chapparlen     %\the\chapnolen     %\vskip 20\p@     %\rule{\textwidth}{1pt}     \vskip 40\p@   }}   I just can't find out why there even is a pagebreak for each chapter. I also searched the other parts of the template, but didn't find anything.   Has anyone an idea where these pagebreaks come from or, more importantly, how I can prevent them?


I want to prove $\log{n} = O(n^{0.5})$ but I'm not sure how to achieve this. Any help would be appreciated!


What amp rating of 24vac transformer for LM317T?

I want to know what size transformer for LM317 at full 30 VDC. I know its a 24 VAC center tapped transformer but is 1 A or 5 A transformer best suited for a linear power supply of 1.5-30 VDC?  I will be using a standard LM317 variable power supply circuit with the 2200 uF 50 V smoothing and the 240 ohm drain resistor and potentiometer. I have a homemade oversized aluminum heat-sink that is quite large.


How to disable parallel run in bash script

I have a requirement to do a script for gather some data from one db and formatting according to a requirement, this should run by a scheduled cron job. but there should not be parallel runs. (If one process is running, then other should not start).  Help me to do this in bash scripting.


Hey so I'm making a winchester rifle and on the butt theres this random triangle stick out of the side. I deleted the butt and it's still there. How do I get rid of this? Also it's only visible when your at the top angle however if you go under the model the problem disapears.  The question I am saying is how do i get rid of that triangle    Google Drive for the blend model:


What is this small gray box on the top left corner?

I've got this small gray box on the top-left corner that stays above all windows. Right-clicking etc on it does nothing.    You can see it on top of the recycle bin icon in the pic above. What is that? I checked the Users tab on task manager and I was the only user running, I tried closing a bunch of running apps in system tray, etc.


Why does JavaScript seem to return modulus inconsistently?

I'm learning JavaScript and I have a page that displays the result of dividing two user-inputted numbers.  I didn't like that (1 / 3) would fill the whole result box with 3.333333333333..., so I set the result with .toFixed(4). But this has the result of making (4 / 2) return 2.0000 instead of just 2.  So, in order to fix that I check if (answer % 1 == 0), in which case it displays the answer normally, then checks (answer % 0.1 == 0), which displays answer.toFixed(1), and so on, with the final else being .toFixed(4).  This works as intended for some numbers but not for others, and I don't see why or what's going wrong in the cases it doesn't work.  Examples:   (2 / 5) returns 0.4. This satisfies the second condition, (answer % 0.1 == 0), and returns answer.toFixed(1), displaying 0.4. Great. (2 / 10) also works and displays 0.2, and something like (2 / 7) correctly gets pushed to the else and displays 0.2857. (2 / 8) returns 0.25, then incorrectly displays 0.2500 (2 / 20) correctly returns and displays 0.1 (9 / 6) returns 1.5, then incorrectly displays 1.5000 (2 / 4) returns 0.5, but displays 0.5000. It failed all the conditions and jumps to the else sentence, so answer.toFixed(4) is used.   Why does JavaScript consider (0.4 % 0.1 == 0) to be true, but (0.5 % 0.1 == 0) to be false?  This is my current code:  let num1 = parseFloat($("calcInput1").value); let num2 = parseFloat($("calcInput2").value); answer = num1 / num2;  if (answer % 1 == 0) {     document.getElementById("calcResult").value = answer;     alert("answer % 1 == 0"); } else if (answer % 0.1 == 0) {     document.getElementById("calcResult").value = answer.toFixed(1);     alert("answer % 0.1 == 0"); } else if (answer % 0.01 == 0) {     document.getElementById("calcResult").value = answer.toFixed(2);     alert("answer % 0.01 == 0"); } else if (answer % 0.001 == 0) {     document.getElementById("calcResult").value = answer.toFixed(3);     alert("else"); } else {     document.getElementById("calcResult").value = answer.toFixed(4); }


Comment votes can be easily gamed by users with the association bonus

When someone deletes an account, the upvotes they left on comments are not removed. When they create another account, they can upvote these comments once again.  This is a problem, as you can give a comment as many upvotes as you want by:   Upvoting the comment Deleting your account Repeating 1 and 2 ad infinitum   This can even be done very quickly, since upvoting a comment doesn't require you to contact SE to delete your account (the "Delete" button will remain in your profile settings).  Please wipe the comment votes when a user is deleted. Right now it is very easy for users with the +100 rep bonus to game the system and disrupt discussions.


Find $m \in \mathbb{N}$ such that $\varphi(m)$ is a prime number.

Find all natural numbers $m$ such that $\varphi(m)$ is a prime number.  Let $a$ is coprime with $m$. By using Euler's theorem and Fermat's little theorem, we have $a^{\varphi(m)} \equiv 1 \mod m$ and $a^{m-1} \equiv 1 \mod m$. This is the only thing I have. Please help me. Thank you very much.


How can i use awk/Grep to search a specified column for a variable

I have data like the following:  apple pear sugar pizza pizza chicken pasta turkey   I want to grep for "pizza" but only grep the fourth column. I know i can use:  awk '$4 == "pizza"'    However i have a variable named food which contains the word pizza. When i do  food=pizza awk '$4 == "$food"'   I receive an error and also when i change to double apostrophes i receive this error:  awk: line 1: syntax error at or near ==   how can i achieve this?


Why is James Bond less tech savvy in the Daniel Craig movies?

The most recent installments of  (ones featuring Daniel Craig) have fewer gadgets but more raw action (like the chase sequences in Casino Royale and Quantum of Solace). Is it because of plot related changes to the MI:6 or have the movies been altered to suit the audiences?


get confused with numpy operation a[:] and a[...]

In numpy, there exists some slicing operation like a[1:3,3:5], however I am confused with the operation a[:] and a[...],I am a novice at python, can anyone explain what's the difference between these?


Do humans make decisions based on logic or emotions?

I often hear that we are emotional beings, that we make decisions based on our feelings, mood and emotions. These decisions may not be logical and serve us best.  On the other hand some argue that we humans are logical beings, use logic and science to argue and build, and advance in life. So what is the verdict in your option or in the opinion of majority of philosophers, can humans be categorized as logical species or are most of our decisions emotional? If we are more emotional than logical then our intepretation of life and events happening around us is different than when we look at humans as entities making logical decisions that produce the same result. Can we say the creation of proper governments and physical tangle products such as structures are from the emotions?


Why would the White Walkers have a large iron chain in episode 6 “Beyond the Wall”?

I can consider that the rescue could happen as shown, but why would the White Walkers have a large iron chain for a possible       dragon rescue    in episode 6 “Beyond the Wall”?


i can't remplace a column in table with  JProgressBar   I apply the cell renderer to a specific column in the table: table.getColumn("PROGRES").setCellRenderer(new ProgressCellRenderer()); but it just delete the column .    public class ProgressCellRenderer extends JProgressBar                         implements TableCellRenderer {    /**    * Creates a JProgressBar with the range 0,100.    */   public ProgressCellRenderer(){     super(0, 100);     setValue(0);     setString("0%");     setStringPainted(true);   }    public Component getTableCellRendererComponent(                                     JTable table,                                     Object value,                                     boolean isSelected,                                     boolean hasFocus,                                     int row,                                     int column) {      //value is a percentage e.g. 95%     final String sValue = value.toString();     int index = sValue.indexOf('%');     if (index != -1) {       int p = 0;       try{         p = Integer.parseInt(sValue.substring(0, index));       }       catch(NumberFormatException e){       }       setValue(p);       setString(sValue);     }     return this;   }


Install Ubuntu with Win10 on different SSD

I have Win10 installed on a m.2 SSD. I bought a new SATA ssd for ubuntu. Should I choose "Install alongside Win10" or "Erase and install Ubuntu" for the new SSD?


What fantasy TV miniseries had immortality as the ultimate punishment?

I vaguely remember this fantasy-esque miniseries (or was it a made for TV movie?) that featured a society where some of the worst criminals were punished with immortality along with imprisonment as a form of ultimate punishment.  Basically, if I recall correctly, being immortal was seen as a curse and once you were immortal you could be kept imprisoned by other immortals for millennium or longer.    Offenders were made immortal by being strapped to a chair with their mouth forced open and some kind of lizard-like humanoid would spit/excrete some kind of mucusy substance into their mouth, kind of gross.  I only saw a few parts of the show so I could be misremembering or misunderstanding any or all of it.  But I do distinctly remember immortality being administered as a punishment to at least one character.  I think this miniseries or TV movie was made some time in the 90s, but it could be late 80s for all I know.


Interpreting Intercept when doing logistic regression with categorical data in R

In R I have a categorical variable that I performed logistic regression on and got the following result:  glm(formula = mortality ~ SMOKE, family = binomial, data = c.data)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -0.2155  -0.2155  -0.2155  -0.1860   2.8515    Coefficients:             Estimate Std. Error z value Pr(>|z|)     (Intercept)  -4.0483     0.3189 -12.694   <2e-16 *** SMOKEN        0.2968     0.3559   0.834    0.404     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 492.45  on 2369  degrees of freedom Residual deviance: 491.72  on 2368  degrees of freedom AIC: 495.72  Number of Fisher Scoring iterations: 6   Is the value for the intercept the same as SMOKEY (has a history of smoking)?


Show that $\lim\limits_{a \to 0^+} \int^1_0 ax^{a−1}f(x)dx=f(0)$.

Suppose $f$ is Riemann integrable on $[0,1]$ and continuous at 0. Show that $$\lim\limits_{a \to 0^+} \int^1_0 ax^{a−1}f(x)dx=f(0).$$   Can anyone share some insight on this one? I have no idea where to begin. Maybe a substitution?


working on a script which is pretty basic where groups of students are being assigned halls to stay in depending on what they are doing and also their age.  if someones course is medical they will be assined to res4.  medical would include dentistry and medicine. Seems to be a bit stuck on printing the hall assigned it should be res4. Thanks in advance.  medical=["dentistry", "medicine"]  course=input("enter course")  while course in medical     hall=="res4"      print("enter course", course, hall, )


What does a game programmer and graphics programmer do?

I'm quite the novice in terms of my knowledge of game development, and I'd incredibly appreciate any further insight on this. To be a bit more specific, I encountered this video, () and It documents the roles of game programmers and graphics programmers at Naughty Dog but even with the descriptions, I'm still uncertain of what those jobs actually entail. Sorry If this wasn't a suitable place for the post, but for any help thanks in advance.


Artinian ring and faithful module of finite length

Let $A$ be a ring. How can I prove that:     $A$ is an Artinian ring $\Leftrightarrow \exists$ a faithful $A$-module which is of finite length.   I know that if a ring has a faithful $A$-module which is Noetherian, then the ring is Noetherian. Can I use this to prove the result above? I need your help to solve this problem. Thank you.


Does pulling or pushing take more effort?

In which case is more effort needed: when you push or when you pull?   We have a common experience that man tends to first push anything. How it is justified and what are the reasons behind this?


Why can't we stand on fluid surface if newton's third law is applicable

I try to stand on water surface but I just drown. A book resting on the table because of the W(gravitational Force)  and normal force of the table acting on the book oppositely in equal magnitude being canceled out.  When it comes to a fluid (air, water, oil etc)  If I put my two feet on the surface I will simply drown. Why that?  See,  the weight of my body is acting on the surface and according to the third law at that instant there will be an equal and opposite force acting on me from the surface. So should not I be able to stand?  If you are about to say that fluid molecules have surface tension and they are not steady then I would like to say the little portion of weight of any point of my body that pushes the tiny fluid molecule, that tiny part should cancel that little amount of weight. By this each and every point of my body (along with my Centre of gravity) part should have a net 0 force which should make stand on the fluid surface theoretically. But in practical case it doesn't happen. Why that?  I can stand on frozen Lake but can't stand when it is not frozen.


Why can't I see "deleted recent questions" on my profile?

I have noticed that on one of the Stack Exchange websites, namely , I cannot list my "deleted recent questions":    Why?  I do have one question that has been deleted less than 60 days ago by Roomba:     It works fine on other Stack Exchange website:


I am creating designs for an app as part of my uni work. I have Windows and because I have Windows I am unable to get the San Francisco font as it's only available on Mac.   What is the best font on Photoshop that looks similar as the San Francisco Font?


Is the projection of an ellipse still an ellipse?

I’ve been trying to convince myself of the veracity of this for a while and I can’t seem to do it.   Given two planes in R3, will an ellipse on one plane necessarily project to an ellipse on the other?  If the planes are parallel, it’s trivially true. Similarly, if the ellipse is a circle, I know it projects to an ellipse. But if they’re not either of those cases? Assuming an orthographic projection, it seems to me the projection could end up some skewed, egg-like shape where the ellipse axes’ intersections point has been shifted away from the center of the ellipse.   Can someone please shed some light on this?


What is the exact value of$$\sum_{n=1}^\infty \frac{1}{2^n-1}$$ if it exists?


The maximal ideals of $M_3 (\mathbb {Z})$

What are the two sided maximal ideals of $M_3 (\mathbb {Z})$?  Is the quotient by a maximal ideal a field in case of noncommutative rings?


lualatex texlive 2016 broken with tikzexternalize

The following example:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} \tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}} \tikzexternalize \begin{document} A simple image is \tikz \fill (0,0) circle(5pt);. $\pi = \directlua{tex.sprint(math.pi)}$ \end{document}   Taken from  seems to be broken with texlive 2016 (at least on my computer, Ubuntu 16, vanilla texlive). On texlive 2015 it works just fine.  The failure is in that the external pdf file is not written. Buried in the log:  ! Package tikz Error: Sorry, the system call 'lualatex -shell-escape -halt-on-e rror -interaction=batchmode -jobname "test-figure0" "\def\tikzexternalrealjob{t est}\input{test}"' did NOT result in a usable output file 'test-figure0' (expec ted one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system c alls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also name d 'write 18' or something like that. Or maybe the command simply failed? Error  messages can be found in 'test-figure0.log'. If you continue now, I'll try to t ypeset the picture.   What's changed? Any workaround?


What is the relation between the Higgs field and chirality?

Wikipedia  that the spontaneous breaking of chiral symmetry "is responsible for the bulk of the mass (over 99%) of the nucleons".  How do the nucleons gain mass from the spontaneous breaking of chiral symmetry? Why don't leptons gains mass from it? What is the role of the Higgs field in this all?


Syntax for restoring SQL Server backup from non-disk source

I have backed up and restored many a SQL Server database using T-SQL script, but always FROM DISK or TO DISK. I am not a provisioning-concerned database administrator, though, so don't have as much experience with the full range of available backup types.  Now I'm working with a database new to me where the physical_device_name from table msdb.dbo.backupmediafamily for the full backups is a GUID followed by a number, e.g. {F1554525-23BC-48A2-89E0-4069C2D3ACF3}1. How do I use this? Is it tape? Or a physical device name? I have searched online for references to using a GUID in restores or to restoring FROM TAPE and can't seem to find any examples.  Unfortunately at this moment I don't have on-demand access to the server where the backup is and the server doesn't have enough disk space for an extra copy of the database, anyway. But, when I DO get in this situation again, I'd like to know the correct syntax.  RESTORE DATABASE DBName FROM {F1554525-23BC-48A2-89E0-4069C2D3ACF3}1; doesn't look like good syntax to me.  RESTORE DATABASE DBName FROM TAPE = '{F1554525-23BC-48A2-89E0-4069C2D3ACF3}1'; looks more likely. Is it a tape device?  Or is there some additional set of values I need from the backupmediafamily table that will help me know how to write the restore statement (and a RESTORE FILELISTONLY statement, too)?  Note: the log backups look like normal filesystem files. So no issue there.  Additional Note: the problem with the suggested duplicate is that the answers there are less than confident. It could be DPM/VSS or tape. So... some definitive answer, here or there, would be appreciated.


How do racing pigeons know the way back to their roost?

I have read that a standard way to do  is that the male and female are separated and the pigeon races to its mate.  My understanding that in these cases the roost is several miles away from the release point. How does the pigeon know how to find the roost?  I have heard that sometimes they will hold up the mate in the air, but at several miles away, how would that help.


Example where $Cov(x_i, \epsilon_i) = 0$ and $E[\epsilon] =0$ yet $E[\epsilon | X] \neq 0$?

I'm told that it's possible that $Cov(x_i, \epsilon_i) = 0$ and $E[\epsilon] =0$ yet $E[\epsilon | X] \neq 0$ but I haven't been able to find an example. My professor proposed $\epsilon_i = x_i^2$ where $x_i \sim \text{uniform}(-1,1)$ but I realized that this fails $E[\epsilon_i] = 0$. If we got rid of the assumption $E[\epsilon]=0$ than this satisfies $Cov(x_i, \epsilon_i) = 0$ yet $E[\epsilon | X] \neq 0$ but the task is to include $E[\epsilon]=0$.  The suggested pages do not provide a concrete example. @Whuber provides a nice image which appears to be of $\epsilon_i = x_i^3$ where $x_i \sim \text{uniform}(-2,2)$ but this doesn't work out: Let $\epsilon_i = x_i^3$ where $x_i \sim \text{unif}(-2,2)$. We have: \begin{align}     \begin{split}         E[\epsilon_i] &= \int_{-2}^2 \frac{1}{4} x_i^3 dx \\                        &= \frac{1}{16} x_i^4 \Big|_{-2}^2 \\                        &= \frac{1}{16}((2)^4 - (-2)^4) \\                        &= 0     \end{split} \end{align} But for the covariance, we have: \begin{align}     \begin{split}         Cov(\epsilon_i, x_i) &= E[\epsilon_i,  x_i] + E[\epsilon_i]E[x_i]\\                               &= E[(x_i^3)  x_i] + 0E[x_i] \\                                &= E[x_i^4] \\                               &= \int_{-2}^2 \frac{1}{4}x^4 dx \\                               &= \frac{1}{20}x^5 \Big|_{-2}^2 \\                               &= \frac{1}{20}(2^5 - (-2)^5) \\                               &\neq 0     \end{split} \end{align} Am I mistaken?  Professor gave me a solution which was just demeaning the variable. (Should have thought of doing that sooner.) Let $\epsilon_i = x_i^2 - E[x_i^2]$


Monotonicity of matrix inverse of positive definite matrices

If $A$ and $B$ are positive definite, $A-B$ is positive definite, can we say $B^{-1}-A^{-1}$ is positive definite? I think this should be true but I don't know how to prove it.   It would be great if someone can offer help :) Thanks a lot!.


Sugar Daddy wants to transfer money into my account and occasionally buy gifts for his customers..Am I being scammed?

I started talking with a guy and got into a sugar baby arrangement with him. He offered to pay off my credit card and pay me $800/weekly. I never gave him my bank info or anything related to me, but he gave me his bank info (account and routing number, etc). He asked me to go to the store to buy $900 worth of gift cards for 3 separate customers, which I stupidly did... I then spent the weekend arguing with him because he wanted me to buy more gift cards for customers, but I continuously refused because the money that was transferred hadn't hit my account yet so I didn't have any money. I contacted my bank this morning to let them know that the money was going to be transferred, but I wanted to make sure that I was taking every precaution since it was a large sum of money. I asked her to contact the guys bank and see if there were sufficient funds in the account so it wouldn't bounce and there were. The money finally reached my credit card today but I don't want to use my card at all until I know what is truly going on.


why is 1/60 to 1/125 is full stop or halving the abount of light?

the halving of 1/60 is 1/120  then why is that standard 1/125 for a full stop?  is 1/125 really cutting the amount in half?  Thanks


$\limsup_{n\to \infty} a_n+b_n\le \limsup_{n\to \infty} a_n+\limsup_{n\to \infty} b_n$ for real sequence.

For real sequences $\{a_n\}$ and$\{b_n\}$. Prove that $\limsup_{n\to \infty} a_n+b_n\le \limsup_{n\to \infty} a_n+\limsup_{n\to \infty} b_n$  If $\limsup a_n=a$ and $\limsup b_n=b$, where $a,b\in\Bbb R$. By Rudin theorem 3.8 of $\limsup a_n=a$, $$\forall \varepsilon>0, \exists N\in\Bbb N\ni \forall n>N, a_n<a+\varepsilon$$ So, $\forall n>N,a_n+b_n<a+b_n+\varepsilon$ and take $\limsup$ both side we get, $$\limsup_{n\to \infty}(a_n+b_n)<a+\varepsilon+\limsup_{n\to \infty}b_n=a+b+\varepsilon$$, which is true $\forall \varepsilon>0$, let $\varepsilon\to0$, we have $$\limsup_{n\to \infty}(a_n+b_n)\le a+b$$ Is my attempt correct? I have read some answers, but all of them choose some subsequence and the symbol of subsequence is not easy to read, hence I try to use another definition to prove this statement.


How did Cochrane intend to return to Earth?

The flight of the Phoenix will undoubtedly be one of humanity's greatest achievements in the years to come. A re-purposed nuclear missile (and it's nice to know we'll have some left over) with a titanium casing will escape atmosphere, jettison its first stage then shoot to Warp 1 (old system).   ( - fair use)  Fortunately for Zephram Cochrane, the partially-assimilated Enterprise-E will be on hand to help recover the craft and its crew (and we can throw away Prime Directive problems since Cochrane will literally see the Enterprise in space, and finds out all about its crew's origins).   (Still from First Contact - I'm hoping that this is fair use as well)  However, it seems unlikely that full, safe control of the Enterprise could be regained in time to assist with this project before life support on the Phoenix expired. Furthermore, Cochrane will have no way of knowing that time travellers from the future will be on hand to help. He lives in a remote area of a decimated United States, with no obvious support system in place to chopper a crew out and recover him and his co-pilots from who-knows-where after re-entry and landing.  Was Cochrane planning to just drop in on dry land near Bozeman, Montana in the charred remains of his crew capsule? If so, how was the full Phoenix recovered for later display in the Smithsonian? If Cochrane had access to futuristic technology such as impulse engines, he certainly didn't use it to launch in the first place (though the turn made by the Phoenix after dropping out of warp the first time suggests it had some manner of thrusters).


How many possible Enigma machine settings?

I'm trying to calculate the amount of settings the enigma machine has. I have found several sites regarding this topic, but it seems like there are two answers to my question. The first answer is 158,962,555,217,826,360,000 and the second is 107,458,687,327,250,619,360,000. Where the difference is that in the second answer, it has been taken into account that the notched rings on the enigma could be set as well, giving 26 * 26 = 676 more settings than the first answer.   But which answer is the right one, and why? How many possible different Enigma machine settings are there and how can one determine this number?


Does "a couple of hours" equal "two hours"?

I left the bag in the hall and Robert and I went into the living room where we talked for a couple of hours.  Does a couple of hours equal two hours? Or it simply represents several hours?


How do actors signal that they are not playing?

An actor is playing a character who is in danger. He is screaming at the top of his lungs: "Help me! Help me! I'm in danger!" Then, for whatever reason, the actor gets in actual danger, like he is in pain and needs actual helps. How does the actor signal that he is not playing anymore, so that the crew stops filming and comes helping him? Of course this could be done in many ways, but I'm interested in:  Standard protocols to handle this situation, if there are.  Documented examples.


Speaking of the relation between Gâteaux and Fréchet, authors usually point out that $$\text{Fréchet} \implies \text{Gâteaux}$$ and then give a counterexample to illustrate that the converse doesn't hold.  Say, we have a function which is known to be Gâteaux differentiable (all directional derivatives exist). I wonder what conditions need to be added in order to insure Fréchet differentiability?  In case the function goes from $\mathbb R^n$, the continuity of partial derivatives does the job. But what if the function is between two Banach spaces? Would it suffice if all directional derivatives are continuous?  Update: I have found the following theorem, unfortunately without any proof.     Let $X,Y$ be Banach spaces and $U\subset X$ open. If the following conditions hold:          $f:U\to Y$ has continuous Gâteaux derivative \begin{align}  df: U \times X & \to Y \\ (x,h) & \mapsto df(x,h) \end{align}   the linear operator $df(x,\cdot)$ is bounded for all $x\in U$   the function \begin{align}U & \to \mathcal{L}(X,Y) \\ x & \mapsto df(x,\cdot) \end{align} is continuous         then $f\in C^1(U,Y)$.   Does it look reasonable? Where could I find the proof?


How to get Accurate Scaling When Making New Objects?

I seem to be running into an issue with creating new objects? Could someone please help me? The Set Up I am building a packaging mock up, that requires multiple boxes that slide together. the new object slides into / out of the old object. So Eventually these will be animated (Very New to Allot of This) The Question As per my images below, Both outer object and inner object have been set to the same size yet they visually appear two different sizes? The "Old Object" is created from the original default cube as per my memory. The second object is per a new added cube (1mm). How can I get an accurate scale? Any help on this would be much appreciated. I am learning allot of new skills with this project and very open to new avenues in thinking about 3D development. Thank you.


Where can I install ubuntu if I have 4 primary partitions?

I want to triple boot Windows 7, Backtrack, and Ubuntu. Windows and Backtrack are already installed. The problem is that both of them take 4 partitions: 3 for Windows, and 1 for Backtrack. When I try to make another partition, it says I can't have over 4. How can I install Ubuntu with this problem? Note: The 3 Windows partitions are PQSERVICE, SYSTEM RESERVED, and eMachines. I don't really know if I can delete one.


How does the hour calculation work for the bounty grace period notice?

When a question with the bounty in a grace period, it is displaying the notice like the one below: But the summation of the hours before bounty ended + Grace period ends is always 23. I would expect it to be 24, as in a whole day. Is it a miscalculation? How the hour calculation is works for the bounty grace period notice?


I have the following problem:  The Apache DocumentRoot is /var/www/.  The URL of the file one should get when browsing  is   So I configured a redirect via a RewriteRule:  RewriteRule ^$ _www/de/pub/aktuelles.cfm [R]  Now I don't want the "_www" directory to appear in the URL, but I don't want to rewrite it in every request.  People should see  when they browse to   How do I achieve this, I thought of RewriteBase but that seems to be something different. But I guess I need some kind of base rule.


Someone can help me with this expectation inequality?

$$E[x+y]^{r}\le c_{r}(E[x]^r +E[y]^{r})  $$ Where $$ \begin{equation}   c_{r} =   \begin{cases}     1 & \text{if $ \quad0<r\le1$} \\     2^{r-1} & \text{if $\quad r>1$}   \end{cases} \end{equation}$$ I tried using binomial expansions but i couldn´t resolve it . Please give me some ideas or help me to resolve this problem.


Found a crypto mining process - how do I get rid of it?

Noticed some minor performance decrease, decided to install the process explorer described here:   Found a hidden process taking 80% of CPU and impersonating notepad.exe, with this command line:  "C:\windows\notepad.exe" -c "C:\ProgramData\fWyfnSWdrs\cfgi"   Checked that folder, found something that looked like config files, one cant open, used by process, others have this (I've removed user guid):  {"algo": "cryptonight", "background": false, "colors": true, "retries": 5, "retry-pause": 5, "syslog": false, "print-time": 60, "av": 0, "safe": false, "cpu-priority": null, "cpu-affinity": null, "threads": 8, "pools": [      {         "url": "185.144.29.36:5450",         "user": <GUID HERE, REMOVED BY ME>,         "pass": "x",         "keepalive": false,         "nicehash": false,         "variant": 1     } ], "api": {     "port": 0,     "access-token": null,     "worker-id": null } }   Some googling and this looks like cryptocurrency mining setup. Tried to kill process - it comes back immediately. Checked register for the folder name and windows services - cant find what starts it.  Tried a couple of other antiviruses - they don't pick it up.  I don't want to "nuke it from orbit" since this machine is nothing special, enough would be to just make it stop.  How do I find what starts this and kill it?  I would also like to know how I got it, the config files are from 20 days ago, checked my installations and cannot see anything from that time. Any tips/links on how to figure this out are appreciated.


I have two program as shown below.  When i run both these program both working fine.  But the  the first code have a two string when I compare it gives result "ok".  the second code also have two string but this gives result "no".Why?  class Stringimp {        public static void main(String[] args) {        String str = "ali";       String s1="ali";       if (str == s1) {         System.out.println("ok");       } else {       System.out.println("no");     }  }   }   class Stringimp {         public static void main(String[] args) {         String str = "ali";        String s1="ALI";        s1=s1.toLowerCase();        if (str == s1) {            System.out.println("ok");        } else {            System.out.println("no");        }   }   }


Could space be just our perceived reality instead of the true nature of the universe?

We've proven that color is a subjective experience. So we know that the outside world does not look like anything at all. All the events happening in the outside world do not look like anything.  But space could be, in the same way, a representation of the actual universe, evolved over time in complex organisms .  What is the true nature of the universe? Is it just supposed to be abstract information?  If we, say, program sentient beings in a video game, they'll perceive a bunch of abstract information as space.  If there's no living thing to observe space, could we say that the universe is still a bunch of particles moving inside this stage called 'space'?  There's also the thing that all reference frames or 'point-of-views' in the universe are equivalent. This also kind-of pushes forward the idea that each reference frame is a stationary piece of information getting affected by the outside world, which is also a piece of information.  And the nature of this abstract information called 'universe' can't be such that the info is evolving as a function of time, because that would imply that time is absolute. Since time and space are interconnected, so if space is just a bunch of info, then time also has to be just laid out info or something like that.  If this is true, is it possible for information to exist if there's no such thing as space? I mean...where or how would the information exist?


Why are reputation changes not showing in the top bar?

Since some time in the last two or three weeks, upvotes do not show in the top bar the way they used to (like, +10 on the achievements dropdown image for an answer upvote), at least on Super User. I have to click on the achievements dropdown image or go into my profile to see the recent reputation change. This was also network-wide, so it readily alerted me to voting going on on questions on other sites, sometimes causing me to revisit and improve them.  The reputation count (next to the avatar) is updated, but this is far from obvious.  I really miss reputation changes being somewhat prominently displayed. Where did that feature go?  Edit: It looks like this might affect only questions on sites other than the one I am currently browsing. Either way, an explanation of the intended behavior from someone in the know would certainly be appreciated! All the seemingly relevant posts I found were years old.


Subject Verb Agreement with the word "every"

Every Bentley, Lamborghini, and Porsche (is/are) owned by Volkswagen   I had some difficulties with this because I thought that the answer would have to be "are" because  a) There are different objects that are being listed out  b)"every" signifies multiple things so I thought that it would entail that I ought to choose "are"  But the answer key dictates that the answer is "is" and I don't understand why that is.  I was wondering if it has to do anything with the word "every"?


In Griffith's QM book, he introduces scattering matrices as an end-of-the-chapter Problem 2.52.  For a Dirac-Delta potential $V(x) = \alpha \delta (x - x_0)$, I've derived the scattering matrix and observed that it is unitary $S^{-1} = S^{\dagger}$.  I'm trying to explain why this is intuitively, but I don't really have an intuitive picture of what hermitian conjugation $S^{\dagger}$ is doing here. Thoughts?


Why doesn't L'hopitals Rule work for $\lim\limits_{x \to \infty} \frac{x+ \sin x}{x+ 2 \sin x}$?

This is how I would evaluate $\lim\limits_{x \to \infty} \dfrac{x+ \sin x}{x+ 2 \sin x}$  $=\lim\limits_{x \to \infty} \dfrac{x \left( 1+ \frac{\sin x}{x} \right)}{x \left(1+ 2 \cdot \frac{ \sin x}{x} \right)}$  $= \dfrac{1+0}{1+2 \cdot 0} = 1$  But now applying L'hopitals Rule, I get  $\lim\limits_{x \to \infty} \dfrac{1+ \cos x}{1+ 2 \cos x}$   Since $\cos x $ just oscillates between $[-1,1]$ I think we can  conclude the limit doesn't exist.  What is going on here?


I'm a Hong Kong citizen who is holding both the Hong Kong Passport and the British Nation (Oversea) Passport.With the HK passport, I can stay in Russia for 14 days without visa.  I'm now staying in France with the working holiday visa which is on my British passport. But the problem is that I wanna have a short trip to Russia now. There're two plans:  Plan A:   Leaving France with the British passport Entering and Leaving Russia with the Hong Kong passport Going back to France with the British passport   But which passport should I use for booking the ticket? And will I get into any trouble while passing the border control?   Plan B:   Forget about the British passport. Just using the Hong Kong passport at all.   But I wonder whether I would get into any trouble at the French border control because my Hong Kong passport has no entry stamp of EU and then I use it to leave and come back France .  Which plans should I go for? or another other options?


Hi! Can anyone help me out with this question I found on my practice paper?   For part a) I think it is a ARMA (1,1) process? is that correct? and how do I calculate the mean of the ARMA model? is it the same as AR model? If it is then E(yt) - 5/ (1-0.30) = 7.14?   For part b) I identified as the AR(4). Is that correct?


Canon 6d, Canon 600 EX RT + Yongnuo YN622C TX + YN622C Flash wont fire..help

So as stated above I have this equipment: Canon 6D, Canon 600 EX RT, Yongnuo YN622C TX and YN622C Flash.  I want to take the Canon flash off the camera to have a simple portrait setup. I have the Yongnuo YN622C TX ETTL flash controller attached to the 6D, I have the trigger with the Flash (all channels A1) and the fire test works but when I focus and press the shutter the flash doesn't fire. I have the flash set to optical slave.  What should I do?


I'm trying to use BibTeX with a letter; I hope this is not too eccentric. The letter class doesn't have BibTeX support, though. I found  . However, the solution described does not work perfectly. The bibliography appears on its own page (in my case it is just two entries), and the numbering is out of order with the plain style ie. [2] appears before [1] in the letter.  Can these issues be fixed? Alternatively, what are my choices? Could I use another letter class? Some time ago I posted to comp.text.tex, and the people there were rather despising about the letter class, and pointed me to various alternatives which they said were better. Do any of these alternatives have built-in BibTeX support?  EDIT1: Both the problems mentioned above were user error.   The wrong order, as pointed out by Joseph, was because I was using the plain  style. The bibliography on a separate page was because I put the \bibliographystyle  and \bibliography entries after closing the letter environment instead of  before. Again, Joseph's example was helpful in setting me straight.   In summary, there is nothing wrong with the original post, though no doubt Joseph's version is an improvement, and is certainly shorter. Both the original version and Joseph's version work fine for me. I put the text in Joseph's post between \makeatletter and \makeatother into a separate sty file when using it with my letter.  EDIT2: Adding \usepackage{natbib} to the preamble breaks the compile. Whether I put it before or after the "homemade" bib sty file doesn't make a difference. I get  ERROR: LaTeX Error: Environment thebibliography undefined.


How to properly write multiple authors in bibtex file?

I use  to store all articles I need and bibtex4word add-on (in MS Word) to maintain the reference list. So, I would like to know how to properly fill the "author" field in Jabref with multiple authors to appear them correct in the reference list.  For example, I've got the article with several authors:      E. Orti, J.L. Bredas, C. Clarisse   And I would like them to appear in this manner. But instead I get this:     C. C. E. Orti, J. L. Bredas


I am running a multisite network on the latest version of WP. I am the Super Admin.  I setup a user as "Administrator" on a site in the network. The Admin User can see plugins but cannot install them (i.e., there is no Add New button on the plugin screen).  I am ever running WP User Role Editor plugin and the ability for an admin to install plugins is checked.  How can I give the secondary/alternate Admin the ability to install plugins?


If I have object that is heavy, I can pull it with rope but cannot push it. Why? What breaks the symmetry of the system? I can push or pull anything if I choose, so why is the push possibility not possible?


Do we have a better understanding of what energy is since Feynman's time?

When lecturing about conservation of energy in the 1960s, Richard Feynman remarked:     It is important to realize that in physics today, we have no knowledge of what energy is. We do not have a picture that energy comes in little blobs of a definite amount. It is not that way. However, there are formulas for calculating some numerical quantity, and when we add it all together it gives “28” —always the same number. It is an abstract thing in that it does not tell us the mechanism or the reasons for the various formulas.    50 some years later, have we made any progress in terms of understanding the fundamental nature of what energy is?


Is there ever a case for Anglicising question content?

Is it ever acceptable to edit and  the contents of a question on Stack Overflow?  By way of an example,  in which the user gives the following HTML markup:
drei

vier
   And in the questions asks:  The box "drei" and "vier" have collapsing margins   This is perhaps only the most basic example (for which Anglicisation would likely not offer much value), but for the sake of argument it would involve replacing drei with three, and vier with four.  I would posit the majority (answering/viewing) audience of Stack Overflow is English, so changing question content to English may be of more immediate help for answerers and future viewers, but clearly of less help to the OP.  My personal view would be to take it on a case by case basis, perhaps preferring to leaving language 'as the OP intended', but it would intrigue me to know what the general feeling on this subject was.


Trouble installing Nvidia drivers + Cuda (Ubuntu 16.04) -- unable to locate the kernel source error

EDIT: One note I forgot to add is that I"m using Vmware to run ubuntu. I'm assuming that may be causing the problem?  New to Ubuntu (and Linux) and I'm having trouble installing Cuda 9.0.  During installation via the command sudo sh cuda_9.0.176_384.81_linux.run I'm getting this error:     The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly. If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag   First I was getting X server is still running error and by following the steps below, that error is replaced with the above error.  These are the steps I took to get rid of the X server is still running error   Hit CTRL+ALT+F1 and login using your credentials. kill your current X server session by typing sudo service lightdm stop or sudo stop lightdm Enter runlevel 3 (or 5) by typing sudo init 3 (or sudo init 5) and install your .run file.   However, during step 3, when I try to install the file, I get unable to locate kernel source error.  The file that I'm trying to run is cuda_0.0.176_384.81_linux.run which is in my home folder.   During installation:  I hit yes for everything (drivers, CUDA toolkit, CUDA samples) etc.  In the end I get a summary that looks something like this:  Driver: Installation failed XXXX :  Installation skipped XXXX: Installation skipped   How can I fix this installation error?  $ uname -r 4.10.0-37-generic  $ dpkg-query -l linux-headers-\* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name           Version      Architecture Description +++-==============-============-============-================================= un  linux-headers- <none>       <none>       (no description available) ii  linux-headers- 4.10.0-28.32 all          Header files related to Linux ker ii  linux-headers- 4.10.0-28.32 amd64        Linux kernel headers for version  ii  linux-headers- 4.10.0-37.41 all          Header files related to Linux ker ii  linux-headers- 4.10.0-37.41 amd64        Linux kernel headers for version  ii  linux-headers- 4.10.0.37.39 amd64        Generic Linux kernel headers   EDIT:  My question is different from the possible duplicate question because the other question doesn't have any references to the error I'm getting:     The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly. If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag   I've already tried the marked solution from .


I've discovered that cElementTree is about 30 times faster than xml.dom.minidom and I'm rewriting my XML encoding/decoding code. However, I need to output XML that contains CDATA sections and there doesn't seem to be a way to do that with ElementTree.  Can it be done?


Conditional and Loop return in the middle of the code is that correct?

Sometimes me have indicated that you can not put a return in the middle of a conditional or a loop, because it breaks the process. However, now have indicated to me that if you can do, and is better. I'm confused. Usually would happen in a function  Can you put a return? Is not it? Why? Or doesn't it make any difference?  Example:  if (i == 0) {     //other code     return true; } else {     //other code     return false; }   or  if (i == 0) {     //other code     b= true; } else {     //other code     b= false; } return b;


Why can't I flag some answers as very low quality?

I'm just working through some flags, and I notice that some answers allow a choice of NAA and VLQ (among others), but some particular questions don't allow VLQ.  For example, for , which I think shouldn't be "Not an answer" (because it is, it's correct, it's just very poor on content), so I'd like to flag it as "Very low quality". However, the flag options I'm shown are just these:    Where has the "Very low quality" option gone? It's ok for many other answers.


Sharepoint lists showing a blank option in all choice fields

The choice field adds a blank option in all my sharepoint lists. How do I remove this? the column settings does not have a blank option.


How to convert a 32-bit (x86) Debian-based system to 64-bit

I have a 32-bit system which runs on a 64-bit processor. How do I convert it to be all-64-bit, without re-installing? I have seen somewhere that it is doable as a result of .


What is the time complexity of dynamic memory allocation using new, malloc, etc.?  I know very little about how memory allocators are implemented, but I assume the answer is that it depends on the implementation.   Therefore, please answer for some of the more common cases/implementations.  Edit: I vaguely remember hearing that heap allocation is unbounded in the worst case, but I'm really interested in the average/typical case.


How can I enforce user:group ownership of new files written by apache's www-data?

As courtesy we host our clients' website files. Each client has their own Linux account, and website files are served from /home/user/public_html.  All of the clients files have ownerships of user:user. Permissions for the accounts are 755, and this allows them to upload and manage files via SSH, and Apache can serve files, too since it has read access via the "everyone else" permissions. With this setup, users are free from worry that other users can modify their files.  The problem comes in with a Wordpress, Drupal, or other CMS where the software is responsible for self updates and file management is done through the website's interface (Wordpress' Media Library, for example.)  To do this a user or group has to have write access. Many solutions on the net advise the following ownership and permissions setup on web files and directories that need to be routinely updated / modified:  ownership: user:www-data permissions: 775 user becomes a member of the www-data group  With this setup, two undesirable things happen. The first is that, because they are of the same group, users can now access other user's accounts and, accidentally or not, modify delete or upload files, which is a bit security risk, especially if a user uploads a plugin or module with malicious code.  The second is that after uploading an image through the interface, for example, that file is now owned by www-data:www-data and the user can no longer manage these files via ssh / ftp.  Is there a way to force www-data to respect the ownership of the files so that user is always the user? What's the proper way to set up Apache in a multi user environment where Apache needs write access but I avoid these permission and security issues?


Special relativity different time dilatation?

We all know the kind of clocks being used to demonstrate the time expansion in special relativity, i took one of those and rotated it so the mirrors surfaces are orthogonal to the speed vector "$V$"...  On the static system we have $\Delta t = 2L$ as always and (and here i am wrong i think but don't know why)...   $\Delta t^1=\Delta t^1 _{forward}+\Delta t^1 _{backward}=\frac{L+V\Delta t^1 _{forward}}{c}+\frac{L-V\Delta t^1 _{backward}}{c} = \frac{\Delta t}{1-\frac{V^2}{c^2}}$  Now...   ...where my square root has gone? I made my algebraic calculus wrong or it's something from the beginning?


What are the best weapons for fighting The Destroyer?

I've just got into hard mode and I have full Mythril armour. Whenever I fight the destroyer I seem to not deal enough damage and die. Any suggestions for weapons to use against The Destroyer?


I installed Windows XP in dual-boot with Ubuntu to play Skyrim and that ended up breaking GRUB. After trying zillions of things to fix it (including using boot-repair), I installed Ubuntu in a new partition, side-by-side with the old Ubuntu and XP. After that GRUB worked again and I can now access my old Ubuntu and XP, but now I have two Ubuntus and I want to drop the new one. How do I do that without breaking GRUB again?   Here's the result for sudo fdisk -l:  Device      Boot    Start       End     Blocks      Id  System /dev/sda1   *           1       17303   138986316   83  Linux /dev/sda2           19799       29359    76798732+   7  HPFS/NTFS /dev/sda3           29360       30401     8369865   82  Linux swap / Solaris /dev/sda4           17304       19798    20040705    5  Extended /dev/sda5           17304       17595     2343936   83  Linux /dev/sda6           17595       18811     9764864   83  Linux /dev/sda7           18811       19677     6952960   83  Linux /dev/sda8           19677       19798      975872   82  Linux swap / Solaris   sda1 and sda3 are my old Ubuntu, sda2 is Windows XP, and sda4 to sda8 are the new Ubuntu install (I created different partitions for /boot, / and /home, should not have done that just to fix GRUB).  And /etc/fstab looks like this:  # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    nodev,noexec,nosuid 0       0 # / was on /dev/sda1 during installation UUID=e41d0403-82db-4379-9d3e-b67cb06fc08d /               ext4    errors=remount-ro 0       1 # swap was on /dev/sda5 during installation UUID=5a54507a-82f0-4275-b531-f88b9cfabbcb none            swap    sw              0       0   And here is the report from Boot-Repair:    And here is the list from /dev/disk/by-uuid:  ubuntu@ubuntu:~$ ls -la /dev/disk/by-uuid total 0 drwxr-xr-x 2 root root 140 2011-11-16 13:21 . drwxr-xr-x 6 root root 120 2011-11-16 13:19 .. lrwxrwxrwx 1 root root  10 2011-11-16 13:19 11F7-4048 -> ../../sdb1 lrwxrwxrwx 1 root root  10 2011-11-16 13:19 40b84b5c-dd62-4267-a41c-e5afc0c178a4 -> ../../sda3 lrwxrwxrwx 1 root root  11 2011-11-16 13:19 82672ddd-82ac-4d41-98c2-fc359f248f3b -> ../../loop1 lrwxrwxrwx 1 root root  10 2011-11-16 13:21 DE34ED7A34ED5655 -> ../../sda2 lrwxrwxrwx 1 root root  10 2011-11-16 13:21 e41d0403-82db-4379-9d3e-b67cb06fc08d -> ../../sda1


Program to find whether the destination is reachable or not

I was asked in an interview the below question  Given a list of Flights and a starting point and destination print out all possible combination of flights which can be used to reach destination from starting point.  example : Given the list of flights like   A -> B A -> D B -> C B -> D B -> H D -> A C -> E E -> F E -> G G -> H   Given start point as A and endpoint as H the program should output   A -> B -> H  A -> B -> C -> E -> G -> H  The program I wrote is like below  package flight;  import java.util.List;  public class Flights {      private String start;     private List<String> destinations;      public Flights(String start, List<String> destinations) {         this.start = start;         this.destinations = destinations;     }      public String getStart() {         return start;     }      public void setStart(String start) {         this.start = start;     }      public List<String> getDestinations() {         return destinations;     }      public void setDestinations(List<String> destinations) {         this.destinations = destinations;     }      public boolean containsDestination(String city){         return getDestinations().contains(city);     } }  package flight;  import java.util.ArrayList; import java.util.List;  public class Test {      public static void main(String[] args) {         List<String> fList = new ArrayList<>();         fList.add("B");         fList.add("D");         Flights f1 = new Flights("A",fList);          fList = new ArrayList<>();         fList.add("C");         fList.add("D");         fList.add("H");         Flights f2 = new Flights("B",fList);          fList = new ArrayList<>();         fList.add("A");         Flights f3 = new Flights("D",fList);           fList = new ArrayList<>();         fList.add("E");         Flights f4 = new Flights("C",fList);          fList = new ArrayList<>();         fList.add("F");         fList.add("G");         Flights f5 = new Flights("E",fList);          fList = new ArrayList<>();         fList.add("H");         Flights f6 = new Flights("G",fList);          List<Flights> flights = new ArrayList<>();         flights.add(f1);         flights.add(f2);         flights.add(f3);         flights.add(f4);         flights.add(f5);         flights.add(f6);          String start = "A";         String end = "H";          getFlights(flights,start,end,end);      }       private static void getFlights(List<Flights> flights,String start,String destination,String flightResult){         if (start.equals(destination)){              flightResult = flightResult+"-"+start;         }         List<String> ls = new ArrayList<>();         for (int i=0;i<flights.size();i++){             Flights f = flights.get(i);             if(f.containsDestination(destination)){                 ls.add(flightResult+"-"+f.getStart());             }         }         for (int i=0;i<ls.size();i++){             String as = ls.get(i);             String[] s = as.split("-");             String lastCity = s[s.length-1];             if (!lastCity.equals(start)){                 getFlights(flights,start,lastCity,as);             }          }          System.out.println(ls);     } }   The program is outputting like   [H-B-A] [H-G-E-C-B-A] [H-G-E-C-B] [H-G-E-C] [H-G-E] [H-B, H-G]   I only want the first two ones which are valid, how can i do that ? Also is there an optimized way ?


How can I install multiple apps on Ubuntu using scripting?

I would like to install a lot of apps, and I has been saving all commands to install each app, here is a sample:  ##Global  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410 echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - sudo apt-get install apt-transport-https echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable sudo add-apt-repository ppa:otto-kesselgulasch/gimp  sudo apt-get update; sudo apt-get -y install indicator-multiload spotify-client sublime-text qbittorrent gimp virtualenv rar unrar postgresql pgadmin3 python-pip python-dev libmysqlclient-dev p7zip-full  ##Kaggle  pip install kaggle chmod 600 /home/username/.kaggle/kaggle.json  ##Jdownloader  wget http://installer.jdownloader.org/JD2SilentSetup_x64.sh chmod +x JD2SilentSetup*.sh ./JD2SilentSetup*.sh  ##Teamviewer  sudo wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb sudo dpkg -i --force-depends teamviewer_amd64.deb sudo apt-get install -f sudo teamviewer --daemon start teamviewer   How can I run all lines at once using scripting on bash command line? Thanks!


I need someone who is willing to actually answer this volume of revolution question!

I'd really appreciate if someone could help me so I could get going on these problems, but this is confusing me... and it's been holding me up for the last couple hours.   How can I find the volume of the solid when revolving the region bounded by $y=1-\frac{1}{2}x$, $y=0$, and $x=0$ about the line $ x=-1$? How could I set it up?   I'd REALLY appreciate if someone could take the time to answer this so I don't spend all night on one problem.


Its my query join table :  SKU | Atributes | Atributes_Value 123 | Color     | Black 123 | Size      | 40   can i modify the select query like this ? (below)  SKU | new_atributes_value 123 | Black 40   i just want to see data with same SKU in one row! i tried distinct but i didn't get the desired result (below)  SKU | Atributes | Atributes_Value 123 | Color     | Black   my question is where the size 40 ? i want to see that item with sku 123 have a black color and size 40 in one row.. anyone can help me? i need the data for my eCommerce website


Screen size to start designing in Android?

I am newbie at working with android.   I have read several uxexchange questions here, articles etc. but I am still struggling on which size of screen should I start for the android app we need to work?  I have read the guidelines also in android but I still don't understand. My head is a mess with all the dpi, dp, the formula they give...I don't know where to go/start...I'm lost.  The app we need to work has as target devices the followings: Motorola TC55 and Samsung Galaxy S4 mini  I know for mobile the best is to start designing with the smallest screen. So, in my case, which should be? I'm working with fireworks/photoshop...so I only have the option there to manage px...which size should the screen be? which dpi resolution?  and if you could let me know, how did you arrive to that resolution I would be entirely grateful. I would like to understand android screen way of thinking. =S  Could you help me please?