What happens if I omit Java's volatile keyword?

I just learned about the volatile keyword in Java.  Essentially it seems that if a variable is read from or written to in one CPU, then it is saved in that CPU's cache but not necessarily immediately written to memory.    In some cases I pass an object reference or primitive variable to another thread, but I have not used the volatile keyword because I didn't know about that keyword until now.  I believe that if a new Thread reads that variable for the first time there is no issue. However, if my understanding is correct, then if a second thread changes the variable, then the first Thread's CPU may have it in cache and report an out of date value. Is this a true understanding of the effects of omitting the volatile keyword?  Example:   Thread A sets an object's variable value to "First". Thread B reads the value of that variable for the first time ever. Thread A changes the value to "Second". Thread B reads the value again shortly thereafter, but it still reports "First" because of CPU cache.   Is this the main consequence of omitting a volatile keyword when it is necessary? Thread reporting an out of date value?  Is my understanding here correct? Also I am open to any other suggestions about when it is NOT necessary to use the volatile keyword for a non-final variable that is accessed by another thread. I know when to use it, but I need to have a good understanding about when not to.


Are complex numbers subject to different rules of math?

From what I know, the rule to distribute exponents is like:  $$(a b)^x = a^x b^x$$  Thus, if $a = \sqrt 2$ and $b = \sqrt 3$, $ab = \sqrt 6$.  However, the imaginary unit $i = \sqrt{-1}$ has a different behavior, because if I take $a = -2$, $b = -3$ and $x = 1/2$:  $${[(-2) (-3)]}^{1/2} = (-2)^{1/2} (-3)^{1/2} = \sqrt{-2} \sqrt{-3} = i\sqrt 2 i \sqrt 3 = - \sqrt 6$$  Although, before I learned complex numbers, I thought,  $${[(-2) (-3)]}^{1/2} = [6]^{1/2} = \sqrt 6$$  What am I making wrong here and which is the right answer?


Windows 10 hosts file used by another process

There are a few other question with this same title but they do not solve my problem, so I am opening another one.   I have set the permission for the "hosts" file to full access for the current user. I have even taken the ownership. Current user is in Administrators group. I have turned off UAC. I have removed read only permission from the file.  C:\Windows\System32\drivers\etc>attrib hosts A            C:\Windows\System32\drivers\etc\hosts  I have disabled my Panada Antivirus. I have also stopped 3 panda services from Services palette. I open an elevated Command Line (run as Administrator). Run Notepad and change the file. When I try to save the file I receive the following error:  "The process cannot access the file because it is being used by another process. I check the file using "Unlocker" and the software says there is no active lock on the file.   Can anyone help?


Example of ideal which is not primary, but its radical is prime.

I want to find an example of ideal $Q$ such that $\sqrt{Q}$ is prime, but $Q$ is not primary.    It is clear that our domain would not be PID because $\sqrt{Q}$ should not be maximal ideal.


Why does Excel treat long numeric strings as scientific notation even after changing cell format to text

I'm trying to process some data in Excel. The data includes numeric account numbers and other long numeric strings (like cell phone MEIDs). I am not doing math operations on these strings, so I want Excel to treat them as plain text.  Here is what is making me nuts (this is Excel 2010):   Take a long number like 1240800388917 and paste it in a cell in a new worksheet. Excel's default cell format is general, so the string is presented in scientific notation as 1.2408E+12 Right click on the cell, select Format Cells, set the format to Text   The cell is still displayed in scientific notation, even though the format has been set to text.  Now, if I do the steps in a different order:   Format an empty cell as text. Right click on the cell, select Format Cells, set the format to Text Take a long number like 1240800388917 and paste it in to the text formatted cell   Now, the cell is displayed as a string and not in scientific notation.  The results remaining in scientific notation even though the cell is formatted as text just seems broken to me. I've seen suggested work-arounds like: use CSV import and set the format to text, add a space character to the beginning of each numeric string, and others.  Is there a simple good work around to easily keep these strings formatted as text?  Why on earth does Excel do this?  Related SU questions I found:  and


What to do when a question could belong to multiple stack overflow comunities. e.g SO and Information Security?

Since asking questions is a rigurous thing to do and you could get down votes for very simple mistakes and even possibly get question banned if you accumulate enough.  What happens if I ask a question which could be ambiguous in terms of where the question should be asked ?   For instance, if a question is about programming () and at the same time about security ().  Is there a way to link both comunities ?


C++ calling the correct method for derived class

I want to have some nice linear algebra in my code with the help of operator overloading. E.g. a product with a vector and a scalar looks like vec * scalar and returns a vector. The problem is, i have 2D and 3D vectors and at compile time is is not know which one it will be.   My attempt was a empty base class and a derived class for 2D and 3D. However it seems like this is not working as expected because it is not calling the correct methods.  #include <cstdlib> #include <iostream>  class baseVector { public:     baseVector() {}     ~baseVector() {}     virtual void print() {         std::cout << "This is not the vector you are looking for" << std::endl;     }     virtual baseVector operator*(const double r) const {} };  class Vector2 : public baseVector { public:     Vector2() {}     Vector2(double x, double y) {         data_[0] = x;         data_[1] = y;     }      ~Vector2() {}      void print() {         std::cout << data_[0] << ", " << data_[1] << std::endl;     }      /** Product: Vector * Scalar */     baseVector operator*(const double r) const {         Vector2 result(data_[0]*r,                        data_[1]*r);         return result;     }  private:     double data_[2]; };   int main(int argc, char** argv) {     // Construct vector of derived type which is not known at compile time     baseVector * myVec = new Vector2(1, 2);     const double val = 5;      baseVector & tempVec = *myVec;     tempVec.print();      // Some nice linear algebra here, can't use datatype Vector 2 because it is know known at compile time     baseVector resVec = tempVec * val;      // This should print 5, 10     resVec.print();     return 0; }   I expect resVec to be a vector of type Vector2 with the values 5, 10. Instead it calls the print function of the base class. I understand somehow why this is happening but how do I achiev what I want?  Anyway, is this even the right way to go? Thanks in advance for every hint.  Edit: Slicing is not the answer but explains why it doesn't work. I've found a possible solution with the auto keyword. Skip the inheritance and use auto in the main instead of a specific type. Thanks everyone to make me thinking.


What are some standard patterns for formatting numerical values with a wide range of values like cryptocurrency prices?

I am trying to build a screen where I need to display cryptocurrency prices. The problem with these prices are that some of them such as BTC have 2 digits after the decimal, some of them have 4 while a vast majority of them have 8 digits.  What are some standard patterns used to format numerical values in a table that contains a wide range of values?  My Current Screen   Other Providers  Coinmarketcap   Coingecko   Coincodex   Coincap   Coinlib   Coinpapricka


Flag dialogs for grayed-out posts are also grayed-out

When flagging an answer that is grayed-out because it has a score of -3 or lower, the flag dialog is also grayed-out. If you drag it over a non-grayed-out answer, it appears semi-transparent. The same is true when you flag a comment on a grayed-out answer.     This looks like a regression of , perhaps due to .


How to stop 16.04.2 with HWE kernel from updating to 4.4 kernels

I ran the following a week ago to upgrade from 16.04.1 to 16.04.2 with HWE:  sudo apt install --install-recommends xserver-xorg-hwe-16.04   It installed a 4.8 kernel which I'm running now. Just now, I ran the following:  sudo apt update && sudo apt dist-upgrade   This installed the 4.4.0-62-generic kernel and made that the kernel that will be booted into, I think, because it's pointed to by /initrd.img and /vmlinuz. How do I stop future updates of the 4.4 kernel series and set the kernel that will be booted into next time back to the 4.8 kernel series?


Is repeating the word "that" ok, if it is technically, grammatically correct?

E.g.:     "... with all the sustainability considerations that that entails."   If I'm correct, the above example is relative pronoun followed by pronoun - it just happens to be the same word for both grammatically legitimate, albeit adjacent words.  Or, even an example with three that's in a row:     "It wasn't that that that was referring to."   The above sentence may even sound natural in common speech if delivered fluently and in a context in which it was fully understood.  So if one accepts grammatical correctness and one is being clear in it being known what the examples of that are adjuncts for, are repeated that's acceptable after all?


i am trying to show an image in the middle of a section as shown in the latex code posted below. the problem now is, the image always is displayed at the top of the section "before the section starts" and i want it in the middle  please let me know how to do it correctly     the question the moderator suggested, does not contain latex code that         might solve my issue plus, the explanation is really prolongated while, I         think, the solution of question could be solved with few words or few         lines of latex code   please re-activate the question   latex:   \subsection{OSM Vs Google Maps} OpenStreetMap OSM which started in Univesity College London UCL ..... ...... ..... ...... \begin{figure} \centering \textbf{Your title}\par\medskip \includegraphics[width=100mm,scale=0.7]{osm_vs_wikipedia_1} \caption{Your caption} \end{figure}  the rest of the text goes here.. ...


Poisson regression with offset vs poisson regression with weight

I would like to know the linear expression of weight and offset in terms of poisson regression in glm.  for instance for offset      glm( y ~ x + offset(of), data, family=poisson(link="log"))   the above glm model can be expressed as:    log(y) = constant + beta*x + log(of).   My question is what is the equivalent expression for the following glm model:  glm(y ~ x, weight=weight, data, family=poisson(link="log")).   From my understand offset and weight are different and impact the estimates differently.


What are some good quantum computing simulator and visualiser?

I am looking for some good software to simulate quantum computing, visually if possible.  I know about quirk ()  and IBM Q Experience ()  I just saw this question (  ) and the asker uses something that looks really neat :   Does someone knows what this is? And does someone knos other good software like these?  Thank you!!


Will my age affect my chances of finding a funded PhD position?

I just finished my masters studies. My question is, will my age (29) affect my chances of getting a funded PhD position? I finished Bachelor of Engineering when I was 24 (took 6 years to graduate, normally my program was 5 years). I worked as a Lab course assistant (teaching the practical part of the course at a local university) for 2 years before I started my MSc a bit late due to financial reasons. I started working in industry a year ago (for same financial reasons) in a computer science field but irrelevant to the research area. I know that most of PhD scholarship positions officially require the applicant's age to be under 35, but do not they prefer someone who is 25 rather than 34?   I have two conference publications, one in IEEE, and about to send the third for journal publication. My field is computer engineering with a focus on the software side and I am trying to apply in Europe mainly.


I bought a car and accidentally, without reading, clicked one of my favorite cars in the game, it then said I couldn't go to fix my car because it belongs to someone else. I then removed myself from the vehicle and when I tried getting back into it, it said: "you don't have access to this personal vehicle".


Bash script doesn't executed properly inside docker container

I am trying to run bash script:  export LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH export SUBJECTS_DIR=/output timefmt="%C --- CPU:\t%E real,\t%U user,\t%S sys\t%P\tMem:\t%KkiBavg.,\t%MkiB max.\tExit:\t%x" all_ids=() for dirname in /input/*; do  id=${dirname#/input/}    # remove "/input/sub-" id=${id%/}             # remove trailing "/"  printf 'Adding ID to recon-all processing list: %s\n' "${id}" >&2 if [ ! -e "/output/$id" ]; then     # no output file corresponding to this ID found,     # add it to he list            all_ids+=( "$id" )     /usr/bin/time -f "$timefmt" \     recon-all -s "${id}" -i /input/${id}/unprocessed/3T/T1w_MPR1/${id}_3T_T1w_MPR1.nii.gz -i /input/${id}/unprocessed/3T/T2w_SPC1/${id}_3T_T2w_SPC1.nii.gz     printf 'Series with t1 found, subjects matched: %s ; %s ; %s\n' "${id}" fi done  printf 'Found ID: %s\n' "${all_ids[@]}" >&2  printf '%s\n' "${all_ids[@]}" | parallel --jobs 6 --timeout 300% --progress recon-all -s {.} -all -qcache   I made a docker container and it executed without any result, it just goes to the place and prints printf 'Adding ID to recon-all processing list: %s\n' "${id}" >&2, how ever if i run it with entrypoint=bash option with seperated command it executed properly.  Output of bash -x script.sh:  + for dirname in '/input/*' + id=102311 + id=102311 + printf 'Adding ID to recon-all processing list: %s\n' 102311 Adding ID to recon-all processing list: 102311 + '[' '!' -e /output/102311 ']' + all_ids+=("$id") + /usr/bin/time -f '%C --- CPU:\t%E real,\t%U user,\t%Ssys\t%P\tMem:\t%KkiB avg.,\t%MkiB max.\tExit:\t%x' recon-all -s 102311 -i /input/102311/unprocessed/3T/T1w_MPR1/102311_3T_T1w_MPR1.nii.gz -i /input/102311/unprocessed/3T/T2w_SPC1/102 311_3T_T2w_SPC1.nii.gz  + printf '%s\n' 100408 100610 101006 101107 101309 101410 101915 102008 102109 102311 + parallel --jobs 6 --timeout 300% --progress recon-all -s '{.}' -all -qcache


I want to override theme node.tpl.php file with node--[content-type].tpl.php in my custom module

I am making a new custom module. and i have 1 content type called city management(city-management). I want to override theme node.tpl.php file with node--city-management.tpl.php in my custom module.  Is it possible?


How to .gitignore all files/folder in a folder, but not the folder itself?

I want to check in a blank folder to my Git repository. Effectively, I need to ignore all of the files and folders within the folder, but not the folder itself. How can I do this? What should I put in my .gitignore file? For those wondering why I would want to do this, I have an "upload" directory in my repository. I want to commit the blank directory, but without all the contents.


Listening on Serial Port already in use by another application

I am stuck with below mentioned problem.   Application 1(c#) on machine is communicating with device1 over physical serial port (RS232).Application 1 sends the command and device 1 sends the response over serial port. 2.I want to read the response from device in another application2 (in c#) at the same time when application 1 is listening on serial port.   Application 1 is already implemented in c# and i need to create application 2 in c#.  Please let me know how I can read the response from device in application 2 over same serial port.  Thank you so much in advance :)


Using Python to convert from more than one CRS

I have a Python function which converts Eastings and Northings to Latitude and Longitude if line_count == 0:                     keys = row                     print('keys', keys)                     line_count += 1                 else:                     inProj = Proj(init='epsg:27700') # British National Grid                     outProj = Proj(init='epsg:4326') # WGS84                     x1, y1 = row[1], row[2]  # easting, northing                     x2, y2 = transform(inProj, outProj, x1, y1)                     row[1], row[2] = y2, x2                                          json_doc = {}  At the moment it converts from epsg:27700 (British National Grid) to WGS84, however there is a possibility I will get TM75 Irish Grid too. Is there any way I can get Python to recognised which CRS is applicable for the conversion?


'Is too many', 'are too many' or something else?

"I decided to go on holiday for a week. I think 10 days is too many for me."    Am I correct using 'is' instead of 'are'? Or the only way is to change the phrase to '10-days period is too long for me?'


Horror short story about an upscale restaurant, the regulars of which eventually disappear and are served as the next meal

I read it in a horror anthology a while ago.  I don't remember too much of it, but it was about an upscale restaurant which only served limited plates for regulars who would disappear once in a while, with the implication being that they were being fed and fattened up to be the next meal at the restaurant.  I think the narrator may have been a restaurant reviewer, or someone whose friend finally allowed him to tag along.


I have an array like this one:  int[] numbers = new [] { 1, 2, 3, 4 };   I'd like to randomize this (different each time) so that it makes another array with the same size and numbers but in a different order each time.


Which dimensionality reduction technique for mixed data?

I have a binary dependent variable and 18 independent variables which I want to use as regressors in a logistic regression. Prior to that, I want to reduce the dimensionality of the data set to shield my model against overfitting. Which dimensionality reduction technique do you recommend me given that 8 regressors are categorical, 1 is ordinal scaled, 9 are count variables and 1 is interval scaled? The size of the data set is roughly 50000. I'm working with RStudio.


Ubuntu 20.04 Dark mode isn't making the GNOME menus dark

Ubuntu 20.04 dark mode is not making the top bar menus dark. I've done all my updates and rebooted a few times but it won't make them menus dark.


Construction of Borel set with given Lebesgue density.

Let $\alpha \in (0,1)$. How can I construct a Borel set $A$ such that $$\lim_{r \to 0+ } \frac{m(A \cap [-r,r])}{2r}=\alpha$$?  Thanks.


How to randomly display a word from a list of words (a random student's name of my class)?

Last year, I came up with a solution to randomly display the names of my students in a presentation using the package tikz. Unfortunately, I'm not a LaTeX guru, and it's far from perfect:   Compilation is really slow (I've heard for loops should be forbidden...). The random generator doesn't seem to have a nice uniform distribution (at least for every seeds). I need to manually set a seed.   Actually, point 1. is what really matters for me.  How would you randomly display a word from a list of words previously defined?    Here the solution I'm using until now:  \documentclass[french]{beamer} \usepackage{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tikz}  \pgfmathdeclarerandomlist{classe}{{Adeline}{Apolline}{Alric}{Jana}{Alex}{Axel}{Baptiste}{Océanne}{Joris}{Lucas C.}{Esteban}{Margaux}{Emma F.}{Louis}{Nathan}{Grégoire}{Jérémy}{Emma L.}{Mélina}{Arthur}{Lea}{Laurette}{Flora}{Manon}{Julie}{Lucas T.}{Maëva}} \newcommand{\eleve}[1]{ \pgfmathsetseed{1} % seed I need to change \foreach \i in {0,...,#1}{\pgfmathrandomitem{\a}{classe}} \pgfmathrandomitem{\a}{cinquiemed} \a }  \begin{document} \begin{frame} \begin{enumerate}   \item<1-> $9 \times 7 = \action<3->{63}$ \hfill \action<2->{\eleve{0}}   \item<4-> $12 \times 12 = \action<6->{144}$ \hfill \action<5->{\eleve{1}}   \item<7-> $6 \times 7 = \action<9->{42}$ \hfill \action<8->{\eleve{2}}   \end{enumerate} \end{frame} \end{document}   And you can look at the last slide below to see the result:


Let's use "Coda 2.app" as an example. If to rename it to "Coda.app":   Will it affect the functionality of the app? Is the app still be able to access the sites data saved in Keychain previously? Is there any problem for the in-app auto update?   Thanks.


I want to add Orcid ID in Latex article. I have tried several methods that are used for other documentclasses, but none of them worked for me.


I have set up sql server 2008 in windows server 2008 r2 and it works fine. However, I have deleted the my user from logins in the sql server accidentally and now I cannot find a way to log in to the sql server and I believe I did not set up any other user well. Think of it as I just installed and removed the user.  Is there anyway that I can add an account?


I'm looking for a good, clean way to go around the fact that PHP5 still doesn't support multiple inheritance. Here's the class hierarchy:  Message   -- TextMessage     -------- InvitationTextMessage   -- EmailMessage     -------- InvitationEmailMessage    The two types of Invitation* classes have a lot in common; i'd love to have a common parent class, Invitation, that they both would inherit from. Unfortunately, they also have a lot in common with their current ancestors... TextMessage and EmailMessage. Classical desire for multiple inheritance here.   What's the most light-weight approach to solve the issue?   Thanks!


There is a security camera on the building to your left      There is a security camera on the building on your left   Is there any real difference in meaning here? Which sounds more natural to native speakers?


I'm using Xubuntu 14.04 64 bit. I know that question been asked a billion times, but all of them consist of editing following file:  /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla   That file does not exist on my system. I tried com.xubuntu.enable-hibernate.pkla but doesn't exist either, locate command doesn't find it.


Concrete Mathematics - The Josephus Problem

I've been going through  and have a question on the inductive proof for the . Recurrent relation:  $J(1) = 1$ $J(2n) = 2J(n) - 1$ $J(2n+1) = 2J(n) + 1$  Closed form hypothesis:  $J(2^m + l) = 2l + 1$, for $m \ge 0$ and $0\le l<2^m$  Inductive Proof (for the even case):  $J(1)=1$ $J(2^m+l)= 2J(2^{m-1}+l/2)-1=2(2l/2+1)-1=2l+1$  How do the authors get from $2J(2^{m-1}+l/2)-1$ to $2(2l/2+1)-1$?


What is common practice w.r.t. providing signatures on printed photographs?

I wonder what are common practices these days, in order to provide a certificate of authenticity, however limited, to a printed photograph.    Here I have the art-photography world in mind; exhibitions where larger prints and elaborate frames are common.  Should there be a signature of the artist on the picture? Should it be on the front? Or bettter on the back side?   Should prints be rubber-stamped on the back ? Do exhibits provide a running counter (e.g. "51/100") like for printed handcrafted artworks such as, say, an etching? Is it common to provide it for pictures of certain minimum size only?  I know that it is unusual to sign a small framed picture, but what about larger ones?  Is a digital signature on the front considered amateurish?   I know these are several questions, but they are all closely related. Maybe someone can answer this comprehensively, or provide a link to  reference that discusses all this.


I really need some good tips for Duke Fishron. I can never seem to kill him. I am using the chlorophyte shot bow with holy arrows. I also have Vampire knives just in case. I am using ironskin, pumpkin pie, swiftness, and some others. What am i missing here?


Minimal polynomial for sum of algebraic numbers.

If I have two algebraic numbers $\alpha,\beta$ such that $A(\alpha) = 0$ and $B(\beta)=0$ where $A,B \in \mathbb{Q}[x]$ are the minimal polynomials of $\alpha$ and $\beta$ respectively. Knowing only the coefficients (and degree) of $A$ and $ B$ is there an algorithm for generating the minimal polynomial of $\alpha+\beta$?  I asked a professor and he recommended computing powers of $A(x) + B(x)$ and claimed there was a way to reduce it to get the appropriate polynomial however I'm not seeing his method.


I know similar questions have been asked before, but I'm having trouble reconciling the following sentence, received in an email:     Can we ask whomever is your contact there to email us a job so we can check backward compatibility?   I could understand using objective case if the sentence were "can we ask (him) to email...", but I get tripped up considering "whomever" to be the subject of "(he) is your contact there".


Mid 90's book series with a young boy being taught by a sorceress

I'm trying to figure out a fantasy series I read in the early to mid 90's. It wasn't The Belgariad or Eye of the World but it is so similar that I forget its name.  A young simple boy gets caught up in in a quest. He is taught by a sorceress with a badass bodyguard. They are attacked by shadow-like creatures at an inn early on in the story. I remember something about red and white ribbons tied to peoples swords denoting which royal house they supported in one of the towns they travelled through…  Vague, I know. Help?


How can I rotate both a picture and its title in TeX?  Parameter in \includegraphics allows to rotate only a picture.


Before the following sentence I state that "we could train the "XX" function by using certain idea in an optimization problem for a model." Then I want to say:     Moreover, we could also train, by using a same idea or new ideas, the   "YY" function and bring in different models in one optimization   problem. In this way I suppose we shall have a better result, even.   Question 1: Should I use could or can? (Solved)  Question 2: Do I use even correctly? Question 3: How may I write this sentence better...? I feel weird when I read it...


I have installed the texwork 2017 and I am trying to use biber on it. I am trying to create a bib file to use it as a bibliography database but error keeps appearing us like the screenshot below.  What is wrong? What does it mean by "did you pass the beckend-biber option to Biblatex"? Could anyone please help me how to solve this error?


Cannot find "Workspaces" in Ubuntu 20.04

I just downloaded Ubuntu 20.04 LTS and cannot find "workspaces" on the right of the desktop display. If I go to Appearance settings, there is no menu for Workspaces. If I use the Super Key there are no workspaces shown. How can I turn on to have workspaces that are supposed to be in this version of the OS?


So I had a full /boot and I've really messed things up now. What I'd really like to do is run sudo apt-get purge linux-image-3.2.0-{35,36,37,38} but I need to fix these other problems first. So when I run sudo apt-get -f install this is what I get (I also get similar output for any other apt-get commands)  $ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   linux-generic-pae The following packages will be upgraded:   linux-generic-pae 1 upgraded, 0 newly installed, 0 to remove and 192 not upgraded. 1 not fully installed or removed. Need to get 0 B/1,726 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]?  dpkg: dependency problems prevent configuration of linux-generic-pae:  linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.41.49); however:   Version of linux-image-generic-pae on system is 3.2.0.53.63.  linux-generic-pae depends on linux-headers-generic-pae (= 3.2.0.41.49); however:   Version of linux-headers-generic-pae on system is 3.2.0.53.63. dpkg: error processing linux-generic-pae (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                        Errors were encountered while processing:  linux-generic-pae E: Sub-process /usr/bin/dpkg returned an error code (1)   But this doesn't tell me enough what the other error was. I think it started when I ran sudo apt-get -f install with only about 20MB of free space in /boot. Grrr, /boot partition is super annoying.


In German, we often use "Elfhundert" (literally, "eleven hundred") for 1100 or "neunzehnhundert" ("nineteen hundred") for 1900; but is this correct in English?


How to create a dictionary containing lambda expressions using comprehension list?

I am trying to generate (something like) the following dictionary:  funcs1 = {     '0':lambda x:x==0,     '1':lambda x:x==1,     '2':lambda x:x==2,     '3':lambda x:x==3,     '4':lambda x:x==4,     '5':lambda x:x==5, }   I tried to create the dictionary with a list comprehension like this:  funcs2 = {str(i):lambda x:x==i for i in range(0,6)}   Or simply using a for loop:  funcs3 = {} for i in range(0,6):     funcs3.update({str(i): lambda x:x==i})   However, funcs2 and funcs3 are not the same as funcs1, for example, when calling the element '0' of each one of them and applying it to 0, the results are different:  funcs1['0'](0) Out[2]: True  funcs2['0'](0) Out[3]: False  funcs3['0'](0) Out[4]: False   Can somebody please help me out and point out where I am making a mistake?


Number of elements in a subset of $\mathbb F_{27}$

Let $\mathbb F_{27}$ be the finite field of order $27$. Let $A_{a}=\{1,1+a,1+a+a^2,\dots\}$. Then which of the following are true?   The number of $a\in\mathbb F_{27}$ such that $\operatorname{card}(A_{a})=26$ equals to $12$. $0 \in A_{a} \iff a$ is nonzero. $\operatorname{card}(A_1)=27$ $\bigcap A_{a}$ is a singleton.   For 2 one way is very obvious. If $0=a$ then $0=1+a+a^2+... +a^k$ for some $k <= 27$.Put a=0 and we get $1=0$, which is a contradiction. For the other way round I am unable to proceed.  For 4 I have no ideas how to proceed.


How do I change JPanel inside a JFrame on the fly?

To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One of the components is a JPanel that is meant to be replaced by another JPanel on user action.  So, what's the correct way of doing such a thing? I've tried  panel = new CustomJPanelWithComponentsOnIt(); parentFrameJPanelBelongsTo.pack();   but this won't work. What would you suggest?


I was given an iPhone but I don't have the Apple iCloud password.   I don't use as the iPhone as a phone, so no carrier is enabled. I just use it with my home wifi.   A message to enter the old users iCloud password pops up at times.   Any suggestions to make the pop ups for past owners password to stop?


I'm trying to simulate laserbeams going through movable mirrors to see where they end up on some screen depending on the orientation of the mirrors. So I figured that I could use raycast from the laser source to the mirrors and from the location and normal vector of the mirror cast a new ray in the reflected direction an so on. But I can't get the raycast to work. I have previously used the raycast from 3Dview to objects from the template with success. But I can't find any good explanation or documentation on the basic object.ray_cast() function. import bpy import mathutils  source = bpy.data.objects.get('Source')  location  = source.location direction = mathutils.Vector([0 , -1 , 0])  ray_succes, ray_object, ray_normal = source.ray_cast(location, direction)  But I get this error:  So I lack the basic understanding of how the function works. Any explanation, good answered questions, tutorials, documentation would be really appreciated. I'm open to alternative ways to shine light beams through mirrors which I can then move and rotate with python code.


What happens when polymorph ends in a demiplane that is too small for the creature?

The  spell lets you create a permanent room 30 feet in any dimension as a separate plane, which would then be smaller than the Tarrasque.  On the other side I may polymorph a Tarrasque into a pot and transport it in my demiplane.  What could happen when, after one hour, the polymorph spell ends?  A typical ruling here could be to eject the creature to the nearest unoccupied space (maybe letting it take some damage, like a mishap when teleporting), but in this case there wouldn't be any "nearest space" where to put it!  Would then be a legitimate ruling to teleport it to the ethereal plane? Or should it just die? Or should I maybe just extend the duration of the polymorph? In other editions they say that when a creature would occupy an illegal position, it should be moved to the last legal position instead.  It is not clear to me where should I put the monster, or what would happen to him.


Call a function in c# at a specific time in a day using simple while loop

I need to call a function at a specific time during a day. There are other examples in the internet using, Timer etc. But I am wondering, why not simply have a thread which calls a method having a while loop.               while (true)             {                 if (DateTime.Now.TimeOfDay == new TimeSpan(0, 0, 0))                 {                     ManualTaskProcession();                 }             }   This will be run on a separate thread - wondering why this approach is not mentioned anywhere, or is it correct?  P.S This is inside a Windows Service.


My question is easy but I currently haven't the response.  How can I add the "&" as a normal char inside a table row? If I try to use $&$, I have an error.


Three-wire and four-wire CPU fans, what's the difference?

What is the difference between 3-Wire and 4-Wire CPU cooling fans?  Of course, the obvious answer is “1 Wire!”  :-)


Note: This is intended as a canonical question for a commonly seen problem here on Stack Overflow.  My Android app crashed. I  and found that the cause is a NullPointerException at the line  myEditText.setText(myString);   What is the problem and how do I fix it?


Reading  Wikipedia page I found this definition:     A real number $a$ is first-order definable in the language of set   theory, without parameters, if there is a formula $\phi$ in the   language of set theory, with one free variable, such that $a$ is the   unique real number such that $\phi(a)$ holds in the standard model of   set theory.   A few lines later we find the statement:     Assuming they form a set, the definable numbers form a field....   But, since they are a subset of the set of real numbers, why shouldn't they be a set?   Coming back from this question to the definition, I've another doubt: if ZFC is consistent this does not means that every set-theoretic object (and so any real number) is definable in some model?  Reading the whole article does not lessen my confusion .... and the ''talk'' is too difficult for me and it does not help.  More generally, this Wikipedia article is "disputed" ad has many "!" So I doubt that it is not reliable.  A brief surf on the web give me many pages on this subject but I've  found nothing that I can understand and give a response to the question: we can well define what is a definable real number?


What is the functional difference between an in-circuit-debugger and an in-circuit emulator?

In-circuit emulators (abbreviated ICE) boast about their awesome debugging features, and also boast high price tags.    In-circuit debuggers (abbreviated ICD) can do most of the stuff that an ICE can do, but often cost much less.  I know that way back in the day, ICEs would actually remove the problem chip from the socket and replace it with an emulator cable, but with modern QFN, BGA, and fragile TQFP packages, it seems that most products calling themselves "ICE" debuggers are connected to a debug header in much the same way that an ICD would be.  Here are some examples of products which use "ICE" in the name:        There are also JTAG 'ICE" products from several vendors.  Note that I'm not discounting these because they're not physically in-circuit, but I would discount them if they don't function as a true ICE.  In what sort of development tasks do I need an ICE, and when should I be content with an ICD?  Let's assume that I want to step through my code, and not use LEDs and printf() statements.  What are some examples of problems which you've solved with an ICE but could not (realistically) have solved without it?


How to stop all "play" commands currently running in other shells?

I have a script that invokes the play command when I press f10. I would like to edit that script so if I press it while an audio file is playing, then it kills that first before playing the next file.  What command am I looking for? Something like,   killall play ?


What kind of virus is this? Avast does not recognize it.

From time to time, a popup like this popups up and installs some random app.     I scanned my PC with Avast, but it did not recognize any threat.  And how to remove it?


Why am I getting a negative balance after subtracting values?

I have a formula to subtract several cells from 1 cell and I am getting a result of -2.27374E-13. The formula is D235-E235-F235-G235-H235-I235-J235, each column has a dollar value and no matter how I try to calculate it it still comes out (0.00).   D235 = 2386.16 E235 =    0.00 F235 = 1431.70 G235 =    0.00 H235 =    0.00 I235 =  954.46 J235 =    0.00


Why can I not place a pregnant woman to work but others work while pregnant?

I am playing Fallout Shelter, have 3 kids in my shelter, all going well, thought I would make one more kid with big strength numbers and decent agility/perception (kids take on SPECIAL stats from their parents). All the women who are pregnant work in my shelter, apart from this one. She can not me put to work, can not be moved from the living shelter, can not be moved to a job via the clipboard short cut.  TL;DR One of the NPC females who is pregnant can not be put to work, can not be moved from the living shelter room, she just walks about as if she is carrying a mammoth inside her. I have NOT moved the shelter, have not let the dad die, have not done anything at all.


I am using dell 3542, installing the softwares while giving some permission issue as below. I come to know that sudo command is not working. So i have executed 2nd point but no use.   1)   sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins   2)    pkexec chmod go-w /usr/lib/sudo/sudoers.so  Error getting  authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct   3) When i exeute ls command it is showing like this   ls -l /usr/lib/sudo/sudoers.so -rwxrwxrwx 1 root root 185288 Jun  1  2012 /usr/lib/sudo/sudoers.so   How can I fix this issue. Any help is appreciated


Which storage hardware is more reliable these days for storing data? Is USB stick safer than SSD?

I am wondering which storage hardware is more reliable these days for storing data which I won't use for years. I knew there was no immortal storage media. I am not asking for one. All I want to know it's which media is more reliable at present. I have very bad experience with hard drives, and don't trust hdd anymore. The hard drive can easily have many problems, weak spindle, bad head, scratched platters etc.. Even if some online articles suggest HDD is safer than SSD in terms of storing data, I really don't want to touch HDD. Maybe HDD experts and recovery lab has more trust on these things because they can easily fix problems with some special equipment or by replacing spindle, head, PCB board. My problem with HDD is NOT magnetic field lifespan, I met scratched paltters problems and they can not be easily fixed or kinda not fixable. Other than hard drives, the only options left might be USB stick and SSD. But when I do research, I fount out SSD might lose data when it's unpowered (not connected to power source) for one or more years. And I am not sure if USB stick has the same problem or not. Because online articles talk about SSD mainly in most cases. So far, I haven't met any data loss on SSD and USB stick in my life. Maybe I am just lucky on SSD/USB and unlucky on HDD. Btw, even if some articles say SSD can lose data if it's unpowered for a week, some people argue that these concepts are not right and it's based on some extreme situation and will unlikely be a real life experience. Oh, I forgot about TF cards, but I feel TF cards are similar to USB stick, but I might be wrong. Btw, I knew the most important thing is doing backups. But I am wondering which storage hardware I should choose to store my data in the first place. And I don't want to store my data online and want to keep them locally in terms of privacy. Thank you very much for your advice.


Mitigating spam on Linux server where all MTA's (Postifix, PHP Mail() function) etc. are disabled

We have a Debian Squeeze server running a fairly standard LAMP stack (back in the days it was set up using the Perfect Server guide at Howtoforge, so we're using ISPConfig as our backend admin panel) which has been locked down pretty well with regards to MTA's (nothing installed, no postfix, no EXIM etc.) and with the php mail() function thoroughly disabled, port 25 firewalled.  We routinely get SPAM warnings from e.g. MegaRBL however identifying our server IP as the source  Usually we track down a hacked Wordpress site, where we see a bunch of encrypted/obfuscated scripts and other junk, which we then nuke and hope for the best.  This approach is not satisfying to me as I am going mad with trying to figure out HOW they manage to send out SPAM from this server. I am guessing (and this might be totally wrong) that the scripts they manage to drop into the hacked Wordpress sites are Mail Transport Agents themselves. I obviously cannot gain much insight into what they are doing exactly as these scripts are encrypted / obfuscated.  All my google searches and research always points to Postfix or the mail() function and various guides on how to track this down and mitigate spam from these sources - but I am certain that all that stuff has been nuked from our server.  So my question here is threefold:   Is it possible that these obfuscated scripts we find are in fact sending out mail without the aid of any binaries installed on my server? (e.g. Postfix, sendmail, whatever) Is there any way of logging / detecting this type of traffic being emitted from our server? Am I missing something? Postfix has been removed, I've doublechecked that the PHP mail() function is disabled, I've scoured the binaries looking for anything that might be mail related and nuked it, but I'm worried I might just be retarded and missing something obvious ...


Let $ \omega = dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n} \in \mathbb{R}^{2n}$. Find $\omega^n$ (in respect to $\wedge$)

Let $ \omega = dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n} \in \mathbb{R}^{2n}$. Find $\omega^{n}$ (in respect to $\wedge$)  When I say "$\omega^{n}$ (in respect to $\wedge$)" I mean the exterior product of $n$ $\omega$'s.  I tried writing  $$(dx_1 \wedge dx_2) (v_1,v_2) = \det \begin{pmatrix} d{x_1}(v_1) & d{x_1}(v_2)\\  d{x_2}(v_1) & d{x_2}(v_2) \end{pmatrix} = d{x_1}(v_1)d{x_2}(v_2) - d{x_1}(v_2)d{x_2}(v_1) $$  $$ (dx_3 \wedge dx_4) (v_1,v_2) = \det \begin{pmatrix} d{x_3}(v_1) & d{x_3}(v_2)\\  d{x_4}(v_1) & d{x_4}(v_2) \end{pmatrix} = d{x_3}(v_1)d{x_4}(v_2) - d{x_3}(v_2)d{x_4}(v_1) $$  but that wouldn't lead me nowhere.  I know the property $ \omega \wedge (\phi_1 + \phi_2) = \omega \wedge \phi_1 + \omega \wedge \phi_2 $  Then:  $$ \begin{align} \omega \wedge \omega = {} & (dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n}) \\ & {} \wedge (dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n}) \\[8pt] = {} & (dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n}) \wedge (dx_1 \wedge dx_2) \\ & {} + (dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n}) \wedge (dx_3 \wedge dx_4) + \cdots \\ & {} + (dx_1 \wedge dx_2 + dx_3 \wedge dx_4 + \cdots + dx_{2n-1} \wedge dx_{2n}) \wedge (dx_{2n-1} \wedge dx_{2n}) \end{align} $$ but I'm not sure that's what I'm supposed to do...  Thanks.


Why am I getting shopping trolley notifications about local store savings?

I am getting "Shopping Trolley" notifications appearing regularly. The notification looks like this:   The notification is about "Store savings" at a local supermarket and that is it!   Is this notification from Google Maps or another application like Google Assistant? I'm struggling to find the specific setting to disable the notification.  I am also interested to know if this notification could in any way be targeted advertising generated by the store. My marketing preferences with the store are opt-out and this strikes me as very dumb advertising. Surely Google isn't doing this? Is there a means that a store can generate notifications like this? Could it be targeted if they have my email address?  These are pain and I want to understand why they are spamming me and disable them without disabling everything else.  I can see various options under Google Maps, settings, notifications. Which setting would apply? Could it be "New on maps, Get occasional updates about new features in your area"? I can't see what setting to suppress!  Thanks for all help.


Prove three eigenvectors from three distinct eigenvalues are linearly independent

Here is the formal statement:     Let $\lambda_1, \lambda_2, \lambda_3$ be distinct eigenvalues of $n\times n$ matrix $A$. Let $S=\{v_1, v_2, v_3\}$, where $Av_i = \lambda_i v_i$ for $1\leq i\leq 3$. Prove $S$ is linearly independent.    Many resources online state the general proof or the proof for two eigenvectors. What is the proof for specifically 3? I tried to derive the 3 eigenvector proof from the 2 eigenvector proofs, but failed.


What can I do when my answer is in my opinion unfairly deleted?

I refer to my answer . My answer got deleted with the comment that I don't meet the questioner's perspective and I was told my answer is anti-slavery rhetoric.  I don't agree with this because I gave a reference to a historical document of recent interest and gave a more or less reasonable distinction between slave and prisoner to make my point.  Did someone have a similar experience? I don't know how to deal with that. The user has all the privileges and single handedly decided to delete my answer without discussion, warning or prior notice. That is one of the really frustrating experiences on Stackexchange websites I have to say.


Can every complex number be expressed as a zero of a power series with rational coefficients?

It is well-known that not all complex numbers can be written as a zero to a polynomial with rational coefficients (the transcendental numbers). However, I am wondering if we "extend" polynomials to allow for infinitely many terms (i.e. the power series expansion of a holomorphic function) while still restricting the coefficients to be rational, if every complex number could then be expressed as the zero of such a function?   $\pi$, for instance, is transcendental, but it is a zero of the $\sin$ function, whose power series expansion centered at $z=0$ has only rational coefficients.


How to read a file using Scanner and keep track of how many times a given String is found within that file

This is my method, I need to continue to prompt the user until I get a valid file name. After that I need to ask for targetWord. I figured after I did this I could simply read the file w/ fileReader and just have one if statement to check if the word matches the targetWord and from there accumulate count by one. As of now it seems as if my file is not being read correctly, what am I doing wrong?   public static int keywordSearch(Scanner input) {     String fileName;     String targetWord;     String word;     int count = 0;      while(true) {         System.out.println("Please enter a valid file name.");         fileName = input.nextLine();         File aFile = new File(fileName);         if(aFile.exists()) {             break;         }else {             System.out.println("ERROR! Invalid file name, try again.");         }        }     System.out.println("Please enter the target word");     targetWord = input.next();      try {         Scanner fileReader = new Scanner(new File(fileName));         while(fileReader.hasNext()) {             word = fileReader.next();             if(word==targetWord) count+=1;         }         fileReader.close();     }catch(FileNotFoundException e) {      }     return count; }


Permutations when some objects are alike

I am trying to find the total number of signals that can be created from $3$ pink, $3$ white and $2$ black flags when arranged in a straight line. But, only $5$ flags are allowed in a signal.  I know how to find permutations in this situation when all are taken at a time i.e. a signal has $8$ flags, which would be $\frac{8!}{3! \cdot 3! \cdot 2!}$, but cannot see how to start solving a scenario where all are not taken at the same time.  Formula when all are taken at a time with some like objects  $$\frac{n!}{a! \cdot b! \cdot c! \cdot d!...}$$  Question  Is there a modified formula that will give permutations of $n$ objects taken $r$ at a time when some of these objects are alike and $r < n$?


At which point does SQL Server validate data for insertion

I have a query to insert data from one table into another. One of the source columns is larger than the destination table's, although the actual data selected in the query isn't. So e.g. the source table is varchar(25), the destination table is varchar(10), and the query selects records that do not exceed 10 characters for that specific column.  My initial query failed with a truncation error, but when I rewrote it selecting the same records but changing the where clause i.e. to use WHERE IN and filtering on a cte it ran successfully.  i.e instead of doing  select * from tbl where col1 = 1   I did:  with cte as (select 1) select * from tbl where col1 in (select 1 from cte)   I understand that this is a bug in SQL Server, still I am wondering at which point does SQL Server validate the data for insertion. At which point is the error thrown?


Selecting multiple edge loops in Blender 2.8

I used to be able to select and edge loop with AltRMB and then just continue with ShiftAltRMB. But this no longer works in Blender 2.80 and nightly builds of 2.79.  Is there another way to achieve the same?  UPDATE  It's not related to the nightly builds since I am also experiencing the same with the latest official release. Deleting Blender's user preferences doesn't change anything, nor does resetting the keymaps.  So it might be related to the Linux distro I am using (elementary OS), I'll have to look into that and follow up here as soon as I found something.  UPDATE 2  In the meantime, I switched back form elementary OS to Pop!_OS, which resolved the issue. It seems that somehow, elementary OS was blocking the ShiftAltRMB combination. The issue persisted with all versions of Blender, be it 2.79 official, 2.79 nightly or 2.80. Now, all is fine. Even 2.80 works as expected.  UPDATE 3  As of now, Blender 2.80 is using left-click by default for selecting. Selecting edge loops is done by double clicking, which is so much more convenient.


Shouldn't the Terms of Service use Stack Overflow, Inc.?

The  still uses the term Stack Exchange, Inc. However, I believe that the name is now Stack Overflow, Inc. , so I believe that should be changed to that. It is weird to have the wrong name in a legal document.   Yes, I actually read the Terms of Service. You should also do that.


I came across an intuitive statement on factor groups that I realized I did not know how to prove.   Let $G$ be a group, and let $H \unlhd G, K \unlhd G$ such that $H \cong K$. I want to show that $G/H \cong G/K$.   I'm not sure how exactly to construct such an isomorphism from an isomorphism $\varphi: H \to K$. Is that the correct approach? By extending such an isomorphism to an automorphism on $\varphi^{\uparrow}:G \to G$, then we could apply the First Isomorphism Theorem to the composition of the natural homomorphism $\mu: G \to G/K$ and that automorphism (for $\ker \mu\varphi^{\uparrow} = H$, if such a $\varphi^\uparrow$ exists).  Edit: Hamou points out this is false in the infinite case: can it still be salvaged in the finite case? Are there restrictions we can put on $G, H,$ and $K$ such that this is true?


I have a large Raster with High resolution DEM of a large area, and I need to split it into smaller squares of 500mx500m, so that I can run other raster functions on it.  Basically I'm looking for the GDAL version of what I had asked here:   How Do I Split a Raster into parts using GDAL?


given a finite group $G$, is it possible to determine the exact number of one-dimensional representations of $G$

Let's say $G$ has order $n$.  If this is all the information we have to go by, can we say conclusively what the number of one-dimensional representations of $GT$ is?  Or do we need more information?  Like the type of group?  In general, how would one go about finding this number?


Why doesn't anyone realize the honor guard at Commissioner Loeb's funeral procession is full of the Joker's men?

In the Dark Knight, Bruce Wayne tracks Melvin White  aggravated assault, moved to Arkham twice  to his apartment, which is overlooking Commissioner Loeb's funeral parade, where he finds a police honor guard unit tied to a post, blindfolded, mouths taped shut. When Bruce removes the tape from one of the men, Bruce asks:  What happened? They took our guns, our uniforms  From this we can assume that a substantial portion, if not the entire unit, is full of the Joker's men. Why doesn't anyone realize this? Surely there must be someone familiar with the individuals in the honor guard. Previous answers have stated that a corrupt police force allowed the Joker and his men to blend in, or that there were so many police in uniform that all looked the same, or that Gordon and his men were too busy scanning windows. Still, none of these explanations account for the fact that the honor guard was still a separate part of the procession and had a special role. There is next to no chance they could completely escape detection.


merge 3 NTFS partitions into 2 (Win XP) without reinstalling

I have a computer harddisc with 3 NTFS partitions:  C /dev/sda1/ D /dev/sda2/ extended /dev/sda5/ E /dev/sda3/    C and E are both 10 GB and D is 55 GB.  I want to merge C and E (or rather expand C to 20 GB).  (E comes from shrinking D using gPARTED...).  I have tried to change the size of C in gPARTED in serveral ways...  Please help me!


For example, in the mathematical notation of a quotient space given an equivalence relation \sim, the rendering of X/\sim is different from X/\!\!\sim. In the former, there is a gap between the slash and the \sim, whereas in the latter, there is no such gap. I couldn't find meaningful entries on Google.


Show alert for users with 0% (or low) acceptance rate

Is it possible to show alert (on top, like the alerts for new badges for example) for users with 0% accept rate when they log in, with text like "Please improve your accept rate" and link to page explaining how and why?  From what I see, the points are the economy of SO sites so people who ask, get answer, and don't accept (on regular basis) are like people buying something without paying - and they should somehow be notified this is the situation.


Could anybody give me some advice on which one should I use?  or   I will implement OSM on a web-app for taxi management. The requirements for the map part are:   Tracking of the drivers cars using a tablet through my web app. Conversion of a given address to lat-long. Showing a route between start and destination lat-long. Completely free of charge


Does new Star Wars continuity only affect post-Jedi EU?

I have read  a couple of times.     In order to give maximum creative freedom to the filmmakers and also preserve an element of surprise and discovery for the audience, Star Wars Episodes VII-IX will not tell the same story told in the post-Return of the Jedi Expanded Universe.   Does this describe material set after Jedi, or published after?  Is it also saying that only things published as "Legends" are now non-continuity?  I have read that it is only films + Clone Wars + Rebels that are now in the main continuity but can't see this sourced by Lucas Film Story Group. Does anyone have a reference for this?


Characters display wrong in JavaScript/PHP page

I'm having a problem with an SQL database in combination with JavaScript, and it's really awkward.  HTML on page "configuration.php"  <input id="action_description" type="text"/> <input id="send" type="button" onClick="addAction()"/>   JavaScript on script.js  function addAction(){       var action = document.getElementById('action_description').value;       if (action == ""){       window.alert("error");       }       else {       xmlhttp.open("GET","doConfig.php?action=2&param1="+action,false);       xmlhttp.send();      } }   I do actually the xmlhttp for Microsoft or other, but this is not of interest to the problem.  PHP on doConfig.php  include('db.php'); mysqli_set_charset($link,'utf8'); $action= $_GET['action']; switch ($action){      case '2':               $text = $_GET['param1'];               $sql = "INSERT into actions (text) VALUES ('$text')";               echo $sql;               mysqli_query($link,$sql);      break; }   Database  Database in XAMPP with phpMyAdmin. Charset UTF8_bin.  The column is named "text" and is format "text (255)".  Problem:  Now the problem is, when I use characters from my country (ä ü ö ), the database messes up those. For example the character Ä gets displayed as an A and a quarter symbol.   But, when I copy the echo $sql, for example "INSERT into actions (text) VALUES ('ähä?)" to my phpMyAdmin console into the SQL-Field, then it works perfectly, and the character gets displayed right.


Can you cast a racial spell if you do not have access to the spell slot required?

For example a Drow has the racial spell Darkness, spell level 2 (gained at player level 5). Can he cast the spell even if he is multiclassed (Eldritch Knight 3; Cleric 2) and only has spell slots up to level 1? The spell requires spell slot 2 and that the player be level 5 total, so if he wants to cast it does he have to wait until he has a 2nd level spell slot?


Could we send a man safely to the Moon in a rocket without knowledge of general relativity?

I'm wondering if it's possible to send a man to the Moon using equations consistent with Newtonian gravity and without the elaborate tools of Einstein gravity. Are the predictions made by Newtonian gravity sufficiently precise to plan a successful voyage? If not, where would the Newtonian equations fail and how does Einstein gravity correct for these deficits?


How to create a query to join multiple rows from a different table into single comma delimated column in SQL Server

I am using SQL Server 2014, and I have two tables:  number        id ------------------ 36-23         1 36-23         2  id         value ------------------ 1          asia    2          europe            The number column is of type varchar. I want to write a query to return the following results:  number       Name    --------------------------- 36-23        asia,europe   I am wondering how can I do this with the help of query or functions in SQL Server.


Sanity check here...   Shouldn't these two linq queries return the same results?   Query #1:  int stateId = 2;  var streets = from s in ctx.tblStreet               where s.State_Id == stateId               && s.ParentStreet_Id == (int?)null               select s;   Query #2:  int stateId = 2; int? parentStreetId = (int?)null;  var streets = from s in ctx.tblStreet               where s.State_Id == stateId               && s.ParentStreet_Id == parentStreetId               select s;   ====== EDIT ==========  The first linq query yields the records that I expect it to, while the second linq query does not. I would expect both of them to yield the same results, but they don't.  ====== EDIT #2 ==========  tblStreet definition...  int State_Id not null  int ParentStreet_id null  ====== EDIT #3 ==========  The generated sql is different for the two queries, but I would expect it to not matter in this case, because @p1 (parentStreetId) equals (int?)null. Please note that in the queries below I removed all of the select fields and replaced them with an asterisk in order to shorten up the select and just show the where clause.  Query #1:  SELECT * WHERE ([t0].[State_Id] = @p0) AND ([t0].[ParentStreet_Id] IS NULL)  Query #2:  SELECT * WHERE ([t0].[State_Id] = @p0) AND ([t0].[ParentStreet_Id] = @p1)


How do I patch/workaround SSLv3 POODLE vulnerability (CVE-2014-3566)?

After the  and , now I've heard about a new vulnerability in SSL/TLS called . How do I protect myself against being exploited?   Are only servers or also clients affected? Is this OpenSSL/GnuTLS specific? What kind of services are affected? Only HTTPS or also IMAPS, SMTPS, OpenVPN, etc.?   Please show me examples on how to avoid this vulnerability.


Passing table from model to script in same model

In my case, i have a model, that produce 2 Tables (zonal statistis). I have a script that should work with that tables. How do I pass these tables to a Script? my script takes certain fields in these 2 tables and store them in new table (+ some operations). Model looks like this:  And the script looks like this:  import arcpy  result=arcpy.GetParameterAsText(0)  enviro=r"D:\Skola\Kart+geoinfo\Diplomka\Diplomka.gdb" arcpy.env.workspace=enviro new_T=arcpy.CreateTable_management(enviro,result) arcpy.AddField_management(new_T,"ID","SHORT") arcpy.AddField_management(new_T,"U_Vetrolamu","DOUBLE") arcpy.AddField_management(new_T,"Od_Vetrolamu","DOUBLE") arcpy.AddField_management(new_T,"rozdil","DOUBLE") arcpy.AddField_management(new_T,"rozdil_procenta","DOUBLE")  with arcpy.da.SearchCursor(table,["MEAN","OBJECTID"]) as sCur:  with arcpy.da.InsertCursor(new_T,["U_Vetrolamu","ID"]) as iCur:       for row in sCur:          iCur.insertRow(row)  data = {} with arcpy.da.SearchCursor(table1, ["OBJECTID", "MEAN"]) as sc: for row in sc:     try:      data[row[0]] = data[row[0]] + row[1]     except KeyError:         data[row[0]] = row[1]  with arcpy.da.UpdateCursor(result, ["ID", "Od_Vetrolamu"]) as uc:      for row in uc:         row[1] = data[row[0]]         uc.updateRow(row) arcpy.CalculateField_management(result, "rozdil", "[U_Vetrolamu] - [Od_Vetrolamu]", "VB", "") arcpy.CalculateField_management(result, "rozdil", "([U_Vetrolamu] - [Od_Vetrolamu]/[U_Vetrolamu] - [Od_Vetrolamu])*100", "VB", "")   I need to use table and table1 from model in script...


Seeking to pursue research project independently (outside of academia)

Hello Academia Community,  I hold a PhD and would like to pursue a research project independent of an university (outside of academia on my own or in collaboration with other researchers). First of all, is that even possible? Second, what governing body do I submit my proposal to for review? Third, could you please outline the process?....I wonder whether if it is as simple as  conducting the research and submitting to a journal?  I appreciate your reply,  M


Is there a function to crop sf map object, similar to maptools::pruneMap(lines, xlim= c(4, 10), ylim= c(10, 15)) used for SpatialPolygon or SpatialLine?   I am considering st_intersection() but there can be proper way.


I have totally reviewed 716 suggested edits, but it shows I've approved 486 suggestions and rejected 228.     I searched about it on meta. But, can't get solution. I thought that some of my reviewed posts might get deleted. So, I went to the review history and found      .   It should be a bug.


Let $f: R → R $ be a function such that $f'(x)$ is continuous and $|f'(x)| ≤ |f(x)|$ for all $x ∈ R$ , if $f(0)=0$ the maximum value of $f(5)$ is   My Attempt: I proved that $f'(x)=0$ for $x ∈ [0,1]$ through LMVT but i am not able to prove anything further  I also thought of a real life analogy of this that if magnitude of acceleration is always less than magnitude of velocity and initially the particle was at rest then it won't move for every $t>0$ and hence concluding $f(x)=0$ for every $x ∈ R$  Help Please.


Are child processes created with fork() automatically killed when the parent is killed?

I'm creating child processes with fork() in C/C++. When the parent process ends (or is killed for some reason) I want all child processes to be killed as well. Is that done automatically by the system? Or I have to do it myself?  Thanks.    Pre-existing similar questions:


Where's the mistake in this calculation?

Obviously something is wrong with this, but where is the error and why is it one?  $$ \begin{align} \sqrt{-1} &= (-1)^{1/2} \\ &= (-1)^{2/4} \\ &= \sqrt[4]{(-1)^2} \\ &= \sqrt[4]{1} \\ &= 1. \end{align} $$


Compute curvature tensor from constant sectional curvature

Given sectional curvature as a constant, i.e. $\dfrac{R_m(X,Y,Y,X)}{|X|^2|Y|^2-<X,Y>^2} = C$, I want to compute the curvature tensors $R(X,Y)Z$ and $R_m(X,Y,Z,W)$.  I believe I need to use the identity $$-6R_m(X,Y,Z,W) = \partial_t\partial_s\{R_m(X+sZ, Y+tW, Y+tW, X+sZ) - R_m(X+sW, Y+tZ, Y+tZ, X+sW)\}$$  I can almost see what to do for $R_m(X,Y,Z,W)$ and how this identity and the defintion of sectional curvature are related but can't really see how to finish it off. I don't really even know where to begin with $R(X,Y)Z$.


How to turn Integer to enumeration value

Lets say I have an enum like this...  internal enum SomeType {     Type1 = 0,      Type2 = 1,      Type3 = 2 }   and I had an int like this...  int i = 1; // would return Type2...   How do I convert that int to the enum value?


I have zero knowledge about any coding language. But I have to learn an automation tool, preferably selenium. How should I begin? What language should I learn? In short, how to begin??


"If $1/a + 1/b = 1 /c$ where $a, b, c$ are positive integers with no common factor, $(a + b)$ is the square of an integer"

If $1/a  +  1/b  =  1 /c$   where $a, b, c$ are positive integers with no common factor, $(a + b)$ is the square of an integer.  I found this question in RMO 1992 paper !  Can anyone help me to prove this ?  May be it's too easy and simple . But , I'm just novice in number theory !


What code is getting retrieved from scorecardresearch.com and why? What data is collected?

When loading SE sites in the browser is slow, I see scorecardresearch.com flashing by in the browser status bar.  The page source shows that scorecardresearch.com/beacon.js is retrieved.  What data is collected and why (specifically related to SE sites)?  Their website does not say much:     ... a leading global market research effort that studies and reports on Internet trends and behavior. ScorecardResearch conducts research by collecting Internet web browsing data and then uses that data to help show how people use the Internet, what they like about it, and what they don’t.   and     For web tagging, participating websites agree to deploy a special code throughout their sites


How do I get rid of this wireframe on my object?

My low poly log cabin has a strange wireframe showing through the solid view making it difficult to select certain faces without selecting ones behind it.


So I've just started using Blender (2.74) and wanted to use a reference image.  So I made a reference image in Adobe Illustrator and saved it as JPG, then dragged into blender. It's not visible, even though I am in Orthographic Mode (Yes, I've tried googling it)  I have also gone to "properties" and enabled background image, and I have tried changing the axis of the image and then changed the camera to the axis. I could of course make a plane and place the image there, but it would be anoying every time I go into wireframe mode.  It's extremely frustrating! Can anyone help me out? Thanks for reading.  Screenshot:


How can i build and return a String that contains the elements in an array?

i need an overloaded method that uses enhanced for loops to build and return a String that contains the elements in an array. This is my work:   public static String arrayToString(double[] dblArray) {     String str = "";     for (double i : dblArray) {         System.out.println(dblArray.toString());     }     return str;   }   And i got output something like this:   [D@232204a1  [D@232204a1  [D@232204a1  [D@232204a1   I think this is adress of array's elements.


Making chi-square distribution out of unknown CDF

Suppose that the random variables X1,..., Xn are independent, and each random variable Xi has a continuous c.d.f. Fi. Also, let the random variable Y be deﬁned by the relation   Y = −2∑(i=1~n) log Fi(Xi). Show that Y has the χ2 distribution with 2n degrees of freedom.  I don't see where this is heading. Is it possible to derive the χ2 distribution out of absolutely unknown CDFs?


Do neutrinos get their mass via interacting with the Higgs Boson?

Do neutrinos follow the Standard Model and get their mass via the Higgs Mechanism or we still don't know about the origin of their mass as neutrinos with mass are beyond the Standard Model?


There is a huge debate on the internet on the value of $48\div2(9+3)$. I believe the answer $2$ as I believe it is part of the bracket operation in BEDMAS.  yields the same answer. I also believe that if $48\div2\times(9+3)$ was asked it would be $288$ which Mathway agrees with as well. However,  says it is $288$ either way. A friend of mine (who is better at math) told me that there is no such thing as 'implicit multiplication', only shorthand so that is in fact done after the division (going left to right, not necessarily because division occurs before multiplication. But he didn't explicitly give a reason) What is the answer and why?


In one of my questions:    One of the answers mentioned "concordance probability" or c-index. Unfortunately I'm not familiar with the term and there seems to be no Wikipedia page and Google turns up nothing. It's my understanding that it relates to classification.


Regex too complicated when splitting a string

I am trying to get the Standard Report As a csv file and try to split the file and need to do some conditions.  But for the large amount of records am getting error as:     Regex too complicated   Please help me out  Apex:  public List<String> convertToExcel(Id LiseReportId) {      //LiseReportId is the standard report ID             ApexPages.PageReference report = new ApexPages.PageReference('/' + LiseReportId + '?csv=1');         blobcontent = Test.isRunningTest() ? Blob.valueOf('UNIT.TEST') : report.getContent();          System.debug('blobcontent &&report: ' + report+':::'+blobcontent);         String strfile =blobToString(blobcontent ,'ISO-8859-1');         String[] strlineByCsvBody = new String[]{};         strlineByCsvBody = strfile .split('\n');          return strlineByCsvBody;      }        public String blobToString(Blob input, String inCharset){             String strhex = EncodingUtil.convertToHex(input);             System.assertEquals(0, strhex.length() & 1);             final Integer bytesCount = strhex.length() >> 1;             String[] bytes = new String[bytesCount];             for(Integer i = 0; i < bytesCount; ++i)                 bytes[i] =  strhex.mid(i << 1, 2);             return EncodingUtil.urlDecode('%' + String.join(bytes, '%'), inCharset);         }   Getting error at below line:     strlineByCsvBody = strfile .split('\n')


Field status need to select dynamically from child to parent

My scenarios is that Opportunity and section are in master detail relationship.  Section status is a picklist field on section object with the following values   1-won 2-In-market 3-Won/Mandated 4-Issued Commitments 5-Pipeline 6-Proposal Pending Risk Appr 7-Proposal Early Stage   Requirement scenarios   Opty got too many sections need to show in opty record with section status picklist value(i.e, based on priority) eg: from  section records descending order value need to pick from section status and update in opty. suppose that record gets deleted then next descending order value need to be update in opty.  For this I created a statusupdate custom field in OPty.     I am hoping to get help with coding logic for querying and update functionality.


Is there a way to subtract certain employers from the job listings? There are some positions there by companies that keep getting reposted, and I'm not interested in seeing them repeat themselves.


How many files can a windows folder contain?  This question is asked  but then the question text pollutes the question with issues of "rules of thumb"  So to be clear, this question is: How many files can a windows folder contain?


If a creature's size suddenly increases while it is inside a very small Sphere of Force (from Wall of Force) what happens?

Let's be very specific. Assume you have two casters. The first one casts polymorph on, lets say, a Kraken, and uses portent to assure a failed save.  He turns the Kraken it into a regular 1/2 inch diameter spider. The second caster casts wall of force and creates a no save 1/2 inch diameter sphere of force around the spider-kraken. The first caster immediately stops concentrating.  What happens?  For reference, the average 5e Kraken is about 100 feet in length and weighs about 4,000 pounds.  What happens if you very soon afterwards stop concentrating on the wall of force as well?    This is not the same as "running out of wildshape" because wildshape has very different language, and is generally not dismissable by an enemy (it doesnt go away as a result of anything other than damage).  It would be completely within the boundaries of the game for the DM to say to a druid, "no you cannot choose to end your cat wildshape while you are still within the iron pipe."    And, unlike wildshape, which takes a full action to drop (thus likely occurs slowly), the physics answer would be very different (sudden burst of pressure as opposed to slowly building pressure).    Forcecage is also not applicable as a point of comparison as it has specific language regarding not being able to fit.     Also, for the record, this comes up all time because we have a caster with a Ring of Spell Storing, polymorph and wall of force.


Get file modification time in a specific format (yyyymmddhh24miss)

I want to get the modification time of a file in a specific format. How can I do that ? I know about  stat -c %x find.txt   but I need this format:  yyyymmddhh24miss   I'm using ksh on Linux 2.6.18-406.el5 x86_64 if it matters.


How to prove $ a + b \sqrt[3]{2} + c\sqrt[3]{4} =0$ iff $a=b=c=0 $

From the extension of my previous   For $a,b,c\in \mathbb{Q}$  \begin{align}  a + b \sqrt[3]{2}  + c\sqrt[3]{4} =0 \quad \Leftrightarrow \quad a=b=c=0  \end{align} again also one direction is easy, but how about other direction?


How to find the general term of this recursive sequence?

$$ (a_n)_{a \ge 1}, a_{n+1} = (n+1)a_n + 1, a_1 = 1  $$  I found the first 5 terms and I got 1, 3, 10, 41, 206, but I don't know what to do next? I tries OEIS but it just shows me the recursive formula again. I know that the answer is $ a_n = n!(1 + 1/2! + ... + 1/n!) $ but how do I get to that?


Select vertices by their indices (by vertex id)

I want to select vertices by their indices (by vertex id) Like a python script,so that i can write the vertex id into it, and run the script,and it would automatically select those vertices   there is already an answer (python script) ,but it only works with one vertex when i tried with more than 2 vertices,it does not work :


How can I find out if the current user is in a specific group?

If I type groups I get a list a back, $> groups ecarroll cdrom floppy audio dip video plugdev netdev bluetooth docker  How can I find out if the logged in user is in a specific group?


Is there a word (or phrase) that describe a series of mishaps/misfortunes in one's life?

I don't mean something like 'many hardships' or 'several tragedies'. I'm looking for a word or short phrase that would describe just a really rough spot or time frame in someone's life. For instance, [s]he was fired, lost a loved one and/or a friend, a pet died, [s]he wasn't getting much support from those around him/her. How can I describe such a cluster of emotional events in a simple way?


Remove all non-existent repositories in Ubuntu

How do I remove all repositories which don’t exist for one reason or another? I am wondering if there is a command to do this, so that I can remove all such repositories at once. I am running Ubuntu 14.04.


Integration Services License requirements

Not sure this is something which people will know on here are not.    We currently have a BI setup where we have Integration services on one SQL instance and the data warehouse database on a separate SQL Instance.    My question is, as no users physically connect to the Integration services SQL instance and it is purely used to execute package from the integrations service catalog via SQL agent, do we need to License every user i.e. Cal's for that SQL instance.  Basically i'm wanting to know if I could utilize SQL 2016 for an integration services instance and use features like Json manipulation etc and then load this data into the 2014 version instance...but what level of licensing will I need?


algebraic demonstration $\arg(𝑧𝑤)=\arg(𝑧)+\arg(𝑤)$  Proving algebraic demonstration $\arg(𝑧𝑤)=\arg(𝑧)+\arg(𝑤)$


Is it possible to split string variable using byte size

We have blob variable which have random strings, size of the blob file is 4MB It's a variable and we want to split/chunk it to 400KB Is it possible to split the variable directly instead of saving to file and then chunk it  Thanks, Srini.


Colour and texture not working on blender 2.91.2

When I give a model texture or colour, it stays grey. It also has a weird shade inside that goes smaller when I zoom in. I tried to make the world colour white but it stays grey and whenever I change the colour to texture, nothing happens to it even on the material preview or render preview. This image here is what it looks like. There's only an orange outline and 2 smaller shades inside the white cube. There's a grey cube inside and a darker shape inside of it if you look carefully. I even tried giving it a colour, light blue as you see on the bottom right and it's still white. I need to make these thumbnails for a project and I need it like urgently! Also the same thing wrong here too. It's another version. Idk if it's 2.79 or 2.9 something


Adding additional geometry column in PostGIS?

I'm importing many sets of geodata into PostGIS, and they have different SRID's. (Some have EPSG:3857, some EPSG:4326, some something else).   I'd like to create an additional geometry column, eg. the_geom_mercator with SRID EPSG:3857, and also keep the original geom column in whatever SRID it came in.  How can I do this with a PostGIS function?


Mathematical expression to form a vector from diagonal elements

I would like to know is there any way to express mathematically (using matrices multiplication, addition, etc.) a vector which is formed from the diagonal elements of a matrix. For example, I have a matrix called $\mathbf{M}$ and I want to create a vector  $\mathbf{v}$ such that $\mathbf{v}= \text{diagonal elements of } \mathbf{M} $  Any matrix algebra or operation do that ? Thank you.


I want to ask, what is the meaning of this symbol in red circle?


What's the point of commission free ETFs for the brokers?

Fidelity, Ameritrade, Vanguard and now Schwab offer no transaction fees ETFs.   how do they make money by selling these ETFs ?  what's the catch ?


Can I rent a car and drive it one way from Seatle, WA to Anchorage, AK?

We would like to pick up a rental car at the Seatle, WA airport and two weeks later return it to the airport in Anchorage, AK. Don't understand why we can't find any agencies that will do this. Does anyone have any ideas? We have put off this trip for years because we can't seem to work it out.


Mobile phones and mobile internet in Italy

Buongiorno! Suppose I step down from the plain in Fiumicino. What is the fastest way to get hold of Italian SIM-card with some talking minutes and some Internet? The latter is more important than the former.  So, my requirements:   Good coverage in main cities (Rome, Venice, Milan, Florence) Good for 2 weeks (after that I'm going to leave the country, the SIM is going to lose its value anyway) Good for massive internet usage is in store for maps, orientation, etc. Cheap. :)   Now, I know that there are 3 main communication providers in Italy: Vodafone, Wind and the third one. :) Which one? Which one won't leave me destitute and won't sue me over the border months after for some unknown reasons? What I have to look for?


Why are more American movies are coming out in foreign countries first?

While chatting about the movie Jupiter Ascending in the chat room, I learned that the movie is , whereas the movie comes out today, 6 February 2015, in the United States. Over the last several years I've noticed that this trend seems to be increasing:    had its premiere in Tokyo, Japan on 30 June 2012, where as the American release wasn't until 3 July 2012.  hit UK theaters nearly an entire month before it hit US theaters. While  had a premiere at Sundance, it went wide in the UK on 26 March 2010, and didn't go wide in the US until 16 April.  had a much smaller window for releasing early in the UK before the US, but still, it hit the UK before it hit the US.  hit Asian markets about 2 to 3 days before it premiered in the US.  hit the UK a couple weeks before it hit the US. , a sequel, came out in Europe before the US, as did the . , a movie based on a Tom Clancy character (and a very American franchise to begin with) came out in Europe and some Asian/Pacific regions before the US.   My question is: Why does it seem like more and more movies produced in the US hit foreign markets before they hit the US market? I'm not asking out of some misplaced sense of patriotism or American zealotry, but movies produced by US studios used to take quite a bit longer to hit foreign theaters after making it to US theaters. Are distribution methods simply faster? Is there a marketing reason? What's the deal?


Can I go directly to my main destination without going to member state of first entry in Schengen area? What can I do if visa is issued after the intended date of travel? How can I change my first entry to my main destination?  From comments...   I didn't received my visa from France (Main Destination) yet, in application I have filled spain as my first entry. If my visa is issued from france then is it possible to travel directly to france without going to spain?


Construct a sequence of functions on [0,1] each of which is discontinuous at every point on [0,1] and which converges uniformly to a function that is continuous at every point?


Select a list that contains all elements from another list

Ok, so I have two elements:  class Full {     public string FullId {get; set;}     public List<string> Tapes {get; set;} }   and   class OptSet {     public string SetId {get; set;}     public list<string> Tapes2 {get; set;} }   I need to select a Full which list of Tapes contains all elements from OptSet list of Tapes2.  I need to do it in Linq. I've tried  Full currFull = inputFull.Where(f =>      f.Tapes.Contains(OptSet.Tapes2.ToString())).FirstOrDefault();   but this results in null.


The product of a normal and Rademacher variables, independent from each other

Let $X\sim N(0,1)$ and let $Z$ be a random variable independent of $X$ such that:  \begin{equation} \Pr(Z=z) = \begin{cases} \frac{1}{2} & \mbox{if $z = -1$ or $z=1$}, \\ \\ 0 & \mbox{otherwise}. \end{cases} \end{equation}   Define $Y = ZX$. Show that $Y \sim N(0,1)$. Determine $\operatorname{Cor}(X,Y)$. Are $X$ and $Y$ independent?   Progress:  I'm basically stuck at the beginning. I got as far as $P(ZX < y) = P(Z < y/X)$, which I'm not even sure is correct. I'm also not clear on what it means by defining $Y = ZX$ - does it mean I need to state the probability density function or something? And how do I show that $Y \sim N(0,1)$?


What should I pay attention to when choosing a tripod?

I am a novice in photography and my current camera (Sony alpha 230 kit) which I recently have bought is the first DSLR of mine. Soon I'd like to buy a tripod for it.  Please advise me what should I take into consideration when choosing a tripod? At present all the tripods seem similar to me and I feel that I need some help in choosing the right one.  From what I tend to shoot now, I think that the primary usage of the tripod will be landscape and portrait (outdoor) photography.


Trying to draw a 1D plot, some dots over one X axis. Currently, I have:  \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=22, axis x line=bottom,% only show the bottom x axis hide y axis,     scatter/classes={%     a={mark=o,draw=black}} ]  \addplot[scatter,only marks,     mark size = 3pt,     fill = red,     scatter src=explicit symbolic] table { 3 0  6 0  9 0  12 0  15 0  18 0      }; \end{axis}  \end{tikzpicture}   unfortunately, the circles doesn't appears over (superposed) the x-axis. This is what I see:   Any hint or some solution more simple?


C++: including header file results in "symbol(s) not found for architecture", while including .cpp file works

I'm compiling a project that has several header files, one of them is a general "utils" file with general-purpose functions.   When I include the header file for this utils file, compilation fails (see error below), but when I include the actual .cpp file, it works.   I am using a CMakeLists.txt file with CLion, on MacOS High Sierra.   A minimal equivalent project that fails in the same way:  main.cpp:  #include "util.h"  int main() {     print("Hello");     return 0; }   util.h:  #pragma once  #include <string> #include <iostream> #include <sstream>   template<typename T> void print(T thing_to_print);   util.cpp:  #include "util.h"  template <typename T> void print(T thing_to_print){     std::cout << thing_to_print << std::endl; }   CMakeLists.txt:  cmake_minimum_required(VERSION 3.7) project(example) set(CMAKE_CXX_STANDARD 11) set(CMAKE_VERBOSE_MAKEFILE ON)  SET(UTILS_MINIMAL_LIB_FILES util.h util.cpp) add_library(utils_lib_minimal ${UTILS_MINIMAL_LIB_FILES})  add_executable(main_test main.cpp) target_link_libraries(main_test utils_lib_minimal)   Build fails:  Undefined symbols for architecture x86_64:   "void print<char const*>(char const*)", referenced from:       _main in main.cpp.o ld:  symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   However, when I change the include statement to :  #include "util.cpp"   The compilation completes successfully.  Any ideas?  Thanks in advance.


What happened to the percent of accepted answers?

I'm sure this is a dup, but what happened to this feature?  Not too long ago, people's name had the percent of questions on which they accepted an answer. I don't remember reading that it changed in the blog or elsewhere, yet suddenly this is gone.


I'd like to find some thoughts and opinions related to this question. First of all, I noticed that there are two forms used in Web browsers' menus: MS Internet Explorer uses "Find on page" meanwhile Chrome uses "Find in page".  What is the difference between these forms and why can they both be used?  Normally, I'd say "find in the page" meaning "find in this text".


Badges loading broken in election statistics

We have an  and I noticed the badges are not loading in the election statistics like they should be. It just hangs forever loading badge information:    Unfortunately I blew off reporting this for a couple days figuring it would resolve itself, but it doesn't seem to be a temporary problem.


How to change/disable SSH message on connect?

I have a Linux server with SSH service on it. If I performing a TCP connection to it (e.g. telnet %ip% %port%), it sends me a version line, like SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3. It is not a banner! (Banner sent after successful authentication). So, my question: it is possible to disable this message or change it? Without recompiling from source code...


I have an algorithm description that takes up an entire image. However, when compiling my latex document, the algorithm and subsequent images following it are pushed to the end of the document. I don't mind the size of the algorithm, but I would like to put in the page immediately preceding the page having the description or after. Any suggestions? I have tried [!h] as suggested in some other related post. But it does not help.


I've been wondering why none of the revisions to the HTML specification have ever made textarea able to be self-closing.  have answered why it is a separate tag from input, and it makes sense to me that they'd want to preserve it as a separate tag for compatibility, but why wouldn't they make <textarea /> just as valid as <textarea></textarea> since this wouldn't break anything as far as I can tell.


Does Newton's Third Law apply to gravity?

Newton's third law states that whenever a force acts on you, you act on it with the same force, just with an opposite direction(except it's stated a little fancier). Now if an apple is falling through the air, it is falling because the gravity is pulling it downwards, what exactly is the reaction that the apple applies to the gravity?  (or even more broad examples like satellites that constantly get pulled downwards by gravity but never land due to centripetal force)


Which site would be appropriate to get input on law-related software ideas?

I have a problem that I really want to solve which concerns almost every society -  preventing wrongful convictions. Since I'm a developer, I want to see if there's anything I can develop that might help mitigate this problem.    Would I post this question in a software-related Stack Exchange site or law-related Stack Exhange site, and which one?


Why on earth are o-scopes earth referenced?

Thinking about it: You would never find a "Grounded" multimeter as robust and useful if a path to ground through the multimeter were introduced, modifying the circuit's behaviour and possibly damaging the multimeter with currents.  Why are so many oscilloscopes earth referenced? Upon reading some educational material, a majority of the "common mistakes made by students" are placing the grounding clip incorrectly and causing poor results - when the o-scope is just being used as a fancy voltmeter!  I've heard of a Tek scope having an isolation transformer within.. however ignoring that, and taking in to account that newer DSOs may have plastic cases (isolated from you most importantly I would assume) could I just remove the earthing pin, and install a 1:1 AC transformer inbetween the o-scope and outlet and be on my merry way probing various hot/neutral/earthed sources with no worries about a path to ground any longer through it?


We agree with positive statements using so-too:       I have a red car.   (Sara) So does Sara   But with the negative statements we use neither-either:     I don't have a brother.   (Jhon) Neither does Jhon   So I can say that the most important thing before giving your agreement is to know whether the sentence is positive or negative and then to agree as I did in the examples above. But these sentences let me think many times:       I have nothing to do.   (I) so do I         or   Neither do I     So the question is: Should I consider the last sentence positive or negative? Look at this sentence too:     The boy is impolite (It means that the boy is not polite)   (girl) so is the girl   or   Neither is the girl     I mean if there's a prefix (which changes the word to the opposite), then the sentence will be negative in meaning so either or neither is used?


How can I know the number of bad sectors on my hard drive?

I know how to to check / repair my hard drive but I don't know a way how to see the number of bad sectors on my hard drive.  P.S. It looks like my hard drive will die soon :-(


My question isn't how they receive the energy to jump, but why.  When someone views an element's emission spectrum, we see a line spectrum which proves that they don't exist outside of their orbitals (else we would see a continuous spectrum).  Electrons can be released in the form of beta decay, thus proving that they are capable of traveling outside of orbitals contrary to the statement my teacher said that they stay within orbitals. Then, to add to the confusion, the older model of rings floating around a nucleus has, from what I can tell, been outdated, which would support this model. My teacher's explanation was that the electrons made a quantum jump of some kind. How do electrons move between orbitals or do we know how they jump, excluding the reason that energy causes them to jump, and why are positrons formed sometimes instead of electrons in Beta decay?  When I'm asking "how do electrons jump" I would like to know how an electron can jump between each orbital such as how it moves and how it knows where to jump since it appears to be a jump where the electron doesn't slow into a orbital position. Specifically how they jump what is this Atomic electron transition, I understand that they jump and that they do this through absorbing and releasing energy but what is this Atomic electron transition other than what is already on the wikipedia article .


All beta sites (e.g. ) are appearing with 0 Q/D and 0 avid users.  is unaffected.  In the Q&A spirit, my question is: Who borked the stats?


My Folders Become Hidden System Files And Access Denied?

I have an external hard disk , just connected to another system and when i connected to my own computer one of my folders which contain photos become hidden system files AND all folders in it rename to same name !?!? and my access is denied ( Screenshot )    I tried to change ownership but i can't  Any solution !?


Are we inside the event horizon of a gigantic black hole?

Is it possible that the Milky Way and the local cluster or maybe the entire visible universe is inside the event horizon of a truly gigantic black hole that is so far away that we haven't noticed it or its effects?


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


Sql Server Return bool if item is available in table

i have a table named tblStockManagement in my database. i have two columns named Client_ID and FoldingID.   i want to insert values to the columns, but first check the value if it is already exist in table or not. because then i will update the quantity of item instead of making new row in table.   i have method in my mind that select all data by given foldingID and Client_ID and see if dataset has 0 rows then data is not present already in table. but suggest me any easiest and reliable way to check that..


Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be defined by setting $f(x)=1/q$ if $x=p/q$, where $p$ and $q$ are positive integers with no common factor, and $f(x)=0$ otherwise. Show that $f$ is integrable over $[0,1]$.   I'm using the Darboux definition of integration, so I want to prove that for any $\epsilon>0$ there exists a partition $P$ of $[0,1]$ such that $U(f,P)-L(f,P)<\epsilon$. Equivalently, there exists a partition $P$ of $[0,1]$ such that $$\sum_Rv(R)(M_R(f)-m_R(f)) < \epsilon$$ where $M_R(f)$ is the supremum of $f$ inside interval $R$, $m_R(f)$ is the infimum of $f$ inside interval $R$, and $R$ ranges over all intervals in the partition.  So I tried taking $P=[0,\dfrac1n,\dfrac2n,\ldots,1]$. The sum in question becomes $$\dfrac1n\sum_{i=0}^{n-1}(M_{[\frac{i}{n},\frac{i+1}{n}]}(f)-m_{[\frac{i}{n},\frac{i+1}{n}]}(f))$$  I know that $m_{[\frac{i}{n},\frac{i+1}{n}]}(f)=0$, because in the interval $[\dfrac{i}{n},\dfrac{i+1}{n}]$ there is an irrational number, so the sum reduces to $$\dfrac1n\sum_{i=0}^{n-1}M_{[\frac{i}{n},\frac{i+1}{n}]}(f)$$  I don't really know anything about the fraction with lowest denominator inside $[\dfrac{i}{n},\dfrac{i+1}{n}]$. How can I prove that this sum goes to $0$ as $n\rightarrow\infty$?


My AddJoin operation is failing:  arcpy.CopyRows_management(lup_file,out_dir+'lup') try:     # Perform copy rows on merged csv file     print 'start'     aa = arcpy.Raster(SEIMF)     arcpy.AddJoin_management(aa, "VALUE", out_dir+'lup', "VALUE", "KEEP_ALL")     print 'end'     #arcpy.AddJoin_management(gis_dir+SIF, "VALUE", out_dir+'lup', "VALUE", "KEEP_ALL") except:     print arcpy.GetMessages()   error messages:     Executing: AddJoin C:\Users\Documents\Projects\AB\Inputs\gis\sif VALUE C:\Users\Documents\Projects\AB\Outputs\C\output\lup VALUE KEEP_ALL   Start Time: Sat Feb 22 02:27:50 2014   Failed to execute. Parameters are not valid.   ERROR 000840: The value is not a Table View.   ERROR 000825: The value is not a layer or table view   ERROR 000840: The value is not a Raster Catalog Layer.   ERROR 000840: The value is not a Mosaic Layer.   WARNING 000970: The join field VALUE in the join table sif is not indexed. To improve performance, we recommend that an index be created for the join field in the join table.   Failed to execute (AddJoin).     Does anyone know what is happening? I get this error only in the python code and can execute AddJoin just fine if I use the ArcGIS manually.


I'm confused. Running Fedora Linux, lscpu yields:  Architecture:            i686 CPU op-mode(s):          32-bit, 64-bit ...   But when I try to install a 64-bit program (Chrome) I get error like:     Package /....x86_64.rpm has incompatible architecture x86_64. Valid architectures are ['i686', 'i586', 'i486', i386']   I'm less interested in being able to install Chrome and more interested in why lscpu says that my CPU can run in 64-bit mode; clearly this can't mean I can run 64-bit programs. Can anyone clarify?