I am trying to create a basic banking system to practice using classes, after creating the parent class "Account", I tried to create a "savings" class which will be the child class and inherit the attributes and methods, however, no matter what I look up nothing will tell me how to do this. I get errors such as "must declare a body because it is not marked abstract, extern or partial", and so on. I really don't know what to do to get it working, so I'm hoping someone here can help, here's my code:  public class Account {     protected string name;     protected string birthdate;     protected string address;     protected double balance;     protected string status;     protected string type;      public Account(string customerName, string customerBirthdate, string customerAddress, int customerBalance)     {         name = customerName;         birthdate = customerBirthdate;         address = customerAddress;         balance = customerBalance;         status = "Ok";         type = "Basic";              }      public void customerDetails()     {         Console.WriteLine("Name: {0}, Birthdate: {1}, Address: {2}", name, birthdate, address);     }      public void accountDetails()     {         Console.WriteLine("Balance: £{0}, Account Status: {1}, Account Type: {2}", Math.Round(balance, 2), status, type);     }      private void updateStatus()     {         if (balance < 0)         {             status = "Overdrawn";         }         else if (balance > 0 )         {             status = "Ok";         }     }      public void deposit(int amount)     {         balance += amount;         updateStatus();     }      public void withdraw(int amount)     {         balance -= amount;         updateStatus();     } }  public class Savings : Account {     public Savings(string customerName, string customerBirthdate, string customerAddress, int customerBalance) : Account(customerName, customerBirthdate, customerAddress, customerBalance)     {         name = customerName;         birthdate = customerBirthdate;         address = customerAddress;         balance = customerBalance;         status = "Ok";         type = "Basic";     } }   Thanks in advance if anyone can help me out!

If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that?  For example, if I inherit from the Exception class I want to do something like this:  class MyExceptionClass : Exception {      public MyExceptionClass(string message, string extraInfo)      {          //This is where it's all falling apart          base(message);      } }   Basically what I want is to be able to pass the string message to the base Exception class.


Is there any configuration of black holes that surround a central black hole that could lift it out of the singularity due to net effects on space-time? Perhaps a sphere of black holes of equal mass placed at equidistant points around it could smooth out the enclosed space-time?

Imagine a sphere of black holes surrounding a piece of space. Will this piece be separated from the rest of normal spacetime (at least for some time, till these black holes finally attracted themselves).  So, seen from the outside, we have a black hole, but with a non-singular interior.  Is this possible?


I'm very tired of Nvidia drivers conflicting with windows and BSOD all the time (TDR_video_failure nvlddmkm.sys error). I'd like to know if Ubuntu gives such issues, and, if it will recognize my GPU (I cannot see in the list).  Anyway this is my laptop.   Intel® Core™ i7-4720HQ processor Quad-core 2.60 GHz 17.3" Full HD (1920 x 1080) 16:9 IPS NVIDIA® GeForce® GTX 860M with 4 GB Dedicated Memory 16 GB, DDR3L SDRAM 1 TB HDD, 256 GB SSD

I am a bit financially strapped and received a Gateway GT5056 tower. The tower has an AMD dual core 64-bit processor in it. Will Ubuntu 12.04 run on this machine? I will not have any other application other than LibreOffice installed.


is the canon 18-15mm lens good for self portraits and nature pictures {trees, leaves, DETAILED rain or snow} ?

I have a Canon EOS 550d with the 18-55mm IS kit lens. I have done  (portraits, nature, night shots etc), and find the image quality to be pretty good. In fact most of the reviews have also been positive (at least in terms of image quality):   Quote:     indeed Canon's main concern may   ultimately become whether users have   as much incentive to upgrade to more   expensive optics as they did before       So, what are the key limitations of this lens (or any other similar kit lens) that would compel one to upgrade to a more expensive general purpose zoom lens (apart from the wanting to upgrade the zoom range)?


I'm going on a vacation to the US next month for 2 weeks.  Instead of paying roaming fees, I'd like to buy a new SIM card with a prepaid amount from a local store/carrier. I don't think wifi networks will suffice for my needs.  Is that an easily achievable solution for short-term vacationers? Also, what is the deal with US mobile networks not using the GSM standard?

I intend to travel to the US for a month, and I would really like to use a lot of data traffic during the trip, for browsing, maps, Skype calls, etc. How can I do that? Should I buy a SIM? Do I have to order one in advance, or are data SIMs readily available in the airport? Is there any website that can show me competing options and maybe compare them?  Also, I guess SIMs are linked to one specific carrier. Does it matter which cellular carrier I choose, or do all have similar coverage and do all support GSM phones? Does it change from state to state? e.g. do some of the more states, like Hawaii, have limited coverage for some of the carriers?  In short I am clueless here, and would really appreciate any information about this.  EDIT: meanwhile I have found , seems very useful though I'm not sure how reliable or up-to-date this page is.


Prove that $n^2 - 1$ is divisible by $8$, for every odd integer $n$.    I tried to factorize and find something but still have no idea.

Show that $n^2-1$ is divisible by $8$, if $n$ is an odd positive integer. Please help me to prove whether this statement is true or false.


So here's what I did,  $n^2 + n + 1 = n(n+1)+1 = N(say)$  as either n or n+1 is even...  Hence, $N = 2r+1$  Now, take $r = 3k$ or $3k+1$ or $3k+2$  for $3k+1$, $3|N$  for $3k+2$, $N = 6k+5$, which we can break into factors of $6l+1$ and $6j+1$ till we a prime of form $6m+1$  for 3k, N = 6k+1, now I need to show that this $6k+1$ is a prime, ie $6m+1$ is a prime if $6m = (3k)(3k+1)$ OR $6m = (3k)(3k-1)$

Show that the odd prime divisors of $n^2+n+1$ are of form $6k+1$ (exclude 3)    I have started like below: $n^2+n+1\equiv 0 \pmod {p_i}$ $(n+1)^2\equiv n \pmod {p_i}$    Any hints/help on how to proceed from here ?


I see from textbook that prime number must be irreducible number and not vice versa. But my degree of awareness is limitted in number field, so it's hard to understand because irreducible number is equivalent to prime number in number field. Thanks for helping me!

In my commutative algebra lecture notes it says:  A non-zero element $p$ of a ring $R$ which is not a unit of $R$ is called a prime element if $p=ab$ implies $a$ is a unit or $b$ is a unit.  Is this not the definition of an irreducible element?? Everywhere else I've read that a non-zero, non-unit element $p$ is a prime element if $p|ab $ implies $p|a$ or $p|b$  Thanks :)


I have read in a book and on the internet that the graviton is the particle which causes gravity, and not even light can escape gravity.  Suppose our Sun has turned into a black hole. The black hole will still have the same gravitational effect on other matter as the Sun.  Nothing can escape from a black hole, but a black hole still has a gravitational effect. How is this possible? Won't the black hole stop the gravitons and lose its gravitational effect?

My understanding is that light can not escape from within a black hole (within the event horizon).  I've also heard that information cannot propagate faster than the speed of light.  It would seem to me that the gravitational attraction caused by a black hole carries information about the amount of mass within the black hole.  So, how does this information escape?  Looking at it from a particle point of view: do the gravitons (should they exist) travel faster than the photons?


I'm generating multiple copies (right now, 2, but a general solution would be nice) of a letter with minor variations using datatool. I just realised that if I'm printing it double-sided. and if the number of pages is odd, then the last page of the first letter is back to back with the first page of the second letter. Is there a good way to add an extra blank page as necessary. Do I need to add an MWE for this?

I need automatically add a blank page (also without document header, numbering and footer) at the end of the document, if the total numbers of pages is odd. How I can do that? And preferably without using any additional package. :)


I have a pgf-pie chart and some of the values are so small that the number does not display correctly. Therefore I would like to put them outside of the chart, as seen on the second picture I found on the internet. MWE of my chart \documentclass[tikz, 12pt, a4paper]{report} \usepackage[T1]{fontenc} \usepackage{caption} \usepackage{subcaption} \usepackage[usenames, dvipsnames, rgb]{xcolor} \usepackage{tikz} \usepackage{pgf-pie} \usetikzlibrary{arrows, positioning, shadows} \begin{document} \begin{figure}[!htbp] \centering \begin{tikzpicture} \pie[sum=auto,text=legend]{10/A, 1/B, 29/C, 43/D, 16/E} \end{tikzpicture} \caption{Pie} \end{figure} \end{document}  This is what my chart looks like  This is the picture of how I imagine my the numbers outside could look like I found but obviously, I'd like to keep the legend and all other formatting.  How can that be done?

unfortunately you can't read the percentages in the small pie pieces. Is there an easy solution for that? Putting the percentages outside the pie or to the legend? \documentclass{article} \usepackage{pgf-pie,stackengine}  \begin{document} \begin{figure}[h!] \centering \begin{tikzpicture} \small \pie[radius=2, color={cyan!90, green!70, blue!40, magenta!90}, text=legend]{13.52/Opernveranstaltungen, 1.19/Operettenveranstaltungen, 3.58/Musicalveranstaltungen, 81.7/andere Veranstaltungen} \end{tikzpicture} \caption[Veranstaltungen]{Veranstaltungen} \label{fig:verteilung_theatertypen} \end{figure}   \end{document}


Can anyone do this with the latest OS and XQuartz? On my machine, XQuartz opens but displays nothing. E.g., after loading a file with  drawdot (35,70); showit; drawdot (65,70); showit; draw (20,40) .. (50,25) .. (80,40); showit;   I see a blank XQuartz screen.

I tried the first experiment in chapter 5 in the Metafontbook: ran mf, typed \relax and drawdot (35,70); showit;.  This opened a window entitled Metafont, but containing nothing.  What's missing?  Using TeXlive 2020 on Linux. PS. After adding drawdot (65,70); showit; I see both dots. PS II. Which have now disappeared, after I changed window-manager workspace and back. PS III.  Typing showit; before the first drawdot opens a window and allows the first dot to be seen, but after having switched workspaces and back, I haven't found any way of bringing the picture back, short of drawing something more and showing it.


I am able to run my node server on an EC2 instance by SSH-ing into the server and running the command node index.js when inside of the src file. The server works fine, but the issue is that I have to persist the SSH connection to the EC2 instance, otherwise it terminates the server process. I'm sure I'm doing something wrong, but I couldn't find a clear cut and dry solution online without getting too much into the weeds. Also for anyone wondering, I SSH-ed into my github and installed git on the EC2 instance in order to pull the code from the repository to the instance, instead of using CodeDeploy. The reason is that I was getting vague errors with CodeDeploy like "there was an issue deploying your revision", so I decided to go the manual route for uploading the code. So I could use some solutions to common "gotchas" in this area as well. Thanks.

Im trying to measure bandwidth, packet loss, latency and jitter between two computers on a wireless 802.11s mesh connection.   Im trying to make a (my first) bash script that can do the following:   SSH to another computer and start logging data from services (ptpd, tcpdump, iperf). Start the same processes on my own computer and start logging data. Once the iperf transmission on my own computer is finished, it should SSH into the remote computer and kill the the services.   The idea is for this these three steps run in a for-loop, that increases the package size transmitted by iperf for each iteration and logs the resulting data.  I know how to start a process on the remote pc by ssh host@adress process.  I am however clueless on how to start multiple processes through SSH and logout, since the processes are terminated once I logout. I have looked at the screen and nohup commands, but don't know how to use them in a script.  Thanks in advance!  EDIT:  Thanks for all the help so far.  I got nohup to work now, it was pretty simple as people pointed out.  So now I got: ssh host@adress nohup ./script.sh > /dev/null 2>&1 & in the script on my main pc. This starts a script on the remote pc just fine, and then logout of SSH. The next problem is how to execute the script on the remote pc as sudo, since this is needed by tcpdump.  Trying ssh host@adress **sudo** nohup ./script.sh > /dev/null 2>&1 & doesnt work.  Any ideas?  EDIT 2:  If anybody is stuck with the same problem, I found a guide how to solve this:


I've searched a few StackExchange sites for questions/answers concerning the ?? operator in .  I'm not having much luck, but I can't tell whether that's because no pages mention that symbol or because searching for punctuation is not supported.   Do any/all StackExchange sites support searching for punctuation? If so, is there a Help section or FAQ about how to format such searches?

We used to be able to , but that now appears to be broken.  I'd expect a  to return a result, but instead the search engine appears to put quotes around the whole request; the search box shows the search has been replaced with "[python] += list" and the  I was looking for doesn't appear among the returned questions.  Using quotes around the symbols do not seem to help here;  returns an empty result.


Let $A=\mathbb{Z}[x]_{deg\leq n}$ denote the set of all polynomials in $x$ with degree less than or equal to $n$. Show that A is denumerable. I know that set of all polynomials with integer coefficients is countable but how can I prove this problem ?

How to prove that the set of integer coefficient polynomials is countable?


Let $(x_n)$ and $(y_n)$ convergent sequence. Is there an easier way to prove that if $x_n\leq y_n$ for all $n$, then $\lim_{n\to\infty }x_n\leq \lim_{n\to\infty }y_n$ ?  This is how I do:  Let $\ell=\lim_{n\to\infty }x_n$ and $\ell'=\lim_{n\to\infty }y_n$. Suppose $\ell'<\ell$. Let $\varepsilon=\frac{\ell-\ell'}{2}$. In particular, there is a $N$ such that $y_N\in]\ell'-\varepsilon,\ell'+\varepsilon[$ and $x_N\in]\ell-\varepsilon,\ell+\varepsilon[$ and thus $y_N<x_N$ which is a contradiction with the fact that $x_n\leq y_n$ for all $n$.   I would like to know if there is another proof that doesn't use contradiction.

I'm stuck with the proof of the following:  Suppose that $(s_n)$ converges to $s$, $(t_n)$ converges to $t$, and $s_n \leq t_n \: \forall \: n$. Prove that $s \leq t$.   I've tried starting with $s_n \leq t_n \: \forall : n$ and the definitions of each limit (i.e. $|s_n - s| \leq \epsilon \: \forall \: n > N_1$), but I'm not really getting very far. Any help is appreciated!


I'm running Ubuntu 18.04.4, and am trying to download Divinity 2. I have it installed, but whenever I try to run it, I get the following error:  "bash: ./SupportTool.exe: cannot execute binary file: Exec format error"  I got the following results when checking for compatibility:  arch: x86_64 file: EoCApp.exe: PE32+ executable (GUI) x86-64, for MS Windows  Is there a way to make this compatible? Please let me know what other details I can provide. Thank you, Andrew

Is it possible to run a .exe file in Ubuntu in a script? For example a simple Matlab code like this:  system("dir/WAV2RAW.exe")


I have made a dropdown menu where you can choose if you want to play against a friend or against the computer, and this is were I run into problems.  The program skips over a part of the if statement, and goes to the else statement further below and I do not know why? They are basically the same.  I wanted to check if it would run if I clicked the PVC option, so I made it print out hello when it comes to that, and it does, but it just skips over the rest of the statement after the for loop. It is supposed to set the buttons to X and ÅO, but goes to the normal version where it gets set to X and O instead.  PVC:  if (menu.get(1).equals(e.getSource())) {      System.out.println("hello");     for (int i = 0; i < 9; i++) {         score.set(i,0);         knapper.get(i).setText(" ");         count=1;         Gamechoice=true;     }      for (int i = 0; i < 9; i++) {         if (knapper.get(i).equals(e.getSource())) {             count += 1;              if (count % 2 == 0) {                 if (knapper.get(i).getText() == "X" || knapper.get(i).getText() == "O") {                     System.out.println("Button allready pressed");                 } else {                     System.out.println("Pressed " + (i + 1));                      System.out.println(e.getSource());                     knapper.get(i).setText("X");                     score.set(i, 1);                 }             } else if (count % 2 != 0) {                  if (knapper.get(i).getText() == "X" || knapper.get(i).getText() == "O") {                     System.out.println("Button allready pressed");                 } else {                     System.out.println(e.getSource());                     knapper.get(i).setText("ÅO");                     score.set(i, -1);                 }             }         }     } } else{     for (int i = 0; i < 9; i++) {         if (knapper.get(i).equals(e.getSource())) {             count += 1;              if (count % 2 == 0) {                 if (knapper.get(i).getText() == "X" || knapper.get(i).getText() == "O") {                     System.out.println("Button allready pressed");                 } else {                     System.out.println("Pressed " + (i + 1));                      System.out.println(e.getSource());                     knapper.get(i).setText("X");                     score.set(i, 1);                 }             } else if (count % 2 != 0) {                 if (knapper.get(i).getText() == "X" || knapper.get(i).getText() == "O") {                     System.out.println("Button allready pressed");                 } else {                     System.out.println(e.getSource());                     knapper.get(i).setText("O");                     score.set(i, -1);                 }             }         }     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Let $\{a_n \}$ be a decreasing sequence of positive real numbers. Prove that if the series   $$\sum_{n=0}^{\infty} a_n \sin (nx)$$  converges uniformly on $\mathbb R$ then $na_n \rightarrow 0$.  I find difficulty to prove this. Please help me.  Thank you in advance.

Let $\{a_n\}$ be decreasing sequence of positive terms then prove that $\displaystyle \sum a_n \sin (nx)$ converges uniformly on $\Bbb{R}$ iff $na_n \to 0$ as $n\to \infty$.   I proved that convergence of $ \sum a_n \sin (nx)$ implies $na_n \to 0$ as $n\to \infty$ . I got stuck while prove the converse,  I tried ussing Dirichlet's test but the problem here is that partial sums of  $\displaystyle \sum^{n}_{k=1} \sin (kx)$ are bounded by $\displaystyle \frac{1}{|\sin (\frac{t}{2})|}$ , so as per Dirichlet's test requirement I'm not getting uniform bound.


I need to find partial fractions for $$\frac{1}{x^4 + 1}$$ so it can be integrated, but I'm completely stuck.

I am trying to evaluate the integral  $$\int \frac{1}{1+x^4} \mathrm dx.$$  The integrand $\frac{1}{1+x^4}$ is a rational function (quotient of two polynomials), so I could solve the integral if I can find the partial fraction of $\frac{1}{1+x^4}$. But I failed to factorize $1+x^4$.   Any other methods are also wellcome.


I am writing an article and I need to write the fundamental group. For that we use $\pi_1\left(X,x_0\right)$.  However I am arriving at the following error:   Use of \pi doesn't match its definition. l.113 This shall be denoted by $ \pi_                                      {1}(X,x_0)$ or simply $ \pi_1\left(X\right)$.   My Code is given below.  \documentclass[psamsfonts]{amsart}  %-------Packages--------- \usepackage{amssymb,amsfonts} \usepackage[all,arc]{xy} \usepackage{enumerate} \usepackage{mathrsfs} \usepackage{amsmath} %\usepackage{mathtools} %\usepackage[mtpscr]{mtpro2} \makeatletter \let\c@equation\c@thm \makeatother  \DeclareMathOperator\pione{\pi_1} \DeclareMathOperator{\pi1et}{\pi^{\'et}_1}  \newcommand {\sub}{\mbox{SB}}  \begin{document}  Given a "nice" topological space $\left(X, x_0\right)$, we define the fundamental group to be $\left[S^1, (X, x_0)\right]_{\star}$.  This shall be denoted by $ \pi_{1}(X,x_0)$ or simply $ \left(X\right)$.    \end{document}

I would like put picture into table, and my idea is define new command as below>   \newcommand{\EJ471}{\includegraphics[scale=0.150]{EJ_471.jpg}}   But compiler reports an error. If I use the command name for example \EJa, everything is all right. I've read similar questions as      But still I don't understand why it does not work.


I am trying to set the x,y offset of layer labels based on a data defined override. What I'm trying is the following:  CASE WHEN name is 'Brooklyn Bridge' [3.5, 0] ELSE [-3.5, 0] END   However this does not seem to be the correct syntax to set x and y values simultaneously. How would you do this?

I have several rectangular polygons that overlap each other and I'd like to label them with the ID's (for atlas page numbers).  The image below shows my initial setup.  I've offset each label from the centroid using the data defined override which I can easily understand how this one works.  But I would like to add more offset to each individual label using a CASE WHEN expression, so here's the issue.  At the bottom of the image are two inputs for "Offset X,Y".  The data defined override for this option says:  Data defined override Active: yes (ctrl/right-click toggles) Expected input: double coord [X,Y] as <= 0.0 => Valid input types: string, int, double Current definition (expression):   I've used the overide for other individual coordinate values (just X or just Y) and they work fine because they expect just a single number.  But what is the format for the expression to use BOTH X and Y values?  I've tried two comma sperated numbers in square and curly brackets, as well as just numbers and also without the comma separation but I keep getting Expression is invalid from the output preview.  Any answers that I come across only really refer to python which I can't use.


So I have been trying to change the colour of the output in the shell, but it just ends up returning boxes. I am using python 3.7.4.

How can I output colored text to the terminal in Python?


I'm a German citizen. I was on vacation in Tijuana and I entered the US an the San Ysidro border control. I got the green I94-W form. I did some day trips to San Diego and back to Tijuana, but I completely forgot to return the I94-W form after my last visit to the US.  I flew back to Germany from Tijuana airport after a stay of 3 weeks. I still have the boarding passes of my return flight, but no further stamps in my passport. I'm planning to go to Tijuana again, but I'd like to arrive in San Diego and then go to Tijuana from there, because it's much cheaper.  Am I going to have a problem entering the US? Is it enough of a proof that I left the US in time if I show the boarding pass from my return flight to Germany departing from Tijuana airport?  The CBP help page says "If you departed by a commercial air or sea carrier (airlines or cruise ships), your departure from the U.S. can be independently verified, and it is not necessary to take any further action", but I didn't depart from the US. I'm kind of clueless now and would appreciate some help.  Thanks for your help!

Seeing as the US does not perform border control on exit (save for occasional spot checks, usually when traffic is moving slowly at the border), how do I make sure my exit by land is recorded so that I'm not incorrectly flagged as an overstayer?  When exiting the US by air or sea, this is not a problem, as airlines and shipping companies send passenger records to US authorities. What about exiting by land though?


When they say that the age of the Universe is about 13.7 billion years, they are giving the age in cosmic time, is that right?. There's this other thing called conformal time which I don't understand. What would be the age of the Universe measured in conformal time?

What is the relationship between redshift and conformal time ?   For example in a paper i found:   taking $z_e = 3234 $ at the time of radiaton-matter equality yields the conformal time $\frac{\eta_e}{\eta_0} = 0.007$ and taking $z_E=0.39$ at matter-$\Lambda$ equality yields $\frac{\eta_E}{\eta_0}=0.894$ and setting redshift at decoupling $z_d=1089$ yields $\frac{\eta_d}{\eta_0} = 0.0195$  where $\eta_0$ is the present decoupling time.  Further some cosmological parameters are given as :  $\Omega_r = 8.36 \times 10^{-5}, \Omega_m = \Omega_b + \Omega_{dm} = 0.044 +0.226, \Omega_\Lambda = 0.73,  H_0=0.72$  Now how can i calculate all those $\eta_e, \eta_E, \eta_d, \eta_0$ from given redshift values and/or above parameters ? I searched whole of my text books trying to find an explicit relation for conformal time $\eta$ but all i got was $ \mathrm{d}t=a(t)\mathrm{d}\eta$. Any help would be very helpful.


The entire hard disk is 1.5TB   The partition I hope to recover is 900GB  There were two partitions     [ 600 GB - OS partition ] [ 900 GB - the data partition I want to recover ]   Which cylinder should I begin searching at?    And which program do you recommend?    TestDisk EaseUS   I can use Windows 7 / GParted / Knoppix

What steps can I take to try to recover lost or inaccessible data from any storage device?  Answers:   This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery.     We have separate questions covering common problems with USB flash drives in greater detail:


I'm designing a homebrew campaign for me and my friends, where I'll DM. I've decided basic things and written down basic notes of important things I want to happen, etc.   These are only scattered notes, and not at all structured or detailed.  The campaign is going to be open, allowing 5 or 6 different options of what the party needs to do/go at the start and they can be done in any order. I also want it to be possible for them to partly shape the story by their actions rather than force them along a path, which is a reason I don't want my notes to be overly detailed because they could no longer be useful depending on what the party does.   As for my DM experience I'm still fairly new, only making some basic, simple adventures back in 4th Edition and not much in 5th. I've got the grasp on how to do it, just not how deep to go into it.   So my question: How detailed and specific should my notes be before I'm ready to start the adventure?  Do I write grand descriptions about the hallway down to read word for word or just list features about it?  Do I flesh out important NPC's just enough to do what they are in the campaign for or create a character with deep personality even if they won't be in the adventure for a long time?  Etc.

I'm a first time DM (3.5e), and, being a passionate writer, I decided to create the entire campaign and campaign setting myself. It's been good fun, and I have about 12 pages of (elaborated upon) ideas for it. However, I'm starting to worry that I'm becoming too specific. My original plan was to get several dozen pages of ideas for my campaign setting (easy enough), then compile it into a formal "specification" that would basically establish the whole state of the world. (Originally I had planned to write it out normally, but I've been thinking now that I'm gonna use Obsidian Portal or something like that. Not too important.) Following this idea, I set some backstory for the world politics in general, and for the powerful nation that'll be the setting for most of the campaign. I decided it was a good time to draw a map of the continent, so I did. I ended up with about eight countries, including the main one. Within the main country, I drew in fifty districts. Then I look at it again.  At that point I realized that I would have to go through and name fifty districts.  Now, it's not impossible. But I've never done this before, and it doesn't seem necessary. I know that the PCs will need to know the names of three districts within an hour of play, and that's it. The others could come later. Do I need to worry about them now?  This is a bit more general, as well. What level of specificity should I write it at this point, when I haven't even had a game with my players yet? As a first-time DM, I really can't foresee what I'll need. Any suggestions?


What are the reasons due to which the in-class initialization of static const members is restricted to integral data types in C++ ?

I noticed C++ will not compile the following:  class No_Good {   static double const d = 1.0; };   However it will happily allow a variation where the double is changed to an int, unsigned, or any integral type:  class Happy_Times {   static unsigned const u = 1; };   My solution was to alter it to read:  class Now_Good {   static double d() { return 1.0; } };   and figure that the compiler will be smart enough to inline where necessary... but it left me curious.  Why would the C++ designer(s) allow me to static const an int or unsigned, but not a double?  Edit: I am using visual studio 7.1 (.net 2003) on Windows XP.  Edit2:  Question has been answered, but for completion, the error I was seeing:  error C2864: 'd' : only const static integral data members can be initialized inside a class or struct


The following case makes more confuse to me. As far as I know, local variables don't return  by pointers or reference. for example   char * foo() {   return "Hello world"; }  int*  fooo() {     static int i = 100;     return &i; }   What would happen in both cases ?

I'm working with some code that widely uses the idiom of returning a pointer to a static local variable.  eg:  char* const GetString() {   static char sTest[5];   strcpy(sTest, "Test");   return sTest; }   Am I right in thinking that this is safe?  PS, I know that this would be a better way of doing the same thing:  char* const GetString() {   return "Test"; }   Edit: Apologies, the function signature should of course be:  const char* GetString();


Ok - the title doesn't make much sense. I apologize in advance - I'm relatively new to some Java concepts:   I have a class, which looks a little like this (simplified):   public class SomeContainer {     T someEntity;     Map<String, Map<String, List<SomeOtherClass>>>> someCrazyMapping; }   I have a variable of type SomeContainer, let's call it container1.  I want to make container2, which is essentially an exact copy of container1, but I'm going to make some modifications to container2's "crazy mapping".  What I tried doing is creating a "copy" of container1 as follows:  SomeContainer container2 = new SomeContainer(container1.getSomeEntity(),  container1.getSomeCrazyMapping())   The constructor is an @AllArgsConstructor - and just copies the values as this.someEntity = someEntity (etc.)  If I put entries into the "crazyMapping" in container2, does container1 get affected at all? I am running it to check how it behaves, but if someone could explain how this works, it would be greatly appreciated.

What is the difference between a deep copy and a shallow copy?


How can i save a ./ executable as a terminal command? Like, so I don't longer have to type ./ in order to run the executable.

I'm fairly new to Ubuntu and I do believe in jumping in head first into issues to learn. I know that I can run some GUI applications with Putty+Xming on headless Ubuntu Server. But I can't run Visual Studio Code My issue is not installing Visual Studio Code. I've installed through zip and through umake. Both with the same result.   user@server:~/tools/web/visual-studio-code$ ls Code                       libgcrypt.so.11  natives_blob.bin content_shell.pak          libnode.so       resources    Credits_43.0.2357.65.html  libnotify.so.4   snapshot_blob.bin icudtl.dat                 license.txt      ThirdPartyNotices.txt libffmpegsumo.so           locales  user@server:~/tools/web/visual-studio-code$ Code No command 'Code' found, did you mean: Command 'ode' from package 'plotutils' (universe) Command 'node' from package 'node' (universe) Command 'node' from package 'nodejs-legacy' (universe) Code: command not found user@server:~/tools/web/visual-studio-code$   Anyone know if VS-Code can be opened this way?


Suppose I have class/interface A that is extended/implemented by class B and class C. Class/interface A contains method X. Is there a way to have method X without a body (X();) and so it must be implemented by class B and class C, but not give class B and class C (or any other class except possibly class/interface A) access to each other's method X?  ? class/interface A {   ? X(); }  ? class B extends/implements class/interface A {   @Override   ? X() {     ...code...   } }  ? class C extends/implements class/interface A {   @Override   ? X() {     ...code...   } }   I am not sure of modifiers, represented with question marks above, and I am not sure if A should be a class or interface.  EDIT: Additionally, instances of classes B and C are created in class D. The instance of class C in class D is constructed with the instance of class B in class D as a parameter, which is set as a class variable which this instance of class C is constantly getting data from. I do not want this instance of class C to be able to call its class variable object B's method X.

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


Dear All My teacher gave me a tasks to find a solution for this sentence. He marked that the "I've to" part is wrong. But to be honest I don't know what is the resolution. The original sentence part was that:  Besides that, I’ve to mention; ......

I need your help. So, "have to" instead of "must" is correct, but can I abbreviate this with 've to?  Is this a mistake, or can I use it so???


I just learned today that we can copy our characters from the official release to use on the 2.1.0 PTR.  Then I wondered:  if I play my characters on the PTR instead of the current official release (2.0.6), when 2.1.0 is released officially, which version of my character will it use?  Will it use my 2.0.6 character or my PTR 2.1.0 character (or will I have a choice)?

Blizzard allows  from one of your account (EU, US etc.) to the PTR in order to test the latest patch but is it possible the other way arround. My biggest concern is : if I loot an incredibly good item (or something I've been looking for month on the "real" server) in the PTR, will I be able to transfer it back on my main account ?


I work in a charity shop and we sell coats for ladies. Should the sign read "Ladies' Coats" or "Ladies Coats"? I argue for the apostrophe but some of my friends argue that as the coats do not belong to the ladies yet that there shouldn't be an apostrophe.

I am working on an invitation design for a charity. I am wondering which one of these is correct, Young Men's Committee or Young Mens Committee


I'm trying to get the md5sum of a directory, however everytime I try I'm getting permissions denied. I have root access and sudo. I'm able to create files and such in the directory but it will not allow me to find the md5sum of the directory contents. What I've tried so far:  baal@baal-Aspire-5733Z:~/bin/python/dagon$ md5sum * > data.txt bash: data.txt: Permission denied baal@baal-Aspire-5733Z:~/bin/python/dagon$ sudo !! sudo md5sum * > data.txt bash: data.txt: Permission denied baal@baal-Aspire-5733Z:~/bin/python/dagon$ touch data.txt touch: cannot touch 'data.txt': Permission denied baal@baal-Aspire-5733Z:~/bin/python/dagon$ sudo !! sudo touch data.txt [sudo] password for baal:  baal@baal-Aspire-5733Z:~/bin/python/dagon$ sudo md5sum * > data.txt bash: data.txt: Permission denied baal@baal-Aspire-5733Z:~/bin/python/dagon$ sudo !! sudo sudo md5sum * > data.txt bash: data.txt: Permission denied baal@baal-Aspire-5733Z:~/bin/python/dagon$ cd .. baal@baal-Aspire-5733Z:~/bin/python$ sudo chmod 775 dagon baal@baal-Aspire-5733Z:~/bin/python$ cd dagon baal@baal-Aspire-5733Z:~/bin/python/dagon$ sudo find type -f -exec md5sum '{}' \; >md5sum.txt bash: md5sum.txt: Permission denied baal@baal-Aspire-5733Z:~/bin/python/dagon$    Does anybody have any idea why I would not be able to recursively get the md5sum of the directory? This directory was cloned from git if that makes any difference.

When using sudo to allow edits to files, I regularly get 'permission denied'.  For example, my mouse is jittery and sluggish, so I want to disable polling:  sudo echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf   I'm prompted for a password, and then get:  bash: /etc/modprobe.d/local.conf: Permission denied   So I tried to do a temporary change to disable polling by using:  sudo echo N> /sys/module/drm_kms_helper/parameters/poll   Yet again the system responded with:  bash: /sys/module/drm_kms_helper/parameters/poll: Permission denied   Any ideas?


I have not been able to find an answer to this around. I am wondering if there is anyway to call a list of available methods from right inside python.  for example  if I had this list  list1 = ['one',2,3,4,5]   I can call list1.append(6)  Obviously if I was to download a third party program you can hit tab after the . and it will show a drop down of all methods. But I am wondering if there is something inside python to do something similar so it gives me a list of all methods like list.help or something and it would show.     .append  .pop .remove etc   Sorry this is a very basic question I was just thinking since I have a hard time remembering all the methods for each type it would save me a little time from looking it up on python.org.

Given a Python object of any kind, is there an easy way to get the list of all methods that this object has?  Or,  if this is not possible, is there at least an easy way to check if it has a particular method other than simply checking if an error occurs when the method is called?


Let $(x_n)$ be a real sequence satisfying  $ x_1=1 ,\space x_{n+1}=x_n+\dfrac{1}{x_n} ,\forall n \in \mathbb N$ , then can we find an expression for $[ x_n$] ( box-function) in terms of $n$ $,\forall n \in \mathbb N$ ? ( I have only been able to find that   $x_n^2>2n , \forall n>2$ and $lim \dfrac {x_n^2}{n}=2$)

Today, we had a math class, where we had to show, that $a_{100} > 14$ for  $$a_0 = 1;\qquad a_{n+1} = a_n + a_n^{-1}$$  Apart from this task, I asked myself: Is there a closed form for this sequence? Since I didn't find an answer by myself, can somebody tell me, whether such a closed form exists, and if yes what it is?


Imagine a universe without time, or more specifically without the Flow of Time. Everything will be a 2D projection and nothing more. No movement, no interaction, and in other words no Change. But our universe is not like this. We have movement, we have interaction, and our world changes in many ways. But there is a catch. We have some 0 mass particles in our universe, which move at the speed of light e.g. photons and, according to the theory of relativity, these particles are not affected by time. So the universe is static from the point of view of a photon. But it can't be like this. Our world is dynamic. And this kinda raises a contradiction. On the one hand, the universe is static and in another the universe is dynamic. Can anyone explain this?

To an an external observer it appears that time has stopped for photon. But this relation is reflexive, so for an observer travelling with the photon it appears the universe has stopped everywhere.  Is this right?  Space also gets distorted parallel to the direction of motion, but not perpendicular to it.   Does this mean that for an observer travelling with a photon sees spacetime as a flat plane?  Note 1: I'm using language vividly not literally when I say a photon experiences space and time. Not that I'm against idealist or panpyschist interpretations of matter or energy come to that.  Note 2: Since it's been pointed out that an inertial frame can't be boosted into the frame of a photon and moreover there is no limiting behaviour here - no matter what frame you are boosted into, light will always appear to travel at c. Nevertheless, when an external observer watches a train chasing a photon by gradually increasing its speed, he will note that the train speed is approaching the speed of the photon (but will never match it) and when he looks at the clock inside the train he will not too that it is gradually slowing down (but never actually stops). Using this picture, we can attempt the thought experiment - if not one that can be carried out - of what a world looks like to a photon.


I just cleaned my sensor with a cloth and when i test the dirt, I saw different dark spots on the image. What should i do? I've tried blowing with blower, but it didn't help.

I know there have been a lot of posts on this topic, but I haven't found exactly what I am looking for.   I noticed some dust spots on my sensor for my D750 after I took a picture with some sky in it and then was playing around with "dehaze" in Lightroom. Okay no problem, I have owned the camera for a year probably time to clean the sensor.   So I do a bit of research online and land on the fact that I can do this myself. I also want to learn how so I don't need to spend $50 or $75 each time I need this done. I decide to buy .  What I do is close my aperture down to F22, put my ISO on 100 and then set my shutter speed to 2 seconds or so and take a picture of a well lit white piece of paper.   I then go into Lightroom and jack the dehaze and look for dust spots. I see a ton. Okay, so now let's clean it. I wet the swab with a few drops to get it just saturated on the top of the swab, apply some pressure, wipe left to right, turn it over, wipe right to left and done.   Then I took the same picture and although the dust spots are different, they are still there! What the heck? Okay maybe it just needs a good blow out. I took my  and blow out everything I can inside of there, then I do the same cleaning method as the first time, except this time I start with a dry swab, throw it out, then get a new swab, wet it and clean it again.  I take the picture again... and they are STILL THERE. Okay let's get out the high power flashlight. I wouldn't say I scrubbed it, but I went back and forth with the swab on what seemed to be a stubborn spot (I know, sketchy). Then I clean it again with a normal swab and take another picture.   This went on and on and I have basically ran out of swabs. I still see spots. I used the same swab a few times (I know, also sketchy) because I just couldn't figure out why it wasn't getting clean. I even tried a can of air (although some don't recommend that because they have solvent in them, but I was desperate and some people on youtube did it). That actually seemed to help, but in the end I still have spots.  So obviously a lot of you will tell me to just "take it in! you're going to break your sensor", but I really want to learn how to do this. And now I am just stubborn.  The spots are at the top and bottom of the frame mostly.  Any ideas? I ordered  today, and I was going to try it out very carefully. I also ordered .       EDIT: I tried the gel stick. It did seem to help, but on the second try something else got on the sensor so I am going to wait until tomorrow to get the swabs and then try to do a swab cleaning + the gel stick again... we will see.  EDIT2: Well it looks . I think the gel sticky stick helped but it's still not spotless. I ran over it one more time. I also included a photo above to the people are nervous about cleaning their own sensor. Obviously I can't guarantee you won't screw up, but I ran a swab over this sensor at least 15 times and it still shots great.


A meta question. After spending 6 hours trying install XYZ I found that I need to put one line in one file and this is information is missing from the docs of the package/library/language. One of the great strengths of SO is that these things often can be found very quickly browsing through the questions. The FAQ and responses at meta-SO however are tending in the direction that too specific questions are not of great value.  Background: I have been starting moving into developing more seriously again, and find SO of great value in many regards. I'm just wondering how SO will develop in the, say ecosystem of programming knowledge. In a way I'm confused, because too specific questions are frowned up, at the same time too general questions are often not wanted also.  The general question is a "canonical" one, meaning that it has been asked many, many times, in one form or another. A single canonical question (i.e. a mini tutorial) substitutes for the many specific questions.  However the problem is that:  What annoyed me is that the "canonical" answer just has a bunch of links to [XYZ].   See:

Let's assume that one has some problems with coding or designing specific project. Should one ask general question about techniques, algorithms, generic problem (anonymising the project references), or should one ask about specific problem in specific problem? Or perhaps something in between?  Example:   generic: Cross-browser implementation of “HTTP Streaming” (push) AJAX pattern specific: How to implement AJAX-y 'incremental blame' view in gitweb (git web interface in Perl)?   If one should ask generic questions, how to anonymise problem? If one should ask specific question, how avoid 'homework' syndrome?


Let $f\in L^1(\mathbb{R})$, and let $m$ denote lebesgue integration. Show $\int_{\mathbb{R}} |f(x)|dx = \int_0^\infty m(\{x:|f(x)| > t\})dt$. I'm honestly not sure how to get a good hold on this problem. Having $m(\{x:|f(x)| > t\})$ makes me think Chebyshevs's inequality. Bringing the $t$ out after applying Chebyshev then makes me think something involving fubini-tonelli, but I'm really not sure how that helps. Any advice is appreciated. Thanks in advance.

Why do we have the following equality$$\int_{-\infty}^\infty |g(x)|\,dx = \int_0^\infty \mu(\{x : |g(x)| \ge t\})\,dt,$$where $\mu$ is Lebesgue measure?


I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


As demonstrated below, it appears that Array.forEach(myObject => callback) returns myObject as a reference to the exact object in my Array.  Is there any built-in or graceful way to return an unreferenced copy of myObject in an Array.forEach without calling something like myObject = _.cloneDeep(myObject) on each iteration?    Thanks.    const trades = [   { qty: 0 },   { qty: 2 } ];  trades.forEach((trade, index) => {   trade.qty += 1;   trades[index].qty += 1;   console.log(trade); });  console.log(trades);

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


I'm looking for the title/author of a science fiction short story I read in an anthology many years ago. From what I remember the story involved a small portal to another universe being discovered inside the lip of a bag, perhaps a purse, when a shoplifter is caught putting items into the bag. The shoplifter seems to be unaware of what they're doing. The story involves scientists investigating the portal, believing that items are being taken in order to collect information about our world, and culminates in a tug of war of an iron bar or some such passing through the portal. The implication that the side winning the tug of war eventually puts stress on the loser's universe in some catastrophic way.

This  reminded me of a story I read in the 90s.  A woman is caught shoplifting a bunch of metal items by throwing them into her purse. She has no memory, and the purse is empty. Anything metal they put in disappears. The police turn it over to government scientists, who investigate by attaching a large lump of metal to some extremely strong wire and dropping it in like a fishing line.      They have it hooked up to the biggest, strongest crane available, and they begin reeling it back in. They reason that if whoever is on the other side can't let go, it could turn their universe inside out or something equally unpleasant, thus giving Earth the leg up in opening negotiations.   and then      The tension on the line increases until is under too much tension to cut. The story ends with the line slowly sliding back into the purse, with the realization that their plan has backfired in the worst possible way.   Anyone know the name of the story and author?


i am currently working on a matrice math lib in javascript which i have already finished my inverse function for 2x2, 3x3, and for 4x4 matrices using a adjugated cofactor mathod, when i went to multiply my inverse by my original matrice to get the identity matrix to validate my work i noticed a issue, while my diagonal of 1 was correct, where what should have been zeros where not in some places, i checked my work over several times with the help of external calculators and manually checking and i came to the conclusion it wasn't my multiplication.  i then decided to add the numbers for the number in question myself using javascript and the results are very confusing to say the least  4.210526315789474 + 0.6263157894736841 + -0.1578947368421052 + -4.678947368421052  when added in javascript output   8.881784197001252e-16  when added manually or using a calculator output  0.0000000000000009  so i did some more testing and decided to add   -4.836842105263157 + 4.836842105263158  to check if adding just the two sums would output the correct number and sure enough it did....  so my question is, why does   4.210526315789474 + 0.6263157894736841 + -0.1578947368421052 + -4.678947368421052  output the incorrect value, i am truly confused right now, thank you for the help in advanced,  my work environment is in chrome version +63 running js 1.7, all my output was to the developer console using console.log();

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


I logged in today to find that my icon has been switched to one of the default patterns. Now I can just put it back, but the icon I have been using is a sprite from a video game so I wanted to make sure it wasn't removed for copyright issues or something similar. I've used it for years without issue, but if any website were to notice and remove it for that reason this would be the one.   Here is the icon in question:

When I first signed up on a Stack Exchange site and got a profile image, it was this one (see my current user card I'm actually not sure what I look like any more):     Later, I got  and SEDE profiles, and my user image there was a different identicon. Because . I would have a picture of it, but that's the problem. ... Thanks to , I have a picture:     On those two sites, it changed from that purple one to this new one recently:   I don't know when the change happened exactly, but I KNOW I didn't change it (I don't know how to change it, otherwise I would have changed it to my main pink one).  Why did this change? Can I get my other icon back or will I be stuck with this new one?   Also, are the gravatars at Area 51 and SEDE securely generated?    After looking in my profile settings, I really confused (I am seeing my wrong avatar in more and more places since I first posted this.):        Seriously.......    What...?    (I'm using this , but be warned that they will try to IP block you after a certain number of requests to force you to pay... May look for a better alternative later.)


For given $k$ and $N$, $k,N\in\mathbb{N}$, how to compute $\sum_{i=0}^Ni^k$?  We have: $\sum^N_{i=0}i=\frac{N(N+1)}2$  Also according to what I found in the Internet we have $\sum^N_{i=0}i^2=\frac{n(n+1)(2n+1)}{6}$ (I can prove this formula by induction, but I couldn't obtain it myself)  But how to generalize this for any $k$?

What kind of formula is there that can be used for calculating the sum of power of $x$ of numbers from $1$ to $a$?  I know that the sum of numbers from $1$ to $a$ is $\ (n^2 + n)/ 2  \ $ and that the sum of the squared numbers from $1$  to $a$ is $n^3/3+n^2/2+n/6 $.  If possible, please give a solution that excludes Bernoulli numbers and works for negative numbers too.


I have been trying to solve the following integral $$\int_{0}^{\frac {\pi}{2}} \ln\left (\frac {\ln^2 (\sin x)}{\pi^2+\ln^2 (\sin x)}\right) \frac {\ln \cos x}{\tan x} dx$$ I tried substituting for $\frac {\ln^2 (\sin x)}{\pi^2+\ln^2 (\sin x)}$ and using the properties of definite integrals, but I am not able to proceed with the integral as the $\ln \cos x$ term doesn't get substituted. Is there any other trick that I can employ?

Before you answer this OP, please read all the terms and conditions below. Thank you...  Today I hold an unofficial little contest on . Now, I will hold it here on Math S.E. It's just for fun guys. (>‿◠)✌  Before we start the contest, here are the rules of my little contest that you should obey as a contestant (the one who post an answer to this OP during contest period):   The contest will be started on Sunday, October $26$, $2014$ at $12.00$ p.m. noon (UTC). So, until D-Day, please do not make any attempts (posting comments or answers) that can lead users here to answer the problem contest. You may post your answer after this OP is marked as a bounty question by me. I will give a bounty to this OP at least $250$ reps. The bounty will be awarded to the winner. The winner of this contest is the highest voted answer. So, the jury of this contest is not only me, but all of us. Each contestant can only post one answer and the answer can be posted anytime during the contest period. Once the answer is posted, it cannot be edited during the contest period. Since you have at least $4$ days to prepare the answer to this OP, please make sure you create a zero error answer. Do not post this contest problem on other sites for asking a hint or an answer. The contest will be ended on Sunday, November $2$, $2014$ (after bounty period over). The contestant will be disqualified for violating the contest rules above. The term disqualified means the contestant who violates the rules but she/ he owns the highest voted answer at the end of the contest will not be declared as the winner. Therefore, the bounty will not be awarded to her/ him.   If necessary, the rules may be changed accordingly. To be fair, I will not answer this OP nor give any hints to anyone. I really need your cooperation in order to make this contest succeed. Thank you.    Here is the contest problem:     Prove\begin{equation}\large{\int_0^{\Large\frac{\pi}{2}}}\ln\left(\frac{\ln^2\sin\theta}{\pi^2+\ln^2\sin\theta}\right)\,\frac{\ln\cos\theta}{\tan\theta}\,d\theta=\frac{\pi^2}{4}\end{equation}   Feel free to use any methods to solve this problem (real or complex analysis approach). Okay, happy problem solving and best of luck! ٩(˘◡˘)۶


I'm on Mac OS X 10.7.5. In Finder windows, besides the sidebar, there is a sort of "upbar", right below the name of the folder you are viewing but before the colum/list/icon view of it, where you can put shortcuts to files. This is a screenshot of a typical window on my computer: Edit - it's called the Toolbar, I've edited the Question title to make it easier for others to Google.  As you can see, next to some buttons which include view controls there are 6 item buttons: a txt, a tex, a tex, a jpeg, a doc(x) and a tex. They all got there by accident and I can't find a way to get them away. How do I remove them?

I accidentally dropped a file in the Finder toolbar instead of the destination folder (the ZIP icon on the right of the screenshot):   How can I remove it from the toolbar?


I'd like to be able to write down formulas in R syntax as equations, i.e. I'd like to do something like this:  \begin{requation} time ~ (poly(I(1/nprocs), 2) + poly(ndoms, 2) + poly(nDOF, 2))^3 \end{requation}    while the equation would be numbered together with ordinary equations and its content would be the simple text with \texttt{}. So, I need no math-mode inside the environment.  Do you know, how to do it?    EDIT  I've tried something like this  \newenvironment{requation} {% \VerbatimEnvironment \begin{Verbatim} } { \end{Verbatim} \refstepcounter{equation}\hfill(\theequation)}   The only problem is, that in this case there is a newline after \end{Verbatim} which I don't want - is there any possibility to get rid of it?

How can I have an automatically numbered verbatim environment, just like equations? I tried putting it like this:  \begin{equation} \begin{verbatim} bla... bla... bla... \end{verbatim} \end{equation}   but it gives me an error. I am sure there must be a better way.


Is $\{\{a\}\}$ always a basis for the system of neighborhoods at $a$? If yes, what is the significance of the basis?  I am reading the definition in Mendelson's "Introduction to Topology" book at DEFINITION 4.9:  "Let $a$ be a point in a metric space $X$. A collection $\mathscr{B}_a$ of neighborhoods of $a$ is called a basis for the neighborhood system at $a$ if every neighborhood $N$ of $a$ contains some element $B$ of $\mathscr{B}_a$."

I'm trying to learn a bit about topology through independent study. I've been using Bert Mendelson's "Introduction to Topology - 3rd edition". I'm having a lot of fun but I'm a bit confused regarding definition 4.9 on pg 45. I will reproduce it hereafter:     Definition 4.9 - Let $a$ be a point in metric space $X$. A collection of neighborhoods $\mathcal{B}_a$ is called a basis for the neighborhood system at $a$ if every neighborhood $N$ of $a$ contains some element $B$ in $\mathcal{B}_a$.   Here is the source of my confusion, please correct me if I am wrong:   1) Every neighborhood of $a$ must contain $a$ it self, so shouldn’t any neighborhood of $a$ be automatically a basis of the neighborhood system at $a$?   2) If this is true (and I'm hoping it is false) what is the condition that forces $\mathcal{B}_a$ to grow beyond a trivial set such as $\mathcal{B}_a = \{a\}$?  Thank you.


This is an easy question, but it's super frustrating for someone who is not using html for ages. My html table can be seen at the following:  with below html:

         Account status:	         Portfolios invested:	         Date joined:	         MangoPay status:	         NorthRow status:	         Investor type:

         status	         Number of portfolios	         17 Feb, 2019	         Approved	         Approved	         Inexperienced

         Suspend user	         Member for 1 y, 10m	         Change

  Which will give me tables without spaces. How to achieved something similar to this:

In an HTML table, the cellpadding and cellspacing can be set like this:  <table cellspacing="1" cellpadding="1">   How can the same be accomplished using CSS?


Any hints? Using integration by parts didn't produce any result. Interestingly, I cannot find any function $f(x)$ which such a property.

The question is as in the title: what's the minimum of $\int_0^1 f(x)^2 \: dx$, subject to $\int_0^1 f(x) \: dx = 0, \int_0^1 x f(x) \: dx = 1$? (Assume suitable smoothness conditions.)  A problem in the textbook for the course I am TEACHING (not taking) reduces to minimizing $w_1^2 + w_2^2 + w_3^2$ subject to $w_1 + w_2 + w_3 = 0, w_1 + 2w_2 + 3w_3 = 1$. Of course there's nothing special about the number $3$ here, and so one can ask for the minimum of $\sum_{i=1}^n w_i^2$ subject to $\sum_{i=1}^n w_i = 0, \sum_{i=1}^n iw_i = 1$. At least when $n = 3, 4, 5$, we get $w_i = c_n(i-(n+1)/2)$, for some constant $c_n$ which depends on $n$. So for fixed $n$, $w_i$ is a linear function of $i$. (This is a bit of an annoying computation, so I won't reproduce it here.)  So it seems like there should be a continuous analogue of this. If we have  $$ \int_0^1 f(x) \: dx = 0, \int_0^1 x f(x) \: dx = 1 $$ and $f(x)$ is linear, then we get $f(x) = 12(x-1/2)$, and $\int_0^1 f(x)^2 \: dx = 12$.  Is this the function satisfying these integral conditions with smallest $\int_0^1 f(x)^2 \: dx$? That is, is it the case that $$ \int_0^1 f(x)^2 \: dx \ge 12 $$ for every $f(x)$ satisfying the two conditions above and whatever smoothness conditions are necessary?  I've tagged this calculus-of-variations because that's what it looks like to me. But I don't know the calculus of variations, which is why I can't just solve the problem myself.


I created a console application that will take user input of any number and + or - operator for now, and returns the result. for example user can input 1+2+3+4, and result should be 10.  My problem is that I cannot figure out how to get the last number to be summed into the total result.  that mean in my code only 1+2+3 will be calculated while 4 will be ignored.  using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks;  namespace SimpleCalculator {     public class Program     {         public static void Main()         {             int result = 0;             int number;             string numberString = "";              Console.WriteLine("Enter numbers followed by operation eg. x+y-z");             while (true)             {                 string userInput = UserInput();                 //Loop into each element of the input string                 for (int i = 0; i < userInput.Length; i++)                 {                     if((IsNumber(userInput[i])))                     {                         numberString += userInput[i];                     }                     else if (!IsNumber(userInput[i]))                     {                         number = Int32.Parse(numberString);                         numberString = "";                         result = PerformCalculation(result, number, userInput[i]);                     }                  }                 number = Int32.Parse(numberString);                 result += number;                 Console.WriteLine($"{userInput}={result}");             }         }          // check if input is number or operator         static bool IsNumber(char input)         {             if (char.IsDigit(input)){return true;}             else{return false;}         }          static string UserInput()         {             string User_input = Console.ReadLine();             return User_input;         }          static int PerformCalculation(int sum, int num, char op)         {             switch (op)             {                 case '+': return sum + num;                 case '-': return sum - num;                 default: throw new ArgumentException("Uknown operator");             }         }     } }

Is there a function the .NET framework that can evaluate a numeric expression contained in a string and return the result? F.e.:  string mystring = "3*(2+4)"; int result = EvaluateExpression(mystring); Console.Writeln(result); // Outputs 18   Is there a standard framework function that you can replace my EvaluateExpression method with?


The Calm Emotions spell says:     ...suppress any effect causing a target to be charmed or frightened. When this spell ends, any suppressed effect resumes, provided that its duration has not expired in the meantime.   On first read, it seems that the expiring duration would suggest waiting out a fixed time frame. However, a lot of fear effects permit saves throughout the duration to end them.  So two questions:   While a fear effect is suppressed are saves still made to end it? If so, does a creature need to comply with special requirements to attempt the save while the effect is suppressed by Calm Emotions?   To clarify, this is the text for a Red Dragon's Frightful Presence and the Fear spell, respectively:  Frightful Presence     Each creature of the dragon’s choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature’s saving throw is successful or the effect ends for it, the creature is immune to the dragon’s Frightful Presence for the next 24 hours.   Fear     While frightened by this spell, a creature must take the Dash action and move away from you by the safest available route on each of its turns, unless there is nowhere to move. If the creature ends its turn in a location where it doesn’t have line of sight to you, the creature can make a Wisdom saving throw. On a successful save, the spell ends for that creature.

Old dragons can frighten you:     Frightful Presence. Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itselfon a success.   Calm Emotion can suppress this:     You can suppress any effect causing a target to be charmed or frightened. When this spell ends, any suppressed effeet resumes, provided that its duration   has not expired in the meantime.   Do you keep repeating the saving throw while the frightened condition is suppressed?


I need some help in calculating the last column (OD_pairs.Ai_) based on the condition;  if travel_cost has a value below 10, OD-pairs.Ai_ takes the value of the first column(Aij_OjFCij..) if travel_cost has a value above 10, then return 0 in OD_pairs.Ai. So basically the third field to be calculated is either the corresponding value in the first field or zero, depending on the value in second field.

I am using ArcGIS 10.2 for Desktop, and I've been looking through this site, and can't seem to figure out my answer yet. Very new to VBA and Python, but lots of years with ArcGIS.  I know I can do this the slow way with Select By Attributes, but It's time consuming.  I am attempting a spatial join between cases of a disease (points layer) and US Census Tracts (polygon layer). This requires count data. For each point/case, I have a field called YEAR with date ranges 2001 to 2012 depending on what year the case happened. I need a count column for each year. For example, the first one I'm calling COUNT01. If the case date in YEAR is 2001, then COUNT01 will have a 1 in it. If it is any other year (2002-2012), then there will need to be a 0. I will have COUNT02, COUNT03...COUNT12 columns. Can't have a "Null" value.   Here's what I've tried so far    And here is what the data looks like in Arc.


I'm just wanted to know why there's an Android folder. As we all know that the data which apps stores for itself stores in root directory which is "data/data" but why there's an Android folder? Please let me know.

Could you list all possible directories where Android apps may store data, providing description what kind of data are stored in each directory?


Sometimes when adding an object to the scene I see that all options (on toolbar or in window after pressing F6) are disabled. Can anyone tell me when can this happen? What is causing it and how to revert it - make it enabled again. It worked for me when I restarted Blender and reloaded the scene. However I would really like to know what can cause it?

I have lost functionality in the tool shelf. When I click on a selector or something in the bottom part of the tool self that you can hide and unhide, nothing happens. I can see the options but when I click it doesn't work. See screenshot where it says "Add Cylinder".


I have asked this question in the physics.stackexchange.com forum too - sorry if that is a no-no; I feel it straddles the boundary between the two, and similar questions have been answered rather vaguely in the past, IMO. And perhaps that isn't surprising, since I am looking for the maths that lead up to quantum mechanics rather than QM itself, it that makes sense. So, if you wil forgive:  I come from a mathematical background, but would really like to understand the mathematical reasoning behind QM. I have been through a number of books about the subject already, but they all descend into matrix groups and coordinate representations, and what I really want to find is a pure mathematical treatment of the subject - Lie groups and Lie algebra are generally much cleaner when you don't have to feel your way through a mist of matrix elements, differential geometry even more so. As an example of a style I find very helpful, look for Frederic Schuller's lectures on youtube (eg ).   So, bearing all this in mind, are there any good, abstract, mathematical treatments of the foundations of QM, which go into the reasoning and intuition behind things like quantisation, Noether's Theorems and similar, and which throughout apply rigorous definitions and proofs (which I find actually helps rather than hinders intuition)?    OK, I have now taken some time to check out the other question that is allegedly an exact duplicate, but I don't think so. I'm not looking for an introduction to QM, I am looking for a through, mathematical treatment of the foundations of QM; take a subject like quantization - so far, what I have found introduces it as a ready-made procedure into which you plug a certain equation and out of it comes, magically, 'QM'. I suppose I could go and find Paul Dirac's doctoral thesis, but I had hoped for a modern treatment; I looked at Amazon for the books mentioned in the comments, and they are expensive, I think, so I'd rather be sure they have what I'm looking for.

I'm a mathematician. I have good knowledge of superior analysis, distribution theory, Hilbert spaces, Sobolev spaces, and applications to PDE theory. I also have good knowledge of differential geometry. I would like to study the Semiclassic Analysis, but perhaps I must first study the foundations of quantum mechanics. So I would like to know what book you recommend me to begin studying quantum mechanics. I'm primarily interested in a mathematical point of view. I have seen some books of this type, but I would like to have some other opinion.  Thanks for every reply


In fact angular momentum is the generator of rotation around an axis. If the axis passes through the center of mass of the object then it is spinning. spin in QM can be a property of point particle(such as electron) that can't rotate around it self.

I often hear about subatomic particles having a property called "spin" but also that it doesn't actually relate to spinning about an axis like you would think. Which particles have spin? What does spin mean if not an actual spinning motion?


My company uses the Univers font as its official typeface and I'm looking for a good Web-safe alternative. The options are limited, but typefaces are really my weak point and I can't tell which ones are more like it.       To me Arial looks like my best bet, but there may be subtle differences I'm not seeing. However, using a Web-Font is not an option. I am looking for the most similar base font.  These are the only options:  Arial, Helvetica, sans-serif "Arial Black", Gadget, sans-serif "Comic Sans MS", cursive, sans-serif Impact, Charcoal, sans-serif "Lucida Sans Unicode", "Lucida Grande", sans-serif Tahoma, Geneva, sans-serif "Trebuchet MS", Helvetica, sans-serif Verdana, Geneva, sans-serif

I'm failing to find a replacement for  to use on the Web. I'm using  (portfolio), and right now using  which is much wider than Univers. I tried Googleing but no luck, so I decided to sign up and ask the pros.


Do elves have surnames/family name? For instance what is the surname or famous elves like Galadriel, Arwen, Legolas, ...

While all the Hobbits I can think of have a combination of first- and lastname (e.g., Bilbo Baggins, Peregrin Took, the Sackville-Baggins's,...), I can't think of any character* of another race that has a lastname:   Men seem to like to add a reference to their ancestors (e.g., Aragorn, Arathorn's son or Isildur's heir) Dwarves seem to like descriptive or honorary names (e.g., Thorin Oakenshield, Dain Ironfoot). They are not lastnames though, since they do not get passed on to descendants. Elves don't have a need for lastnames, since elvish names are unique. Some nevertheless seem to have an additive (e.g., Legolas Greenleaf). Likewise, I can't find any usage of lastnames among Ents, Eagles, Istari, Orcs, trolls,...   But why would a society that is quite rural and not a leader of modernization be the only one to use a modern naming system with first- and lastnames?  *Except for Tom Bombandil. But he is, well, "special".


So I have a dynamic loop which is affected by a query sting in the URL..  For example I have 3 categories and when they click the category it just adds a query to the URL:  Dogs Cats Other   and then my custom loop will pull the query values to show relative posts  $args = array('post_type' => 'animals', 'posts_per_page' => 4, 'category' => $queryString); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query($args);   I then have my pagination code which is working as expected but it doesn't change the posts.. I have a feeling its because of the url structure..   any help from you awesome people!

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


I am wondering how to get the relative path name? Any existing library can help this?  c:\123  c:\123\1234\zaq\erf  I would like to get something like 123/1234/zaq/erf

Given two absolute paths, e.g.  /var/data/stuff/xyz.dat /var/data   How can one create a relative path that uses the second path as its base? In the example above, the result should be: ./stuff/xyz.dat


I don't know why the lines won't print in the while loop. I can't exit either. Please help. The program runs but nothing inside the while loop will print.   public class RomanNumeralHelper {      /**      * (Insert a brief description that describes the purpose of this method)      *      * @param args      */     public static void main(String[] args) {         Scanner in = new Scanner(System.in);         String myRoman;         String upperRoman;          System.out.print("Enter a roman numeral [Q | q to quit]: ");         myRoman = in.next();         upperRoman = myRoman.toUpperCase();          while (upperRoman != "Q") {             if (upperRoman == "I") {                 System.out.println(">> 1");             } else if (upperRoman == "II") {                 System.out.println(">> 2");             } else if (upperRoman == "III") {                 System.out.println(">> 3");             } else if (upperRoman == "IV") {                 System.out.println(">> 4");             } else if (upperRoman == "V") {                 System.out.println(">> 5");             }              System.out.print("Enter a roman numeral [Q | q to quit]: ");             myRoman = in.next();             upperRoman = myRoman.toUpperCase();         }          System.out.println("Good Bye!");          // (5) Closes the in object to avoid a resource leak.         in.close();     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am using following query to delete data which are not in another table.  delete from table_1 where tbl_id in   (select tbl_id from table_1 left join table_2 on table_1.tbl_id=table_2.another_tbl_id where table_2.another_tbl_id is null)   Is there any issue in the above query?  It shows You can't specify target table 'table_1' for update in FROM clause.  How to solve this issue?

I have a table story_category in my database with corrupt entries. The next query returns the corrupt entries:  SELECT *  FROM  story_category  WHERE category_id NOT IN (     SELECT DISTINCT category.id      FROM category INNER JOIN         story_category ON category_id=category.id);   I tried to delete them executing:  DELETE FROM story_category  WHERE category_id NOT IN (     SELECT DISTINCT category.id      FROM category        INNER JOIN story_category ON category_id=category.id);   But I get the next error:      #1093 - You can't specify target table 'story_category' for update in FROM clause    How can I overcome this?


I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I can add the line of code to the "logoff/shutdown" file or if I need to reference it in another script.

When I shut down my computer I want to show some pending tasks that I have to do before leaving the office...  I did a local application to manage those tasks, basically I just want to run a command, and shut down after I kill the app executed.


what is the value of i factorial? "I" belongs to the complex number system. Thanks for helping me out with this problem.

With $i^2=-1$, what is $i!$ ?  I'm not sure if it is $i$ or if it is an infinite product $i(i-1)(i-2)(i-3)(i-4)(i-5)\dots$  It would make sense either way.  Is it not defined?


Well we know about quadratic equations, but quad means four, but quadratic equations have two roots. So why is it so?

The word "quad" generally means 4. Quadratics don't have 4 of anything. Can anyone explain where the name comes from?


I have 2d building footprints as polygonz geometries and building heights as attribute. I want to extrude them according to height values and generate building surfaces and polyhedral building records.   For this purpose in python I copy vertices of footprint and increase z values of coordinates according to heights then add these new vertices to my vertice list. So finally I achieve 8 points that represents corners of block shaped building as you can see in the picture.     How can I triangulate using these points and create triangles that represent surfaces of building using python?   Can I use a triangle library although it uses only 2d points as arguments?

How can I create a simple LoD1 citygml-model using Python?


Evaluate: $$\lim_{n\to\infty}\frac{\sum_{k=1}^n\lfloor kx\rfloor}{n^2}$$  My approach: I  simply use this. $$ \boxed{x-1 < \lfloor x\rfloor \leq x} $$ to apply squeeze theorem and finally come to this conclusion, $$\frac{\left\lfloor x\left(\left(\frac{n(n+1)}2\right)-n\right)\right\rfloor}{n^2}< \frac{\left(\begin{array}{c} \text { Required number } \\ \end{array}\right)}{n^2} \leq \frac{x\left(\frac{n(n+1)}2\right)}{n^2}$$ taking limit($n\to\infty$) to LHS & RHS I am getting $\frac{x}2$ I am looking for any other method better than this.Any suggestion or hint would be greatly appreciated.

Evaluate the following limit. $$\lim_{n \to \infty} \cfrac{\sum_{k=1}^n\lfloor kx\rfloor}{n^2} $$  I'm not sure how to proceed from here. Normal methods don't seem to apply here, because of the presence of $\lfloor\cdot\rfloor$ (greatest integer function). Although, I do get a feeling that Sandwich Theorem may come into play here. Not sure how. May be taking interval of $\lfloor x\rfloor$ as : $x - 1 <\lfloor x\rfloor< x $ . Any one who can guide me through?


I have heard of many different ways to make easy gold, hacks, glitches, and rare items. But is there a way where I don't have to glitch, sell one of a kind items, and etc.?

In Oblivion, I had two favorite money-makers:   Dump all my stuff except some basic armor and potions, and raid an oblivion tower. The armor and weapons was worth lots, and selling it in Anvil made a lot of cash fast. Harvest an entire farm's worth of crops, create 'restore fatigue' potions and sell them.   Skyrim seems to spoil this:   Merchants have a max-amount per day/QOD/... instead of per item You can't carry as much (or maybe I have yet to discover the strength/feather spells) Alchemy is a lot harder (most common items go into food recipes now, which don't sell for those prices) On top of that, once a dungeon is cleared, it doesn't respawn - so no 'farming' familiar dungeons?   What are some easy/repeatable money making methods in Skyrim? Which are most efficient effortwise/real-life-time wise?


Suppose $Z_1$ and $Z_2$ are two different spanning trees of a simple connected undirected graph $H$. Show that if $a_1$ is an edge in $Z_1$ that is not in $Z_2$, then there is an edge $a_2$ in $Z_2$ that is not in $Z_1$ such that the graph ($Z_1$ − $a_1$) + $a_2$ (obtained from $Z_1$ on replacing $a_1$ by $a_2$) is also a spanning tree of $H$.  This is a practice problem assigned in the book, but the answer provided is a little confusing. Could someone break this down a little better?  Answer provided: Essentially, it breaks it down through the associative property of addition between the two spanning trees. Since the two spanning trees are of a simple connected graph, subtracting one edge from a tree and adding an edge that is not in the previous tree will produce a spanning tree that is still representative of the graph H.

Say $X$ and $Y$ are two different spanning trees of a simple and connected and undirected graph $G$. Prove that if $e_1$ is an edge in $X$ that isn't in $Y$, then there exists an edge $e_2$ in $Y$ that isn't in $X$... so the graph $(X − e_1) + e_2$ (obtained from $X$ on replacing $e_1$ by $e_2$) is also a spanning tree of the original graph, $G$.


I have multiple plots (about 15 different figures) that have the same axes (i.e., same ymin and ymax values and same xticks). One of the plots has very large values. I don't want to either increase ymax nor use log scale for the y-axis. I want to display the y values greater than ymax by adding a discontinuity on the y-axis.  Here is an MWE:  \documentclass[preview=true]{standalone} \usepackage{pgfplots} \begin{document} \begin{preview} \begin{tikzpicture} \begin{axis}[ymin=0,ymax=100, log ticks with fixed point, ] \addplot table { 1 10 2 20 4 25 }; \end{axis} \end{tikzpicture}% \begin{tikzpicture} \begin{axis}[ymin=0,ymax=100, log ticks with fixed point, ] \addplot table { 1 50 2 100 4 200 }; \end{axis} \end{tikzpicture} \end{preview} \end{document}   What I need:    I have added the short lines on the axes and the plot are to denote the discontinuity. The numbers 100 and 200 on the y-axis may not be a good idea; this kind of presentation may be a source of misunderstanding. It may be better to display y values as labels near data points as follows:    The input data of plots comes from a pgfplotstable.

Is there an easy way to 'break' the axis in a pgfplots environment? What I'm talking about is something like     Any minimal plot will do as an example...for example  \documentclass{minimal}   \usepackage{tikz} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture} \begin{axis}[ymin=0, ymax=80] \addplot {x*0};  \addplot {x^2+50}; \end{axis} \end{tikzpicture}  \end{document}   For example, in the below plot,    I want to break the axis from around y = 10 to y = 40.   Any ideas? Does PGF have this functionality? A search for `break' in the manual doesn't yield anything.


Use Case: If I update a Agreement record ,then all the related Agreements to be updated with Termination Date on Parent agreement record.  On Agreement we have Relationship from and Relationship To Related list. This is nothing but Related agreement records and these are Related Agreement object. Where we have Relationship from and Relationship To Lookup fields. Relationship from is the parent agreement record and Relationship To is child Agreement Record.  If Update Parent agreement(Relationship from) then on Relationship To agreement(child agreement) should be updated with same Termination date field value on Parent.  I have this trigger  am getting records for Related Agreement record. But line no 11 gives null value for Termination Date.  Class:  public class TerminationDate {     public static Boolean isFirstTime = true;    }   This is the  trigger . Related agreement query returning records but @11 getting null value for Termination Date.            if(TerminationDate.isFirstTime){         TerminationDate.isFirstTime = false;          Map<Id,Date> acc = new Map<Id,Date>();         for(Apttus__APTS_Agreement__c a:Trigger.New)    {     if(a.Apttus__Status_Category__c=='Terminated') {         Apttus__APTS_Related_Agreement__c ar=new Apttus__APTS_Related_Agreement__c();         acc.put(a.id,ar.Apttus__APTS_Contract_From__r.CLM_Agreement_Termination_Date__c);         system.debug(acc);     } }    List<Apttus__APTS_Related_Agreement__c> relagrmt=[select id,Name,Apttus__APTS_Contract_From__r.id,Apttus__APTS_Contract_To__r.id,Apttus__APTS_Contract_From__r.CLM_Agreement_Termination_Date__c,Apttus__APTS_Contract_To__r.CLM_Agreement_Termination_Date__c,Apttus__APTS_Contract_To__r.Name from Apttus__APTS_Related_Agreement__c where Apttus__APTS_Contract_From__c in: acc.keyset()];          for(Apttus__APTS_Related_Agreement__c ag:relagrmt){            ag.Apttus__APTS_Contract_To__r.CLM_Agreement_Termination_Date__c=acc.get(ag.Apttus__APTS_Contract_From__r.id);             update ag;             system.debug(ag);               }      }  }

I am populating a junction object on from Events and want to capture info from the Event but getting the Account from Account field pulls null. Same who the name via the Who. But if I query the Event record, the AccountId field is populated. And of course, the code compiles properly. Can someone explain how to grab this related info?  trigger TripMeetingFromMeeting on Event (after insert, after update) {      Set<id>EventId = new Set <ID>();     List <Trip_Meeting__c> TMS = new List <trip_meeting__c>();      for (Event E:trigger.new){         if (e.Business_Trip__c!=null){             TMS.add(new Trip_Meeting__c(Meeting__c =e.id, Business_trip__c=e.Business_Trip__c,                                         Meeting_Date__c=e.ActivityDate, Meeting_subject__c=e.Subject,                                        TripNameDELETE__c=e.Business_Trip__r.name,                                         mWhatID__c=e.Whatid,                                        Meeting_Company__c=e.Account.name,                                        Meeting_Name__c=e.Who.name)                                         );          }     }     system.debug('TMS!!!============================'+TMS);      Database.insert(tms, false);  }


Someone told me about wake-on-lan options in bios and it sounds great. It would be kinda cool if I can turn my computer from office when it happens that I forgot to turn it on before I go to work so later on I could use teamviewer or what ever. Can someone help me with this in details cause I never done this before?

This has always been a mystery to me and with all the snow we're getting I'd like to work from home but the boss man wants us to turn our computers off a night to save energy.  Figured I'd like to try Wake-On LAN, but not sure where to start.


I want to have this result: The first column in grey and the second color is white:    I am using \usepackage{multicol}.

I am searching means to create a multicol document in which each column has a background color like illustrated below. The colored areas (red rectangles) should be filled with the background color. Since the document has many columns (4 in the example, but 10 in reality) splitting the text in minipages or similar is not my favored option.


I was stupidly trying to clean the keyboard by taking out each key using a screwdriver as a lever, washing and subsequently drying them. Now only the power button works (MBA 2012). During the process, the screwdriver pierced through some of the plastic "button" (which in itself shouldn't be a problem I guess), and the sharp head (not always dry) touched the underlying board (which is not the motherboard) from time to time as well.  Now I'm planning to replace the broken part on my own, and found out two options. Either the keyboard alone, which isn't officially supported but cheaper, or the complete upper case. For the first option I'd need to make sure that it's really just the keyboard that's broken. Could anyone tell me roughly how likely it is the case from my description?  Thanks in advance.

This is an attempt to write a canonical QA for this issue, as per the Meta post:   I expect it to be periodically edited with the goal of becoming a comprehensive information resource.  I have a MacBook Pro that has a key(Shift, Return,   Command, P, etc.) that doesn’t respond when pressed or is stuck in the down position.    It's possible that my favorite beverage was spilled (or some other liquid damage).  It's also possible that I have no idea what happened.  It was working yesterday and suddenly today it's no longer working.  Is there any way to bypass or remap the key?  Can I  have the system ignore it completely?  (This question can also apply to external USB keyboards or the Bluetooth keyboards)


Can you please help me on identifying this frame has no logo or marks no decals all it has is s serial number

This is a canonical question that will hopefully encompass all of the questions we get asking us to determine what year a bicycle was manufactured (how old is my bike, how old is my frame, etc.). Each "answer" should address a different way to determine the manufacturing year of a bicycle. To some extent, these will also help you narrow down the model as well as it will tell you what distinguishing features to look at.  The span of answers would include things such as:      Skiptooth cranks Cartridge bottom brackets (BB30/90 etc) Elliptical chainring Quick releases versus contemporary through-axles How the steerer attaches to the fork (quill vs. threadless)  Braking system (especially with mountain bikes: v-brake, direct pull, etc.)   Shifting ramps and pins on cassettes/sprockets and chainrings (versus flat sprockets) Frame material (e.g., shift from tubular steel to use of CF and hydroformed aluminium)  Frame tubing type (e.g. Reynolds 531 tubing introduced around 1934, still used today; Reynolds 501 tubing introduced around 1983). So a frame with an original 501 decal can't be from the 70', 531 decal doesn't help as much because of the range of years produced. Also, see Decals.   *Decals: style/design, amount, placement, color, etc. can help not only determine models, but also year of manufacture. Many changed decal design for the same model bike often yearly, with special/limited editions even more specific. This applies only if decals are original or have been replaced with the identical design. Tubing decals (Reynolds, Columbus, etc.) also changed designs for same tubing made in different years, although the changes aren't made as often, and manufacturers didn't always put tubing Brand decals on every model. Earlier bikes tended to have less fancy, less colorful, less quantity of decals.   Headbadges: most early bikes had actual "badges", often quite detailed and fancy, made of metal, then plastic, and finally just using decals on the headtube. Most bikes lost their metal badges in the 60's and early 70's, although some brands still have actual badges to this day, but in general a real badge indicates an earlier model bike. Dropout style (including the later inclusion of lawyers lips) Presence or absence of CPSC reflectors (USA only) Manufacturing method (shift from lugs to TIG welding, for example)  Number of gears (shift from 2x5 ten-speed to 3x8, 2x9, 1x11, etc.)  Inspection of lug design: pantographs, cut-out, stampings, custom brazing/filing, chrome, fork crow n sweep, etc. Frame/Fork Braze-ons. Race bikes tended have less braze-ons the earlier the year of manufacture. Most 60's racers and earlier had few or none with cable guides/stops, shifters, bidons, etc. being clamp-on. By the 80's if it was clamp-on, it was a sign of very cheap models and most frames had braze-ons for all cables, with multiple bottle and accessory bosses depending on style and use.   and so forth. Please edit this question if you have an answer that isn't in the index above.   A couple of caveats:   A previous owner could have replaced or upgraded components on a bicycle, so this guide only applies to original equipment There is a delay between the introduction of a technology (such as indexed shifting) and when manufacturers start selling products that use it. Low-end manufacturers may continue using technology that is severely outdated (such as one-piece cranks, freewheels, or quill stems) because it is cheaper to do so. A number of bikes are built in a Retro style, but with modern components.  Dutch bikes, trendy coffee cruisers, and beach cruisers may be modern but appear to be 1950s styling.  These tend to have modern rims and brakes as a giveaway.     Note that bicycles.stackexchange does not do valuations of bicycles. How much your bicycle is worth depends on the location of the buyer and seller, how much the buyer wants the bike, etc. etc. etc.


I am complete new to using LaTeX and I am using it in Overleaf. I am trying to accomplish a more or less Harvard referencing. It works fine, but LaTeX tends to show me all the authors listed in my in-text citations, so it looks like this: (Author a, Author b, and Author c, 2000). I need it to use the abbreviation "et al." when more then 2 authors are named as authors of the same paper. How can I manage that? I do not know much about coding or such things so I need a simple explanation on how to write it, if that is possible. Thank you :) currently it looks like this:  \usepackage[style=authoryear-ibid,backend=biber]{biblatex} \addbibresource{references.bib}   and I use \autocite for in-text citation.

I'm using the  package to add citations and a bibliography to my LaTeX document. I've noticed that only the first author plus "et al." is displayed for works with more than three authors. That's fine with me for in-text-citations, but I'd rather have the complete author information in the bibliography. How can I do that?


I just got this error message:  ... from c:/ruby/lib/ruby/gems/1.8/gems/...  ... 10 levels... from c:/ruby/lib/ruby/gems/1.8/gems/... ...   and the bug (of course) is hidden somewhere in ... 10 levels....  How can I force Ruby to show a full stack trace?

When I get exceptions, it is often from deep within the call stack.  When this happens, more often than not, the actual offending line of code is hidden from me:  tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError)         from tmp.rb:10:in `s'         from tmp.rb:13:in `r'         from tmp.rb:16:in `q'         from tmp.rb:19:in `p'         from tmp.rb:22:in `o'         from tmp.rb:25:in `n'         from tmp.rb:28:in `m'         from tmp.rb:31:in `l'          ... 8 levels...         from tmp.rb:58:in `c'         from tmp.rb:61:in `b'         from tmp.rb:64:in `a'         from tmp.rb:67   That "... 8 levels..." truncation is causing me a great deal of trouble.  I'm not having much success googling for this one:  How do I tell ruby that I want dumps to include the full stack?


I have a few options of adding voltage regulation to my pcb circuit (the regulation is from 12V to 5V). The options are stataed in the figures below. My question is:     How do I calculate the quiescent current and time lag for each of the designs?   Thanks!

When would you use a voltage regulator vs a resistor voltage divider?  Are there any uses for which a resistor divider is particularly bad?